Constify some commands in inferior.c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2017-09-27 Tom Tromey <tom@tromey.com>
2
3 * inferior.c (detach_inferior_command, kill_inferior_command)
4 (inferior_command): Constify.
5
6 2017-09-27 Tom Tromey <tom@tromey.com>
7
8 * regcache.c (regcache_print, maintenance_print_registers)
9 (maintenance_print_raw_registers)
10 (maintenance_print_cooked_registers)
11 (maintenance_print_register_groups)
12 (maintenance_print_remote_registers): Constify.
13
14 2017-09-27 Tom Tromey <tom@tromey.com>
15
16 * printcmd.c (map_display_numbers, undisplay_command)
17 (enable_disable_display_command, enable_display_command)
18 (disable_display_command): Constify.
19
20 2017-09-27 Tom Tromey <tom@tromey.com>
21
22 * breakpoint.h (delete_command): Don't declare.
23 * breakpoint.c (delete_command, enable_once_command)
24 (enable_count_command, enable_delete_command, breakpoint_1)
25 (maintenance_info_breakpoints, stopin_command, stopat_command)
26 (delete_command, delete_trace_command, save_breakpoints)
27 (save_breakpoints_command, save_tracepoints_command): Constify.
28
29 2017-09-27 Tom Tromey <tom@tromey.com>
30
31 * macrocmd.c (macro_expand_command, macro_expand_once_command)
32 (skip_ws, extract_identifier, macro_define_command)
33 (macro_undef_command, macro_list_command): Constify.
34
35 2017-09-27 Tom Tromey <tom@tromey.com>
36
37 * infcmd.c (environment_info, set_environment_command)
38 (unset_environment_command, path_info, info_proc_cmd_1)
39 (info_proc_cmd_mappings, info_proc_cmd_stat)
40 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
41 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
42
43 2017-09-27 Tom Tromey <tom@tromey.com>
44
45 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
46 Constify.
47
48 2017-09-27 Tom Tromey <tom@tromey.com>
49
50 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
51
52 2017-09-27 Tom Tromey <tom@tromey.com>
53
54 * demangle.c (demangle_command): Constify.
55
56 2017-09-27 Tom Tromey <tom@tromey.com>
57
58 * progspace.c (maintenance_info_program_spaces_command):
59 Constify.
60
61 2017-09-27 Tom Tromey <tom@tromey.com>
62
63 * compile/compile.c (check_raw_argument, compile_file_command)
64 (compile_code_command, compile_print_command): Constify.
65
66 2017-09-27 Tom Tromey <tom@tromey.com>
67
68 * reggroups.c (maintenance_print_reggroups): Constify.
69
70 2017-09-27 Tom Tromey <tom@tromey.com>
71
72 * dwarf2read.c (save_gdb_index_command): Constify.
73
74 2017-09-27 Tom Tromey <tom@tromey.com>
75
76 * stap-probe.c (info_probes_stap_command): Constify.
77
78 2017-09-27 Tom Tromey <tom@tromey.com>
79
80 * fork-child.c (unset_exec_wrapper_command): Constify.
81
82 2017-09-27 Tom Tromey <tom@tromey.com>
83
84 * btrace.c (get_uint, get_context_size, no_chunk)
85 (maint_btrace_packet_history_cmd)
86 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
87 (maint_info_btrace_cmd): Constify.
88
89 2017-09-27 Tom Tromey <tom@tromey.com>
90
91 * reverse.c (delete_bookmark_command): Constify.
92
93 2017-09-27 Tom Tromey <tom@tromey.com>
94
95 * remote.c (set_memory_packet_size)
96 (set_memory_write_packet_size, show_memory_write_packet_size)
97 (set_memory_read_packet_size, show_memory_read_packet_size)
98 (compare_sections_command, packet_command, remote_put_command)
99 (remote_get_command, remote_delete_command): Constify.
100
101 2017-09-27 Tom Tromey <tom@tromey.com>
102
103 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
104 (set_mipsfpu_double_command, set_mipsfpu_none_command)
105 (set_mipsfpu_auto_command): Constify.
106
107 2017-09-27 Tom Tromey <tom@tromey.com>
108
109 * cli/cli-cmds.h (cd_command): Constify.
110 * cli/cli-cmds.c (cd_command): Constify.
111
112 2017-09-27 Tom Tromey <tom@tromey.com>
113
114 * thread.c (thread_name_command, thread_find_command): Constify.
115
116 2017-09-27 Tom Tromey <tom@tromey.com>
117
118 * probe.c (enable_probes_command, disable_probes_command):
119 Constify.
120
121 2017-09-27 Tom Tromey <tom@tromey.com>
122
123 * symfile.c (symbol_file_command): Constify.
124 * gdbcore.h (deprecated_file_changed_hook): Constify.
125 * exec.c (deprecated_file_changed_hook, exec_file_command)
126 (file_command): Constify.
127 * defs.h (symbol_file_command): Constify.
128
129 2017-09-27 Tom Tromey <tom@tromey.com>
130
131 * remote-fileio.c (set_system_call_allowed)
132 (show_system_call_allowed): Constify.
133
134 2017-09-27 Tom Tromey <tom@tromey.com>
135
136 * tracepoint.c (delete_trace_variable_command)
137 (tfind_end_command, tfind_start_command, tfind_pc_command)
138 (tfind_tracepoint_command, tfind_line_command)
139 (tfind_range_command, tfind_outside_command): Constify.
140
141 2017-09-27 Tom Tromey <tom@tromey.com>
142
143 * ax-gdb.c (maint_agent_printf_command, agent_command)
144 (agent_eval_command): Constify.
145
146 2017-09-27 Tom Tromey <tom@tromey.com>
147
148 * tracepoint.c (info_scope_command): Constify.
149 * python/python.c (gdbpy_decode_line): Constify.
150 * python/py-breakpoint.c (bppy_init): Constify.
151 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
152 * location.h: (new_linespec_location)
153 (string_to_event_location_basic, string_to_event_location):
154 Constify.
155 * location.c (new_linespec_location)
156 (string_to_event_location_basic, string_to_event_location):
157 Constify.
158 * linespec.h (decode_line_with_current_source)
159 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
160 * linespec.c (linespec_lex_to_end)
161 (decode_line_with_current_source)
162 (decode_line_with_last_displayed): Constify.
163 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
164 Constify.
165 * cli/cli-cmds.c (edit_command, list_command): Constify.
166 * breakpoint.h (until_break_command, watch_command_wrapper)
167 (awatch_command_wrapper, rwatch_command_wrapper)
168 (init_ada_exception_breakpoint): Constify.
169 * breakpoint.c (break_command_1, dprintf_command)
170 (break_range_command, watch_command_wrapper)
171 (rwatch_command_wrapper, awatch_command_wrapper)
172 (until_break_command, init_ada_exception_breakpoint)
173 (strace_marker_create_sals_from_location, trace_command)
174 (ftrace_command, strace_command, struct tracepoint): Constify.
175 * ax-gdb.c (agent_command_1): Constify.
176 * ada-lang.c (ada_exception_sal): Constify.
177
178 2017-09-27 Tom Tromey <tom@tromey.com>
179
180 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
181 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
182 (get_context_size, no_chunk, get_insn_history_modifiers)
183 (cmd_record_insn_history, get_call_history_modifiers)
184 (cmd_record_call_history): Constify.
185
186 2017-09-27 Tom Tromey <tom@tromey.com>
187
188 * source.c (show_substitute_path_command)
189 (unset_substitute_path_command, set_substitute_path_command):
190 Constify.
191
192 2017-09-27 Tom Tromey <tom@tromey.com>
193
194 * typeprint.c (maintenance_print_type): Constify.
195 * maint.c (maintenance_dump_me, maintenance_demangle)
196 (maintenance_time_display, maintenance_info_sections)
197 (maintenance_print_statistics, maintenance_deprecate)
198 (maintenance_undeprecate): Constify.
199 (maintenance_do_deprecate): Constify. Use std::string.
200 (maintenance_selftest): Constify.
201 * gdbtypes.h (maintenance_print_type): Constify.
202
203 2017-09-27 Tom Tromey <tom@tromey.com>
204
205 * hppa-tdep.c (unwind_command): Constify.
206
207 2017-09-27 Tom Tromey <tom@tromey.com>
208
209 * target-descriptions.c (unset_tdesc_filename_cmd)
210 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
211 Constify.
212
213 2017-09-27 Tom Tromey <tom@tromey.com>
214
215 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
216
217 2017-09-27 Tom Tromey <tom@tromey.com>
218
219 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
220
221 2017-09-27 Tom Tromey <tom@tromey.com>
222
223 * tui/tui-regs.c (tui_reg_command): Constify.
224
225 2017-09-27 Tom Tromey <tom@tromey.com>
226
227 * skip.c (skip_file_command, skip_function_command)
228 (skip_enable_command, skip_disable_command, skip_delete_command):
229 Constify.
230
231 2017-09-27 Tom Tromey <tom@tromey.com>
232
233 * record-btrace.c (cmd_record_btrace_bts_start)
234 (cmd_record_btrace_pt_start): Constify.
235
236 2017-09-27 Tom Tromey <tom@tromey.com>
237
238 * symmisc.c (maintenance_print_symbols)
239 (maintenance_print_msymbols, maintenance_print_objfiles)
240 (maintenance_info_symtabs, maintenance_check_symtabs)
241 (maintenance_expand_symtabs, maintenance_info_line_tables):
242 Constify.
243
244 2017-09-27 Tom Tromey <tom@tromey.com>
245
246 * top.c (new_ui_command): Constify.
247
248 2017-09-27 Tom Tromey <tom@tromey.com>
249
250 * symfile.c (add_symbol_file_command)
251 (remove_symbol_file_command, list_overlays_command)
252 (map_overlay_command, unmap_overlay_command)
253 (overlay_auto_command, overlay_manual_command)
254 (overlay_off_command, overlay_load_command): Constify.
255
256 2017-09-27 Tom Tromey <tom@tromey.com>
257
258 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
259 (info_spu_mailbox_command, info_spu_dma_command)
260 (info_spu_proxydma_command): Constify.
261
262 2017-09-27 Tom Tromey <tom@tromey.com>
263
264 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
265
266 2017-09-27 Tom Tromey <tom@tromey.com>
267
268 * cli/cli-script.c (user_defined_command): Constify.
269
270 2017-09-27 Tom Tromey <tom@tromey.com>
271
272 * cli/cli-dump.c (dump_memory_command, dump_value_command)
273 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
274 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
275 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
276 (dump_binary_value, append_binary_memory, append_binary_value):
277 Constify.
278 (struct dump_context) <func>: Constify.
279 (add_dump_command): Update.
280
281 2017-09-27 Tom Tromey <tom@tromey.com>
282
283 * cli/cli-cmds.c (show_version, show_configuration)
284 (source_command, show_user): Constify.
285
286 2017-09-27 Tom Tromey <tom@tromey.com>
287
288 * target.c (maintenance_print_target_stack): Constify.
289
290 2017-09-27 Tom Tromey <tom@tromey.com>
291
292 * interps.c (interpreter_exec_cmd): Constify.
293
294 2017-09-27 Tom Tromey <tom@tromey.com>
295
296 * record-full.c (cmd_record_full_restore): Constify.
297
298 2017-09-27 Tom Tromey <tom@tromey.com>
299
300 * memattr.c (enable_mem_command, disable_mem_command)
301 (delete_mem_command): Constify.
302
303 2017-09-27 Tom Tromey <tom@tromey.com>
304
305 * value.c (show_convenience): Constify.
306
307 2017-09-27 Tom Tromey <tom@tromey.com>
308
309 * gdbcore.h (core_file_command): Update.
310 * corefile.c (core_file_command): Constify.
311
312 2017-09-27 Tom Tromey <tom@tromey.com>
313
314 * user-regs.c (maintenance_print_user_registers): Constify.
315
316 2017-09-27 Tom Tromey <tom@tromey.com>
317
318 * cp-namespace.c (maintenance_cplus_namespace): Constify.
319
320 2017-09-27 Tom Tromey <tom@tromey.com>
321
322 * cp-support.c (first_component_command): Constify.
323
324 2017-09-27 Tom Tromey <tom@tromey.com>
325
326 * psymtab.c (maintenance_print_psymbols)
327 (maintenance_info_psymtabs, maintenance_check_psymtabs):
328 Constify.
329
330 2017-09-27 Tom Tromey <tom@tromey.com>
331
332 * windows-tdep.c (display_tib): Constify.
333
334 2017-09-27 Tom Tromey <tom@tromey.com>
335
336 * linux-fork.c (delete_checkpoint_command)
337 (detach_checkpoint_command): Constify.
338
339 2017-09-27 Tom Tromey <tom@tromey.com>
340
341 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
342
343 2017-09-27 Tom Tromey <tom@tromey.com>
344
345 * arc-tdep.c (dump_arc_instruction_command): Constify.
346
347 2017-09-27 Tom Tromey <tom@tromey.com>
348
349 * valprint.c (set_radix, show_radix): Constify.
350
351 2017-09-27 Tom Tromey <tom@tromey.com>
352
353 * dtrace-probe.c (info_probes_dtrace_command): Constify.
354
355 2017-09-27 Tom Tromey <tom@tromey.com>
356
357 * command.h (not_just_help_class_command): Update.
358 * cli/cli-decode.h (not_just_help_class_command): Update.
359 * cli/cli-decode.c (not_just_help_class_command): Constify.
360
361 2017-09-27 Tom Tromey <tom@tromey.com>
362
363 * gdb_bfd.c (maintenance_info_bfds): Constify.
364
365 2017-09-27 Tom Tromey <tom@tromey.com>
366
367 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
368 overloads.
369 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
370 (do_const_cfunc): New function.
371 (cmd_cfunc_eq): New overload.
372 (cli_user_command_p): Check do_const_cfunc.
373 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
374 const_cfunc.
375 * command.h (add_cmd): Add const overload and no-function
376 overload.
377 (set_cmd_cfunc): Add const overload.
378 (cmd_const_cfunc_ftype): Declare.
379 (cmd_cfunc_eq): Add const overload.
380 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
381 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
382 overload.
383
384 2017-09-27 Tom Tromey <tom@tromey.com>
385
386 * macroexp.c (get_next_token_for_substitution): New function.
387 (substitute_args): Call it. Check for __VA_OPT__.
388
389 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
390 Pedro Alves <palves@redhat.com>
391
392 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
393 producer_is_icc_lt_14.
394 (producer_is_icc_lt_14): New function.
395 (check_producer): Add code for checking version of ICC.
396 (producer_is_icc): Move to producer.c.
397 (read_structure_type): Restrict ICC workaround to ICC<14.
398 * producer.c: Include selftest.h.
399 (producer_is_icc, producer_parsing_tests, _initialize_producer):
400 New functions.
401 * producer.h (producer_is_icc): New declaration.
402
403 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
404
405 * Makefile.in (SFILES): Add producer.c.
406 (COMMON_OBS): Add producer.o
407 * amd64-tdep.c (producer.h): Add new include.
408 * dwarf2read.c (producer.h): Add new include.
409 * producer.c: New file.
410 * producer.h: New file.
411 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
412 producer.c.
413 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
414 producer.h.
415
416 2017-09-26 Matthias Klose <doko@ubuntu.com>
417
418 * configure.ac: Search ncursesw before ncurses.
419 Check ncursesw/ncurses.h before ncurses/ncurses.h.
420 * gdb_curses.h: Include <ncursesw/ncurses.h>
421 * config.in, configure: Regenerate.
422
423 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
424
425 PR gdb/22185
426 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
427 obsolete.
428 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
429 Remove i386sol2 support.
430 * configure.nat <i386sol2>: Remove.
431 <sol2-64>: Fold into ...
432 <sol2>: ... this.
433 Move common settings to default section.
434 Add sol-thread.o.
435 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
436 x86_64-*-solaris2.1[0-9]*>: Rename to ...
437 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
438 <i[34567]86-*-solaris*>: Remove.
439 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
440
441 * configure.ac: Remove wctype in libw check.
442 (_MSE_INT_H): Don't define on Solaris 7-9.
443 <solaris*>: Remove libthread_db.so.1 check.
444 * configure: Regenerate.
445 * config.in: Regenerate.
446
447 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
448 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
449 (gdb_ps_size_t): Remove.
450 Use base types in users.
451 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
452
453 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
454
455 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
456
457 PR build/22206
458 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
459 (adi_is_addr_mapped): Likewise.
460 (PSR_ICC): Don't redefine.
461 (PSR_IMPL): Likewise.
462
463 2017-09-25 Tom Tromey <tom@tromey.com>
464
465 * regcache.c (regcache::dump): Use string_printf.
466
467 2017-09-25 Tom Tromey <tom@tromey.com>
468
469 * regcache.c (class regcache_invalidator): New.
470 (struct register_to_invalidate): Remove.
471 (make_cleanup_regcache_invalidate): Remove.
472 (regcache::raw_write): Use regcache_invalidator.
473
474 2017-09-25 Tom Tromey <tom@tromey.com>
475
476 * spu-tdep.c (spu2ppu_sniffer): Update.
477 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
478 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
479 Remove.
480 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
481 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
482 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
483 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
484 (frame_pop): Update.
485
486 2017-09-25 Tom Tromey <tom@tromey.com>
487
488 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
489 * regcache.h (regcache_xfree): Don't declare.
490 * regcache.c (regcache_xfree): Remove.
491 (do_regcache_xfree): Use delete.
492 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
493 * linux-fork.c (free_fork): Use delete.
494 (fork_save_infrun_state): Likewise.
495 * jit.c (jit_dealloc_cache): Use delete.
496 * infrun.c (discard_infcall_suspend_state): Use delete.
497
498 2017-09-25 Tom Tromey <tom@tromey.com>
499
500 * regcache.h (regcache_xmalloc): Don't declare.
501 (regcache_raw_set_cached_value): Update comment.
502 * regcache.c (regcache_xmalloc): Remove.
503 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
504 * jit.c (jit_frame_sniffer): Use new.
505 * frame.c (frame_save_as_regcache): Use new.
506
507 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
508
509 * NEWS: Advertise support for guarded-storage registers on IBM z.
510
511 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
512
513 * s390-linux-nat.c (have_regset_gs): New static variable.
514 (s390_linux_fetch_inferior_registers): Handle guarded-storage
515 control block and guarded-storage broadcast control regsets.
516 (s390_read_description): Detect whether the target has
517 guarded-storage support, return appropriate tdesc.
518 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
519 (features/s390x-gs-linux64.c): Likewise.
520 (struct gdbarch_tdep) <have_gs>: New field.
521 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
522 (s390_gsbc_regset): New variables.
523 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
524 and s390_gsbc_regset, if applicable.
525 (s390_core_read_description): Check whether core file was from a
526 target with guarded-storage support; include appropriate regsets.
527 (s390_gdbarch_init): Add registers for guarded-storage support.
528 (_initialize_s390_tdep): Initialize new target descriptions that
529 include registers for guarded-storage support.
530 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
531 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
532 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
533 (S390_NUM_REGS): Adjust macro definition.
534 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
535 (tdesc_s390x_gs_linux64): New declarations.
536
537 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
538
539 * features/s390-gs-linux64.xml: New file.
540 * features/s390-gs.xml: New file.
541 * features/s390-gsbc.xml: New file.
542 * features/s390x-gs-linux64.xml: New file.
543 * features/Makefile (WHICH): Add s390-gs-linux64 and
544 s390x-gs-linux64.
545 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
546 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
547 * features/s390-gs-linux64.c: New generated file.
548 * features/s390x-gs-linux64.c: New file.
549 * regformats/s390-gs-linux64.dat: New file.
550 * regformats/s390x-gs-linux64.dat: New file.
551
552 2017-09-23 Tom Tromey <tom@tromey.com>
553
554 * defs.h (make_cleanup_override_quit_handler): Don't declare.
555
556 2017-09-22 Tom Tromey <tom@tromey.com>
557
558 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
559 type to scoped_restore_tmpl.
560 <scoped_input_handler>: Initialize m_quit_handler directly.
561
562 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
563
564 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
565 (cd_command): Likewise. Free "current_directory" before
566 assigning to it.
567 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
568 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
569 * top.c (gdb_dirbuf): Remove global declaration.
570 * top.h (gdb_dirbuf): Likewise.
571
572 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
573
574 * gnulib/aclocal.m4: Regenerate.
575 * gnulib/config.in: Regenerate.
576 * gnulib/configure: Regenerate.
577 * gnulib/import/Makefile.am: Regenerate.
578 * gnulib/import/Makefile.in: Regenerate.
579 * gnulib/import/assure.h: New file.
580 * gnulib/import/at-func.c: Likewise
581 * gnulib/import/chdir-long.c: New file.
582 * gnulib/import/chdir-long.h: New file.
583 * gnulib/import/cloexec.c: New file.
584 * gnulib/import/cloexec.h: New file.
585 * gnulib/import/close.c: New file.
586 * gnulib/import/closedir.c: New file.
587 * gnulib/import/dirent-private.h: New file.
588 * gnulib/import/dup-safer.c: New file.
589 * gnulib/import/dup.c: New file.
590 * gnulib/import/dup2.c: New file.
591 * gnulib/import/error.c: New file.
592 * gnulib/import/error.h: New file.
593 * gnulib/import/exitfail.c: New file.
594 * gnulib/import/exitfail.h: New file.
595 * gnulib/import/fchdir.c: New file.
596 * gnulib/import/fcntl.c: New file.
597 * gnulib/import/fcntl.in.h: New file.
598 * gnulib/import/fd-hook.c: New file.
599 * gnulib/import/fd-hook.h: New file.
600 * gnulib/import/fd-safer.c: New file.
601 * gnulib/import/fdopendir.c: New file.
602 * gnulib/import/filename.h: New file.
603 * gnulib/import/filenamecat-lgpl.c: New file.
604 * gnulib/import/filenamecat.h: New file.
605 * gnulib/import/fstat.c: New file.
606 * gnulib/import/fstatat.c: New file.
607 * gnulib/import/getcwd-lgpl.c: New file.
608 * gnulib/import/getcwd.c: New file.
609 * gnulib/import/getdtablesize.c: New file.
610 * gnulib/import/getlogin_r.c: New file.
611 * gnulib/import/getprogname.c: New file.
612 * gnulib/import/getprogname.h: New file.
613 * gnulib/import/gettext.h: New file.
614 * gnulib/import/glob-libc.h: New file.
615 * gnulib/import/glob.c: New file.
616 * gnulib/import/glob.in.h: New file.
617 * gnulib/import/intprops.h: New file.
618 * gnulib/import/m4/chdir-long.m4: New file.
619 * gnulib/import/m4/close.m4: New file.
620 * gnulib/import/m4/closedir.m4: New file.
621 * gnulib/import/m4/d-ino.m4: New file.
622 * gnulib/import/m4/d-type.m4: New file.
623 * gnulib/import/m4/dup.m4: New file.
624 * gnulib/import/m4/dup2.m4: New file.
625 * gnulib/import/m4/error.m4: New file.
626 * gnulib/import/m4/fchdir.m4: New file.
627 * gnulib/import/m4/fcntl.m4: New file.
628 * gnulib/import/m4/fcntl_h.m4: New file.
629 * gnulib/import/m4/fdopendir.m4: New file.
630 * gnulib/import/m4/filenamecat.m4: New file.
631 * gnulib/import/m4/fstat.m4: New file.
632 * gnulib/import/m4/fstatat.m4: New file.
633 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
634 * gnulib/import/m4/getcwd-path-max.m4: New file.
635 * gnulib/import/m4/getcwd.m4: New file.
636 * gnulib/import/m4/getdtablesize.m4: New file.
637 * gnulib/import/m4/getlogin_r.m4: New file.
638 * gnulib/import/m4/getprogname.m4: New file.
639 * gnulib/import/m4/glob.m4: New file.
640 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
641 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
642 * gnulib/import/m4/mempcpy.m4: New file.
643 * gnulib/import/m4/memrchr.m4: New file.
644 * gnulib/import/m4/mode_t.m4: New file.
645 * gnulib/import/m4/msvc-inval.m4: New file.
646 * gnulib/import/m4/msvc-nothrow.m4: New file.
647 * gnulib/import/m4/open.m4: New file.
648 * gnulib/import/m4/openat.m4: New file.
649 * gnulib/import/m4/opendir.m4: New file.
650 * gnulib/import/m4/readdir.m4: New file.
651 * gnulib/import/m4/realloc.m4: New file.
652 * gnulib/import/m4/rewinddir.m4: New file.
653 * gnulib/import/m4/save-cwd.m4: New file.
654 * gnulib/import/m4/strdup.m4: New file.
655 * gnulib/import/m4/strerror.m4: New file.
656 * gnulib/import/m4/unistd-safer.m4: New file.
657 * gnulib/import/mempcpy.c: New file.
658 * gnulib/import/memrchr.c: New file.
659 * gnulib/import/msvc-inval.c: New file.
660 * gnulib/import/msvc-inval.h: New file.
661 * gnulib/import/msvc-nothrow.c: New file.
662 * gnulib/import/msvc-nothrow.h: New file.
663 * gnulib/import/open.c: New file.
664 * gnulib/import/openat-die.c: New file.
665 * gnulib/import/openat-priv.h: New file.
666 * gnulib/import/openat-proc.c: New file.
667 * gnulib/import/openat.c: New file.
668 * gnulib/import/openat.h: New file.
669 * gnulib/import/opendir.c: New file.
670 * gnulib/import/pipe-safer.c: New file.
671 * gnulib/import/readdir.c: New file.
672 * gnulib/import/realloc.c: New file.
673 * gnulib/import/rewinddir.c: New file.
674 * gnulib/import/save-cwd.c: New file.
675 * gnulib/import/save-cwd.h: New file.
676 * gnulib/import/strdup.c: New file.
677 * gnulib/import/strerror-override.c: New file.
678 * gnulib/import/strerror-override.h: New file.
679 * gnulib/import/strerror.c: New file.
680 * gnulib/import/unistd--.h: New file.
681 * gnulib/import/unistd-safer.h: New file.
682 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
683 "getcwd" and "glob".
684 * ser-tcp.c: Undefine "close" before redefining it.
685
686 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
687
688 * guile/scm-value.c (gdbscm_value_address): Initialize address,
689 get rid of res_val.
690
691 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
692
693 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
694 <sol2,sparc>: Likewise.
695 <sol2-64,i386>: Likewise.
696
697 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
698 -Wdeprecated-declarations on *-*-solaris*.
699 * configure: Regenerate.
700
701 * procfs.c: Include "nat/inferior.h".
702 (procfs_info_proc): Fix typo.
703
704 2017-09-21 Kevin Buettner <kevinb@redhat.com>
705
706 * remote.c (vector): Include.
707 (struct private_thread_info): Add field, thread_handle.
708 (free_private_thread_info): Deallocate storage associated with
709 thread handle.
710 (get_private_info_thread): Initialize `thread_handle' field.
711 (struct thread_item): Add field, thread_handle.
712 (clear_threads_listing_context): Deallocate storage associated
713 with thread handle.
714 (start_thread): Add support for "handle" attribute.
715 (thread_attributes): Add "handle".
716 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
717 field.
718 (remote_update_thread_list): Update thread_handle.
719 (remote_thread_handle_to_thread_info): New function.
720 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
721
722 2017-09-21 Kevin Buettner <kevinb@redhat.com>
723
724 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
725 function.
726 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
727 * python/python-internal.h (thread_object_type): Declare.
728
729 2017-09-21 Kevin Buettner <kevinb@redhat.com>
730
731 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
732 (target_thread_handle_to_thread_info): Declare.
733 * target.c (target_thread_handle_to_thread_info): New function.
734 * target-delegates.c: Regenerate.
735 * gdbthread.h (find_thread_by_handle): Declare.
736 * thread.c (find_thread_by_handle): New function.
737 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
738 function.
739 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
740
741 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
742
743 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
744
745 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
746
747 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
748
749 2017-09-21 Yao Qi <yao.qi@linaro.org>
750
751 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
752 to gdb_target_obs.
753
754 2017-09-20 Tom Tromey <tom@tromey.com>
755
756 * breakpoint.c (struct counted_command_line): Remove.
757 (breakpoint_commands): Update.
758 (alloc_counted_command_line, incref_counted_command_line)
759 (decref_counted_command_line, do_cleanup_counted_command_line)
760 (make_cleanup_decref_counted_command_line): Remove.
761 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
762 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
763 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
764 (save_breakpoints): Update.
765 * breakpoint.h (counted_command_line): Now a typedef to
766 shared_ptr.
767 (struct breakpoint) <commands>: Now a counted_command_line.
768 (struct bpstats) <command>: Likewise.
769
770 2017-09-20 Tom Tromey <tom@tromey.com>
771
772 * breakpoint.c (struct commands_info, do_map_commands_command):
773 Remove.
774 (commands_command_1): Update.
775 (iterate_over_related_breakpoints): Take a function_view.
776 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
777 (delete_command): Update.
778 (map_breakpoint_numbers): Take a function_view.
779 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
780 (disable_command): Update.
781 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
782 (enable_command): Update.
783 (struct disp_data, do_enable_breakpoint_disp)
784 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
785 (do_map_enable_delete_breakpoint): Remove.
786 (enable_once_command, enable_count_command, enable_delete_command)
787 (delete_trace_variable_command): Update.
788
789 2017-09-20 Tom Tromey <tom@tromey.com>
790
791 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
792 (bpstat_clear): Use delete.
793 (bpstats): New constructors.
794 (bpstat_copy, bpstat_stop_status): Use new.
795 (dprintf_after_condition_true): Update.
796 * breakpoint.h (bpstats::bpstats): Add constructors.
797 (bpstats::~bpstats): Add destructor.
798
799 2017-09-20 Pedro Alves <palves@redhat.com>
800
801 * eval.c (make_params): Delete, refactored as ...
802 (class fake_method): ... this new type's ctor.
803 (fake_method::~fake_method): New.
804 (evaluate_subexp_standard): Use 'fake_method'.
805
806 2017-09-20 Tom Tromey <tom@tromey.com>
807
808 * windows-nat.c (get_windows_debug_event, windows_wait)
809 (do_initial_windows_stuff, windows_attach): Update.
810 * utils.c (vwarning, internal_vproblem): Update.
811 (ui_unregister_input_event_handler_cleanup)
812 (prepare_to_handle_input): Remove.
813 (class scoped_input_handler): New.
814 (defaulted_query, prompt_for_continue): Update.
815 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
816 Update.
817 * top.c (undo_terminal_modifications_before_exit): Update.
818 * target/target.h (target_terminal_init, target_terminal_inferior)
819 (target_terminal_ours): Don't declare.
820 (class target_terminal): New.
821 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
822 (target_terminal_ours_for_output)
823 (make_cleanup_restore_target_terminal): Don't declare.
824 (target_terminal_info): Remove.
825 * target.c (enum terminal_state, terminal_state): Remove.
826 (target_terminal::terminal_state): Define.
827 (target_terminal::init): Rename from target_terminal_init.
828 (target_terminal::inferior): Rename from
829 target_terminal_inferior.
830 (target_terminal::ours): Rename from target_terminal_ours.
831 (target_terminal::ours_for_output): Rename from
832 target_terminal_ours_for_output.
833 (target_terminal::info): New method.
834 (cleanup_restore_target_terminal)
835 (make_cleanup_restore_target_terminal): Remove.
836 * solib.c (handle_solib_event): Update.
837 * remote.c (remote_serial_quit_handler): Update.
838 (remote_terminal_inferior, remote_wait_as): Update.
839 * record-full.c (record_full_wait_1): Update.
840 * nto-procfs.c (procfs_create_inferior): Update.
841 * nat/fork-inferior.c (startup_inferior): Update.
842 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
843 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
844 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
845 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
846 (mi_breakpoint_created, mi_breakpoint_deleted)
847 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
848 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
849 (mi_user_selected_context_changed, report_initial_inferior):
850 Update.
851 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
852 (linux_nat_terminal_inferior): Update.
853 * infrun.c (follow_fork_inferior)
854 (handle_vfork_child_exec_or_exit, do_target_resume)
855 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
856 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
857 Update.
858 * inflow.c (child_terminal_init, info_terminal_command): Update.
859 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
860 (attach_command): Update.
861 * infcall.c (call_thread_fsm_should_stop): Update.
862 * gnu-nat.c (gnu_attach): Update.
863 * extension.c (struct active_ext_lang_state)
864 (restore_active_ext_lang): Update.
865 * exceptions.c (print_flush): Update.
866 * event-top.c (async_enable_stdin, default_quit_handler): Update.
867 (struct quit_handler_cleanup_data, restore_quit_handler)
868 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
869 Remove.
870 * cp-support.c (gdb_demangle): Update.
871 * breakpoint.c (update_inserted_breakpoint_locations)
872 (insert_breakpoint_locations, handle_jit_event)
873 (disable_breakpoints_in_unloaded_shlib): Update.
874 * annotate.c (annotate_breakpoints_invalid)
875 (annotate_frames_invalid): Update.
876
877 2017-09-20 Tom Tromey <tom@tromey.com>
878
879 * main.c (catch_command_errors): Rename from
880 catch_command_errors_const.
881 (captured_main_1): Update.
882
883 2017-09-20 Pedro Alves <palves@redhat.com>
884
885 * cli/cli-cmds.c (list_command): Use print_sal_location.
886 (print_sal_location): New function.
887 (ambiguous_line_spec): Use print_sal_location.
888 * linespec.c (symbol_to_sal): Record the symbol in the sal.
889 * symtab.c (find_function_start_sal): Likewise.
890 * symtab.h (symtab_and_line::symbol): New field.
891
892 2017-09-20 Pedro Alves <palves@redhat.com>
893
894 * linespec.c (minsym_found): Handle non-text minsyms.
895 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
896
897 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
898
899 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
900 backslash.
901
902 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
903
904 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
905 vmovups instead vmovaps.
906 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
907
908 2017-09-19 John Baldwin <jhb@FreeBSD.org>
909
910 * NEWS (Changes since GDB 8.0): Add starti.
911 * infcmd.c (enum run_break): New.
912 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
913 case.
914 (run_command): Use enum run_how.
915 (start_command): Likewise.
916 (starti_command): New function.
917 (RUN_ARGS_HELP): New macro.
918 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
919 commands. Add starti command.
920
921 2017-09-19 Yao Qi <yao.qi@linaro.org>
922
923 * Makefile.in (monitor.o): Remove the rule.
924
925 2017-09-19 Yao Qi <yao.qi@linaro.org>
926
927 * annotate.h (struct annotate_arg_emitter): Use
928 DISABLE_COPY_AND_ASSIGN.
929 * common/refcounted-object.h (refcounted_object): Likewise.
930 * completer.h (struct completion_result): Likewise.
931 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
932 * filename-seen-cache.h (filename_seen_cache): Likewise.
933 * gdbcore.h (thread_section_name): Likewise.
934 * gdb_regex.h (compiled_regex): Likewise.
935 * gdbthread.h (scoped_restore_current_thread): Likewise.
936 * inferior.h (scoped_restore_current_inferior): Likewise.
937 * jit.c (jit_reader): Likewise.
938 * linespec.h (struct linespec_result): Likewise.
939 * mi/mi-parse.h (struct mi_parse): Likewise.
940 * nat/fork-inferior.c (execv_argv): Likewise.
941 * progspace.h (scoped_restore_current_program_space): Likewise.
942 * python/python-internal.h (class gdbpy_enter): Likewise.
943 * regcache.h (regcache): Likewise.
944 * target-descriptions.c (struct tdesc_reg): Likewise.
945 (struct tdesc_type): Likewise.
946 (struct tdesc_feature): Likewise.
947 * ui-out.h (ui_out_emit_type): Likewise.
948
949 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
950
951 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
952 label abort_expression.
953
954 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
955
956 * common/buffer.c (buffer_xml_printf): Adjust.
957 * common/xml-utils.c (xml_escape_text): Change return type to
958 std::string, update code accordingly.
959 * common/xml-utils.h (xml_escape_text): Change return type to
960 std::string.
961 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
962 * windows-tdep.c (windows_xfer_shared_library): Adjust.
963 * unittests/xml-utils-selftests.c (test_xml_escape_text):
964 Adjust.
965
966 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
967
968 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
969 (SUBDIR_UNITTESTS_OBS): Add new object file.
970 * unittests/xml-utils-selftests.c: New file.
971
972 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
973
974 * common/selftest.h (selftest): New struct/interface.
975 (register_test): Add name parameter, add new overload.
976 (run_tests): Add filter parameter.
977 (for_each_selftest_ftype): New typedef.
978 (for_each_selftest): New declaration.
979 * common/selftest.c (tests): Change type to
980 map<string, unique_ptr<selftest>>.
981 (simple_selftest): New struct.
982 (register_test): New function.
983 (register_test): Add name parameter and use it.
984 (run_tests): Add filter parameter and use it. Add prints.
985 Adjust to vector -> map change.
986 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
987 registering selftests.
988 * arm-tdep.c (_initialize_arm_tdep): Likewise.
989 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
990 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
991 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
992 * findvar.c (_initialize_findvar): Likewise.
993 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
994 * maint.c (maintenance_selftest): Update call to run_tests.
995 (maintenance_info_selftests): New function.
996 (_initialize_maint_cmds): Register "maintenance info selftests"
997 command. Update "maintenance selftest" doc.
998 * regcache.c (_initialize_regcache): Add names when registering
999 selftests.
1000 * rust-exp.y (_initialize_rust_exp): Likewise.
1001 * selftest-arch.c (gdbarch_selftest): New struct.
1002 (gdbarch_tests): Remove.
1003 (register_test_foreach_arch): Add name parameter. Call
1004 register_test.
1005 (tests_with_arch): Remove, move most content to
1006 gdbarch_selftest::operator().
1007 (_initialize_selftests_foreach_arch): Remove.
1008 * selftest-arch.h (register_test_foreach_arch): Add name
1009 parameter.
1010 (run_tests_with_arch): New declaration.
1011 * utils-selftests.c (_initialize_utils_selftests): Add names
1012 when registering selftests.
1013 * utils.c (_initialize_utils): Likewise.
1014 * unittests/array-view-selftests.c
1015 (_initialize_array_view_selftests): Likewise.
1016 * unittests/environ-selftests.c (_initialize_environ_selftests):
1017 Likewise.
1018 * unittests/function-view-selftests.c
1019 (_initialize_function_view_selftests): Likewise.
1020 * unittests/offset-type-selftests.c
1021 (_initialize_offset_type_selftests): Likewise.
1022 * unittests/optional-selftests.c
1023 (_initialize_optional_selftests): Likewise.
1024 * unittests/scoped_restore-selftests.c
1025 (_initialize_scoped_restore_selftests): Likewise.
1026 * NEWS: Document "maintenance selftest" and "maint info
1027 selftests".
1028
1029 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1030
1031 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
1032 scoped_restore.
1033
1034 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
1035
1036 * mi/mi-main.c (mi_load_progress): Make uiout variable
1037 a unique_ptr.
1038
1039 2017-09-15 Pedro Alves <palves@redhat.com>
1040
1041 * compile/compile-c-types.c (convert_enum, convert_int)
1042 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
1043
1044 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
1045
1046 * dwarf2read.c (copy_string): Remove.
1047 (parse_macro_definition): Replace copy_string with savestring.
1048
1049 2017-09-15 Yao Qi <yao.qi@linaro.org>
1050
1051 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
1052 gdb_target_obs.
1053 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
1054 Likewise.
1055 (i[34567]86-*-linux*): Likewise.
1056
1057 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1058
1059 * dwarf2expr.h (dwarf_stack_value): Add constructor.
1060 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
1061 <stack>: Change type to std::vector.
1062 <stack_len, stack_allocated>: Remove.
1063 <grow_stack>: Remove.
1064 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
1065 (dwarf_expr_context::~dwarf_expr_context): Remove.
1066 (dwarf_expr_context::grow_stack): Remove.
1067 (dwarf_expr_context::push): Adjust.
1068 (dwarf_expr_context::pop): Adjust.
1069 (dwarf_expr_context::fetch): Adjust.
1070 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
1071 (dwarf_expr_context::stack_empty_p): Adjust.
1072 (dwarf_expr_context::execute_stack_op): Adjust.
1073
1074 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1075
1076 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
1077 return type to bool.
1078 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
1079
1080 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1081
1082 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
1083 Change type to bool.
1084 (dwarf_stack_value) <in_stack_memory>: Likewise.
1085 (dwarf_expr_context) <push_address>: Change parameter type to
1086 bool.
1087 <fetch_in_stack_memory>: Change return type to bool.
1088 <push>: Change parameter type to bool.
1089 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
1090 to bool.
1091 (dwarf_expr_context::push_address): Likewise.
1092 (dwarf_expr_context::fetch_in_stack_memory): Change return type
1093 to bool.
1094 (dwarf_expr_context::execute_stack_op): Adjust.
1095 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
1096
1097 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1098
1099 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
1100 (struct dwarf_expr_context) <n_pieces>: Remove.
1101 <pieces>: Change type to std::vector.
1102 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
1103 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
1104 pieces.
1105 (dwarf_expr_context::add_piece): Adjust.
1106 * dwarf2loc.c (struct piece_closure): Initialize fields.
1107 <n_pieces>: Remove.
1108 <pieces>: Change type to std::vector.
1109 (allocate_piece_closure): Adjust, change parameter to
1110 std::vector rvalue and std::move it to piece_closure.
1111 (rw_pieced_value): Adjust.
1112 (check_pieced_synthetic_pointer): Adjust.
1113 (indirect_synthetic_pointer): Adjust.
1114 (coerce_pieced_ref): Adjust.
1115 (free_pieced_value_closure): Adjust. Use delete to free
1116 piece_closure.
1117 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
1118 to allocate_piece_closure.
1119 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
1120
1121 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1122
1123 * probe.h (probe_ops_cp): Remove typedef.
1124 (DEF_VEC_P (probe_ops_cp)): Remove.
1125 (all_probe_ops): Change type to std::vector.
1126 * probe.c (info_probes_for_ops): Adjust to vector change.
1127 (probe_linespec_to_ops): Likewise.
1128 (all_probe_ops): Change type to std::vector.
1129 (_initialize_probe): Adjust to vector change.
1130 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
1131 * elfread.c (elf_get_probes): Likewise.
1132 * stap-probe.c (_initialize_stap_probe): Likewise.
1133
1134 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1135
1136 * probe.h (struct bound_probe): Define constructors.
1137 * probe.c (bound_probe_s): Remove typedef.
1138 (DEF_VEC_O (bound_probe_s)): Remove VEC.
1139 (collect_probes): Change return type to std::vector, remove
1140 cleanup.
1141 (compare_probes): Return bool, change parameter type. Change
1142 semantic to "less than".
1143 (gen_ui_out_table_header_info): Change parameter to std::vector
1144 and update.
1145 (exists_probe_with_pops): Likewise.
1146 (info_probes_for_ops): Update to std::vector change.
1147 (enable_probes_command): Likewise.
1148 (disable_probes_command): Likewise.
1149
1150 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1151
1152 * probe.h (struct probe_ops) <get_probes>: Change parameter from
1153 vec to std::vector.
1154 * probe.c (parse_probes_in_pspace): Update.
1155 (find_probes_in_objfile): Update.
1156 (find_probe_by_pc): Update.
1157 (collect_probes): Update.
1158 (probe_any_get_probes): Update.
1159 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
1160 return type to reference to std::vector.
1161 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
1162 std::vector and update.
1163 (dtrace_process_dof): Likewise.
1164 (dtrace_get_probes): Likewise.
1165 * elfread.c (elf_get_probes): Change return type to std::vector,
1166 store an std::vector in bfd_data.
1167 (probe_key_free): Update to std::vector.
1168 * stap-probe.c (handle_stap_probe): Change parameter to
1169 std::vector and update.
1170 (stap_get_probes): Likewise.
1171 * symfile-debug.c (debug_sym_get_probes): Change return type to
1172 std::vector and update.
1173
1174 2017-09-11 Tom Tromey <tom@tromey.com>
1175
1176 * breakpoint.c (program_breakpoint_here_p): Update.
1177 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
1178 from make_show_memory_breakpoints_cleanup. Return a
1179 scoped_restore_tmpl<int>.
1180 (restore_show_memory_breakpoints): Remove.
1181 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
1182 * mem-break.c (memory_validate_breakpoint): Update.
1183 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
1184 (ia64_memory_remove_breakpoint): Update.
1185 (ia64_breakpoint_from_pc): Update.
1186 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
1187 from make_show_memory_breakpoints_cleanup.
1188
1189 2017-09-11 Tom Tromey <tom@tromey.com>
1190
1191 * d-namespace.c (d_lookup_symbol): Use std::string.
1192 (find_symbol_in_baseclass): Likewise.
1193
1194 2017-09-11 Tom Tromey <tom@tromey.com>
1195
1196 * ctf.c (ctf_start): Use std::string.
1197
1198 2017-09-11 Tom Tromey <tom@tromey.com>
1199
1200 * ada-lang.c (is_known_support_routine): Update.
1201 (ada_unhandled_exception_name_addr_from_raise): Update.
1202 * guile/scm-frame.c (gdbscm_frame_name): Update.
1203 * python/py-frame.c (frapy_name): Update.
1204 (frapy_function): Update.
1205 * stack.h (find_frame_funname): Update.
1206 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
1207 (print_frame): Update.
1208
1209 2017-09-11 Tom Tromey <tom@tromey.com>
1210
1211 * findcmd.c (put_bits): Take a gdb::byte_vector.
1212 (parse_find_args): Return gdb::byte_vector. "args" now const.
1213 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
1214 cleanups.
1215 (find_command): Update.
1216
1217 2017-09-11 Tom Tromey <tom@tromey.com>
1218
1219 * cli/cli-script.c (class scoped_restore_hook_in): New.
1220 (clear_hook_in_cleanup): Remove.
1221 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
1222 scoped_restore_hook_in.
1223
1224 2017-09-11 Tom Tromey <tom@tromey.com>
1225
1226 * cli/cli-script.c (restore_interp): Remove.
1227 (read_command_lines): Use scoped_restore_interp.
1228 * interps.c (scoped_restore_interp::set_temp): Rename from
1229 interp_set_temp.
1230 * interps.h (class scoped_restore_interp): New.
1231 (interp_set_temp): Remove.
1232
1233 2017-09-11 Tom Tromey <tom@tromey.com>
1234
1235 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
1236 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
1237 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
1238 scoped_restore.
1239 (mi_cmd_break_insert_1): Update.
1240 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
1241 scoped_restore.
1242
1243 2017-09-11 Tom Tromey <tom@tromey.com>
1244
1245 * demangle.c (demangle_command): Update.
1246 * breakpoint.c (disable_command): Update.
1247 (enable_command): Update.
1248 (find_location_by_number): Make "number" const. Use
1249 get_number_trailer.
1250 * cli/cli-utils.c (extract_arg): Return std::string.
1251 * probe.c (parse_probe_linespec): Update. Change types.
1252 (collect_probes): Take string arguments.
1253 (parse_probe_linespec): Likewise.
1254 (info_probes_for_ops): Update.
1255 (enable_probes_command): Update.
1256 (disable_probes_command): Update.
1257 * break-catch-sig.c (catch_signal_split_args): Update.
1258 * mi/mi-parse.c (mi_parse): Update.
1259
1260 2017-09-11 Tom Tromey <tom@tromey.com>
1261
1262 * language.h (language_enum): Make argument const.
1263 * language.c (language_enum): Make argument const.
1264
1265 2017-09-11 Tom Tromey <tom@tromey.com>
1266
1267 * common/common-utils.h (skip_to_space): Remove macro, redeclare
1268 as function.
1269 (skip_to_space): Rename from skip_to_space_const.
1270 * common/common-utils.c (skip_to_space): New function.
1271 (skip_to_space): Rename from skip_to_space_const.
1272 * cli/cli-utils.h (get_number): Rename from get_number_const.
1273 (extract_arg): Rename from extract_arg_const.
1274 * cli/cli-utils.c (get_number): Rename from get_number_const.
1275 (extract_arg): Rename from extract_arg_const.
1276 (number_or_range_parser::get_number): Use ::get_number.
1277 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
1278 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
1279 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
1280 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
1281 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
1282 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
1283 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
1284 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
1285
1286 2017-09-11 Tom Tromey <tom@tromey.com>
1287
1288 * python/python.c (do_start_initialization): Use
1289 py-event-types.def to initialize types.
1290 Define all object type structures.
1291 * python/python-internal.h: Don't declare event initialization
1292 functions.
1293 * python/py-threadevent.c (thread_event_object_type): Don't
1294 define.
1295 * python/py-stopevent.c (stop_event_object_type): Don't define.
1296 * python/py-signalevent.c (signal_event_object_type): Don't
1297 declare or define.
1298 * python/py-newobjfileevent.c (new_objfile_event_object_type)
1299 (clear_objfiles_event_object_type): Don't declare or define.
1300 * python/py-infevents.c (inferior_call_pre_event_object_type)
1301 (inferior_call_post_event_object_type)
1302 (register_changed_event_object_type)
1303 (memory_changed_event_object_type): Don't declare or define.
1304 * python/py-inferior.c (new_thread_event_object_type)
1305 (new_inferior_event_object_type)
1306 (inferior_deleted_event_object_type): Don't declare or define.
1307 * python/py-exitedevent.c (exited_event_object_type): Don't
1308 declare or define.
1309 * python/py-evts.c (gdbpy_initialize_py_events): Use
1310 py-all-events.def.
1311 * python/py-events.h (thread_event_object_type): Don't declare.
1312 (events_object): Use py-all-events.def.
1313 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
1314 py-event-types.def.
1315 * python/py-event-types.def: New file.
1316 * python/py-continueevent.c (create_continue_event_object): Don't
1317 declare or define.
1318 * python/py-bpevent.c (breakpoint_event_object_type): Don't
1319 declare or define.
1320 * python/py-all-events.def: New file.
1321
1322 2017-09-11 Tom Tromey <tom@tromey.com>
1323
1324 * python/py-threadevent.c (create_thread_event_object): Return
1325 gdbpy_ref.
1326 * python/py-stopevent.h (create_stop_event_object)
1327 (create_breakpoint_event_object, create_signal_event_object):
1328 Update.
1329 * python/py-stopevent.c (create_stop_event_object): Return
1330 gdbpy_ref.
1331 (emit_stop_event): Update.
1332 * python/py-signalevent.c (create_signal_event_object): Return
1333 gdbpy_ref.
1334 * python/py-infevents.c (create_inferior_call_event_object):
1335 Update.
1336 * python/py-event.h (create_event_object)
1337 (create_thread_event_object): Update.
1338 * python/py-event.c (create_event_object): Return gdbpy_ref.
1339 * python/py-continueevent.c: Return gdbpy_ref.
1340 * python/py-bpevent.c (create_breakpoint_event_object): Return
1341 gdbpy_ref.
1342
1343 2017-09-11 Tom Tromey <tom@tromey.com>
1344
1345 PR python/15622:
1346 * NEWS: Add entry.
1347 * python/python.c (do_start_initialization): Initialize new event
1348 types.
1349 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
1350 (gdbpy_initialize_inferior_deleted_event)
1351 (gdbpy_initialize_new_thread_event): Declare.
1352 * python/py-threadevent.c (create_thread_event_object): Add option
1353 "thread" parameter.
1354 * python/py-inferior.c (new_thread_event_object_type)
1355 (new_inferior_event_object_type)
1356 (inferior_deleted_event_object_type): Declare.
1357 (python_new_inferior, python_inferior_deleted): New functions.
1358 (add_thread_object): Emit new_thread event.
1359 (gdbpy_initialize_inferior): Attach new functions to corresponding
1360 observers.
1361 (new_thread, new_inferior, inferior_deleted): Define new event
1362 types.
1363 * python/py-evts.c (gdbpy_initialize_py_events): Add new
1364 registries.
1365 * python/py-events.h (events_object) <new_inferior,
1366 inferior_deleted, new_thread>: New fields.
1367 * python/py-event.h (create_thread_event_breakpoint): Add optional
1368 "thread" parameter.
1369
1370 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
1371
1372 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
1373 check current_ui instead.
1374 (internal_vproblem): Likewise.
1375
1376 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
1377
1378 * thread.c (print_thread_info_1): Remove unnecessary calls to
1379 uiout->is_mi_like_p.
1380
1381 2017-09-09 Tom Tromey <tom@tromey.com>
1382
1383 * namespace.h (add_using_directive): Update.
1384 * namespace.c (add_using_directive): Change type of excludes to
1385 std::vector.
1386 * dwarf2read.c (read_import_statement): Use std::vector.
1387 (read_namespace): Update.
1388 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1389
1390 2017-09-09 Tom Tromey <tom@tromey.com>
1391
1392 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
1393
1394 2017-09-09 Tom Tromey <tom@tromey.com>
1395
1396 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
1397
1398 2017-09-09 Tom Tromey <tom@tromey.com>
1399
1400 * stack.c (func_command): Use gdb::def_vector.
1401
1402 2017-09-09 Tom Tromey <tom@tromey.com>
1403
1404 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
1405 ui_out_emit_list, ui_out_emit_tuple.
1406 (mi_cmd_var_update): Likewise.
1407
1408 2017-09-09 Tom Tromey <tom@tromey.com>
1409
1410 * mi/mi-interp.c (mi_user_selected_context_changed): Use
1411 ui_out_redirect_pop.
1412 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
1413 ui_out_redirect_pop.
1414 * utils.c (do_ui_out_redirect_pop)
1415 (make_cleanup_ui_out_redirect_pop): Remove.
1416 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
1417 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
1418 * ui-out.h (ui_out_redirect_pop): New class.
1419
1420 2017-09-09 Tom Tromey <tom@tromey.com>
1421
1422 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
1423 (list_available_thread_groups, mi_cmd_list_thread_groups)
1424 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
1425 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
1426 Likewise.
1427
1428 2017-09-09 Tom Tromey <tom@tromey.com>
1429
1430 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
1431 ui_out_emit_tuple.
1432
1433 2017-09-09 Tom Tromey <tom@tromey.com>
1434
1435 * target.c (flash_erase_command): Use ui_out_emit_tuple.
1436 * stack.c (print_frame): Use ui_out_emit_tuple.
1437 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
1438 (info_spu_mailbox_command, info_spu_dma_command)
1439 (info_spu_proxydma_command): Likewise.
1440 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
1441 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
1442 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
1443 ui_out_emit_tuple.
1444 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
1445
1446 2017-09-09 Tom Tromey <tom@tromey.com>
1447
1448 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
1449 (class ui_out_emit_table): Update comment.
1450 * ui-out.c (do_cleanup_table_end)
1451 (make_cleanup_ui_out_table_begin_end): Remove.
1452 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
1453 (info_spu_dma_cmdlist): Likewise.
1454 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
1455 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
1456 ui_out_emit_table.
1457
1458 2017-09-09 Tom Tromey <tom@tromey.com>
1459
1460 * thread.c (print_thread_info_1): Use ui_out_emit_table,
1461 ui_out_emit_list, gdb::optional.
1462
1463 2017-09-09 John Baldwin <jhb@FreeBSD.org>
1464
1465 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
1466 prototype.
1467 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
1468 prototype.
1469 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
1470 prototype.
1471 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
1472 * ada-exp.y: Remove _initialize_ada_exp prototype.
1473 * ada-lang.c: Remove _initialize_ada_language prototype.
1474 * ada-tasks.c: Remove _initialize_tasks prototype.
1475 * addrmap.c: Remove _initialize_addrmap prototype.
1476 * agent.c: Remove _initialize_agent prototype.
1477 * aix-thread.c: Remove _initialize_aix_thread prototype.
1478 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
1479 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
1480 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
1481 prototype.
1482 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
1483 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
1484 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
1485 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
1486 prototype.
1487 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
1488 prototype.
1489 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
1490 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
1491 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
1492 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
1493 prototype.
1494 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
1495 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
1496 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
1497 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
1498 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
1499 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
1500 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
1501 prototype.
1502 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
1503 prototype.
1504 * annotate.c: Remove _initialize_annotate prototype.
1505 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
1506 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
1507 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
1508 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
1509 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
1510 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
1511 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
1512 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
1513 prototype.
1514 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
1515 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
1516 * auto-load.c: Remove _initialize_auto_load prototype.
1517 * auxv.c: Remove _initialize_auxv prototype.
1518 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
1519 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
1520 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
1521 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
1522 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
1523 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
1524 prototype.
1525 * break-catch-throw.c: Remove _initialize_break_catch_throw
1526 prototype.
1527 * breakpoint.c: Remove _initialize_breakpoint prototype.
1528 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
1529 * btrace.c: Remove _initialize_btrace prototype.
1530 * charset.c: Remove _initialize_charset prototype.
1531 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
1532 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
1533 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
1534 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
1535 * cli/cli-script.c: Remove _initialize_cli_script prototype.
1536 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
1537 * coffread.c: Remove _initialize_coffread prototype.
1538 * compile/compile.c: Remove _initialize_compile prototype.
1539 * complaints.c: Remove _initialize_complaints prototype.
1540 * completer.c: Remove _initialize_completer prototype.
1541 * copying.awk: Remove _initialize_copying prototype.
1542 * copying.c: Regenerate.
1543 * core-regset.c: Remove _initialize_core_regset prototype.
1544 * corefile.c: Remove _initialize_core prototype.
1545 * corelow.c: Remove _initialize_corelow prototype.
1546 * cp-abi.c: Remove _initialize_cp_abi prototype.
1547 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
1548 * cp-support.c: Remove _initialize_cp_support prototype.
1549 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
1550 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
1551 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
1552 * ctf.c: Remove _initialize_ctf prototype.
1553 * d-lang.c: Remove _initialize_d_language prototype.
1554 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
1555 prototype.
1556 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
1557 * dbxread.c: Remove _initialize_dbxread prototype.
1558 * dcache.c: Remove _initialize_dcache prototype.
1559 * demangle.c: Remove _initialize_demangler prototype.
1560 * disasm-selftests.c: Remove _initialize_disasm_selftests
1561 prototype.
1562 * disasm.c: Remove _initialize_disasm prototype.
1563 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
1564 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
1565 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
1566 prototype.
1567 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
1568 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
1569 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
1570 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
1571 * elfread.c: Remove _initialize_elfread prototype.
1572 * exec.c: Remove _initialize_exec prototype.
1573 * extension.c: Remove _initialize_extension prototype.
1574 * f-lang.c: Remove _initialize_f_language prototype.
1575 * f-valprint.c: Remove _initialize_f_valprint prototype.
1576 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
1577 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
1578 * filesystem.c: Remove _initialize_filesystem prototype.
1579 * findcmd.c: Remove _initialize_mem_search prototype.
1580 * fork-child.c: Remove _initialize_fork_child prototype.
1581 * frame-base.c: Remove _initialize_frame_base prototype.
1582 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
1583 * frame.c: Remove _initialize_frame prototype.
1584 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
1585 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
1586 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
1587 * gcore.c: Remove _initialize_gcore prototype.
1588 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
1589 * gdbarch.c: Regenerate.
1590 * gdbarch.sh: Remove _initialize_gdbarch prototype.
1591 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
1592 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
1593 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
1594 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
1595 * go-lang.c: Remove _initialize_go_language prototype.
1596 * go32-nat.c: Remove _initialize_go32_nat prototype.
1597 * guile/guile.c: Remove _initialize_guile prototype.
1598 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
1599 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
1600 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
1601 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
1602 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
1603 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
1604 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
1605 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
1606 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
1607 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
1608 prototype.
1609 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
1610 prototype.
1611 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
1612 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
1613 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
1614 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
1615 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
1616 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
1617 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
1618 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
1619 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
1620 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
1621 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
1622 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
1623 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
1624 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
1625 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
1626 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
1627 prototype.
1628 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
1629 prototype.
1630 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
1631 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
1632 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
1633 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
1634 * infcall.c: Remove _initialize_infcall prototype.
1635 * infcmd.c: Remove _initialize_infcmd prototype.
1636 * inferior.c: Remove _initialize_inferiors prototype.
1637 * inflow.c: Remove _initialize_inflow prototype.
1638 * infrun.c: Remove _initialize_infrun prototype.
1639 * interps.c: Remove _initialize_interpreter prototype.
1640 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
1641 * jit.c: Remove _initialize_jit prototype.
1642 * language.c: Remove _initialize_language prototype.
1643 * linux-fork.c: Remove _initialize_linux_fork prototype.
1644 * linux-nat.c: Remove _initialize_linux_nat prototype.
1645 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
1646 * linux-thread-db.c: Remove _initialize_thread_db prototype.
1647 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
1648 * m2-lang.c: Remove _initialize_m2_language prototype.
1649 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
1650 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
1651 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
1652 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
1653 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
1654 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
1655 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
1656 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
1657 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
1658 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
1659 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
1660 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
1661 * machoread.c: Remove _initialize_machoread prototype.
1662 * macrocmd.c: Remove _initialize_macrocmd prototype.
1663 * macroscope.c: Remove _initialize_macroscope prototype.
1664 * maint.c: Remove _initialize_maint_cmds prototype.
1665 * mdebugread.c: Remove _initialize_mdebugread prototype.
1666 * memattr.c: Remove _initialize_mem prototype.
1667 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
1668 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
1669 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
1670 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
1671 * mi/mi-main.c: Remove _initialize_mi_main prototype.
1672 * microblaze-linux-tdep.c: Remove
1673 _initialize_microblaze_linux_tdep prototype.
1674 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
1675 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
1676 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
1677 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
1678 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
1679 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
1680 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
1681 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
1682 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
1683 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
1684 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
1685 prototype.
1686 * mipsread.c: Remove _initialize_mipsread prototype.
1687 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
1688 prototype.
1689 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
1690 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
1691 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
1692 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
1693 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
1694 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
1695 prototype.
1696 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
1697 * nto-procfs.c: Remove _initialize_procfs prototype.
1698 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
1699 * objc-lang.c: Remove _initialize_objc_language prototype.
1700 * objfiles.c: Remove _initialize_objfiles prototype.
1701 * observer.c: Remove observer_test_first_notification_function,
1702 observer_test_second_notification_function,
1703 observer_test_third_notification_function, and
1704 _initialize_observer prototypes.
1705 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
1706 * osabi.c: Remove _initialize_gdb_osabi prototype.
1707 * osdata.c: Remove _initialize_osdata prototype.
1708 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
1709 * parse.c: Remove _initialize_parse prototype.
1710 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
1711 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
1712 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
1713 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
1714 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
1715 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
1716 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
1717 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
1718 * printcmd.c: Remove _initialize_printcmd prototype.
1719 * probe.c: Remove _initialize_probe prototype.
1720 * proc-api.c: Remove _initialize_proc_api prototype.
1721 * proc-events.c: Remove _initialize_proc_events prototype.
1722 * proc-service.c: Remove _initialize_proc_service prototype.
1723 * procfs.c: Remove _initialize_procfs prototype.
1724 * psymtab.c: Remove _initialize_psymtab prototype.
1725 * python/python.c: Remove _initialize_python prototype.
1726 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
1727 * record-btrace.c: Remove _initialize_record_btrace prototype.
1728 * record-full.c: Remove _initialize_record_full prototype.
1729 * record.c: Remove _initialize_record prototype.
1730 * regcache.c: Remove _initialize_regcache prototype.
1731 * reggroups.c: Remove _initialize_reggroup prototype.
1732 * remote-notif.c: Remove _initialize_notif prototype.
1733 * remote-sim.c: Remove _initialize_remote_sim prototype.
1734 * remote.c: Remove _initialize_remote prototype.
1735 * reverse.c: Remove _initialize_reverse prototype.
1736 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
1737 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
1738 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
1739 prototype.
1740 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
1741 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
1742 * rust-exp.y: Remove _initialize_rust_exp prototype.
1743 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
1744 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
1745 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
1746 * score-tdep.c: Remove _initialize_score_tdep prototype.
1747 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
1748 prototype.
1749 * ser-go32.c: Remove _initialize_ser_dos prototype.
1750 * ser-mingw.c: Remove _initialize_ser_windows prototype.
1751 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
1752 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
1753 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
1754 * serial.c: Remove _initialize_serial prototype.
1755 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
1756 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
1757 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
1758 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
1759 * skip.c: Remove _initialize_step_skip prototype.
1760 * sol-thread.c: Remove _initialize_sol_thread prototype.
1761 * solib-aix.c: Remove _initialize_solib_aix prototype.
1762 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
1763 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
1764 * solib-frv.c: Remove _initialize_frv_solib prototype.
1765 * solib-spu.c: Remove _initialize_spu_solib prototype.
1766 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
1767 * solib-target.c: Remove _initialize_solib_target prototype.
1768 * solib.c: Remove _initialize_solib prototype.
1769 * source.c: Remove _initialize_source prototype.
1770 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
1771 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
1772 prototype.
1773 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
1774 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
1775 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
1776 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
1777 prototype.
1778 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
1779 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
1780 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
1781 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
1782 prototype.
1783 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
1784 prototype.
1785 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
1786 prototype.
1787 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
1788 prototype.
1789 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
1790 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
1791 prototype.
1792 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
1793 prototype.
1794 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
1795 prototype.
1796 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
1797 prototype.
1798 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
1799 prototype.
1800 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
1801 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
1802 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
1803 * stabsread.c: Remove _initialize_stabsread prototype.
1804 * stack.c: Remove _initialize_stack prototype.
1805 * stap-probe.c: Remove _initialize_stap_probe prototype.
1806 * std-regs.c: Remove _initialize_frame_reg prototype.
1807 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
1808 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
1809 * symfile.c: Remove _initialize_symfile prototype.
1810 * symmisc.c: Remove _initialize_symmisc prototype.
1811 * symtab.c: Remove _initialize_symtab prototype.
1812 * target-dcache.c: Remove _initialize_target_dcache prototype.
1813 * target-descriptions.c: Remove _initialize_target_descriptions
1814 prototype.
1815 * thread.c: Remove _initialize_thread prototype.
1816 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
1817 prototype.
1818 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
1819 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
1820 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
1821 prototype.
1822 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
1823 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
1824 * tracefile.c: Remove _initialize_tracefile prototype.
1825 * tracepoint.c: Remove _initialize_tracepoint prototype.
1826 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
1827 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
1828 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
1829 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
1830 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
1831 * tui/tui-win.c: Remove _initialize_tui_win prototype.
1832 * tui/tui.c: Remove _initialize_tui prototype.
1833 * typeprint.c: Remove _initialize_typeprint prototype.
1834 * user-regs.c: Remove _initialize_user_regs prototype.
1835 * utils.c: Remove _initialize_utils prototype.
1836 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
1837 * valarith.c: Remove _initialize_valarith prototype.
1838 * valops.c: Remove _initialize_valops prototype.
1839 * valprint.c: Remove _initialize_valprint prototype.
1840 * value.c: Remove _initialize_values prototype.
1841 * varobj.c: Remove _initialize_varobj prototype.
1842 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
1843 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
1844 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
1845 * windows-nat.c: Remove _initialize_windows_nat,
1846 _initialize_check_for_gdb_ini, and _initialize_loadable
1847 prototypes.
1848 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
1849 * xcoffread.c: Remove _initialize_xcoffread prototype.
1850 * xml-support.c: Remove _initialize_xml_support prototype.
1851 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
1852 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
1853 prototype.
1854 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
1855 prototype.
1856 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
1857
1858 2017-09-08 Keith Seitz <keiths@redhat.com>
1859
1860 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
1861 field.
1862
1863 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
1864
1865 * f-valprint.c (f_val_print): Remove check for one byte
1866 sized integers. Remove printing of character type.
1867
1868 2017-09-08 Frank Penczek <frank.penczek@intel.com>
1869 Christoph Weinmann <christoph.t.weinmann@intel.com>
1870 Bernhard Heckel <bernhard.heckel@intel.com>
1871
1872 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
1873 to maintain proper indentation when printing pointers/refs.
1874
1875 2017-09-07 Joel Brobecker <brobecker@adacore.com>
1876
1877 GDB 8.0.1 released.
1878
1879 2017-09-07 Joel Brobecker <brobecker@adacore.com>
1880
1881 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
1882
1883 2017-09-05 Tom Tromey <tom@tromey.com>
1884
1885 * parse.c (funcall_chain): Now a std::vector.
1886 (start_arglist, end_arglist): Simplify.
1887 (free_funcalls): Remove.
1888 (parse_exp_in_context_1): Remove cleanup.
1889
1890 2017-09-05 Tom Tromey <tom@tromey.com>
1891
1892 * go-exp.y (go_parse): Don't create a cleanup.
1893
1894 2017-09-05 Tom Tromey <tom@tromey.com>
1895
1896 * d-exp.y (PrimaryExpression): Use std::string.
1897 (d_parse): Don't create a cleanup.
1898
1899 2017-09-05 Tom Tromey <tom@tromey.com>
1900
1901 * utils.c (do_clear_parser_state): Remove.
1902 (make_cleanup_clear_parser_state): Remove.
1903 * p-exp.y (pascal_parse): Use scoped_restore.
1904 * m2-exp.y (m2_parse): Use scoped_restore.
1905 * f-exp.y (f_parse): Use scoped_restore.
1906 * d-exp.y (d_parse): Use scoped_restore.
1907 * c-exp.y (c_parse): Use scoped_restore.
1908 * ada-exp.y (ada_parse): Use scoped_restore.
1909 * utils.h (make_cleanup_clear_parser_state): Remove.
1910
1911 2017-09-06 Keith Seitz <keiths@redhat.com>
1912
1913 * dwarf2read.c (dw2_linkage_name_attr): New function.
1914 (dw2_linkage_name): New function.
1915 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
1916 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
1917 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
1918
1919 2017-09-06 Kamil Rytarowski <n54@gmx.com>
1920
1921 * config/djgpp/djconfig.sh: Correct shell portability issue.
1922
1923 2017-09-06 Kamil Rytarowski <n54@gmx.com>
1924
1925 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
1926
1927 2017-09-06 John Baldwin <jhb@FreeBSD.org>
1928
1929 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
1930 * NEWS: Mention new FreeBSD/mips native configuration.
1931 * configure.host: Add aarch64*-*-freebsd*.
1932 * configure.nat: Likewise.
1933 * aarch64-fbsd-nat.c: New file.
1934
1935 2017-09-06 John Baldwin <jhb@FreeBSD.org>
1936
1937 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
1938 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
1939 * NEWS: Mention new FreeBSD/aarch64 target.
1940 * configure.tgt: Add aarch64*-*-freebsd*.
1941 * aarch64-fbsd-tdep.c: New file.
1942 * aarch64-fbsd-tdep.h: New file.
1943
1944 2017-09-06 Kamil Rytarowski <n54@gmx.com>
1945
1946 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
1947
1948 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1949
1950 * parse.c (find_minsym_type_and_address): Don't relocate addresses
1951 of TLS symbols.
1952
1953 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1954
1955 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
1956 call.
1957
1958 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1959
1960 * infrun.c (follow_exec): Call add_thread after
1961 target_find_description.
1962
1963 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1964
1965 * infrun.c (handle_inferior_event_1): When exec'ing, read
1966 stop_pc after follow_exec.
1967
1968 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1969
1970 * remote.c (process_g_packet): Update error message.
1971
1972 2017-09-05 Yao Qi <yao.qi@linaro.org>
1973
1974 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
1975 targets.
1976
1977 2017-09-05 Pedro Alves <palves@redhat.com>
1978
1979 * eval.c (eval_call, evaluate_funcall): New functions, factored
1980 out from ...
1981 (evaluate_subexp_standard): ... this.
1982
1983 2017-09-05 Yao Qi <yao.qi@linaro.org>
1984
1985 * amd64-tdep.c (amd64_target_description): Create target
1986 descriptions.
1987 (_initialize_amd64_tdep): Don't call functions
1988 initialize_tdesc_amd64_*. Add self tests.
1989 * arch/amd64.c (amd64_create_target_description): Add parameter
1990 is_linux. Call set_tdesc_osabi if is_linux is true.
1991 * arch/amd64.h (amd64_create_target_description): Update the
1992 declaration.
1993 * arch/i386.c (i386_create_target_description): Add parameter
1994 is_linux. Call set_tdesc_osabi if is_linux is true.
1995 * arch/i386.h (i386_create_target_description): Update
1996 declaration.
1997 * configure.tgt: Add i386.o to gdb_target_obs.
1998 * features/Makefile (XMLTOC): Remove i386/*.xml.
1999 * features/i386/amd64-avx-avx512.c: Remove.
2000 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
2001 * features/i386/amd64-avx-mpx.c: Remove.
2002 * features/i386/amd64-avx.c: Remove.
2003 * features/i386/amd64-mpx.c: Remove.
2004 * features/i386/amd64.c: Remove.
2005 * features/i386/i386-avx-avx512.c: Remove.
2006 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
2007 * features/i386/i386-avx-mpx.c: Remove.
2008 * features/i386/i386-avx.c: Remove.
2009 * features/i386/i386-mmx.c: Remove.
2010 * features/i386/i386-mpx.c: Remove.
2011 * features/i386/i386.c: Remove.
2012 * i386-tdep.c: Don't include features/i386/i386*.c., include
2013 target-descriptions.h and arch/i386.h.
2014 (i386_target_description): Create target descriptions.
2015 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
2016 functions. Do self tests.
2017
2018 2017-09-05 Yao Qi <yao.qi@linaro.org>
2019
2020 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
2021 * features/i386/amd64-avx-avx512-linux.c: Removed.
2022 * features/i386/amd64-avx-linux.c: Removed.
2023 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
2024 * features/i386/amd64-avx-mpx-linux.c: Removed.
2025 * features/i386/amd64-linux.c: Removed.
2026 * features/i386/amd64-mpx-linux.c: Removed.
2027 * features/i386/x32-avx-avx512-linux.c: Removed.
2028 * features/i386/x32-avx-linux.c: Removed.
2029 * features/i386/x32-linux.c: Removed.
2030
2031 2017-09-05 Yao Qi <yao.qi@linaro.org>
2032
2033 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
2034 features/i386/*.c.
2035 (amd64_linux_read_description): Call
2036 amd64_create_target_description.
2037 * arch/amd64.c: New file.
2038 * arch/amd64.h: New file.
2039 * configure.tgt (x86_64-*-linux*): Append amd64.o.
2040 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
2041
2042 2017-09-05 Yao Qi <yao.qi@linaro.org>
2043
2044 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
2045 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
2046 (amd64_linux_read_description): Create target descriptions.
2047 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
2048 functions. Add unit tests.
2049 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
2050 x32-core.xml.
2051 * features/i386/64bit-avx.c: Generated.
2052 * features/i386/64bit-avx512.c: Generated.
2053 * features/i386/64bit-core.c: Generated.
2054 * features/i386/64bit-linux.c: Generated.
2055 * features/i386/64bit-mpx.c: Generated.
2056 * features/i386/64bit-pkeys.c: Generated.
2057 * features/i386/64bit-segments.c: Generated.
2058 * features/i386/64bit-sse.c: Generated.
2059 * features/i386/x32-core.c: Generated.
2060 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
2061 c files for amd64-linux and x32-linux.
2062
2063 2017-09-05 Yao Qi <yao.qi@linaro.org>
2064
2065 * amd64-linux-tdep.c (amd64_linux_read_description): New
2066 function.
2067 (amd64_linux_core_read_description): Call
2068 amd64_linux_read_description.
2069 (amd64_linux_init_abi): Likewise.
2070 (amd64_x32_linux_init_abi): Likewise.
2071 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
2072 * x86-linux-nat.c (x86_linux_read_description): Call
2073 amd64_linux_read_description.
2074
2075 2017-09-05 Yao Qi <yao.qi@linaro.org>
2076
2077 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
2078 comments.
2079
2080 2017-09-05 Yao Qi <yao.qi@linaro.org>
2081
2082 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
2083 * features/i386/i386-avx-avx512-linux.c: Remove.
2084 * features/i386/i386-avx-linux.c: Remove.
2085 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
2086 * features/i386/i386-avx-mpx-linux.c: Remove.
2087 * features/i386/i386-linux.c: Remove.
2088 * features/i386/i386-mmx-linux.c: Remove.
2089 * features/i386/i386-mpx-linux.c: Remove.
2090
2091 2017-09-05 Yao Qi <yao.qi@linaro.org>
2092
2093 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
2094 (SFILES): Add arch/i386.c.
2095 (HFILES_NO_SRCDIR): Add arch/i386.h.
2096 * arch/i386.c: New file.
2097 * arch/i386.h: New file.
2098 * arch/tdesc.h (allocate_target_description): Declare.
2099 (set_tdesc_architecture): Declare.
2100 (set_tdesc_osabi): Declare.
2101 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
2102 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
2103 include arch/i386.h.
2104 (i386_linux_read_description): Remove code and call
2105 i386_create_target_description.
2106 (set_tdesc_architecture): New function.
2107 (set_tdesc_osabi): New function.
2108 * target-descriptions.h (allocate_target_description): Remove.
2109
2110 2017-09-05 Yao Qi <yao.qi@linaro.org>
2111
2112 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
2113 * target-descriptions.c (tdesc_create_feature): Likewise, and
2114 adjust code.
2115 * features/i386/32bit-avx.c: Re-generated.
2116 * features/i386/32bit-avx512.c: Re-generated.
2117 * features/i386/32bit-core.c: Re-generated.
2118 * features/i386/32bit-linux.c: Re-generated.
2119 * features/i386/32bit-mpx.c: Re-generated.
2120 * features/i386/32bit-pkeys.c: Re-generated.
2121 * features/i386/32bit-sse.c: Re-generated.
2122
2123 2017-09-05 Yao Qi <yao.qi@linaro.org>
2124
2125 * regformats/regdef.h (struct reg): Override operator == and !=.
2126
2127 2017-09-05 Yao Qi <yao.qi@linaro.org>
2128
2129 * arch/tdesc.h: New file.
2130 * regformats/regdat.sh: Generate code using tdesc_create_reg.
2131 * target-descriptions.c: Update comments.
2132 * target-descriptions.h: Include "arch/tdesc.h". Remove the
2133 declarations.
2134 * features/i386/32bit-avx.c: Re-generated.
2135 * features/i386/32bit-avx512.c: Re-generated.
2136 * features/i386/32bit-core.c: Re-generated.
2137 * features/i386/32bit-linux.c: Re-generated.
2138 * features/i386/32bit-mpx.c: Re-generated.
2139 * features/i386/32bit-pkeys.c: Re-generated.
2140 * features/i386/32bit-sse.c: Re-generated.
2141
2142 2017-09-05 Yao Qi <yao.qi@linaro.org>
2143
2144 * regformats/regdat.sh: Update generated code.
2145
2146 2017-09-05 Yao Qi <yao.qi@linaro.org>
2147
2148 * regformats/regdat.sh: Adjust code order.
2149
2150 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2151
2152 * expprint.c (dump_subexp_body_standard): Use constant format
2153 string in fprintf_filtered call.
2154
2155 2017-09-04 John Baldwin <jhb@FreeBSD.org>
2156
2157 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
2158 NetBSD/i386.
2159 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
2160
2161 2017-09-04 John Baldwin <jhb@FreeBSD.org>
2162
2163 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
2164
2165 2017-09-04 John Baldwin <jhb@FreeBSD.org>
2166
2167 * bsd-kvm.o: Define _KMEMUSER.
2168 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
2169 * configure: Regenerate.
2170
2171 2017-09-04 John Baldwin <jhb@FreeBSD.org>
2172
2173 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
2174 * i386-fbsd-nat.c: Likewise.
2175
2176 2017-09-04 John Baldwin <jhb@FreeBSD.org>
2177
2178 * unittests/array-view-selftests.c: Add include of <array>.
2179
2180 2017-09-04 John Baldwin <jhb@FreeBSD.org>
2181
2182 * spu-tdep.c (flush_ea_cache): Add missing argument to
2183 call_function_by_hand.
2184
2185 2017-09-04 Pedro Alves <palves@redhat.com>
2186
2187 * NEWS (Safer support for debugging with no debug info): New.
2188
2189 2017-09-04 Pedro Alves <palves@redhat.com>
2190
2191 * c-exp.y (function_method, function_method_void): Add current
2192 instance flags to TYPE_INSTANCE.
2193 * dwarf2read.c (check_modifier): New.
2194 (compute_delayed_physnames): Assert that only C++ adds delayed
2195 physnames. Mark fn_fields as const/volatile depending on
2196 physname.
2197 * eval.c (make_params): New type_instance_flags parameter. Use
2198 it as the new type's instance flags.
2199 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
2200 flags element and pass it to make_params.
2201 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
2202 instance flags element.
2203 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
2204 * gdbtypes.h: Include "enum-flags.h".
2205 (type_instance_flags): New enum-flags type.
2206 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
2207 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
2208 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
2209 (follow_type_instance_flags): New function.
2210 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
2211 * parser-defs.h (follow_type_instance_flags): Declare.
2212 * valops.c (value_struct_elt_for_reference): const/volatile must
2213 match too.
2214
2215 2017-09-04 Pedro Alves <palves@redhat.com>
2216
2217 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
2218 function/method scopes; lookup the nested name as a function local
2219 static variable.
2220
2221 2017-09-04 Pedro Alves <palves@redhat.com>
2222
2223 (%type <voidval>): Add function_method.
2224 * c-exp.y (exp): New production for calls with no arguments.
2225 (function_method, function_method_void_or_typelist): New
2226 productions.
2227 (exp): New production for "method()::static_var".
2228 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
2229 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2230 Handle OP_FUNC_STATIC_VAR.
2231 * parse.c (operator_length_standard):
2232 Handle OP_FUNC_STATIC_VAR.
2233
2234 2017-09-04 Pedro Alves <palves@redhat.com>
2235
2236 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
2237 handling.
2238 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2239 Ditto.
2240 * parse.c (operator_length_standard, operator_check_standard):
2241 Ditto.
2242 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
2243
2244 2017-09-04 Pedro Alves <palves@redhat.com>
2245
2246 * ax-gdb.c: Include "typeprint.h".
2247 (gen_expr_for_cast): New function.
2248 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
2249 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
2250 type is unknown.
2251 * dwarf2read.c (new_symbol_full): Fallback to int instead of
2252 nodebug_data_symbol.
2253 * eval.c: Include "typeprint.h".
2254 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
2255 Error out if symbol has unknown type.
2256 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
2257 evaluate_subexp_for_cast.
2258 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
2259 OP_VAR_MSYM_VALUE.
2260 (evaluate_subexp_for_cast): New function.
2261 * gdbtypes.c (init_nodebug_var_type): New function.
2262 (objfile_type): Use it to initialize types of variables with no
2263 debug info.
2264 * typeprint.c (error_unknown_type): New.
2265 * typeprint.h (error_unknown_type): New declaration.
2266 * compile/compile-c-types.c (convert_type_basic): Handle
2267 TYPE_CODE_ERROR; warn and fallback to int for variables with
2268 unknown type.
2269
2270 2017-09-04 Pedro Alves <palves@redhat.com>
2271
2272 * eval.c (evaluate_var_value): New function, factored out from ...
2273 (evaluate_subexp_standard): ... here.
2274
2275 2017-09-04 Pedro Alves <palves@redhat.com>
2276
2277 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
2278 Remove useless assignments to 'op'.
2279
2280 2017-09-04 Pedro Alves <palves@redhat.com>
2281
2282 * eval.c (eval_skip_value): New function.
2283 (evaluate_subexp_standard): Use it.
2284
2285 2017-09-04 Pedro Alves <palves@redhat.com>
2286
2287 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
2288 function name from symbol/minsym and pass it to
2289 error_call_unknown_return_type.
2290
2291 2017-09-04 Pedro Alves <palves@redhat.com>
2292
2293 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
2294 * ax-gdb.c (gen_msym_var_ref): New function.
2295 (gen_expr): Handle OP_VAR_MSYM_VALUE.
2296 * eval.c (evaluate_var_msym_value): New function.
2297 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
2298 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
2299 to call_function_by_hand.
2300 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2301 Handle OP_VAR_MSYM_VALUE.
2302 (union exp_element) <msymbol>: New field.
2303 * minsyms.h (struct type): Forward declare.
2304 (find_minsym_type_and_address): Declare.
2305 * parse.c (write_exp_elt_msym): New function.
2306 (write_exp_msymbol): Delete, refactored as ...
2307 (find_minsym_type_and_address): ... this new function.
2308 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
2309 (operator_length_standard, operator_check_standard): Handle
2310 OP_VAR_MSYM_VALUE.
2311 * std-operator.def (OP_VAR_MSYM_VALUE): New.
2312
2313 2017-09-04 Pedro Alves <palves@redhat.com>
2314
2315 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
2316 TYPE_GNU_IFUNC specially here. Throw error if return type is
2317 unknown.
2318 * ada-typeprint.c (print_func_type): Handle functions with unknown
2319 return type.
2320 * c-typeprint.c (c_type_print_base): Handle functions and methods
2321 with unknown return type.
2322 * compile/compile-c-symbols.c (convert_symbol_bmsym)
2323 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
2324 * compile/compile-c-types.c: Include "objfiles.h".
2325 (convert_func): For functions with unknown return type, warn and
2326 default to int.
2327 * compile/compile-object-run.c (compile_object_run): Adjust call
2328 to call_function_by_hand_dummy.
2329 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
2330 call_function_by_hand.
2331 * eval.c (evaluate_subexp_standard): Adjust calls to
2332 call_function_by_hand. Handle functions and methods with unknown
2333 return type. Pass expect_type to call_function_by_hand.
2334 * f-typeprint.c (f_type_print_base): Handle functions with unknown
2335 return type.
2336 * gcore.c (call_target_sbrk): Adjust call to
2337 call_function_by_hand.
2338 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
2339 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
2340 an integer address type instead of nodebug.
2341 * guile/scm-value.c (gdbscm_value_call): Adjust call to
2342 call_function_by_hand.
2343 * infcall.c (error_call_unknown_return_type): New function.
2344 (call_function_by_hand): New "default_return_type" parameter.
2345 Pass it down.
2346 (call_function_by_hand_dummy): New "default_return_type"
2347 parameter. Use it instead of defaulting to int. If there's no
2348 default and the return type is unknown, throw an error. If
2349 there's a default return type, and the called function has no
2350 debug info, then assume the function is prototyped.
2351 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
2352 New "default_return_type" parameter.
2353 (error_call_unknown_return_type): New declaration.
2354 * linux-fork.c (call_lseek): Cast return type of lseek.
2355 (inferior_call_waitpid, checkpoint_command): Adjust calls to
2356 call_function_by_hand.
2357 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
2358 calls to call_function_by_hand.
2359 * m2-typeprint.c (m2_procedure): Handle functions with unknown
2360 return type.
2361 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2362 (value_nsstring, print_object_command): Adjust calls to
2363 call_function_by_hand.
2364 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
2365 functions with unknown return type.
2366 (pascal_type_print_func_varspec_suffix): New function.
2367 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
2368 TYPE_CODE_METHOD>: Use it.
2369 * python/py-value.c (valpy_call): Adjust call to
2370 call_function_by_hand.
2371 * rust-lang.c (rust_evaluate_funcall): Adjust call to
2372 call_function_by_hand.
2373 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
2374 call_function_by_hand.
2375 * valops.c (value_allocate_space_in_inferior): Adjust call to
2376 call_function_by_hand.
2377 * typeprint.c (type_print_unknown_return_type): New function.
2378 * typeprint.h (type_print_unknown_return_type): New declaration.
2379
2380 2017-09-04 Pedro Alves <palves@redhat.com>
2381
2382 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
2383 types with more than one parameter as prototyped.
2384
2385 2017-09-04 Pedro Alves <palves@redhat.com>
2386
2387 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
2388 (disassemble_command): Use gdb_disassembly_flags instead of bare
2389 int.
2390 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
2391 (dump_insns, do_mixed_source_and_assembly_deprecated)
2392 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
2393 Use gdb_disassembly_flags instead of bare int.
2394 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
2395 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
2396 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
2397 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
2398 (enum gdb_disassembly_flag): ... values of this new enumeration.
2399 (gdb_disassembly_flags): Define.
2400 (gdb_disassembly)
2401 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
2402 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
2403 gdb_disassembly_flags instead of bare int.
2404 * record-btrace.c (btrace_insn_history)
2405 (record_btrace_insn_history, record_btrace_insn_history_range)
2406 (record_btrace_insn_history_from): Use gdb_disassembly_flags
2407 instead of bare int.
2408 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
2409 Use gdb_disassembly_flags instead of bare int.
2410 * target-debug.h (target_debug_print_gdb_disassembly_flags):
2411 Define.
2412 * target-delegates.c: Regenerate.
2413 * target.c (target_insn_history, target_insn_history_from)
2414 (target_insn_history_range): Use gdb_disassembly_flags instead of
2415 bare int.
2416 * target.h: Include "disasm.h".
2417 (struct target_ops) <to_insn_history, to_insn_history_from,
2418 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
2419 int.
2420 (target_insn_history, target_insn_history_from)
2421 (target_insn_history_range): Use gdb_disassembly_flags instead of
2422 bare int.
2423
2424 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2425
2426 * cli/cli-script.c (build_command_line): For if/while commands,
2427 check whether args is empty.
2428
2429 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2430
2431 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
2432 (enum command_control_type): Likewise.
2433 (struct command_line): Likewise.
2434 (free_command_lines): Likewise.
2435 (struct command_lines_deleter): Likewise.
2436 (command_line_up): Likewise.
2437 (read_command_lines): Likewise.
2438 (read_command_lines_1): Likewise.
2439 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
2440 (enum command_control_type): Likewise.
2441 (struct command_line): Likewise.
2442 (free_command_lines): Likewise.
2443 (struct command_lines_deleter): Likewise.
2444 (command_line_up): Likewise.
2445 (read_command_lines): Likewise.
2446 (read_command_lines_1): Likewise.
2447 * breakpoint.h: Include cli/cli-script.h.
2448 * extension-priv.h: Likewise.
2449 * gdbcmd.h: Likewise.
2450
2451 2017-09-04 Pedro Alves <palves@redhat.com>
2452
2453 * ada-lang.c (is_known_support_routine): Move sal declaration to
2454 where it is initialized.
2455 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
2456 (parse_breakpoint_sals, decode_static_tracepoint_spec)
2457 (clear_command, update_static_tracepoint): Remove init_sal
2458 references. Move declarations closer to initializations.
2459 * cli/cli-cmds.c (list_command): Move sal declarations closer to
2460 initializations.
2461 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
2462 references. Move sal declarations closer to initializations.
2463 * frame.c (find_frame_sal): Return a symtab_and_line via function
2464 return instead of output parameter. Remove init_sal references.
2465 * frame.h (find_frame_sal): Return a symtab_and_line via function
2466 return instead of output parameter.
2467 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
2468 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
2469 instead of memset.
2470 (gdbscm_find_pc_line): Remove init_sal reference.
2471 * infcall.c (call_function_by_hand_dummy): Remove init_sal
2472 references. Move declarations closer to initializations.
2473 * infcmd.c (set_step_frame): Update. Move declarations closer to
2474 initializations.
2475 (finish_backward): Remove init_sal references. Move declarations
2476 closer to initializations.
2477 * infrun.c (process_event_stop_test, handle_step_into_function)
2478 (insert_hp_step_resume_breakpoint_at_frame)
2479 (insert_step_resume_breakpoint_at_caller): Likewise.
2480 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
2481 (symbol_to_sal): Likewise.
2482 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
2483 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
2484 to its initialization.
2485 * reverse.c (save_bookmark_command): Use new/delete. Remove
2486 init_sal references. Move declarations closer to initializations.
2487 * source.c (get_current_source_symtab_and_line): Remove brace
2488 initialization.
2489 (set_current_source_symtab_and_line): Now takes the sal by const
2490 reference. Remove brace initialization.
2491 (line_info): Remove init_sal reference.
2492 * source.h (set_current_source_symtab_and_line): Now takes a
2493 symtab_and_line via const reference.
2494 * stack.c (set_current_sal_from_frame): Adjust.
2495 (print_frame_info): Adjust.
2496 (get_last_displayed_sal): Return the sal via function return
2497 instead of via output parameter. Simplify.
2498 (frame_info): Adjust.
2499 * stack.h (get_last_displayed_sal): Return the sal via function
2500 return instead of via output parameter.
2501 * symtab.c (init_sal): Delete.
2502 (find_pc_sect_line): Remove init_sal references. Move
2503 declarations closer to initializations.
2504 (find_function_start_sal): Remove init_sal references. Move
2505 declarations closer to initializations.
2506 * symtab.h (struct symtab_and_line): In-class initialize all
2507 fields.
2508 * tracepoint.c (set_traceframe_context)
2509 (print_one_static_tracepoint_marker): Remove init_sal references.
2510 Move declarations closer to initializations.
2511 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
2512 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
2513 declarations closer to initializations.
2514 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
2515 init_sal references. Adjust.
2516
2517 2017-09-04 Pedro Alves <palves@redhat.com>
2518
2519 * ax-gdb.c (agent_command_1): Use range-for.
2520 * break-catch-throw.c (re_set_exception_catchpoint): Update.
2521 * breakpoint.c: Include "common/array-view.h".
2522 (init_breakpoint_sal, create_breakpoint_sal): Change sals
2523 parameter from struct symtabs_and_lines to
2524 array_view<symtab_and_line>. Adjust. Use range-for. Update.
2525 (breakpoint_sals_to_pc): Change sals parameter from struct
2526 symtabs_and_lines to std::vector reference.
2527 (check_fast_tracepoint_sals): Change sals parameter from struct
2528 symtabs_and_lines to std::array_view. Use range-for.
2529 (decode_static_tracepoint_spec): Return a std::vector instead of
2530 symtabs_and_lines. Update.
2531 (create_breakpoint): Update.
2532 (break_range_command, until_break_command, clear_command): Update.
2533 (base_breakpoint_decode_location, bkpt_decode_location)
2534 (bkpt_probe_create_sals_from_location)
2535 (bkpt_probe_decode_location, tracepoint_decode_location)
2536 (tracepoint_probe_decode_location)
2537 (strace_marker_create_sals_from_location): Return a std::vector
2538 instead of symtabs_and_lines.
2539 (strace_marker_create_breakpoints_sal): Update.
2540 (strace_marker_decode_location): Return a std::vector instead of
2541 symtabs_and_lines. Update.
2542 (update_breakpoint_locations): Change struct symtabs_and_lines
2543 parameters to gdb::array_view. Adjust.
2544 (location_to_sals): Return a std::vector instead of
2545 symtabs_and_lines. Update.
2546 (breakpoint_re_set_default): Use std::vector instead of struct
2547 symtabs_and_lines.
2548 (decode_location_default): Return a std::vector instead of
2549 symtabs_and_lines. Update.
2550 * breakpoint.h: Include "common/array-view.h".
2551 (struct breakpoint_ops) <decode_location>: Now returns a
2552 std::vector instead of returning a symtabs_and_lines via output
2553 parameter.
2554 (update_breakpoint_locations): Change sals parameters to use
2555 gdb::array_view.
2556 * cli/cli-cmds.c (edit_command, list_command): Update to use
2557 std::vector and gdb::array_view.
2558 (ambiguous_line_spec): Adjust to use gdb::array_view and
2559 range-for.
2560 (compare_symtabs): Rename to ...
2561 (cmp_symtabs): ... this. Change parameters to symtab_and_line
2562 const reference and adjust.
2563 (filter_sals): Rewrite using std::vector and standard algorithms.
2564 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
2565 (jump_command): Update to use std::vector.
2566 * linespec.c (struct linespec_state) <canonical_names>: Update
2567 comment.
2568 (add_sal_to_sals_basic): Delete.
2569 (add_sal_to_sals, filter_results, convert_results_to_lsals)
2570 (decode_line_2, create_sals_line_offset)
2571 (convert_address_location_to_sals, convert_linespec_to_sals)
2572 (convert_explicit_location_to_sals, parse_linespec)
2573 (event_location_to_sals, decode_line_full, decode_line_1)
2574 (decode_line_with_current_source)
2575 (decode_line_with_last_displayed, decode_objc)
2576 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
2577 (linespec_result::~linespec_result): Adjust to use std::vector
2578 instead of symtabs_and_lines.
2579 * linespec.h (linespec_sals::sals): Now a std::vector.
2580 (struct linespec_result): Use std::vector, bool, and in-class
2581 initialization.
2582 (decode_line_1, decode_line_with_current_source)
2583 (decode_line_with_last_displayed): Return std::vector.
2584 * macrocmd.c (info_macros_command): Use std::vector.
2585 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
2586 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
2587 std::vector.
2588 * probe.h (parse_probes): Return a std::vector.
2589 * python/python.c (gdbpy_decode_line): Use std::vector and
2590 gdb::array_view.
2591 * source.c (select_source_symtab, line_info): Use std::vector.
2592 * stack.c (func_command): Use std::vector.
2593 * symtab.h (struct symtabs_and_lines): Delete.
2594 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
2595
2596 2017-09-04 Pedro Alves <palves@redhat.com>
2597
2598 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2599 unittests/array-view-selftests.c.
2600 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
2601 * common/array-view.h: New file.
2602 * unittests/array-view-selftests.c: New file.
2603
2604 2017-09-04 Pedro Alves <palves@redhat.com>
2605
2606 * cli/cli-cmds.c (edit_command): Pass message to
2607 ambiguous_line_spec.
2608 (list_command): Pass message to ambiguous_line_spec. Say
2609 "first"/"last" instead of "start" and "end" to be consistent with
2610 the manual.
2611 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
2612 them to print formatted message.
2613
2614 2017-09-04 Pedro Alves <palves@redhat.com>
2615
2616 * btrace.c (ftrace_add_pt): Pass btrace_insn to
2617 ftrace_update_insns by reference instead of pointer.
2618
2619 2017-09-04 Yao Qi <yao.qi@linaro.org>
2620
2621 * i386-go32-tdep.c: Include x86-xstate.h.
2622 (i386_go32_init_abi): Call i386_target_description.
2623 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
2624 if xcr0 is X86_XSTATE_X87_MASK.
2625 * i386-tdep.h (tdesc_i386): Remove the declaration.
2626 (tdesc_i386_mmx): Likewise.
2627
2628 2017-09-04 Yao Qi <yao.qi@linaro.org>
2629
2630 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
2631 X86_XSTATE_SSE_MASK instead of 0.
2632
2633 2017-09-04 Yao Qi <yao.qi@linaro.org>
2634
2635 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
2636 i386_target_description.
2637 * i386-fbsd-nat.c (i386fbsd_read_description): Call
2638 i386_target_description.
2639 * i386-tdep.c (i386_gdbarch_init): Likewise.
2640
2641 2017-09-04 Yao Qi <yao.qi@linaro.org>
2642
2643 * amd64-darwin-tdep.c: Include "x86-xstate.h".
2644 (x86_darwin_init_abi_64): Call amd64_target_description.
2645 * amd64-dicos-tdep.c: Likewise.
2646 * amd64-fbsd-nat.c: Likewise.
2647 * amd64-fbsd-tdep.c: Likewise.
2648 * amd64-nbsd-tdep.c: Likewise.
2649 * amd64-obsd-tdep.c: Likewise.
2650 * amd64-sol2-tdep.c: Likewise.
2651 * amd64-windows-tdep.c: Likewise.
2652 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
2653
2654 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2655
2656 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
2657 (btrace_function) <insn>: Change type to use std::vector.
2658 * btrace.c (ftrace_debug, ftrace_call_num_insn,
2659 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
2660 ftrace_update_insns, ftrace_compute_global_level_offset,
2661 btrace_stitch_bts, btrace_clear, btrace_insn_get,
2662 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
2663 change to std::vector.
2664 (ftrace_update_insns): Adjust to change to std::vector, change
2665 type of INSN parameter.
2666 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
2667 * record-btrace.c (btrace_call_history_insn_range,
2668 btrace_compute_src_line_range,
2669 record_btrace_frame_prev_register): Adjust to change to
2670 std::vector.
2671 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
2672 to change to std::vector.
2673
2674 2017-09-03 Tom Tromey <tom@tromey.com>
2675
2676 * corefile.c (reopen_exec_file): Use std::string.
2677
2678 2017-09-03 Tom Tromey <tom@tromey.com>
2679
2680 * compile/compile.c (compile_register_name_mangled): Return
2681 std::string.
2682 * compile/compile-loc2c.c (pushf_register_address): Update.
2683 (pushf_register): Update.
2684 * compile/compile-c-types.c (convert_array): Update.
2685 * compile/compile-c-symbols.c (generate_vla_size): Update.
2686 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
2687 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
2688 (convert_one_symbol): Update.
2689 (generate_c_for_for_one_variable): Update.
2690 * compile/compile-c-support.c (c_get_range_decl_name): Return a
2691 std::string.
2692 (generate_register_struct): Update.
2693 * compile/compile-internal.h (c_get_range_decl_name): Return a
2694 std::string.
2695 (compile_register_name_mangled): Return std::string.
2696
2697 2017-09-03 Tom Tromey <tom@tromey.com>
2698
2699 * utils.c (perror_string): Return a std::string.
2700 (throw_perror_with_name, perror_warning_with_name): Update.
2701
2702 2017-09-03 Tom Tromey <tom@tromey.com>
2703
2704 * demangle.c (demangle_command): Use std::string,
2705 unique_xmalloc_ptr.
2706
2707 2017-09-03 Tom Tromey <tom@tromey.com>
2708
2709 * cli/cli-setshow.c (do_set_command): Use std::string.
2710
2711 2017-09-03 Tom Tromey <tom@tromey.com>
2712
2713 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
2714
2715 2017-09-03 Tom Tromey <tom@tromey.com>
2716
2717 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
2718
2719 2017-09-03 Tom Tromey <tom@tromey.com>
2720
2721 * mi/mi-cmd-env.c (env_execute_cli_command): Use
2722 gdb::unique_xmalloc_ptr.
2723
2724 2017-09-03 Tom Tromey <tom@tromey.com>
2725
2726 * thread.c (print_thread_info_1): Use string_printf.
2727 (thread_apply_command, thread_apply_all_command): Use
2728 std::string.
2729
2730 2017-09-03 Tom Tromey <tom@tromey.com>
2731
2732 * valprint.c (val_print_string): Update.
2733 * gdbcore.h (memory_error_message): Return std::string.
2734 * corefile.c (memory_error_message): Return std::string.
2735 (memory_error): Update.
2736 * breakpoint.c (insert_bp_location): Update.
2737
2738 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
2739
2740 * target/waitstatus.h (target_waitstatus_to_string): Change
2741 return type to std::string.
2742 * target/waitstatus.c (target_waitstatus_to_string): Return
2743 std::string.
2744 * target.h (target_waitstatus_to_string): Remove declaration.
2745 * infrun.c (resume, clear_proceed_status_thread,
2746 print_target_wait_results, do_target_wait, save_waitstatus,
2747 stop_all_threads): Adjust.
2748 * record-btrace.c (record_btrace_wait): Adjust.
2749 * target-debug.h
2750 (target_debug_print_struct_target_waitstatus_p): Adjust.
2751
2752 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2753
2754 PR gdb/22046
2755 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
2756 detection.
2757
2758 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
2759
2760 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
2761 for setting/unsetting environment variables on the remote target.
2762 (New remote packets): Add entries for QEnvironmentHexEncoded,
2763 QEnvironmentUnset and QEnvironmentReset.
2764 * common/environ.c (gdb_environ::operator=): Extend method to
2765 handle m_user_set_env_list and m_user_unset_env_list.
2766 (gdb_environ::clear): Likewise.
2767 (match_var_in_string): Change type of first parameter from 'char
2768 *' to 'const char *'.
2769 (gdb_environ::set): Extend method to handle
2770 m_user_set_env_list and m_user_unset_env_list.
2771 (gdb_environ::unset): Likewise.
2772 (gdb_environ::clear_user_set_env): New method.
2773 (gdb_environ::user_set_envp): Likewise.
2774 (gdb_environ::user_unset_envp): Likewise.
2775 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
2776 m_user_unset_env_list on move constructor/assignment.
2777 (unset): Add new default parameter 'update_unset_list = true'.
2778 (clear_user_set_env): New method.
2779 (user_set_envp): Likewise.
2780 (user_unset_envp): Likewise.
2781 (m_user_set_env_list): New std::set.
2782 (m_user_unset_env_list): Likewise.
2783 * common/rsp-low.c (hex2str): New function.
2784 (bin2hex): New overload for bin2hex function.
2785 * common/rsp-low.c (hex2str): New prototype.
2786 (str2hex): New overload prototype.
2787 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
2788 QEnvironmentUnset and QEnvironmentReset.
2789 (remote_protocol_features): Add QEnvironmentHexEncoded,
2790 QEnvironmentUnset and QEnvironmentReset packets.
2791 (send_environment_packet): New function.
2792 (extended_remote_environment_support): Likewise.
2793 (extended_remote_create_inferior): Call
2794 extended_remote_environment_support.
2795 (_initialize_remote): Add QEnvironmentHexEncoded,
2796 QEnvironmentUnset and QEnvironmentReset packet configs.
2797 * unittests/environ-selftests.c (gdb_selftest_env_var):
2798 New variable.
2799 (test_vector_initialization): New function.
2800 (test_init_from_host_environ): Likewise.
2801 (test_reinit_from_host_environ): Likewise.
2802 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
2803 Likewise.
2804 (test_unset_set_empty_vector): Likewise.
2805 (test_vector_clear): Likewise.
2806 (test_std_move): Likewise.
2807 (test_move_constructor):
2808 (test_self_move): Likewise.
2809 (test_set_unset_reset): Likewise.
2810 (run_tests): Rewrite in terms of the functions above.
2811
2812 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
2813
2814 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
2815 (adi_available): Use a temp variable of type CORE_ADDR as argument
2816 3 when calling target_auxv_search.
2817 (adi_normalize_address): Use masks and xor operators to calculate
2818 normalized address.
2819 (adi_read_versions, adi_write_versions, adi_print_versions)
2820 (do_examine, do_assign): Use paddress.
2821
2822 2017-08-29 John Baldwin <jhb@FreeBSD.org>
2823
2824 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
2825 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
2826 out of loop and add supply of FIR.
2827 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
2828 add collect of FIR.
2829
2830 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
2831
2832 PR gdb/21827
2833 * cli/cli-script.c (define_command): Don't convert command name
2834 to lower case.
2835
2836 2017-08-25 Joel Brobecker <brobecker@adacore.com>
2837
2838 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
2839 Update all callers accordingly. Remove all code blocks handling
2840 the case where DISPP is not NULL.
2841
2842 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2843
2844 PR symtab/22003
2845 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
2846 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
2847 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
2848
2849 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2850
2851 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
2852 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
2853 (read_comp_units_from_section): New parameter abbrev_section, use
2854 read_and_check_comp_unit_head, allocate signatured_type if needed.
2855 (create_all_comp_units): Update read_comp_units_from_section caller.
2856
2857 2017-08-23 Pedro Alves <palves@redhat.com>
2858
2859 PR remote/21852
2860 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
2861 to null_ptid and switch to thread without reading the registers
2862 after adding the inferior.
2863
2864 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2865
2866 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
2867 compile-gcc.
2868 * compile/compile.c (compile_gcc, show_compile_gcc): New.
2869 (compile_to_object): Implement compile_gcc.
2870 (_initialize_compile): Install "set compile-gcc". Initialize
2871 compile_gcc.
2872
2873 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2874
2875 * compile/compile.c (compile_to_object): Conditionally call
2876 set_verbose. Conditionally call compile or compile_v0.
2877
2878 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
2879
2880 * sparc64-tdep.h: (adi_normalize_address): New export.
2881 * sparc-nat.h: (open_adi_tag_fd): New export.
2882 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
2883 * sparc64-linux-tdep.c:
2884 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
2885 (sparc64_linux_handle_segmentation_fault): New function.
2886 (sparc64_linux_init_abi): Register
2887 sparc64_linux_handle_segmentation_fault
2888 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
2889 (sparc64_addr_bits_remove): New function.
2890 (sparc64_init_abi): Register sparc64_addr_bits_remove.
2891 (MAX_PROC_NAME_SIZE): New macro.
2892 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
2893 (sparc64adilist): New variable.
2894 (adi_proc_list): New variable.
2895 (find_adi_info): New function.
2896 (add_adi_info): New function.
2897 (get_adi_info_proc): New function.
2898 (get_adi_info): New function.
2899 (info_adi_command): New function.
2900 (read_maps_entry): New function.
2901 (adi_available): New function.
2902 (adi_normalize_address): New function.
2903 (adi_align_address): New function.
2904 (adi_convert_byte_count): New function.
2905 (adi_tag_fd): New function.
2906 (adi_is_addr_mapped): New function.
2907 (adi_read_versions): New function.
2908 (adi_write_versions): New function.
2909 (adi_print_versions): New function.
2910 (do_examine): New function.
2911 (do_assign): New function.
2912 (adi_examine_command): New function.
2913 (adi_assign_command): New function.
2914 (_initialize_sparc64_adi_tdep): New function.
2915
2916 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
2917
2918 * breakpoint.c (breakpoints_info): Rename to ...
2919 (info_breakpoints_command): ... this.
2920 (watchpoints_info): Rename to ...
2921 (info_watchpoints_command): ... this.
2922 (tracepoints_info): Rename to ...
2923 (info_tracepoints_command): ... this.
2924 (_initialize_breakpoint): Adjust.
2925 * dcache.c (dcache_info): Rename to ...
2926 (info_display_command): ... this.
2927 (_initialize_dcache): Adjust.
2928 * frame.h (args_info): Rename to ...
2929 (info_args_command): ... this.
2930 (locals_info): Rename to ...
2931 (info_locals_command): ... this.
2932 * infcmd.c (nofp_registers_info): Rename to ...
2933 (info_registers_command): ... this.
2934 (float_info): Rename to ...
2935 (info_float_command): ... this.
2936 (program_info): Rename to ...
2937 (info_program_command): ... this.
2938 (all_registers_info): Rename to ...
2939 (info_all_registers_command): ... this.
2940 (vector_info): Rename to ...
2941 (info_vector_command): ... this.
2942 (float_info): Rename to ...
2943 (info_float_command): ... this.
2944 (_initialize_infcmd): Adjust.
2945 * inferior.h (term_info): Rename to ...
2946 (info_terminal_command): ... this.
2947 * inflow.c (term_info): Rename to ...
2948 (info_terminal_command): ... this.
2949 (_initialize_inflow): Adjust.
2950 * infrun.c (signals_info): Rename to ...
2951 (info_signals_command): ... this.
2952 (_initialize_infrun): Adjust.
2953 * objc-lang.c (classes_info): Rename to ...
2954 (info_classes_command): ... this.
2955 (selectors_info): Rename to ...
2956 (info_selectors_command): ... this.
2957 (_initialize_objc_language): Adjust.
2958 * printcmd.c (sym_info): Rename to ...
2959 (info_symbol_command): ... this.
2960 (address_info): Rename to ...
2961 (info_address_command): ... this.
2962 (display_info): Rename to ...
2963 (info_display_command): ... this.
2964 (_initialize_printcmd): Adjust.
2965 * reverse.c (bookmarks_info): Rename to ...
2966 (info_breakpoints_command): ... this.
2967 (_initialize_reverse): Adjust.
2968 * ser-go32.c (dos_info): Rename to ...
2969 (info_serial_command): ... this.
2970 (_initialize_ser_dos): Adjust.
2971 * skip.c (skip_info): Rename to ...
2972 (info_skip_command): ... this.
2973 (_initialize_step_skip): Adjust.
2974 * source.c (line_info): Rename to ...
2975 (info_line_command): ... this.
2976 (source_info): Rename to ...
2977 (info_source_command)
2978 * stack.c (frame_info): Rename to ...
2979 (info_frame_command): ... this.
2980 (locals_info): Rename to ...
2981 (info_locals_command): ... this.
2982 (args_info): Rename to ...
2983 (info_args_command): ... this.
2984 (_initialize_stack): Adjust.
2985 * symtab.c (sources_info): Rename to ...
2986 (info_sources_command): ... this.
2987 (variables_info): Rename to ...
2988 (info_variables_command): ... this.
2989 (functions_info): Rename to ...
2990 (info_functions_command): ... this.
2991 (types_info): Rename to ...
2992 (info_types_command): ... this.
2993 (_initialize_symtab): Adjust.
2994 * target.c (target_info): Rename to ...
2995 (info_target_command): ... this.
2996 (initialize_targets): Adjust.
2997 * tracepoint.c (tvariables_info): Rename to ...
2998 (info_tvariables_command): ... this.
2999 (scope_info): Rename to ...
3000 (info_scope_command): ... this.
3001 (trace_dump_actions): Adjust.
3002 (_initialize_tracepoint): Adjust.
3003
3004 2017-08-22 Tom Tromey <tom@tromey.com>
3005
3006 * breakpoint.h (install_breakpoint): Update.
3007 * breakpoint.c (add_solib_catchpoint): Update.
3008 (install_breakpoint): Change argument to a std::unique_ptr.
3009 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
3010 (create_breakpoint_sal, create_breakpoint): Update.
3011 (watch_command_1, catch_exec_command_1)
3012 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
3013 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
3014 Return the breakpoint.
3015 (set_raw_breakpoint_without_location, set_raw_breakpoint)
3016 (new_single_step_breakpoint): Update.
3017 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
3018 std::unique_ptr.
3019 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
3020 std::unique_ptr.
3021 * break-catch-sig.c (create_signal_catchpoint): Use
3022 std::unique_ptr.
3023 * ada-lang.c (create_ada_exception_catchpoint): Use
3024 std::unique_ptr.
3025
3026 2017-08-22 Tom Tromey <tom@tromey.com>
3027
3028 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
3029
3030 2017-08-22 Tom Tromey <tom@tromey.com>
3031
3032 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
3033 (lookup_partial_symbol): Update.
3034
3035 2017-08-22 Tom Tromey <tom@tromey.com>
3036
3037 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
3038 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
3039 (find_and_open_source, symtab_to_fullname): Update.
3040 * psymtab.c (psymtab_to_fullname): Update.
3041
3042 2017-08-22 Tom Tromey <tom@tromey.com>
3043
3044 * exec.c (exec_file_attach): Update.
3045 * linux-thread-db.c (try_thread_db_load): Update.
3046 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
3047 * utils.c (gdb_realpath): Change return type.
3048 (gdb_realpath_keepfile): Update.
3049 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
3050 (_initialize_utils): Register the new self test.
3051 * source.c (openp): Update.
3052 (find_and_open_source): Update.
3053 * nto-tdep.c (nto_find_and_open_solib): Update.
3054 * main.c (set_gdb_data_directory): Update.
3055 (captured_main_1): Update.
3056 * dwarf2read.c (dwarf2_get_dwz_file): Update
3057 (dw2_map_symbol_filenames): Update.
3058 * auto-load.c (auto_load_safe_path_vec_update): Update.
3059 (filename_is_in_auto_load_safe_path_vec): Change type of
3060 "filename_realp".
3061 (auto_load_objfile_script): Update.
3062 (file_is_auto_load_safe): Update. Use std::string.
3063 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
3064
3065 2017-08-22 Tom Tromey <tom@tromey.com>
3066
3067 * utils.c (gdb_realpath_keepfile): Return a
3068 gdb::unique_xmalloc_ptr.
3069 * exec.c (exec_file_attach): Update.
3070 * utils.h (gdb_realpath_keepfile): Return a
3071 gdb::unique_xmalloc_ptr.
3072
3073 2017-08-22 Tom Tromey <tom@tromey.com>
3074
3075 * compile/compile.c (compile_file_command): Use
3076 gdb::unique_xmalloc_ptr, std::string.
3077 * utils.c (gdb_abspath): Change return type.
3078 * source.c (openp): Update.
3079 * objfiles.c (allocate_objfile): Update.
3080 * main.c (set_gdb_data_directory): Update.
3081 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
3082
3083 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
3084
3085 * cli-cmds.c (list_commands): List actual code around more than
3086 one location.
3087
3088 2017-08-21 John Baldwin <jhb@FreeBSD.org>
3089
3090 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
3091
3092 2017-08-21 Pedro Alves <palves@redhat.com>
3093
3094 PR gdb/19487
3095 * c-exp.y (variable production): Handle function aliases.
3096 * minsyms.c (msymbol_is_text): New function.
3097 * minsyms.h (msymbol_is_text): Declare.
3098 * symtab.c (find_function_alias_target): New function.
3099 * symtab.h (find_function_alias_target): Declare.
3100
3101 2017-08-21 Pedro Alves <palves@redhat.com>
3102
3103 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
3104 typedefs.
3105 * typeprint.c (whatis_exp): If handling "whatis", and expression
3106 is OP_TYPE, strip one typedef level. Otherwise don't strip
3107 typedefs here.
3108 * valops.c (value_cast): Save "to" type before resolving
3109 stubs/typedefs. Use that type as resulting value's type.
3110
3111 2017-08-18 Tom Tromey <tom@tromey.com>
3112 Pedro Alves <palves@redhat.com>
3113
3114 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
3115 * sol-thread.c (sol_thread_resume, sol_thread_wait)
3116 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
3117 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
3118 * proc-service.c (ps_xfer_memory): Use scoped_restore.
3119 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
3120 (linux_get_siginfo_data): Add "thread" argument. Use
3121 scoped_restore.
3122 * linux-nat.c (linux_child_follow_fork)
3123 (check_stopped_by_watchpoint): Use scoped_restore.
3124 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
3125 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
3126 (restore_inferior_ptid, save_inferior_ptid): Remove.
3127 * btrace.c (btrace_fetch): Use scoped_restore.
3128 * bsd-uthread.c (bsd_uthread_fetch_registers)
3129 (bsd_uthread_store_registers): Use scoped_restore.
3130 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
3131 scoped_restore.
3132 * aix-thread.c (aix_thread_resume, aix_thread_wait)
3133 (aix_thread_xfer_partial): Use scoped_restore.
3134 * inferior.h (save_inferior_ptid): Remove.
3135
3136 2017-08-18 Yao Qi <yao.qi@linaro.org>
3137
3138 PR tdep/21818
3139 * arm-tdep.c (gdb_print_insn_arm): Mark
3140 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
3141
3142 2017-08-18 Yao Qi <yao.qi@linaro.org>
3143
3144 * NEWS: Mention GDBserver's new option "--selftest".
3145 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
3146 * selftest.c: Move it to common/selftest.c.
3147 * selftest.h: Move it to common/selftest.h.
3148 * selftest-arch.c (reset): New function.
3149 (tests_with_arch): Call reset.
3150
3151 2017-08-18 Yao Qi <yao.qi@linaro.org>
3152
3153 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
3154 instead of exception_fprintf and printf_filtered.
3155
3156 2017-08-18 Yao Qi <yao.qi@linaro.org>
3157
3158 * selftest.c (register_self_test): Rename it to
3159 selftests::register_test.
3160 (run_self_tests): selftest::run_tests.
3161 * selftest.h: Update declarations.
3162 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
3163 selftests::register_test_foreach_arch.
3164 * selftest-arch.h: Update declaration.
3165 * aarch64-tdep.c: Update.
3166 * arm-tdep.c: Likewise.
3167 * disasm-selftests.c: Likewise.
3168 * dwarf2loc.c: Likewise.
3169 * dwarf2-frame.c: Likewise.
3170 * findvar.c: Likewise.
3171 * gdbarch-selftests.c: Likewise.
3172 * maint.c (maintenance_selftest): Likewise.
3173 * regcache.c: Likewise.
3174 * rust-exp.y: Likewise.
3175 * selftest-arch.c: Likewise.
3176 * unittests/environ-selftests.c: Likewise.
3177 * unittests/function-view-selftests.c: Likewise.
3178 * unittests/offset-type-selftests.c: Likewise.
3179 * unittests/optional-selftests.c: Likewise.
3180 * unittests/scoped_restore-selftests.c: Likewise.
3181 * utils-selftests.c: Likewise.
3182
3183 2017-08-17 Pedro Alves <palves@redhat.com>
3184
3185 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
3186 local.
3187
3188 2017-08-17 Pedro Alves <palves@redhat.com>
3189
3190 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
3191 field.
3192 (reset_die_in_process): Delete, replaced by ...
3193 (process_die_scope): ... this new class. Make it responsible for
3194 freeing cu->line_header too.
3195 (process_die): Use process_die_scope.
3196 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
3197 cu->line_header_die_owner. Don't release the line header if it's
3198 owned by the CU.
3199 (setup_type_unit_groups): Make the CU/DIE own the line header.
3200 Don't release the line header here.
3201
3202 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
3203
3204 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
3205
3206 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
3207
3208 * NEWS: Mention new shortcuts for nexti and stepi in TUI
3209 Single-Key mode
3210
3211 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
3212
3213 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
3214 mode command list.
3215
3216 2017-08-15 Stafford Horne <shorne@gmail.com>
3217
3218 * MAINTAINERS (Write After Approval): Add Stafford Horne.
3219
3220 2017-08-15 Stafford Horne <shorne@gmail.com>
3221
3222 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
3223
3224 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
3225
3226 PR gdb/21954
3227 * infcmd.c (unset_environment_command): Use the 'clear' method on
3228 the environment instead of resetting it.
3229
3230 2017-08-15 John Baldwin <jhb@FreeBSD.org>
3231
3232 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
3233 platforms.
3234
3235 2017-08-14 Tom Tromey <tom@tromey.com>
3236
3237 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
3238 (print_binary_chars): Likewise.
3239 (BITS_IN_BYTES): Remove.
3240
3241 2017-08-14 Tom Tromey <tom@tromey.com>
3242
3243 PR gdb/21675
3244 * valprint.c (LOW_ZERO): Change value to 034.
3245 (print_octal_chars): Add static_asserts for octal constants.
3246 * printcmd.c (print_scalar_formatted): Add 'd' case.
3247
3248 2017-08-11 Tom Tromey <tom@tromey.com>
3249
3250 * symfile.c (add_symbol_file_command): Use std::vector.
3251
3252 2017-08-14 Tom Tromey <tom@tromey.com>
3253
3254 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
3255 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
3256 std::move.
3257 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
3258
3259 2017-08-11 Pedro Alves <palves@redhat.com>
3260
3261 * infrun.c (process_event_stop_test): Adjust
3262 function_name_is_marked_for_skip call.
3263 * skip.c: Include <list>.
3264 (skiplist_entry): Make it a class with private fields, and
3265 getters/setters.
3266 (skiplist_entry_chain): Delete.
3267 (skiplist_entries): New.
3268 (skiplist_entry_count): Delete.
3269 (highest_skiplist_entry_num): New.
3270 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
3271 (add_skiplist_entry): Delete.
3272 (skiplist_entry::skiplist_entry): New.
3273 (skiplist_entry::add_entry): New.
3274 (skip_file_command, skip_function): Adjust.
3275 (compile_skip_regexp): Delete.
3276 (skip_command): Don't compile regexp here. Adjust to use
3277 skiplist_entry::add_entry.
3278 (skip_info): Adjust to use range-for and getters.
3279 (skip_enable_command, skip_disable_command): Adjust to use
3280 range-for and setters.
3281 (skip_delete_command): Adjust to use std::list.
3282 (add_skiplist_entry): Delete.
3283 (skip_file_p): Delete, refactored as ...
3284 (skiplist_entry::do_skip_file_p): ... this new method.
3285 (skip_gfile_p): Delete, refactored as ...
3286 (skiplist_entry::do_gskip_file_p): ... this new method.
3287 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
3288 (skiplist_entry::skip_function_p): ... this new method.
3289 (function_name_is_marked_for_skip): Now returns bool, and takes
3290 the function sal by const reference. Adjust to use range-for and
3291 skiplist_entry methods.
3292 (_initialize_step_skip): Remove references to
3293 skiplist_entry_chain, skiplist_entry_count.
3294 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
3295 takes the function sal by const reference.
3296
3297 2017-08-11 Yao Qi <yao.qi@linaro.org>
3298
3299 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
3300 (dwarf2_frame_cache): Remove reset_cache_cleanup.
3301 (dwarf2_frame_cache):
3302 * frame-unwind.c (frame_unwind_try_unwinder): Catch
3303 RETURN_MASK_ALL and set *this_case to NULL.
3304 * frame-unwind.h: Update comments.
3305
3306 2017-08-11 Yao Qi <yao.qi@linaro.org>
3307
3308 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
3309 (dwarf2_frame_state_copy_regs): Remove.
3310 (dwarf2_frame_state_free_regs): Remove.
3311 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
3312 (dwarf2_restore_rule): Call method .alloc_regs instead of
3313 dwarf2_frame_state_alloc_regs.
3314 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
3315 constructor. Call std::move.
3316 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
3317 (dwarf2_frame_cache): Likewise.
3318
3319 [GDB_SELF_TEST]: Include selftest.h and
3320 selftest-arch.h.
3321 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
3322 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
3323 execute_cfa_program_test.
3324
3325 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
3326 copy ctor, assignment operator, move assignment.
3327 <alloc_regs>: New method.
3328 <swap>: New method.
3329 (struct dwarf2_frame_state): Delete dtor.
3330 (dwarf2_frame_state_alloc_regs): Remove declaration.
3331 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
3332 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
3333
3334 2017-08-11 Yao Qi <yao.qi@linaro.org>
3335
3336 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
3337 (dwarf2_frame_state::dwarf2_frame_state): New.
3338 (dwarf2_frame_state::~dwarf2_frame_state): New.
3339 (dwarf2_fetch_cfa_info): Update.
3340 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
3341 rather than a pointer. Update code.
3342 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
3343 dtor.
3344 <data_align, code_align, retaddr_column>: Change them to const.
3345 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
3346 to bool.
3347
3348 2017-08-11 Yao Qi <yao.qi@linaro.org>
3349
3350 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
3351 <loc.exp>: New field.
3352 * dwarf2-frame.c (execute_cfa_program): Update.
3353 (dwarf2_frame_prev_register): Update.
3354
3355 2017-08-10 Pedro Alves <palves@redhat.com>
3356
3357 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
3358
3359 2017-08-09 John Baldwin <jhb@FreeBSD.org>
3360
3361 * fbsd-nat.c (struct fbsd_fork_info): Remove.
3362 (fbsd_pending_children): Use std::list.
3363 (fbsd_remember_child): Likewise.
3364 (fbsd_is_child_pending): Likewise.
3365 (fbsd_pending_vfork_done): Use std::forward_list.
3366 (fbsd_add_vfork_done): Likewise.
3367 (fbsd_is_vfork_done_pending): Likewise.
3368 (fbsd_next_vfork_done): Likewise.
3369
3370 2017-08-09 John Baldwin <jhb@FreeBSD.org>
3371
3372 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
3373 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
3374 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
3375 for `mapfilename'.
3376 (fbsd_xfer_partial): Use gdb::byte_vector.
3377 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
3378
3379 2017-08-09 John Baldwin <jhb@FreeBSD.org>
3380
3381 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
3382 "filestuff.h".
3383 (fbsd_find_memory_regions): Fix `mapfile' initialization.
3384
3385 2017-08-09 Tom Tromey <tom@tromey.com>
3386
3387 * skip.c (skiplist_entry): New constructor.
3388 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
3389 (skiplist_entry::file_is_glob): Now bool.
3390 (skiplist_entry::file, skiplist_entry::function): Now
3391 std::string.
3392 (make_skip_entry): Return a unique_ptr. Use new.
3393 (free_skiplist_entry, free_skiplist_entry_cleanup)
3394 (make_free_skiplist_entry_cleanup): Remove.
3395 (skip_command, skip_disable_command, add_skiplist_entry)
3396 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
3397 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
3398 (function_name_is_marked_for_skip): Update.
3399 (skip_delete_command): Update. Use delete.
3400
3401 2017-08-09 Jiong Wang <jiong.wang@arm.com>
3402
3403 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
3404 (aarch64_linux_core_read_description): New function.
3405 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
3406
3407 2017-08-09 Pedro Alves <palves@redhat.com>
3408
3409 * cp-name-parser.y (cp_comp_to_string): Return a
3410 gdb::unique_xmalloc_ptr<char>.
3411 * cp-support.c (replace_typedefs_qualified_name)
3412 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
3413 (cp_canonicalize_string_full): Use op= instead of explicit
3414 convertion.
3415 (cp_class_name_from_physname, method_name_from_physname)
3416 (cp_func_name, cp_remove_params): Adjust to use
3417 gdb::unique_xmalloc_ptr<char>.
3418 * cp-support.h (cp_comp_to_string): Return a
3419 gdb::unique_xmalloc_ptr<char>.
3420 * python/py-type.c (typy_lookup_type): Adjust to use
3421 gdb::unique_xmalloc_ptr<char>.
3422
3423 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
3424
3425 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
3426
3427 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
3428 Yao Qi <yao.qi@linaro.org>
3429
3430 * cp-support.c (cp_canonicalize_string_full): Use
3431 gdb::unique_xmalloc_ptr<char>.
3432 (cp_canonicalize_string): Likewise.
3433
3434 2017-08-09 Yao Qi <yao.qi@linaro.org>
3435
3436 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
3437 * regformats/i386/amd64-avx-avx512.dat: Remove.
3438 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
3439 * regformats/i386/amd64-avx-mpx.dat:Remove.
3440 * regformats/i386/amd64-avx.dat: Remove.
3441 * regformats/i386/amd64-mpx.dat: Remove.
3442 * regformats/i386/i386-avx-avx512.dat: Remove.
3443 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
3444 * regformats/i386/i386-avx-mpx.dat: Remove.
3445 * regformats/i386/i386-mmx.dat: Remove.
3446 * regformats/i386/i386-mpx.dat: Remove.
3447
3448 2017-08-09 Yao Qi <yao.qi@linaro.org>
3449
3450 * amd64-tdep.h (tdesc_x32): Remove the declaration.
3451 * amd64-tdep.c: Don't include features/i386/x32*.c.
3452 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
3453 functions.
3454 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
3455 and i386/x32-avx-avx512.
3456 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
3457 and i386/x32.xml.
3458 * features/i386/x32-avx-avx512.c: Removed.
3459 * features/i386/x32-avx-avx512.xml: Removed.
3460 * features/i386/x32-avx.c: Removed.
3461 * features/i386/x32-avx.xml: Removed.
3462 * features/i386/x32.c: Removed.
3463 * features/i386/x32.xml: Removed.
3464 * regformats/i386/x32-avx-avx512.dat: Removed.
3465 * regformats/i386/x32-avx.dat: Removed.
3466 * regformats/i386/x32.dat: Removed.
3467
3468 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3469
3470 PR breakpoints/21886
3471 * mem-break.c (default_memory_insert_breakpoint): Use
3472 `->placed_address' rather than `->reqstd_address' for the
3473 breakpoint location.
3474
3475 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3476
3477 * arch-utils.c (default_print_insn): Remove arch/mach/endian
3478 assertions.
3479
3480 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3481
3482 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
3483 a union of `tdep_info', `tdesc_data' and `id'.
3484 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
3485 rather than `info.tdep_info'.
3486 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
3487 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
3488 * i386-tdep.c (i386_gdbarch_init): Likewise.
3489 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
3490 * mips-tdep.c (mips_gdbarch_init): Likewise.
3491 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
3492 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3493 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
3494 `info.tdep_info'.
3495 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
3496 `info.tdep_info'.
3497 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
3498 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
3499 `info.tdep_info'.
3500 * spu-tdep.c (spu_gdbarch_init): Likewise.
3501 * gdbarch.h: Regenerate.
3502
3503 2017-08-07 Leszek Swirski <leszeks@google.com>
3504
3505 PR symtab/20899
3506 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
3507
3508 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
3509
3510 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
3511 (gdbsim_open): Rename gdb_argv args object to argv.
3512
3513 2017-08-05 Tom Tromey <tom@tromey.com>
3514
3515 * compile/compile-object-load.c (compile_object_load): Use
3516 gdb::unique_xmalloc_ptr.
3517 * cli/cli-dump.c (scan_filename): Rename from
3518 scan_filename_with_cleanup. Change return type.
3519 (scan_expression): Rename from scan_expression_with_cleanup.
3520 Change return type.
3521 (dump_memory_to_file, dump_value_to_file, restore_command):
3522 Use gdb::unique_xmalloc_ptr. Update.
3523 * cli/cli-cmds.c (find_and_open_script): Use
3524 gdb::unique_xmalloc_ptr.
3525 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
3526 * symmisc.c (maintenance_print_symbols)
3527 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
3528 * symfile.c (symfile_bfd_open, generic_load)
3529 (add_symbol_file_command, remove_symbol_file_command): Use
3530 gdb::unique_xmalloc_ptr.
3531 * source.c (openp): Use gdb::unique_xmalloc_ptr.
3532 * psymtab.c (maintenance_print_psymbols): Use
3533 gdb::unique_xmalloc_ptr.
3534 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
3535 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
3536 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
3537 (reload_shared_libraries_1): Likewise.
3538
3539 2017-08-05 Tom Tromey <tom@tromey.com>
3540
3541 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
3542 (rust_op_vector, rust_set_vector): New typedefs.
3543 (current_parser): New global.
3544 (work_obstack): Change to pointer type. Update all users.
3545 (rust_ast, pstate): Remove globals.
3546 (struct rust_parser): New.
3547 (%union) <params, field_inits>: Change type.
3548 (start, tuple_expr, unit_expr, struct_expr_list, literal)
3549 (field_expr, expr_list, maybe_expr_list, type_list): Update.
3550 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
3551 (convert_params_to_types, convert_params_to_expression): Change
3552 type of "params".
3553 (ast_string): Change type of "fields".
3554 (rust_parse): Make a rust_parser. Remove cleanups.
3555 (rust_lex_tests): Make and install an auto_obstack.
3556
3557 2017-08-04 Yao Qi <yao.qi@linaro.org>
3558
3559 * configure.srv (ipa_x32_linux_regobj): New.
3560 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
3561 instead of X86_TDESC_AVX512.
3562 (initialize_low_tracepoint): Call
3563 init_registers_x32_avx_avx512_linux.
3564
3565 2017-08-04 Yao Qi <yao.qi@linaro.org>
3566
3567 * utils.h (gdb_argv): Add namespace std for nullptr_t.
3568
3569 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
3570
3571 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
3572
3573 2017-08-03 Tom Tromey <tom@tromey.com>
3574
3575 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
3576 Remove.
3577 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
3578
3579 2017-08-03 Tom Tromey <tom@tromey.com>
3580
3581 * python/py-param.c (compute_enum_values): Use gdb_argv.
3582
3583 2017-08-03 Tom Tromey <tom@tromey.com>
3584
3585 * utils.h (struct gdb_argv_deleter): New.
3586 (gdb_argv): New class.
3587 * utils.c (gdb_argv::reset): New method.
3588 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
3589 * tracefile.c (tsave_command): Use gdb_argv.
3590 * top.c (new_ui_command): Use gdb_argv.
3591 * symmisc.c (maintenance_print_symbols)
3592 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
3593 * symfile.c (symbol_file_command, generic_load)
3594 (remove_symbol_file_command): Use gdb_argv.
3595 * stack.c (backtrace_command): Use gdb_argv.
3596 * source.c (add_path, show_substitute_path_command)
3597 (unset_substitute_path_command, set_substitute_path_command):
3598 Use gdb_argv.
3599 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
3600 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
3601 * remote.c (extended_remote_run, remote_put_command)
3602 (remote_get_command, remote_delete_command): Use gdb_argv.
3603 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
3604 (gdbsim_open): Use gdb_argv.
3605 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
3606 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
3607 * procfs.c (procfs_info_proc): Use gdb_argv.
3608 * interps.c (interpreter_exec_cmd): Use gdb_argv.
3609 * infrun.c (handle_command): Use gdb_argv.
3610 * inferior.c (add_inferior_command, clone_inferior_command):
3611 Use gdb_argv.
3612 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
3613 * exec.c (exec_file_command): Use gdb_argv.
3614 * cli/cli-cmds.c (alias_command): Use gdb_argv.
3615 * compile/compile.c (build_argc_argv): Use gdb_argv.
3616
3617 2017-08-03 Tom Tromey <tom@tromey.com>
3618
3619 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
3620
3621 2017-08-03 Tom Tromey <tom@tromey.com>
3622
3623 * python/python.c (compute_python_string): Return std::string.
3624 (gdbpy_eval_from_control_command): Update.
3625 (do_start_initialization): Use std::string.
3626 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
3627 xstrprintf.
3628 * python/py-breakpoint.c (local_setattro): Use string_printf, not
3629 xstrprintf.
3630
3631 2017-08-03 Tom Tromey <tom@tromey.com>
3632
3633 * top.h (do_restore_instream_cleanup): Remove.
3634 * top.c (do_restore_instream_cleanup): Remove.
3635 (read_command_file): Use scoped_restore.
3636 * cli/cli-script.c (execute_user_command): Use scoped_restore.
3637
3638 2017-08-03 Tom Tromey <tom@tromey.com>
3639
3640 * cli/cli-script.c (execute_user_command)
3641 (execute_control_command): Use scoped_restore.
3642
3643 2017-08-03 Tom Tromey <tom@tromey.com>
3644
3645 * cli/cli-script.c (do_restore_user_call_depth): Remove.
3646 (execute_user_command): Remove user_call_depth; use
3647 user_args_stack's size instead.
3648
3649 2017-08-03 Tom Tromey <tom@tromey.com>
3650
3651 * top.h (in_user_command): Remove.
3652 * top.c (in_user_command): Remove.
3653 * cli/cli-script.c (do_restore_user_call_depth)
3654 (execute_user_command): Update.
3655
3656 2017-08-03 Tom Tromey <tom@tromey.com>
3657
3658 * valops.c (search_struct_method): Use gdb::byte_vector.
3659 * valarith.c (value_concat): Use std::vector.
3660 * target.c (memory_xfer_partial): Use gdb::byte_vector.
3661 (simple_search_memory): Likewise.
3662 * printcmd.c (find_string_backward): Use gdb::byte_vector.
3663 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
3664 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
3665 * elfread.c (elf_rel_plt_read): Use std::string.
3666 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
3667 * cli/cli-dump.c (restore_section_callback): Use
3668 gdb::byte_vector.
3669
3670 2017-08-03 Tom Tromey <tom@tromey.com>
3671
3672 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
3673
3674 2017-08-03 Tom Tromey <tom@tromey.com>
3675
3676 * tui/tui-regs.c (tui_restore_gdbout): Remove.
3677 (tui_register_format): Use scoped_restore.
3678
3679 2017-08-03 Tom Tromey <tom@tromey.com>
3680
3681 * reverse.c (exec_direction_default): Remove.
3682 (exec_reverse_once): Use scoped_restore.
3683 * remote.c (restore_remote_timeout): Remove.
3684 (remote_flash_erase, remote_flash_write, remote_flash_done)
3685 (readchar, remote_serial_write): Use scoped_restore.
3686 * cli/cli-script.c (struct source_cleanup_lines_args)
3687 (source_cleanup_lines): Remove.
3688 (script_from_file): Use scoped_restore.
3689 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
3690 (source_command): Use scoped_restore.
3691
3692 2017-08-03 Tom Tromey <tom@tromey.com>
3693
3694 * utils.h (make_cleanup_free_so): Remove.
3695 * utils.c (do_free_so, make_cleanup_free_so): Remove.
3696 * solist.h (struct so_deleter): New.
3697 (so_list_up): New typedef.
3698 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
3699
3700 2017-08-03 Tom Tromey <tom@tromey.com>
3701
3702 * utils.h (make_cleanup_restore_current_language): Remove.
3703 * utils.c (do_restore_current_language)
3704 (make_cleanup_restore_current_language): Remove.
3705 * parse.c (parse_exp_in_context_1)
3706 (parse_expression_with_language): Use
3707 scoped_restore_current_language.
3708 * mi/mi-main.c (mi_cmd_execute): Use
3709 scoped_restore_current_language.
3710 * language.h (scoped_restore_current_language): New class.
3711
3712 2017-08-03 Tom Tromey <tom@tromey.com>
3713
3714 * compile/compile.c (cleanup_unlink_file): Remove.
3715 (compile_to_object): Use gdb::unlinker.
3716 (eval_compile_command): Likewise.
3717
3718 2017-08-03 Tom Tromey <tom@tromey.com>
3719
3720 * utils.h (make_cleanup_fclose): Remove.
3721 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
3722
3723 2017-08-03 Tom Tromey <tom@tromey.com>
3724
3725 * top.c (open_terminal_stream): Return gdb_file_up.
3726 (new_ui_command): Update.
3727
3728 2017-08-03 Tom Tromey <tom@tromey.com>
3729
3730 * source.c (print_source_lines_base, forward_search_command)
3731 (reverse_search_command): Use gdb_file_up.
3732
3733 2017-08-03 Tom Tromey <tom@tromey.com>
3734
3735 * fbsd-nat.c (fbsd_find_memory_regions): Update.
3736
3737 2017-08-03 Tom Tromey <tom@tromey.com>
3738
3739 * cli/cli-cmds.c (find_and_open_script): Change return type.
3740 Remove "streamp" and "full_path" parameters.
3741 (source_script_with_search): Update.
3742 * auto-load.c (source_script_file): Update.
3743 * cli/cli-cmds.h (find_and_open_script): Change type.
3744 (open_script): New struct.
3745
3746 2017-08-03 Tom Tromey <tom@tromey.com>
3747
3748 * xml-support.c (xml_fetch_content_from_file): Update.
3749 * ui-file.c (stdio_file::open): Update.
3750 * tracefile-tfile.c (tfile_start): Update.
3751 * remote.c (remote_file_put, remote_file_get): Update.
3752 * nat/linux-procfs.c (linux_proc_get_int)
3753 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
3754 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
3755 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
3756 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
3757 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
3758 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
3759 * linux-nat.c (linux_proc_pending_signals): Update.
3760 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
3761 (file_closer): Remove.
3762 * compile/compile.c (compile_to_object): Update.
3763 * common/filestuff.h (struct gdb_file_deleter): New.
3764 (gdb_file_up): New typedef.
3765 (gdb_fopen_cloexec): Change return type.
3766 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
3767 * cli/cli-dump.c (fopen_with_cleanup): Remove.
3768 (dump_binary_file, restore_binary_file): Update.
3769 * auto-load.c (auto_load_objfile_script_1): Update.
3770
3771 2017-08-03 Tom Tromey <tom@tromey.com>
3772
3773 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
3774 (info_static_tracepoint_markers_command): Likewise.
3775 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
3776 * skip.c (skip_info): Use ui_out_emit_table.
3777 * progspace.c (print_program_space): Use ui_out_emit_table.
3778 * osdata.c (info_osdata): Use ui_out_emit_table.
3779 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
3780 ui_out_emit_table.
3781 * linux-thread-db.c (info_auto_load_libthread_db): Use
3782 ui_out_emit_table.
3783 * inferior.c (print_inferior): Use ui_out_emit_table.
3784 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
3785 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
3786 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
3787 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
3788 * ui-out.h (class ui_out_emit_table): New.
3789
3790 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
3791
3792 * mips-tdep.c (mips_fpu_type_str): New function.
3793 (mips_dump_tdep): Call it.
3794
3795 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
3796
3797 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
3798 `->mips_fpu_type'.
3799
3800 2017-07-31 Xavier Roirand <roirand@adacore.com>
3801
3802 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3803
3804 2017-07-27 Xavier Roirand <roirand@adacore.com>
3805
3806 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
3807
3808 2017-07-26 Yao Qi <yao.qi@linaro.org>
3809
3810 * cli/cli-cmds.c (maintenancechecklist): New variable.
3811 * gdbcmd.h (maintenancechecklist): Declare it.
3812 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
3813 Call i386_linux_read_description with different masks.
3814 * maint.c (maintenance_check_command): New function.
3815 (_initialize_maint_cmds): Call add_prefix_cmd.
3816 * target-descriptions.c (tdesc_reg): override operator != and ==.
3817 (tdesc_type): Likewise.
3818 (tdesc_feature): Likewise.
3819 (target_desc): Likewise.
3820 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
3821 (maintenance_check_xml_descriptions): New function.
3822 (_initialize_target_descriptions) Add command "xml-descriptions".
3823 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
3824
3825 2017-07-26 Yao Qi <yao.qi@linaro.org>
3826
3827 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
3828 Include features/i386/32bit-*.c.
3829 (i386_linux_read_description): Generate target description if it
3830 doesn't exist.
3831 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
3832 functions.
3833 * features/i386/32bit-linux.c: Re-generated.
3834 * features/i386/32bit-sse.c: Likewise.
3835 * target-descriptions.c (print_c_feature::visit): Print code to
3836 set register number if needed.
3837 (print_c_feature) <m_next_regnum>: New field.
3838
3839 2017-07-26 Yao Qi <yao.qi@linaro.org>
3840
3841 * features/Makefile (CFILES): Rename with TDESC_CFILES.
3842 (FEATURE_XMLFILES): New.
3843 (FEATURE_CFILES): New.
3844 New rules.
3845 (clean-cfiles): Remove generated c files.
3846 * features/i386/32bit-avx.c: Generated.
3847 * features/i386/32bit-avx512.c: Generated.
3848 * features/i386/32bit-core.c: Generated.
3849 * features/i386/32bit-linux.c: Generated.
3850 * features/i386/32bit-mpx.c: Generated.
3851 * features/i386/32bit-pkeys.c: Generated.
3852 * features/i386/32bit-sse.c: Generated.
3853 * target-descriptions.c: Include algorithm.
3854 (tdesc_element_visitor): Add method visit_end.
3855 (print_c_tdesc): Implement visit_end.
3856 (print_c_tdesc:: m_filename_after_features): Move it to
3857 protected.
3858 (print_c_feature): New class.
3859 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
3860 name starts with "i386/32bit-".
3861
3862 2017-07-26 Yao Qi <yao.qi@linaro.org>
3863
3864 * target-descriptions.c (tdesc_element_visitor): New class.
3865 (tdesc_element): New class.
3866 (tdesc_reg): Inherit from tdesc_element.
3867 (tdesc_reg::accept): New function.
3868 (tdesc_type): Inherit from tdesc_element.
3869 (tdesc_type::accept): New function.
3870 (tdesc_feature): Inherit from tdesc_element.
3871 (tdesc_feature::accept): New function.
3872 (target_desc): Inherit from tdesc_element.
3873 (target_desc::target_desc): New.
3874 (target_desc::~target_desc): New.
3875 (target_desc::accept): New.
3876 (allocate_target_description): Use new.
3877 (free_target_description): Use delete.
3878 (print_c_tdesc): New class.
3879 (maint_print_c_tdesc_cmd): Adjust.
3880
3881 * features/aarch64.c: Re-generated.
3882 * features/arc-arcompact.c: Re-generated.
3883 * features/arc-v2.c: Re-generated.
3884 * features/arm/arm-with-iwmmxt.c: Re-generated.
3885 * features/arm/arm-with-m.c: Re-generated.
3886 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
3887 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
3888 * features/arm/arm-with-neon.c: Re-generated.
3889 * features/arm/arm-with-vfpv2.c: Re-generated.
3890 * features/arm/arm-with-vfpv3.c: Re-generated.
3891 * features/i386/amd64-avx-avx512.c: Re-generated.
3892 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
3893 * features/i386/amd64-avx.c: Re-generated.
3894 * features/i386/amd64-avx-linux.c: Re-generated.
3895 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
3896 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
3897 * features/i386/amd64-avx-mpx.c: Re-generated.
3898 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
3899 * features/i386/amd64.c: Re-generated.
3900 * features/i386/amd64-linux.c: Re-generated.
3901 * features/i386/amd64-mpx.c: Re-generated.
3902 * features/i386/amd64-mpx-linux.c: Re-generated.
3903 * features/i386/i386-avx-avx512.c: Re-generated.
3904 * features/i386/i386-avx-avx512-linux.c: Re-generated.
3905 * features/i386/i386-avx.c: Re-generated.
3906 * features/i386/i386-avx-linux.c: Re-generated.
3907 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
3908 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
3909 * features/i386/i386-avx-mpx.c: Re-generated.
3910 * features/i386/i386-avx-mpx-linux.c: Re-generated.
3911 * features/i386/i386.c: Re-generated.
3912 * features/i386/i386-linux.c: Re-generated.
3913 * features/i386/i386-mmx.c: Re-generated.
3914 * features/i386/i386-mmx-linux.c: Re-generated.
3915 * features/i386/i386-mpx.c: Re-generated.
3916 * features/i386/i386-mpx-linux.c: Re-generated.
3917 * features/i386/x32-avx-avx512.c: Re-generated.
3918 * features/i386/x32-avx-avx512-linux.c: Re-generated.
3919 * features/i386/x32-avx.c: Re-generated.
3920 * features/i386/x32-avx-linux.c: Re-generated.
3921 * features/i386/x32.c: Re-generated.
3922 * features/i386/x32-linux.c: Re-generated.
3923 * features/microblaze.c: Re-generated.
3924 * features/microblaze-with-stack-protect.c: Re-generated.
3925 * features/mips64-dsp-linux.c: Re-generated.
3926 * features/mips64-linux.c: Re-generated.
3927 * features/mips-dsp-linux.c: Re-generated.
3928 * features/mips-linux.c: Re-generated.
3929 * features/nds32.c: Re-generated.
3930 * features/nios2.c: Re-generated.
3931 * features/nios2-linux.c: Re-generated.
3932 * features/rs6000/powerpc-32.c: Re-generated.
3933 * features/rs6000/powerpc-32l.c: Re-generated.
3934 * features/rs6000/powerpc-403.c: Re-generated.
3935 * features/rs6000/powerpc-403gc.c : Re-generated.
3936 * features/rs6000/powerpc-405.c: Re-generated.
3937 * features/rs6000/powerpc-505.c: Re-generated.
3938 * features/rs6000/powerpc-601.c: Re-generated.
3939 * features/rs6000/powerpc-602.c: Re-generated.
3940 * features/rs6000/powerpc-603.c: Re-generated.
3941 * features/rs6000/powerpc-604.c: Re-generated.
3942 * features/rs6000/powerpc-64.c: Re-generated.
3943 * features/rs6000/powerpc-64l.c: Re-generated.
3944 * features/rs6000/powerpc-7400.c: Re-generated.
3945 * features/rs6000/powerpc-750.c: Re-generated.
3946 * features/rs6000/powerpc-860.c: Re-generated.
3947 * features/rs6000/powerpc-altivec32.c: Re-generated.
3948 * features/rs6000/powerpc-altivec32l.c: Re-generated.
3949 * features/rs6000/powerpc-altivec64.c: Re-generated.
3950 * features/rs6000/powerpc-altivec64l.c: Re-generated.
3951 * features/rs6000/powerpc-cell32l.c: Re-generated.
3952 * features/rs6000/powerpc-cell64l.c: Re-generated.
3953 * features/rs6000/powerpc-e500.c: Re-generated.
3954 * features/rs6000/powerpc-e500l.c: Re-generated.
3955 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
3956 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
3957 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
3958 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
3959 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
3960 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
3961 * features/rs6000/powerpc-vsx32.c: Re-generated.
3962 * features/rs6000/powerpc-vsx32l.c: Re-generated.
3963 * features/rs6000/powerpc-vsx64.c: Re-generated.
3964 * features/rs6000/powerpc-vsx64l.c: Re-generated.
3965 * features/rs6000/rs6000.c: Re-generated.
3966 * features/s390-linux32.c: Re-generated.
3967 * features/s390-linux32v1.c: Re-generated.
3968 * features/s390-linux32v2.c: Re-generated.
3969 * features/s390-linux64.c: Re-generated.
3970 * features/s390-linux64v1.c: Re-generated.
3971 * features/s390-linux64v2.c: Re-generated.
3972 * features/s390-te-linux64.c: Re-generated.
3973 * features/s390-tevx-linux64.c: Re-generated.
3974 * features/s390-vx-linux64.c: Re-generated.
3975 * features/s390x-linux64.c: Re-generated.
3976 * features/s390x-linux64v1.c: Re-generated.
3977 * features/s390x-linux64v2.c: Re-generated.
3978 * features/s390x-te-linux64.c: Re-generated.
3979 * features/s390x-tevx-linux64.c: Re-generated.
3980 * features/s390x-vx-linux64.c: Re-generated.
3981 * features/sparc/sparc32-solaris.c: Re-generated.
3982 * features/sparc/sparc64-solaris.c: Re-generated.
3983 * features/tic6x-c62x.c: Re-generated.
3984 * features/tic6x-c62x-linux.c: Re-generated.
3985 * features/tic6x-c64x.c: Re-generated.
3986 * features/tic6x-c64x-linux.c: Re-generated.
3987 * features/tic6x-c64xp.c: Re-generated.
3988 * features/tic6x-c64xp-linux.c: Re-generated.
3989
3990 2017-07-26 Yao Qi <yao.qi@linaro.org>
3991
3992 * i386-linux-tdep.c (i386_linux_read_description): New function.
3993 (i386_linux_core_read_description): Call
3994 i386_linux_read_description.
3995 * i386-linux-tdep.h (i386_linux_read_description): Declare.
3996 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
3997 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
3998 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
3999 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
4000 * x86-linux-nat.c (x86_linux_read_description): Call
4001 i386_linux_read_description.
4002
4003 2017-07-26 Yao Qi <yao.qi@linaro.org>
4004
4005 * NEWS: Mention it.
4006 * features/Makefile (%.c: %.xml): Pass the xml file name to
4007 command "maint print c-tdesc".
4008 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
4009 name from 'arg'.
4010
4011 2017-07-26 Yao Qi <yao.qi@linaro.org>
4012
4013 * target-descriptions.c (target_desc): Add ctor and dtor. Do
4014 in-class initialization.
4015 (tdesc_create_feature): Call new instead of XCNEW.
4016 (free_target_description): Ue delete.
4017
4018 2017-07-25 John Baldwin <jhb@FreeBSD.org>
4019
4020 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
4021
4022 2017-07-25 Yao Qi <yao.qi@linaro.org>
4023
4024 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
4025 constant.
4026 (amd64_x32_init_abi): Likewise.
4027 * amd64-tdep.h (amd64_init_abi): Update declaration.
4028 (amd64_x32_init_abi): Likewise.
4029
4030 2017-07-25 Yao Qi <yao.qi@linaro.org>
4031
4032 PR tdep/21717
4033 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
4034 condition for FPSCR.
4035 (arm_linux_store_inferior_registers): Likewise.
4036
4037 2017-07-22 Tom Tromey <tom@tromey.com>
4038
4039 * break-catch-syscall.c (struct catch_syscall_inferior_data)
4040 <syscalls_counts>: Now a std::vector.
4041 (get_catch_syscall_inferior_data): Use "new".
4042 (catch_syscall_inferior_data_cleanup): Use "delete".
4043 (insert_catch_syscall, remove_catch_syscall)
4044 (clear_syscall_counts): Update.
4045
4046 2017-07-22 Tom Tromey <tom@tromey.com>
4047
4048 * break-catch-syscall.c (syscall_catchpoint)
4049 <syscalls_to_be_caught>: Now a std::vector<int>
4050 (~syscall_catchpoint): Remove.
4051 (insert_catch_syscall, remove_catch_syscall)
4052 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
4053 (print_mention_catch_syscall, print_recreate_catch_syscall):
4054 Update.
4055 (create_syscall_event_catchpoint): Change type of "filter"
4056 parameter.
4057 (catch_syscall_split_args): Return a std::vector.
4058 (catch_syscall_command_1, catching_syscall_number_1): Update.
4059
4060 2017-07-22 Tom Tromey <tom@tromey.com>
4061
4062 * break-catch-throw.c (struct exception_catchpoint)
4063 <exception_rx>: Now a std::string.
4064 (~exception_catchpoint): Remove.
4065 (print_one_detail_exception_catchpoint): Update.
4066 (handle_gnu_v3_exceptions): Change type of except_rx.
4067 (extract_exception_regexp): Return a std::string.
4068 (catch_exception_command_1): Update.
4069
4070 2017-07-22 Tom Tromey <tom@tromey.com>
4071
4072 * break-catch-sig.c (gdb_signal_type): Remove typedef.
4073 (struct signal_catchpoint) <signals_to_be_caught>: Now a
4074 std::vector.
4075 <catch_all>: Now a bool.
4076 (~signal_catchpoint): Remove.
4077 (signal_catchpoint_insert_location)
4078 (signal_catchpoint_remove_location)
4079 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
4080 (signal_catchpoint_print_mention)
4081 (signal_catchpoint_print_recreate)
4082 (signal_catchpoint_explains_signal): Update.
4083 (create_signal_catchpoint): Change type of "filter" and
4084 "catch_all".
4085 (catch_signal_split_args): Return a std::vector. Change type of
4086 "catch_all".
4087 (catch_signal_command): Update.
4088
4089 2017-07-20 Pedro Alves <palves@redhat.com>
4090
4091 * ada-lang.c (ada_language_defn): Make extern.
4092 (_initialize_ada_language): Remove add_language call.
4093 * c-lang.c (c_language_defn, cplus_language_defn)
4094 (asm_language_defn, minimal_language_defn): Make extern.
4095 (_initialize_c_language): Delete.
4096 * completer.c (compare_cstrings): Delete, moved to utils.h.
4097 * d-lang.c (d_language_defn): Make extern.
4098 (_initialize_d_language): Remove add_language calls.
4099 * defs.h (enum language): Add comment.
4100 * f-lang.c (f_language_defn): Make extern.
4101 (_initialize_f_language): Remove add_language call.
4102 * go-lang.c (go_language_defn): Make extern.
4103 (_initialize_go_language): Remove add_language call.
4104 * language.c: Include <algorithm>.
4105 (languages): Redefine as const array.
4106 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
4107 (set_language_command): Handle "local". Use for-range loop.
4108 (set_language): Remove loop.
4109 (language_enum): Rewrite.
4110 (language_def, language_str): Remove loops.
4111 (add_language): Delete.
4112 (add_set_language_command): New, based on add_languages.
4113 (skip_language_trampoline): Adjust.
4114 (local_language_defn): Delete.
4115 (language_gdbarch_post_init): Adjust.
4116 (_initialize_language): Remove add_language calls. Call
4117 add_set_language_command.
4118 * language.h (add_language): Delete.
4119 (auto_language_defn)
4120 (unknown_language_defn, minimal_language_defn, ada_language_defn)
4121 (asm_language_defn, c_language_defn, cplus_language_defn)
4122 (d_language_defn, f_language_defn, go_language_defn)
4123 (m2_language_defn, objc_language_defn, opencl_language_defn)
4124 (pascal_language_defn, rust_language_defn): Declare.
4125 * m2-lang.c (m2_language_defn): Make extern.
4126 (_initialize_m2_language): Remove add_language call.
4127 * objc-lang.c (objc_language_defn): Make extern.
4128 (_initialize_objc_language): Remove add_language call.
4129 * opencl-lang.c (opencl_language_defn): Make extern.
4130 (_initialize_opencl_language): Remove add_language call.
4131 * p-lang.c (pascal_language_defn): Make extern.
4132 (_initialize_pascal_language): Delete.
4133 * rust-lang.c (rust_language_defn): Make extern.
4134 (_initialize_rust_language): Delete.
4135 * utils.h (compare_cstrings): New static inline function.
4136
4137 2017-07-20 Pedro Alves <palves@redhat.com>
4138
4139 * ada-lang.c (ada_to_fixed_type_1): Adjust.
4140 (get_var_value): Constify parameters.
4141 (get_int_var_value): Change prototype.
4142 (to_fixed_range_type): Adjust.
4143 * ada-lang.h (get_int_var_value): Change prototype.
4144
4145 2017-07-20 Pedro Alves <palves@redhat.com>
4146
4147 * dwarf2read.c (dw2_lookup_symbol): Use
4148 SYMBOL_MATCHES_SEARCH_NAME.
4149 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
4150
4151 2017-07-20 Pedro Alves <palves@redhat.com>
4152
4153 * block.c (block_iter_name_step, block_iter_name_first)
4154 (block_iter_name_next): Delete.
4155 (block_lookup_symbol_primary): Adjust to use
4156 dict_iter_match_first/dict_iter_match_next.
4157 * block.h (block_iter_name_first, block_iter_name_next): Delete
4158 declarations.
4159 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
4160 dict_iter_match_first/dict_iter_match_next.
4161
4162 2017-07-20 Pedro Alves <palves@redhat.com>
4163
4164 * cp-support.c (cp_find_first_component_aux): Add missing case for
4165 end of string.
4166
4167 2017-07-18 David Blaikie <dblaikie@gmail.com>
4168
4169 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
4170 of dwo_cu's dwo_file.
4171
4172 2017-07-18 Yao Qi <yao.qi@linaro.org>
4173
4174 * remote.c (store_registers_using_G): Remove one line comment.
4175
4176 2017-07-18 Yao Qi <yao.qi@linaro.org>
4177
4178 * regcache.c (regcache_cpy): Simplify it.
4179 (regcache::cpy_no_passthrough): Remove it.
4180 * regcache.h (cpy_no_passthrough): Remove it.
4181 (regcache_dup, regcache_cpy): Update comments.
4182
4183 2017-07-18 Pedro Alves <palves@redhat.com>
4184
4185 * remote-sim.c (sim_command_completer): Adjust to work with a
4186 completion_tracker instead of a VEC.
4187
4188 2017-07-17 Pedro Alves <palves@redhat.com>
4189
4190 * completer.c (complete_source_filenames): New function.
4191 (complete_address_and_linespec_locations): New function.
4192 (location_completer): Use complete_address_and_linespec_locations.
4193 (completion_tracker::build_completion_result): Honor the tracker's
4194 request to suppress append.
4195 * completer.h (completion_tracker::suppress_append_ws)
4196 (completion_tracker::set_suppress_append_ws): New methods.
4197 (completion_tracker::m_suppress_append_ws): New field.
4198 (complete_source_filenames): New declaration.
4199 * linespec.c (linespec_complete_what): New.
4200 (struct ls_parser) <complete_what, completion_word,
4201 completion_quote_char, completion_quote_end, completion_tracker>:
4202 New fields.
4203 (string_find_incomplete_keyword_at_end): New.
4204 (linespec_lexer_lex_string): Record quote char. If in completion
4205 mode, don't throw.
4206 (linespec_lexer_consume_token): Advance the completion word point.
4207 (linespec_lexer_peek_token): Save/restore completion info.
4208 (save_stream_and_consume_token): New.
4209 (set_completion_after_number): New.
4210 (linespec_parse_basic): Set what to complete next depending on
4211 token. Handle function and label completions specially.
4212 (parse_linespec): Disable objc shortcut in completion mode. Set
4213 what to complete next depending on token type. Skip keyword if in
4214 completion mode.
4215 (complete_linespec_component, linespec_complete): New.
4216 * linespec.h (linespec_complete): Declare.
4217
4218 2017-07-17 Pedro Alves <palves@redhat.com>
4219
4220 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
4221 Handle 'operator<' / 'operator<<'.
4222
4223 2017-07-17 Pedro Alves <palves@redhat.com>
4224
4225 * completer.c (collect_explicit_location_matches): Handle
4226 MATCH_LABEL.
4227 (convert_explicit_location_to_linespec): New, factored out from
4228 ...
4229 (convert_explicit_location_to_sals): ... this.
4230 (complete_label): New.
4231 (linespec_complete_label, find_label_symbols_in_block): New.
4232 (find_label_symbols): Add completion_mode parameter and adjust to
4233 call find_label_symbols_in_block.
4234 * linespec.h (linespec_complete_label): Declare.
4235
4236 2017-07-17 Pedro Alves <palves@redhat.com>
4237
4238 * ada-lang.c (ada_collect_symbol_completion_matches): Add
4239 complete_symbol_mode parameter.
4240 * cli/cli-cmds.c (complete_command): Get the completion result out
4241 of the handle_brkchars tracker if used a custom word point.
4242 * completer.c: Include "linespec.h".
4243 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
4244 (advance_to_expression_complete_word_point): New.
4245 (completion_tracker::completes_to_completion_word): New.
4246 (complete_files_symbols): Pass down
4247 complete_symbol_mode::EXPRESSION.
4248 (explicit_options, probe_options): New.
4249 (collect_explicit_location_matches): Complete on the
4250 explictit_loc->foo instead of word. Use
4251 linespec_complete_function. Handle MATCH_LINE. Handle offering
4252 keyword and options completions.
4253 (backup_text_ptr): Delete.
4254 (skip_keyword): New.
4255 (complete_explicit_location): Remove 'word' parameter. Add
4256 language, quoted_arg_start and quoted_arg_end parameters.
4257 Rewrite, parsing left to right.
4258 (location_completer): Rewrite.
4259 (location_completer_handle_brkchars): New function.
4260 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
4261 (enum complete_line_internal_reason): Adjust comments.
4262 (completion_tracker::discard_completions): New.
4263 (completer_handle_brkchars_func_for_completer): Handle
4264 location_completer.
4265 (gdb_custom_word_point_brkchars)
4266 (gdb_org_rl_basic_quote_characters): New.
4267 (gdb_completion_word_break_characters_throw)
4268 (completion_find_completion_word): Handle trackers that use a
4269 custom word point.
4270 (completion_tracker::advance_custom_word_point_by): New.
4271 (completion_tracker::build_completion_result): Don't rely on
4272 readline appending the quote char.
4273 (gdb_rl_attempted_completion_function_throw): Handle trackers that
4274 use a custom word point.
4275 (gdb_rl_attempted_completion_function): Restore
4276 rl_basic_quote_characters.
4277 * completer.h (class completion_tracker): Extend intro comment.
4278 (completion_tracker::set_quote_char)
4279 (completion_tracker::quote_char)
4280 (completion_tracker::set_use_custom_word_point)
4281 (completion_tracker::use_custom_word_point)
4282 (completion_tracker::custom_word_point)
4283 (completion_tracker::set_custom_word_point)
4284 (completion_tracker::advance_custom_word_point_by)
4285 (completion_tracker::completes_to_completion_word)
4286 (completion_tracker::discard_completions): New methods.
4287 (completion_tracker::m_quote_char)
4288 (completion_tracker::m_use_custom_word_point)
4289 (completion_tracker::m_custom_word_point): New fields.
4290 (advance_to_expression_complete_word_point): Declare.
4291 * f-lang.c (f_collect_symbol_completion_matches): Add
4292 complete_symbol_mode parameter.
4293 * language.h (struct language_defn)
4294 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
4295 parameter.
4296 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
4297 (linespec_complete_function): New function.
4298 (linespec_lexer_lex_keyword): Adjust.
4299 * linespec.h (linespec_keywords, linespec_complete_function): New
4300 declarations.
4301 * location.c (find_end_quote): New function.
4302 (explicit_location_lex_one): Add explicit_completion_info
4303 parameter. Save quoting info. Don't throw if being called for
4304 completion. Don't handle Ada operators here.
4305 (is_cp_operator, skip_op_false_positives, first_of)
4306 (explicit_location_lex_one_function): New function.
4307 (string_to_explicit_location): Replace 'dont_throw' parameter with
4308 an explicit_completion_info pointer parameter. Handle it. Don't
4309 use explicit_location_lex_one to lex function names. Use
4310 explicit_location_lex_one_function instead.
4311 * location.h (struct explicit_completion_info): New.
4312 (string_to_explicit_location): Replace 'dont_throw' parameter with
4313 an explicit_completion_info pointer parameter.
4314 * symtab.c (default_collect_symbol_completion_matches_break_on):
4315 Add complete_symbol_mode parameter. Handle LINESPEC mode.
4316 (default_collect_symbol_completion_matches)
4317 (collect_symbol_completion_matches): Add complete_symbol_mode
4318 parameter.
4319 (collect_symbol_completion_matches_type): Pass down
4320 complete_symbol_mode::EXPRESSION.
4321 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4322 parameter. Handle LINESPEC mode.
4323 * symtab.h (complete_symbol_mode): New.
4324 (default_collect_symbol_completion_matches_break_on)
4325 (default_collect_symbol_completion_matches)
4326 (collect_symbol_completion_matches)
4327 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4328 parameter.
4329
4330 2017-07-17 Pedro Alves <palves@redhat.com>
4331
4332 * utils.c (enum class strncmp_iw_mode): New.
4333 (strcmp_iw): Rename to ...
4334 (strncmp_iw_with_mode): ... this. Add string2_len and mode
4335 parameters. Handle them.
4336 (strncmp_iw): New.
4337 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
4338 * utils.h (strncmp_iw): Declare.
4339 (strcmp_iw): Move describing comments here.
4340
4341 2017-07-17 Pedro Alves <palves@redhat.com>
4342
4343 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
4344 CP_OPERATOR_STR.
4345 * c-typeprint.c (is_type_conversion_operator): Use
4346 CP_OPERATOR_STR.
4347 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
4348 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
4349 CP_OPERATOR_LEN.
4350 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
4351 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
4352 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
4353 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
4354 CP_OPERATOR_STR.
4355 * location.c: Include "cp-support.h".
4356 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
4357 CP_OPERATOR_STR.
4358 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
4359 CP_OPERATOR_LEN.
4360
4361 2017-07-17 Pedro Alves <palves@redhat.com>
4362
4363 * cli/cli-cmds.c (complete_command): Use a completion tracker
4364 along with completion_find_completion_word for handle_brkchars
4365 phase.
4366 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
4367 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
4368 (struct gdb_rl_completion_word_info): New.
4369 (gdb_rl_find_completion_word): New.
4370 (completion_find_completion_word): New.
4371 * completer.h (completion_find_completion_word): Declare.
4372
4373 2017-07-17 Pedro Alves <palves@redhat.com>
4374
4375 * ada-lang.c (symbol_completion_match): Adjust comments.
4376 (symbol_completion_add): Replace vector parameter with
4377 completion_tracker parameter. Use it.
4378 (ada_make_symbol_completion_list): Rename to...
4379 (ada_collect_symbol_completion_matches): ... this. Add
4380 completion_tracker parameter and use it.
4381 (ada_language_defn): Adjust.
4382 * break-catch-syscall.c (catch_syscall_completer): Adjust
4383 prototype and work with completion_tracker instead of VEC.
4384 * breakpoint.c (condition_completer): Adjust prototype and work
4385 with completion_tracker instead of VEC.
4386 * c-lang.c (c_language_defn, cplus_language_defn)
4387 (asm_language_defn, minimal_language_defn): Adjust to renames.
4388 * cli/cli-cmds.c (complete_command): Rework using
4389 completion_tracker. Catch exceptions when completing.
4390 * cli/cli-decode.c (integer_unlimited_completer)
4391 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
4392 with completion_tracker instead of VEC.
4393 * command.h (struct completion_tracker): Forward declare.
4394 (completer_ftype, completer_handle_brkchars_ftype): Change
4395 types.
4396 (complete_on_cmdlist, complete_on_enum): Adjust.
4397 * completer.c: Include <algorithm>.
4398 (struct gdb_completer_state): New.
4399 (current_completion): New global.
4400 (readline_line_completion_function): Delete.
4401 (noop_completer, filename_completer)
4402 (filename_completer_handle_brkchars, complete_files_symbols)
4403 (linespec_location_completer): Adjust to work with a
4404 completion_tracker instead of a VEC.
4405 (string_or_empty): New.
4406 (collect_explicit_location_matches): Adjust to work with a
4407 completion_tracker instead of a VEC.
4408 (explicit_location_completer): Rename to ...
4409 (complete_explicit_location): ... this and adjust to work with a
4410 completion_tracker instead of a VEC.
4411 (location_completer): Adjust to work with a completion_tracker
4412 instead of a VEC.
4413 (add_struct_fields): Adjust to work with a completion_list instead
4414 of VEC.
4415 (expression_completer): Rename to ...
4416 (complete_expression): ... this and adjust to work with a
4417 completion_tracker instead of a VEC. Use complete_files_symbols.
4418 (expression_completer): Reimplement on top of complete_expression.
4419 (symbol_completer): Adjust to work with a completion_tracker
4420 instead of a VEC.
4421 (enum complete_line_internal_reason): Add describing comments.
4422 (complete_line_internal_normal_command): Adjust to work with a
4423 completion_tracker instead of a VEC.
4424 (complete_line_internal): Rename to ...
4425 (complete_line_internal_1): ... this and adjust to work with a
4426 completion_tracker instead of a VEC. Assert TEXT is NULL in the
4427 handle_brkchars phase.
4428 (new_completion_tracker): Delete.
4429 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
4430 complete_line_internal_1.
4431 (free_completion_tracker): Delete.
4432 (INITIAL_COMPLETION_HTAB_SIZE): New.
4433 (completion_tracker::completion_tracker)
4434 (completion_tracker::~completion_tracker): New.
4435 (maybe_add_completion): Delete.
4436 (completion_tracker::maybe_add_completion)
4437 (completion_tracker::add_completion)
4438 (completion_tracker::add_completions): New.
4439 (throw_max_completions_reached_error): Delete.
4440 (complete_line): Adjust to work with a completion_tracker instead
4441 of a VEC. Don't create a completion_tracker_t or check for max
4442 completions here.
4443 (command_completer, command_completer_handle_brkchars)
4444 (signal_completer, reg_or_group_completer_1)
4445 (reg_or_group_completer, default_completer_handle_brkchars):
4446 Adjust to work with a completion_tracker.
4447 (gdb_completion_word_break_characters_throw): New.
4448 (gdb_completion_word_break_characters): Reimplement.
4449 (line_completion_function): Delete.
4450 (completion_tracker::recompute_lowest_common_denominator)
4451 (expand_preserving_ws)
4452 (completion_tracker::build_completion_result)
4453 (completion_result::completion_result)
4454 (completion_result::completion_result)
4455 (completion_result::~completion_result)
4456 (completion_result::completion_result)
4457 (completion_result::release_match_list, compare_cstrings)
4458 (completion_result::sort_match_list)
4459 (completion_result::reset_match_list)
4460 (gdb_rl_attempted_completion_function_throw)
4461 (gdb_rl_attempted_completion_function): New.
4462 * completer.h (completion_list, struct completion_result)
4463 (class completion_tracker): New.
4464 (complete_line): Add completion_tracker parameter.
4465 (readline_line_completion_function): Delete.
4466 (gdb_rl_attempted_completion_function): New.
4467 (noop_completer, filename_completer, expression_completer)
4468 (location_completer, symbol_completer, command_completer)
4469 (signal_completer, reg_or_group_completer): Update prototypes.
4470 (completion_tracker_t, new_completion_tracker)
4471 (make_cleanup_free_completion_tracker): Delete.
4472 (enum maybe_add_completion_enum): Delete.
4473 (maybe_add_completion): Delete.
4474 (throw_max_completions_reached_error): Delete.
4475 * corefile.c (complete_set_gnutarget): Adjust to work with a
4476 completion_tracker instead of a VEC.
4477 * cp-abi.c (cp_abi_completer): Adjust to work with a
4478 completion_tracker instead of a VEC.
4479 * d-lang.c (d_language_defn): Adjust.
4480 * disasm.c (disassembler_options_completer): Adjust to work with a
4481 completion_tracker instead of a VEC.
4482 * f-lang.c (f_make_symbol_completion_list): Rename to ...
4483 (f_collect_symbol_completion_matches): ... this. Adjust to work
4484 with a completion_tracker instead of a VEC.
4485 (f_language_defn): Adjust.
4486 * go-lang.c (go_language_defn): Adjust.
4487 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
4488 Adjust to work with a completion_tracker instead of a VEC.
4489 * infrun.c (handle_completer): Likewise.
4490 * interps.c (interpreter_completer): Likewise.
4491 * interps.h (interpreter_completer): Likewise.
4492 * language.c (unknown_language_defn, auto_language_defn)
4493 (local_language_defn): Adjust.
4494 * language.h (language_defn::la_make_symbol_completion_list):
4495 Rename to ...
4496 (language_defn::la_collect_symbol_completion_matches): ... this
4497 and adjust to work with a completion_tracker instead of a VEC.
4498 * m2-lang.c (m2_language_defn): Adjust.
4499 * objc-lang.c (objc_language_defn): Adjust.
4500 * opencl-lang.c (opencl_language_defn): Adjust.
4501 * p-lang.c (pascal_language_defn): Adjust.
4502 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
4503 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
4504 with a completion_tracker.
4505 * rust-lang.c (rust_language_defn): Adjust.
4506 * symtab.c (free_completion_list, do_free_completion_list)
4507 (return_val, completion_tracker): Delete.
4508 (completion_list_add_name, completion_list_add_symbol)
4509 (completion_list_add_msymbol, completion_list_objc_symbol)
4510 (completion_list_add_fields, add_symtab_completions): Add
4511 completion_tracker parameter and use it.
4512 (default_make_symbol_completion_list_break_on_1): Rename to...
4513 (default_collect_symbol_completion_matches_break_on): ... this.
4514 Add completion_tracker parameter and use it instead of allocating
4515 a completion tracker here.
4516 (default_make_symbol_completion_list_break_on): Delete old
4517 implementation.
4518 (default_make_symbol_completion_list): Delete.
4519 (default_collect_symbol_completion_matches): New.
4520 (make_symbol_completion_list): Delete.
4521 (collect_symbol_completion_matches): New.
4522 (make_symbol_completion_type): Rename to ...
4523 (collect_symbol_completion_matches_type): ... this. Add
4524 completion_tracker parameter and use it instead of VEC.
4525 (make_file_symbol_completion_list_1): Rename to...
4526 (collect_file_symbol_completion_matches): ... this. Add
4527 completion_tracker parameter and use it instead of VEC.
4528 (make_file_symbol_completion_list): Delete.
4529 (add_filename_to_list): Use completion_list instead of a VEC.
4530 (add_partial_filename_data::list): Now a completion_list.
4531 (make_source_files_completion_list): Work with a completion_list
4532 instead of a VEC.
4533 * symtab.h: Include "completer.h".
4534 (default_make_symbol_completion_list_break_on)
4535 (default_make_symbol_completion_list, make_symbol_completion_list)
4536 (make_symbol_completion_type, make_file_symbol_completion_list)
4537 (make_source_files_completion_list): Delete.
4538 (default_collect_symbol_completion_matches_break_on)
4539 (default_collect_symbol_completion_matches)
4540 (collect_symbol_completion_matches)
4541 (collect_symbol_completion_matches_type)
4542 (collect_file_symbol_completion_matches)
4543 (make_source_files_completion_list): New.
4544 * top.c (init_main): Don't install a rl_completion_entry_function
4545 hook. Install a rl_attempted_completion_function hook instead.
4546 * tui/tui-layout.c (layout_completer): Adjust to work with a
4547 completion_tracker.
4548 * tui/tui-regs.c (tui_reggroup_completer):
4549 * tui/tui-win.c (window_name_completer, focus_completer)
4550 (winheight_completer): Adjust to work with a completion_tracker.
4551 * value.c: Include "completer.h".
4552 (complete_internalvar): Adjust to work with a completion_tracker.
4553 * value.h (complete_internalvar): Likewise.
4554
4555 2017-07-17 Pedro Alves <palves@redhat.com>
4556
4557 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
4558 renames.
4559 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
4560 comments to completer_ftype's declaration.
4561 <completer_handle_brkchars>: Change type to
4562 completer_handle_brkchars_ftype.
4563 * command.h (completer_ftype): Add describing comment and give
4564 names to parameters.
4565 (completer_ftype_void): Rename to ...
4566 (completer_handle_brkchars_ftype) ... this. Add describing comment.
4567 (set_cmd_completer_handle_brkchars): Adjust.
4568 * completer.c (filename_completer_handle_brkchars): New function.
4569 (complete_line_internal_normal_command): New function, factored
4570 out from ...
4571 (complete_line_internal): ... here.
4572 (command_completer_handle_brkchars)
4573 (default_completer_handle_brkchars)
4574 (completer_handle_brkchars_func_for_completer): New functions.
4575 * completer.h (set_gdb_completion_word_break_characters): Delete
4576 declaration.
4577 (completer_handle_brkchars_func_for_completer): New declaration.
4578 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
4579 completer_handle_brkchars_func_for_completer.
4580
4581 2017-07-17 Pedro Alves <palves@redhat.com>
4582
4583 * completer.c (symbol_completer): New function, based on
4584 make_symbol_completion_list_fn.
4585 * completer.h (symbol_completer): New declaration.
4586 * guile/scm-cmd.c (cmdscm_completers): Adjust.
4587 * python/py-cmd.c (completers): Adjust.
4588 * symtab.c (make_symbol_completion_list_fn): Delete.
4589 * symtab.h (make_symbol_completion_list_fn): Delete.
4590 * cli/cli-decode.c (add_cmd): Adjust.
4591
4592 2017-07-17 Pedro Alves <palves@redhat.com>
4593
4594 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
4595 * dwarf2read.c: Include "filename-seen-cache.h".
4596 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
4597 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
4598 * filename-seen-cache.c: New file.
4599 * filename-seen-cache.h: New file.
4600 * symtab.c: Include "filename-seen-cache.h".
4601 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
4602 (create_filename_seen_cache, clear_filename_seen_cache)
4603 (delete_filename_seen_cache, filename_seen): Delete, parts moved
4604 to filename-seen-cache.h/filename-seen-cache.c.
4605 (output_source_filename, sources_info)
4606 (maybe_add_partial_symtab_filename)
4607 (make_source_files_completion_list): Adjust to use
4608 filename_seen_cache.
4609
4610 2017-07-17 Pedro Alves <palves@redhat.com>
4611
4612 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
4613 fields.
4614 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
4615 dwarf2_debug_sections*)): New.
4616 (dwarf2_per_objfile::dwarf2_per_objfile(const
4617 dwarf2_per_objfile&)): Declare as deleted.
4618 (dwarf2_per_objfile::operator=): Declare as deleted.
4619 (dwarf2_per_objfile::dwarf2_per_objfile)
4620 (dwarf2_per_objfile::~dwarf2_per_objfile)
4621 (dwarf2_per_objfile::free_cached_comp_units): New.
4622 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
4623 ctor. Call dwarf2_per_objfile's ctor manually.
4624 (dwarf2_locate_sections): Deleted/refactored as ...
4625 (dwarf2_per_objfile::locate_sections): ... this new method.
4626 (free_cached_comp_units): Defer to
4627 dwarf2_per_objfile::free_cached_comp_units.
4628 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
4629
4630 2017-07-14 Tom Tromey <tom@tromey.com>
4631
4632 PR rust/21764:
4633 * rust-exp.y (convert_ast_to_expression): Add "want_type"
4634 parameter.
4635 <UNOP_SIZEOF>: Split into separate case.
4636 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
4637
4638 2017-07-14 Tom Tromey <tom@tromey.com>
4639
4640 PR rust/21763:
4641 * symtab.c (symbol_matches_domain): Add language_rust to special
4642 case.
4643 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
4644 treat LOC_TYPEDEF symbols as variables.
4645
4646 2017-07-14 Pedro Alves <palves@redhat.com>
4647
4648 * symtab.c (make_file_symbol_completion_list_1): Iterate over
4649 symtabs matching all symtabs with SRCFILE as file name instead of
4650 only considering the first hit, with lookup_symtab.
4651
4652 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4653
4654 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
4655 operator_name parameters.
4656 (gen_expr): Update function call.
4657
4658 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4659
4660 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
4661 parameter.
4662 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
4663 Likewise.
4664 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
4665 parameter, use agent_expr::gdbarch instead, update function
4666 calls.
4667 (locexpr_tracepoint_var_ref): Likewise.
4668 (loclist_tracepoint_var_ref): Likewise.
4669 * ax-gdb.c (gen_trace_static_fields): Likewise.
4670 (gen_traced_pop): Likewise.
4671 (gen_frame_args_address): Likewise.
4672 (gen_frame_locals_address): Likewise.
4673 (gen_var_ref): Likewise.
4674 (gen_struct_ref_recursive): Likewise.
4675 (gen_static_field): Likewise.
4676 (gen_maybe_namespace_elt): Likewise.
4677 (gen_expr): Likewise.
4678 (gen_trace_for_var): Likewise.
4679 (gen_trace_for_expr): Likewise.
4680 (gen_trace_for_return_address): Likewise.
4681
4682 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4683
4684 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
4685 parameter.
4686 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
4687
4688 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4689
4690 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
4691 from ax, update calls.
4692 (gen_usual_arithmetic): Likewise.
4693 (gen_integral_promotions): Likewise.
4694 (gen_bitfield_ref): Likewise.
4695 (gen_primitive_field): Likewise.
4696 (gen_struct_ref_recursive): Likewise.
4697 (gen_struct_ref): Likewise.
4698 (gen_maybe_namespace_elt): Likewise.
4699 (gen_struct_elt_for_reference): Likewise.
4700 (gen_namespace_elt): Likewise.
4701 (gen_aggregate_elt_ref): Likewise.
4702 (gen_expr): Get gdbarch from ax, update calls.
4703 (gen_expr_binop_rest): Likewise.
4704
4705 2017-07-13 Pedro Alves <palves@redhat.com>
4706
4707 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
4708 as default tdesc.
4709 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
4710 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
4711 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
4712 tdesc_amd64_linux as default tdesc. Get final tdesc from the
4713 tdep.
4714 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
4715 Get final tdesc from the tdep.
4716 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
4717 default tdesc.
4718 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4719 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4720 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
4721 Use it as default tdesc.
4722 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
4723 down to amd_init_abi. No longer handle fallback tdesc here.
4724 * amd64-tdep.h (tdesc_x32): Declare.
4725 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
4726 parameter.
4727 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
4728 as default tdesc.
4729
4730 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4731
4732 * s390-linux-tdep.c (s390_process_record): Add support for
4733 instructions new in arch12.
4734
4735 2017-07-11 John Baldwin <jhb@FreeBSD.org>
4736
4737 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
4738 PT_GETFSBASE and PT_GETGSBASE.
4739 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
4740 PT_SETGSBASE.
4741
4742 2017-07-11 John Baldwin <jhb@FreeBSD.org>
4743
4744 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
4745 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
4746 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
4747 those rules.
4748 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
4749 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
4750 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
4751 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
4752 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
4753 * features/i386/amd64.xml: Add 64bit-segments.xml.
4754 * features/i386/amd64-avx-avx512.c: Regenerated.
4755 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
4756 * features/i386/amd64-avx-mpx.c: Regenerated.
4757 * features/i386/amd64-avx.c: Regenerated.
4758 * features/i386/amd64-mpx.c: Regenerated.
4759 * features/i386/amd64.c: Regenerated.
4760 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
4761 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
4762 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
4763 * regformats/i386/amd64-avx.dat: Regenerated.
4764 * regformats/i386/amd64-mpx.dat: Regenerated.
4765 * regformats/i386/amd64.dat: Regenerated.
4766
4767 2017-07-10 Yao Qi <yao.qi@linaro.org>
4768
4769 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
4770 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
4771
4772 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
4773
4774 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
4775 unsetenv.
4776 * gnulib/aclocal.m4: Regenerate.
4777 * gnulib/config.in: Regenerate.
4778 * gnulib/configure: Regenerate.
4779 * gnulib/import/Makefile.am: Regenerate.
4780 * gnulib/import/Makefile.in: Regenerate.
4781 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4782 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4783 * gnulib/import/m4/environ.m4: New file.
4784 * gnulib/import/m4/setenv.m4: New file.
4785 * gnulib/import/setenv.c: New file.
4786 * gnulib/import/unsetenv.c: New file.
4787
4788 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
4789
4790 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
4791 address when op is DW_OP_addr.
4792
4793 2017-07-09 Tom Tromey <tom@tromey.com>
4794
4795 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
4796 check and apply to outer type.
4797
4798 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4799
4800 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
4801 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
4802 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
4803 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
4804
4805 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4806
4807 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
4808
4809 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4810
4811 * corelow.c (get_core_siginfo): Remove.
4812 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
4813 instead of get_core_siginfo.
4814 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
4815 * gdbarch.h: Re-generate.
4816 * gdbarch.c: Re-generate.
4817 * linux-tdep.c (linux_core_xfer_siginfo): New.
4818 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
4819
4820 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4821
4822 * corelow.c (thread_section_name): Move to ...
4823 * gdbcore.h (thread_section_name): ... here.
4824
4825 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4826
4827 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
4828 (struct siginfo32): New.
4829 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
4830 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
4831 via ptrace(PT_LWPINFO).
4832
4833 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4834
4835 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
4836 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
4837 (fbsd_get_siginfo_type): New.
4838 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4839 (_initialize_fbsd_tdep): New.
4840
4841 2017-07-06 David Blaikie <dblaikie@gmail.com>
4842
4843 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
4844 a singular dwo_unit*) to support multiple CUs in the same way that
4845 multiple TUs are supported.
4846 (create_cus_hash_table): Replace create_dwo_cu with a function for
4847 parsing multiple CUs from a DWO file.
4848 (open_and_init_dwo_file): Use create_cus_hash_table rather than
4849 create_dwo_cu.
4850 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
4851 htab_find, rather than comparing the signature to a singleton CU in
4852 the dwo_file.
4853
4854 2017-07-06 Pedro Alves <palves@redhat.com>
4855
4856 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
4857
4858 2017-07-04 Pedro Alves <palves@redhat.com>
4859
4860 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
4861 * gdbtypes.h (TYPE_STATIC): Delete.
4862 (struct fn_field) <is_public, is_abstract, is_static, is_final,
4863 is_synchronized, is_native>: Delete.
4864 <dummy>: Bump.
4865 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
4866 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
4867 (TYPE_FN_FIELD_ABSTRACT): Delete.
4868
4869 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
4870
4871 * buffer.h (buffer_finish): Fix spelling mistakes.
4872
4873 2017-07-01 Eli Zaretskii <eliz@gnu.org>
4874
4875 * .dir-locals.el: Automatically switch to C-style comments in
4876 versions of Emacs that support the feature.
4877
4878 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
4879 Pedro Alves <palves@redhat.com>
4880
4881 PR cli/21688
4882 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
4883 (process_next_line): New variable 'inline_cmd'.
4884 Adjust 'if' clauses for "python", "compile" and "guile" to use
4885 'command_name_equals' and check for '!inline_cmd'.
4886
4887 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
4888
4889 PR cli/21688
4890 * cli/cli-script.c (command_name_equals_not_inline): New function.
4891 (process_next_line): Adjust 'if' clauses for "python", "compile"
4892 and "guile" to use command_name_equals_not_inline.
4893
4894 2017-06-29 Pedro Alves <palves@redhat.com>
4895
4896 * completer.c (expression_completer): Call
4897 linespec_location_completer instead of location_completer.
4898
4899 2017-06-29 Pedro Alves <palves@redhat.com>
4900
4901 * completer.c (expression_completer): Remove code that recomputes
4902 'text' from 'word'.
4903
4904 2017-06-29 Yao Qi <yao.qi@linaro.org>
4905
4906 * regformats/regdat.sh: Generate code with
4907 "ifndef IN_PROCESS_AGENT".
4908
4909 2017-06-28 Pedro Alves <palves@redhat.com>
4910
4911 * command.h: Include "common/scoped_restore.h".
4912
4913 2017-06-28 Yao Qi <yao.qi@linaro.org>
4914
4915 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
4916 instead of obstack_grow.
4917
4918 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
4919
4920 PR gdb/21337
4921 * symfile.c (reread_symbols): Call objfiles_changed just before
4922 read_symbols.
4923
4924 2017-06-27 Pedro Alves <palves@redhat.com>
4925
4926 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
4927 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
4928 (completion_list_add_symbol, completion_list_add_msymbol):
4929 ... these new functions.
4930 (add_symtab_completions)
4931 (default_make_symbol_completion_list_break_on_1): Adjust.
4932
4933 2017-06-27 Pedro Alves <palves@redhat.com>
4934
4935 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
4936 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
4937 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
4938 dtor.
4939 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
4940 'storage_obstack' field an auto_obstack. In-class initialize all
4941 non-bitfield fields. Make minsyms_read bool.
4942 * symfile.c (read_symbols): Adjust.
4943
4944 2017-06-27 Alan Hayward <alan.hayward@arm.com>
4945
4946 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
4947 (gdbsim_store_register): Likewise.
4948
4949 2017-06-27 Pedro Alves <palves@redhat.com>
4950
4951 * c-exp.y (name_obstack): Now an auto_obstack.
4952 (yylex): Use auto_obstack::clear.
4953 (c_parse): Use auto_obstack::clear instead of reinitializing and
4954 freeing the obstack.
4955 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
4956 * d-exp.y (name_obstack): Now an auto_obstack.
4957 (yylex): Use auto_obstack::clear.
4958 (d_parse): Use auto_obstack::clear instead of reinitializing and
4959 freeing the obstack.
4960 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
4961 auto_obstack.
4962 * dwarf2read.c (create_addrmap_from_index)
4963 (dwarf2_build_psymtabs_hard)
4964 (update_enumeration_type_from_children): Likewise.
4965 * gdb_obstack.h (auto_obstack): New type.
4966 * go-exp.y (name_obstack): Now an auto_obstack.
4967 (build_packaged_name): Use auto_obstack::clear.
4968 (go_parse): Use auto_obstack::clear instead of reinitializing and
4969 freeing the obstack.
4970 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
4971 auto_obstack.
4972 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
4973 * rust-exp.y (work_obstack): Now an auto_obstack.
4974 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
4975 reinitializing and freeing the obstack.
4976 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
4977 (host_char_to_target): Use auto_obstack.
4978 * utils.h (make_cleanup_obstack_free): Delete declaration.
4979 * valprint.c (generic_emit_char, generic_printstr): Use
4980 auto_obstack.
4981
4982 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
4983
4984 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
4985 thread.
4986 (darwin_init_thread_list): Don't update dummy thread.
4987 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
4988
4989 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
4990
4991 * record-full.c (netorder16): Remove.
4992
4993 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
4994
4995 * common/diagnostics.h: Define macros for GCC.
4996 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
4997 * common/vec.h: Include diagnostics.h.
4998 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
4999 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
5000 warning.
5001
5002 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
5003
5004 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
5005 New macro.
5006 * ada-lex.l: Ignore deprecated register warnings.
5007
5008 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5009
5010 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
5011 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
5012
5013 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5014
5015 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
5016 its own line.
5017
5018 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
5019
5020 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
5021
5022 2017-06-23 Alan Hayward <alan.hayward@arm.com>
5023
5024 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
5025 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
5026 (xtensa_register_read_masked): Likewise.
5027
5028 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
5029
5030 * common/environ.c (gdb_environ::unset): Update comment.
5031
5032 2017-06-22 Alan Hayward <alan.hayward@arm.com>
5033
5034 * python/py-unwind.c (pyuw_sniffer): Allocate space for
5035 registers.
5036
5037 2017-06-22 Alan Hayward <alan.hayward@arm.com>
5038
5039 * record-full.c (record_full_exec_insn): Use byte_vector.
5040
5041 2017-06-22 Yao Qi <yao.qi@linaro.org>
5042
5043 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
5044 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
5045
5046 2017-06-22 Alan Hayward <alan.hayward@arm.com>
5047
5048 * remote.c (cached_reg): Move from here...
5049 * regcache.h (cached_reg): ...to here.
5050 * python/py-unwind.c (struct reg_info): Remove.
5051 (cached_frame_info): Use cached_reg_t.
5052 (pyuw_prev_register): Likewise.
5053 (pyuw_sniffer): Use cached_reg_t and allocate registers.
5054 (pyuw_dealloc_cache): Free all registers.
5055
5056 2017-06-22 Pedro Alves <palves@redhat.com>
5057 Simon Marchi <simon.marchi@ericsson.com>
5058
5059 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
5060 warning.
5061 * common/diagnostics.h: New file.
5062
5063 2017-06-22 Pedro Alves <palves@redhat.com>
5064
5065 * common/agent.h: Add include guards.
5066
5067 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
5068
5069 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
5070 talk about addressable units instead of bytes.
5071
5072 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5073
5074 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
5075 of '::const_iterator'.
5076
5077 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5078
5079 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5080 'unittests/environ-selftests.c'.
5081 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
5082 * charset.c (find_charset_names): Declare object 'iconv_env'.
5083 Update code to use 'iconv_env' object. Remove call to
5084 'free_environ'.
5085 * common/environ.c: Include <utility>.
5086 (make_environ): Delete function.
5087 (free_environ): Delete function.
5088 (gdb_environ::clear): New function.
5089 (gdb_environ::operator=): New function.
5090 (gdb_environ::get): Likewise.
5091 (environ_vector): Delete function.
5092 (set_in_environ): Delete function.
5093 (gdb_environ::set): New function.
5094 (unset_in_environ): Delete function.
5095 (gdb_environ::unset): New function.
5096 (gdb_environ::envp): Likewise.
5097 * common/environ.h: Include <vector>.
5098 (struct gdb_environ): Delete; transform into...
5099 (class gdb_environ): ... this class.
5100 (free_environ): Delete prototype.
5101 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
5102 environ_vector): Likewise.
5103 * infcmd.c (run_command_1): Update code to call
5104 'envp' from 'gdb_environ' class.
5105 (environment_info): Update code to call methods from 'gdb_environ'
5106 class.
5107 (unset_environment_command): Likewise.
5108 (path_info): Likewise.
5109 (path_command): Likewise.
5110 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
5111 (inferior::inferior): Initialize 'environment' using the host's
5112 information.
5113 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
5114 Include "environ.h".
5115 (class inferior) <environment>: Change type from 'struct
5116 gdb_environ' to 'gdb_environ'.
5117 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
5118 methods from 'gdb_environ' class.
5119 * solib.c (solib_find_1): Likewise
5120 * unittests/environ-selftests.c: New file.
5121
5122 2017-06-20 Yao Qi <yao.qi@linaro.org>
5123
5124 * features/i386/i386-linux.xml: Exchange the order of including
5125 32bit-linux.xml and 32bit-sse.xml.
5126 * features/i386/i386-linux.c: Regenerated.
5127
5128 2017-06-20 Yao Qi <yao.qi@linaro.org>
5129
5130 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
5131 Delete copy ctor and assignment operator.
5132 (tdesc_type): Likewise.
5133 (tdesc_feature): Likewise.
5134 (tdesc_free_reg): Remove.
5135 (tdesc_create_reg): Use new.
5136 (tdesc_free_type): Remove.
5137 (tdesc_create_vector): Use new.
5138 (tdesc_create_union): Likewise.
5139 (tdesc_create_flags): Likewise.
5140 (tdesc_create_enum): Likewise.
5141 (tdesc_free_feature): Delete.
5142 (free_target_description): Use delete.
5143
5144 2017-06-19 John Baldwin <jhb@FreeBSD.org>
5145
5146 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
5147 registers.
5148
5149 2017-06-19 Pedro Alves <palves@redhat.com>
5150
5151 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
5152 after gdb::unlinker.
5153
5154 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
5155
5156 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
5157 gdb_environ to access an environment variable.
5158
5159 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
5160
5161 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
5162 gdb_byte*.
5163
5164 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5165
5166 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
5167
5168 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5169
5170 * configure: Re-generate.
5171 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
5172
5173 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5174
5175 * configure: Re-generate.
5176 * warning.m4: Pass -Werror to compiler when checking for
5177 supported warning flags.
5178
5179 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5180
5181 * Makefile.in (COMPILE.pre): Add "-x c++".
5182
5183 2017-06-16 Alan Hayward <alan.hayward@arm.com>
5184 Pedro Alves <palves@redhat.com>
5185 Yao Qi <yao.qi@linaro.org>
5186
5187 * defs.h (RequireLongest): New.
5188 (extract_integer): Declare function template.
5189 (extract_signed_integer): Remove the declaration, but define it
5190 static inline.
5191 (extract_unsigned_integer): Likewise.
5192 (store_integer): Declare function template.
5193 (store_signed_integer): Remove the declaration, but define it
5194 static inline.
5195 (store_unsigned_integer): Likewise.
5196 * findvar.c (extract_integer): New function template.
5197 (extract_signed_integer): Remove.
5198 (extract_unsigned_integer): Remove.
5199 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
5200 instantiations.
5201 (store_integer): New function template.
5202 (store_signed_integer): Remove.
5203 (store_unsigned_integer): Remove.
5204 (store_integer): Explicit instantiations.
5205 * regcache.c (regcache_raw_read_signed): Update.
5206 (regcache::raw_read): New function.
5207 (regcache::raw_read_signed): Remove.
5208 (regcache::raw_read_unsigned): Remove.
5209 (regcache_raw_read_unsigned): Update.
5210 (regcache_raw_write_unsigned): Update.
5211 (regcache::raw_write_signed): Remove.
5212 (regcache::raw_write): New function.
5213 (regcache_cooked_read_signed): Update.
5214 (regcache::raw_write_unsigned): Remove.
5215 (regcache::cooked_read_signed): Remove.
5216 (regcache_cooked_read_unsigned): Update.
5217 (regcache::cooked_read_unsigned): Remove.
5218 (regcache_cooked_write_signed): Update.
5219 (regcache_cooked_write_unsigned): Update.
5220 * regcache.h (regcache) <raw_read_signed>: Remove.
5221 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
5222 <raw_read, raw_write>: New.
5223 <cooked_read_signed, cooked_write_signed>: Remove.
5224 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
5225 <cooked_read, cooked_write>: New.
5226 * sh64-tdep.c (sh64_pseudo_register_read): Update.
5227 (sh64_pseudo_register_write): Update.
5228
5229 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
5230
5231 * arc-tdep.c (arc_disassembler_options): New variable.
5232 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
5233 of default_print_insn.
5234 (arc_delayed_print_insn): Set info->section when needed,
5235 use default_print_insn to retrieve a disassembler.
5236
5237 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
5238
5239 PR gdb/21574
5240 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
5241 to mention $SHELL and startup-with-shell.
5242
5243 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
5244
5245 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
5246
5247 2017-06-14 Yao Qi <yao.qi@linaro.org>
5248
5249 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
5250 default_print_insn instead of print_insn_aarch64.
5251 * arm-tdep.c (gdb_print_insn_arm): Call
5252 default_print_insn instead of print_insn_big_arm
5253 and print_insn_little_arm.
5254 * i386-tdep.c (i386_print_insn): Call default_print_insn
5255 instead of print_insn_i386.
5256 * ia64-tdep.c (ia64_print_insn): Call
5257 default_print_insn instead of print_insn_ia64.
5258 * mips-tdep.c (gdb_print_insn_mips): Call
5259 default_print_insn instead of print_insn_big_mips
5260 and print_insn_little_mips.
5261 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
5262 instead of print_insn_spu.
5263
5264 2017-06-14 Pedro Alves <palves@redhat.com>
5265
5266 * ada-lang.c: Include "common/byte-vector.h".
5267 (ada_value_primitive_packed_val): Use gdb::byte_vector.
5268 * charset.c (wchar_iterator::iterate): Resize the vector instead
5269 of reserving it.
5270 * common/byte-vector.h: Include "common/def-vector.h".
5271 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
5272 * cli/cli-dump.c: Include "common/byte-vector.h".
5273 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
5274 * common/byte-vector.h: New file.
5275 * common/def-vector.h: New file.
5276 * common/default-init-alloc.h: New file.
5277 * dwarf2loc.c: Include "common/byte-vector.h".
5278 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
5279 instead of reserving it.
5280 * dwarf2read.c: Include "common/byte-vector.h".
5281 (data_buf::m_vec): Now a gdb::byte_vector.
5282 * gdb_regex.c: Include "common/def-vector.h".
5283 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
5284 * mi/mi-main.c: Include "common/byte-vector.h".
5285 (mi_cmd_data_read_memory): Use gdb::byte_vector.
5286 * printcmd.c: Include "common/byte-vector.h".
5287 (print_scalar_formatted): Use gdb::byte_vector.
5288 * valprint.c: Include "common/byte-vector.h".
5289 (maybe_negate_by_bytes, print_decimal_chars): Use
5290 gdb::byte_vector.
5291
5292 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5293
5294 * darwin-nat.c: Include "nat/fork-inferior.h".
5295
5296 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5297
5298 * configure.nat: Factor out Darwin bits that are not
5299 architecture-specific. Add fork-inferior.o.
5300
5301 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5302
5303 * configure.nat: Factor out AIX bits that are not
5304 architecture-specific. Add fork-inferior.o.
5305
5306 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5307
5308 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
5309 (read_pieced_value, write_pieced_value): ...here. Reduce to
5310 wrappers that just call rw_pieced_value.
5311
5312 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5313
5314 * dwarf2loc.c (write_pieced_value): When writing the data for a
5315 memory piece, use write_memory_with_notification instead of
5316 write_memory.
5317
5318 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5319
5320 * valops.c (read_value_memory): Change embedded_offset to
5321 represent a bit offset instead of a byte offset.
5322 * value.h (read_value_memory): Adjust comment.
5323
5324 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5325
5326 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
5327 dest_offset_bits and source_offset_bits.
5328 (write_pieced_value): Likewise.
5329
5330 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5331
5332 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
5333 given by DW_OP_bit_piece.
5334 (write_pieced_value): Likewise.
5335
5336 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5337
5338 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
5339 some other preparations to the places where sufficient information
5340 is available.
5341 (write_pieced_value): Likewise.
5342
5343 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5344
5345 * dwarf2loc.c (bits_to_bytes): New function.
5346 (read_pieced_value): Fix offset calculations for register pieces
5347 on big-endian targets.
5348 (write_pieced_value): Likewise.
5349
5350 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5351
5352 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
5353 (write_pieced_value): Likewise.
5354
5355 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5356
5357 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
5358 transfer the source value's least significant bits, instead of its
5359 lowest-addressed ones. Rename type_len to max_offset.
5360 (read_pieced_value): Mirror above changes to write_pieced_value as
5361 applicable.
5362
5363 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5364
5365 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
5366 truncate full bytes from dest_offset_bits before using it as an
5367 offset into the buffer.
5368
5369 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5370
5371 * dwarf2loc.c (write_pieced_value): Include transfer size in
5372 byte-wise check.
5373
5374 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5375
5376 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
5377 calculation of this_size.
5378
5379 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5380
5381 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
5382 when targeting a bit-field.
5383 (write_pieced_value): Likewise.
5384
5385 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5386
5387 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
5388 (allocate_piece_closure): Drop addr_size parameter.
5389 (dwarf2_evaluate_loc_desc_full): Adjust call to
5390 allocate_piece_closure.
5391
5392 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5393
5394 PR gdb/21226
5395 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
5396 the LSB end, independent of endianness.
5397
5398 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5399
5400 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
5401 size capping.
5402
5403 2017-06-13 Yao Qi <yao.qi@linaro.org>
5404
5405 * mips-linux-nat.c: Move include features/mips*-linux.c to
5406 mips-linux-tdep.c.
5407 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
5408 to mips-linux-tdep.c.
5409 * mips-linux-tdep.c: Include features/mips*-linux.c
5410 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
5411 functions.
5412 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
5413 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
5414 (tdesc_mips64_dsp_linux): Declare.
5415
5416 2017-06-12 Tom Tromey <tom@tromey.com>
5417
5418 * valprint.h (val_print_type_code_int): Remove.
5419 * valprint.c (generic_val_print_int): Always call
5420 val_print_scalar_formatted.
5421 (val_print_type_code_int): Remove.
5422 * printcmd.c (print_scalar_formatted): Handle options->format==0.
5423 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
5424 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
5425 * ada-valprint.c (ada_val_print_num): Use
5426 val_print_scalar_formatted.
5427
5428 2017-06-12 Tom Tromey <tom@tromey.com>
5429
5430 * printcmd.c (print_scalar_formatted): Unify the two switches.
5431 Don't convert scalars to LONGEST.
5432
5433 2017-06-12 Tom Tromey <tom@tromey.com>
5434
5435 PR exp/16225:
5436 * valprint.h (print_decimal_chars): Update.
5437 * valprint.c (maybe_negate_by_bytes): New function.
5438 (print_decimal_chars): Add "is_signed" argument.
5439 * printcmd.c (print_scalar_formatted): Update.
5440
5441 2017-06-12 Tom Tromey <tom@tromey.com>
5442
5443 PR exp/16225:
5444 * valprint.h (print_binary_chars, print_hex_chars): Update.
5445 * valprint.c (val_print_type_code_int): Update.
5446 (print_binary_chars): Add "zero_pad" argument.
5447 (emit_octal_digit): New function.
5448 (print_octal_chars): Don't zero-pad.
5449 (print_decimal_chars): Likewise.
5450 (print_hex_chars): Add "zero_pad" argument.
5451 * sh64-tdep.c (sh64_do_fp_register): Update.
5452 * regcache.c (regcache::dump): Update.
5453 * printcmd.c (print_scalar_formatted): Update.
5454 * infcmd.c (default_print_one_register_info): Update.
5455
5456 2017-06-12 Pedro Alves <palves@redhat.com>
5457 Alan Hayward <alan.hayward@arm.com>
5458
5459 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
5460 (mips_eabi_push_dummy_call): Rename local 'regsize' to
5461 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
5462 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
5463 Assert that abi_regsize bytes fit in 'ref_valbuf'.
5464
5465 2017-06-12 Pedro Alves <palves@redhat.com>
5466
5467 * dwarf2read.c (mapped_symtab::data): Now a vector of
5468 symtab_index_entry instead of vector of
5469 std::unique_ptr<symtab_index_entry>. All users adjusted to check
5470 whether an element's name is NULL instead of checking whether the
5471 element itself is NULL.
5472 (find_slot): Change return type. Adjust.
5473 (hash_expand, , add_index_entry, uniquify_cu_indices)
5474 (write_hash_table): Adjust.
5475
5476 2017-06-12 Pedro Alves <palves@redhat.com>
5477
5478 * dwarf2read.c (recursively_count_psymbols): New function.
5479 (write_psymtabs_to_index): Call it to compute number of psyms and
5480 pass estimate size of psyms_seen to unordered_set's ctor.
5481
5482 2017-06-12 Pedro Alves <palves@redhat.com>
5483
5484 * dwarf2read.c (write_hash_table): Check if key already exists
5485 before emplacing.
5486
5487 2017-06-12 Pedro Alves <palves@redhat.com>
5488
5489 * dwarf2read.c (data_buf::append_space): Rename to...
5490 (data_buf::grow): ... this, and make private. Adjust all callers.
5491 (data_buf::append_uint): New method.
5492 (add_address_entry, write_one_signatured_type)
5493 (write_psymtabs_to_index): Use it.
5494
5495 2017-06-12 Pedro Alves <palves@redhat.com>
5496
5497 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
5498 (file_write (FILE *, const std::vector<Elem>&)): Delete.
5499 (data_buf::file_write): Call ::fwrite directly.
5500
5501 2017-06-12 Pedro Alves <palves@redhat.com>
5502
5503 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
5504 std::vector::erase.
5505
5506 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5507
5508 Code cleanup: C++ify .gdb_index producer.
5509 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
5510 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
5511 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
5512 (create_strtab, add_string): Remove.
5513 (file_write, data_buf): New.
5514 (struct symtab_index_entry): Use std::vector for cu_indices.
5515 (struct mapped_symtab): Use std::vector for data.
5516 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
5517 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
5518 Remove.
5519 (find_slot): Change return type. Update it to the new data structures.
5520 (hash_expand, add_index_entry): Update it to the new data structures.
5521 (offset_type_compare): Remove.
5522 (uniquify_cu_indices): Update it to the new data structures.
5523 (c_str_view, c_str_view_hasher, vector_hasher): New.
5524 (add_indices_to_cpool): Remove.
5525 (write_hash_table): Update it to the new data structures.
5526 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
5527 (eq_psymtab_cu_index): Remove.
5528 (psym_index_map): New typedef.
5529 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
5530 reference and std::unordered_map for cu_index_htab.
5531 (add_address_entry, add_address_entry_worker, write_address_map)
5532 (write_psymbols): Update it to the new data structures.
5533 (write_obstack): Remove.
5534 (struct signatured_type_index_data): Change types_list to a data_buf
5535 reference and psyms_seen to a std::unordered_set reference.
5536 (write_one_signatured_type, recursively_write_psymbols)
5537 (write_psymtabs_to_index): Update it to the new data structures.
5538
5539 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
5540
5541 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
5542 separate-debug-file commands.
5543 * symfile.h (separate_debug_file_debug): New global.
5544 * symfile.c (separate_debug_file_debug): New global.
5545 (separate_debug_file_exists, find_separate_debug_file): Add
5546 debug output.
5547 (_initialize_symfile): Add "set debug separate-debug-file"
5548 command.
5549 * build-id.c (build_id_to_debug_bfd,
5550 find_separate_debug_file_by_buildid): Add debug output.
5551
5552 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5553
5554 * gdbarch.sh (displaced_step_free_closure): Remove.
5555 * gdbarch.h, gdbarch.c: Re-generate.
5556 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
5557 displaced_step_free_closure.
5558 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
5559 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
5560 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
5561 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
5562 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5563 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5564 * arch-utils.h (simple_displaced_step_free_closure): Remove.
5565 * arch-utils.c (simple_displaced_step_free_closure): Remove.
5566 * infrun.c (displaced_step_clear): Call xfree instead of
5567 gdbarch_displaced_step_free_closure.
5568
5569 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
5570
5571 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
5572 NULL".
5573
5574 2017-06-08 Alan Hayward <alan.hayward@arm.com>
5575
5576 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
5577 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
5578 (mn10300_push_dummy_call): Likewise.
5579
5580 2017-06-08 Alan Hayward <alan.hayward@arm.com>
5581
5582 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
5583
5584 2017-06-08 Alan Hayward <alan.hayward@arm.com>
5585
5586 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
5587
5588 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5589
5590 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
5591 able to start inferiors using a shell.
5592 (New remote packets): Announce new packet "QStartupWithShell".
5593 * remote.c: Add PACKET_QStartupWithShell.
5594 (extended_remote_create_inferior): Handle new
5595 PACKET_QStartupWithShell.
5596 (remote_protocol_features) <QStartupWithShell>: New entry for
5597 PACKET_QStartupWithShell.
5598 (_initialize_remote): Call "add_packet_config_cmd" for
5599 QStartupShell.
5600
5601 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5602 Pedro Alves <palves@redhat.com>
5603
5604 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
5605 and "nat/fork-inferior.h".
5606 * common/common-inferior.h: New file, with contents from
5607 "gdb/inferior.h".
5608 * commom/common-utils.c: Include "common-utils.h".
5609 (stringify_argv): New function.
5610 * common/common-utils.h (stringify_argv): New prototype.
5611 * configure.nat: Add "fork-inferior.o" as a dependency for
5612 "*linux*", "fbsd*" and "nbsd*" hosts.
5613 * corefile.c (get_exec_file): Update comment.
5614 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
5615 instead of "startup_inferior".
5616 (darwin_create_inferior): Call "add_thread_silent" after
5617 "fork_inferior".
5618 * fork-child.c: Cleanup unnecessary includes.
5619 (SHELL_FILE): Move to "common/common-fork-child.c".
5620 (environ): Likewise.
5621 (exec_wrapper): Initialize.
5622 (get_exec_wrapper): New function.
5623 (breakup_args): Move to "common/common-fork-child.c"; rename to
5624 "breakup_args_for_exec".
5625 (escape_bang_in_quoted_argument): Move to
5626 "common/common-fork-child.c".
5627 (saved_ui): New variable.
5628 (prefork_hook): New function.
5629 (postfork_hook): Likewise.
5630 (postfork_child_hook): Likewise.
5631 (gdb_startup_inferior): Likewise.
5632 (fork_inferior): Move to "common/common-fork-child.c". Update
5633 function to support gdbserver.
5634 (startup_inferior): Likewise.
5635 * gdbcore.h (get_exec_file): Remove declaration.
5636 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
5637 instead of "startup_inferior". Call "add_thread_silent" after
5638 "fork_inferior".
5639 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
5640 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
5641 instead of "startup_inferior". Call "add_thread_silent" after
5642 "fork_inferior".
5643 * inferior.h: Include "common-inferior.h".
5644 (trace_start_error): Move to "common/common-utils.h".
5645 (trace_start_error_with_name): Likewise.
5646 (fork_inferior): Move prototype to "nat/fork-inferior.h".
5647 (startup_inferior): Likewise.
5648 (gdb_startup_inferior): New prototype.
5649 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
5650 * nat/fork-inferior.h: New file.
5651 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
5652 instead of "startup_inferior". Call "add_thread_silent" after
5653 "fork_inferior".
5654 * target.h (target_terminal_init): Move prototype to
5655 "target/target.h".
5656 (target_terminal_inferior): Likewise.
5657 (target_terminal_ours): Likewise.
5658 * target/target.h (target_terminal_init): New prototype, moved
5659 from "target.h".
5660 (target_terminal_inferior): Likewise.
5661 (target_terminal_ours): Likewise.
5662 * utils.c (gdb_flush_out_err): New function.
5663
5664 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5665
5666 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
5667 * common/common-gdbthread.h: New file, with parts from
5668 "gdb/gdbthread.h".
5669 * gdbthread.h: Include "common-gdbthread.h".
5670 (switch_to_thread): Moved to "common/common-gdbthread.h".
5671
5672 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5673
5674 * Makefile.in (SFILES): Add "common/job-control.c".
5675 (HFILES_NO_SRCDIR): Add "common/job-control.h".
5676 (COMMON_OBS): Add "job-control.o".
5677 * common/job-control.c: New file, with contents from
5678 "gdb/inflow.c".
5679 * common/job-control.h: New file, with contents from "terminal.h".
5680 * fork-child.c: Include "job-control.h".
5681 * inflow.c: Include "job-control.h".
5682 (gdb_setpgid): Move to "common/common-inflow.c".
5683 (_initialize_inflow): Move setting of "job_control" to
5684 "handle_job_control".
5685 * terminal.h (job_control): Moved to "common/common-terminal.h".
5686 (gdb_setpgid): Likewise.
5687 * top.c: Include "job_control.h".
5688 * utils.c: Likewise.
5689 (job_control): Moved to "job-control.c".
5690
5691 2017-06-07 Pedro Alves <palves@redhat.com>
5692
5693 * Makefile.in (SFILES): Add gdb_regex.c.
5694 (COMMON_OBS): Add gdb_regex.o.
5695 * ada-lang.c (ada_add_standard_exceptions)
5696 (ada_add_exceptions_from_frame, name_matches_regex)
5697 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
5698 parameter type to compiled_regex. Adjust.
5699 (ada_exceptions_list): Use compiled_regex.
5700 * break-catch-throw.c (exception_catchpoint::pattern): Now a
5701 std::unique_ptr<compiled_regex>.
5702 (exception_catchpoint::~exception_catchpoint): Remove regfree
5703 call.
5704 (check_status_exception_catchpoint): Adjust to use compiled_regex.
5705 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
5706 * breakpoint.c (solib_catchpoint::compiled): Now a
5707 std::unique_ptr<compiled_regex>.
5708 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
5709 (check_status_catch_solib): Adjust to use compiled_regex.
5710 (add_solib_catchpoint): Adjust to use compiled_regex.
5711 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
5712 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
5713 compiled_regex reference. Adjust to use it.
5714 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
5715 declaration. Include "gdb_regex.h".
5716 (apropos_cmd): Change regex parameter to compiled_regex reference.
5717 * gdb_regex.c: New file.
5718 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
5719 declarations.
5720 (class compiled_regex): New.
5721 * linux-tdep.c: Include "common/gdb_optional.h".
5722 (struct mapping_regexes): New, factored out from
5723 mapping_is_anonymous_p, and adjusted to use compiled_regex.
5724 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
5725 gdb::optional and remove cleanups. Adjust to compiled_regex.
5726 * probe.c: Include "common/gdb_optional.h".
5727 (collect_probes): Use compiled_regex and gdb::optional and remove
5728 cleanups.
5729 * skip.c: Include "common/gdb_optional.h".
5730 (skiplist_entry::compiled_function_regexp): Now a
5731 gdb::optional<compiled_regex>.
5732 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
5733 (free_skiplist_entry): Remove regfree call.
5734 (compile_skip_regexp, skip_rfunction_p): Adjust to use
5735 compiled_regex and gdb::optional.
5736 * symtab.c: Include "common/gdb_optional.h".
5737 (search_symbols): Use compiled_regex and gdb::optional.
5738 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
5739 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
5740 to gdb_regex.c.
5741
5742 2017-06-07 Alan Hayward <alan.hayward@arm.com>
5743
5744 * regcache.c (regcache::save): Avoid buffer use.
5745 (regcache::dump): Likewise.
5746
5747 2017-06-07 Alan Hayward <alan.hayward@arm.com>
5748
5749 * sh-tdep.c (sh_pseudo_register_read): Remove
5750 MAX_REGISTER_SIZE.
5751 (sh_pseudo_register_write): Likewise.
5752 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
5753 (sh64_pseudo_register_write): Likewise
5754
5755 2017-06-07 Alan Hayward <alan.hayward@arm.com>
5756
5757 * aarch64-tdep.c (aarch64_store_return_value): Use
5758 V_REGISTER_SIZE.
5759 (aarch64_pseudo_read_value): Likewise.
5760 (aarch64_pseudo_write): Likewise.
5761
5762 2017-06-06 Yao Qi <yao.qi@linaro.org>
5763
5764 * regformats/regdef.h (set_register_cache): Remove the
5765 declaration.
5766
5767 2017-06-06 Alan Hayward <alan.hayward@arm.com>
5768
5769 * frame.c (frame_unwind_register_signed): Use
5770 frame_unwind_register_value.
5771
5772 2017-06-06 Pedro Alves <palves@redhat.com>
5773
5774 PR breakpoints/21553
5775 * breakpoint.c (create_breakpoints_sal_default)
5776 (init_breakpoint_sal, create_breakpoint_sal): Use
5777 gdb::unique_xmalloc_ptr for string parameters.
5778 (create_breakpoint): Constify 'extra_string' and 'cond_string'
5779 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
5780 (base_breakpoint_create_breakpoints_sal)
5781 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
5782 (strace_marker_create_breakpoints_sal)
5783 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
5784 string parameters.
5785 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
5786 gdb::unique_xmalloc_ptr for string parameters.
5787 (create_breakpoint): Constify 'extra_string' and 'cond_string'
5788 parameters.
5789
5790 2017-06-06 Alan Hayward <alan.hayward@arm.com>
5791
5792 * alpha-tdep.c (alpha_register_to_value): Use
5793 get_frame_register_value.
5794 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
5795
5796 2017-06-06 Alan Hayward <alan.hayward@arm.com>
5797
5798 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
5799 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
5800 (ia64_value_to_register): Likewise.
5801 (ia64_extract_return_value): Likewise.
5802 (ia64_store_return_value): Likewise.
5803 (ia64_push_dummy_call): Likewise.
5804
5805 2017-06-04 Joel Brobecker <brobecker@adacore.com>
5806
5807 GDB 8.0 released.
5808
5809 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
5810
5811 * x86-linux-nat.c (struct arch_lwp_info): Remove.
5812
5813 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
5814
5815 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
5816 parameter.
5817 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
5818
5819 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
5820
5821 * event-loop.c (poll_timers): Unallocate timer using delete
5822 instead of xfree.
5823
5824 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5825
5826 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
5827 (struct breakpoint) <~breakpoint>: New.
5828 (struct watchpoint): Inherit from breakpoint.
5829 <~watchpoint>: New.
5830 <base>: Remove.
5831 (struct tracepoint): Inherit from breakpoint.
5832 <base>: Remove.
5833 * breakpoint.c (longjmp_breakpoint_ops): Remove.
5834 (struct longjmp_breakpoint): Inherit from breakpoint.
5835 <~longjmp_breakpoint>: New.
5836 <base>: Remove.
5837 (new_breakpoint_from_type): Remove casts.
5838 (watchpoint_in_thread_scope): Remove reference to base field.
5839 (watchpoint_del_at_next_stop): Likewise.
5840 (update_watchpoint): Likewise.
5841 (watchpoint_check): Likewise.
5842 (bpstat_check_watchpoint): Likewise.
5843 (set_longjmp_breakpoint): Likewise.
5844 (struct fork_catchpoint): Inherit from breakpoint.
5845 <base>: Remove.
5846 (struct solib_catchpoint): Inherit from breakpoint.
5847 <~solib_catchpoint>: New.
5848 <base>: Remove.
5849 (dtor_catch_solib): Change to ...
5850 (solib_catchpoint::~solib_catchpoint): ... this.
5851 (breakpoint_hit_catch_solib): Remove reference to base field.
5852 (add_solib_catchpoint): Likewise.
5853 (create_fork_vfork_event_catchpoint): Likewise.
5854 (struct exec_catchpoint): Inherit from breakpoint.
5855 <~exec_catchpoint>: New.
5856 <base>: Remove.
5857 (dtor_catch_exec): Change to ...
5858 (exec_catchpoint::~exec_catchpoint): ... this.
5859 (dtor_watchpoint): Change to ...
5860 (watchpoint::~watchpoint): ... this.
5861 (watch_command_1): Remove reference to base field.
5862 (catch_exec_command_1): Likewise.
5863 (base_breakpoint_dtor): Change to ...
5864 (breakpoint::~breakpoint): ... this.
5865 (base_breakpoint_ops): Remove dtor field value.
5866 (longjmp_bkpt_dtor): Change to ...
5867 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
5868 (strace_marker_create_breakpoints_sal): Remove reference to base
5869 field.
5870 (delete_breakpoint): Don't manually call breakpoint destructor.
5871 (create_tracepoint_from_upload): Remove reference to base field.
5872 (trace_pass_set_count): Likewise.
5873 (initialize_breakpoint_ops): Don't initialize
5874 momentary_breakpoint_ops, don't set dtors.
5875 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
5876 <~ada_catchpoint>: New.
5877 <base>: Remove.
5878 (create_excep_cond_exprs): Remove reference to base field.
5879 (dtor_exception): Change to ...
5880 (ada_catchpoint::~ada_catchpoint): ... this.
5881 (dtor_catch_exception): Remove.
5882 (dtor_catch_exception_unhandled): Remove.
5883 (dtor_catch_assert): Remove.
5884 (create_ada_exception_catchpoint): Remove reference to base
5885 field.
5886 (initialize_ada_catchpoint_ops): Don't set dtors.
5887 * break-catch-sig.c (struct signal_catchpoint): Inherit from
5888 breakpoint.
5889 <~signal_catchpoint>: New.
5890 <base>: Remove.
5891 (signal_catchpoint_dtor): Change to ...
5892 (signal_catchpoint::~signal_catchpoint): ... this.
5893 (create_signal_catchpoint): Remove reference to base field.
5894 (initialize_signal_catchpoint_ops): Don't set dtor.
5895 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
5896 from breakpoint.
5897 <~syscall_catchpoint>: New.
5898 <base>: Remove.
5899 (dtor_catch_syscall): Change to ...
5900 (syscall_catchpoint::~syscall_catchpoint): ... this.
5901 (create_syscall_event_catchpoint): Remove reference to base
5902 field.
5903 (initialize_syscall_catchpoint_ops): Don't set dtor.
5904 * break-catch-throw.c (struct exception_catchpoint): Inherit
5905 from breakpoint.
5906 <~exception_catchpoint>: New.
5907 <base>: Remove.
5908 (dtor_exception_catchpoint): Change to ...
5909 (exception_catchpoint::~exception_catchpoint): ... this.
5910 (handle_gnu_v3_exceptions): Remove reference to base field.
5911 (initialize_throw_catchpoint_ops): Don't set dtor.
5912 * ctf.c (ctf_get_traceframe_address): Remove reference to base
5913 field.
5914 * remote.c (remote_get_tracepoint_status): Likewise.
5915 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
5916 * tracefile.c (tracefile_fetch_registers): Likewise.
5917 * tracepoint.c (actions_command): Likewise.
5918 (validate_actionline): Likewise.
5919 (tfind_1): Likewise.
5920 (get_traceframe_location): Likewise.
5921 (find_matching_tracepoint_location): Likewise.
5922 (parse_tracepoint_status): Likewise.
5923 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
5924
5925 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5926
5927 * breakpoint.c (struct longjmp_breakpoint): New struct.
5928 (is_tracepoint_type): Change return type to bool.
5929 (is_longjmp_type): New function.
5930 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
5931 (set_raw_breakpoint_without_location): Use
5932 new_breakpoint_from_type.
5933 (set_raw_breakpoint): Likewise.
5934
5935 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5936
5937 * breakpoint.c (new_breakpoint_from_type): New function.
5938 (create_breakpoint_sal): Use new_breakpoint_from_type and
5939 unique_ptr.
5940 (create_breakpoint): Likewise.
5941
5942 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
5943
5944 * memattr.c (mem_info_command): Rename to ...
5945 (info_mem_command): ... this.
5946 (mem_enable_command): Rename to ...
5947 (enable_mem_command): ... this.
5948 (mem_disable_command): Rename to ...
5949 (disable_mem_command): ... this.
5950 (mem_delete_command): Rename to ...
5951 (delete_mem_command): ... this.
5952 (_initialize_mem): Adjust function names.
5953
5954 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
5955
5956 * btrace.c (handle_pt_insn_events): New.
5957 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
5958 STATUS. Split into this and ...
5959 (handle_pt_insn_event_flags): ... this.
5960
5961 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
5962
5963 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
5964 and struct pt_insn.resynced.
5965 * configure: Regenerated.
5966 * config.in: Regenerated.
5967
5968 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5969
5970 * btrace.c (ftrace_find_call_by_number): New function.
5971 (ftrace_new_function): Store objects, not pointers.
5972 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
5973 ftrace_new_gap, ftrace_update_function,
5974 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
5975 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
5976 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
5977 btrace_ends_with_single_insn, btrace_call_get): Account for
5978 btrace_thread_info::functions now storing objects.
5979 * btrace.h (struct btrace_thread_info): Add constructor.
5980 (struct btrace_thread_info) <functions>: Make std::vector.
5981 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
5982 Initialize with default values.
5983 * record-btrace.c (record_btrace_frame_sniffer): Account for
5984 btrace_thread_info::functions now storing objects.
5985
5986 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5987
5988 * btrace.c: Remove typedef bfun_s.
5989 (ftrace_new_gap): Directly add gaps to the list of gaps.
5990 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
5991 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
5992 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
5993 instead of gdb VEC.
5994
5995 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5996
5997 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
5998 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
5999 with btrace_thread_info::next_segment and
6000 btrace_thread_info::prev_segment.
6001 * btrace.h: Remove struct btrace_func_link.
6002 (struct btrace_function): Replace pair of function segment pointers
6003 with pair of indices.
6004 * python/py-record-btrace.c (btpy_call_prev_sibling,
6005 btpy_call_next_sibling): Replace references to
6006 btrace_thread_info::segment with btrace_thread_info::next_segment and
6007 btrace_thread_info::prev_segment.
6008 * record-btrace.c (record_btrace_frame_this_id): Use
6009 btrace_find_call_by_number.
6010
6011 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6012
6013 * btrace.c (ftrace_new_function, ftrace_fixup_level,
6014 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
6015 btrace_insn_next, btrace_insn_prev): Remove references to
6016 btrace_thread_info::flow.
6017 * btrace.h (struct btrace_function): Remove FLOW.
6018
6019 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6020
6021 * btrace.c (ftrace_find_call_by_number): New function.
6022 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
6023 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
6024 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
6025 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
6026 index.
6027 * btrace.h (struct btrace_function): Turn UP into an index.
6028 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
6029 as an index.
6030 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
6031 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
6032 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
6033
6034 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6035
6036 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
6037 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
6038 ftrace_update_function, ftrace_compute_global_level_offset,
6039 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
6040 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
6041 btrace_insn_end, btrace_is_empty): Remove references to
6042 btrace_thread_info::begin and btrace_thread_info::end.
6043 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
6044 (struct btrace_thread_info) <functions>: Adjust comment.
6045 * record-btrace.c (record_btrace_start_replaying): Remove reference to
6046 btrace_thread_info::begin.
6047
6048 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6049
6050 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
6051 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
6052 ftrace_update_function): Remove arguments that implicitly were always
6053 BTINFO->END.
6054 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
6055 Don't pass BTINFO->END.
6056
6057 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6058
6059 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
6060 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
6061 btrace_find_insn_by_number): Replace function segment pointer with
6062 index.
6063 (btrace_insn_cmp): Simplify.
6064 * btrace.h: (struct btrace_insn_iterator) Rename index to
6065 insn_index. Replace function segment pointer with index into function
6066 segment vector.
6067 * record-btrace.c (record_btrace_call_history): Replace function
6068 segment pointer use with index.
6069 (record_btrace_frame_sniffer): Retrieve function call segment through
6070 vector.
6071 (record_btrace_set_replay): Remove defunc't safety check.
6072
6073 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6074
6075 * btrace.c (btrace_ends_with_single_insn): New function.
6076 (btrace_call_get, btrace_call_number, btrace_call_begin,
6077 btrace_call_end, btrace_call_next, btrace_call_prev,
6078 btrace_find_call_by_number): Use index into call segment vector
6079 instead of pointer.
6080 (btrace_call_cmp): Simplify.
6081 * btrace.h (struct btrace_call_iterator): Replace function call segment
6082 pointer with index into vector.
6083 * record-btrace.c (record_btrace_call_history): Use index instead of
6084 pointer.
6085
6086 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6087
6088 * btrace.c (btrace_insn_begin, btrace_insn_end,
6089 btrace_find_insn_by_number): Add btinfo to iterator.
6090 * btrace.h (struct btrace_insn_iterator): Add btinfo.
6091
6092 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6093
6094 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
6095 and save pointers directly.
6096 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
6097 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
6098 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
6099 changed signature of functions.
6100 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
6101 (btrace_fetch): Remove code that adds btrace_function pointers to
6102 vector of btrace_functions.
6103 (btrace_clear): Simplify freeing vector of btrace_functions.
6104
6105 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6106
6107 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
6108 Replace VEC_* with std::vector functions.
6109 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
6110 (struct btrace_thread_info)<functions>: Change type to std::vector.
6111
6112 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
6113
6114 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
6115 "Removed targets and native configurations" up. Merge duplicate
6116 "New commands" sub-sections. Add "New options" sub-sections.
6117
6118 2017-05-26 Alan Hayward <alan.hayward@arm.com>
6119
6120 * defs.h (copy_integer_to_size): New declaration.
6121 * findvar.c (copy_integer_to_size): New function.
6122 (do_cint_test): New selftest function.
6123 (copy_integer_to_size_test): Likewise.
6124 (_initialize_findvar): Likewise.
6125 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
6126 (mips_fbsd_collect_reg): Use raw_collect_integer.
6127 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
6128 (mips64_fill_gregset): Use raw_collect_integer
6129 (mips64_fill_fpregset): Use raw_supply_integer.
6130 * regcache.c (regcache::raw_supply_integer): New function.
6131 (regcache::raw_collect_integer): Likewise.
6132 * regcache.h: (regcache::raw_supply_integer): New declaration.
6133 (regcache::raw_collect_integer): Likewise.
6134
6135 2017-05-24 Yao Qi <yao.qi@linaro.org>
6136
6137 * Makefile.in (SFILES): Add gdbarch-selftests.c.
6138 (COMMON_OBS): Add gdbarch-selftests.o.
6139 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
6140 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
6141 * gdbarch-selftests.c: New file.
6142 * regcache.h (regcache) <~regcache>: Mark it virtual if
6143 GDB_SELF_TEST.
6144 <raw_write>: Likewise.
6145
6146 2017-05-24 Yao Qi <yao.qi@linaro.org>
6147
6148 * regcache.c (current_regcache): Change it to
6149 regcache::current_regcache.
6150 (regcache_observer_target_changed): Update.
6151 (regcache_thread_ptid_changed): Make it a regcache static
6152 method.
6153 (regcache_thread_ptid_changed): Update.
6154 (class regcache_access): New.
6155 (current_regcache_test): Update.
6156 (_initialize_regcache): Update.
6157 * regcache.h: Include forward_list.
6158 (regcache): Declare regcache_thread_ptid_changed and declare
6159 registers_changed_ptid as friend.
6160
6161 2017-05-24 Yao Qi <yao.qi@linaro.org>
6162
6163 * i387-tdep.c (i387_register_to_value): Use register_size
6164 instead of TYPE_LENGTH.
6165 * m68k-tdep.c (m68k_register_to_value): Likewise.
6166
6167 2017-05-24 Yao Qi <yao.qi@linaro.org>
6168
6169 * i387-tdep.c (i387_convert_register_p): Return false if type
6170 code isn't TYPE_CODE_FLT.
6171
6172 2017-05-24 Yao Qi <yao.qi@linaro.org>
6173
6174 * alpha-tdep.c (alpha_convert_register_p): Return true if type
6175 length is 4.
6176 (alpha_register_to_value): Remove type length check.
6177 (alpha_value_to_register): Likewise.
6178
6179 2017-05-24 Yao Qi <yao.qi@linaro.org>
6180
6181 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
6182 TYPE_CODE_FLT.
6183
6184 2017-05-24 Yao Qi <yao.qi@linaro.org>
6185
6186 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
6187 TYPE_CODE_FLT or not.
6188
6189 2017-05-24 Yao Qi <yao.qi@linaro.org>
6190
6191 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
6192 * avr-tdep.c (avr_gdbarch_init): Likewise.
6193 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6194 * cris-tdep.c (cris_gdbarch_init): Likewise.
6195 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6196 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6197 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6198 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
6199 * mep-tdep.c (mep_gdbarch_init): Likewise.
6200 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6201 * mips-tdep.c (mips_gdbarch_init): Likewise.
6202 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6203 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6204 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6205 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6206 * v850-tdep.c (v850_gdbarch_init): Likewise.
6207
6208 2017-05-24 Yao Qi <yao.qi@linaro.org>
6209
6210 * selftest-arch.c (tests_with_arch): Call registers_changed
6211 and reinit_frame_cache.
6212 * selftest.c (run_self_tests): Likewise.
6213
6214 2017-05-24 Yao Qi <yao.qi@linaro.org>
6215
6216 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
6217 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
6218
6219 2017-05-24 Yao Qi <yao.qi@linaro.org>
6220
6221 * rl78-tdep.c (rl78_gdbarch_init): Don't call
6222 set_gdbarch_print_insn.
6223
6224 2017-05-24 Yao Qi <yao.qi@linaro.org>
6225
6226 * h8300-tdep.c (h8300_gdbarch_init): Don't call
6227 set_gdbarch_print_insn.
6228
6229 2017-05-24 Yao Qi <yao.qi@linaro.org>
6230
6231 * alpha-tdep.c (alpha_gdbarch_init): Don't call
6232 set_gdbarch_print_insn.
6233 * arc-tdep.c (arc_gdbarch_init): Likewise.
6234 * arch-utils.c: include dis-asm.h.
6235 (default_print_insn): New function.
6236 * arch-utils.h (default_print_insn): Declare.
6237 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
6238 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6239 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
6240 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
6241 * frv-tdep.c (frv_gdbarch_init): Likewise.
6242 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6243 * gdbarch.sh (print_insn): Use default_print_insn.
6244 * gdbarch.c: Regenerated.
6245 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
6246 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
6247 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6248 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
6249 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6250 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
6251 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
6252 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
6253 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
6254 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6255 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6256 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6257 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6258 * mt-tdep.c (mt_gdbarch_init): Likewise.
6259 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
6260 * nios2-tdep.c (nios2_print_insn): Remove.
6261 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
6262 * rx-tdep.c (rx_gdbarch_init): Likewise.
6263 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6264 * score-tdep.c (score_print_insn): Remove.
6265 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
6266 * sh-tdep.c (sh_gdbarch_init): Likewise.
6267 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6268 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6269 * tic6x-tdep.c (tic6x_print_insn): Remove.
6270 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
6271 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
6272 * v850-tdep.c (v850_gdbarch_init): Likewise.
6273 * vax-tdep.c (vax_gdbarch_init): Likewise.
6274 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
6275 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
6276
6277 2017-05-23 John Baldwin <jhb@FreeBSD.org>
6278
6279 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
6280 (MIPS_FP0_REGNUM): Remove.
6281 (MIPS_FSR_REGNUM): Remove.
6282 (mips_fbsd_supply_fpregs): Use mips_regnum.
6283 (mips_fbsd_supply_gregs): Likewise.
6284 (mips_fbsd_collect_fpregs): Likewise.
6285 (mips_fbsd_collect_gregs): Likewise.
6286
6287 2017-05-23 John Baldwin <jhb@FreeBSD.org>
6288
6289 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
6290 (getpfpregs_supplies): New function.
6291 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
6292 getfpregs_supplies.
6293 (mips_fbsd_store_inferior_registers): Likewise.
6294
6295 2017-05-22 Pedro Alves <palves@redhat.com>
6296
6297 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
6298 maintainer.
6299
6300 2017-05-22 Alan Hayward <alan.hayward@arm.com>
6301
6302 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
6303 (store_register): Likewise.
6304 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
6305 (get_decimal_float_return_value): Likewise.
6306 (do_ppc_sysv_return_value): Likewise.
6307 (ppc64_sysv_abi_push_integer): Likewise.
6308 (ppc64_sysv_abi_push_freg): Likewise.
6309 (ppc64_sysv_abi_return_value_base): Likewise.
6310 (ppc64_sysv_abi_return_value): Likewise.
6311 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
6312 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
6313 * rs6000-nat.c: Likewise.
6314 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
6315 (rs6000_value_to_register): Likewise.
6316 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
6317
6318 2017-05-21 Tom Tromey <tom@tromey.com>
6319
6320 PR rust/21466:
6321 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
6322 arrays as "[T]", not "[T; ]".
6323
6324 2017-05-19 Tom Tromey <tom@tromey.com>
6325
6326 PR rust/21484:
6327 * rust-lang.c (exp_descriptor_rust): New function.
6328 (rust_language_defn): Use it.
6329 * p-lang.c (pascal_language_defn): Update.
6330 * opencl-lang.c (opencl_language_defn): Update.
6331 * objc-lang.c (objc_language_defn): Update.
6332 * m2-lang.c (m2_language_defn): Update.
6333 * language.h (struct language_defn)
6334 <la_watch_location_expression>: New member.
6335 * language.c (unknown_language_defn, auto_language_defn)
6336 (local_language_defn): Update.
6337 * go-lang.c (go_language_defn): Update.
6338 * f-lang.c (f_language_defn): Update.
6339 * d-lang.c (d_language_defn): Update.
6340 * c-lang.h (c_watch_location_expression): Declare.
6341 * c-lang.c (c_watch_location_expression): New function.
6342 (c_language_defn, cplus_language_defn, asm_language_defn)
6343 (minimal_language_defn): Use it.
6344 * breakpoint.c (watch_command_1): Call
6345 la_watch_location_expression.
6346 * ada-lang.c (ada_language_defn): Update.
6347
6348 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6349
6350 PR tui/21482
6351 * gdb_curses.h (NOMACROS): Define.
6352 (NCURSES_NOMACROS): Define.
6353
6354 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6355
6356 PR tui/21482
6357 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
6358 arg to char *.
6359 * tui/tui-wingeneral.c (box_win): Likewise.
6360 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
6361 (tui_show_source_line): Likewise.
6362 (tui_show_exec_info_content): Likewise.
6363
6364 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
6365
6366 * sparc-tdep.c (sparc_structure_return_p)
6367 (sparc_arg_on_registers_p): New functions.
6368 (sparc32_store_arguments): Use them.
6369 * sparc64-tdep.c (sparc64_16_byte_align_p)
6370 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
6371 Handle TYPE_CODE_ARRAY.
6372
6373 2017-05-17 Yao Qi <yao.qi@linaro.org>
6374
6375 * cli/cli-decode.c (add_alias_cmd): New function.
6376 * command.h (add_alias_cmd): Declare.
6377 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
6378 instead call add_alias_cmd.
6379
6380 2017-05-17 Pedro Alves <palves@redhat.com>
6381
6382 * Makefile.in (nat_extra_makefile_frag): Rename to ...
6383 (nat_makefile_frag): ... this. All references updated.
6384 * configure.ac: Likewise.
6385 * configure.nat: Likewise. Enhance comments.
6386 * configure: Regenerate.
6387
6388 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6389
6390 * procfs.c (procfs_create_inferior): Change prototype to match
6391 definition.
6392
6393 2017-05-13 Eli Zaretskii <eliz@gnu.org>
6394
6395 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
6396 C++ compiler warning.
6397
6398 2017-05-12 Tom Tromey <tom@tromey.com>
6399
6400 PR rust/21483:
6401 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
6402 recurse, just call value_struct_elt directly.
6403
6404 2017-05-12 Tom Tromey <tom@tromey.com>
6405
6406 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
6407 OP_RUST_ARRAY>: Fix.
6408
6409 2017-05-12 Tom Tromey <tom@tromey.com>
6410
6411 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
6412
6413 2017-05-09 Yao Qi <yao.qi@linaro.org>
6414
6415 * regcache.c: Include <forward_list>.
6416 (struct regcache_list): Remove.
6417 (current_regcache): Update.
6418 (get_thread_arch_aspace_regcache): Update for std::forward_list.
6419 (regcache_thread_ptid_changed): Likewise.
6420 (registers_changed_ptid): Likewise.
6421 (current_regcache_size): Likewise.
6422
6423 2017-05-09 Yao Qi <yao.qi@linaro.org>
6424
6425 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
6426 (current_regcache_size): New function.
6427 (current_regcache_test): New function.
6428 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
6429
6430 2017-05-08 Alan Hayward <alan.hayward@arm.com>
6431
6432 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
6433 (print_gp_register_row): Use get_frame_register_value.
6434
6435 2017-05-08 Alan Hayward <alan.hayward@arm.com>
6436
6437 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
6438 (mips_supply_fpregset): Likewise.
6439 (mips64_supply_gregset): Likewise.
6440
6441 2017-05-08 Alan Hayward <alan.hayward@arm.com>
6442
6443 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
6444 regcache->raw_supply_zeroed.
6445
6446 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6447
6448 * configure.nat: Rearrange 'case' statements to match
6449 host before cpu.
6450
6451 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6452
6453 * Makefile.in: Remove "@host_makefile_frag@". Add variables
6454 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
6455 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
6456 "@nat_extra_makefile_frag@".
6457 (Makefile): Remove dependency on "@frags@".
6458 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
6459 (data-directory/Makefile): Likewise.
6460 * config/aarch64/linux.mh: Deleted; moved contents to
6461 "gdb/configure.nat".
6462 * config/alpha/alpha-linux.mh: Likewise.
6463 * config/alpha/nbsd.mh: Likewise.
6464 * config/arm/linux.mh: Likewise.
6465 * config/arm/nbsdelf.mh: Likewise.
6466 * config/i386/cygwin.mh: Likewise.
6467 * config/i386/cygwin64.mh: Likewise.
6468 * config/i386/darwin.mh: Likewise.
6469 * config/i386/fbsd.mh: Likewise.
6470 * config/i386/fbsd64.mh: Likewise.
6471 * config/i386/go32.mh: Likewise.
6472 * config/i386/i386gnu.mh: Likewise.
6473 * config/i386/i386sol2.mh: Likewise.
6474 * config/i386/linux.mh: Likewise.
6475 * config/i386/linux64.mh: Likewise.
6476 * config/i386/mingw.mh: Likewise.
6477 * config/i386/mingw64.mh: Likewise.
6478 * config/i386/nbsd64.mh: Likewise.
6479 * config/i386/nbsdelf.mh: Likewise.
6480 * config/i386/nto.mh: Likewise.
6481 * config/i386/obsd.mh: Likewise.
6482 * config/i386/obsd64.mh: Likewise.
6483 * config/i386/sol2-64.mh: Likewise.
6484 * config/ia64/linux.mh: Likewise.
6485 * config/m32r/linux.mh: Likewise.
6486 * config/m68k/linux.mh: Likewise.
6487 * config/m68k/nbsdelf.mh: Likewise.
6488 * config/m68k/obsd.mh: Likewise.
6489 * config/m88k/obsd.mh: Likewise.
6490 * config/mips/fbsd.mh: Likewise.
6491 * config/mips/linux.mh: Likewise.
6492 * config/mips/nbsd.mh: Likewise.
6493 * config/mips/obsd64.mh: Likewise.
6494 * config/pa/linux.mh: Likewise.
6495 * config/pa/nbsd.mh: Likewise.
6496 * config/pa/obsd.mh: Likewise.
6497 * config/powerpc/aix.mh: Likewise.
6498 * config/powerpc/fbsd.mh: Likewise.
6499 * config/powerpc/linux.mh: Likewise.
6500 * config/powerpc/nbsd.mh: Likewise.
6501 * config/powerpc/obsd.mh: Likewise.
6502 * config/powerpc/ppc64-linux.mh: Likewise.
6503 * config/powerpc/spu-linux.mh: Likewise.
6504 * config/s390/linux.mh: Likewise.
6505 * config/sh/nbsd.mh: Likewise.
6506 * config/sparc/fbsd.mh: Likewise.
6507 * config/sparc/linux.mh: Likewise.
6508 * config/sparc/linux64.mh: Likewise.
6509 * config/sparc/nbsd64.mh: Likewise.
6510 * config/sparc/nbsdelf.mh: Likewise.
6511 * config/sparc/obsd64.mh: Likewise.
6512 * config/sparc/sol2.mh: Likewise.
6513 * config/tilegx/linux.mh: Likewise.
6514 * config/vax/nbsdelf.mh: Likewise.
6515 * config/vax/obsd.mh: Likewise.
6516 * config/xtensa/linux.mh: Likewise.
6517 * config/i386/i386gnu.mn: New file, with excerpts from
6518 "config/i386/i386gnu.mh".
6519 * configure: Regenerate.
6520 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
6521 *.mh files under "gdb/config".
6522 * configure.nat: New file, with contents from the
6523 "gdb/config/*/*.mh" files.
6524
6525 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
6526
6527 * btrace.c (btrace_clear): Free insn vector.
6528
6529 2017-05-05 Pedro Alves <palves@redhat.com>
6530
6531 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
6532 * configure: Regenerate.
6533
6534 2017-05-04 Pedro Alves <palves@redhat.com>
6535
6536 * Makefile.in (SFILES): Add progspace-and-thread.c.
6537 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
6538 (COMMON_OBS): Add progspace-and-thread.o.
6539 * breakpoint.c: Include "progspace-and-thread.h".
6540 (update_inserted_breakpoint_locations)
6541 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
6542 Use scoped_restore_current_pspace_and_thread.
6543 (create_std_terminate_master_breakpoint): Use
6544 scoped_restore_current_program_space.
6545 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
6546 (print_breakpoint_location): Use
6547 scoped_restore_current_program_space.
6548 (bp_loc_is_permanent): Use
6549 scoped_restore_current_pspace_and_thread.
6550 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
6551 (download_tracepoint_locations): Use
6552 scoped_restore_current_pspace_and_thread.
6553 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
6554 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
6555 (enum step_over_calls_kind): Moved from inferior.h.
6556 (class scoped_restore_current_thread): New class.
6557 * gdbthread.h (make_cleanup_restore_current_thread): Delete
6558 declaration.
6559 (scoped_restore_current_thread): New class.
6560 * infcmd.c: Include "common/gdb_optional.h".
6561 (continue_1, proceed_after_attach): Use
6562 scoped_restore_current_thread.
6563 (notice_new_inferior): Use scoped_restore_current_thread.
6564 * inferior.c: Include "progspace-and-thread.h".
6565 (restore_inferior, save_current_inferior): Delete.
6566 (add_inferior_command, clone_inferior_command): Use
6567 scoped_restore_current_pspace_and_thread.
6568 * inferior.h (scoped_restore_current_inferior): New class.
6569 * infrun.c: Include "progspace-and-thread.h" and
6570 "common/gdb_optional.h".
6571 (follow_fork_inferior): Use
6572 scoped_restore_current_pspace_and_thread.
6573 (scoped_restore_exited_inferior): New class.
6574 (handle_vfork_child_exec_or_exit): Use
6575 scoped_restore_exited_inferior,
6576 scoped_restore_current_pspace_and_thread,
6577 scoped_restore_current_thread and scoped_restore.
6578 (fetch_inferior_event): Use scoped_restore_current_thread.
6579 * linespec.c (decode_line_full, decode_line_1): Use
6580 scoped_restore_current_program_space.
6581 * mi/mi-main.c: Include "progspace-and-thread.h".
6582 (exec_continue): Use scoped_restore_current_thread.
6583 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
6584 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
6585 * proc-service.c (ps_pglobal_lookup): Use
6586 scoped_restore_current_program_space.
6587 * progspace-and-thread.c: New file.
6588 * progspace-and-thread.h: New file.
6589 * progspace.c (release_program_space, clone_program_space): Use
6590 scoped_restore_current_program_space.
6591 (restore_program_space, save_current_program_space)
6592 (save_current_space_and_thread): Delete.
6593 (switch_to_program_space_and_thread): Moved to
6594 progspace-and-thread.c.
6595 * progspace.h (save_current_program_space)
6596 (save_current_space_and_thread): Delete declarations.
6597 (scoped_restore_current_program_space): New class.
6598 * remote.c (remote_btrace_maybe_reopen): Use
6599 scoped_restore_current_thread.
6600 * symtab.c: Include "progspace-and-thread.h".
6601 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
6602 * thread.c (print_thread_info_1): Use
6603 scoped_restore_current_thread.
6604 (struct current_thread_cleanup): Delete.
6605 (do_restore_current_thread_cleanup)
6606 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
6607 (scoped_restore_current_thread::~scoped_restore_current_thread):
6608 ... this new dtor.
6609 (make_cleanup_restore_current_thread): Rename/convert to ...
6610 (scoped_restore_current_thread::scoped_restore_current_thread):
6611 ... this new ctor.
6612 (thread_apply_all_command): Use scoped_restore_current_thread.
6613 (thread_apply_command): Use scoped_restore_current_thread.
6614 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
6615 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
6616
6617 2017-05-04 Pedro Alves <palves@redhat.com>
6618
6619 * thread.c (make_cleanup_restore_current_thread): Move
6620 find_thread_ptid call before the is_stopped call. Assert that the
6621 thread is found. Replace is_stopped call by checking the thread's
6622 state directly. Remove unnecessary NULL-thread check.
6623
6624 2017-05-04 Pedro Alves <palves@redhat.com>
6625
6626 * corelow.c (thread_section_name): New class.
6627 (get_core_register_section, get_core_siginfo): Use it.
6628
6629 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
6630
6631 * corelow.c (sniff_core_bfd): Remove extra semicolon.
6632 (get_core_register_section): Remove xfree of NULL pointer.
6633
6634 2017-05-03 Alan Hayward <alan.hayward@arm.com>
6635
6636 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
6637 * regcache.c (regcache::raw_supply_zeroed): New function.
6638 * regcache.h (regcache::raw_supply_zeroed): New declaration.
6639
6640 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
6641
6642 * gdbarch.sh: Remove commented out definition of
6643 TARGET_CHAR_BIT.
6644 * gdbarch.h: Re-generate.
6645
6646 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6647
6648 * configure: Regenerate.
6649
6650 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
6651
6652 * solib-target.c (solib_target_relocate_section_addresses):
6653 Remove num_section_bases, num_bases, segment_bases variables.
6654
6655 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6656
6657 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
6658
6659 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6660
6661 * solib-target.c: Include <vector>
6662 (struct lm_info_target) <~lm_info_target>: Remove.
6663 <segment_bases, section_bases>: Change type to
6664 std::vector<CORE_ADDR>.
6665 (library_list_start_segment, library_list_start_section,
6666 library_list_end_library,
6667 solib_target_relocate_section_addresses): Adjust.
6668
6669 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6670
6671 * gdbarch.sh (software_single_step): Change return type to
6672 std::vector<CORE_ADDR>.
6673 * gdbarch.c, gdbarch.h: Re-generate.
6674 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
6675 Adjust.
6676 (arm_deal_with_atomic_sequence_raw): Adjust.
6677 (thumb_get_next_pcs_raw): Adjust.
6678 (arm_get_next_pcs_raw): Adjust.
6679 (arm_get_next_pcs): Adjust.
6680 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
6681 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
6682 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
6683 (alpha_software_single_step): Adjust.
6684 * alpha-tdep.h (alpha_software_single_step): Adjust.
6685 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
6686 * arm-tdep.c (arm_software_single_step): Adjust.
6687 (arm_breakpoint_kind_from_current_state): Adjust.
6688 * arm-tdep.h (arm_software_single_step): Adjust.
6689 * breakpoint.c (insert_single_step_breakpoint): Adjust.
6690 * cris-tdep.c (cris_software_single_step): Adjust.
6691 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
6692 (micromips_deal_with_atomic_sequence): Adjust.
6693 (deal_with_atomic_sequence): Adjust.
6694 (mips_software_single_step): Adjust.
6695 * mips-tdep.h (mips_software_single_step): Adjust.
6696 * moxie-tdep.c (moxie_software_single_step): Adjust.
6697 * nios2-tdep.c (nios2_software_single_step): Adjust.
6698 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
6699 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
6700 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
6701 * s390-linux-tdep.c (s390_software_single_step): Adjust.
6702 * sparc-tdep.c (sparc_software_single_step): Adjust.
6703 * spu-tdep.c (spu_software_single_step): Adjust.
6704 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
6705
6706 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6707
6708 * gdbarch.sh: Use semi-colon as field separator instead of colon.
6709 * gdbarch.h: Re-generate.
6710
6711 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6712
6713 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
6714 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
6715 * python/py-instruction.c, python/py-instruction.h: New file.
6716 * python/py-record.c: Add py-instruction.h include.
6717 (gdbpy_initialize_record): Make gdb.Instruction a super class of
6718 gdb.RecordInstruction.
6719 * python/python-internal.h: Add gdbpy_initialize_instruction
6720 declaration.
6721 * python/python.c (do_start_initialization): Add
6722 gdbpy_initialize_instruction.
6723
6724 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6725
6726 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
6727 Remove.
6728 (btrace_func_from_recpy_func): New function.
6729 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
6730 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
6731 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
6732 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
6733 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
6734 Also, use new helper functions.
6735 (btpy_list_item): Use new helper functions.
6736 (recpy_bt_function_call_history): Use new type name.
6737 (btpy_call_getset): Remove.
6738 (gdbpy_initialize_btrace): Remove code to initialize
6739 gdb.BtraceFunctionCall.
6740 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
6741 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
6742 recpy_bt_func_prev, recpy_bt_func_next): New export.
6743 * python/py-record.c (recpy_func_type): New static object.
6744 (recpy_func_new, recpy_func_level, recpy_func_symbol,
6745 recpy_func_instructions, recpy_func_up, recpy_func_prev,
6746 recpy_func_next): New function.
6747 (recpy_element_hash, recpy_element_richcompare): Updated comment.
6748 (recpy_func_getset): New static object.
6749 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
6750 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
6751
6752 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6753
6754 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
6755 (btpy_object, btpy_insn_type, btpy_new): Remove.
6756 (btpy_list_object): Use gdb.RecordInstruction type instead of
6757 gdb.BtraceInstruction type.
6758 (btrace_insn_from_recpy_insn): New function.
6759 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
6760 btpy_new.
6761 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
6762 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
6763 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
6764 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
6765 instead of btpy_object.
6766 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
6767 btpy_insn_data, btpy_insn_decode): Rename to ...
6768 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
6769 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
6770 recpy_bt_insn_decode): This. Also, use new helper functions.
6771 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
6772 recpy_insn_type.
6773 (btpy_insn_getset): Remove.
6774 (gdbpy_initialize_btrace): Remove code to initialize
6775 gdb.BtraceInstruction. Use recpy_element_object.
6776 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
6777 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
6778 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
6779 * python/py-record.c (recpy_insn_type): New static object.
6780 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
6781 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
6782 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
6783 New function.
6784 (recpy_insn_getset): New static object.
6785 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
6786 * python/py-record.h (recpy_element_object): New typedef.
6787 (recpy_insn_type, recpy_insn_new): New export.
6788
6789 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6790
6791 * py-record-btrace.c (btpy_insn_new): Removed.
6792 (btpy_insn_or_gap_new): New function.
6793 (btpy_insn_error): Removed.
6794 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
6795 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
6796 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
6797 btpy_insn_or_gap_new instead of btpy_insn_new.
6798 (btpy_insn_getset): Remove btpy_insn_error.
6799 * py-record.c (recpy_gap_type): New static object.
6800 (recpy_gap_object): New typedef.
6801 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
6802 recpy_gap_reason_string): New function.
6803 (recpy_gap_getset): New static object.
6804 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
6805 * py-record.h (recpy_gap_new): New export.
6806
6807 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6808
6809 * python/py-record.c (recpy_ptid): Remove.
6810 (recpy_record_getset): Remove recpy_ptid.
6811
6812 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6813
6814 * btrace.c (btrace_fetch): Set inferior_ptid.
6815 * python/py-record-btrace.c: Add "py-record.h" include.
6816 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
6817 recpy_bt_end, recpy_bt_instruction_history,
6818 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
6819 in gdb.Record object instead of current ptid.
6820 * python/py-record.c: Include new "py-record.h" file.
6821 (recpy_record_object): Moved to py-record.h.
6822 * python/py-record.h: New file.
6823
6824 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6825
6826 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
6827 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
6828 indentation.
6829
6830 2017-05-01 Joel Brobecker <brobecker@adacore.com>
6831
6832 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
6833 the past maintainers section.
6834
6835 2017-04-28 Yao Qi <yao.qi@linaro.org>
6836
6837 * infcmd.c (get_return_value): Use regcache ctor, and remove
6838 cleanup.
6839
6840 2017-04-28 Yao Qi <yao.qi@linaro.org>
6841 Pedro Alves <palves@redhat.com>
6842
6843 * regcache.c (regcache::regcache): New tag dispatch ctor.
6844 (do_cooked_read): Moved above.
6845 (regcache_dup): Use the tag dispatch ctor..
6846 * regcache.h (regcache): Declare ctor, delete copy ctor and
6847 assignment operator, remove friend regcache_dup.
6848
6849 2017-04-28 Yao Qi <yao.qi@linaro.org>
6850
6851 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
6852 call method save instead of regcache_cpy.
6853 * regcache.h (struct regcache): Make regcache_dup a friend.
6854
6855 2017-04-28 Yao Qi <yao.qi@linaro.org>
6856
6857 * regcache.c (struct regcache): Move to regcache.h
6858 (regcache::arch): New method.
6859 (regcache_get_ptid): Update.
6860 (get_regcache_arch): Call arch method.
6861 (get_regcache_aspace): Call method aspace.
6862 (register_buffer): Change it to method.
6863 (regcache_save): Change it to regcache::save.
6864 (regcache_restore): Likewise.
6865 (regcache_cpy_no_passthrough): Remove the declaration.
6866 (regcache_cpy): Call methods restore and cpy_no_passthrough.
6867 (regcache_cpy_no_passthrough): Change it to method
6868 cpy_no_passthrough.
6869 (regcache_register_status): Change it to method
6870 get_register_status.
6871 (regcache_invalidate): Change it to method invalidate.
6872 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
6873 (regcache_raw_update): Change it to method raw_update.
6874 (regcache_raw_read): Likewise.
6875 (regcache_raw_read_signed): Likewise.
6876 (regcache_raw_read_unsigned): Likewise.
6877 (regcache_raw_write_signed): Likewise.
6878 (regcache_raw_write_unsigned): Likewise.
6879 (regcache_cooked_read): Likewise.
6880 (regcache_cooked_read_value): Likewise.
6881 (regcache_cooked_read_signed): Likewise.
6882 (regcache_cooked_read_unsigned): Likewise.
6883 (regcache_cooked_write_signed): Likewise.
6884 (regcache_cooked_write_unsigned): Likewise.
6885 (regcache_raw_set_cached_value): Likewise.
6886 (regcache_raw_write): Likewise.
6887 (regcache_cooked_write): Likewise.
6888 (regcache_xfer_part): Likewise.
6889 (regcache_raw_read_part): Likewise.
6890 (regcache_raw_write_part): Likewise.
6891 (regcache_cooked_read_part): Likewise.
6892 (regcache_cooked_write_part): Likewise.
6893 (regcache_raw_supply): Likewise.
6894 (regcache_raw_collect): Likewise.
6895 (regcache_transfer_regset): Likewise.
6896 (regcache_supply_regset): Likewise.
6897 (regcache_collect_regset): Likewise.
6898 (regcache_debug_print_register): Likewise.
6899 (enum regcache_dump_what): Move it to regcache.h.
6900 (regcache_dump): Change it to method dump.
6901 * regcache.h (enum regcache_dump_what): New.
6902 (class regcache): New.
6903 * target.c (target_fetch_registers): Call method
6904 debug_print_register.
6905 (target_store_registers): Likewise.
6906
6907 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6908
6909 * windows-nat.c (struct lm_info_windows): Initialize field.
6910 (windows_make_so): Allocate lm_info_windows with new.
6911 (windows_free_so): Free lm_info_windows with delete.
6912
6913 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6914
6915 * solib-darwin.c (struct lm_info_darwin): Initialize field.
6916 (darwin_current_sos): Allocate lm_info_darwin with new, remove
6917 cleanup.
6918 (darwin_free_so): Free lm_info_darwin with delete.
6919
6920 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6921
6922 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
6923 <l_addr_p>: Change type to bool.
6924 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
6925 (svr4_free_so): Free lm_info_svr4 with delete.
6926 (svr4_copy_library_list): Replace memcpy with call to copy
6927 constructor.
6928 (library_list_start_library, svr4_default_sos): Allocate
6929 lm_info_svr4 with new.
6930
6931 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6932
6933 * solib-target.c (struct lm_info_target): Add destructor,
6934 initialize fields.
6935 <name>: Change type to std::string.
6936 (library_list_start_library): Allocate lm_info_target with new.
6937 (solib_target_free_library_list): Free lm_info_target with
6938 delete.
6939 (solib_target_current_sos): Adapt to std::string.
6940 (solib_target_free_so): Free lm_info_target with delete.
6941
6942 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6943
6944 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
6945 fields.
6946 (frv_current_sos): Allocate lm_info_frv with new.
6947 (frv_relocate_main_executable): Free lm_info_frv with delete,
6948 allocate with new.
6949 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
6950
6951 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6952
6953 * solib-frv.c (struct lm_info_frv): Fix indentation.
6954
6955 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6956
6957 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
6958 map field.
6959 (dsbt_current_sos): Allocate lm_info_dsbt with new.
6960 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
6961 and allocate with new.
6962 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
6963
6964 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6965
6966 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
6967 <filename, member_name>: Change type to std::string.
6968 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
6969 (library_list_start_library): Allocate lm_info_aix with new.
6970 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
6971 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
6972 with copy constructor.
6973
6974 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6975
6976 * solist.h (struct lm_info): Remove.
6977 (struct lm_info_base): New class.
6978 (struct so_list) <lm_info>: Change type to lm_info_base *.
6979 * nto-tdep.c (struct lm_info): Remove.
6980 (lm_addr): Adjust.
6981 * solib-aix.c (struct lm_info): Rename to ...
6982 (struct lm_info_aix): ... this. Extend lm_info_base.
6983 (lm_info_p): Rename to ...
6984 (lm_info_aix_p): ... this, and adjust.
6985 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
6986 solib_aix_parse_libraries, library_list_start_library,
6987 solib_aix_free_library_list, solib_aix_parse_libraries,
6988 solib_aix_get_library_list,
6989 solib_aix_relocate_section_addresses, solib_aix_free_so,
6990 solib_aix_get_section_offsets,
6991 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
6992 Adjust.
6993 (struct solib_aix_inferior_data) <library_list>: Adjust.
6994 * solib-darwin.c (struct lm_info): Rename to ...
6995 (struct lm_info_darwin): ... this. Extend lm_info_base.
6996 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
6997 * solib-dsbt.c (struct lm_info): Rename to ...
6998 (struct lm_info_dsbt): ... this. Extend lm_info_base.
6999 (struct dsbt_info) <main_executable_lm_info): Adjust.
7000 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
7001 dsbt_relocate_section_addresses): Adjust.
7002 * solib-frv.c (struct lm_info): Rename to ...
7003 (struct lm_info_frv): ... this. Extend lm_info_base.
7004 (main_executable_lm_info): Adjust.
7005 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
7006 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
7007 find_canonical_descriptor_in_load_object,
7008 frv_fdpic_find_canonical_descriptor): Adjust.
7009 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
7010 to lm_info_svr4.
7011 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
7012 svr4_clear_so, svr4_copy_library_list,
7013 library_list_start_library, svr4_default_sos, svr4_read_so_list,
7014 svr4_current_sos, svr4_fetch_objfile_link_map,
7015 solist_update_incremental): Adjust.
7016 * solib-svr4.h (struct lm_info_svr4): Move here from
7017 solib-svr4.c.
7018 * solib-target.c (struct lm_info): Rename to ...
7019 (struct lm_info_target): ... this. Extend lm_info_base.
7020 (lm_info_p): Rename to ...
7021 (lm_info_target_p): ... this.
7022 (solib_target_parse_libraries, library_list_start_segment,
7023 library_list_start_section, library_list_start_library,
7024 library_list_end_library, solib_target_free_library_list,
7025 solib_target_current_sos, solib_target_free_so,
7026 solib_target_relocate_section_addresses): Adjust.
7027 * windows-nat.c (struct lm_info): Rename to ...
7028 (struct lm_info_windows): ... this. Extend lm_info_base.
7029 (windows_make_so, handle_load_dll, handle_unload_dll,
7030 windows_xfer_shared_libraries): Adjust.
7031
7032 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7033
7034 * solib-darwin.c (struct darwin_so_list): Remove.
7035 (darwin_current_sos): Allocate an so_list object instead of a
7036 darwin_so_list, separately allocate an lm_info object.
7037 (darwin_free_so): Free lm_info.
7038
7039 2017-04-28 John Baldwin <jhb@FreeBSD.org>
7040
7041 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
7042 with fprintf_filtered.
7043
7044 2017-04-28 Yao Qi <yao.qi@linaro.org>
7045
7046 * regcache.c (regcache::regcache): New function.
7047 (regcache::~regcache): New function.
7048 (regcache_xmalloc_1): Remove.
7049 (regcache_xmalloc): Call new regcache.
7050 (regcache_xfree): Call delete regcache.
7051 (get_thread_arch_aspace_regcache): Call new regcache.
7052
7053 2017-04-28 Yao Qi <yao.qi@linaro.org>
7054
7055 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
7056 lwp instead of ptid_get_lwp.
7057
7058 2017-04-28 Yao Qi <yao.qi@linaro.org>
7059
7060 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
7061 lwp_info instead of getting from inferior_ptid.
7062
7063 2017-04-27 Keith Seitz <keiths@redhat.com>
7064
7065 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
7066 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
7067 (CV_CONVERSION_BADNESS): Define.
7068 (rank_one_type): Remove overly restrictive rvalue reference
7069 rank checks.
7070 Add cv-qualifier checks and subranks for type equality.
7071 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
7072 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
7073 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
7074
7075 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
7076
7077 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
7078 count when creating the object.
7079
7080 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
7081 Ulrich Weigand <uweigand@de.ibm.com>
7082
7083 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
7084 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
7085 is used in AIX.
7086 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
7087 (process_xcoff_symbol): Likewise.
7088 (scan_xcoff_symtab): Likewise.
7089
7090 2017-04-26 Alan Hayward <alan.hayward@arm.com>
7091
7092 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
7093 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
7094 (ia64_access_reg): Use get_frame_register_unsigned.
7095 (ia64_access_rse_reg): Likewise.
7096 (ia64_libunwind_frame_prev_register): Likewise.
7097
7098 2017-04-26 Jiong Wang <jiong.wang@arm.com>
7099
7100 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
7101 * gdbarch.c: Regenerated.
7102 * gdbarch.h: Regenerated.
7103 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
7104 visibility external.
7105 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
7106 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
7107 (enum cfa_how_kind): Move to ...
7108 (struct dwarf2_frame_state_reg_info): Likewise.
7109 (struct dwarf2_frame_state): Likewise.
7110 * dwarf2-frame.h: ... here.
7111 (dwarf2_frame_state_alloc_regs): New declaration.
7112 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
7113 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
7114
7115 2017-04-26 Alan Hayward <alan.hayward@arm.com>
7116
7117 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
7118 regcache_raw_read_unsigned.
7119 (xtensa_pseudo_register_write): Likewise.
7120
7121 2017-04-26 Alan Hayward <alan.hayward@arm.com>
7122
7123 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
7124 (nds32_pseudo_register_write): Likewise.
7125
7126 2017-04-25 Yao Qi <yao.qi@linaro.org>
7127
7128 * regcache.c (struct regcache) <readonly_p>: Change its type
7129 to bool.
7130 (regcache_xmalloc_1): Update parameter type and callers update.
7131
7132 2017-04-25 Yao Qi <yao.qi@linaro.org>
7133
7134 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
7135 set_gdbarch_wchar_bit.
7136 * arm-tdep.c (arm_gdbarch_init): Likewise.
7137
7138 2017-04-25 Pedro Alves <palves@redhat.com>
7139
7140 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
7141 (BothAreRelocatable, memcopy, memmove): Don't define.
7142 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
7143 macros.
7144
7145 2017-04-25 Pedro Alves <palves@redhat.com>
7146
7147 * common/common-defs.h: Include "common/poison.h".
7148 * common/function-view.h: (Not, Or, Requires): Move to traits.h
7149 and adjust.
7150 * common/poison.h: New file.
7151 * common/traits.h: Include <type_traits>.
7152 (Not, Or, Requires): New, moved from common/function-view.h.
7153
7154 2017-04-25 Pedro Alves <palves@redhat.com>
7155
7156 * breakpoint.h (struct breakpoint): In-class initialize all
7157 fields. Make boolean fields "bool".
7158 * breakpoint.c (init_raw_breakpoint_without_location): Remove
7159 memset call and initializations no longer necessary.
7160
7161 2017-04-25 Pedro Alves <palves@redhat.com>
7162
7163 * btrace.c (pt_btrace_insn_flags): Change parameter type to
7164 reference.
7165 (pt_btrace_insn): New function.
7166 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
7167
7168 2017-04-25 Pedro Alves <palves@redhat.com>
7169
7170 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
7171 "base" field and inherit from "bp_location" instead. Add
7172 non-default ctor.
7173 (allocate_location_exception): Use new non-default ctor.
7174 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
7175 (init_bp_location): Convert to ...
7176 (bp_location::bp_location): ... this new ctor, and remove memset
7177 call.
7178 (base_breakpoint_allocate_location): Use the new non-default ctor.
7179 * breakpoint.h (bp_location): Now a class. Declare default and
7180 non-default ctors. In-class initialize all members.
7181 (init_bp_location): Remove declaration.
7182
7183 2017-04-25 Pedro Alves <palves@redhat.com>
7184
7185 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
7186 assignment operator.
7187
7188 2017-04-24 Yao Qi <yao.qi@linaro.org>
7189
7190 * doublest.c (convert_doublest_to_floatformat): Call
7191 floatformat_totalsize_bytes.
7192
7193 2017-04-22 Tom Tromey <tom@tromey.com>
7194
7195 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
7196 ui_out_emit_list.
7197 * stack.c (print_frame): Use ui_out_emit_list.
7198 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7199 ui_out_emit_list.
7200 * mi/mi-main.c (print_one_inferior)
7201 (mi_cmd_data_list_register_names)
7202 (mi_cmd_data_list_register_values, mi_cmd_list_features)
7203 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
7204 ui_out_emit_list.
7205 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
7206 (mi_output_solib_attribs): Use ui_out_emit_list,
7207 ui_out_emit_tuple.
7208 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
7209 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7210 (mi_cmd_stack_list_args, list_args_or_locals): Use
7211 ui_out_emit_list.
7212 * disasm.c (do_assembly_only): Use ui_out_emit_list.
7213 * breakpoint.c (print_solib_event, output_thread_groups): Use
7214 ui_out_emit_list.
7215
7216 2017-04-22 Tom Tromey <tom@tromey.com>
7217
7218 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
7219 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
7220 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
7221
7222 2017-04-22 Tom Tromey <tom@tromey.com>
7223
7224 * tracepoint.c (tvariables_info_1)
7225 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
7226
7227 2017-04-22 Tom Tromey <tom@tromey.com>
7228
7229 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
7230 annotate_arg_emitter.
7231 * breakpoint.c (print_mention_watchpoint)
7232 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
7233 * annotate.h (struct annotate_arg_emitter): New.
7234
7235 2017-04-22 Tom Tromey <tom@tromey.com>
7236
7237 * record-btrace.c (record_btrace_insn_history)
7238 (record_btrace_insn_history_range, record_btrace_call_history)
7239 (record_btrace_call_history_range): Use ui_out_emit_tuple.
7240 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
7241 ui_out_emit_tuple.
7242 * stack.c (print_frame_info): Use ui_out_emit_tuple.
7243 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
7244 * skip.c (skip_info): Use ui_out_emit_tuple.
7245 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
7246 * progspace.c (print_program_space): Use ui_out_emit_tuple.
7247 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
7248 * osdata.c (info_osdata): Use ui_out_emit_tuple.
7249 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7250 ui_out_emit_tuple.
7251 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
7252 (output_register, mi_cmd_data_read_memory)
7253 (mi_cmd_data_read_memory_bytes, mi_load_progress)
7254 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
7255 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
7256 Use ui_out_emit_tuple.
7257 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
7258 ui_out_emit_tuple.
7259 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
7260 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
7261 * linux-thread-db.c (info_auto_load_libthread_db): Use
7262 ui_out_emit_tuple.
7263 * inferior.c (print_inferior): Use ui_out_emit_tuple.
7264 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
7265 * disasm.c (do_mixed_source_and_assembly_deprecated)
7266 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
7267 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
7268 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
7269 * breakpoint.c (print_one_breakpoint_location)
7270 (print_one_breakpoint): Use ui_out_emit_tuple.
7271 * auto-load.c (print_script, info_auto_load_cmd): Use
7272 ui_out_emit_tuple.
7273 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
7274
7275 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
7276
7277 * thread.c (print_thread_info_1): Remove dead code.
7278
7279 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7280
7281 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
7282 GDB_SELF_TEST.
7283 * arm-tdep.c (selftests::arm_record_test): Likewise.
7284
7285 2017-04-21 Yao Qi <yao.qi@linaro.org>
7286
7287 * regcache.c (regcache_restore): Remove argument 2. Replace
7288 argument 3 with regcache. Get register status from
7289 src->register_status and get register contents from
7290 register_buffer (src, regnum).
7291 (regcache_cpy): Update.
7292
7293 2017-04-19 Pedro Alves <palves@redhat.com>
7294
7295 * gdbthread.h (thread): Add missing closing parenthesis in
7296 comment.
7297
7298 2017-04-19 Pedro Alves <palves@redhat.com>
7299
7300 * common/refcounted-object.h: New file.
7301 * gdbthread.h: Include "common/refcounted-object.h".
7302 (thread_info): Inherit from refcounted_object and add comments.
7303 (thread_info::incref, thread_info::decref)
7304 (thread_info::m_refcount): Delete.
7305 (thread_info::deletable): Use the refcounted_object::refcount()
7306 method.
7307 * inferior.c (current_inferior_): Add comment.
7308 (set_current_inferior): Increment/decrement refcounts.
7309 (prune_inferiors, remove_inferior_command): Skip inferiors marked
7310 not-deletable instead of comparing with the current inferior.
7311 (initialize_inferiors): Increment the initial inferior's refcount.
7312 * inferior.h (struct inferior): Forward declare.
7313 Include "common/refcounted-object.h".
7314 (current_inferior, set_current_inferior): Move declaration to
7315 before struct inferior's definition, and fix comment.
7316 (inferior): Inherit from refcounted_object. Add comments.
7317 * thread.c (switch_to_thread_no_regs): Reference the thread's
7318 inferior pointer directly instead of doing a ptid lookup.
7319 (switch_to_no_thread): New function.
7320 (switch_to_thread(thread_info *)): New function, factored out
7321 from ...
7322 (switch_to_thread(ptid_t)): ... this.
7323 (restore_current_thread): Delete.
7324 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
7325 fields, and add 'inf' field.
7326 (do_restore_current_thread_cleanup): Check whether old->inf is
7327 alive instead of looking up an inferior by ptid. Use
7328 switch_to_thread and switch_to_no_thread.
7329 (restore_current_thread_cleanup_dtor): Use old->inf directly
7330 instead of lookup up an inferior by id. Decref the inferior.
7331 Don't restore 'removable'.
7332 (make_cleanup_restore_current_thread): Same the inferior pointer
7333 in old, instead of the inferior number. Incref the inferior.
7334 Don't save/clear 'removable'.
7335
7336 2017-04-19 Pedro Alves <palves@redhat.com>
7337
7338 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7339 unittests/scoped_restore-selftests.c.
7340 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
7341 * common/scoped_restore.h (scoped_restore_base): Make "class".
7342 (scoped_restore_base::release): New public method.
7343 (scoped_restore_base::scoped_restore_base): New protected ctor.
7344 (scoped_restore_base::m_saved_var): New protected field.
7345 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
7346 scoped_restore_base base class instead of m_saved_var directly.
7347 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
7348 (scoped_restore_tmpl::scoped_restore_tmpl(const
7349 scoped_restore_tmpl<T>&)): Likewise.
7350 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
7351 method.
7352 (scoped_restore_tmpl::saved_var): New method.
7353 (scoped_restore_tmpl::m_saved_var): Delete.
7354 * inferior.h (inferior::detaching): Now a bool.
7355 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
7356 cleanup.
7357 * unittests/scoped_restore-selftests.c: New file.
7358
7359 2017-04-19 Pedro Alves <palves@redhat.com>
7360
7361 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
7362 Re-sort in alphabetic order.
7363
7364 2017-04-18 Pedro Alves <palves@redhat.com>
7365
7366 * xml-support.c (obstack_xml_printf): Delete.
7367 * xml-support.h (obstack_xml_printf): Delete.
7368
7369 2017-04-18 Pedro Alves <palves@redhat.com>
7370
7371 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
7372 vdebug, verror, body_text, start_element, end_element, name,
7373 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
7374 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
7375 is_xinclude>: Make private and add m_ prefix.
7376 (gdb_xml_parser::body_text): New method, based on ...
7377 (gdb_xml_body_text): ... this. Adjust.
7378 (gdb_xml_parser::vdebug): New method, based on ...
7379 (gdb_xml_debug): ... this. Adjust.
7380 (gdb_xml_parser::verror): New method, based on ...
7381 (gdb_xml_error): ... this. Adjust.
7382 (gdb_xml_parser::start_element): New method, based on ...
7383 (gdb_xml_start_element): ... this. Adjust.
7384 (gdb_xml_start_element_wrapper): Defer to
7385 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
7386 (gdb_xml_parser::end_element): New method, based on ...
7387 (gdb_xml_end_element_wrapper): ... this. Adjust.
7388 (gdb_xml_parser::~gdb_xml_parser): Adjust.
7389 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
7390 (gdb_xml_parser::use_dtd): New method, based on ...
7391 (gdb_xml_use_dtd): ... this. Adjust.
7392 (gdb_xml_parser::parse): New method, based on ...
7393 (gdb_xml_parse): ... this. Adjust.
7394 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
7395 (xinclude_start_include): Adjust to call the parser's name method.
7396 (xml_xinclude_default, xml_xinclude_start_doctype)
7397 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
7398 method.
7399 (xml_process_xincludes): Adjust to call parser methods.
7400 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
7401 declarations.
7402
7403 2017-04-18 Pedro Alves <palves@redhat.com>
7404
7405 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
7406 gdb::optional<std::string>.
7407 * xml-support.c: Include <string>.
7408 (scope_level::scope_level(scope_level &&))
7409 (scope_level::~scope_level): Delete.
7410 (scope_level::body): Now a std::string.
7411 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
7412 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
7413 parameter.
7414 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
7415 (xinclude_parsing_data::output): Now a std::string reference.
7416 (xinclude_start_include): Adjust.
7417 (xml_xinclude_default): Adjust.
7418 (xml_process_xincludes): Add 'output' parameter, and return bool.
7419 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
7420 and return bool.
7421 * xml-tdesc.c: Include <unordered_map> and <string>.
7422 (tdesc_xml_cache): Delete.
7423 (tdesc_xml_cache_s): Delete.
7424 (xml_cache): Now an std::unordered_map.
7425 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
7426 (target_fetch_description_xml): Change return type to
7427 gdb::optional<std::string>, and adjust.
7428 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
7429 (target_fetch_description_xml): Change return type to
7430 gdb::optional<std::string>.
7431
7432 2017-04-18 Pedro Alves <palves@redhat.com>
7433
7434 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7435 unittests/optional-selftests.c.
7436 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
7437 * unittests/optional-selftests.c: New file.
7438 * unittests/optional/assignment/1.cc: New file.
7439 * unittests/optional/assignment/2.cc: New file.
7440 * unittests/optional/assignment/3.cc: New file.
7441 * unittests/optional/assignment/4.cc: New file.
7442 * unittests/optional/assignment/5.cc: New file.
7443 * unittests/optional/assignment/6.cc: New file.
7444 * unittests/optional/assignment/7.cc: New file.
7445 * unittests/optional/cons/copy.cc: New file.
7446 * unittests/optional/cons/default.cc: New file.
7447 * unittests/optional/cons/move.cc: New file.
7448 * unittests/optional/cons/value.cc: New file.
7449 * unittests/optional/in_place.cc: New file.
7450 * unittests/optional/observers/1.cc: New file.
7451 * unittests/optional/observers/2.cc: New file.
7452
7453 2017-04-18 Pedro Alves <palves@redhat.com>
7454
7455 * common/gdb_optional.h: Include common/traits.h.
7456 (in_place_t): New type.
7457 (in_place): New constexpr variable.
7458 (optional::optional): Remove member initialization of
7459 m_instantiated.
7460 (optional::optional(in_place_t...)): New constructor.
7461 (optional::~optional): Use reset.
7462 (optional::optional(const optional&)): New.
7463 (optional::optional(const optional&&)): New.
7464 (optional::optional(T &)): New.
7465 (optional::optional(T &&)): New.
7466 (operator::operator=(const optional &)): New.
7467 (operator::operator=(optional &&)): New.
7468 (operator::operator= (const T &))
7469 (operator::operator= (T &&))
7470 (operator::emplace (Args &&... args)): Return a T&. Use reset.
7471 (operator::reset): New.
7472 (operator::m_instantiated):: Add in-class initializer.
7473 * common/traits.h: Include <type_traits>.
7474 (struct And): New types.
7475
7476 2017-04-18 Pedro Alves <palves@redhat.com>
7477
7478 * xml-support.c: Include <vector>.
7479 (scope_level::scope_level(const gdb_xml_element *))
7480 (scope_level::scope_level(scope_level&&)): New.
7481 (scope_level::~scope_level): New.
7482 (scope_level_s): Delete.
7483 (gdb_xml_parser::scopes): Now a std::vector.
7484 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
7485 Use std::vector.
7486 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
7487 scope cleanup code.
7488 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
7489 of the scopes member. Use std::vector::emplace_back.
7490
7491 2017-04-18 Pedro Alves <palves@redhat.com>
7492
7493 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
7494 a bool.
7495 (gdb_xml_end_element): Change type of first parameter.
7496 (gdb_xml_cleanup): Rename to ...
7497 (gdb_xml_parser::~gdb_xml_parser): ... this.
7498 (gdb_xml_create_parser_and_cleanup): Delete with ...
7499 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
7500 to this new ctor.
7501 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
7502 using gdb_xml_create_parser_and_cleanup.
7503 (xinclude_parsing_data): Add ctor/dtor.
7504 (xml_xinclude_cleanup): Delete.
7505 (xml_process_xincludes): Create a local xinclude_parsing_data
7506 instead of heap-allocating one. Create a local gdb_xml_parser
7507 instead of heap-allocating one with
7508 gdb_xml_create_parser_and_cleanup.
7509
7510 2017-04-18 John Baldwin <jhb@FreeBSD.org>
7511
7512 PR threads/20743
7513 * fbsd-nat.c (resume_one_thread_cb): Remove.
7514 (resume_all_threads_cb): Remove.
7515 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
7516 iterate_over_threads.
7517
7518 2017-04-17 Joel Brobecker <brobecker@adacore.com>
7519
7520 * NEWS: Create a new section for the next release branch.
7521 Rename the section of the current branch, now that it has
7522 been cut.
7523
7524 2017-04-17 Joel Brobecker <brobecker@adacore.com>
7525
7526 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
7527 * version.in: Bump version to 8.0.50.DATE-git.
7528
7529 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
7530
7531 PR gdb/21385
7532 * windows-nat.c (windows_create_inferior): Declare 'allargs'
7533 independently of the host, and fix build breakage on Cygwin.
7534
7535 2017-04-13 Pedro Alves <palves@redhat.com>
7536
7537 * inferior.c (free_inferior): Convert to ...
7538 (inferior::~inferior): ... this dtor.
7539 (inferior::inferior): New ctor, factored out from ...
7540 (add_inferior_silent): ... here. Allocate the inferior with a new
7541 expression.
7542 (delete_inferior): Call delete instead of free_inferior.
7543 * inferior.h (gdb_environ, continuation): Forward declare.
7544 (inferior): Now a class. Add in-class initialization to all
7545 members. Make boolean fields bool, except 'detaching'.
7546 (inferior::inferior): New explicit ctor.
7547 (inferior::~inferior): New.
7548
7549 2017-04-13 Pedro Alves <palves@redhat.com>
7550
7551 * inferior.c (init_inferior_list): Delete.
7552 * inferior.h (init_inferior_list): Delete.
7553
7554 2017-04-13 Pedro Alves <palves@redhat.com>
7555
7556 PR threads/13217
7557 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
7558 (top level): Call it twice, with different thread sets.
7559
7560 2017-04-13 Pedro Alves <palves@redhat.com>
7561
7562 * thread.c: Include <algorithm>.
7563 (thread_array_cleanup): Delete.
7564 (scoped_inc_dec_ref): New class.
7565 (live_threads_count): New function.
7566 (set_thread_refcount): Delete.
7567 (tp_array_compar_ascending): Now a bool.
7568 (tp_array_compar): Convert to a std::sort comparison function.
7569 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
7570 and live_threads_count.
7571
7572 2017-04-13 Pedro Alves <palves@redhat.com>
7573
7574 * infrun.c (follow_fork_inferior): Also switch the current
7575 inferior.
7576
7577 2017-04-13 Pedro Alves <palves@redhat.com>
7578
7579 * breakpoint.c (watch_command_1): Save watchpoint-frame info
7580 before calling create_internal_breakpoint.
7581
7582 2017-04-13 Pedro Alves <palves@redhat.com>
7583
7584 * fork-child.c (execv_argv): New class.
7585 (breakup_args): Refactored as ...
7586 (execv_argv::init_for_no_shell): .. this method of execv_argv.
7587 Copy arguments to storage and replace separators with NULL
7588 terminators in place.
7589 (escape_bang_in_quoted_argument): Adjust to return bool.
7590 (execv_argv::execv_argv): New ctor.
7591 (execv_argv::init_for_shell): New method, factored out from
7592 fork_inferior. Don't strdup strings into the vector.
7593 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
7594 Remove free_vector_argv call.
7595
7596 2017-04-13 Yao Qi <yao.qi@linaro.org>
7597
7598 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
7599 tdep->rx_psw_type.
7600
7601 2017-04-13 Yao Qi <yao.qi@linaro.org>
7602
7603 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
7604 * rx-tdep.c (rx_gdbarch_init): Likewise.
7605
7606 2017-04-13 Pedro Alves <palves@redhat.com>
7607
7608 * breakpoint.h (struct breakpoint): Reindent.
7609
7610 2017-04-13 Pedro Alves <palves@redhat.com>
7611
7612 * breakpoint.c (bp_location): Rename to ...
7613 (bp_locations): ... this. All references updated.
7614 (bp_location_count): Rename to ...
7615 (bp_locations_count): ... this. All references updated.
7616 (bp_location_placed_address_before_address_max): Rename to ...
7617 (bp_locations_placed_address_before_address_max): ... this. All
7618 references updated.
7619 (bp_location_shadow_len_after_address_max): Rename to ...
7620 (bp_locations_shadow_len_after_address_max): ... this. All
7621 references updated.
7622 (bp_location_compare_addrs): Rename to ...
7623 (bp_locations_compare_addrs): ... this. All references updated.
7624 (bp_location_compare):Rename to ...
7625 (bp_locations_compare): ... this. All references updated.
7626 (bp_location_target_extensions_update): Rename to ...
7627 (bp_locations_target_extensions_update): ... this. All references
7628 updated.
7629
7630 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7631
7632 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
7633 * common/common.m4: Check headers 'termios.h', 'termio.h' and
7634 'sgtty.h'.
7635 * common/gdb_termios.h: New file, with parts of "terminal.h".
7636 * inflow.c: Include "gdb_termios.h".
7637 * ser-unix.c: Include "gdb_termios.h".
7638 * terminal.h: Move terminal-related defines to
7639 "common/gdb_termios.h".
7640
7641 2017-04-12 Tom Tromey <tom@tromey.com>
7642
7643 * probe.c (parse_probes): Update.
7644 * location.h (delete_event_location): Don't declare.
7645 (event_location_deleter::operator()): Update.
7646 * location.c (event_location_deleter::operator()): Rename from
7647 delete_event_location.
7648 * linespec.h (linespec_result) <location>: Change type to
7649 event_location_up.
7650 * linespec.c (canonicalize_linespec, event_location_to_sals)
7651 (decode_objc): Update.
7652 (linespec_result): Don't call delete_event_location.
7653 * breakpoint.c (create_breakpoints_sal)
7654 (bkpt_probe_create_sals_from_location)
7655 (strace_marker_create_sals_from_location): Update.
7656
7657 2017-04-12 Tom Tromey <tom@tromey.com>
7658
7659 * linespec.h (struct linespec_result): Add constructor and
7660 destructor.
7661 (init_linespec_result, destroy_linespec_result)
7662 (make_cleanup_destroy_linespec_result): Don't declare.
7663 * linespec.c (init_linespec_result): Remove.
7664 (linespec_result::~linespec_result): Rename from
7665 destroy_linespec_result. Update.
7666 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
7667 Remove.
7668 * breakpoint.c (create_breakpoint, break_range_command)
7669 (decode_location_default): Update.
7670 * ax-gdb.c (agent_command_1): Update.
7671
7672 2017-04-12 Tom Tromey <tom@tromey.com>
7673
7674 * remote.c (remote_download_tracepoint): Update.
7675 * python/py-breakpoint.c (bppy_get_location): Update.
7676 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
7677 (gdbscm_breakpoint_location): Update.
7678 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
7679 * breakpoint.h (struct breakpoint) <location, location_range_end>:
7680 Change type to event_location_up.
7681 * breakpoint.c (create_overlay_event_breakpoint)
7682 (create_longjmp_master_breakpoint)
7683 (create_std_terminate_master_breakpoint)
7684 (create_exception_master_breakpoint)
7685 (breakpoint_event_location_empty_p, print_breakpoint_location)
7686 (print_one_breakpoint_location, create_thread_event_breakpoint)
7687 (init_breakpoint_sal, create_breakpoint)
7688 (print_recreate_ranged_breakpoint, break_range_command)
7689 (init_ada_exception_breakpoint, say_where): Update.
7690 (base_breakpoint_dtor): Don't call delete_event_location.
7691 (bkpt_print_recreate, tracepoint_print_recreate)
7692 (dprintf_print_recreate, update_static_tracepoint)
7693 (breakpoint_re_set_default): Update.
7694
7695 2017-04-12 Tom Tromey <tom@tromey.com>
7696
7697 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
7698 type of "to_do". Update.
7699 (compute_stack_depth): Use std::vector.
7700
7701 2017-04-12 Tom Tromey <tom@tromey.com>
7702
7703 * printcmd.c (find_instruction_backward): Use std::vector.
7704
7705 2017-04-12 Tom Tromey <tom@tromey.com>
7706
7707 * symfile.c (objfilep): Remove typedef.
7708 (reread_symbols): Use a std::vector.
7709
7710 2017-04-12 Tom Tromey <tom@tromey.com>
7711
7712 * mi/mi-main.c (exec_direction_forward): Remove.
7713 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
7714 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
7715 scoped_restore.
7716 * guile/guile.c (guile_repl_command, guile_command)
7717 (gdbscm_execute_gdb_command): Use scoped_restore.
7718 * go-exp.y (go_parse): Use scoped_restore.
7719 * d-exp.y (d_parse): Use scoped_restore.
7720 * cli/cli-decode.c (cmd_func): Use scoped_restore.
7721 * c-exp.y (c_parse): Use scoped_restore.
7722
7723 2017-04-12 Tom Tromey <tom@tromey.com>
7724
7725 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
7726 (mi_parse): Update return type.
7727 (mi_parse_free): Remove.
7728 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
7729 (mi_parse::~mi_parse): Rename from mi_parse_free.
7730 (mi_parse_cleanup): Remove.
7731 (mi_parse): Return a unique_ptr. Use new.
7732 * mi/mi-main.c (mi_execute_command): Update.
7733
7734 2017-04-12 Tom Tromey <tom@tromey.com>
7735
7736 * location.c (explicit_location_lex_one): Return a
7737 unique_xmalloc_ptr.
7738 (string_to_explicit_location): Update. Remove cleanups.
7739
7740 2017-04-12 Tom Tromey <tom@tromey.com>
7741
7742 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
7743 (compare_value_and_voffset): Change type. Update.
7744 (compute_vtable_size): Change type of "offset_vec".
7745 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
7746 (gnuv3_get_typeid): Remove extraneous declaration.
7747
7748 2017-04-12 Tom Tromey <tom@tromey.com>
7749
7750 * charset.h (wchar_iterator): Fix comment.
7751
7752 2017-04-12 Tom Tromey <tom@tromey.com>
7753
7754 * charset.c (iconv_wrapper): New class.
7755 (cleanup_iconv): Remove.
7756 (convert_between_encodings): Use it.
7757
7758 2017-04-12 Tom Tromey <tom@tromey.com>
7759
7760 * symfile.h (increment_reading_symtab): Update type.
7761 * symfile.c (decrement_reading_symtab): Remove.
7762 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
7763 * psymtab.c (psymtab_to_symtab): Update.
7764 * dwarf2read.c (dw2_instantiate_symtab): Update.
7765
7766 2017-04-12 Tom Tromey <tom@tromey.com>
7767
7768 * jit.c (struct jit_reader): Declare separately. Add constructor
7769 and destructor. Change type of "handle".
7770 (loaded_jit_reader): Define separately.
7771 (jit_reader_load): Update. New "new".
7772 (jit_reader_unload_command): Use "delete".
7773 * gdb-dlfcn.h (struct dlclose_deleter): New.
7774 (gdb_dlhandle_up): New typedef.
7775 (gdb_dlopen, gdb_dlsym): Update types.
7776 (gdb_dlclose): Remove.
7777 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
7778 (gdb_dlsym): Change type of "handle".
7779 (make_cleanup_dlclose): Remove.
7780 (dlclose_deleter::operator()): Rename from gdb_dlclose.
7781 * compile/compile-c-support.c (load_libcc): Update.
7782
7783 2017-04-12 Tom Tromey <tom@tromey.com>
7784
7785 * symtab.h (find_pcs_for_symtab_line): Change return type.
7786 * symtab.c (find_pcs_for_symtab_line): Change return type.
7787 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
7788 type of "vec". Update.
7789 (ltpy_get_pcs_for_line): Update.
7790 * linespec.c (decode_digits_ordinary): Update.
7791
7792 2017-04-12 Tom Tromey <tom@tromey.com>
7793
7794 * tracepoint.c (actions_command): Update.
7795 * python/python.c (python_command, python_interactive_command):
7796 Update.
7797 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7798 * guile/guile.c (guile_command): Update.
7799 * defs.h (read_command_lines, read_command_lines_1): Return
7800 command_line_up.
7801 (command_lines_deleter): New struct.
7802 (command_line_up): New typedef.
7803 * compile/compile.c (compile_code_command)
7804 (compile_print_command): Update.
7805 * cli/cli-script.h (get_command_line, copy_command_lines): Return
7806 command_line_up.
7807 (make_cleanup_free_command_lines): Remove.
7808 * cli/cli-script.c (get_command_line, read_command_lines_1)
7809 (copy_command_lines): Return command_line_up.
7810 (while_command, if_command, read_command_lines, define_command)
7811 (document_command): Update.
7812 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
7813 Remove.
7814 * breakpoint.h (breakpoint_set_commands): Change type of
7815 "commands".
7816 * breakpoint.c (breakpoint_set_commands): Change type of
7817 "commands". Update.
7818 (do_map_commands_command, update_dprintf_command_list)
7819 (create_tracepoint_from_upload): Update.
7820
7821 2017-04-12 Tom Tromey <tom@tromey.com>
7822
7823 * tracepoint.c (scope_info): Update.
7824 * spu-tdep.c (spu_catch_start): Update.
7825 * python/python.c (gdbpy_decode_line): Update.
7826 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
7827 * python/py-breakpoint.c (bppy_init): Update.
7828 * probe.c (parse_probes): Update.
7829 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
7830 * location.h (event_location_deleter): New struct.
7831 (event_location_up): New typedef.
7832 (new_linespec_location, new_address_location, new_probe_location)
7833 (new_explicit_location, copy_event_location)
7834 (string_to_event_location, string_to_event_location_basic)
7835 (string_to_explicit_location): Update return type.
7836 (make_cleanup_delete_event_location): Remove.
7837 * location.c (new_linespec_location, new_address_location)
7838 (new_probe_location, new_explicit_location, copy_event_location):
7839 Return event_location_up.
7840 (delete_event_location_cleanup)
7841 (make_cleanup_delete_event_location): Remove.
7842 (string_to_explicit_location, string_to_event_location_basic)
7843 (string_to_event_location): Return event_location_up.
7844 * linespec.c (canonicalize_linespec, event_location_to_sals)
7845 (decode_line_with_current_source)
7846 (decode_line_with_last_displayed, decode_objc): Update.
7847 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7848 * completer.c (location_completer): Update.
7849 * cli/cli-cmds.c (edit_command, list_command): Update.
7850 * breakpoint.c (create_overlay_event_breakpoint)
7851 (create_longjmp_master_breakpoint)
7852 (create_std_terminate_master_breakpoint)
7853 (create_exception_master_breakpoint)
7854 (create_thread_event_breakpoint): Update.
7855 (init_breakpoint_sal): Update. Remove some dead code.
7856 (create_breakpoint_sal): Change type of "location". Update.
7857 (create_breakpoints_sal, create_breakpoint, break_command_1)
7858 (dprintf_command, break_range_command, until_break_command)
7859 (init_ada_exception_breakpoint)
7860 (strace_marker_create_sals_from_location)
7861 (update_static_tracepoint, trace_command, ftrace_command)
7862 (strace_command, create_tracepoint_from_upload): Update.
7863 * break-catch-throw.c (re_set_exception_catchpoint): Update.
7864 * ax-gdb.c (agent_command_1): Update.
7865
7866 2017-04-12 Pedro Alves <palves@redhat.com>
7867
7868 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
7869 * configure.tgt: Handle i[34567]86-*-go32* and
7870 i[34567]86-*-msdosdjgpp*.
7871 * i386-tdep.c (i386_svr4_reg_to_regnum):
7872 Make extern.
7873 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
7874 i386-go32-tdep.c.
7875 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
7876 * i386-go32-tdep.c: New file.
7877 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
7878 declarations.
7879
7880 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
7881
7882 * aix-thread.c (pd_status2str): Change return type to const char *.
7883
7884 2017-04-12 Pedro Alves <palves@redhat.com>
7885
7886 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
7887 calls to set_gdbarch_gnu_triplet_regexp.
7888
7889 2017-04-12 Pedro Alves <palves@redhat.com>
7890
7891 PR gdb/21323
7892 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
7893 New enum value.
7894 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
7895 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
7896 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
7897 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
7898 * gdbarch.h, gdbarch.c: Regenerate.
7899 * aarch64-tdep.c (aarch64_gdbarch_init): Override
7900 gdbarch_wchar_bit and gdbarch_wchar_signed.
7901 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
7902 * arm-tdep.c (arm_gdbarch_init): Likewise.
7903 * avr-tdep.c (avr_gdbarch_init): Likewise.
7904 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
7905 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
7906 * i386-tdep.c (i386_go32_init_abi): Likewise.
7907 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7908 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7909 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
7910 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
7911 * sh-tdep.c (sh_gdbarch_init): Likewise.
7912 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7913 * sparc64-tdep.c (sparc64_init_abi): Likewise.
7914 * windows-tdep.c (windows_init_abi): Likewise.
7915 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
7916
7917 2017-04-12 Pedro Alves <palves@redhat.com>
7918
7919 PR c++/21323
7920 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
7921 cplus_primitive_type_char32_t>: New enum values.
7922 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
7923 and cplus_primitive_type_char32_t.
7924 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
7925 32, use the archtecture's built-in type for char16_t and char32_t,
7926 respectively. Otherwise, fallback to init_integer_type as before,
7927 but make the type unsigned, and issue a complaint.
7928 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
7929
7930 2017-04-12 Alan Hayward <alan.hayward@arm.com>
7931
7932 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
7933 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
7934
7935 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7936
7937 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
7938 'const char *'.
7939
7940 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7941
7942 * common/common-utils.c (free_vector_argv): New function.
7943 * common/common-utils.h: Include <vector>.
7944 (free_vector_argv): New prototype.
7945 * darwin-nat.c (darwin_create_inferior): Rewrite function
7946 prototype in order to constify "exec_file" and accept a
7947 "std::string" for "allargs".
7948 * fork-child.c: Include <vector>.
7949 (breakup_args): Rewrite function, using C++.
7950 (fork_inferior): Rewrite function header, constify "exec_file_arg"
7951 and accept "std::string" for "allargs". Update the code to
7952 calculate "argv" based on "allargs". Update calls to "exec_fun"
7953 and "execvp".
7954 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
7955 order to constify "exec_file" and accept a "std::string" for
7956 "allargs".
7957 * go32-nat.c (go32_create_inferior): Likewise.
7958 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
7959 * infcmd.c (run_command_1): Constify "exec_file". Use
7960 "std::string" for inferior arguments.
7961 * inferior.h (fork_inferior): Update prototype.
7962 * linux-nat.c (linux_nat_create_inferior): Rewrite function
7963 prototype in order to constify "exec_file" and accept a
7964 "std::string" for "allargs".
7965 * nto-procfs.c (procfs_create_inferior): Likewise.
7966 * procfs.c (procfs_create_inferior): Likewise.
7967 * remote-sim.c (gdbsim_create_inferior): Likewise.
7968 * remote.c (extended_remote_run): Update code to accept
7969 "std::string" as argument.
7970 (extended_remote_create_inferior): Rewrite function prototype in
7971 order to constify "exec_file" and accept a "std::string" for
7972 "allargs".
7973 * rs6000-nat.c (super_create_inferior): Likewise.
7974 (rs6000_create_inferior): Likewise.
7975 * target.h (struct target_ops) <to_create_inferior>: Likewise.
7976 * windows-nat.c (windows_create_inferior): Likewise.
7977
7978 2017-04-11 Pedro Alves <palves@redhat.com>
7979
7980 * thread.c: Fix whitespace throughout.
7981
7982 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
7983
7984 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
7985
7986 2017-04-11 Alan Hayward <alan.hayward@arm.com>
7987
7988 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
7989
7990 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
7991
7992 PR gdb/21364
7993 * osdata.c (info_osdata): Check if 'type' is an empty string
7994 instead of NULL.
7995
7996 2017-04-10 Pedro Alves <palves@redhat.com>
7997
7998 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
7999 (ptid_to_global_thread_id, in_thread_list)
8000 (do_captured_list_thread_ids, set_resumed, set_running)
8001 (set_executing, set_stop_requested, finish_thread_state)
8002 (validate_registers_access, can_access_registers_ptid)
8003 (print_thread_info_1, switch_to_thread)
8004 (do_restore_current_thread_cleanup)
8005 (make_cleanup_restore_current_thread, thread_command)
8006 (thread_name_command): Use operator== instead of ptid_equal.
8007
8008 2017-04-10 Pedro Alves <palves@redhat.com>
8009
8010 * thread.c (struct current_thread_cleanup) <next>: Delete field.
8011 (current_thread_cleanup_chain): Delete.
8012 (restore_current_thread_cleanup_dtor)
8013 (make_cleanup_restore_current_thread): Remove references to
8014 current_thread_cleanup_chain.
8015
8016 2017-04-10 Alan Hayward <alan.hayward@arm.com>
8017
8018 * msp430-tdep.c (msp430_pseudo_register_read): Never return
8019 REG_UNKNOWN.
8020
8021 2017-04-10 Yao Qi <yao.qi@linaro.org>
8022
8023 PR gdb/19942
8024 * gdbthread.h (thread_info::deletable): New method.
8025 (thread_info::incref): New method.
8026 (thread_info::decref): New method.
8027 (thread_info::refcount): Move it to private.
8028 * infrun.c (save_stop_context): Call inc_refcount.
8029 (release_stop_context_cleanup): Likewise.
8030 * thread.c (set_thread_exited): New function.
8031 (init_thread_list): Delete "tp" only it is deletable, otherwise
8032 call set_thread_exited.
8033 (delete_thread_1): Call set_thread_exited.
8034 (current_thread_cleanup) <inferior_pid>: Remove.
8035 <thread>: New field.
8036 (restore_current_thread_ptid_changed): Removed.
8037 (do_restore_current_thread_cleanup): Adjust.
8038 (restore_current_thread_cleanup_dtor): Don't call
8039 find_thread_ptid.
8040 (set_thread_refcount): Use dec_refcount.
8041 (make_cleanup_restore_current_thread): Adjust.
8042 (thread_apply_all_command): Call inc_refcount.
8043 (_initialize_thread): Don't call
8044 observer_attach_thread_ptid_changed.
8045
8046 2017-04-10 Yao Qi <yao.qi@linaro.org>
8047
8048 * thread.c (delete_thread_1): Hoist code on marking thread as
8049 exited.
8050
8051 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8052
8053 * windows-nat.c (windows_detach): Initialize ptid with
8054 minus_one_ptid.
8055
8056 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
8057
8058 * unittests/ptid-selftests.c: Fix erroneous assert messages.
8059
8060 2017-04-07 Alan Hayward <alan.hayward@arm.com>
8061
8062 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
8063 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
8064 (bfin_pseudo_register_write): Likewise
8065
8066 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
8067
8068 * common/ptid.h (struct ptid): Change to...
8069 (class ptid_t): ... this.
8070 <ptid_t>: New constructors.
8071 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
8072 matches>: New methods.
8073 <make_null, make_minus_one>: New static methods.
8074 <pid>: Rename to...
8075 <m_pid>: ...this.
8076 <lwp>: Rename to...
8077 <m_lwp>: ...this.
8078 <tid>: Rename to...
8079 <m_tid>: ...this.
8080 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
8081 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
8082 as references, move comment to class ptid_t.
8083 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
8084 ptid_t static methods.
8085 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
8086 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
8087 Take ptid arguments as references, implement using ptid_t methods.
8088 * unittests/ptid-selftests.c: New file.
8089 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8090 unittests/ptid-selftests.c.
8091 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
8092
8093 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
8094
8095 * python/python.c (python_run_simple_file): Cast mode literal to
8096 non-const char pointer as expected by PyFile_FromString.
8097
8098 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
8099
8100 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
8101 minus_one_ptid and null_ptid.
8102
8103 2017-04-05 Pedro Alves <palves@redhat.com>
8104
8105 * warning.m4 (build_warnings): Remove -Wno-write-strings.
8106 * configure: Regenerate.
8107
8108 2017-04-05 Pedro Alves <palves@redhat.com>
8109
8110 * ada-exp.y (yyerror): Constify.
8111 * ada-lang.c (bound_name, get_selections)
8112 (ada_variant_discrim_type)
8113 (ada_variant_discrim_name, ada_value_struct_elt)
8114 (ada_lookup_struct_elt_type, is_unchecked_variant)
8115 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
8116 (catch_ada_exception_command_split)
8117 (catch_ada_assert_command_split, catch_assert_command)
8118 (ada_op_name): Constify.
8119 * ada-lang.h (ada_yyerror, get_selections)
8120 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
8121 * arc-tdep.c (arc_print_frame_cache): Constify.
8122 * arm-tdep.c (arm_skip_stub): Constify.
8123 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
8124 (gen_aggregate_elt_ref): Constify.
8125 * bcache.c (print_bcache_statistics): Constify.
8126 * bcache.h (print_bcache_statistics): Constify.
8127 * break-catch-throw.c (catch_exception_command_1):
8128 * breakpoint.c (struct ep_type_description::description):
8129 Constify.
8130 (add_solib_catchpoint): Constify.
8131 (catch_fork_command_1): Add cast.
8132 (add_catch_command): Constify.
8133 * breakpoint.h (add_catch_command, add_solib_catchpoint):
8134 Constify.
8135 * bsd-uthread.c (bsd_uthread_state): Constify.
8136 * buildsym.c (patch_subfile_names): Constify.
8137 * buildsym.h (next_symbol_text_func, patch_subfile_names):
8138 Constify.
8139 * c-exp.y (yyerror): Constify.
8140 (token::oper): Constify.
8141 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
8142 * c-varobj.c (cplus_describe_child): Constify.
8143 * charset.c (find_charset_names): Add cast.
8144 (find_charset_names): Constify array and add const_cast.
8145 * cli/cli-cmds.c (complete_command, cd_command): Constify.
8146 (edit_command): Constify.
8147 * cli/cli-decode.c (lookup_cmd): Constify.
8148 * cli/cli-dump.c (dump_memory_command, dump_value_command):
8149 Constify.
8150 (struct dump_context): Constify.
8151 (add_dump_command, restore_command): Constify.
8152 * cli/cli-script.c (get_command_line): Constify.
8153 * cli/cli-script.h (get_command_line): Constify.
8154 * cli/cli-utils.c (check_for_argument): Constify.
8155 * cli/cli-utils.h (check_for_argument): Constify.
8156 * coff-pe-read.c (struct read_pe_section_data): Constify.
8157 * command.h (lookup_cmd): Constify.
8158 * common/print-utils.c (decimal2str): Constify.
8159 * completer.c (gdb_print_filename): Constify.
8160 * corefile.c (set_gnutarget): Constify.
8161 * cp-name-parser.y (yyerror): Constify.
8162 * cp-valprint.c (cp_print_class_member): Constify.
8163 * cris-tdep.c (cris_register_name, crisv32_register_name):
8164 Constify.
8165 * d-exp.y (yyerror): Constify.
8166 (struct token::oper): Constify.
8167 * d-lang.h (d_yyerror): Constify.
8168 * dbxread.c (struct header_file_location::name): Constify.
8169 (add_old_header_file, add_new_header_file, last_function_name)
8170 (dbx_next_symbol_text, add_bincl_to_list)
8171 (find_corresponding_bincl_psymtab, set_namestring)
8172 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
8173 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
8174 * defs.h (command_line_input, print_address_symbolic)
8175 (deprecated_readline_begin_hook): Constify.
8176 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
8177 Constify.
8178 * event-top.c (handle_line_of_input): Constify and add cast.
8179 * exceptions.c (catch_errors): Constify.
8180 * exceptions.h (catch_errors): Constify.
8181 * expprint.c (print_subexp_standard, op_string, op_name)
8182 (op_name_standard, dump_raw_expression, dump_raw_expression):
8183 * expression.h (op_name, op_string, dump_raw_expression):
8184 Constify.
8185 * f-exp.y (yyerror): Constify.
8186 (struct token::oper): Constify.
8187 (struct f77_boolean_val::name): Constify.
8188 * f-lang.c (f_word_break_characters): Constify.
8189 * f-lang.h (f_yyerror): Constify.
8190 * fork-child.c (fork_inferior): Add cast.
8191 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
8192 (new_variant): Constify.
8193 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
8194 * gdbarch.c: Regenerate.
8195 * gdbcore.h (set_gnutarget): Constify.
8196 * go-exp.y (yyerror): Constify.
8197 (token::oper): Constify.
8198 * go-lang.h (go_yyerror): Constify.
8199 * go32-nat.c (go32_sysinfo): Constify.
8200 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
8201 * guile/scm-cmd.c (cmdscm_function): Constify.
8202 * guile/scm-param.c (pascm_param_value): Constify.
8203 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
8204 (h8300sx_register_name): Constify.
8205 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
8206 Constify.
8207 * ia64-tdep.c (ia64_register_names): Constify.
8208 * infcmd.c (construct_inferior_arguments): Constify.
8209 (path_command, attach_post_wait): Constify.
8210 * language.c (show_range_command, show_case_command)
8211 (unk_lang_error): Constify.
8212 * language.h (language_defn::la_error)
8213 (language_defn::la_name_of_this): Constify.
8214 * linespec.c (decode_line_2): Constify.
8215 * linux-thread-db.c (thread_db_err_str): Constify.
8216 * lm32-tdep.c (lm32_register_name): Constify.
8217 * m2-exp.y (yyerror): Constify.
8218 * m2-lang.h (m2_yyerror): Constify.
8219 * m32r-tdep.c (m32r_register_names): Constify and make static.
8220 * m68hc11-tdep.c (m68hc11_register_names): Constify.
8221 * m88k-tdep.c (m88k_register_name): Constify.
8222 * macroexp.c (appendmem): Constify.
8223 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
8224 (upgrade_type, parse_external, parse_partial_symbols)
8225 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
8226 (new_symbol): Constify.
8227 * memattr.c (mem_info_command): Constify.
8228 * mep-tdep.c (register_name_from_keyword): Constify.
8229 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
8230 Constify.
8231 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
8232 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
8233 * mi/mi-main.c (captured_mi_execute_command): Constify and add
8234 cast.
8235 (mi_execute_async_cli_command): Constify.
8236 * mips-tdep.c (mips_register_name): Constify.
8237 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
8238 (am33_register_name, am33_2_register_name)
8239 * moxie-tdep.c (moxie_register_names): Constify.
8240 * nat/linux-osdata.c (osdata_type): Constify fields.
8241 * nto-tdep.c (nto_parse_redirection): Constify.
8242 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
8243 (lookup_child_selector): Constify.
8244 (objc_methcall::name): Constify.
8245 * objc-lang.h (lookup_objc_class, lookup_child_selector)
8246 (lookup_struct_typedef): Constify.
8247 * objfiles.c (pc_in_section): Constify.
8248 * objfiles.h (pc_in_section): Constify.
8249 * p-exp.y (struct token::oper): Constify.
8250 (yyerror): Constify.
8251 * p-lang.h (pascal_yyerror): Constify.
8252 * parser-defs.h (op_name_standard): Constify.
8253 (op_print::string): Constify.
8254 (exp_descriptor::op_name): Constify.
8255 * printcmd.c (print_address_symbolic): Constify.
8256 * psymtab.c (print_partial_symbols): Constify.
8257 * python/py-breakpoint.c (stop_func): Constify.
8258 (bppy_get_expression): Constify.
8259 * python/py-cmd.c (cmdpy_completer::name): Constify.
8260 (cmdpy_function): Constify.
8261 * python/py-event.c (evpy_add_attribute)
8262 (gdbpy_initialize_event_generic): Constify.
8263 * python/py-event.h (evpy_add_attribute)
8264 (gdbpy_initialize_event_generic): Constify.
8265 * python/py-evts.c (add_new_registry): Constify.
8266 * python/py-finishbreakpoint.c (outofscope_func): Constify.
8267 * python/py-framefilter.c (get_py_iter_from_func): Constify.
8268 * python/py-inferior.c (get_buffer): Add cast.
8269 * python/py-param.c (parm_constant::name): Constify.
8270 * python/py-unwind.c (fprint_frame_id): Constify.
8271 * python/python.c (gdbpy_parameter_value): Constify.
8272 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
8273 * remote.c (memory_packet_config::name): Constify.
8274 (show_packet_config_cmd, remote_write_bytes)
8275 (remote_buffer_add_string):
8276 * reverse.c (exec_reverse_once): Constify.
8277 * rs6000-tdep.c (variant::name, variant::description): Constify.
8278 * rust-exp.y (rustyyerror): Constify.
8279 * rust-lang.c (rust_op_name): Constify.
8280 * rust-lang.h (rustyyerror): Constify.
8281 * serial.h (serial_ops::name): Constify.
8282 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
8283 (sh_sh3e_register_name, sh_sh2e_register_name)
8284 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
8285 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
8286 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
8287 (sh_sh4al_dsp_register_name): Constify.
8288 * sh64-tdep.c (sh64_register_name): Constify.
8289 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
8290 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
8291 * stabsread.c (patch_block_stabs, read_type_number)
8292 (ref_map::stabs, ref_add, process_reference)
8293 (symbol_reference_defined, define_symbol, define_symbol)
8294 (error_type, read_type, read_member_functions, read_cpp_abbrev)
8295 (read_one_struct_field, read_struct_fields, read_baseclasses)
8296 (read_tilde_fields, read_struct_type, read_array_type)
8297 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
8298 (read_huge_number, read_range_type, read_args, common_block_start)
8299 (find_name_end): Constify.
8300 * stabsread.h (common_block_start, define_symbol)
8301 (process_one_symbol, symbol_reference_defined, ref_add):
8302 * symfile.c (get_section_index, add_symbol_file_command):
8303 * symfile.h (get_section_index): Constify.
8304 * target-descriptions.c (tdesc_type::name): Constify.
8305 (tdesc_free_type): Add cast.
8306 * target.c (find_default_run_target):
8307 (add_deprecated_target_alias, find_default_run_target)
8308 (target_announce_detach): Constify.
8309 (do_option): Constify.
8310 * target.h (add_deprecated_target_alias): Constify.
8311 * thread.c (print_thread_info_1): Constify.
8312 * top.c (deprecated_readline_begin_hook, command_line_input):
8313 Constify.
8314 (init_main): Add casts.
8315 * top.h (handle_line_of_input): Constify.
8316 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
8317 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
8318 (tfind_command): Rename to ...
8319 (tfind_command_1): ... this and constify.
8320 (tfind_command): New function.
8321 (tfind_end_command, tfind_start_command): Adjust.
8322 (encode_source_string): Constify.
8323 * tracepoint.h (encode_source_string): Constify.
8324 * tui/tui-data.c (tui_partial_win_by_name): Constify.
8325 * tui/tui-data.h (tui_partial_win_by_name): Constify.
8326 * tui/tui-source.c (tui_set_source_content_nil): Constify.
8327 * tui/tui-source.h (tui_set_source_content_nil): Constify.
8328 * tui/tui-win.c (parse_scrolling_args): Constify.
8329 * tui/tui-windata.c (tui_erase_data_content): Constify.
8330 * tui/tui-windata.h (tui_erase_data_content): Constify.
8331 * tui/tui-winsource.c (tui_erase_source_content): Constify.
8332 * tui/tui.c (tui_enable): Add cast.
8333 * utils.c (defaulted_query): Constify.
8334 (init_page_info): Add cast.
8335 (puts_debug, subset_compare): Constify.
8336 * utils.h (subset_compare): Constify.
8337 * varobj.c (varobj_format_string): Constify.
8338 * varobj.h (varobj_format_string): Constify.
8339 * vax-tdep.c (vax_register_name): Constify.
8340 * windows-nat.c (windows_detach): Constify.
8341 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
8342 * xml-support.c (gdb_xml_end_element): Constify.
8343 * xml-tdesc.c (tdesc_start_reg): Constify.
8344 * xstormy16-tdep.c (xstormy16_register_name): Constify.
8345 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
8346 * xtensa-tdep.h (xtensa_register_t::name): Constify.
8347
8348 2017-04-05 Pedro Alves <palves@redhat.com>
8349
8350 * proc-api.c (struct trans): Constify.
8351 (procfs_note): Constify.
8352 * proc-events.c (struct trans, syscall_table):
8353 * proc-flags.c (struct trans): Constify.
8354 * proc-utils.h (procfs_note): Constify.
8355 * proc-why.c (struct trans): Constify.
8356 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
8357 (procfs_detach): Constify.
8358 * sol-thread.c (struct string_map): Constify.
8359 (td_err_string, td_state_string): Constify.
8360
8361 2017-04-05 Pedro Alves <palves@redhat.com>
8362
8363 * proc-api.c (procfs_filename): Don't initialize
8364 procfs_filename.
8365 (prepare_to_trace): Assume procfs_filename is non-NULL.
8366 (_initialize_proc_api): Give procfs_filename a default value here.
8367
8368 2017-04-05 Pedro Alves <palves@redhat.com>
8369
8370 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
8371 'cond_string' parameter.
8372 (extract_exception_regexp): Constify 'string' parameter.
8373 (catch_exception_command_1): Constify.
8374 * breakpoint.c (init_catchpoint)
8375 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
8376 parameter.
8377 (ep_parse_optional_if_clause, catch_fork_command_1)
8378 (catch_exec_command_1): Constify.
8379 * breakpoint.h (init_catchpoint): Constify 'cond_string'
8380 parameter.
8381 (ep_parse_optional_if_clause): Constify.
8382 * cli/cli-utils.c (remove_trailing_whitespace)
8383 (check_for_argument): Constify.
8384 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
8385 non-const overload.
8386 (check_for_argument): Likewise.
8387
8388 2017-04-05 Pedro Alves <palves@redhat.com>
8389
8390 * event-top.c (command_line_handler): Add cast to execute_command
8391 call.
8392 * record-btrace.c (cmd_record_btrace_bts_start)
8393 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
8394 (cmd_record_btrace_start): Add cast to execute_command call.
8395 * record-full.c (record_full_goto_insn):
8396 * record.c (record_start, record_stop): Add cast to
8397 execute_command_to_string calls.
8398 (cmd_record_start): Add cast to execute_command calls.
8399
8400 2017-04-05 Pedro Alves <palves@redhat.com>
8401
8402 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
8403 static inline function.
8404 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
8405 array and use gdb_PyArg_ParseTupleAndKeywords.
8406 * python/py-cmd.c (cmdpy_init): Likewise.
8407 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
8408 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
8409 (infpy_search_memory): Likewise.
8410 * python/py-objfile.c (objfpy_add_separate_debug_file)
8411 (gdbpy_lookup_objfile): Likewise.
8412 * python/py-symbol.c (gdbpy_lookup_symbol)
8413 (gdbpy_lookup_global_symbol): Likewise.
8414 * python/py-type.c (gdbpy_lookup_type): Likewise.
8415 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
8416 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
8417 Likewise.
8418
8419 2017-04-05 Pedro Alves <palves@redhat.com>
8420
8421 * python/python-internal.h (gdb_PyGetSetDef): New type.
8422 * python/py-block.c (block_object_getset)
8423 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
8424 * python/py-event.c (event_object_getset)
8425 (finish_breakpoint_object_getset): Likewise.
8426 * python/py-inferior.c (inferior_object_getset): Likewise.
8427 * python/py-infthread.c (thread_object_getset): Likewise.
8428 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
8429 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
8430 * python/py-objfile.c (objfile_getset): Likewise.
8431 * python/py-progspace.c (pspace_getset): Likewise.
8432 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
8433 Likewise.
8434 * python/py-record.c (recpy_record_getset): Likewise.
8435 * python/py-symbol.c (symbol_object_getset): Likewise.
8436 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
8437 Likewise.
8438 * python/py-type.c (type_object_getset, field_object_getset):
8439 Likewise.
8440 * python/py-value.c (value_object_getset): Likewise.
8441
8442 2017-04-05 Pedro Alves <palves@redhat.com>
8443
8444 * python/python-internal.h (gdb_PyObject_CallMethod)
8445 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
8446 New functions.
8447 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
8448 (PySys_GetObject, PySys_SetPath): New macros.
8449
8450 2017-04-05 Pedro Alves <palves@redhat.com>
8451
8452 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
8453 info_osdata_command.
8454 * osdata.c (info_osdata_command): Rename to ...
8455 (info_osdata): ... this. Constify 'type' parameter, and remove
8456 the 'from_tty' parameter. Accept NULL TYPE.
8457 (info_osdata_command): New function.
8458 * osdata.h (info_osdata_command): Remove declaration.
8459 (info_osdata): New declaration.
8460
8461 2017-04-05 Pedro Alves <palves@redhat.com>
8462
8463 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
8464 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
8465 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
8466 parameter.
8467 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
8468 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
8469 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
8470 parameter.
8471 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
8472 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
8473 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
8474 (mi_cmd_file_list_exec_source_files)
8475 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
8476 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
8477 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
8478 parameter.
8479 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
8480 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
8481 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8482 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
8483 (mi_cmd_stack_info_frame): Constify 'command' parameter.
8484 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
8485 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
8486 'command' parameter.
8487 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
8488 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
8489 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
8490 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
8491 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
8492 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
8493 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
8494 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
8495 (mi_cmd_var_set_update_range): Constify 'command' parameter.
8496 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
8497 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
8498 parameter.
8499 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
8500 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
8501 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
8502 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
8503 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
8504 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
8505 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
8506 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
8507 (mi_cmd_data_list_changed_registers)
8508 (mi_cmd_data_write_register_values)
8509 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
8510 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
8511 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
8512 (mi_cmd_list_features, mi_cmd_list_target_features)
8513 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
8514 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
8515 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
8516 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
8517 (mi_cmd_trace_frame_collected): Constify 'command'
8518 parameter.
8519 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
8520 'command' parameter.
8521
8522 2017-04-05 Pedro Alves <palves@redhat.com>
8523
8524 * ada-lang.c (ada_completer_word_break_characters): Now a const
8525 array.
8526 (ada_get_gdb_completer_word_break_characters): Constify.
8527 * completer.c (gdb_completer_command_word_break_characters)
8528 (gdb_completer_file_name_break_characters)
8529 (gdb_completer_quote_characters): Now const arrays.
8530 (get_gdb_completer_quote_characters): Constify.
8531 (set_rl_completer_word_break_characters): New function.
8532 (set_gdb_completion_word_break_characters)
8533 (complete_line_internal): Use it.
8534 * completer.h (get_gdb_completer_quote_characters): Constify.
8535 (set_rl_completer_word_break_characters): Declare.
8536 * f-lang.c (f_word_break_characters): Constify.
8537 * language.c (default_word_break_characters): Constify.
8538 * language.h (language_defn::la_word_break_characters): Constify.
8539 (default_word_break_characters): Constify.
8540 * top.c (init_main): Use set_rl_completer_word_break_characters.
8541
8542 2017-04-05 Pedro Alves <palves@redhat.com>
8543
8544 * aix-thread.c (aix_thread_pid_to_str)
8545 (aix_thread_extra_thread_info): Constify.
8546 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
8547 * bsd-uthread.c (bsd_uthread_extra_thread_info)
8548 (bsd_uthread_pid_to_str): Constify.
8549 * corelow.c (core_pid_to_str): Constify.
8550 * darwin-nat.c (darwin_pid_to_str): Constify.
8551 * fbsd-nat.c (fbsd_pid_to_str): Constify.
8552 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
8553 Constify.
8554 * gnu-nat.c (gnu_pid_to_str): Constify.
8555 * go32-nat.c (go32_pid_to_str): Constify.
8556 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
8557 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
8558 * inferior.c (inferior_pid_to_str): Constify.
8559 * linux-nat.c (linux_nat_pid_to_str): Constify.
8560 * linux-tdep.c (linux_core_pid_to_str): Constify.
8561 * linux-thread-db.c (thread_db_pid_to_str)
8562 (thread_db_extra_thread_info): Constify.
8563 * nto-tdep.c (nto_extra_thread_info): Constify.
8564 * nto-tdep.h (nto_extra_thread_info): Constify.
8565 * obsd-nat.c (obsd_pid_to_str): Constify.
8566 * procfs.c (procfs_pid_to_str): Constify.
8567 * ravenscar-thread.c (ravenscar_extra_thread_info)
8568 (ravenscar_pid_to_str): Constify.
8569 * remote-sim.c (gdbsim_pid_to_str): Constify.
8570 * remote.c (remote_threads_extra_info, remote_pid_to_str):
8571 Constify.
8572 * sol-thread.c (solaris_pid_to_str): Constify.
8573 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
8574 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
8575 * target.c (default_pid_to_str, target_pid_to_str)
8576 (normal_pid_to_str, default_pid_to_str): Constify.
8577 * target.h (target_ops::to_pid_to_str)
8578 (target_ops::to_extra_thread_info): Constify.
8579 (target_pid_to_str, normal_pid_to_str): Constify.
8580 * windows-nat.c (windows_pid_to_str): Constify.
8581 * gdbarch.sh (core_pid_to_str): Constify.
8582 * target-delegates.c: Regenerate.
8583 * gdbarch.h, gdbarch.c: Regenerate.
8584
8585 2017-04-05 Pedro Alves <palves@redhat.com>
8586
8587 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
8588 the memory of the temporary warning_pre_print override.
8589 * utils.c (warning_pre_print): Constify.
8590 * utils.h (warning_pre_print): Constify.
8591
8592 2017-04-05 Pedro Alves <palves@redhat.com>
8593
8594 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
8595 (shell_command): New function.
8596 (make_command): Use std::string.
8597 (init_cli_cmds): Register shell_command instead of shell_escape.
8598
8599 2017-04-05 Pedro Alves <palves@redhat.com>
8600
8601 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
8602 * tracepoint.c (default_collect): Don't initialize.
8603
8604 2017-04-05 Pedro Alves <palves@redhat.com>
8605
8606 * macroexp.c (macro_buffer::shared): Now a bool.
8607 (init_buffer): Update.
8608 (init_shared_buffer): Constify 'addr' parameter.
8609 (substitute_args, expand, macro_expand, macro_expand_next): Remove
8610 casts.
8611
8612 2017-04-05 Pedro Alves <palves@redhat.com>
8613
8614 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
8615 * disasm.c (set_disassembler_options): Constify local.
8616 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
8617
8618 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
8619
8620 PR gdb/21352
8621 * tracefile.c (tsave_command): Fix argument parsing for '-r'
8622 option.
8623
8624 2017-04-05 Yao Qi <yao.qi@linaro.org>
8625
8626 * frame.c (frame_unwind_register_unsigned): Call
8627 frame_unwind_register_value.
8628
8629 2017-04-05 Yao Qi <yao.qi@linaro.org>
8630
8631 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
8632 Use gdb_test_multiple, and don't match anchor.
8633
8634 2017-04-05 Pedro Alves <palves@redhat.com>
8635
8636 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
8637 (Write After Approval): Remove Simon Marchi.
8638
8639 2017-04-05 Pedro Alves <palves@redhat.com>
8640
8641 * common/gdb_optional.h (optional::optional): Make constexpr and
8642 initialize m_dummy.
8643
8644 2017-04-04 John Baldwin <jhb@FreeBSD.org>
8645
8646 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
8647 (amd64fbsd_jmp_buf_reg_offset): Remove.
8648 (amd64fbsd_supply_uthread): Remove function.
8649 (amd64fbsd_collect_uthread): Remove function.
8650 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
8651 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
8652 (x86_64-*-freebsd*): Remove bsd-uthread.o.
8653 (fbsd-nat.c): Update comment.
8654 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
8655 (i386fbsd_jmp_buf_reg_offset): Remove.
8656 (i386fbsd_supply_uthread): Remove function.
8657 (i386fbsd_collect_uthread): Remove function.
8658 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
8659
8660 2017-04-04 John Baldwin <jhb@FreeBSD.org>
8661
8662 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
8663 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
8664 * NEWS: Mention that support for FreeBSD/alpha was removed.
8665 * alpha-fbsd-tdep.c: Delete file.
8666 * config/alpha/fbsd.mh: Delete file.
8667 * configure.host: Delete alpha*-*-freebsd* and
8668 alpha*-*-kfreebsd*-gnu.
8669 * configure.tgt: Delete alpha*-*-freebsd* and
8670 alpha*-*-kfreebsd*-gnu.
8671
8672 2017-04-04 John Baldwin <jhb@FreeBSD.org>
8673
8674 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
8675 amd64bsd_store_inferior_registers): Use ptid from regcache.
8676
8677 2017-04-04 Pedro Alves <palves@redhat.com>
8678
8679 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
8680 data fields, make them private and add "m_" prefixes.
8681 (lnp_state_machine::lnp_state_machine): New ctor.
8682 (record_line, check_line_address, handle_set_discriminator)
8683 (handle_set_address, handle_advance_pc, handle_special_opcode)
8684 (handle_advance_line, handle_set_file, handle_negate_stmt)
8685 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
8686 (end_sequence, advance_line): New methods.
8687 (m_gdbarch, m_record_lines_p): New fields.
8688 (lnp_reader_state): Delete.
8689 (dwarf_record_line): Rename to ...
8690 (lnp_state_machine::record_line): ... adjust.
8691 (init_lnp_state_machine): Delete.
8692 (lnp_state_machine::lnp_state_machine): New.
8693 (check_line_address): Rename to ...
8694 (lnp_state_machine::check_line_address): This.
8695 (dwarf_decode_lines_1): Remove reference to "reader_state".
8696 Adjust lnp_state_machine having a non-default ctor. Use bool.
8697 State machine internal state manipulation moved to
8698 lnp_state_machine methods.
8699
8700 2017-04-04 Pedro Alves <palves@redhat.com>
8701
8702 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8703 unittests/offset-type-selftests.c.
8704 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
8705 * common/offset-type.h: New file.
8706 * common/preprocessor.h: New file.
8707 * common/traits.h: New file.
8708 * common/valid-expr.h: New file.
8709 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
8710 sect_offset and cu_offset strong typedefs throughout.
8711 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
8712 typedefs throughout.
8713 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
8714 sect_offset and cu_offset strong typedefs throughout.
8715 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
8716 typedefs throughout.
8717 * gdbtypes.h: Include "common/offset-type.h".
8718 (cu_offset): Now an offset type (strong typedef) instead of a
8719 struct.
8720 (sect_offset): Likewise.
8721 (union call_site_parameter_u): Rename "param_offset" field to
8722 "param_cu_off".
8723 * unittests/offset-type-selftests.c: New file.
8724
8725 2017-04-04 Pedro Alves <palves@redhat.com>
8726
8727 * common/underlying.h: New file.
8728 * dwarf2read.c: Include "common/gdb_optional.h" and
8729 "common/underlying.h".
8730 (dir_index, file_name_index): New types.
8731 (file_entry): Use them.
8732 (file_entry::include): Use to_underlying.
8733 (line_header::add_file_name): Use dir_index.
8734 (read_formatted_entries): Use gdb::optional. Read form before
8735 writting to file_entry.
8736 (dwarf_decode_line_header): Use dir_index.
8737 (lnp_state_machine::current_file): Use to_underlying.
8738 (lnp_state_machine::file): Change type to file_name_index.
8739 (dwarf_record_line): Use to_underlying.
8740 (init_lnp_state_machine): Use file_name_index.
8741 (dwarf_decode_lines_1): Use dir_index and file_name_index.
8742
8743 2017-04-04 Pedro Alves <palves@redhat.com>
8744
8745 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
8746 operator bool, has_value and get methods.
8747
8748 2017-04-04 Pedro Alves <palves@redhat.com>
8749
8750 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
8751 fields.
8752 (line_header): Initialize all data fields. Change type of
8753 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
8754 Change type of include_dirs to std::vector<const char *>. Remove
8755 num_include_dirs, include_dirs_size. Change type of file_names to
8756 std::vector<file_entry>. Remove num_file_names, file_names_size.
8757 (line_header::line_header): New.
8758 (line_header::add_include_dir, line_header::add_file_name): New
8759 methods.
8760 (line_header::include_dir_at): Remove NULL check.
8761 (line_header::file_name_at): Add const overload.
8762 (line_header_up): New unique_ptr typedef.
8763 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
8764 std::vector. Remove free_line_header call.
8765 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
8766 free_line_header call.
8767 (free_cu_line_header): Delete.
8768 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
8769 (setup_type_unit_groups): Use line_header_up instead of cleanups.
8770 Adjust to use std::vector.
8771 (free_line_header): Delete.
8772 (free_line_header_voidp): Use delete.
8773 (add_include_dir): Replace with ...
8774 (line_header::add_include_dir): ... this method. Use std::vector.
8775 (add_file_name): Replace with ...
8776 (line_header::add_file_name): ... this method. Use std::vector.
8777 (add_include_dir_stub): Delete.
8778 (read_formatted_entries): Remove memset.
8779 (dwarf_decode_line_header): Return a line_header_up instead of a
8780 raw pointer. Remove cleanup handling. Pass lambdas to
8781 read_formatted_entries. Adjust to use line_header methods.
8782 (dwarf_decode_lines_1): Adjust to use line_header methods.
8783 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
8784 use std::vector.
8785
8786 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
8787
8788 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
8789 instead of struct ptid.
8790
8791 2017-05-04 Alan Hayward <alan.hayward@arm.com>
8792
8793 * frame.c (get_frame_register_bytes): Unwind using value.
8794 (put_frame_register_bytes): Likewise.
8795
8796 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
8797
8798 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
8799 aggregate-like.
8800
8801 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8802
8803 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
8804
8805 2017-03-29 Yao Qi <yao.qi@linaro.org>
8806
8807 * gdbthread.h (struct thread_info): Declare constructor and
8808 destructor. Add some in-class member initializers.
8809 * thread.c (free_thread): Remove.
8810 (init_thread_list): Call delete instead of free_thread.
8811 (new_thread): Call thread_info constructor.
8812 (thread_info::thread_info): New function.
8813 (thread_info::~thread_info): New function.
8814 (delete_thread_1): Call delete instead of free_thread.
8815 (make_cleanup_restore_current_thread): Move tp and frame to
8816 inner block.
8817
8818 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8819
8820 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
8821 (arc_skip_prologue): Likewise.
8822 (arc_make_frame_cache): Likewise.
8823 (arc_pv_get_operand): New function.
8824 (arc_is_in_prologue): Likewise.
8825 (arc_analyze_prologue): Likewise.
8826 (arc_print_frame_cache): Likewise.
8827 (MAX_PROLOGUE_LENGTH): New constant.
8828
8829 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8830
8831 * configure.tgt: Add arc-insn.o.
8832 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
8833 (dump_arc_instruction_command): New function.
8834 (arc_fprintf_disasm): Likewise.
8835 (arc_disassemble_info): Likewise.
8836 (arc_insn_get_operand_value): Likewise.
8837 (arc_insn_get_operand_value_signed): Likewise.
8838 (arc_insn_get_memory_base_reg): Likewise.
8839 (arc_insn_get_memory_offset): Likewise.
8840 (arc_insn_get_branch_target): Likewise.
8841 (arc_insn_dump): Likewise.
8842 (arc_insn_get_linear_next_pc): Likewise.
8843 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
8844 (arc_disassemble_info): Likewise.
8845 (arc_insn_get_branch_target): Likewise.
8846 (arc_insn_get_linear_next_pc): Likewise.
8847 * NEWS: Mention new "maint print arc arc-instruction".
8848
8849 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8850
8851 * arc-tdep (maintenance_print_arc_list): New variable.
8852 (maintenance_print_arc_command): New function.
8853
8854 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8855
8856 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
8857 Add "limm" and "reserved".
8858 (arc_cannot_fetch_register, arc_cannot_store_register): Add
8859 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
8860 * arc-tdep.h (arc_regnum): Likewise.
8861
8862 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8863
8864 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
8865 for THREADPTR register.
8866 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
8867 register.
8868 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
8869 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
8870 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
8871
8872 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8873
8874 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
8875 registers above gdbarch_num_regs (gdbarch) as privileged in
8876 call0 ABI.
8877
8878 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8879
8880 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
8881 for a single specified register or for all registers in
8882 a0_base..a0_base + C0_NREGS range.
8883 (supply_gregset_reg): Call regcache_raw_supply for a single
8884 specified register or for all registers in a0_base..a0_base +
8885 C0_NREGS range.
8886
8887 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8888
8889 * arch/xtensa.h (C0_NREGS): Add definition.
8890 * xtensa-tdep.c (C0_NREGS): Remove definition.
8891
8892 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8893
8894 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
8895 Drop xtensa_default_isa initialization.
8896 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
8897
8898 2017-03-27 Pedro Alves <palves@redhat.com>
8899
8900 * dwarf2read.c (file_entry) <dir_index>: Add comment.
8901 (file_entry::include_dir): New method.
8902 (line_header::include_dir_at, line_header::file_name_at): New
8903 methods.
8904 (setup_type_unit_groups, setup_type_unit_groups)
8905 (psymtab_include_file_name): Simplify using the new methods.
8906 (lnp_state_machine) <the_line_header>: New field.
8907 <file>: Add comment.
8908 (lnp_state_machine::current_file): New method.
8909 (dwarf_record_line): Simplify using the new methods.
8910 (init_lnp_state_machine): Initialize the "the_line_header" field.
8911 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
8912 Simplify using the new methods.
8913
8914 2017-03-27 Pedro Alves <palves@redhat.com>
8915
8916 * cp-name-parser.y (make_empty): Delete.
8917 (demangler_special, nested_name, ptr_operator, array_indicator)
8918 (direct_declarator, declarator_1): Use fill_comp instead of
8919 make_empty.
8920
8921 2017-03-27 Pedro Alves <palves@redhat.com>
8922
8923 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
8924 to ATTRIBUTE_PRINTF.
8925 * solib-target.c (library_list_start_list): Print "string" not
8926 "version".
8927 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
8928 gdb_xml_error call.
8929
8930 2017-03-27 Pedro Alves <palves@redhat.com>
8931
8932 * dwarf2read.c (struct file_and_directory): New.
8933 (dwarf2_get_dwz_file): Adjust to use std::string.
8934 (dw2_get_file_names_reader): Adjust to use file_and_directory.
8935 (find_file_and_directory): Adjust to return a file_and_directory
8936 object.
8937 (read_file_scope): Adjust to use file_and_directory. Remove
8938 make_cleanup/do_cleanups calls.
8939 (open_and_init_dwp_file): Adjust to use std::string. Remove
8940 make_cleanup/do_cleanups calls.
8941 * python/python.c (do_start_initialization): Adjust to ldirname
8942 returning a std::string.
8943 * utils.c (ldirname): Now returns a std::string.
8944 * utils.h (ldirname): Change return type to std::string.
8945 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
8946 returning a std::string.
8947 * xml-tdesc.c (file_read_description_xml): Likewise.
8948
8949 2017-03-24 Alan Hayward <alan.hayward@arm.com>
8950
8951 * regcache.c (regcache_debug_print_register): New function.
8952 * regcache.h (regcache_debug_print_register): New declaration.
8953 * target.c (debug_print_register): Remove.
8954 (target_fetch_registers): Call regcache_debug_print_register.
8955 (target_store_registers): Likewise.
8956
8957 2017-03-24 Pádraig Brady <pbrady@fb.com>
8958
8959 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
8960 reference beyond the 'lh->include_dirs' array before accessing to
8961 it.
8962 (psymtab_include_file_name): Likewise.
8963 (dwarf_decode_lines_1): Likewise.
8964 (dwarf_decode_lines): Likewise.
8965 (file_file_name): Likewise.
8966
8967 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
8968
8969 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
8970 inferior_ptid.
8971 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
8972 ps_lsetfpregs): Likewise.
8973 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
8974 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
8975 ps_lsetfpregs): Likewise.
8976 * target.c (target_fetch_registers, target_store_registers):
8977 Remove asserts.
8978
8979 2017-03-23 Alan Hayward <alan.hayward@arm.com>
8980
8981 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
8982
8983 2017-03-23 Yao Qi <yao.qi@linaro.org>
8984
8985 * aarch64-tdep.c (aarch64_process_record_test): Declare.
8986 (_initialize_aarch64_tdep): Register it.
8987 (aarch64_record_load_store): Handle PRFM instruction.
8988 (aarch64_process_record_test): New function.
8989
8990 2017-03-23 Yao Qi <yao.qi@linaro.org>
8991
8992 * aarch64-tdep.c (aarch64_record_load_store): Fix code
8993 indentation.
8994
8995 2017-03-23 Yao Qi <yao.qi@linaro.org>
8996
8997 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
8998
8999 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
9000
9001 python/python.c (do_start_initialization): Fix memory leak.
9002
9003 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
9004
9005 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
9006 using get_ptrace_pid.
9007 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
9008 inferior_ptid.
9009 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
9010 inferior_ptid instead of pid.
9011
9012 2017-03-22 Yao Qi <yao.qi@linaro.org>
9013
9014 * aarch64-tdep.c: Wrap locally used classes in anonymous
9015 namespace.
9016 * arm-tdep.c: Likewise.
9017 * linespec.c: Likewise.
9018 * ui-out.c: Likewise.
9019
9020 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
9021
9022 PR gdb/19637
9023 * python/lib/gdb/printer/bound_registers.py: Import sys.
9024
9025 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
9026
9027 * windows-nat.c (do_windows_fetch_inferior_registers): Add
9028 windows_thread_info parameter and use it instead of
9029 current_thread.
9030 (windows_fetch_inferior_registers): Don't set current_thread,
9031 pass the thread to do_windows_fetch_inferior_registers. Use
9032 ptid from regcache instead of inferior_ptid.
9033 (do_windows_store_inferior_registers): Add windows_thread_info
9034 parameter and use it instead of current_thread.
9035 (windows_store_inferior_registers): Don't set current_thread,
9036 pass the thread to do_windows_store_inferior_registers. Use
9037 ptid from regcache instead of inferior_ptid.
9038
9039 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
9040
9041 * ser-mingw.c (ser_windows_raw): Remove reference to
9042 struct serial::current_timeout.
9043
9044 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
9045
9046 PR tdep/20928
9047 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
9048 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
9049 (sparc64_fsr_type): Fix %fsr decoding.
9050
9051 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
9052
9053 * python/py-record-btrace.c (btpy_insn_data): Change return type
9054 for Python 2.
9055
9056 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
9057
9058 * spu-linux-nat.c (spu_fetch_inferior_registers,
9059 spu_store_inferior_registers): Use ptid from regcache, set and
9060 restore inferior_ptid.
9061 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
9062 Likewise.
9063
9064 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
9065
9066 * i386-linux-nat.c (fetch_register, store_register,
9067 i386_linux_fetch_inferior_registers,
9068 i386_linux_store_inferior_registers): Use ptid from regcache.
9069 * ia64-linux-nat.c (ia64_linux_fetch_register,
9070 ia64_linux_store_register): Likewise.
9071 * inf-ptrace.c (inf_ptrace_fetch_register,
9072 inf_ptrace_store_register): Likewise.
9073 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
9074 m32r_linux_store_inferior_registers): Likewise.
9075 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
9076 m68kbsd_store_inferior_registers): Likewise.
9077 * m68k-linux-nat.c (fetch_register, store_register,
9078 m68k_linux_fetch_inferior_registers,
9079 m68k_linux_store_inferior_registers): Likewise.
9080 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
9081 m88kbsd_store_inferior_registers): Likewise.
9082 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
9083 mips_fbsd_store_inferior_registers): Likewise.
9084 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
9085 mips64_linux_regsets_store_registers): Likewise.
9086 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
9087 mipsnbsd_store_inferior_registers): Likewise.
9088 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
9089 mips64obsd_store_inferior_registers): Likewise.
9090 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
9091 Likewise.
9092 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
9093 ppcfbsd_store_inferior_registers): Likewise.
9094 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
9095 ppc_linux_store_inferior_registers): Likewise.
9096 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
9097 ppcnbsd_store_inferior_registers): Likewise.
9098 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
9099 ppcobsd_store_registers): Likewise.
9100 * procfs.c (procfs_fetch_registers, procfs_store_registers):
9101 Likewise.
9102 * ravenscar-thread.c (ravenscar_fetch_registers,
9103 ravenscar_store_registers, ravenscar_prepare_to_store):
9104 Likewise.
9105 * record-btrace.c (record_btrace_fetch_registers,
9106 record_btrace_store_registers, record_btrace_prepare_to_store):
9107 Likewise.
9108 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
9109 Lookup inferior using ptid from regcache, instead of
9110 current_inferior.
9111 * remote.c (remote_fetch_registers, remote_store_registers): Use
9112 ptid from regcache.
9113 * rs6000-nat.c (fetch_register, store_register): Likewise.
9114 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
9115 s390_linux_store_inferior_registers): Likewise.
9116 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
9117 shnbsd_store_inferior_registers): Likewise.
9118 * sol-thread.c (sol_thread_fetch_registers,
9119 sol_thread_store_registers): Likewise.
9120 * sparc-nat.c (sparc_fetch_inferior_registers,
9121 sparc_store_inferior_registers): Likewise.
9122 * tilegx-linux-nat.c (fetch_inferior_registers,
9123 store_inferior_registers): Likewise.
9124 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
9125 vaxbsd_store_inferior_registers): Likewise.
9126 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
9127 store_xtregs): Likewise.
9128
9129 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9130
9131 PR gdb/14441
9132 * NEWS: Mention support for rvalue references in GDB and python.
9133 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
9134 supports both lvalue and rvalue references.
9135
9136 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9137
9138 PR gdb/14441
9139 * gdbtypes.c (rank_one_type): Implement overloading
9140 resolution rules regarding rvalue references.
9141
9142 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9143
9144 PR gdb/14441
9145 * aarch64-tdep.c (aarch64_type_align)
9146 (aarch64_extract_return_value, aarch64_store_return_value): Change
9147 lvalue reference type checks to general reference type checks.
9148 * amd64-tdep.c (amd64_classify): Likewise.
9149 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
9150 Likewise.
9151 * arm-tdep.c (arm_type_align, arm_extract_return_value)
9152 (arm_store_return_value): Likewise.
9153 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
9154 * c-typeprint.c (c_print_type): Likewise.
9155 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
9156 (cplus_number_of_children, cplus_describe_child): Likewise.
9157 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
9158 * completer.c (expression_completer): Likewise.
9159 * cp-support.c (make_symbol_overload_list_adl_namespace):
9160 Likewise.
9161 * darwin-nat-info.c (info_mach_region_command): Likewise.
9162 * dwarf2loc.c (entry_data_value_coerce_ref)
9163 (value_of_dwarf_reg_entry): Likewise.
9164 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
9165 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
9166 Likewise.
9167 * findvar.c (extract_typed_address, store_typed_address):
9168 Likewise.
9169 * gdbtypes.c (rank_one_type): Likewise.
9170 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
9171 * infcall.c (value_arg_coerce): Likewise.
9172 * language.c (pointer_type): Likewise.
9173 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
9174 Likewise.
9175 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
9176 * mn10300-tdep.c (mn10300_type_align): Likewise.
9177 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
9178 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
9179 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
9180 Likewise.
9181 * printcmd.c (print_formatted, x_command): Likewise.
9182 * python/py-type.c (typy_get_composite, typy_template_argument):
9183 Likewise.
9184 * python/py-value.c (valpy_referenced_value)
9185 (valpy_get_dynamic_type, value_has_field): Likewise.
9186 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
9187 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
9188 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
9189 * spu-tdep.c (spu_scalar_value_p): Likewise.
9190 * symtab.c (lookup_symbol_aux): Likewise.
9191 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
9192 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
9193 Likewise.
9194 * valops.c (value_cast_pointers, value_cast)
9195 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
9196 (value_struct_elt, value_struct_elt_bitpos)
9197 (value_find_oload_method_list, find_overload_match)
9198 (value_rtti_indirect_type): Likewise.
9199 * valprint.c (val_print_scalar_type_p, generic_val_print):
9200 Likewise.
9201 * value.c (value_actual_type, value_as_address, unpack_long)
9202 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
9203 (coerce_ref): Likewise.
9204 * varobj.c (varobj_get_value_type): Likewise.
9205
9206 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9207
9208 PR gdb/14441
9209 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
9210 table of constants.
9211 * python/lib/gdb/command/explore.py: Support exploring values
9212 of rvalue reference types.
9213 * python/lib/gdb/types.py: Implement get_basic_type() for
9214 rvalue reference types.
9215 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
9216 constant.
9217 * python/py-value.c (valpy_getitem): Add an rvalue reference
9218 check.
9219 (valpy_reference_value): Add new parameter "refcode".
9220 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
9221 New wrappers for valpy_reference_value().
9222 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9223 (gdbpy_invoke_xmethod): Likewise.
9224
9225 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9226
9227 PR gdb/14441
9228 * dwarf2read.c (process_die, read_type_die_1): Handle the
9229 DW_TAG_rvalue_reference_type DIE.
9230 (read_tag_reference_type): Add new parameter "refcode".
9231
9232 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9233
9234 PR gdb/14441
9235 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
9236 (c_type_print_modifier, c_type_print_varspec_suffix)
9237 (c_type_print_base): Support printing rvalue reference types.
9238 * c-valprint.c (c_val_print, c_value_print): Support printing
9239 rvalue reference values.
9240
9241 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9242
9243 PR gdb/14441
9244 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
9245 typename.
9246 * cp-support.c (replace_typedefs): Handle
9247 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
9248 * python/py-type.c (typy_lookup_type): Likewise.
9249
9250 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9251
9252 PR gdb/14441
9253 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
9254 * parse.c (insert_type): Change assert statement.
9255 (follow_types): Handle rvalue reference types.
9256 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
9257 constant.
9258
9259 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9260
9261 PR gdb/14441
9262 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
9263 value_ref() interface.
9264 * c-valprint.c (c_value_print): Likewise.
9265 * infcall.c (value_arg_coerce): Likewise.
9266 * python/py-value.c (valpy_reference_value): Likewise.
9267 * valops.c (value_cast, value_reinterpret_cast)
9268 (value_dynamic_cast, typecmp): Likewise.
9269 (value_ref): Parameterize by kind of return value reference type.
9270 * value.h (value_ref): Add new parameter "refcode".
9271
9272 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9273
9274 PR gdb/14441
9275 * dwarf2read.c (read_tag_reference_type): Use
9276 lookup_lvalue_reference_type() instead of lookup_reference_type().
9277 * eval.c (evaluate_subexp_standard): Likewise.
9278 * f-exp.y: Likewise.
9279 * gdbtypes.c (make_reference_type, lookup_reference_type):
9280 Generalize with rvalue reference types.
9281 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
9282 convenience wrappers for lookup_reference_type().
9283 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
9284 reference kind parameter.
9285 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
9286 wrappers for lookup_reference_type().
9287 * guile/scm-type.c (gdbscm_type_reference): Use
9288 lookup_lvalue_reference_type() instead of lookup_reference_type().
9289 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
9290 * parse.c (follow_types): Likewise.
9291 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
9292 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
9293 Likewise.
9294 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9295 (gdbpy_invoke_xmethod): Likewise.
9296 * stabsread.c: Provide extra argument to make_reference_type()
9297 call.
9298 * valops.c (value_ref, value_rtti_indirect_type): Use
9299 lookup_lvalue_reference_type() instead of lookup_reference_type().
9300
9301 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9302
9303 PR gdb/14441
9304 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
9305 (TYPE_IS_REFERENCE): New macro.
9306 (struct type): Add rvalue_reference_type field.
9307 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
9308
9309 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9310
9311 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
9312 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
9313 New function definition.
9314 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
9315 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
9316 New function declaration.
9317 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
9318 * mi/mi-interp.h: New file.
9319 * solib.c (info_sharedlibrary_command): Replace for loop with
9320 ALL_SO_LIBS macro
9321 * solib.h (update_solib_list): New function declaration.
9322 (so_list_head): Move macro.
9323 * solist.h (ALL_SO_LIBS): New macro.
9324
9325 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9326
9327 * infcmd.c (post_create_inferior): Remove unused argument in
9328 call to solib_add.
9329 * remote.c (remote_start_remote): Likewise.
9330 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
9331 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
9332 (enable_break): Likewise.
9333 * solib.c (update_solib_list): Remove unused target argument
9334 and its documentation.
9335 (solib_add): Remove unused target argument. Remove unused
9336 argument in call to update_solib_list.
9337 (info_sharedlibrary_command): Remove unused argument in call
9338 to update_solib_list.
9339 (sharedlibrary_command): Remove unused argument in call to
9340 solib_add.
9341 (handle_solib_event): Likewise.
9342 (reload_shared_libraries): Likewise.
9343 * solib.h (solib_add): Remove unused target argument.
9344
9345 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
9346
9347 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
9348 (s390_displaced_step_fixup): Cover relative branches with the
9349 default fixup handling. This fixes lack of support for some
9350 relative branch instructions.
9351
9352 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9353
9354 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
9355 ptid from regcache.
9356
9357 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9358
9359 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
9360 i386_darwin_store_inferior_registers): Use ptid from regcache.
9361
9362 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9363
9364 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
9365 i386bsd_store_inferior_registers): Use ptid from regcache.
9366
9367 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9368
9369 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
9370 hppaobsd_store_registers): Use ptid from regcache.
9371
9372 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9373
9374 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
9375 hppanbsd_store_registers): Use ptid from regcache.
9376
9377 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9378
9379 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
9380 from regcache. Use get_ptrace_pid.
9381
9382 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9383
9384 * corelow.c (get_core_register_section): Use ptid from regcache,
9385 update doc.
9386
9387 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9388
9389 * bsd-uthread.c (bsd_uthread_fetch_registers,
9390 bsd_uthread_store_registers): Use ptid from regcache, set and
9391 restore inferior_ptid.
9392
9393 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9394
9395 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
9396 fetch_fp_regs, store_register, store_regs, store_fp_register,
9397 store_fp_regs): Use ptid from regcache.
9398
9399 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9400
9401 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
9402 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
9403 store_vfp_regs): Use ptid from regcache.
9404
9405 2017-03-17 Pedro Alves <palves@redhat.com>
9406
9407 PR remote/21188
9408 * ser-base.c (ser_base_wait_for): Add comment.
9409 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
9410 version.
9411 * ser-unix.c (hardwire_raw): Remove reference to
9412 scb->current_timeout.
9413 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
9414 (hardwire_ops): Install ser_base_readchar instead of
9415 hardwire_readchar.
9416 * serial.h (struct serial) <current_timeout, timeout_remaining>:
9417 Remove fields.
9418
9419 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
9420
9421 PR gdb/19637
9422 * python/lib/gdb/printer/bound_registers.py: Add support for
9423 Python 3.
9424
9425 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
9426
9427 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
9428 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
9429 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
9430 byte_offset to subobj_byte_offset. Fix the handling of
9431 DWARF_VALUE_STACK on big-endian targets when coming via an
9432 implicit pointer.
9433 (dwarf2_evaluate_loc_desc): Adjust call to
9434 dwarf2_evaluate_loc_desc_full.
9435 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
9436 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
9437
9438 2017-03-16 Yao Qi <yao.qi@linaro.org>
9439
9440 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
9441 and REVSH instructions.
9442
9443 2017-03-16 Yao Qi <yao.qi@linaro.org>
9444
9445 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
9446 (arm_record_test): Declare.
9447 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
9448 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
9449 align with the manual.
9450 (thumb_record_misc): Adjust the code order to align with the
9451 manual.
9452 (thumb2_record_decode_insn_handler): Fix instruction matching.
9453 (instruction_reader_thumb): New class.
9454 (arm_record_test): New function.
9455
9456 2017-03-16 Yao Qi <yao.qi@linaro.org>
9457
9458 * arm-tdep.c (abstract_memory_reader): New class.
9459 (instruction_reader): New class.
9460 (extract_arm_insn): Add argument 'reader'. Callers updated.
9461 (decode_insn): Likewise.
9462
9463 2017-03-16 Doug Evans <dje@google.com>
9464
9465 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
9466 member. Change type of TYPE member to SCM. All uses updated.
9467 (lsscm_make_lazy_string_smob): Add assert.
9468 (lsscm_make_lazy_string): Flag bad length values.
9469 (lsscm_elt_type): New function.
9470 (gdbscm_lazy_string_to_value): Rewrite to use
9471 lsscm_safe_lazy_string_to_value.
9472 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
9473 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
9474 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
9475 in incoming type.
9476 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
9477 * guile/scm-type.c (tyscm_scm_to_type): New function.
9478
9479 2017-03-15 Doug Evans <dje@google.com>
9480
9481 PR python/17728, python/18439, python/18779
9482 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
9483 member. Change type of TYPE member to PyObject *. All uses updated.
9484 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
9485 (gdbpy_create_lazy_string_object): Flag bad length values.
9486 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
9487 Handle typedefs in incoming type.
9488 (stpy_lazy_string_elt_type): New function.
9489 (gdbpy_extract_lazy_string): Call it.
9490 * python/py-value.c (valpy_lazy_string): Flag bad length values.
9491 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
9492 typedefs in incoming type.
9493
9494 2017-03-16 Doug Evans <dje@google.com>
9495
9496 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
9497 * guile/scm-type.c (tyscm_scm_to_type): New function.
9498
9499 2017-03-16 Jiong Wang <jiong.wang@arm.com>
9500
9501 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
9502 "ULONGEST" for "skip".
9503
9504 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
9505
9506 PR gdb/21220
9507 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
9508 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
9509 (inf_ptrace_peek_poke): ...here. New function. Now also loop
9510 over ptrace peek/poke until end of buffer or error.
9511
9512 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
9513
9514 * parse.c (length_of_subexp): Make static.
9515 * parser-defs.h (length_of_subexp): Remove.
9516
9517 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
9518
9519 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
9520 as well.
9521
9522 2017-03-14 Pedro Alves <palves@redhat.com>
9523
9524 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
9525 (main): Use std::unique_ptr. Remove calls to
9526 cp_demangled_name_parse_free.
9527
9528 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9529
9530 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
9531 alphabsd_store_inferior_registers): Use regcache->ptid instead
9532 of inferior_ptid.
9533
9534 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9535
9536 * aix-thread.c (aix_thread_fetch_registers,
9537 aix_thread_store_registers): Use regcache->ptid instead of
9538 inferior_ptid.
9539
9540 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9541
9542 * aarch64-linux-nat.c (fetch_gregs_from_thread,
9543 store_gregs_to_thread, fetch_fpregs_from_thread,
9544 store_fpregs_to_thread): Use regcache->ptid instead of
9545 inferior_ptid.
9546
9547 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9548
9549 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
9550 amd64_linux_fetch_inferior_registers): Use regcache->ptid
9551 instead of inferior_ptid.
9552
9553 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9554
9555 * target.c (target_fetch_registers, target_store_registers): Add
9556 assert.
9557
9558 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9559
9560 * regcache.h (regcache_get_ptid): New function.
9561 * regcache.c (regcache_get_ptid): New function.
9562
9563 2017-03-13 Mark Wielaard <mark@klomp.org>
9564
9565 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
9566
9567 2017-03-10 Keith Seitz <keiths@redhat.com>
9568
9569 PR c++/8218
9570 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
9571
9572 2017-03-08 Pedro Alves <palves@redhat.com>
9573
9574 PR gdb/18360
9575 * infrun.c (start_step_over, do_target_resume, resume)
9576 (restart_threads): Assert we're not resuming a thread that is
9577 meant to be stopped.
9578 (infrun_thread_stop_requested_callback): Delete.
9579 (infrun_thread_stop_requested): If the thread is internally
9580 stopped, queue a pending stop event and clear the thread's
9581 inline-frame state.
9582 (handle_stop_requested): New function.
9583 (handle_syscall_event, handle_inferior_event_1): Use
9584 handle_stop_requested.
9585 (handle_stop_requested): New function.
9586 (handle_signal_stop): Set the thread's stop_signal here instead of
9587 at caller.
9588 (finish_step_over): Clear step over info unconditionally.
9589 (handle_signal_stop): If the user had interrupted the event
9590 thread, consider the stop a random signal.
9591 (handle_signal_stop) <signal arrived while stepping over
9592 breakpoint>: Don't restart threads here.
9593 (stop_waiting): Don't clear step-over info here.
9594
9595 2017-03-08 Pedro Alves <palves@redhat.com>
9596
9597 PR 21206
9598 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
9599 goes to argument 2, not 1.
9600
9601 2017-03-08 Pedro Alves <palves@redhat.com>
9602
9603 PR cli/21218
9604 * top.c (gdb_readline_wrapper): Avoid passing NULL to
9605 display_gdb_prompt.
9606 (command_line_input): Add comment.
9607
9608 2017-03-08 Pedro Alves <palves@redhat.com>
9609
9610 PR tui/21216
9611 * tui/tui-file.c (tui_file::write): New.
9612 * tui/tui-file.h (tui_file): Override "write".
9613 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
9614 factored out from ...
9615 (tui_puts): ... here.
9616 (tui_putc): Use them.
9617 (tui_write): New function.
9618 * tui/tui-io.h (tui_write): Declare.
9619
9620 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
9621
9622 * Makefile.in (SFILES): Replace "environ.c" with
9623 "common/environ.c".
9624 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
9625 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
9626 to...
9627 * common/environ.c: ... here.
9628 * environ.h: Moved to...
9629 * common/environ.h: ... here.
9630
9631 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
9632
9633 * gdbarch.sh (pstring_ptr): New static function.
9634 (gdbarch_disassembler_options): Use it.
9635 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
9636 not valid_disassembler_option->name.
9637 * gdbarch.c: Regenerate.
9638
9639 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
9640
9641 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
9642
9643 2017-03-07 Pedro Alves <palves@redhat.com>
9644
9645 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
9646
9647 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
9648
9649 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
9650 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
9651 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
9652 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
9653
9654 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
9655
9656 * xtensa-linux-nat.c (fetch_gregs): Remove const.
9657
9658 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
9659
9660 * remote.c (remote_add_target_side_commands): Use range-based
9661 for loop.
9662
9663 2017-03-03 Yao Qi <yao.qi@linaro.org>
9664
9665 PR gdb/21165
9666 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
9667 value is lazy.
9668 * valprint.c (common_val_print): Likewise.
9669
9670 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
9671
9672 * NEWS: Mention new set/show disassembler-options commands.
9673 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
9674 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
9675 (prospective_options): New static variable.
9676 (gdb_disassembler::gdb_disassembler): Initialize
9677 m_di.disassembler_options.
9678 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
9679 (get_disassembler_options): New function.
9680 (set_disassembler_options): Likewise.
9681 (set_disassembler_options_sfunc): Likewise.
9682 (show_disassembler_options_sfunc): Likewise.
9683 (disassembler_options_completer): Likewise.
9684 (_initialize_disasm): Likewise.
9685 * disasm.h (get_disassembler_options): New prototype.
9686 (set_disassembler_options): Likewise.
9687 * gdbarch.sh (gdbarch_disassembler_options): New variable.
9688 (gdbarch_verify_disassembler_options): Likewise.
9689 * gdbarch.c: Regenerate.
9690 * gdbarch.h: Likewise.
9691 * arm-tdep.c (num_disassembly_options): Delete.
9692 (set_disassembly_style): Likewise.
9693 (arm_disassembler_options): New static variable.
9694 (set_disassembly_style_sfunc): Convert short style name into long
9695 option name. Call set_disassembler_options.
9696 (show_disassembly_style_sfunc): New function.
9697 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
9698 set_gdbarch_verify_disassembler_options.
9699 (_initialize_arm_tdep): Delete regnames variable and update callers.
9700 (arm_disassembler_options): Initialize.
9701 (disasm_options): New variable.
9702 (num_disassembly_options): Rename from this...
9703 (num_disassembly_styles): ...to this. Compute by scanning through
9704 disasm_options.
9705 (valid_disassembly_styles): Initialize using disasm_options.
9706 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
9707 set_arm_regname_option.
9708 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
9709 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
9710 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
9711 set_gdbarch_verify_disassembler_options.
9712 * s390-tdep.c (s390_disassembler_options): New static variable.
9713 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
9714 set_gdbarch_verify_disassembler_options.
9715
9716 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
9717
9718 * remote.c (remote_add_target_side_condition): Remove "struct"
9719 keyword from range-based for loop.
9720
9721 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
9722
9723 * remote.c (remote_add_target_side_condition): Use range-based
9724 for loop. Update comment.
9725
9726 2017-02-27 Yao Qi <yao.qi@linaro.org>
9727
9728 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
9729
9730 2017-02-26 Alan Hayward <alan.hayward@arm.com>
9731
9732 * regcache.c (regcache_raw_update): New function.
9733 (regcache_raw_read): Move code to regcache_raw_update.
9734 * regcache.h (regcache_raw_update): New declaration.
9735 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
9736
9737 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9738
9739 * dwarf2read.c (create_debug_type_hash_table): Initialize
9740 header.signature and header.type_offset_in_tu.
9741
9742 2017-02-24 Pedro Alves <palves@redhat.com>
9743
9744 * symtab.c (make_file_symbol_completion_list_1): Use
9745 add_symtab_completions.
9746
9747 2017-02-24 Alan Hayward <alan.hayward@arm.com>
9748
9749 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
9750
9751 2017-02-24 Alan Hayward <alan.hayward@arm.com>
9752
9753 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
9754 I386_MAX_REGISTER_SIZE.
9755 (i386_pseudo_register_write): Likewise.
9756 (i386_process_record): Likewise.
9757 * i387-tdep.c (i387_supply_xsave): Likewise.
9758 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
9759 (store_register): Likewise.
9760
9761 2017-02-23 Pedro Alves <palves@redhat.com>
9762
9763 * ada-lang.c: Include "common/function-view.h".
9764 (ada_iterate_over_symbols): Adjust to use function_view as
9765 callback type.
9766 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
9767 (ada_make_symbol_completion_list): Use a lambda.
9768 (ada_exc_search_name_matches): Delete.
9769 (name_matches_regex): New.
9770 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
9771 * compile/compile-c-support.c: Include "common/function-view.h".
9772 (print_one_macro): Change prototype to accept a ui_file pointer.
9773 (write_macro_definitions): Use a lambda.
9774 * dwarf2read.c: Include "common/function-view.h".
9775 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9776 (dw2_expand_symtabs_matching): Adjust to use function_view as
9777 callback type.
9778 * language.h: Include "common/function-view.h".
9779 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
9780 function_view as callback type.
9781 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
9782 * linespec.c: Include "common/function-view.h".
9783 (collect_info::add_symbol): New method.
9784 (struct symbol_and_data_callback, iterate_inline_only, struct
9785 symbol_matcher_data, iterate_name_matcher): Delete.
9786 (iterate_over_all_matching_symtabs): Adjust to use function_view
9787 as callback type and lambdas.
9788 (iterate_over_file_blocks): Adjust to use function_view as
9789 callback type.
9790 (decode_compound_collector): Now a class with private fields.
9791 (decode_compound_collector::release_symbols): New method.
9792 (collect_one_symbol): Rename to...
9793 (decode_compound_collector::operator()): ... this and adjust.
9794 (lookup_prefix_sym): decode_compound_collector construction bits
9795 move to decode_compound_collector ctor. Pass the
9796 decode_compound_collector object directly as callback. Remove
9797 cleanups and use decode_compound_collector::release_symbols
9798 instead.
9799 (symtab_collector): Now a class with private fields.
9800 (symtab_collector::release_symtabs): New method.
9801 (add_symtabs_to_list): Rename to...
9802 (symtab_collector::operator()): ... this and adjust.
9803 (collect_symtabs_from_filename): symtab_collector construction
9804 bits move to symtab_collector ctor. Pass the symtab_collector
9805 object directly as callback. Remove cleanups and use
9806 symtab_collector::release_symtabs instead.
9807 (collect_symbols): Delete.
9808 (add_matching_symbols_to_info): Use lambdas.
9809 * macrocmd.c (print_macro_callback): Delete.
9810 (info_macro_command): Use a lambda.
9811 (info_macros_command): Pass print_macro_definition as callable
9812 directly.
9813 (print_one_macro): Remove 'ignore' parameter.
9814 (macro_list_command): Adjust.
9815 * macrotab.c (macro_for_each_data::fn): Now a function_view.
9816 (macro_for_each_data::user_data): Delete field.
9817 (foreach_macro): Adjust to call the function_view.
9818 (macro_for_each): Adjust to use function_view as callback type.
9819 (foreach_macro_in_scope): Adjust to call the function_view.
9820 (macro_for_each_in_scope): Adjust to use function_view as callback
9821 type.
9822 * macrotab.h: Include "common/function-view.h".
9823 (macro_callback_fn): Declare a prototype instead of a pointer.
9824 Remove "user_data" parameter.
9825 (macro_for_each, macro_for_each_in_scope): Adjust to use
9826 function_view as callback type.
9827 * psymtab.c (partial_map_expand_apply)
9828 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
9829 Adjust to use function_view as callback type and to return bool.
9830 (psym_expand_symtabs_matching): Adjust to use function_view as
9831 callback types.
9832 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
9833 to use function_view as callback type and to return bool.
9834 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
9835 callback types.
9836 * symfile.c (expand_symtabs_matching): Adjust to use function_view
9837 as callback types.
9838 * symfile.h: Include "common/function-view.h".
9839 (expand_symtabs_file_matcher_ftype)
9840 (expand_symtabs_symbol_matcher_ftype)
9841 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
9842 return bool.
9843 (quick_symbol_functions::map_symtabs_matching_filename)
9844 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
9845 function_view as callback type and return bool.
9846 (expand_symtabs_matching): Adjust to use function_view as callback
9847 type.
9848 (maintenance_expand_name_matcher)
9849 (maintenance_expand_file_matcher): Delete.
9850 (maintenance_expand_symtabs): Use lambdas.
9851 * symtab.c (iterate_over_some_symtabs): Adjust to use
9852 function_view as callback types and return bool.
9853 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
9854 of a cleanup.
9855 (lookup_symtab_callback): Delete.
9856 (lookup_symtab): Use a lambda.
9857 (iterate_over_symbols): Adjust to use function_view as callback
9858 type.
9859 (struct search_symbols_data, search_symbols_file_matches)
9860 (search_symbols_name_matches): Delete.
9861 (search_symbols): Use a pair of lambdas.
9862 (struct add_name_data, add_macro_name, symbol_completion_matcher)
9863 (symtab_expansion_callback): Delete.
9864 (default_make_symbol_completion_list_break_on_1): Use lambdas.
9865 * symtab.h: Include "common/function-view.h".
9866 (iterate_over_some_symtabs): Adjust to use function_view as
9867 callback type and return bool.
9868 (iterate_over_symtabs): Adjust to use function_view as callback
9869 type.
9870 (symbol_found_callback_ftype): Remove 'data' parameter and return
9871 bool.
9872 (iterate_over_symbols): Adjust to use function_view as callback
9873 type.
9874
9875 2017-02-23 Pedro Alves <palves@redhat.com>
9876
9877 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
9878 (%.o) <unittests/%.c>: New pattern.
9879 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
9880 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
9881 * common/function-view.h: New file.
9882 * unittests/function-view-selftests.c: New file.
9883 * configure: Regenerate.
9884
9885 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
9886
9887 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
9888 inferior_ptid.
9889 * go32-nat.c (go32_thread_alive): Likewise.
9890
9891 2017-02-23 Yao Qi <yao.qi@linaro.org>
9892
9893 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
9894 delete.
9895
9896 2017-02-23 Yao Qi <yao.qi@linaro.org>
9897
9898 * varobj.c (varobj_clear_saved_item): Use delete instead of
9899 xfree.
9900 (update_dynamic_varobj_children): Likewise.
9901
9902 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9903
9904 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
9905
9906 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
9907
9908 * common/enum-flags.h (enum_flags::enum_flags): Initialize
9909 m_enum_value to 0 in default constructor.
9910
9911 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9912
9913 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
9914 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
9915 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
9916 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
9917 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
9918 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
9919 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
9920 IS_STORE_CONDITIONAL_INSN.
9921
9922 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9923
9924 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
9925
9926 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9927
9928 * NEWS (Changes since GDB 7.12): Add DWARF-5.
9929
9930 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9931
9932 * dwarf2read.c (skip_one_die, read_attribute_value)
9933 (dwarf2_const_value_attr, dump_die_shallow)
9934 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
9935 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
9936
9937 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9938
9939 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
9940 (dwarf_parse_macro_header): Accept DWARF version 5.
9941 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
9942
9943 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9944
9945 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
9946 DW_AT_GNU_*.
9947 * common/common-exceptions.h (enum errors): Likewise.
9948 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
9949 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
9950 (dwarf_expr_context::execute_stack_op): Likewise.
9951 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
9952 Likewise.
9953 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
9954 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9955 (show_entry_values_debug, call_site_to_target_addr)
9956 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
9957 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
9958 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
9959 (value_of_dwarf_block_entry, indirect_pieced_value)
9960 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
9961 (disassemble_dwarf_expression): Likewise.
9962 * dwarf2read.c (process_die, inherit_abstract_dies)
9963 (read_call_site_scope): Likewise.
9964 * gdbtypes.h (struct func_type, struct call_site_parameter)
9965 (struct call_site): Likewise.
9966 * stack.c (read_frame_arg): Likewise.
9967 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
9968
9969 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9970
9971 * defs.h (read_unsigned_leb128): New declaration.
9972 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
9973 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
9974 (dwarf2_find_location_expression): Call also
9975 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
9976 * dwarf2loc.h (dwarf2_version): New declaration.
9977 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
9978 rnglists.
9979 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
9980 .debug_rnglists.
9981 (struct dwop_section_names): Add loclists_dwo.
9982 (dwop_section_names): Add .debug_loclists.dwo.
9983 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
9984 (struct dwarf2_per_cu_data): Add dwarf_version.
9985 (struct dwo_sections): Add loclists.
9986 (struct attr_abbrev): Add implicit_const.
9987 (read_indirect_line_string): New declaration.
9988 (read_unsigned_leb128): Delete declaration.
9989 (rcuh_kind): New definition.
9990 (read_and_check_comp_unit_head): Change parameter
9991 is_debug_types_section to section_kind.
9992 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
9993 (read_comp_unit_head): Change parameter abfd to section, add parameter
9994 section_kind. Handle DWARF-5.
9995 (error_check_comp_unit_head): Accept also DWARF version 5.
9996 (read_and_check_comp_unit_head): Change parameter
9997 is_debug_types_section to section_kind.
9998 (read_and_check_type_unit_head): Delete function.
9999 (read_abbrev_offset): Handle DWARF-5.
10000 (create_debug_type_hash_table): Add parameter section_kind. Process
10001 only DW_UT_type. Use signature and type_offset_in_tu from struct
10002 comp_unit_head.
10003 (create_debug_types_hash_table): Update create_debug_type_hash_table
10004 caller.
10005 (create_all_type_units): Call create_debug_type_hash_table.
10006 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
10007 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
10008 caller.
10009 (skip_one_die): Handle DW_FORM_implicit_const.
10010 (dwarf2_rnglists_process): New function.
10011 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
10012 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
10013 (read_attribute_value): Handle DW_FORM_implicit_const,
10014 DW_FORM_line_strp.
10015 (read_attribute): Handle DW_FORM_implicit_const.
10016 (read_indirect_string_at_offset_from): New function from
10017 read_indirect_string_at_offset.
10018 (read_indirect_string_at_offset): Call
10019 read_indirect_string_at_offset_from.
10020 (read_indirect_line_string_at_offset): New function.
10021 (read_indirect_string): New function comment.
10022 (read_indirect_line_string): New function.
10023 (read_unsigned_leb128): Make it global.
10024 (dwarf2_string_attr): Handle DWARF-5.
10025 (add_include_dir_stub, read_formatted_entries): New functions.
10026 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
10027 Handle DWARF-5.
10028 (per_cu_header_read_in): Update read_comp_unit_head caller.
10029 (dwarf2_version): New function.
10030 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
10031 rnglists.
10032 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
10033 fields.
10034
10035 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10036
10037 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
10038
10039 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10040
10041 * dwarf2read.c (dwarf2_ranges_process): New function from
10042 dwarf2_ranges_read.
10043 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
10044 dwarf2_ranges_process.
10045
10046 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10047
10048 * dwarf2read.c (create_debug_type_hash_table): New function from
10049 create_debug_types_hash_table.
10050 (create_debug_types_hash_table): Call create_debug_type_hash_table.
10051 (create_all_type_units, open_and_init_dwo_file): Update
10052 create_debug_types_hash_table callers.
10053
10054 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10055
10056 PR gdb/16188
10057 * fork-child.c (trace_start_error): Fix thinko. va_end should
10058 refer to 'ap', not 'args'.
10059
10060 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10061 Pedro Alves <palves@redhat.com>
10062
10063 PR gdb/16188
10064 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
10065 calls succeeded.
10066 * fork-child.c (trace_start_error): New function.
10067 (trace_start_error_with_name): Likewise.
10068 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
10069 * inf-ptrace.c (inf_ptrace_me): Likewise.
10070 * inferior.h (trace_start_error): New prototype.
10071 (trace_start_error_with_name): Likewise.
10072
10073 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
10074
10075 PR gdb/21164
10076 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
10077 NULL before using it.
10078 * symmisc.c (maintenance_print_symbols): Likewise.
10079 (maintenance_print_msymbols): Likewise.
10080
10081 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10082
10083 * NEWS: Add record Python bindings entry.
10084
10085 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10086
10087 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
10088 py-record-full.o.
10089 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
10090 * python/py-record-btrace.c, python/py-record-btrace.h,
10091 python/py-record-full.c, python/py-record-full.h: New file.
10092 * python/py-record.c: Add include for py-record-btrace.h and
10093 py-record-full.h.
10094 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
10095 recpy_instruction_history, recpy_function_call_history, recpy_begin,
10096 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
10097 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
10098 New definition.
10099 (gdbpy_initialize_btrace): New export.
10100 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
10101
10102 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10103
10104 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
10105 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
10106 * python/py-record.c: New file.
10107 * python/python-internal.h (gdbpy_start_recording,
10108 gdbpy_current_recording, gdpy_stop_recording,
10109 gdbpy_initialize_record): New export.
10110 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
10111 (python_GdbMethods): Add gdbpy_start_recording,
10112 gdbpy_current_recording and gdbpy_stop_recording.
10113
10114 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10115
10116 * record-btrace.c (record_btrace_record_method): New function.
10117 (init_record_btrace_ops): Initialize to_record_method.
10118 * record-full.c (record_full_record_method): New function.
10119 (init_record_full_ops, init_record_full_core_ops): Add
10120 record_full_record_method.
10121 * record.h (enum record_method): New enum.
10122 * target-debug.h (target_debug_print_enum_record_method: New define.
10123 * target-delegates.c: Regenerate.
10124 * target.c (target_record_method): New function.
10125 * target.h: Include record.h.
10126 (struct target_ops) <to_record_method>: New field.
10127 (target_record_method): New export.
10128
10129 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10130
10131 * record.h (record_start, record_stop): New export.
10132 * record.c (record_start, record_stop): New function.
10133
10134 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10135
10136 * btrace.c (btrace_fetch): Copy function call segments pointer
10137 into a vector.
10138 (btrace_clear): Clear the vector.
10139 (btrace_find_insn_by_number): Use binary search to find the correct
10140 function call segment.
10141 * btrace.h (brace_fun_p): New typedef.
10142 (struct btrace_thread_info) <functions>: New field.
10143
10144 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10145
10146 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
10147 * btrace.c (btrace_decode_error): ... here. New function.
10148 * btrace.h (btrace_decode_error): New export.
10149
10150 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10151
10152 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
10153 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
10154 btrace_find_insn_by_number): Remove special case for gaps.
10155 * btrace.h (btrace_insn_get_error): New export.
10156 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
10157 * record-btrace.c (btrace_insn_history): Print number for gaps.
10158 (record_btrace_info, record_btrace_goto): Handle gaps.
10159
10160 2017-02-14 Tom Tromey <tom@tromey.com>
10161
10162 PR python/13598:
10163 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
10164 event.
10165 * python/py-evts.c (gdbpy_initialize_py_events): Add
10166 before_prompt registry.
10167 * python/py-events.h (events_object) <before_prompt>: New field.
10168
10169 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
10170
10171 * btrace.c (ftrace_new_switch): Preserve up link and flags.
10172
10173 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
10174
10175 * symfile (_initialize_symfile): Add usage text to the load command's
10176 help text.
10177
10178 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
10179
10180 * utils.c (defaulted_query): Don't query on secondary UIs.
10181
10182 2017-02-10 Tom Tromey <tom@tromey.com>
10183
10184 * rust-lang.c (rust_get_disr_info): Remove unused variable.
10185
10186 2017-02-10 Tom Tromey <tom@tromey.com>
10187
10188 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
10189 "cleanup" local.
10190 * python/py-type.c (typy_legacy_template_argument): Remove
10191 unnecessary "cleanup" local.
10192
10193 2017-02-10 Tom Tromey <tom@tromey.com>
10194
10195 * python/python.c (do_start_initialization): New function, from
10196 _initialize_python.
10197 (_initialize_python): Call do_start_initialization.
10198 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
10199 goto.
10200
10201 2017-02-10 Tom Tromey <tom@tromey.com>
10202
10203 * python/py-prettyprint.c (pretty_print_one_value): Use
10204 gdbpy_ref.
10205
10206 2017-02-10 Tom Tromey <tom@tromey.com>
10207
10208 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
10209 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
10210 gdbpy_ref.
10211 * python/py-type.c (field_new): Use gdbpy_ref.
10212 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
10213 gdbpy_ref.
10214 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
10215 (py_free_pspace): Likewise.
10216 (pspace_to_pspace_object): Likewise.
10217 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
10218 (py_free_objfile): Likewise.
10219 (objfile_to_objfile_object): Likewise.
10220 * python/py-inferior.c (delete_thread_object): Use
10221 gdbpy_ref.
10222 (infpy_read_memory): Likewise.
10223 (py_free_inferior): Likewise.
10224 * python/py-evtregistry.c (create_eventregistry_object): Use
10225 gdbpy_ref.
10226 * python/py-event.c (create_event_object): Use gdbpy_ref.
10227
10228 2017-02-10 Tom Tromey <tom@tromey.com>
10229
10230 * python/py-ref.h (gdbpy_ref_policy): Now a template.
10231 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
10232 used.
10233 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
10234 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
10235 python/py-exitedevent.c, python/py-finishbreakpoint.c,
10236 python/py-framefilter.c, python/py-function.c,
10237 python/py-inferior.c, python/py-infevents.c,
10238 python/py-linetable.c, python/py-newobjfileevent.c,
10239 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
10240 python/py-signalevent.c, python/py-stopevent.c,
10241 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
10242 python/py-unwind.c, python/py-utils.c, python/py-value.c,
10243 python/py-varobj.c, python/py-xmethods.c, python/python.c,
10244 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
10245
10246 2017-02-10 Tom Tromey <tom@tromey.com>
10247
10248 * ui-out.h (ui_out_emit_type): New class.
10249 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
10250 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
10251 and ui_out_emit_tuple.
10252 (enumerate_locals): Likewise.
10253 (py_mi_print_variables, py_print_locals, py_print_args): Use
10254 ui_out_emit_list.
10255 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
10256 ui_out_emit_list.
10257 * common/gdb_optional.h: New file.
10258
10259 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
10260
10261 * MAINTAINERS (Write After Approval): Update my e-mail address.
10262
10263 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
10264
10265 PR gdb/21122
10266 * breakpoint.c (_initialize_breakpoint): Update the help description
10267 of the 'commands' command to indicate that it takes a list argument.
10268
10269 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
10270
10271 * interps.c (current_interp_set_logging): Remove "return".
10272
10273 2017-02-09 Gary Benson <gbenson@redhat.com>
10274
10275 * symtab.c (add_symtab_completions): Prevent NULL pointer
10276 dereference.
10277
10278 2017-02-08 Pedro Alves <palves@redhat.com>
10279
10280 * interps.c (interp::interp): Remove reference to quiet_p.
10281 (interp_set): Make static. Remove dead "Switching to" output
10282 code.
10283 (interp_quiet_p, interp_set_quiet): Delete.
10284 (interpreter_exec_cmd): Don't set the interpreter quiet.
10285 * interps.h (interp_quiet_p): Make static.
10286 (class interp) <quiet_p>: Remove field
10287
10288 2017-02-08 Jerome Guitton <guitton@adacore.com>
10289
10290 * cli/cli-decode.c (find_command_name_length): Make it extern.
10291 * cli/cli-decode.h (find_command_name_length): Declare.
10292 * cli/cli-script.c (command_name_equals, line_first_arg):
10293 New functions.
10294 (process_next_line): Use cli-decode to parse command names.
10295 (build_command_line): Make args a constant pointer.
10296
10297 2017-02-08 Jerome Guitton <guitton@adacore.com>
10298
10299 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
10300 Remove case-insensitive search.
10301
10302 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
10303
10304 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
10305 at the end of the line. Avoids an ARI warning.
10306
10307 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
10308
10309 * NEWS: Mention support for record/replay of Intel 64 rdrand and
10310 rdseed instructions.
10311 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
10312
10313 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
10314
10315 PR tdep/20936
10316 Provide and use sparc32 and sparc64 target description XML files.
10317 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
10318 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
10319 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
10320 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
10321 * features/sparc/sparc32-solaris.xml: New file.
10322 * features/sparc/sparc64-solaris.xml: New file.
10323 * features/sparc/sparc32-solaris.c: Generated.
10324 * features/sparc/sparc64-solaris.c: Generated.
10325 * sparc-tdep.h: Account for differences in target descriptions.
10326 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
10327 (sparc32_register_type): Use target provided registers.
10328 (validate_tdesc_registers): New function.
10329 (sparc32_gdbarch_init): Use tdesc_has_registers.
10330 Set pseudoregister functions.
10331 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
10332 (sparc64_register_type): Use target provided registers.
10333 (sparc64_init_abi): Set pseudoregister functions.
10334
10335 2017-02-03 Tom Tromey <tom@tromey.com>
10336
10337 PR rust/21097:
10338 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
10339 with a single member.
10340
10341 2017-02-03 Pedro Alves <palves@redhat.com>
10342
10343 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
10344 (cli_interp_base::~cli_interp_base): New.
10345 (cli_interp): New struct.
10346 (as_cli_interp): Cast the interp itself to cli_interp.
10347 (cli_interpreter_pre_command_loop): Rename to ...
10348 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
10349 parameter.
10350 (cli_interpreter_init): Rename to ...
10351 (cli_interp::init): ... this. Remove 'self' parameter. Use
10352 boolean. Make extern.
10353 (cli_interpreter_resume): Rename to ...
10354 (cli_interp::resume): ... this. Remove 'data' parameter. Make
10355 extern.
10356 (cli_interpreter_suspend): Rename to ...
10357 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
10358 extern.
10359 (cli_interpreter_exec): Rename to ...
10360 (cli_interp::exec): ... this. Remove 'data' parameter. Make
10361 extern.
10362 (cli_interpreter_supports_command_editing): Rename to ...
10363 (cli_interp_base::supports_command_editing): ... this. Remove
10364 'interp' parameter. Make extern.
10365 (cli_ui_out): Rename to ...
10366 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
10367 Make extern.
10368 (cli_set_logging): Rename to ...
10369 (cli_interp_base::set_logging): ... this. Remove 'interp'
10370 parameter. Make extern.
10371 (cli_interp_procs): Delete.
10372 (cli_interp_factory): Adjust to use "new".
10373 * cli/cli-interp.h: Include "interps.h".
10374 (struct cli_interp_base): New struct.
10375 * interps.c (struct interp): Delete. Fields moved to interps.h.
10376 (interp_new): Delete.
10377 (interp::interp, interp::~interp): New.
10378 (interp_set): Use bool, and return void. Assume the interpreter
10379 has suspend, init and resume methods, and that the all return
10380 void.
10381 (set_top_level_interpreter): interp_set returns void.
10382 (interp_ui_out): Adapt.
10383 (current_interp_set_logging): Adapt.
10384 (interp_data): Delete.
10385 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
10386 (interp_exec): Adapt.
10387 (top_level_interpreter_data): Delete.
10388 * interps.h (interp_init_ftype, interp_resume_ftype)
10389 (interp_suspend_ftype, interp_exec_ftype)
10390 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
10391 (class interp): New.
10392 (interp_new): Delete.
10393 (interp_set): Now returns void. Use bool.
10394 (interp_data, top_level_interpreter_data): Delete.
10395 * mi/mi-common.h: Include interps.h.
10396 (class mi_interp): Inherit from interp. Define a ctor. Declare
10397 init, resume, suspect, exec, interp_ui_out, set_logging and
10398 pre_command_loop methods.
10399 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
10400 (mi_interpreter_init): Rename to ...
10401 (mi_interp::init): ... this. Remove the 'interp' parameter, use
10402 bool, return void and make extern. Adjust.
10403 (mi_interpreter_resume): ... Rename to ...
10404 (mi_interp::resume): ... this. Remove the 'data' parameter,
10405 return void and make extern. Adjust.
10406 (mi_interpreter_suspend): ... Rename to ...
10407 (mi_interp::suspend): ... this. Remove the 'data' parameter,
10408 return void and make extern. Adjust.
10409 (mi_interpreter_exec): ... Rename to ...
10410 (mi_interp::exec): ... this. Remove the 'data' parameter and make
10411 extern. Adjust.
10412 (mi_interpreter_pre_command_loop): ... Rename to ...
10413 (mi_interp::pre_command_loop): ... this. Remove the 'self'
10414 parameter and make extern.
10415 (mi_on_normal_stop_1): Adjust.
10416 (mi_ui_out): Rename to ...
10417 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
10418 parameter and make extern. Adjust.
10419 (mi_set_logging): Rename to ...
10420 (mi_interp::set_logging): ... this. Remove the 'interp'
10421 parameter and make extern. Adjust.
10422 (mi_interp_procs): Delete.
10423 (mi_interp_factory): Adjust to use 'new'.
10424 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
10425 (mi_print_exception, mi_execute_command, mi_load_progress):
10426 Adjust.
10427 * tui/tui-interp.c (tui_interp): New class.
10428 (as_tui_interp): Return a tui_interp pointer.
10429 (tui_on_normal_stop, tui_on_signal_received)
10430 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
10431 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
10432 to use interp::interp_ui_out.
10433 (tui_init): Rename to ...
10434 (tui_interp::init): ... this. Remove the 'self' parameter, use
10435 bool, return void and make extern. Adjust.
10436 (tui_resume): Rename to ...
10437 (tui_interp::resume): ... this. Remove the 'data' parameter,
10438 return void and make extern. Adjust.
10439 (tui_suspend): Rename to ...
10440 (tui_interp::suspend): ... this. Remove the 'data' parameter,
10441 return void and make extern. Adjust.
10442 (tui_ui_out): Rename to ...
10443 (tui_interp::interp_ui_out): ... this. Remove the 'self'
10444 parameter, and make extern. Adjust.
10445 (tui_exec): Rename to ...
10446 (tui_interp::exec): ... this. Remove the 'data' parameter and
10447 make extern.
10448 (tui_interp_procs): Delete.
10449 (tui_interp_factory): Use "new".
10450
10451 2017-02-02 Tom Tromey <tom@tromey.com>
10452
10453 * rust-exp.y (ends_raw_string, space_then_number)
10454 (rust_identifier_start_p): Return bool.
10455 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
10456 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
10457 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
10458 (rust_chartype_p): Return bool.
10459 (val_print_struct, rust_print_struct_def, rust_print_type):
10460 Update.
10461 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
10462 Return bool.
10463
10464 2017-02-02 Tom Tromey <tom@tromey.com>
10465
10466 * rust-lang.c: Reindent.
10467
10468 2017-02-02 Tom Tromey <tom@tromey.com>
10469
10470 * rust-lang.h (rust_crate_for_block): Update.
10471 * rust-lang.c (rust_crate_for_block): Return std::string.
10472 (rust_get_disr_info): Use std:;string, not
10473 gdb::unique_xmalloc_ptr.
10474 * rust-exp.y (crate_name): Update.
10475
10476 2017-02-02 Pedro Alves <palves@redhat.com>
10477
10478 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
10479 field out of gdb_disassembler_test and make it static.
10480
10481 2017-02-02 Pedro Alves <palves@redhat.com>
10482
10483 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
10484 mi1_interp and mi_interp fields.
10485
10486 2017-02-02 Pedro Alves <palves@redhat.com>
10487
10488 * cli/cli-interp.c (struct saved_output_files, saved_output):
10489 Moved from cli/cli-logging.c.
10490 (cli_set_logging): New function.
10491 (cli_interp_procs): Install cli_set_logging.
10492 * cli/cli-interp.h (make_logging_output, cli_set_logging):
10493 Declare.
10494 * cli/cli-logging.c (struct saved_output_files, saved_output):
10495 Moved to cli/cli-interp.c.
10496 (pop_output_files): Don't save outputs here.
10497 (make_logging_output): New function.
10498 (handle_redirections): Don't build tee nor save previous outputs
10499 here.
10500 * interps.c (current_interp_set_logging): Change prototype.
10501 Assume there's always a set_logging_proc method installed.
10502 * interps.h (interp_set_logging_ftype): Change prototype.
10503 (current_interp_set_logging): Change prototype and adjust comment.
10504 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
10505 use make_logging_output.
10506 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
10507 2017-02-02 Pedro Alves <palves@redhat.com>
10508
10509 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
10510 from ...
10511 (set_logging_overwrite): ... here.
10512 (logging_no_redirect_file): Delete.
10513 (set_logging_redirect): Don't handle redirection on the fly.
10514 Instead warn that "logging off" / "logging on" is necessary.
10515 (pop_output_files): Delete references to logging_no_redirect_file.
10516 (show_logging_command): Always speak in terms of what will happen
10517 once logging is reenabled.
10518
10519 2017-02-02 Pedro Alves <palves@redhat.com>
10520
10521 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
10522
10523 2017-02-02 Pedro Alves <palves@redhat.com>
10524
10525 * disasm.c (gdb_pretty_print_insn): Rename to ...
10526 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
10527 Remove gdbarch parameter. Adapt to clear the object's buffers
10528 instead of allocating new buffers, and to print using the object's
10529 gdb_disassembler instead of calling gdb_print_insn.
10530 (dump_insns): Use gdb_pretty_print_disassembler.
10531 * disasm.h (gdb_pretty_print_insn): Delete declaration.
10532 (gdb_pretty_print_disassembler): New class.
10533 * record-btrace.c (btrace_insn_history): Use
10534 gdb_pretty_print_disassembler.
10535
10536 2017-02-02 Pedro Alves <palves@redhat.com>
10537
10538 * ada-lang.c (type_as_string): Use string_file.
10539 * ada-valprint.c (ada_print_floating): Use string_file.
10540 * ada-varobj.c (ada_varobj_scalar_image)
10541 (ada_varobj_get_value_image): Use string_file.
10542 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
10543 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
10544 * breakpoint.c (update_inserted_breakpoint_locations)
10545 (insert_breakpoint_locations, reattach_breakpoints)
10546 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
10547 (print_it_watchpoint): Use string_file.
10548 (save_breakpoints): Use stdio_file.
10549 * c-exp.y (oper): Use string_file.
10550 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
10551 tee_file.
10552 (pop_output_files): Use delete.
10553 (handle_redirections): Use stdio_file and tee_file.
10554 * cli/cli-setshow.c (do_show_command): Use string_file.
10555 * compile/compile-c-support.c (c_compute_program): Use
10556 string_file.
10557 * compile/compile-c-symbols.c (generate_vla_size): Take a
10558 'string_file &' instead of a 'ui_file *'.
10559 (generate_c_for_for_one_variable): Take a 'string_file &' instead
10560 of a 'ui_file *'. Use string_file.
10561 (generate_c_for_variable_locations): Take a 'string_file &'
10562 instead of a 'ui_file *'.
10563 * compile/compile-internal.h (generate_c_for_for_one_variable):
10564 Take a 'string_file &' instead of a 'ui_file *'.
10565 * compile/compile-loc2c.c (push, pushf, unary, binary)
10566 (print_label, pushf_register_address, pushf_register)
10567 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
10568 'ui_file *'. Adjust.
10569 * compile/compile.c (compile_to_object): Use string_file.
10570 * compile/compile.h (compile_dwarf_expr_to_c)
10571 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
10572 'ui_file *'.
10573 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
10574 (replace_typedefs_qualified_name): Use string_file and
10575 obstack_copy0.
10576 * disasm.c (gdb_pretty_print_insn): Use string_file.
10577 (gdb_disassembly): Adjust reference the null_stream global.
10578 (do_ui_file_delete): Delete.
10579 (gdb_insn_length): Use null_stream.
10580 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
10581 * dwarf2loc.c (dwarf2_compile_property_to_c)
10582 (locexpr_generate_c_location, loclist_generate_c_location): Take a
10583 'string_file &' instead of a 'ui_file *'.
10584 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
10585 * dwarf2read.c (do_ui_file_peek_last): Delete.
10586 (dwarf2_compute_name): Use string_file.
10587 * event-top.c (gdb_setup_readline): Use stdio_file.
10588 * gdbarch.sh (verify_gdbarch): Use string_file.
10589 * gdbtypes.c (safe_parse_type): Use null_stream.
10590 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
10591 string_file.
10592 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
10593 'string_file *' instead of a 'ui_file *'.
10594 (gdbscm_arch_disassemble): Use string_file.
10595 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
10596 * guile/scm-ports.c (class ioscm_file_port): Now a class that
10597 inherits from ui_file.
10598 (ioscm_file_port_delete, ioscm_file_port_rewind)
10599 (ioscm_file_port_put): Delete.
10600 (ioscm_file_port_write): Rename to ...
10601 (ioscm_file_port::write): ... this. Remove file_port_magic
10602 checks.
10603 (ioscm_file_port_new): Delete.
10604 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
10605 ui_file_up.
10606 * guile/scm-type.c (tyscm_type_name): Use string_file.
10607 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
10608 Use string_file.
10609 * infcmd.c (print_return_value_1): Use string_file.
10610 * infrun.c (print_target_wait_results): Use string_file.
10611 * language.c (add_language): Use string_file.
10612 * location.c (explicit_to_string_internal): Use string_file.
10613 * main.c (captured_main_1): Use null_file.
10614 * maint.c (maintenance_print_architecture): Use stdio_file.
10615 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
10616 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
10617 event_channel>: Change type to mi_console_file pointer.
10618 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
10619 (mi_console_file_delete): Delete.
10620 (struct mi_console_file): Delete.
10621 (mi_console_file_magic): Delete.
10622 (mi_console_file_new): Delete.
10623 (mi_console_file::mi_console_file): New.
10624 (mi_console_file_delete): Delete.
10625 (mi_console_file_fputs): Delete.
10626 (mi_console_file::write): New.
10627 (mi_console_raw_packet): Delete.
10628 (mi_console_file::flush): New.
10629 (mi_console_file_flush): Delete.
10630 (mi_console_set_raw): Rename to ...
10631 (mi_console_file::set_raw): ... this.
10632 * mi/mi-console.h (class mi_console_file): New class.
10633 (mi_console_file_new, mi_console_set_raw): Delete.
10634 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
10635 (mi_set_logging): Use delete and tee_file. Adjust.
10636 * mi/mi-main.c (output_register): Use string_file.
10637 (mi_cmd_data_evaluate_expression): Use string_file.
10638 (mi_cmd_data_read_memory): Use string_file.
10639 (mi_cmd_execute, print_variable_or_computed): Use string_file.
10640 * mi/mi-out.c (mi_ui_out::main_stream): New.
10641 (mi_ui_out::rewind): Use main_stream and
10642 string_file.
10643 (mi_ui_out::put): Use main_stream and string_file.
10644 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
10645 Allocate a 'string_file' instead.
10646 (mi_out_new): Don't allocate a mem_fileopen stream here.
10647 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
10648 (mi_ui_out::main_stream): Declare method.
10649 * printcmd.c (eval_command): Use string_file.
10650 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
10651 * python/py-arch.c (archpy_disassemble): Use string_file.
10652 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
10653 * python/py-frame.c (frapy_str): Use string_file.
10654 * python/py-framefilter.c (py_print_type, py_print_single_arg):
10655 Use string_file.
10656 * python/py-type.c (typy_str): Use string_file.
10657 * python/py-unwind.c (unwind_infopy_str): Use string_file.
10658 * python/py-value.c (valpy_str): Use string_file.
10659 * record-btrace.c (btrace_insn_history): Use string_file.
10660 * regcache.c (regcache_print): Use stdio_file.
10661 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
10662 * remote.c (escape_buffer): Use string_file.
10663 * rust-lang.c (rust_get_disr_info): Use string_file.
10664 * serial.c (serial_open_ops_1): Use stdio_file.
10665 (do_serial_close): Use delete.
10666 * stack.c (print_frame_arg): Use string_file.
10667 (print_frame_args): Remove local mem_fileopen stream, not used.
10668 (print_frame): Use string_file.
10669 * symmisc.c (maintenance_print_symbols): Use stdio_file.
10670 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
10671 Take a 'string_file *' instead of a 'ui_file *'.
10672 * top.c (new_ui): Use stdio_file and stderr_file.
10673 (free_ui): Use delete.
10674 (execute_command_to_string): Use string_file.
10675 (quit_confirm): Use string_file.
10676 * tracepoint.c (collection_list::append_exp): Use string_file.
10677 * tui/tui-disasm.c (tui_disassemble): Use string_file.
10678 * tui/tui-file.c: Don't include "ui-file.h".
10679 (enum streamtype, struct tui_stream): Delete.
10680 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
10681 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
10682 (tui_file::tui_file): New method.
10683 (tui_file_fputs): Delete.
10684 (tui_file_get_strbuf): Delete.
10685 (tui_file::puts): New method.
10686 (tui_file_adjust_strbuf): Delete.
10687 (tui_file_flush): Delete.
10688 (tui_file::flush): New method.
10689 * tui/tui-file.h: Tweak intro comment.
10690 Include ui-file.h.
10691 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
10692 (tui_file_adjust_strbuf): Delete declarations.
10693 (class tui_file): New class.
10694 * tui/tui-io.c (tui_initialize_io): Use tui_file.
10695 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
10696 (tui_register_format): Use string_stream.
10697 * tui/tui-stack.c (tui_make_status_line): Use string_file.
10698 (tui_get_function_from_frame): Use string_file.
10699 * typeprint.c (type_to_string): Use string_file.
10700 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
10701 (null_stream): New global.
10702 (ui_file_delete): Delete.
10703 (ui_file::ui_file): New.
10704 (null_file_isatty): Delete.
10705 (ui_file::~ui_file): New.
10706 (null_file_rewind): Delete.
10707 (ui_file::printf): New.
10708 (null_file_put): Delete.
10709 (null_file_flush): Delete.
10710 (ui_file::putstr): New.
10711 (null_file_write): Delete.
10712 (ui_file::putstrn): New.
10713 (null_file_read): Delete.
10714 (ui_file::putc): New.
10715 (null_file_fputs): Delete.
10716 (null_file_write_async_safe): Delete.
10717 (ui_file::vprintf): New.
10718 (null_file_delete): Delete.
10719 (null_file::write): New.
10720 (null_file_fseek): Delete.
10721 (null_file::puts): New.
10722 (ui_file_data): Delete.
10723 (null_file::write_async_safe): New.
10724 (gdb_flush, ui_file_isatty): Adjust.
10725 (ui_file_put, ui_file_rewind): Delete.
10726 (ui_file_write): Adjust.
10727 (ui_file_write_for_put): Delete.
10728 (ui_file_write_async_safe, ui_file_read): Adjust.
10729 (ui_file_fseek): Delete.
10730 (fputs_unfiltered): Adjust.
10731 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
10732 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
10733 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
10734 (set_ui_file_data): Delete.
10735 (string_file::~string_file, string_file::write)
10736 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
10737 (do_ui_file_as_string, ui_file_as_string): Delete.
10738 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
10739 (struct mem_file): Delete.
10740 (mem_file_new): Delete.
10741 (stdio_file::stdio_file): New.
10742 (mem_file_delete): Delete.
10743 (stdio_file::stdio_file): New.
10744 (mem_fileopen): Delete.
10745 (stdio_file::~stdio_file): New.
10746 (mem_file_rewind): Delete.
10747 (stdio_file::set_stream): New.
10748 (mem_file_put): Delete.
10749 (stdio_file::open): New.
10750 (mem_file_write): Delete.
10751 (stdio_file_magic, struct stdio_file): Delete.
10752 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
10753 (stdio_file::flush): New.
10754 (stdio_file_read): Rename to ...
10755 (stdio_file::read): ... this. Adjust.
10756 (stdio_file_write): Rename to ...
10757 (stdio_file::write): ... this. Adjust.
10758 (stdio_file_write_async_safe): Rename to ...
10759 (stdio_file::write_async_safe) ... this. Adjust.
10760 (stdio_file_fputs): Rename to ...
10761 (stdio_file::puts) ... this. Adjust.
10762 (stdio_file_isatty): Delete.
10763 (stdio_file_fseek): Delete.
10764 (stdio_file::isatty): New.
10765 (stderr_file_write): Rename to ...
10766 (stderr_file::write) ... this. Adjust.
10767 (stderr_file_fputs): Rename to ...
10768 (stderr_file::puts) ... this. Adjust.
10769 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
10770 (stderr_file::stderr_file): New.
10771 (tee_file_magic): Delete.
10772 (struct tee_file): Delete.
10773 (tee_file::tee_file): New.
10774 (tee_file_new): Delete.
10775 (tee_file::~tee_file): New.
10776 (tee_file_delete): Delete.
10777 (tee_file_flush): Rename to ...
10778 (tee_file::flush): ... this. Adjust.
10779 (tee_file_write): Rename to ...
10780 (tee_file::write): ... this. Adjust.
10781 (tee_file::write_async_safe): New.
10782 (tee_file_fputs): Rename to ...
10783 (tee_file::puts): ... this. Adjust.
10784 (tee_file_isatty): Rename to ...
10785 (tee_file::isatty): ... this. Adjust.
10786 * ui-file.h (struct obstack, struct ui_file): Don't
10787 forward-declare.
10788 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
10789 (ui_file_write_ftype)
10790 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
10791 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
10792 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
10793 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
10794 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
10795 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
10796 (set_ui_file_fseek): Delete.
10797 (ui_file_data, ui_file_delete, ui_file_rewind)
10798 (struct ui_file): New.
10799 (ui_file_up): New.
10800 (class null_file): New.
10801 (null_stream): Declare.
10802 (ui_file_write_for_put, ui_file_put): Delete.
10803 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
10804 Delete.
10805 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
10806 (gdb_fopen, tee_file_new): Delete.
10807 (struct string_file): New.
10808 (struct stdio_file): New.
10809 (stdio_file_up): New.
10810 (struct stderr_file): New.
10811 (class tee_file): New.
10812 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
10813 of a 'ui_file *'. Adjust.
10814 * ui-out.h (class ui_out) <field_stream>: Likewise.
10815 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
10816 (null_stream): Delete.
10817 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
10818 Adjust.
10819 * utils.h (struct ui_file): Delete forward declaration..
10820 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
10821 (error_stream): Take a 'string_file &' instead of a
10822 'ui_file *'.
10823 * varobj.c (varobj_value_get_print_value): Use string_file.
10824 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
10825 * gdbarch.c: Regenerate.
10826
10827 2017-02-02 Pedro Alves <palves@redhat.com>
10828
10829 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
10830 (gdb_pretty_print_insn): ... this. Now a free function. Add back
10831 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
10832 Adjust to call gdb_print_insn instead of
10833 gdb_disassembler::print_insn.
10834 (dump_insns, do_mixed_source_and_assembly_deprecated)
10835 (do_mixed_source_and_assembly, do_assembly_only): Add back a
10836 'gdbarch' parameter. Remove gdb_disassembler parameter.
10837 (gdb_disassembly): Don't allocate a gdb_disassembler here.
10838 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
10839 declaration.
10840 (gdb_pretty_print_insn): Re-add declaration.
10841 * record-btrace.c (btrace_insn_history): Don't allocate a
10842 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
10843
10844 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
10845
10846 * disasm.h (gdb_disassembly): Remove file_string parameter.
10847 * disasm.c (gdb_disassembly): Likewise.
10848 * cli/cli-cmds.c (print_disassembly): Adapt.
10849 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
10850 * stack.c (do_gdb_disassembly): Likewise.
10851
10852 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
10853
10854 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
10855 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
10856 targets. And if the implicit value is longer than needed, extract
10857 the first bytes instead of the "least significant" ones.
10858
10859 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
10860
10861 * btrace.c (btrace_enable): Do not call btrace_add_pc for
10862 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
10863 (btrace_fetch): Assert can_access_registers_ptid.
10864 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
10865 validate_registers_access.
10866
10867 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
10868
10869 * gdbthread.h (can_access_registers_ptid): New.
10870 * thread.c (can_access_registers_ptid): New.
10871
10872 2017-02-01 Pedro Alves <palves@redhat.com>
10873
10874 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
10875
10876 2017-01-31 Pedro Alves <palves@redhat.com>
10877
10878 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
10879 Fix typos.
10880
10881 2017-01-31 Pedro Alves <palves@redhat.com>
10882
10883 * stack.c (print_frame_args): Remove local mem_fileopen stream,
10884 not used.
10885
10886 2017-01-31 Pedro Alves <palves@redhat.com>
10887
10888 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
10889
10890 2017-01-31 Pedro Alves <palves@redhat.com>
10891
10892 * common/scoped_restore.h
10893 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
10894 change the value's parameter type to T2.
10895 (make_scoped_restore): Likewise.
10896
10897 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10898 Richard Henderson <rth@redhat.com>
10899
10900 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
10901 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
10902 GS_BASE for older kernels.
10903 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
10904 GS_BASE for older kernels.
10905 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
10906 and GS_BASE to the offset table.
10907 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
10908 system register group.
10909 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
10910 for older kernels.
10911 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
10912 amd64 ABI.
10913 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
10914 AMD64_GSBASE_REGNUM.
10915 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
10916 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
10917 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
10918 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
10919 i386/64bit-segments.xml in those rules.
10920 * features/i386/64bit-segments.xml: New file.
10921 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
10922 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
10923 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
10924 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
10925 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
10926 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
10927 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
10928 * features/i386/amd64-avx-linux.c: Regenerated.
10929 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
10930 * features/i386/amd64-avx-mpx.c: Regenerated.
10931 * features/i386/amd64-avx512-linux.c: Regenerated.
10932 * features/i386/amd64-linux.c: Regenerated.
10933 * features/i386/amd64-mpx-linux.c: Regenerated.
10934 * features/i386/i386-avx-mpx-linux.c: Regenerated.
10935 * features/i386/i386-avx-mpx.c: Regenerated.
10936 * features/i386/x32-avx-linux.c: Regenerated.
10937 * features/i386/x32-avx512-linux.c: Regenerated.
10938 * regformats/i386/amd64-avx-linux.dat: Regenerated.
10939 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
10940 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
10941 * regformats/i386/amd64-linux.dat: Regenerated.
10942 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
10943 * regformats/i386/x32-avx-linux.dat: Regenerated.
10944 * regformats/i386/x32-avx512-linux.dat: Regenerated.
10945 * regformats/i386/x32-linux.dat: Regenerated.
10946
10947 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10948
10949 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
10950 Set to AMD64_NUM_REGS.
10951
10952 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10953
10954 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
10955 that checks validity of a register number.
10956
10957 2017-01-27 Kees Cook <keescook@google.com>
10958
10959 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
10960 fetch_fpregs if target has fpa registers.
10961 (arm_linux_store_inferior_registers): Call store_fpregs if target
10962 has fpa registers.
10963
10964 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
10965
10966 * cris-tdep.c (cris_gdbarch_init): Remove check for
10967 info.byte_order and force it to BFD_ENDIAN_LITTLE.
10968
10969 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
10970
10971 * corelow.c (get_core_register_section): Check for regset
10972 existence before checking for REGSET_VARIABLE_SIZE.
10973
10974 2017-01-26 Yao Qi <yao.qi@linaro.org>
10975 Pedro Alves <palves@redhat.com>
10976
10977 PR gdb/20939
10978 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
10979 call memory_error, save memaddr instead.
10980 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
10981 negative, cal memory_error.
10982 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
10983
10984 2017-01-26 Yao Qi <yao.qi@linaro.org>
10985
10986 * disasm-selftests.c (memory_error_test): New function.
10987 (_initialize_disasm_selftests): Register memory_error_test.
10988
10989 2017-01-26 Yao Qi <yao.qi@linaro.org>
10990
10991 * Makefile.in (SFILES): Add disasm-selftests.c and
10992 selftest-arch.c.
10993 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
10994 * disasm-selftests.c: New file.
10995 * selftest-arch.c: New file.
10996 * selftest-arch.h: New file.
10997
10998 2017-01-26 Yao Qi <yao.qi@linaro.org>
10999
11000 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
11001 to bfd_arch_mep. Don't return 0 if section is not
11002 found. Call print_insn_mep.
11003
11004 2017-01-26 Pedro Alves <palves@redhat.com>
11005 Yao Qi <yao.qi@linaro.org>
11006
11007 * arm-tdep.c: Include "disasm.h".
11008 (gdb_print_insn_arm): Update code to get gdbarch.
11009 * disasm.c (dis_asm_read_memory): Change it to
11010 gdb_disassembler::dis_asm_read_memory.
11011 (dis_asm_memory_error): Likewise.
11012 (dis_asm_print_address): Likewise.
11013 (gdb_pretty_print_insn): Change it to
11014 gdb_disassembler::pretty_print_insn.
11015 (dump_insns): Add one argument gdb_disassemlber. All
11016 callers updated.
11017 (do_mixed_source_and_assembly_deprecated): Likewise.
11018 (do_mixed_source_and_assembly): Likewise.
11019 (do_assembly_only): Likewise.
11020 (gdb_disassembler::gdb_disassembler): New.
11021 (gdb_disassembler::print_insn): New.
11022 * disasm.h (class gdb_disassembler): New.
11023 (gdb_pretty_print_insn): Remove declaration.
11024 (gdb_disassemble_info): Likewise.
11025 * guile/scm-disasm.c (class gdbscm_disassembler): New.
11026 (gdbscm_disasm_read_memory_worker): Update.
11027 (gdbscm_disasm_read_memory): Update.
11028 (gdbscm_disasm_memory_error): Remove.
11029 (gdbscm_disasm_print_address): Remove.
11030 (gdbscm_disassembler::gdbscm_disassembler): New.
11031 (gdbscm_print_insn_from_port): Update.
11032 * mips-tdep.c: Include disasm.h.
11033 (gdb_print_insn_mips): Update code to get gdbarch.
11034 * record-btrace.c (btrace_insn_history): Update.
11035 * spu-tdep.c: Include disasm.h.
11036 (struct spu_dis_asm_data): Remove.
11037 (struct spu_dis_asm_info): New.
11038 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
11039 SPU id.
11040 (gdb_print_insn_spu): Cast disassemble_info to
11041 spu_dis_asm_info.
11042
11043 2017-01-26 Yao Qi <yao.qi@linaro.org>
11044
11045 * disasm.c (do_ui_file_delete): Delete.
11046 (gdb_insn_length): Move code creating stream to ...
11047 * utils.c (null_stream): ... here. New function.
11048 * utils.h (null_stream): Declare.
11049
11050 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
11051
11052 * python/py-inferior.c (find_thread_object): Return directly
11053 from the loop. Remove "found" variable.
11054
11055 2017-01-21 Joel Brobecker <brobecker@adacore.com>
11056
11057 GDB 7.12.1 released.
11058
11059 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
11060
11061 * python/py-function.c (fnpy_call): Reorder declarations to have
11062 the gdbpy_enter object declared first.
11063 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
11064
11065 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
11066
11067 PR python/21068
11068 * python/python-internal.h (PyMem_RawMalloc): Define for
11069 Python < 3.4.
11070 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
11071 PyMem_RawMalloc instead of PyMem_Malloc.
11072
11073 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
11074 Luis Machado <lgustavo@codesourcery.com>
11075
11076 * NEWS (New commands): Mention flash-erase.
11077 (New MI commands): Mention target-flash-erase.
11078 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
11079 command.
11080 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
11081 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
11082 * target.c (flash_erase_command): New function.
11083 (initialize_targets): Add new flash-erase command.
11084 * target.h (flash_erase_command): New declaration.
11085
11086 2017-01-20 Joel Brobecker <brobecker@adacore.com>
11087
11088 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
11089 HAVE_SYS_PROCFS_H is defined.
11090
11091 2017-01-18 Alan Hayward <alan.hayward@arm.com>
11092
11093 * remote.c (struct cached_reg): Change data into a pointer.
11094 * (stop_reply_dtr): Free data pointers before deleting vector.
11095 (process_stop_reply): Likewise.
11096 (remote_parse_stop_reply): Allocate space for data
11097
11098 2017-01-18 Alan Hayward <alan.hayward@arm.com>
11099
11100 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
11101 MAX_REGISTER_SIZE.
11102 (amd64_pseudo_register_read_value): Likewise.
11103 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
11104 (store_register_using_P): Likewise.
11105 * regcache.c (regcache_xfer_part): Likewise.
11106
11107 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
11108
11109 Split real and pseudo registers.
11110 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
11111 (sparc32_pseudo_regnum): New enum.
11112 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
11113 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
11114 (SPARC32_CP0_REGISTERS): New macro.
11115 (sparc32_pseudo_register_name): New function.
11116 (sparc32_register_name): Use sparc32_pseudo_register_name.
11117 (sparc32_pseudo_register_type): New function.
11118 (sparc32_register_type): Use sparc32_pseudo_register_type.
11119 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
11120 pseudo register numbers.
11121 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
11122 (SPARC64_CP0_REGISTERS): New macro.
11123 (sparc64_pseudo_register_name): New function.
11124 (sparc64_register_name): Use sparc64_pseudo_register_name.
11125 (sparc64_pseudo_register_type): New function.
11126 (sparc64_register_type): Use sparc64_pseudo_register_type.
11127 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
11128 pseudo register numbers.
11129 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
11130 sparc64_store_arguments): Handle pseudo register numbers.
11131
11132 2017-01-13 Yao Qi <yao.qi@linaro.org>
11133
11134 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
11135 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
11136 output.
11137 (getpkt_or_notif_sane_1): Likewise.
11138
11139 2017-01-13 Yao Qi <yao.qi@linaro.org>
11140
11141 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
11142 of CC. Pass "-x c++-header" instead of "-x c".
11143
11144 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11145
11146 * remote.c (remote_can_async_p): Update comment.
11147
11148 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11149
11150 * linux-nat.c (linux_nat_can_async_p): Update comment.
11151
11152 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11153
11154 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
11155
11156 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
11157
11158 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
11159
11160 2017-01-10 Tom Tromey <tom@tromey.com>
11161
11162 * python/py-type.c (typy_legacy_template_argument): Update.
11163 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
11164 ~demangle_parse_info): Declare new members.
11165 (cp_demangled_name_to_comp): Return unique_ptr.
11166 (cp_demangled_name_parse_free)
11167 (make_cleanup_cp_demangled_name_parse_free)
11168 (cp_new_demangle_parse_info): Remove.
11169 * cp-support.c (do_demangled_name_parse_free_cleanup)
11170 (make_cleanup_cp_demangled_name_parse_free): Remove.
11171 (inspect_type, cp_canonicalize_string_full)
11172 (cp_canonicalize_string): Update.
11173 (mangled_name_to_comp): Change return type.
11174 (cp_class_name_from_physname, method_name_from_physname)
11175 (cp_func_name, cp_remove_params): Update.
11176 * cp-name-parser.y (demangle_parse_info): New constructor, from
11177 cp_new_demangle_parse_info.
11178 (~demangle_parse_info): New destructor, from
11179 cp_demangled_name_parse_free.
11180 (cp_merge_demangle_parse_infos): Update.
11181 (cp_demangled_name_to_comp): Change return type.
11182
11183 2017-01-10 Tom Tromey <tom@tromey.com>
11184
11185 * top.c (prevent_dont_repeat): Change return type.
11186 * python/python.c (execute_gdb_command): Use std::string.
11187 Update.
11188 * guile/guile.c (gdbscm_execute_gdb_command): Update.
11189 * command.h (prevent_dont_repeat): Change return type.
11190 * breakpoint.c (bpstat_do_actions_1): Update.
11191
11192 2017-01-10 Tom Tromey <tom@tromey.com>
11193
11194 * value.h (scoped_value_mark::~scoped_value_mark): Call
11195 free_to_mark.
11196 (scoped_value_mark::free_to_mark): New method.
11197 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
11198 scoped_value_mark.
11199
11200 2017-01-10 Tom Tromey <tom@tromey.com>
11201
11202 * python/py-value.c (valpy_dereference, valpy_referenced_value)
11203 (valpy_reference_value, valpy_const_value, valpy_get_address)
11204 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11205 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
11206 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
11207 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
11208 scoped_value_mark.
11209 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
11210 * value.h (scoped_value_mark): New class.
11211
11212 2017-01-10 Tom Tromey <tom@tromey.com>
11213
11214 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
11215 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
11216 * psymtab.c (discard_psymtabs_upto): Remove.
11217 (make_cleanup_discard_psymtabs): Remove.
11218 (struct psymtab_state): Remove.
11219
11220 2017-01-10 Tom Tromey <tom@tromey.com>
11221
11222 * record-full.c (record_full_save_cleanups): Remove.
11223 (record_full_save): Use gdb::unlinker.
11224 * gcore.c (do_bfd_delete_cleanup): Remove.
11225 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
11226 cleanups.
11227 * dwarf2read.c (unlink_if_set): Remove.
11228 (write_psymtabs_to_index): Use gdb::unlinker.
11229 * common/gdb_unlinker.h: New file.
11230
11231 2017-01-10 Tom Tromey <tom@tromey.com>
11232
11233 * windows-tdep.c (windows_xfer_shared_library): Update.
11234 * windows-nat.c (windows_make_so): Update.
11235 * utils.h (make_cleanup_bfd_unref): Remove.
11236 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
11237 * symfile.h (symfile_bfd_open)
11238 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
11239 * symfile.c (read_symbols, symbol_file_add)
11240 (separate_debug_file_exists): Update.
11241 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
11242 (generic_load, reread_symbols): Update.
11243 * symfile-mem.c (symbol_file_add_from_memory): Update.
11244 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
11245 (spu_symbol_file_add_from_memory): Update.
11246 * solist.h (struct target_so_ops) <bfd_open>: Return
11247 gdb_bfd_ref_ptr.
11248 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
11249 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
11250 gdb_bfd_ref_ptr.
11251 (solib_map_sections, reload_shared_libraries_1): Update.
11252 * solib-svr4.c (enable_break): Update.
11253 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
11254 * solib-frv.c (enable_break2): Update.
11255 * solib-dsbt.c (enable_break): Update.
11256 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
11257 gdb_bfd_ref_ptr.
11258 (darwin_solib_get_all_image_info_addr_at_init): Update.
11259 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
11260 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
11261 * record-full.c (record_full_save): Update.
11262 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
11263 * procfs.c (insert_dbx_link_bpt_in_file): Update.
11264 * minidebug.c (find_separate_debug_file_in_section): Return
11265 gdb_bfd_ref_ptr.
11266 * machoread.c (macho_add_oso_symfile): Change abfd to
11267 gdb_bfd_ref_ptr.
11268 (macho_symfile_read_all_oso): Update.
11269 (macho_check_dsym): Return gdb_bfd_ref_ptr.
11270 (macho_symfile_read): Update.
11271 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
11272 (jit_bfd_try_read_symtab): Update.
11273 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11274 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11275 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11276 gdb_bfd_ref_ptr.
11277 (gdb_bfd_ref_policy): New struct.
11278 (gdb_bfd_ref_ptr): New typedef.
11279 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11280 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11281 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11282 gdb_bfd_ref_ptr.
11283 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11284 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11285 (gcore_command): Update.
11286 * exec.c (exec_file_attach): Update.
11287 * elfread.c (elf_symfile_read): Update.
11288 * dwarf2read.c (dwarf2_get_dwz_file): Update.
11289 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
11290 (open_and_init_dwo_file): Update.
11291 (open_dwp_file): Return gdb_bfd_ref_ptr.
11292 (open_and_init_dwp_file): Update.
11293 * corelow.c (core_open): Update.
11294 * compile/compile-object-load.c (compile_object_load): Update.
11295 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
11296 * coffread.c (coff_symfile_read): Update.
11297 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
11298 gdb_bfd_ref_ptr. Rename.
11299 (dump_bfd_file, restore_command): Update.
11300 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
11301 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
11302 (find_separate_debug_file_by_buildid): Update.
11303
11304 2017-01-10 Tom Tromey <tom@tromey.com>
11305
11306 * common/gdb_ref_ptr.h: New file.
11307 * python/py-ref.h (struct gdbpy_ref_policy): New.
11308 (gdbpy_ref): Now a typedef.
11309
11310 2017-01-10 Tom Tromey <tom@tromey.com>
11311
11312 * utils.h (make_cleanup_htab_delete): Don't declare.
11313 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
11314 Remove.
11315 * linespec.c (decode_compound_collector): Add constructor,
11316 destructor.
11317 (lookup_prefix_sym): Remove cleanup.
11318 (symtab_collector): Add constructor, destructor.
11319 (collect_symtabs_from_filename): Remove cleanup.
11320 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
11321 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
11322 Use htab_up.
11323 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
11324 * dwarf2read.c (dw2_expand_symtabs_matching)
11325 (dw2_map_symbol_filenames, dwarf_decode_macros)
11326 (write_psymtabs_to_index): Use htab_up.
11327 * dwarf2loc.c (func_verify_no_selftailcall)
11328 (call_site_find_chain_1, func_verify_no_selftailcall)
11329 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
11330 std::vector, gdb::unique_xmalloc_ptr.
11331 (call_sitep): Remove typedef.
11332 (dwarf2_locexpr_baton_eval): Remove unused variable.
11333
11334 2017-01-10 Tom Tromey <tom@tromey.com>
11335
11336 * python/python-internal.h (make_cleanup_py_decref)
11337 (make_cleanup_py_xdecref): Don't declare.
11338 * python/py-utils.c (py_decref, make_cleanup_py_decref)
11339 (py_xdecref, make_cleanup_py_xdecref): Remove.
11340
11341 2017-01-10 Tom Tromey <tom@tromey.com>
11342
11343 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
11344 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
11345
11346 2017-01-10 Tom Tromey <tom@tromey.com>
11347
11348 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
11349
11350 2017-01-10 Tom Tromey <tom@tromey.com>
11351
11352 * python/py-utils.c (unicode_to_encoded_string)
11353 (python_string_to_target_string)
11354 (python_string_to_target_python_string)
11355 (python_string_to_host_string, gdbpy_obj_to_string)
11356 (get_addr_from_python): Use gdbpy_ref.
11357
11358 2017-01-10 Tom Tromey <tom@tromey.com>
11359
11360 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
11361 gdbpy_ref.
11362
11363 2017-01-10 Tom Tromey <tom@tromey.com>
11364
11365 * python/python.c (eval_python_command, gdbpy_decode_line)
11366 (gdbpy_run_events, gdbpy_start_type_printers)
11367 (gdbpy_apply_type_printers): Use gdbpy_ref.
11368
11369 2017-01-10 Tom Tromey <tom@tromey.com>
11370
11371 * python/py-param.c (get_doc_string, compute_enum_values): Use
11372 gdbpy_ref.
11373
11374 2017-01-10 Tom Tromey <tom@tromey.com>
11375
11376 * python/py-inferior.c (find_thread_object, build_inferior_list):
11377 Use gdbpy_ref.
11378
11379 2017-01-10 Tom Tromey <tom@tromey.com>
11380
11381 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
11382
11383 2017-01-10 Tom Tromey <tom@tromey.com>
11384
11385 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
11386 gdbpy_ref.
11387
11388 2017-01-10 Tom Tromey <tom@tromey.com>
11389
11390 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
11391 extra incref.
11392 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
11393 Use gdbpy_ref.
11394
11395 2017-01-10 Tom Tromey <tom@tromey.com>
11396
11397 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
11398 gdbpy_ref.
11399
11400 2017-01-10 Tom Tromey <tom@tromey.com>
11401
11402 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
11403 decref results of PyArg_ParseTupleAndKeywords.
11404
11405 2017-01-10 Tom Tromey <tom@tromey.com>
11406
11407 * python/python.c (python_run_simple_file): Use
11408 unique_xmalloc_ptr, gdbpy_ref.
11409
11410 2017-01-10 Tom Tromey <tom@tromey.com>
11411
11412 * python/py-prettyprint.c (print_stack_unless_memory_error)
11413 (print_string_repr, print_children): Use gdbpy_ref.
11414 (dummy_python_frame): New class.
11415 (dummy_python_frame::dummy_python_frame): Rename from
11416 push_dummy_python_frame.
11417 (py_restore_tstate): Remove.
11418
11419 2017-01-10 Tom Tromey <tom@tromey.com>
11420
11421 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
11422
11423 2017-01-10 Tom Tromey <tom@tromey.com>
11424
11425 * python/python.c (ensure_python_env, restore_python_env):
11426 Remove.
11427 * python/python-internal.h (ensure_python_env): Don't declare.
11428 * varobj.h (varobj_ensure_python_env): Don't declare.
11429 * varobj.c (varobj_ensure_python_env): Remove.
11430
11431 2017-01-10 Tom Tromey <tom@tromey.com>
11432
11433 * varobj.c (varobj_value_get_print_value): Use
11434 gdbpy_enter_varobj.
11435
11436 2017-01-10 Tom Tromey <tom@tromey.com>
11437
11438 * python/py-prettyprint.c (print_string_repr, print_children):
11439 Update.
11440 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
11441 of "encoding".
11442 * varobj.c (varobj_value_get_print_value): Update.
11443 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
11444
11445 2017-01-10 Tom Tromey <tom@tromey.com>
11446
11447 * varobj.c (varobj_get_display_hint)
11448 (dynamic_varobj_has_child_method, install_new_value_visualizer)
11449 (varobj_set_visualizer, free_variable): Use
11450 gdbpy_enter_varobj.
11451
11452 2017-01-10 Tom Tromey <tom@tromey.com>
11453
11454 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
11455 (do_finish_initialization): New function. Use gdbpy_ref.
11456 (gdbpy_finish_initialization): Use gdbpy_enter. Call
11457 do_finish_initialization.
11458
11459 2017-01-10 Tom Tromey <tom@tromey.com>
11460
11461 * python/py-param.c (get_set_value, get_show_value): Use
11462 gdbpy_enter, gdbpy_ref.
11463
11464 2017-01-10 Tom Tromey <tom@tromey.com>
11465
11466 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
11467
11468 2017-01-10 Tom Tromey <tom@tromey.com>
11469
11470 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
11471
11472 2017-01-10 Tom Tromey <tom@tromey.com>
11473
11474 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
11475 Use gdbpy_enter_varobj.
11476
11477 2017-01-10 Tom Tromey <tom@tromey.com>
11478
11479 * varobj.c (gdbpy_enter_varobj): New constructor.
11480 * python/python-internal.h (gdbpy_enter_varobj): New class.
11481 * python/py-varobj.c (py_varobj_get_iterator): Use
11482 gdbpy_enter_varobj.
11483
11484 2017-01-10 Tom Tromey <tom@tromey.com>
11485
11486 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
11487 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
11488 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
11489 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
11490 unique_xmalloc_ptr.
11491 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
11492
11493 2017-01-10 Tom Tromey <tom@tromey.com>
11494
11495 * python/py-xmethods.c (invoke_match_method): Use
11496 gdbpy_ref.
11497
11498 2017-01-10 Tom Tromey <tom@tromey.com>
11499
11500 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
11501 gdbpy_enter, gdbpy_ref.
11502
11503 2017-01-10 Tom Tromey <tom@tromey.com>
11504
11505 * python/python.c (python_interactive_command): Use gdbpy_enter.
11506
11507 2017-01-10 Tom Tromey <tom@tromey.com>
11508
11509 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
11510 gdbpy_ref.
11511
11512 2017-01-10 Tom Tromey <tom@tromey.com>
11513
11514 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
11515 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
11516
11517 2017-01-10 Tom Tromey <tom@tromey.com>
11518
11519 * utils.h (htab_deleter): New struct.
11520 (htab_up): New typedef.
11521 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
11522 gdbpy_enter, gdbpy_ref, htab_up.
11523
11524 2017-01-10 Tom Tromey <tom@tromey.com>
11525
11526 * python/py-unwind.c (pending_frame_invalidate): Remove.
11527 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
11528
11529 2017-01-10 Tom Tromey <tom@tromey.com>
11530
11531 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
11532 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
11533
11534 2017-01-10 Tom Tromey <tom@tromey.com>
11535
11536 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
11537
11538 2017-01-10 Tom Tromey <tom@tromey.com>
11539
11540 * python/python.c (gdbpy_eval_from_control_command)
11541 (gdbpy_source_script, gdbpy_run_events)
11542 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
11543 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
11544 gdbpy_enter.
11545
11546 2017-01-10 Tom Tromey <tom@tromey.com>
11547
11548 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
11549
11550 2017-01-10 Tom Tromey <tom@tromey.com>
11551
11552 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
11553
11554 2017-01-10 Tom Tromey <tom@tromey.com>
11555
11556 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
11557 (python_on_inferior_call_pre, python_on_inferior_call_post)
11558 (python_on_memory_change, python_on_register_change)
11559 (python_inferior_exit, python_new_objfile, add_thread_object)
11560 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
11561
11562 2017-01-10 Tom Tromey <tom@tromey.com>
11563
11564 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
11565 (bpfinishpy_handle_exit): Use gdbpy_enter.
11566
11567 2017-01-10 Tom Tromey <tom@tromey.com>
11568
11569 * python/py-cmd.c (cmdpy_destroyer)
11570 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
11571 gdbpy_enter.
11572
11573 2017-01-10 Tom Tromey <tom@tromey.com>
11574
11575 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
11576 gdbpy_enter.
11577 (gdbpy_breakpoint_has_cond): Likewise.
11578
11579 2017-01-10 Tom Tromey <tom@tromey.com>
11580
11581 * python/python.c (gdbpy_enter): New constructor.
11582 (~gdbpy_enter): New destructor.
11583 (restore_python_env, ensure_python_env): Rewrite.
11584 * python/python-internal.h (gdbpy_enter): New class.
11585
11586 2017-01-10 Tom Tromey <tom@tromey.com>
11587
11588 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
11589
11590 2017-01-10 Tom Tromey <tom@tromey.com>
11591
11592 * python/py-value.c (value_has_field, get_field_flag)
11593 (get_field_type, valpy_getitem, convert_value_from_python): Use
11594 gdbpy_ref.
11595
11596 2017-01-10 Tom Tromey <tom@tromey.com>
11597
11598 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
11599 gdbpy_ref.
11600
11601 2017-01-10 Tom Tromey <tom@tromey.com>
11602
11603 * python/py-prettyprint.c (search_pp_list)
11604 (find_pretty_printer_from_objfiles)
11605 (find_pretty_printer_from_progspace)
11606 (find_pretty_printer_from_gdb, find_pretty_printer)
11607 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
11608 gdbpy_ref.
11609
11610 2017-01-10 Tom Tromey <tom@tromey.com>
11611
11612 * python/py-param.c (call_doc_function): Use gdbpy_ref.
11613
11614 2017-01-10 Tom Tromey <tom@tromey.com>
11615
11616 * python/py-linetable.c (build_line_table_tuple_from_pcs)
11617 (ltpy_get_all_source_lines): Use gdbpy_ref.
11618
11619 2017-01-10 Tom Tromey <tom@tromey.com>
11620
11621 * python/py-framefilter.c (extract_sym, extract_value)
11622 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
11623 gdbpy_ref.
11624
11625 2017-01-10 Tom Tromey <tom@tromey.com>
11626
11627 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
11628
11629 2017-01-10 Tom Tromey <tom@tromey.com>
11630
11631 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
11632
11633 2017-01-10 Tom Tromey <tom@tromey.com>
11634
11635 * python/py-function.c (convert_values_to_python, fnpy_init): Use
11636 gdbpy_ref.
11637
11638 2017-01-10 Tom Tromey <tom@tromey.com>
11639
11640 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
11641
11642 2017-01-10 Tom Tromey <tom@tromey.com>
11643
11644 * python/py-type.c (convert_field, make_fielditem, typy_fields)
11645 (typy_range): Use gdbpy_ref.
11646
11647 2017-01-10 Tom Tromey <tom@tromey.com>
11648
11649 * python/py-threadevent.c (create_thread_event_object): Use
11650 gdbpy_ref.
11651 * python/py-stopevent.c (create_stop_event_object): Simplify.
11652 (emit_stop_event): Use gdbpy_ref.
11653 * python/py-signalevent.c (create_signal_event_object): Use
11654 gdbpy_ref.
11655 * python/py-newobjfileevent.c (create_new_objfile_event_object)
11656 (emit_new_objfile_event, create_clear_objfiles_event_object)
11657 (emit_clear_objfiles_event): Use gdbpy_ref.
11658 * python/py-infevents.c (create_inferior_call_event_object)
11659 (create_register_changed_event_object)
11660 (create_memory_changed_event_object, emit_inferior_call_event)
11661 (emit_memory_changed_event, emit_register_changed_event): Use
11662 gdbpy_ref.
11663 * python/py-exitedevent.c (create_exited_event_object)
11664 (emit_exited_event): Use gdbpy_ref.
11665 * python/py-event.h (evpy_emit_event): Remove
11666 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
11667 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
11668 * python/py-continueevent.c (emit_continue_event): Use
11669 gdbpy_ref.
11670 * python/py-breakpoint.c (gdbpy_breakpoint_created)
11671 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
11672 gdbpy_ref.
11673 * python/py-bpevent.c (create_breakpoint_event_object): Use
11674 gdbpy_ref.
11675
11676 2017-01-10 Tom Tromey <tom@tromey.com>
11677
11678 * python/py-ref.h: New file.
11679
11680 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
11681
11682 * cli-out.c (cli_ui_out::do_redirect): Change return type to
11683 void.
11684 * cli-out.h (cli_ui_out::do_redirect): Likewise.
11685 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
11686 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
11687 * ui-out.c (ui_out::redirect): Likewise.
11688 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
11689 * cli/cli-logging.c (set_logging_redirect): Update call site of
11690 ui_out::redirect.
11691 (handle_redirections): Likewise.
11692 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
11693 * top.c (execute_command_to_string): Likewise.
11694 * utils.c (do_ui_out_redirect_pop): Likewise.
11695
11696 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
11697
11698 * stack.c (_initialize_stack): Update "frame" command help message.
11699
11700 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
11701
11702 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
11703
11704 2017-01-06 Yao Qi <yao.qi@linaro.org>
11705
11706 * x86-linux-nat.h: Include gdb_proc_service.h.
11707
11708 2017-01-06 Yao Qi <yao.qi@linaro.org>
11709
11710 * ser-base.h: Include serial.h.
11711
11712 2017-01-06 Yao Qi <yao.qi@linaro.org>
11713
11714 * ppc-linux-tdep.h: Include ppc-tdep.h.
11715
11716 2017-01-06 Yao Qi <yao.qi@linaro.org>
11717
11718 * nat/amd64-linux-siginfo.h: Include signal.h.
11719
11720 2017-01-06 Yao Qi <yao.qi@linaro.org>
11721
11722 * nat/aarch64-linux-hw-point.h: Include break-common.h.
11723
11724 2017-01-06 Yao Qi <yao.qi@linaro.org>
11725
11726 * mi/mi-parse.h: Include mi-cmds.h.
11727
11728 2017-01-06 Yao Qi <yao.qi@linaro.org>
11729
11730 * inf-loop.c: Don't include "target.h".
11731 * inf-loop.h: Include it here.
11732
11733 2017-01-06 Yao Qi <yao.qi@linaro.org>
11734
11735 * dfp.h: Include "dboulest.h" and "expression.h".
11736
11737 2017-01-06 Yao Qi <yao.qi@linaro.org>
11738
11739 * ax-gdb.h: Include "ax.h".
11740
11741 2017-01-06 Yao Qi <yao.qi@linaro.org>
11742
11743 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
11744 with nat/gdb_ptrace.h.
11745
11746 2017-01-05 Yao Qi <yao.qi@linaro.org>
11747
11748 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
11749 new line.
11750 (mips64_fbsd_sigframe_init): Likewise.
11751
11752 2017-01-04 John Baldwin <jhb@FreeBSD.org>
11753
11754 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
11755 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
11756
11757 2017-01-04 John Baldwin <jhb@FreeBSD.org>
11758
11759 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
11760 * NEWS: Mention new FreeBSD/mips native configuration.
11761 * config/mips/fbsd.mh: New file.
11762 * configure.host: Add mips*-*-freebsd*.
11763 * mips-fbsd-nat.c: New file.
11764
11765 2017-01-04 John Baldwin <jhb@FreeBSD.org>
11766
11767 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
11768 (ALLDEPFILES): Add mips-fbsd-tdep.c.
11769 * NEWS: Mention new FreeBSD/mips target.
11770 * configure.tgt: Add mips*-*-freebsd*.
11771 * mips-fbsd-tdep.c: New file.
11772 * mips-fbsd-tdep.h: New file.
11773
11774 2017-01-04 Yao Qi <yao.qi@linaro.org>
11775
11776 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
11777 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
11778
11779 2017-01-01 Joel Brobecker <brobecker@adacore.com>
11780
11781 Update copyright year range in all GDB files.
11782
11783 2017-01-01 Joel Brobecker <brobecker@adacore.com>
11784
11785 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
11786
11787 For older changes see ChangeLog-2016.
11788 \f
11789 Local Variables:
11790 mode: change-log
11791 left-margin: 8
11792 fill-column: 74
11793 version-control: never
11794 coding: utf-8
11795 End:
This page took 0.261477 seconds and 5 git commands to generate.