Constify maintenance_info_program_spaces_command
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2017-09-27 Tom Tromey <tom@tromey.com>
2
3 * progspace.c (maintenance_info_program_spaces_command):
4 Constify.
5
6 2017-09-27 Tom Tromey <tom@tromey.com>
7
8 * compile/compile.c (check_raw_argument, compile_file_command)
9 (compile_code_command, compile_print_command): Constify.
10
11 2017-09-27 Tom Tromey <tom@tromey.com>
12
13 * reggroups.c (maintenance_print_reggroups): Constify.
14
15 2017-09-27 Tom Tromey <tom@tromey.com>
16
17 * dwarf2read.c (save_gdb_index_command): Constify.
18
19 2017-09-27 Tom Tromey <tom@tromey.com>
20
21 * stap-probe.c (info_probes_stap_command): Constify.
22
23 2017-09-27 Tom Tromey <tom@tromey.com>
24
25 * fork-child.c (unset_exec_wrapper_command): Constify.
26
27 2017-09-27 Tom Tromey <tom@tromey.com>
28
29 * btrace.c (get_uint, get_context_size, no_chunk)
30 (maint_btrace_packet_history_cmd)
31 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
32 (maint_info_btrace_cmd): Constify.
33
34 2017-09-27 Tom Tromey <tom@tromey.com>
35
36 * reverse.c (delete_bookmark_command): Constify.
37
38 2017-09-27 Tom Tromey <tom@tromey.com>
39
40 * remote.c (set_memory_packet_size)
41 (set_memory_write_packet_size, show_memory_write_packet_size)
42 (set_memory_read_packet_size, show_memory_read_packet_size)
43 (compare_sections_command, packet_command, remote_put_command)
44 (remote_get_command, remote_delete_command): Constify.
45
46 2017-09-27 Tom Tromey <tom@tromey.com>
47
48 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
49 (set_mipsfpu_double_command, set_mipsfpu_none_command)
50 (set_mipsfpu_auto_command): Constify.
51
52 2017-09-27 Tom Tromey <tom@tromey.com>
53
54 * cli/cli-cmds.h (cd_command): Constify.
55 * cli/cli-cmds.c (cd_command): Constify.
56
57 2017-09-27 Tom Tromey <tom@tromey.com>
58
59 * thread.c (thread_name_command, thread_find_command): Constify.
60
61 2017-09-27 Tom Tromey <tom@tromey.com>
62
63 * probe.c (enable_probes_command, disable_probes_command):
64 Constify.
65
66 2017-09-27 Tom Tromey <tom@tromey.com>
67
68 * symfile.c (symbol_file_command): Constify.
69 * gdbcore.h (deprecated_file_changed_hook): Constify.
70 * exec.c (deprecated_file_changed_hook, exec_file_command)
71 (file_command): Constify.
72 * defs.h (symbol_file_command): Constify.
73
74 2017-09-27 Tom Tromey <tom@tromey.com>
75
76 * remote-fileio.c (set_system_call_allowed)
77 (show_system_call_allowed): Constify.
78
79 2017-09-27 Tom Tromey <tom@tromey.com>
80
81 * tracepoint.c (delete_trace_variable_command)
82 (tfind_end_command, tfind_start_command, tfind_pc_command)
83 (tfind_tracepoint_command, tfind_line_command)
84 (tfind_range_command, tfind_outside_command): Constify.
85
86 2017-09-27 Tom Tromey <tom@tromey.com>
87
88 * ax-gdb.c (maint_agent_printf_command, agent_command)
89 (agent_eval_command): Constify.
90
91 2017-09-27 Tom Tromey <tom@tromey.com>
92
93 * tracepoint.c (info_scope_command): Constify.
94 * python/python.c (gdbpy_decode_line): Constify.
95 * python/py-breakpoint.c (bppy_init): Constify.
96 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
97 * location.h: (new_linespec_location)
98 (string_to_event_location_basic, string_to_event_location):
99 Constify.
100 * location.c (new_linespec_location)
101 (string_to_event_location_basic, string_to_event_location):
102 Constify.
103 * linespec.h (decode_line_with_current_source)
104 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
105 * linespec.c (linespec_lex_to_end)
106 (decode_line_with_current_source)
107 (decode_line_with_last_displayed): Constify.
108 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
109 Constify.
110 * cli/cli-cmds.c (edit_command, list_command): Constify.
111 * breakpoint.h (until_break_command, watch_command_wrapper)
112 (awatch_command_wrapper, rwatch_command_wrapper)
113 (init_ada_exception_breakpoint): Constify.
114 * breakpoint.c (break_command_1, dprintf_command)
115 (break_range_command, watch_command_wrapper)
116 (rwatch_command_wrapper, awatch_command_wrapper)
117 (until_break_command, init_ada_exception_breakpoint)
118 (strace_marker_create_sals_from_location, trace_command)
119 (ftrace_command, strace_command, struct tracepoint): Constify.
120 * ax-gdb.c (agent_command_1): Constify.
121 * ada-lang.c (ada_exception_sal): Constify.
122
123 2017-09-27 Tom Tromey <tom@tromey.com>
124
125 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
126 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
127 (get_context_size, no_chunk, get_insn_history_modifiers)
128 (cmd_record_insn_history, get_call_history_modifiers)
129 (cmd_record_call_history): Constify.
130
131 2017-09-27 Tom Tromey <tom@tromey.com>
132
133 * source.c (show_substitute_path_command)
134 (unset_substitute_path_command, set_substitute_path_command):
135 Constify.
136
137 2017-09-27 Tom Tromey <tom@tromey.com>
138
139 * typeprint.c (maintenance_print_type): Constify.
140 * maint.c (maintenance_dump_me, maintenance_demangle)
141 (maintenance_time_display, maintenance_info_sections)
142 (maintenance_print_statistics, maintenance_deprecate)
143 (maintenance_undeprecate): Constify.
144 (maintenance_do_deprecate): Constify. Use std::string.
145 (maintenance_selftest): Constify.
146 * gdbtypes.h (maintenance_print_type): Constify.
147
148 2017-09-27 Tom Tromey <tom@tromey.com>
149
150 * hppa-tdep.c (unwind_command): Constify.
151
152 2017-09-27 Tom Tromey <tom@tromey.com>
153
154 * target-descriptions.c (unset_tdesc_filename_cmd)
155 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
156 Constify.
157
158 2017-09-27 Tom Tromey <tom@tromey.com>
159
160 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
161
162 2017-09-27 Tom Tromey <tom@tromey.com>
163
164 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
165
166 2017-09-27 Tom Tromey <tom@tromey.com>
167
168 * tui/tui-regs.c (tui_reg_command): Constify.
169
170 2017-09-27 Tom Tromey <tom@tromey.com>
171
172 * skip.c (skip_file_command, skip_function_command)
173 (skip_enable_command, skip_disable_command, skip_delete_command):
174 Constify.
175
176 2017-09-27 Tom Tromey <tom@tromey.com>
177
178 * record-btrace.c (cmd_record_btrace_bts_start)
179 (cmd_record_btrace_pt_start): Constify.
180
181 2017-09-27 Tom Tromey <tom@tromey.com>
182
183 * symmisc.c (maintenance_print_symbols)
184 (maintenance_print_msymbols, maintenance_print_objfiles)
185 (maintenance_info_symtabs, maintenance_check_symtabs)
186 (maintenance_expand_symtabs, maintenance_info_line_tables):
187 Constify.
188
189 2017-09-27 Tom Tromey <tom@tromey.com>
190
191 * top.c (new_ui_command): Constify.
192
193 2017-09-27 Tom Tromey <tom@tromey.com>
194
195 * symfile.c (add_symbol_file_command)
196 (remove_symbol_file_command, list_overlays_command)
197 (map_overlay_command, unmap_overlay_command)
198 (overlay_auto_command, overlay_manual_command)
199 (overlay_off_command, overlay_load_command): Constify.
200
201 2017-09-27 Tom Tromey <tom@tromey.com>
202
203 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
204 (info_spu_mailbox_command, info_spu_dma_command)
205 (info_spu_proxydma_command): Constify.
206
207 2017-09-27 Tom Tromey <tom@tromey.com>
208
209 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
210
211 2017-09-27 Tom Tromey <tom@tromey.com>
212
213 * cli/cli-script.c (user_defined_command): Constify.
214
215 2017-09-27 Tom Tromey <tom@tromey.com>
216
217 * cli/cli-dump.c (dump_memory_command, dump_value_command)
218 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
219 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
220 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
221 (dump_binary_value, append_binary_memory, append_binary_value):
222 Constify.
223 (struct dump_context) <func>: Constify.
224 (add_dump_command): Update.
225
226 2017-09-27 Tom Tromey <tom@tromey.com>
227
228 * cli/cli-cmds.c (show_version, show_configuration)
229 (source_command, show_user): Constify.
230
231 2017-09-27 Tom Tromey <tom@tromey.com>
232
233 * target.c (maintenance_print_target_stack): Constify.
234
235 2017-09-27 Tom Tromey <tom@tromey.com>
236
237 * interps.c (interpreter_exec_cmd): Constify.
238
239 2017-09-27 Tom Tromey <tom@tromey.com>
240
241 * record-full.c (cmd_record_full_restore): Constify.
242
243 2017-09-27 Tom Tromey <tom@tromey.com>
244
245 * memattr.c (enable_mem_command, disable_mem_command)
246 (delete_mem_command): Constify.
247
248 2017-09-27 Tom Tromey <tom@tromey.com>
249
250 * value.c (show_convenience): Constify.
251
252 2017-09-27 Tom Tromey <tom@tromey.com>
253
254 * gdbcore.h (core_file_command): Update.
255 * corefile.c (core_file_command): Constify.
256
257 2017-09-27 Tom Tromey <tom@tromey.com>
258
259 * user-regs.c (maintenance_print_user_registers): Constify.
260
261 2017-09-27 Tom Tromey <tom@tromey.com>
262
263 * cp-namespace.c (maintenance_cplus_namespace): Constify.
264
265 2017-09-27 Tom Tromey <tom@tromey.com>
266
267 * cp-support.c (first_component_command): Constify.
268
269 2017-09-27 Tom Tromey <tom@tromey.com>
270
271 * psymtab.c (maintenance_print_psymbols)
272 (maintenance_info_psymtabs, maintenance_check_psymtabs):
273 Constify.
274
275 2017-09-27 Tom Tromey <tom@tromey.com>
276
277 * windows-tdep.c (display_tib): Constify.
278
279 2017-09-27 Tom Tromey <tom@tromey.com>
280
281 * linux-fork.c (delete_checkpoint_command)
282 (detach_checkpoint_command): Constify.
283
284 2017-09-27 Tom Tromey <tom@tromey.com>
285
286 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
287
288 2017-09-27 Tom Tromey <tom@tromey.com>
289
290 * arc-tdep.c (dump_arc_instruction_command): Constify.
291
292 2017-09-27 Tom Tromey <tom@tromey.com>
293
294 * valprint.c (set_radix, show_radix): Constify.
295
296 2017-09-27 Tom Tromey <tom@tromey.com>
297
298 * dtrace-probe.c (info_probes_dtrace_command): Constify.
299
300 2017-09-27 Tom Tromey <tom@tromey.com>
301
302 * command.h (not_just_help_class_command): Update.
303 * cli/cli-decode.h (not_just_help_class_command): Update.
304 * cli/cli-decode.c (not_just_help_class_command): Constify.
305
306 2017-09-27 Tom Tromey <tom@tromey.com>
307
308 * gdb_bfd.c (maintenance_info_bfds): Constify.
309
310 2017-09-27 Tom Tromey <tom@tromey.com>
311
312 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
313 overloads.
314 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
315 (do_const_cfunc): New function.
316 (cmd_cfunc_eq): New overload.
317 (cli_user_command_p): Check do_const_cfunc.
318 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
319 const_cfunc.
320 * command.h (add_cmd): Add const overload and no-function
321 overload.
322 (set_cmd_cfunc): Add const overload.
323 (cmd_const_cfunc_ftype): Declare.
324 (cmd_cfunc_eq): Add const overload.
325 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
326 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
327 overload.
328
329 2017-09-27 Tom Tromey <tom@tromey.com>
330
331 * macroexp.c (get_next_token_for_substitution): New function.
332 (substitute_args): Call it. Check for __VA_OPT__.
333
334 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
335 Pedro Alves <palves@redhat.com>
336
337 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
338 producer_is_icc_lt_14.
339 (producer_is_icc_lt_14): New function.
340 (check_producer): Add code for checking version of ICC.
341 (producer_is_icc): Move to producer.c.
342 (read_structure_type): Restrict ICC workaround to ICC<14.
343 * producer.c: Include selftest.h.
344 (producer_is_icc, producer_parsing_tests, _initialize_producer):
345 New functions.
346 * producer.h (producer_is_icc): New declaration.
347
348 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
349
350 * Makefile.in (SFILES): Add producer.c.
351 (COMMON_OBS): Add producer.o
352 * amd64-tdep.c (producer.h): Add new include.
353 * dwarf2read.c (producer.h): Add new include.
354 * producer.c: New file.
355 * producer.h: New file.
356 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
357 producer.c.
358 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
359 producer.h.
360
361 2017-09-26 Matthias Klose <doko@ubuntu.com>
362
363 * configure.ac: Search ncursesw before ncurses.
364 Check ncursesw/ncurses.h before ncurses/ncurses.h.
365 * gdb_curses.h: Include <ncursesw/ncurses.h>
366 * config.in, configure: Regenerate.
367
368 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
369
370 PR gdb/22185
371 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
372 obsolete.
373 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
374 Remove i386sol2 support.
375 * configure.nat <i386sol2>: Remove.
376 <sol2-64>: Fold into ...
377 <sol2>: ... this.
378 Move common settings to default section.
379 Add sol-thread.o.
380 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
381 x86_64-*-solaris2.1[0-9]*>: Rename to ...
382 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
383 <i[34567]86-*-solaris*>: Remove.
384 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
385
386 * configure.ac: Remove wctype in libw check.
387 (_MSE_INT_H): Don't define on Solaris 7-9.
388 <solaris*>: Remove libthread_db.so.1 check.
389 * configure: Regenerate.
390 * config.in: Regenerate.
391
392 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
393 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
394 (gdb_ps_size_t): Remove.
395 Use base types in users.
396 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
397
398 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
399
400 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
401
402 PR build/22206
403 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
404 (adi_is_addr_mapped): Likewise.
405 (PSR_ICC): Don't redefine.
406 (PSR_IMPL): Likewise.
407
408 2017-09-25 Tom Tromey <tom@tromey.com>
409
410 * regcache.c (regcache::dump): Use string_printf.
411
412 2017-09-25 Tom Tromey <tom@tromey.com>
413
414 * regcache.c (class regcache_invalidator): New.
415 (struct register_to_invalidate): Remove.
416 (make_cleanup_regcache_invalidate): Remove.
417 (regcache::raw_write): Use regcache_invalidator.
418
419 2017-09-25 Tom Tromey <tom@tromey.com>
420
421 * spu-tdep.c (spu2ppu_sniffer): Update.
422 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
423 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
424 Remove.
425 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
426 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
427 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
428 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
429 (frame_pop): Update.
430
431 2017-09-25 Tom Tromey <tom@tromey.com>
432
433 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
434 * regcache.h (regcache_xfree): Don't declare.
435 * regcache.c (regcache_xfree): Remove.
436 (do_regcache_xfree): Use delete.
437 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
438 * linux-fork.c (free_fork): Use delete.
439 (fork_save_infrun_state): Likewise.
440 * jit.c (jit_dealloc_cache): Use delete.
441 * infrun.c (discard_infcall_suspend_state): Use delete.
442
443 2017-09-25 Tom Tromey <tom@tromey.com>
444
445 * regcache.h (regcache_xmalloc): Don't declare.
446 (regcache_raw_set_cached_value): Update comment.
447 * regcache.c (regcache_xmalloc): Remove.
448 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
449 * jit.c (jit_frame_sniffer): Use new.
450 * frame.c (frame_save_as_regcache): Use new.
451
452 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
453
454 * NEWS: Advertise support for guarded-storage registers on IBM z.
455
456 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
457
458 * s390-linux-nat.c (have_regset_gs): New static variable.
459 (s390_linux_fetch_inferior_registers): Handle guarded-storage
460 control block and guarded-storage broadcast control regsets.
461 (s390_read_description): Detect whether the target has
462 guarded-storage support, return appropriate tdesc.
463 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
464 (features/s390x-gs-linux64.c): Likewise.
465 (struct gdbarch_tdep) <have_gs>: New field.
466 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
467 (s390_gsbc_regset): New variables.
468 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
469 and s390_gsbc_regset, if applicable.
470 (s390_core_read_description): Check whether core file was from a
471 target with guarded-storage support; include appropriate regsets.
472 (s390_gdbarch_init): Add registers for guarded-storage support.
473 (_initialize_s390_tdep): Initialize new target descriptions that
474 include registers for guarded-storage support.
475 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
476 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
477 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
478 (S390_NUM_REGS): Adjust macro definition.
479 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
480 (tdesc_s390x_gs_linux64): New declarations.
481
482 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
483
484 * features/s390-gs-linux64.xml: New file.
485 * features/s390-gs.xml: New file.
486 * features/s390-gsbc.xml: New file.
487 * features/s390x-gs-linux64.xml: New file.
488 * features/Makefile (WHICH): Add s390-gs-linux64 and
489 s390x-gs-linux64.
490 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
491 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
492 * features/s390-gs-linux64.c: New generated file.
493 * features/s390x-gs-linux64.c: New file.
494 * regformats/s390-gs-linux64.dat: New file.
495 * regformats/s390x-gs-linux64.dat: New file.
496
497 2017-09-23 Tom Tromey <tom@tromey.com>
498
499 * defs.h (make_cleanup_override_quit_handler): Don't declare.
500
501 2017-09-22 Tom Tromey <tom@tromey.com>
502
503 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
504 type to scoped_restore_tmpl.
505 <scoped_input_handler>: Initialize m_quit_handler directly.
506
507 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
508
509 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
510 (cd_command): Likewise. Free "current_directory" before
511 assigning to it.
512 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
513 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
514 * top.c (gdb_dirbuf): Remove global declaration.
515 * top.h (gdb_dirbuf): Likewise.
516
517 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
518
519 * gnulib/aclocal.m4: Regenerate.
520 * gnulib/config.in: Regenerate.
521 * gnulib/configure: Regenerate.
522 * gnulib/import/Makefile.am: Regenerate.
523 * gnulib/import/Makefile.in: Regenerate.
524 * gnulib/import/assure.h: New file.
525 * gnulib/import/at-func.c: Likewise
526 * gnulib/import/chdir-long.c: New file.
527 * gnulib/import/chdir-long.h: New file.
528 * gnulib/import/cloexec.c: New file.
529 * gnulib/import/cloexec.h: New file.
530 * gnulib/import/close.c: New file.
531 * gnulib/import/closedir.c: New file.
532 * gnulib/import/dirent-private.h: New file.
533 * gnulib/import/dup-safer.c: New file.
534 * gnulib/import/dup.c: New file.
535 * gnulib/import/dup2.c: New file.
536 * gnulib/import/error.c: New file.
537 * gnulib/import/error.h: New file.
538 * gnulib/import/exitfail.c: New file.
539 * gnulib/import/exitfail.h: New file.
540 * gnulib/import/fchdir.c: New file.
541 * gnulib/import/fcntl.c: New file.
542 * gnulib/import/fcntl.in.h: New file.
543 * gnulib/import/fd-hook.c: New file.
544 * gnulib/import/fd-hook.h: New file.
545 * gnulib/import/fd-safer.c: New file.
546 * gnulib/import/fdopendir.c: New file.
547 * gnulib/import/filename.h: New file.
548 * gnulib/import/filenamecat-lgpl.c: New file.
549 * gnulib/import/filenamecat.h: New file.
550 * gnulib/import/fstat.c: New file.
551 * gnulib/import/fstatat.c: New file.
552 * gnulib/import/getcwd-lgpl.c: New file.
553 * gnulib/import/getcwd.c: New file.
554 * gnulib/import/getdtablesize.c: New file.
555 * gnulib/import/getlogin_r.c: New file.
556 * gnulib/import/getprogname.c: New file.
557 * gnulib/import/getprogname.h: New file.
558 * gnulib/import/gettext.h: New file.
559 * gnulib/import/glob-libc.h: New file.
560 * gnulib/import/glob.c: New file.
561 * gnulib/import/glob.in.h: New file.
562 * gnulib/import/intprops.h: New file.
563 * gnulib/import/m4/chdir-long.m4: New file.
564 * gnulib/import/m4/close.m4: New file.
565 * gnulib/import/m4/closedir.m4: New file.
566 * gnulib/import/m4/d-ino.m4: New file.
567 * gnulib/import/m4/d-type.m4: New file.
568 * gnulib/import/m4/dup.m4: New file.
569 * gnulib/import/m4/dup2.m4: New file.
570 * gnulib/import/m4/error.m4: New file.
571 * gnulib/import/m4/fchdir.m4: New file.
572 * gnulib/import/m4/fcntl.m4: New file.
573 * gnulib/import/m4/fcntl_h.m4: New file.
574 * gnulib/import/m4/fdopendir.m4: New file.
575 * gnulib/import/m4/filenamecat.m4: New file.
576 * gnulib/import/m4/fstat.m4: New file.
577 * gnulib/import/m4/fstatat.m4: New file.
578 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
579 * gnulib/import/m4/getcwd-path-max.m4: New file.
580 * gnulib/import/m4/getcwd.m4: New file.
581 * gnulib/import/m4/getdtablesize.m4: New file.
582 * gnulib/import/m4/getlogin_r.m4: New file.
583 * gnulib/import/m4/getprogname.m4: New file.
584 * gnulib/import/m4/glob.m4: New file.
585 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
586 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
587 * gnulib/import/m4/mempcpy.m4: New file.
588 * gnulib/import/m4/memrchr.m4: New file.
589 * gnulib/import/m4/mode_t.m4: New file.
590 * gnulib/import/m4/msvc-inval.m4: New file.
591 * gnulib/import/m4/msvc-nothrow.m4: New file.
592 * gnulib/import/m4/open.m4: New file.
593 * gnulib/import/m4/openat.m4: New file.
594 * gnulib/import/m4/opendir.m4: New file.
595 * gnulib/import/m4/readdir.m4: New file.
596 * gnulib/import/m4/realloc.m4: New file.
597 * gnulib/import/m4/rewinddir.m4: New file.
598 * gnulib/import/m4/save-cwd.m4: New file.
599 * gnulib/import/m4/strdup.m4: New file.
600 * gnulib/import/m4/strerror.m4: New file.
601 * gnulib/import/m4/unistd-safer.m4: New file.
602 * gnulib/import/mempcpy.c: New file.
603 * gnulib/import/memrchr.c: New file.
604 * gnulib/import/msvc-inval.c: New file.
605 * gnulib/import/msvc-inval.h: New file.
606 * gnulib/import/msvc-nothrow.c: New file.
607 * gnulib/import/msvc-nothrow.h: New file.
608 * gnulib/import/open.c: New file.
609 * gnulib/import/openat-die.c: New file.
610 * gnulib/import/openat-priv.h: New file.
611 * gnulib/import/openat-proc.c: New file.
612 * gnulib/import/openat.c: New file.
613 * gnulib/import/openat.h: New file.
614 * gnulib/import/opendir.c: New file.
615 * gnulib/import/pipe-safer.c: New file.
616 * gnulib/import/readdir.c: New file.
617 * gnulib/import/realloc.c: New file.
618 * gnulib/import/rewinddir.c: New file.
619 * gnulib/import/save-cwd.c: New file.
620 * gnulib/import/save-cwd.h: New file.
621 * gnulib/import/strdup.c: New file.
622 * gnulib/import/strerror-override.c: New file.
623 * gnulib/import/strerror-override.h: New file.
624 * gnulib/import/strerror.c: New file.
625 * gnulib/import/unistd--.h: New file.
626 * gnulib/import/unistd-safer.h: New file.
627 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
628 "getcwd" and "glob".
629 * ser-tcp.c: Undefine "close" before redefining it.
630
631 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
632
633 * guile/scm-value.c (gdbscm_value_address): Initialize address,
634 get rid of res_val.
635
636 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
637
638 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
639 <sol2,sparc>: Likewise.
640 <sol2-64,i386>: Likewise.
641
642 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
643 -Wdeprecated-declarations on *-*-solaris*.
644 * configure: Regenerate.
645
646 * procfs.c: Include "nat/inferior.h".
647 (procfs_info_proc): Fix typo.
648
649 2017-09-21 Kevin Buettner <kevinb@redhat.com>
650
651 * remote.c (vector): Include.
652 (struct private_thread_info): Add field, thread_handle.
653 (free_private_thread_info): Deallocate storage associated with
654 thread handle.
655 (get_private_info_thread): Initialize `thread_handle' field.
656 (struct thread_item): Add field, thread_handle.
657 (clear_threads_listing_context): Deallocate storage associated
658 with thread handle.
659 (start_thread): Add support for "handle" attribute.
660 (thread_attributes): Add "handle".
661 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
662 field.
663 (remote_update_thread_list): Update thread_handle.
664 (remote_thread_handle_to_thread_info): New function.
665 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
666
667 2017-09-21 Kevin Buettner <kevinb@redhat.com>
668
669 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
670 function.
671 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
672 * python/python-internal.h (thread_object_type): Declare.
673
674 2017-09-21 Kevin Buettner <kevinb@redhat.com>
675
676 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
677 (target_thread_handle_to_thread_info): Declare.
678 * target.c (target_thread_handle_to_thread_info): New function.
679 * target-delegates.c: Regenerate.
680 * gdbthread.h (find_thread_by_handle): Declare.
681 * thread.c (find_thread_by_handle): New function.
682 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
683 function.
684 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
685
686 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
687
688 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
689
690 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
691
692 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
693
694 2017-09-21 Yao Qi <yao.qi@linaro.org>
695
696 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
697 to gdb_target_obs.
698
699 2017-09-20 Tom Tromey <tom@tromey.com>
700
701 * breakpoint.c (struct counted_command_line): Remove.
702 (breakpoint_commands): Update.
703 (alloc_counted_command_line, incref_counted_command_line)
704 (decref_counted_command_line, do_cleanup_counted_command_line)
705 (make_cleanup_decref_counted_command_line): Remove.
706 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
707 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
708 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
709 (save_breakpoints): Update.
710 * breakpoint.h (counted_command_line): Now a typedef to
711 shared_ptr.
712 (struct breakpoint) <commands>: Now a counted_command_line.
713 (struct bpstats) <command>: Likewise.
714
715 2017-09-20 Tom Tromey <tom@tromey.com>
716
717 * breakpoint.c (struct commands_info, do_map_commands_command):
718 Remove.
719 (commands_command_1): Update.
720 (iterate_over_related_breakpoints): Take a function_view.
721 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
722 (delete_command): Update.
723 (map_breakpoint_numbers): Take a function_view.
724 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
725 (disable_command): Update.
726 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
727 (enable_command): Update.
728 (struct disp_data, do_enable_breakpoint_disp)
729 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
730 (do_map_enable_delete_breakpoint): Remove.
731 (enable_once_command, enable_count_command, enable_delete_command)
732 (delete_trace_variable_command): Update.
733
734 2017-09-20 Tom Tromey <tom@tromey.com>
735
736 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
737 (bpstat_clear): Use delete.
738 (bpstats): New constructors.
739 (bpstat_copy, bpstat_stop_status): Use new.
740 (dprintf_after_condition_true): Update.
741 * breakpoint.h (bpstats::bpstats): Add constructors.
742 (bpstats::~bpstats): Add destructor.
743
744 2017-09-20 Pedro Alves <palves@redhat.com>
745
746 * eval.c (make_params): Delete, refactored as ...
747 (class fake_method): ... this new type's ctor.
748 (fake_method::~fake_method): New.
749 (evaluate_subexp_standard): Use 'fake_method'.
750
751 2017-09-20 Tom Tromey <tom@tromey.com>
752
753 * windows-nat.c (get_windows_debug_event, windows_wait)
754 (do_initial_windows_stuff, windows_attach): Update.
755 * utils.c (vwarning, internal_vproblem): Update.
756 (ui_unregister_input_event_handler_cleanup)
757 (prepare_to_handle_input): Remove.
758 (class scoped_input_handler): New.
759 (defaulted_query, prompt_for_continue): Update.
760 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
761 Update.
762 * top.c (undo_terminal_modifications_before_exit): Update.
763 * target/target.h (target_terminal_init, target_terminal_inferior)
764 (target_terminal_ours): Don't declare.
765 (class target_terminal): New.
766 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
767 (target_terminal_ours_for_output)
768 (make_cleanup_restore_target_terminal): Don't declare.
769 (target_terminal_info): Remove.
770 * target.c (enum terminal_state, terminal_state): Remove.
771 (target_terminal::terminal_state): Define.
772 (target_terminal::init): Rename from target_terminal_init.
773 (target_terminal::inferior): Rename from
774 target_terminal_inferior.
775 (target_terminal::ours): Rename from target_terminal_ours.
776 (target_terminal::ours_for_output): Rename from
777 target_terminal_ours_for_output.
778 (target_terminal::info): New method.
779 (cleanup_restore_target_terminal)
780 (make_cleanup_restore_target_terminal): Remove.
781 * solib.c (handle_solib_event): Update.
782 * remote.c (remote_serial_quit_handler): Update.
783 (remote_terminal_inferior, remote_wait_as): Update.
784 * record-full.c (record_full_wait_1): Update.
785 * nto-procfs.c (procfs_create_inferior): Update.
786 * nat/fork-inferior.c (startup_inferior): Update.
787 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
788 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
789 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
790 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
791 (mi_breakpoint_created, mi_breakpoint_deleted)
792 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
793 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
794 (mi_user_selected_context_changed, report_initial_inferior):
795 Update.
796 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
797 (linux_nat_terminal_inferior): Update.
798 * infrun.c (follow_fork_inferior)
799 (handle_vfork_child_exec_or_exit, do_target_resume)
800 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
801 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
802 Update.
803 * inflow.c (child_terminal_init, info_terminal_command): Update.
804 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
805 (attach_command): Update.
806 * infcall.c (call_thread_fsm_should_stop): Update.
807 * gnu-nat.c (gnu_attach): Update.
808 * extension.c (struct active_ext_lang_state)
809 (restore_active_ext_lang): Update.
810 * exceptions.c (print_flush): Update.
811 * event-top.c (async_enable_stdin, default_quit_handler): Update.
812 (struct quit_handler_cleanup_data, restore_quit_handler)
813 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
814 Remove.
815 * cp-support.c (gdb_demangle): Update.
816 * breakpoint.c (update_inserted_breakpoint_locations)
817 (insert_breakpoint_locations, handle_jit_event)
818 (disable_breakpoints_in_unloaded_shlib): Update.
819 * annotate.c (annotate_breakpoints_invalid)
820 (annotate_frames_invalid): Update.
821
822 2017-09-20 Tom Tromey <tom@tromey.com>
823
824 * main.c (catch_command_errors): Rename from
825 catch_command_errors_const.
826 (captured_main_1): Update.
827
828 2017-09-20 Pedro Alves <palves@redhat.com>
829
830 * cli/cli-cmds.c (list_command): Use print_sal_location.
831 (print_sal_location): New function.
832 (ambiguous_line_spec): Use print_sal_location.
833 * linespec.c (symbol_to_sal): Record the symbol in the sal.
834 * symtab.c (find_function_start_sal): Likewise.
835 * symtab.h (symtab_and_line::symbol): New field.
836
837 2017-09-20 Pedro Alves <palves@redhat.com>
838
839 * linespec.c (minsym_found): Handle non-text minsyms.
840 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
841
842 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
843
844 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
845 backslash.
846
847 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
848
849 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
850 vmovups instead vmovaps.
851 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
852
853 2017-09-19 John Baldwin <jhb@FreeBSD.org>
854
855 * NEWS (Changes since GDB 8.0): Add starti.
856 * infcmd.c (enum run_break): New.
857 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
858 case.
859 (run_command): Use enum run_how.
860 (start_command): Likewise.
861 (starti_command): New function.
862 (RUN_ARGS_HELP): New macro.
863 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
864 commands. Add starti command.
865
866 2017-09-19 Yao Qi <yao.qi@linaro.org>
867
868 * Makefile.in (monitor.o): Remove the rule.
869
870 2017-09-19 Yao Qi <yao.qi@linaro.org>
871
872 * annotate.h (struct annotate_arg_emitter): Use
873 DISABLE_COPY_AND_ASSIGN.
874 * common/refcounted-object.h (refcounted_object): Likewise.
875 * completer.h (struct completion_result): Likewise.
876 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
877 * filename-seen-cache.h (filename_seen_cache): Likewise.
878 * gdbcore.h (thread_section_name): Likewise.
879 * gdb_regex.h (compiled_regex): Likewise.
880 * gdbthread.h (scoped_restore_current_thread): Likewise.
881 * inferior.h (scoped_restore_current_inferior): Likewise.
882 * jit.c (jit_reader): Likewise.
883 * linespec.h (struct linespec_result): Likewise.
884 * mi/mi-parse.h (struct mi_parse): Likewise.
885 * nat/fork-inferior.c (execv_argv): Likewise.
886 * progspace.h (scoped_restore_current_program_space): Likewise.
887 * python/python-internal.h (class gdbpy_enter): Likewise.
888 * regcache.h (regcache): Likewise.
889 * target-descriptions.c (struct tdesc_reg): Likewise.
890 (struct tdesc_type): Likewise.
891 (struct tdesc_feature): Likewise.
892 * ui-out.h (ui_out_emit_type): Likewise.
893
894 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
895
896 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
897 label abort_expression.
898
899 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
900
901 * common/buffer.c (buffer_xml_printf): Adjust.
902 * common/xml-utils.c (xml_escape_text): Change return type to
903 std::string, update code accordingly.
904 * common/xml-utils.h (xml_escape_text): Change return type to
905 std::string.
906 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
907 * windows-tdep.c (windows_xfer_shared_library): Adjust.
908 * unittests/xml-utils-selftests.c (test_xml_escape_text):
909 Adjust.
910
911 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
912
913 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
914 (SUBDIR_UNITTESTS_OBS): Add new object file.
915 * unittests/xml-utils-selftests.c: New file.
916
917 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
918
919 * common/selftest.h (selftest): New struct/interface.
920 (register_test): Add name parameter, add new overload.
921 (run_tests): Add filter parameter.
922 (for_each_selftest_ftype): New typedef.
923 (for_each_selftest): New declaration.
924 * common/selftest.c (tests): Change type to
925 map<string, unique_ptr<selftest>>.
926 (simple_selftest): New struct.
927 (register_test): New function.
928 (register_test): Add name parameter and use it.
929 (run_tests): Add filter parameter and use it. Add prints.
930 Adjust to vector -> map change.
931 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
932 registering selftests.
933 * arm-tdep.c (_initialize_arm_tdep): Likewise.
934 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
935 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
936 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
937 * findvar.c (_initialize_findvar): Likewise.
938 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
939 * maint.c (maintenance_selftest): Update call to run_tests.
940 (maintenance_info_selftests): New function.
941 (_initialize_maint_cmds): Register "maintenance info selftests"
942 command. Update "maintenance selftest" doc.
943 * regcache.c (_initialize_regcache): Add names when registering
944 selftests.
945 * rust-exp.y (_initialize_rust_exp): Likewise.
946 * selftest-arch.c (gdbarch_selftest): New struct.
947 (gdbarch_tests): Remove.
948 (register_test_foreach_arch): Add name parameter. Call
949 register_test.
950 (tests_with_arch): Remove, move most content to
951 gdbarch_selftest::operator().
952 (_initialize_selftests_foreach_arch): Remove.
953 * selftest-arch.h (register_test_foreach_arch): Add name
954 parameter.
955 (run_tests_with_arch): New declaration.
956 * utils-selftests.c (_initialize_utils_selftests): Add names
957 when registering selftests.
958 * utils.c (_initialize_utils): Likewise.
959 * unittests/array-view-selftests.c
960 (_initialize_array_view_selftests): Likewise.
961 * unittests/environ-selftests.c (_initialize_environ_selftests):
962 Likewise.
963 * unittests/function-view-selftests.c
964 (_initialize_function_view_selftests): Likewise.
965 * unittests/offset-type-selftests.c
966 (_initialize_offset_type_selftests): Likewise.
967 * unittests/optional-selftests.c
968 (_initialize_optional_selftests): Likewise.
969 * unittests/scoped_restore-selftests.c
970 (_initialize_scoped_restore_selftests): Likewise.
971 * NEWS: Document "maintenance selftest" and "maint info
972 selftests".
973
974 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
975
976 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
977 scoped_restore.
978
979 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
980
981 * mi/mi-main.c (mi_load_progress): Make uiout variable
982 a unique_ptr.
983
984 2017-09-15 Pedro Alves <palves@redhat.com>
985
986 * compile/compile-c-types.c (convert_enum, convert_int)
987 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
988
989 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
990
991 * dwarf2read.c (copy_string): Remove.
992 (parse_macro_definition): Replace copy_string with savestring.
993
994 2017-09-15 Yao Qi <yao.qi@linaro.org>
995
996 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
997 gdb_target_obs.
998 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
999 Likewise.
1000 (i[34567]86-*-linux*): Likewise.
1001
1002 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1003
1004 * dwarf2expr.h (dwarf_stack_value): Add constructor.
1005 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
1006 <stack>: Change type to std::vector.
1007 <stack_len, stack_allocated>: Remove.
1008 <grow_stack>: Remove.
1009 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
1010 (dwarf_expr_context::~dwarf_expr_context): Remove.
1011 (dwarf_expr_context::grow_stack): Remove.
1012 (dwarf_expr_context::push): Adjust.
1013 (dwarf_expr_context::pop): Adjust.
1014 (dwarf_expr_context::fetch): Adjust.
1015 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
1016 (dwarf_expr_context::stack_empty_p): Adjust.
1017 (dwarf_expr_context::execute_stack_op): Adjust.
1018
1019 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1020
1021 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
1022 return type to bool.
1023 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
1024
1025 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1026
1027 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
1028 Change type to bool.
1029 (dwarf_stack_value) <in_stack_memory>: Likewise.
1030 (dwarf_expr_context) <push_address>: Change parameter type to
1031 bool.
1032 <fetch_in_stack_memory>: Change return type to bool.
1033 <push>: Change parameter type to bool.
1034 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
1035 to bool.
1036 (dwarf_expr_context::push_address): Likewise.
1037 (dwarf_expr_context::fetch_in_stack_memory): Change return type
1038 to bool.
1039 (dwarf_expr_context::execute_stack_op): Adjust.
1040 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
1041
1042 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
1043
1044 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
1045 (struct dwarf_expr_context) <n_pieces>: Remove.
1046 <pieces>: Change type to std::vector.
1047 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
1048 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
1049 pieces.
1050 (dwarf_expr_context::add_piece): Adjust.
1051 * dwarf2loc.c (struct piece_closure): Initialize fields.
1052 <n_pieces>: Remove.
1053 <pieces>: Change type to std::vector.
1054 (allocate_piece_closure): Adjust, change parameter to
1055 std::vector rvalue and std::move it to piece_closure.
1056 (rw_pieced_value): Adjust.
1057 (check_pieced_synthetic_pointer): Adjust.
1058 (indirect_synthetic_pointer): Adjust.
1059 (coerce_pieced_ref): Adjust.
1060 (free_pieced_value_closure): Adjust. Use delete to free
1061 piece_closure.
1062 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
1063 to allocate_piece_closure.
1064 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
1065
1066 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1067
1068 * probe.h (probe_ops_cp): Remove typedef.
1069 (DEF_VEC_P (probe_ops_cp)): Remove.
1070 (all_probe_ops): Change type to std::vector.
1071 * probe.c (info_probes_for_ops): Adjust to vector change.
1072 (probe_linespec_to_ops): Likewise.
1073 (all_probe_ops): Change type to std::vector.
1074 (_initialize_probe): Adjust to vector change.
1075 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
1076 * elfread.c (elf_get_probes): Likewise.
1077 * stap-probe.c (_initialize_stap_probe): Likewise.
1078
1079 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1080
1081 * probe.h (struct bound_probe): Define constructors.
1082 * probe.c (bound_probe_s): Remove typedef.
1083 (DEF_VEC_O (bound_probe_s)): Remove VEC.
1084 (collect_probes): Change return type to std::vector, remove
1085 cleanup.
1086 (compare_probes): Return bool, change parameter type. Change
1087 semantic to "less than".
1088 (gen_ui_out_table_header_info): Change parameter to std::vector
1089 and update.
1090 (exists_probe_with_pops): Likewise.
1091 (info_probes_for_ops): Update to std::vector change.
1092 (enable_probes_command): Likewise.
1093 (disable_probes_command): Likewise.
1094
1095 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
1096
1097 * probe.h (struct probe_ops) <get_probes>: Change parameter from
1098 vec to std::vector.
1099 * probe.c (parse_probes_in_pspace): Update.
1100 (find_probes_in_objfile): Update.
1101 (find_probe_by_pc): Update.
1102 (collect_probes): Update.
1103 (probe_any_get_probes): Update.
1104 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
1105 return type to reference to std::vector.
1106 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
1107 std::vector and update.
1108 (dtrace_process_dof): Likewise.
1109 (dtrace_get_probes): Likewise.
1110 * elfread.c (elf_get_probes): Change return type to std::vector,
1111 store an std::vector in bfd_data.
1112 (probe_key_free): Update to std::vector.
1113 * stap-probe.c (handle_stap_probe): Change parameter to
1114 std::vector and update.
1115 (stap_get_probes): Likewise.
1116 * symfile-debug.c (debug_sym_get_probes): Change return type to
1117 std::vector and update.
1118
1119 2017-09-11 Tom Tromey <tom@tromey.com>
1120
1121 * breakpoint.c (program_breakpoint_here_p): Update.
1122 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
1123 from make_show_memory_breakpoints_cleanup. Return a
1124 scoped_restore_tmpl<int>.
1125 (restore_show_memory_breakpoints): Remove.
1126 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
1127 * mem-break.c (memory_validate_breakpoint): Update.
1128 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
1129 (ia64_memory_remove_breakpoint): Update.
1130 (ia64_breakpoint_from_pc): Update.
1131 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
1132 from make_show_memory_breakpoints_cleanup.
1133
1134 2017-09-11 Tom Tromey <tom@tromey.com>
1135
1136 * d-namespace.c (d_lookup_symbol): Use std::string.
1137 (find_symbol_in_baseclass): Likewise.
1138
1139 2017-09-11 Tom Tromey <tom@tromey.com>
1140
1141 * ctf.c (ctf_start): Use std::string.
1142
1143 2017-09-11 Tom Tromey <tom@tromey.com>
1144
1145 * ada-lang.c (is_known_support_routine): Update.
1146 (ada_unhandled_exception_name_addr_from_raise): Update.
1147 * guile/scm-frame.c (gdbscm_frame_name): Update.
1148 * python/py-frame.c (frapy_name): Update.
1149 (frapy_function): Update.
1150 * stack.h (find_frame_funname): Update.
1151 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
1152 (print_frame): Update.
1153
1154 2017-09-11 Tom Tromey <tom@tromey.com>
1155
1156 * findcmd.c (put_bits): Take a gdb::byte_vector.
1157 (parse_find_args): Return gdb::byte_vector. "args" now const.
1158 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
1159 cleanups.
1160 (find_command): Update.
1161
1162 2017-09-11 Tom Tromey <tom@tromey.com>
1163
1164 * cli/cli-script.c (class scoped_restore_hook_in): New.
1165 (clear_hook_in_cleanup): Remove.
1166 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
1167 scoped_restore_hook_in.
1168
1169 2017-09-11 Tom Tromey <tom@tromey.com>
1170
1171 * cli/cli-script.c (restore_interp): Remove.
1172 (read_command_lines): Use scoped_restore_interp.
1173 * interps.c (scoped_restore_interp::set_temp): Rename from
1174 interp_set_temp.
1175 * interps.h (class scoped_restore_interp): New.
1176 (interp_set_temp): Remove.
1177
1178 2017-09-11 Tom Tromey <tom@tromey.com>
1179
1180 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
1181 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
1182 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
1183 scoped_restore.
1184 (mi_cmd_break_insert_1): Update.
1185 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
1186 scoped_restore.
1187
1188 2017-09-11 Tom Tromey <tom@tromey.com>
1189
1190 * demangle.c (demangle_command): Update.
1191 * breakpoint.c (disable_command): Update.
1192 (enable_command): Update.
1193 (find_location_by_number): Make "number" const. Use
1194 get_number_trailer.
1195 * cli/cli-utils.c (extract_arg): Return std::string.
1196 * probe.c (parse_probe_linespec): Update. Change types.
1197 (collect_probes): Take string arguments.
1198 (parse_probe_linespec): Likewise.
1199 (info_probes_for_ops): Update.
1200 (enable_probes_command): Update.
1201 (disable_probes_command): Update.
1202 * break-catch-sig.c (catch_signal_split_args): Update.
1203 * mi/mi-parse.c (mi_parse): Update.
1204
1205 2017-09-11 Tom Tromey <tom@tromey.com>
1206
1207 * language.h (language_enum): Make argument const.
1208 * language.c (language_enum): Make argument const.
1209
1210 2017-09-11 Tom Tromey <tom@tromey.com>
1211
1212 * common/common-utils.h (skip_to_space): Remove macro, redeclare
1213 as function.
1214 (skip_to_space): Rename from skip_to_space_const.
1215 * common/common-utils.c (skip_to_space): New function.
1216 (skip_to_space): Rename from skip_to_space_const.
1217 * cli/cli-utils.h (get_number): Rename from get_number_const.
1218 (extract_arg): Rename from extract_arg_const.
1219 * cli/cli-utils.c (get_number): Rename from get_number_const.
1220 (extract_arg): Rename from extract_arg_const.
1221 (number_or_range_parser::get_number): Use ::get_number.
1222 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
1223 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
1224 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
1225 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
1226 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
1227 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
1228 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
1229 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
1230
1231 2017-09-11 Tom Tromey <tom@tromey.com>
1232
1233 * python/python.c (do_start_initialization): Use
1234 py-event-types.def to initialize types.
1235 Define all object type structures.
1236 * python/python-internal.h: Don't declare event initialization
1237 functions.
1238 * python/py-threadevent.c (thread_event_object_type): Don't
1239 define.
1240 * python/py-stopevent.c (stop_event_object_type): Don't define.
1241 * python/py-signalevent.c (signal_event_object_type): Don't
1242 declare or define.
1243 * python/py-newobjfileevent.c (new_objfile_event_object_type)
1244 (clear_objfiles_event_object_type): Don't declare or define.
1245 * python/py-infevents.c (inferior_call_pre_event_object_type)
1246 (inferior_call_post_event_object_type)
1247 (register_changed_event_object_type)
1248 (memory_changed_event_object_type): Don't declare or define.
1249 * python/py-inferior.c (new_thread_event_object_type)
1250 (new_inferior_event_object_type)
1251 (inferior_deleted_event_object_type): Don't declare or define.
1252 * python/py-exitedevent.c (exited_event_object_type): Don't
1253 declare or define.
1254 * python/py-evts.c (gdbpy_initialize_py_events): Use
1255 py-all-events.def.
1256 * python/py-events.h (thread_event_object_type): Don't declare.
1257 (events_object): Use py-all-events.def.
1258 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
1259 py-event-types.def.
1260 * python/py-event-types.def: New file.
1261 * python/py-continueevent.c (create_continue_event_object): Don't
1262 declare or define.
1263 * python/py-bpevent.c (breakpoint_event_object_type): Don't
1264 declare or define.
1265 * python/py-all-events.def: New file.
1266
1267 2017-09-11 Tom Tromey <tom@tromey.com>
1268
1269 * python/py-threadevent.c (create_thread_event_object): Return
1270 gdbpy_ref.
1271 * python/py-stopevent.h (create_stop_event_object)
1272 (create_breakpoint_event_object, create_signal_event_object):
1273 Update.
1274 * python/py-stopevent.c (create_stop_event_object): Return
1275 gdbpy_ref.
1276 (emit_stop_event): Update.
1277 * python/py-signalevent.c (create_signal_event_object): Return
1278 gdbpy_ref.
1279 * python/py-infevents.c (create_inferior_call_event_object):
1280 Update.
1281 * python/py-event.h (create_event_object)
1282 (create_thread_event_object): Update.
1283 * python/py-event.c (create_event_object): Return gdbpy_ref.
1284 * python/py-continueevent.c: Return gdbpy_ref.
1285 * python/py-bpevent.c (create_breakpoint_event_object): Return
1286 gdbpy_ref.
1287
1288 2017-09-11 Tom Tromey <tom@tromey.com>
1289
1290 PR python/15622:
1291 * NEWS: Add entry.
1292 * python/python.c (do_start_initialization): Initialize new event
1293 types.
1294 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
1295 (gdbpy_initialize_inferior_deleted_event)
1296 (gdbpy_initialize_new_thread_event): Declare.
1297 * python/py-threadevent.c (create_thread_event_object): Add option
1298 "thread" parameter.
1299 * python/py-inferior.c (new_thread_event_object_type)
1300 (new_inferior_event_object_type)
1301 (inferior_deleted_event_object_type): Declare.
1302 (python_new_inferior, python_inferior_deleted): New functions.
1303 (add_thread_object): Emit new_thread event.
1304 (gdbpy_initialize_inferior): Attach new functions to corresponding
1305 observers.
1306 (new_thread, new_inferior, inferior_deleted): Define new event
1307 types.
1308 * python/py-evts.c (gdbpy_initialize_py_events): Add new
1309 registries.
1310 * python/py-events.h (events_object) <new_inferior,
1311 inferior_deleted, new_thread>: New fields.
1312 * python/py-event.h (create_thread_event_breakpoint): Add optional
1313 "thread" parameter.
1314
1315 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
1316
1317 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
1318 check current_ui instead.
1319 (internal_vproblem): Likewise.
1320
1321 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
1322
1323 * thread.c (print_thread_info_1): Remove unnecessary calls to
1324 uiout->is_mi_like_p.
1325
1326 2017-09-09 Tom Tromey <tom@tromey.com>
1327
1328 * namespace.h (add_using_directive): Update.
1329 * namespace.c (add_using_directive): Change type of excludes to
1330 std::vector.
1331 * dwarf2read.c (read_import_statement): Use std::vector.
1332 (read_namespace): Update.
1333 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1334
1335 2017-09-09 Tom Tromey <tom@tromey.com>
1336
1337 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
1338
1339 2017-09-09 Tom Tromey <tom@tromey.com>
1340
1341 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
1342
1343 2017-09-09 Tom Tromey <tom@tromey.com>
1344
1345 * stack.c (func_command): Use gdb::def_vector.
1346
1347 2017-09-09 Tom Tromey <tom@tromey.com>
1348
1349 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
1350 ui_out_emit_list, ui_out_emit_tuple.
1351 (mi_cmd_var_update): Likewise.
1352
1353 2017-09-09 Tom Tromey <tom@tromey.com>
1354
1355 * mi/mi-interp.c (mi_user_selected_context_changed): Use
1356 ui_out_redirect_pop.
1357 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
1358 ui_out_redirect_pop.
1359 * utils.c (do_ui_out_redirect_pop)
1360 (make_cleanup_ui_out_redirect_pop): Remove.
1361 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
1362 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
1363 * ui-out.h (ui_out_redirect_pop): New class.
1364
1365 2017-09-09 Tom Tromey <tom@tromey.com>
1366
1367 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
1368 (list_available_thread_groups, mi_cmd_list_thread_groups)
1369 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
1370 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
1371 Likewise.
1372
1373 2017-09-09 Tom Tromey <tom@tromey.com>
1374
1375 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
1376 ui_out_emit_tuple.
1377
1378 2017-09-09 Tom Tromey <tom@tromey.com>
1379
1380 * target.c (flash_erase_command): Use ui_out_emit_tuple.
1381 * stack.c (print_frame): Use ui_out_emit_tuple.
1382 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
1383 (info_spu_mailbox_command, info_spu_dma_command)
1384 (info_spu_proxydma_command): Likewise.
1385 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
1386 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
1387 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
1388 ui_out_emit_tuple.
1389 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
1390
1391 2017-09-09 Tom Tromey <tom@tromey.com>
1392
1393 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
1394 (class ui_out_emit_table): Update comment.
1395 * ui-out.c (do_cleanup_table_end)
1396 (make_cleanup_ui_out_table_begin_end): Remove.
1397 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
1398 (info_spu_dma_cmdlist): Likewise.
1399 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
1400 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
1401 ui_out_emit_table.
1402
1403 2017-09-09 Tom Tromey <tom@tromey.com>
1404
1405 * thread.c (print_thread_info_1): Use ui_out_emit_table,
1406 ui_out_emit_list, gdb::optional.
1407
1408 2017-09-09 John Baldwin <jhb@FreeBSD.org>
1409
1410 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
1411 prototype.
1412 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
1413 prototype.
1414 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
1415 prototype.
1416 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
1417 * ada-exp.y: Remove _initialize_ada_exp prototype.
1418 * ada-lang.c: Remove _initialize_ada_language prototype.
1419 * ada-tasks.c: Remove _initialize_tasks prototype.
1420 * addrmap.c: Remove _initialize_addrmap prototype.
1421 * agent.c: Remove _initialize_agent prototype.
1422 * aix-thread.c: Remove _initialize_aix_thread prototype.
1423 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
1424 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
1425 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
1426 prototype.
1427 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
1428 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
1429 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
1430 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
1431 prototype.
1432 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
1433 prototype.
1434 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
1435 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
1436 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
1437 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
1438 prototype.
1439 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
1440 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
1441 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
1442 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
1443 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
1444 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
1445 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
1446 prototype.
1447 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
1448 prototype.
1449 * annotate.c: Remove _initialize_annotate prototype.
1450 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
1451 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
1452 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
1453 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
1454 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
1455 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
1456 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
1457 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
1458 prototype.
1459 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
1460 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
1461 * auto-load.c: Remove _initialize_auto_load prototype.
1462 * auxv.c: Remove _initialize_auxv prototype.
1463 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
1464 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
1465 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
1466 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
1467 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
1468 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
1469 prototype.
1470 * break-catch-throw.c: Remove _initialize_break_catch_throw
1471 prototype.
1472 * breakpoint.c: Remove _initialize_breakpoint prototype.
1473 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
1474 * btrace.c: Remove _initialize_btrace prototype.
1475 * charset.c: Remove _initialize_charset prototype.
1476 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
1477 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
1478 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
1479 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
1480 * cli/cli-script.c: Remove _initialize_cli_script prototype.
1481 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
1482 * coffread.c: Remove _initialize_coffread prototype.
1483 * compile/compile.c: Remove _initialize_compile prototype.
1484 * complaints.c: Remove _initialize_complaints prototype.
1485 * completer.c: Remove _initialize_completer prototype.
1486 * copying.awk: Remove _initialize_copying prototype.
1487 * copying.c: Regenerate.
1488 * core-regset.c: Remove _initialize_core_regset prototype.
1489 * corefile.c: Remove _initialize_core prototype.
1490 * corelow.c: Remove _initialize_corelow prototype.
1491 * cp-abi.c: Remove _initialize_cp_abi prototype.
1492 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
1493 * cp-support.c: Remove _initialize_cp_support prototype.
1494 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
1495 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
1496 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
1497 * ctf.c: Remove _initialize_ctf prototype.
1498 * d-lang.c: Remove _initialize_d_language prototype.
1499 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
1500 prototype.
1501 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
1502 * dbxread.c: Remove _initialize_dbxread prototype.
1503 * dcache.c: Remove _initialize_dcache prototype.
1504 * demangle.c: Remove _initialize_demangler prototype.
1505 * disasm-selftests.c: Remove _initialize_disasm_selftests
1506 prototype.
1507 * disasm.c: Remove _initialize_disasm prototype.
1508 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
1509 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
1510 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
1511 prototype.
1512 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
1513 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
1514 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
1515 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
1516 * elfread.c: Remove _initialize_elfread prototype.
1517 * exec.c: Remove _initialize_exec prototype.
1518 * extension.c: Remove _initialize_extension prototype.
1519 * f-lang.c: Remove _initialize_f_language prototype.
1520 * f-valprint.c: Remove _initialize_f_valprint prototype.
1521 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
1522 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
1523 * filesystem.c: Remove _initialize_filesystem prototype.
1524 * findcmd.c: Remove _initialize_mem_search prototype.
1525 * fork-child.c: Remove _initialize_fork_child prototype.
1526 * frame-base.c: Remove _initialize_frame_base prototype.
1527 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
1528 * frame.c: Remove _initialize_frame prototype.
1529 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
1530 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
1531 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
1532 * gcore.c: Remove _initialize_gcore prototype.
1533 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
1534 * gdbarch.c: Regenerate.
1535 * gdbarch.sh: Remove _initialize_gdbarch prototype.
1536 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
1537 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
1538 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
1539 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
1540 * go-lang.c: Remove _initialize_go_language prototype.
1541 * go32-nat.c: Remove _initialize_go32_nat prototype.
1542 * guile/guile.c: Remove _initialize_guile prototype.
1543 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
1544 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
1545 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
1546 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
1547 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
1548 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
1549 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
1550 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
1551 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
1552 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
1553 prototype.
1554 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
1555 prototype.
1556 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
1557 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
1558 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
1559 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
1560 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
1561 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
1562 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
1563 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
1564 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
1565 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
1566 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
1567 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
1568 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
1569 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
1570 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
1571 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
1572 prototype.
1573 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
1574 prototype.
1575 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
1576 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
1577 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
1578 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
1579 * infcall.c: Remove _initialize_infcall prototype.
1580 * infcmd.c: Remove _initialize_infcmd prototype.
1581 * inferior.c: Remove _initialize_inferiors prototype.
1582 * inflow.c: Remove _initialize_inflow prototype.
1583 * infrun.c: Remove _initialize_infrun prototype.
1584 * interps.c: Remove _initialize_interpreter prototype.
1585 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
1586 * jit.c: Remove _initialize_jit prototype.
1587 * language.c: Remove _initialize_language prototype.
1588 * linux-fork.c: Remove _initialize_linux_fork prototype.
1589 * linux-nat.c: Remove _initialize_linux_nat prototype.
1590 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
1591 * linux-thread-db.c: Remove _initialize_thread_db prototype.
1592 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
1593 * m2-lang.c: Remove _initialize_m2_language prototype.
1594 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
1595 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
1596 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
1597 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
1598 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
1599 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
1600 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
1601 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
1602 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
1603 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
1604 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
1605 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
1606 * machoread.c: Remove _initialize_machoread prototype.
1607 * macrocmd.c: Remove _initialize_macrocmd prototype.
1608 * macroscope.c: Remove _initialize_macroscope prototype.
1609 * maint.c: Remove _initialize_maint_cmds prototype.
1610 * mdebugread.c: Remove _initialize_mdebugread prototype.
1611 * memattr.c: Remove _initialize_mem prototype.
1612 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
1613 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
1614 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
1615 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
1616 * mi/mi-main.c: Remove _initialize_mi_main prototype.
1617 * microblaze-linux-tdep.c: Remove
1618 _initialize_microblaze_linux_tdep prototype.
1619 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
1620 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
1621 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
1622 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
1623 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
1624 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
1625 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
1626 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
1627 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
1628 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
1629 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
1630 prototype.
1631 * mipsread.c: Remove _initialize_mipsread prototype.
1632 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
1633 prototype.
1634 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
1635 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
1636 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
1637 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
1638 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
1639 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
1640 prototype.
1641 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
1642 * nto-procfs.c: Remove _initialize_procfs prototype.
1643 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
1644 * objc-lang.c: Remove _initialize_objc_language prototype.
1645 * objfiles.c: Remove _initialize_objfiles prototype.
1646 * observer.c: Remove observer_test_first_notification_function,
1647 observer_test_second_notification_function,
1648 observer_test_third_notification_function, and
1649 _initialize_observer prototypes.
1650 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
1651 * osabi.c: Remove _initialize_gdb_osabi prototype.
1652 * osdata.c: Remove _initialize_osdata prototype.
1653 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
1654 * parse.c: Remove _initialize_parse prototype.
1655 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
1656 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
1657 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
1658 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
1659 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
1660 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
1661 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
1662 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
1663 * printcmd.c: Remove _initialize_printcmd prototype.
1664 * probe.c: Remove _initialize_probe prototype.
1665 * proc-api.c: Remove _initialize_proc_api prototype.
1666 * proc-events.c: Remove _initialize_proc_events prototype.
1667 * proc-service.c: Remove _initialize_proc_service prototype.
1668 * procfs.c: Remove _initialize_procfs prototype.
1669 * psymtab.c: Remove _initialize_psymtab prototype.
1670 * python/python.c: Remove _initialize_python prototype.
1671 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
1672 * record-btrace.c: Remove _initialize_record_btrace prototype.
1673 * record-full.c: Remove _initialize_record_full prototype.
1674 * record.c: Remove _initialize_record prototype.
1675 * regcache.c: Remove _initialize_regcache prototype.
1676 * reggroups.c: Remove _initialize_reggroup prototype.
1677 * remote-notif.c: Remove _initialize_notif prototype.
1678 * remote-sim.c: Remove _initialize_remote_sim prototype.
1679 * remote.c: Remove _initialize_remote prototype.
1680 * reverse.c: Remove _initialize_reverse prototype.
1681 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
1682 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
1683 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
1684 prototype.
1685 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
1686 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
1687 * rust-exp.y: Remove _initialize_rust_exp prototype.
1688 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
1689 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
1690 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
1691 * score-tdep.c: Remove _initialize_score_tdep prototype.
1692 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
1693 prototype.
1694 * ser-go32.c: Remove _initialize_ser_dos prototype.
1695 * ser-mingw.c: Remove _initialize_ser_windows prototype.
1696 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
1697 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
1698 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
1699 * serial.c: Remove _initialize_serial prototype.
1700 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
1701 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
1702 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
1703 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
1704 * skip.c: Remove _initialize_step_skip prototype.
1705 * sol-thread.c: Remove _initialize_sol_thread prototype.
1706 * solib-aix.c: Remove _initialize_solib_aix prototype.
1707 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
1708 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
1709 * solib-frv.c: Remove _initialize_frv_solib prototype.
1710 * solib-spu.c: Remove _initialize_spu_solib prototype.
1711 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
1712 * solib-target.c: Remove _initialize_solib_target prototype.
1713 * solib.c: Remove _initialize_solib prototype.
1714 * source.c: Remove _initialize_source prototype.
1715 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
1716 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
1717 prototype.
1718 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
1719 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
1720 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
1721 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
1722 prototype.
1723 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
1724 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
1725 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
1726 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
1727 prototype.
1728 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
1729 prototype.
1730 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
1731 prototype.
1732 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
1733 prototype.
1734 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
1735 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
1736 prototype.
1737 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
1738 prototype.
1739 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
1740 prototype.
1741 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
1742 prototype.
1743 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
1744 prototype.
1745 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
1746 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
1747 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
1748 * stabsread.c: Remove _initialize_stabsread prototype.
1749 * stack.c: Remove _initialize_stack prototype.
1750 * stap-probe.c: Remove _initialize_stap_probe prototype.
1751 * std-regs.c: Remove _initialize_frame_reg prototype.
1752 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
1753 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
1754 * symfile.c: Remove _initialize_symfile prototype.
1755 * symmisc.c: Remove _initialize_symmisc prototype.
1756 * symtab.c: Remove _initialize_symtab prototype.
1757 * target-dcache.c: Remove _initialize_target_dcache prototype.
1758 * target-descriptions.c: Remove _initialize_target_descriptions
1759 prototype.
1760 * thread.c: Remove _initialize_thread prototype.
1761 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
1762 prototype.
1763 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
1764 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
1765 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
1766 prototype.
1767 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
1768 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
1769 * tracefile.c: Remove _initialize_tracefile prototype.
1770 * tracepoint.c: Remove _initialize_tracepoint prototype.
1771 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
1772 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
1773 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
1774 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
1775 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
1776 * tui/tui-win.c: Remove _initialize_tui_win prototype.
1777 * tui/tui.c: Remove _initialize_tui prototype.
1778 * typeprint.c: Remove _initialize_typeprint prototype.
1779 * user-regs.c: Remove _initialize_user_regs prototype.
1780 * utils.c: Remove _initialize_utils prototype.
1781 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
1782 * valarith.c: Remove _initialize_valarith prototype.
1783 * valops.c: Remove _initialize_valops prototype.
1784 * valprint.c: Remove _initialize_valprint prototype.
1785 * value.c: Remove _initialize_values prototype.
1786 * varobj.c: Remove _initialize_varobj prototype.
1787 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
1788 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
1789 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
1790 * windows-nat.c: Remove _initialize_windows_nat,
1791 _initialize_check_for_gdb_ini, and _initialize_loadable
1792 prototypes.
1793 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
1794 * xcoffread.c: Remove _initialize_xcoffread prototype.
1795 * xml-support.c: Remove _initialize_xml_support prototype.
1796 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
1797 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
1798 prototype.
1799 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
1800 prototype.
1801 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
1802
1803 2017-09-08 Keith Seitz <keiths@redhat.com>
1804
1805 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
1806 field.
1807
1808 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
1809
1810 * f-valprint.c (f_val_print): Remove check for one byte
1811 sized integers. Remove printing of character type.
1812
1813 2017-09-08 Frank Penczek <frank.penczek@intel.com>
1814 Christoph Weinmann <christoph.t.weinmann@intel.com>
1815 Bernhard Heckel <bernhard.heckel@intel.com>
1816
1817 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
1818 to maintain proper indentation when printing pointers/refs.
1819
1820 2017-09-07 Joel Brobecker <brobecker@adacore.com>
1821
1822 GDB 8.0.1 released.
1823
1824 2017-09-07 Joel Brobecker <brobecker@adacore.com>
1825
1826 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
1827
1828 2017-09-05 Tom Tromey <tom@tromey.com>
1829
1830 * parse.c (funcall_chain): Now a std::vector.
1831 (start_arglist, end_arglist): Simplify.
1832 (free_funcalls): Remove.
1833 (parse_exp_in_context_1): Remove cleanup.
1834
1835 2017-09-05 Tom Tromey <tom@tromey.com>
1836
1837 * go-exp.y (go_parse): Don't create a cleanup.
1838
1839 2017-09-05 Tom Tromey <tom@tromey.com>
1840
1841 * d-exp.y (PrimaryExpression): Use std::string.
1842 (d_parse): Don't create a cleanup.
1843
1844 2017-09-05 Tom Tromey <tom@tromey.com>
1845
1846 * utils.c (do_clear_parser_state): Remove.
1847 (make_cleanup_clear_parser_state): Remove.
1848 * p-exp.y (pascal_parse): Use scoped_restore.
1849 * m2-exp.y (m2_parse): Use scoped_restore.
1850 * f-exp.y (f_parse): Use scoped_restore.
1851 * d-exp.y (d_parse): Use scoped_restore.
1852 * c-exp.y (c_parse): Use scoped_restore.
1853 * ada-exp.y (ada_parse): Use scoped_restore.
1854 * utils.h (make_cleanup_clear_parser_state): Remove.
1855
1856 2017-09-06 Keith Seitz <keiths@redhat.com>
1857
1858 * dwarf2read.c (dw2_linkage_name_attr): New function.
1859 (dw2_linkage_name): New function.
1860 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
1861 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
1862 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
1863
1864 2017-09-06 Kamil Rytarowski <n54@gmx.com>
1865
1866 * config/djgpp/djconfig.sh: Correct shell portability issue.
1867
1868 2017-09-06 Kamil Rytarowski <n54@gmx.com>
1869
1870 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
1871
1872 2017-09-06 John Baldwin <jhb@FreeBSD.org>
1873
1874 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
1875 * NEWS: Mention new FreeBSD/mips native configuration.
1876 * configure.host: Add aarch64*-*-freebsd*.
1877 * configure.nat: Likewise.
1878 * aarch64-fbsd-nat.c: New file.
1879
1880 2017-09-06 John Baldwin <jhb@FreeBSD.org>
1881
1882 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
1883 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
1884 * NEWS: Mention new FreeBSD/aarch64 target.
1885 * configure.tgt: Add aarch64*-*-freebsd*.
1886 * aarch64-fbsd-tdep.c: New file.
1887 * aarch64-fbsd-tdep.h: New file.
1888
1889 2017-09-06 Kamil Rytarowski <n54@gmx.com>
1890
1891 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
1892
1893 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1894
1895 * parse.c (find_minsym_type_and_address): Don't relocate addresses
1896 of TLS symbols.
1897
1898 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1899
1900 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
1901 call.
1902
1903 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1904
1905 * infrun.c (follow_exec): Call add_thread after
1906 target_find_description.
1907
1908 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1909
1910 * infrun.c (handle_inferior_event_1): When exec'ing, read
1911 stop_pc after follow_exec.
1912
1913 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
1914
1915 * remote.c (process_g_packet): Update error message.
1916
1917 2017-09-05 Yao Qi <yao.qi@linaro.org>
1918
1919 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
1920 targets.
1921
1922 2017-09-05 Pedro Alves <palves@redhat.com>
1923
1924 * eval.c (eval_call, evaluate_funcall): New functions, factored
1925 out from ...
1926 (evaluate_subexp_standard): ... this.
1927
1928 2017-09-05 Yao Qi <yao.qi@linaro.org>
1929
1930 * amd64-tdep.c (amd64_target_description): Create target
1931 descriptions.
1932 (_initialize_amd64_tdep): Don't call functions
1933 initialize_tdesc_amd64_*. Add self tests.
1934 * arch/amd64.c (amd64_create_target_description): Add parameter
1935 is_linux. Call set_tdesc_osabi if is_linux is true.
1936 * arch/amd64.h (amd64_create_target_description): Update the
1937 declaration.
1938 * arch/i386.c (i386_create_target_description): Add parameter
1939 is_linux. Call set_tdesc_osabi if is_linux is true.
1940 * arch/i386.h (i386_create_target_description): Update
1941 declaration.
1942 * configure.tgt: Add i386.o to gdb_target_obs.
1943 * features/Makefile (XMLTOC): Remove i386/*.xml.
1944 * features/i386/amd64-avx-avx512.c: Remove.
1945 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
1946 * features/i386/amd64-avx-mpx.c: Remove.
1947 * features/i386/amd64-avx.c: Remove.
1948 * features/i386/amd64-mpx.c: Remove.
1949 * features/i386/amd64.c: Remove.
1950 * features/i386/i386-avx-avx512.c: Remove.
1951 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
1952 * features/i386/i386-avx-mpx.c: Remove.
1953 * features/i386/i386-avx.c: Remove.
1954 * features/i386/i386-mmx.c: Remove.
1955 * features/i386/i386-mpx.c: Remove.
1956 * features/i386/i386.c: Remove.
1957 * i386-tdep.c: Don't include features/i386/i386*.c., include
1958 target-descriptions.h and arch/i386.h.
1959 (i386_target_description): Create target descriptions.
1960 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
1961 functions. Do self tests.
1962
1963 2017-09-05 Yao Qi <yao.qi@linaro.org>
1964
1965 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
1966 * features/i386/amd64-avx-avx512-linux.c: Removed.
1967 * features/i386/amd64-avx-linux.c: Removed.
1968 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
1969 * features/i386/amd64-avx-mpx-linux.c: Removed.
1970 * features/i386/amd64-linux.c: Removed.
1971 * features/i386/amd64-mpx-linux.c: Removed.
1972 * features/i386/x32-avx-avx512-linux.c: Removed.
1973 * features/i386/x32-avx-linux.c: Removed.
1974 * features/i386/x32-linux.c: Removed.
1975
1976 2017-09-05 Yao Qi <yao.qi@linaro.org>
1977
1978 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
1979 features/i386/*.c.
1980 (amd64_linux_read_description): Call
1981 amd64_create_target_description.
1982 * arch/amd64.c: New file.
1983 * arch/amd64.h: New file.
1984 * configure.tgt (x86_64-*-linux*): Append amd64.o.
1985 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
1986
1987 2017-09-05 Yao Qi <yao.qi@linaro.org>
1988
1989 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
1990 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
1991 (amd64_linux_read_description): Create target descriptions.
1992 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
1993 functions. Add unit tests.
1994 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
1995 x32-core.xml.
1996 * features/i386/64bit-avx.c: Generated.
1997 * features/i386/64bit-avx512.c: Generated.
1998 * features/i386/64bit-core.c: Generated.
1999 * features/i386/64bit-linux.c: Generated.
2000 * features/i386/64bit-mpx.c: Generated.
2001 * features/i386/64bit-pkeys.c: Generated.
2002 * features/i386/64bit-segments.c: Generated.
2003 * features/i386/64bit-sse.c: Generated.
2004 * features/i386/x32-core.c: Generated.
2005 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
2006 c files for amd64-linux and x32-linux.
2007
2008 2017-09-05 Yao Qi <yao.qi@linaro.org>
2009
2010 * amd64-linux-tdep.c (amd64_linux_read_description): New
2011 function.
2012 (amd64_linux_core_read_description): Call
2013 amd64_linux_read_description.
2014 (amd64_linux_init_abi): Likewise.
2015 (amd64_x32_linux_init_abi): Likewise.
2016 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
2017 * x86-linux-nat.c (x86_linux_read_description): Call
2018 amd64_linux_read_description.
2019
2020 2017-09-05 Yao Qi <yao.qi@linaro.org>
2021
2022 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
2023 comments.
2024
2025 2017-09-05 Yao Qi <yao.qi@linaro.org>
2026
2027 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
2028 * features/i386/i386-avx-avx512-linux.c: Remove.
2029 * features/i386/i386-avx-linux.c: Remove.
2030 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
2031 * features/i386/i386-avx-mpx-linux.c: Remove.
2032 * features/i386/i386-linux.c: Remove.
2033 * features/i386/i386-mmx-linux.c: Remove.
2034 * features/i386/i386-mpx-linux.c: Remove.
2035
2036 2017-09-05 Yao Qi <yao.qi@linaro.org>
2037
2038 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
2039 (SFILES): Add arch/i386.c.
2040 (HFILES_NO_SRCDIR): Add arch/i386.h.
2041 * arch/i386.c: New file.
2042 * arch/i386.h: New file.
2043 * arch/tdesc.h (allocate_target_description): Declare.
2044 (set_tdesc_architecture): Declare.
2045 (set_tdesc_osabi): Declare.
2046 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
2047 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
2048 include arch/i386.h.
2049 (i386_linux_read_description): Remove code and call
2050 i386_create_target_description.
2051 (set_tdesc_architecture): New function.
2052 (set_tdesc_osabi): New function.
2053 * target-descriptions.h (allocate_target_description): Remove.
2054
2055 2017-09-05 Yao Qi <yao.qi@linaro.org>
2056
2057 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
2058 * target-descriptions.c (tdesc_create_feature): Likewise, and
2059 adjust code.
2060 * features/i386/32bit-avx.c: Re-generated.
2061 * features/i386/32bit-avx512.c: Re-generated.
2062 * features/i386/32bit-core.c: Re-generated.
2063 * features/i386/32bit-linux.c: Re-generated.
2064 * features/i386/32bit-mpx.c: Re-generated.
2065 * features/i386/32bit-pkeys.c: Re-generated.
2066 * features/i386/32bit-sse.c: Re-generated.
2067
2068 2017-09-05 Yao Qi <yao.qi@linaro.org>
2069
2070 * regformats/regdef.h (struct reg): Override operator == and !=.
2071
2072 2017-09-05 Yao Qi <yao.qi@linaro.org>
2073
2074 * arch/tdesc.h: New file.
2075 * regformats/regdat.sh: Generate code using tdesc_create_reg.
2076 * target-descriptions.c: Update comments.
2077 * target-descriptions.h: Include "arch/tdesc.h". Remove the
2078 declarations.
2079 * features/i386/32bit-avx.c: Re-generated.
2080 * features/i386/32bit-avx512.c: Re-generated.
2081 * features/i386/32bit-core.c: Re-generated.
2082 * features/i386/32bit-linux.c: Re-generated.
2083 * features/i386/32bit-mpx.c: Re-generated.
2084 * features/i386/32bit-pkeys.c: Re-generated.
2085 * features/i386/32bit-sse.c: Re-generated.
2086
2087 2017-09-05 Yao Qi <yao.qi@linaro.org>
2088
2089 * regformats/regdat.sh: Update generated code.
2090
2091 2017-09-05 Yao Qi <yao.qi@linaro.org>
2092
2093 * regformats/regdat.sh: Adjust code order.
2094
2095 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
2096
2097 * expprint.c (dump_subexp_body_standard): Use constant format
2098 string in fprintf_filtered call.
2099
2100 2017-09-04 John Baldwin <jhb@FreeBSD.org>
2101
2102 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
2103 NetBSD/i386.
2104 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
2105
2106 2017-09-04 John Baldwin <jhb@FreeBSD.org>
2107
2108 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
2109
2110 2017-09-04 John Baldwin <jhb@FreeBSD.org>
2111
2112 * bsd-kvm.o: Define _KMEMUSER.
2113 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
2114 * configure: Regenerate.
2115
2116 2017-09-04 John Baldwin <jhb@FreeBSD.org>
2117
2118 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
2119 * i386-fbsd-nat.c: Likewise.
2120
2121 2017-09-04 John Baldwin <jhb@FreeBSD.org>
2122
2123 * unittests/array-view-selftests.c: Add include of <array>.
2124
2125 2017-09-04 John Baldwin <jhb@FreeBSD.org>
2126
2127 * spu-tdep.c (flush_ea_cache): Add missing argument to
2128 call_function_by_hand.
2129
2130 2017-09-04 Pedro Alves <palves@redhat.com>
2131
2132 * NEWS (Safer support for debugging with no debug info): New.
2133
2134 2017-09-04 Pedro Alves <palves@redhat.com>
2135
2136 * c-exp.y (function_method, function_method_void): Add current
2137 instance flags to TYPE_INSTANCE.
2138 * dwarf2read.c (check_modifier): New.
2139 (compute_delayed_physnames): Assert that only C++ adds delayed
2140 physnames. Mark fn_fields as const/volatile depending on
2141 physname.
2142 * eval.c (make_params): New type_instance_flags parameter. Use
2143 it as the new type's instance flags.
2144 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
2145 flags element and pass it to make_params.
2146 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
2147 instance flags element.
2148 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
2149 * gdbtypes.h: Include "enum-flags.h".
2150 (type_instance_flags): New enum-flags type.
2151 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
2152 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
2153 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
2154 (follow_type_instance_flags): New function.
2155 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
2156 * parser-defs.h (follow_type_instance_flags): Declare.
2157 * valops.c (value_struct_elt_for_reference): const/volatile must
2158 match too.
2159
2160 2017-09-04 Pedro Alves <palves@redhat.com>
2161
2162 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
2163 function/method scopes; lookup the nested name as a function local
2164 static variable.
2165
2166 2017-09-04 Pedro Alves <palves@redhat.com>
2167
2168 (%type <voidval>): Add function_method.
2169 * c-exp.y (exp): New production for calls with no arguments.
2170 (function_method, function_method_void_or_typelist): New
2171 productions.
2172 (exp): New production for "method()::static_var".
2173 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
2174 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2175 Handle OP_FUNC_STATIC_VAR.
2176 * parse.c (operator_length_standard):
2177 Handle OP_FUNC_STATIC_VAR.
2178
2179 2017-09-04 Pedro Alves <palves@redhat.com>
2180
2181 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
2182 handling.
2183 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2184 Ditto.
2185 * parse.c (operator_length_standard, operator_check_standard):
2186 Ditto.
2187 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
2188
2189 2017-09-04 Pedro Alves <palves@redhat.com>
2190
2191 * ax-gdb.c: Include "typeprint.h".
2192 (gen_expr_for_cast): New function.
2193 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
2194 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
2195 type is unknown.
2196 * dwarf2read.c (new_symbol_full): Fallback to int instead of
2197 nodebug_data_symbol.
2198 * eval.c: Include "typeprint.h".
2199 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
2200 Error out if symbol has unknown type.
2201 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
2202 evaluate_subexp_for_cast.
2203 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
2204 OP_VAR_MSYM_VALUE.
2205 (evaluate_subexp_for_cast): New function.
2206 * gdbtypes.c (init_nodebug_var_type): New function.
2207 (objfile_type): Use it to initialize types of variables with no
2208 debug info.
2209 * typeprint.c (error_unknown_type): New.
2210 * typeprint.h (error_unknown_type): New declaration.
2211 * compile/compile-c-types.c (convert_type_basic): Handle
2212 TYPE_CODE_ERROR; warn and fallback to int for variables with
2213 unknown type.
2214
2215 2017-09-04 Pedro Alves <palves@redhat.com>
2216
2217 * eval.c (evaluate_var_value): New function, factored out from ...
2218 (evaluate_subexp_standard): ... here.
2219
2220 2017-09-04 Pedro Alves <palves@redhat.com>
2221
2222 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
2223 Remove useless assignments to 'op'.
2224
2225 2017-09-04 Pedro Alves <palves@redhat.com>
2226
2227 * eval.c (eval_skip_value): New function.
2228 (evaluate_subexp_standard): Use it.
2229
2230 2017-09-04 Pedro Alves <palves@redhat.com>
2231
2232 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
2233 function name from symbol/minsym and pass it to
2234 error_call_unknown_return_type.
2235
2236 2017-09-04 Pedro Alves <palves@redhat.com>
2237
2238 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
2239 * ax-gdb.c (gen_msym_var_ref): New function.
2240 (gen_expr): Handle OP_VAR_MSYM_VALUE.
2241 * eval.c (evaluate_var_msym_value): New function.
2242 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
2243 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
2244 to call_function_by_hand.
2245 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2246 Handle OP_VAR_MSYM_VALUE.
2247 (union exp_element) <msymbol>: New field.
2248 * minsyms.h (struct type): Forward declare.
2249 (find_minsym_type_and_address): Declare.
2250 * parse.c (write_exp_elt_msym): New function.
2251 (write_exp_msymbol): Delete, refactored as ...
2252 (find_minsym_type_and_address): ... this new function.
2253 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
2254 (operator_length_standard, operator_check_standard): Handle
2255 OP_VAR_MSYM_VALUE.
2256 * std-operator.def (OP_VAR_MSYM_VALUE): New.
2257
2258 2017-09-04 Pedro Alves <palves@redhat.com>
2259
2260 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
2261 TYPE_GNU_IFUNC specially here. Throw error if return type is
2262 unknown.
2263 * ada-typeprint.c (print_func_type): Handle functions with unknown
2264 return type.
2265 * c-typeprint.c (c_type_print_base): Handle functions and methods
2266 with unknown return type.
2267 * compile/compile-c-symbols.c (convert_symbol_bmsym)
2268 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
2269 * compile/compile-c-types.c: Include "objfiles.h".
2270 (convert_func): For functions with unknown return type, warn and
2271 default to int.
2272 * compile/compile-object-run.c (compile_object_run): Adjust call
2273 to call_function_by_hand_dummy.
2274 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
2275 call_function_by_hand.
2276 * eval.c (evaluate_subexp_standard): Adjust calls to
2277 call_function_by_hand. Handle functions and methods with unknown
2278 return type. Pass expect_type to call_function_by_hand.
2279 * f-typeprint.c (f_type_print_base): Handle functions with unknown
2280 return type.
2281 * gcore.c (call_target_sbrk): Adjust call to
2282 call_function_by_hand.
2283 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
2284 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
2285 an integer address type instead of nodebug.
2286 * guile/scm-value.c (gdbscm_value_call): Adjust call to
2287 call_function_by_hand.
2288 * infcall.c (error_call_unknown_return_type): New function.
2289 (call_function_by_hand): New "default_return_type" parameter.
2290 Pass it down.
2291 (call_function_by_hand_dummy): New "default_return_type"
2292 parameter. Use it instead of defaulting to int. If there's no
2293 default and the return type is unknown, throw an error. If
2294 there's a default return type, and the called function has no
2295 debug info, then assume the function is prototyped.
2296 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
2297 New "default_return_type" parameter.
2298 (error_call_unknown_return_type): New declaration.
2299 * linux-fork.c (call_lseek): Cast return type of lseek.
2300 (inferior_call_waitpid, checkpoint_command): Adjust calls to
2301 call_function_by_hand.
2302 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
2303 calls to call_function_by_hand.
2304 * m2-typeprint.c (m2_procedure): Handle functions with unknown
2305 return type.
2306 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2307 (value_nsstring, print_object_command): Adjust calls to
2308 call_function_by_hand.
2309 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
2310 functions with unknown return type.
2311 (pascal_type_print_func_varspec_suffix): New function.
2312 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
2313 TYPE_CODE_METHOD>: Use it.
2314 * python/py-value.c (valpy_call): Adjust call to
2315 call_function_by_hand.
2316 * rust-lang.c (rust_evaluate_funcall): Adjust call to
2317 call_function_by_hand.
2318 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
2319 call_function_by_hand.
2320 * valops.c (value_allocate_space_in_inferior): Adjust call to
2321 call_function_by_hand.
2322 * typeprint.c (type_print_unknown_return_type): New function.
2323 * typeprint.h (type_print_unknown_return_type): New declaration.
2324
2325 2017-09-04 Pedro Alves <palves@redhat.com>
2326
2327 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
2328 types with more than one parameter as prototyped.
2329
2330 2017-09-04 Pedro Alves <palves@redhat.com>
2331
2332 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
2333 (disassemble_command): Use gdb_disassembly_flags instead of bare
2334 int.
2335 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
2336 (dump_insns, do_mixed_source_and_assembly_deprecated)
2337 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
2338 Use gdb_disassembly_flags instead of bare int.
2339 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
2340 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
2341 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
2342 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
2343 (enum gdb_disassembly_flag): ... values of this new enumeration.
2344 (gdb_disassembly_flags): Define.
2345 (gdb_disassembly)
2346 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
2347 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
2348 gdb_disassembly_flags instead of bare int.
2349 * record-btrace.c (btrace_insn_history)
2350 (record_btrace_insn_history, record_btrace_insn_history_range)
2351 (record_btrace_insn_history_from): Use gdb_disassembly_flags
2352 instead of bare int.
2353 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
2354 Use gdb_disassembly_flags instead of bare int.
2355 * target-debug.h (target_debug_print_gdb_disassembly_flags):
2356 Define.
2357 * target-delegates.c: Regenerate.
2358 * target.c (target_insn_history, target_insn_history_from)
2359 (target_insn_history_range): Use gdb_disassembly_flags instead of
2360 bare int.
2361 * target.h: Include "disasm.h".
2362 (struct target_ops) <to_insn_history, to_insn_history_from,
2363 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
2364 int.
2365 (target_insn_history, target_insn_history_from)
2366 (target_insn_history_range): Use gdb_disassembly_flags instead of
2367 bare int.
2368
2369 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2370
2371 * cli/cli-script.c (build_command_line): For if/while commands,
2372 check whether args is empty.
2373
2374 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2375
2376 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
2377 (enum command_control_type): Likewise.
2378 (struct command_line): Likewise.
2379 (free_command_lines): Likewise.
2380 (struct command_lines_deleter): Likewise.
2381 (command_line_up): Likewise.
2382 (read_command_lines): Likewise.
2383 (read_command_lines_1): Likewise.
2384 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
2385 (enum command_control_type): Likewise.
2386 (struct command_line): Likewise.
2387 (free_command_lines): Likewise.
2388 (struct command_lines_deleter): Likewise.
2389 (command_line_up): Likewise.
2390 (read_command_lines): Likewise.
2391 (read_command_lines_1): Likewise.
2392 * breakpoint.h: Include cli/cli-script.h.
2393 * extension-priv.h: Likewise.
2394 * gdbcmd.h: Likewise.
2395
2396 2017-09-04 Pedro Alves <palves@redhat.com>
2397
2398 * ada-lang.c (is_known_support_routine): Move sal declaration to
2399 where it is initialized.
2400 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
2401 (parse_breakpoint_sals, decode_static_tracepoint_spec)
2402 (clear_command, update_static_tracepoint): Remove init_sal
2403 references. Move declarations closer to initializations.
2404 * cli/cli-cmds.c (list_command): Move sal declarations closer to
2405 initializations.
2406 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
2407 references. Move sal declarations closer to initializations.
2408 * frame.c (find_frame_sal): Return a symtab_and_line via function
2409 return instead of output parameter. Remove init_sal references.
2410 * frame.h (find_frame_sal): Return a symtab_and_line via function
2411 return instead of output parameter.
2412 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
2413 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
2414 instead of memset.
2415 (gdbscm_find_pc_line): Remove init_sal reference.
2416 * infcall.c (call_function_by_hand_dummy): Remove init_sal
2417 references. Move declarations closer to initializations.
2418 * infcmd.c (set_step_frame): Update. Move declarations closer to
2419 initializations.
2420 (finish_backward): Remove init_sal references. Move declarations
2421 closer to initializations.
2422 * infrun.c (process_event_stop_test, handle_step_into_function)
2423 (insert_hp_step_resume_breakpoint_at_frame)
2424 (insert_step_resume_breakpoint_at_caller): Likewise.
2425 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
2426 (symbol_to_sal): Likewise.
2427 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
2428 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
2429 to its initialization.
2430 * reverse.c (save_bookmark_command): Use new/delete. Remove
2431 init_sal references. Move declarations closer to initializations.
2432 * source.c (get_current_source_symtab_and_line): Remove brace
2433 initialization.
2434 (set_current_source_symtab_and_line): Now takes the sal by const
2435 reference. Remove brace initialization.
2436 (line_info): Remove init_sal reference.
2437 * source.h (set_current_source_symtab_and_line): Now takes a
2438 symtab_and_line via const reference.
2439 * stack.c (set_current_sal_from_frame): Adjust.
2440 (print_frame_info): Adjust.
2441 (get_last_displayed_sal): Return the sal via function return
2442 instead of via output parameter. Simplify.
2443 (frame_info): Adjust.
2444 * stack.h (get_last_displayed_sal): Return the sal via function
2445 return instead of via output parameter.
2446 * symtab.c (init_sal): Delete.
2447 (find_pc_sect_line): Remove init_sal references. Move
2448 declarations closer to initializations.
2449 (find_function_start_sal): Remove init_sal references. Move
2450 declarations closer to initializations.
2451 * symtab.h (struct symtab_and_line): In-class initialize all
2452 fields.
2453 * tracepoint.c (set_traceframe_context)
2454 (print_one_static_tracepoint_marker): Remove init_sal references.
2455 Move declarations closer to initializations.
2456 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
2457 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
2458 declarations closer to initializations.
2459 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
2460 init_sal references. Adjust.
2461
2462 2017-09-04 Pedro Alves <palves@redhat.com>
2463
2464 * ax-gdb.c (agent_command_1): Use range-for.
2465 * break-catch-throw.c (re_set_exception_catchpoint): Update.
2466 * breakpoint.c: Include "common/array-view.h".
2467 (init_breakpoint_sal, create_breakpoint_sal): Change sals
2468 parameter from struct symtabs_and_lines to
2469 array_view<symtab_and_line>. Adjust. Use range-for. Update.
2470 (breakpoint_sals_to_pc): Change sals parameter from struct
2471 symtabs_and_lines to std::vector reference.
2472 (check_fast_tracepoint_sals): Change sals parameter from struct
2473 symtabs_and_lines to std::array_view. Use range-for.
2474 (decode_static_tracepoint_spec): Return a std::vector instead of
2475 symtabs_and_lines. Update.
2476 (create_breakpoint): Update.
2477 (break_range_command, until_break_command, clear_command): Update.
2478 (base_breakpoint_decode_location, bkpt_decode_location)
2479 (bkpt_probe_create_sals_from_location)
2480 (bkpt_probe_decode_location, tracepoint_decode_location)
2481 (tracepoint_probe_decode_location)
2482 (strace_marker_create_sals_from_location): Return a std::vector
2483 instead of symtabs_and_lines.
2484 (strace_marker_create_breakpoints_sal): Update.
2485 (strace_marker_decode_location): Return a std::vector instead of
2486 symtabs_and_lines. Update.
2487 (update_breakpoint_locations): Change struct symtabs_and_lines
2488 parameters to gdb::array_view. Adjust.
2489 (location_to_sals): Return a std::vector instead of
2490 symtabs_and_lines. Update.
2491 (breakpoint_re_set_default): Use std::vector instead of struct
2492 symtabs_and_lines.
2493 (decode_location_default): Return a std::vector instead of
2494 symtabs_and_lines. Update.
2495 * breakpoint.h: Include "common/array-view.h".
2496 (struct breakpoint_ops) <decode_location>: Now returns a
2497 std::vector instead of returning a symtabs_and_lines via output
2498 parameter.
2499 (update_breakpoint_locations): Change sals parameters to use
2500 gdb::array_view.
2501 * cli/cli-cmds.c (edit_command, list_command): Update to use
2502 std::vector and gdb::array_view.
2503 (ambiguous_line_spec): Adjust to use gdb::array_view and
2504 range-for.
2505 (compare_symtabs): Rename to ...
2506 (cmp_symtabs): ... this. Change parameters to symtab_and_line
2507 const reference and adjust.
2508 (filter_sals): Rewrite using std::vector and standard algorithms.
2509 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
2510 (jump_command): Update to use std::vector.
2511 * linespec.c (struct linespec_state) <canonical_names>: Update
2512 comment.
2513 (add_sal_to_sals_basic): Delete.
2514 (add_sal_to_sals, filter_results, convert_results_to_lsals)
2515 (decode_line_2, create_sals_line_offset)
2516 (convert_address_location_to_sals, convert_linespec_to_sals)
2517 (convert_explicit_location_to_sals, parse_linespec)
2518 (event_location_to_sals, decode_line_full, decode_line_1)
2519 (decode_line_with_current_source)
2520 (decode_line_with_last_displayed, decode_objc)
2521 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
2522 (linespec_result::~linespec_result): Adjust to use std::vector
2523 instead of symtabs_and_lines.
2524 * linespec.h (linespec_sals::sals): Now a std::vector.
2525 (struct linespec_result): Use std::vector, bool, and in-class
2526 initialization.
2527 (decode_line_1, decode_line_with_current_source)
2528 (decode_line_with_last_displayed): Return std::vector.
2529 * macrocmd.c (info_macros_command): Use std::vector.
2530 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
2531 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
2532 std::vector.
2533 * probe.h (parse_probes): Return a std::vector.
2534 * python/python.c (gdbpy_decode_line): Use std::vector and
2535 gdb::array_view.
2536 * source.c (select_source_symtab, line_info): Use std::vector.
2537 * stack.c (func_command): Use std::vector.
2538 * symtab.h (struct symtabs_and_lines): Delete.
2539 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
2540
2541 2017-09-04 Pedro Alves <palves@redhat.com>
2542
2543 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2544 unittests/array-view-selftests.c.
2545 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
2546 * common/array-view.h: New file.
2547 * unittests/array-view-selftests.c: New file.
2548
2549 2017-09-04 Pedro Alves <palves@redhat.com>
2550
2551 * cli/cli-cmds.c (edit_command): Pass message to
2552 ambiguous_line_spec.
2553 (list_command): Pass message to ambiguous_line_spec. Say
2554 "first"/"last" instead of "start" and "end" to be consistent with
2555 the manual.
2556 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
2557 them to print formatted message.
2558
2559 2017-09-04 Pedro Alves <palves@redhat.com>
2560
2561 * btrace.c (ftrace_add_pt): Pass btrace_insn to
2562 ftrace_update_insns by reference instead of pointer.
2563
2564 2017-09-04 Yao Qi <yao.qi@linaro.org>
2565
2566 * i386-go32-tdep.c: Include x86-xstate.h.
2567 (i386_go32_init_abi): Call i386_target_description.
2568 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
2569 if xcr0 is X86_XSTATE_X87_MASK.
2570 * i386-tdep.h (tdesc_i386): Remove the declaration.
2571 (tdesc_i386_mmx): Likewise.
2572
2573 2017-09-04 Yao Qi <yao.qi@linaro.org>
2574
2575 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
2576 X86_XSTATE_SSE_MASK instead of 0.
2577
2578 2017-09-04 Yao Qi <yao.qi@linaro.org>
2579
2580 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
2581 i386_target_description.
2582 * i386-fbsd-nat.c (i386fbsd_read_description): Call
2583 i386_target_description.
2584 * i386-tdep.c (i386_gdbarch_init): Likewise.
2585
2586 2017-09-04 Yao Qi <yao.qi@linaro.org>
2587
2588 * amd64-darwin-tdep.c: Include "x86-xstate.h".
2589 (x86_darwin_init_abi_64): Call amd64_target_description.
2590 * amd64-dicos-tdep.c: Likewise.
2591 * amd64-fbsd-nat.c: Likewise.
2592 * amd64-fbsd-tdep.c: Likewise.
2593 * amd64-nbsd-tdep.c: Likewise.
2594 * amd64-obsd-tdep.c: Likewise.
2595 * amd64-sol2-tdep.c: Likewise.
2596 * amd64-windows-tdep.c: Likewise.
2597 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
2598
2599 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
2600
2601 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
2602 (btrace_function) <insn>: Change type to use std::vector.
2603 * btrace.c (ftrace_debug, ftrace_call_num_insn,
2604 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
2605 ftrace_update_insns, ftrace_compute_global_level_offset,
2606 btrace_stitch_bts, btrace_clear, btrace_insn_get,
2607 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
2608 change to std::vector.
2609 (ftrace_update_insns): Adjust to change to std::vector, change
2610 type of INSN parameter.
2611 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
2612 * record-btrace.c (btrace_call_history_insn_range,
2613 btrace_compute_src_line_range,
2614 record_btrace_frame_prev_register): Adjust to change to
2615 std::vector.
2616 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
2617 to change to std::vector.
2618
2619 2017-09-03 Tom Tromey <tom@tromey.com>
2620
2621 * corefile.c (reopen_exec_file): Use std::string.
2622
2623 2017-09-03 Tom Tromey <tom@tromey.com>
2624
2625 * compile/compile.c (compile_register_name_mangled): Return
2626 std::string.
2627 * compile/compile-loc2c.c (pushf_register_address): Update.
2628 (pushf_register): Update.
2629 * compile/compile-c-types.c (convert_array): Update.
2630 * compile/compile-c-symbols.c (generate_vla_size): Update.
2631 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
2632 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
2633 (convert_one_symbol): Update.
2634 (generate_c_for_for_one_variable): Update.
2635 * compile/compile-c-support.c (c_get_range_decl_name): Return a
2636 std::string.
2637 (generate_register_struct): Update.
2638 * compile/compile-internal.h (c_get_range_decl_name): Return a
2639 std::string.
2640 (compile_register_name_mangled): Return std::string.
2641
2642 2017-09-03 Tom Tromey <tom@tromey.com>
2643
2644 * utils.c (perror_string): Return a std::string.
2645 (throw_perror_with_name, perror_warning_with_name): Update.
2646
2647 2017-09-03 Tom Tromey <tom@tromey.com>
2648
2649 * demangle.c (demangle_command): Use std::string,
2650 unique_xmalloc_ptr.
2651
2652 2017-09-03 Tom Tromey <tom@tromey.com>
2653
2654 * cli/cli-setshow.c (do_set_command): Use std::string.
2655
2656 2017-09-03 Tom Tromey <tom@tromey.com>
2657
2658 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
2659
2660 2017-09-03 Tom Tromey <tom@tromey.com>
2661
2662 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
2663
2664 2017-09-03 Tom Tromey <tom@tromey.com>
2665
2666 * mi/mi-cmd-env.c (env_execute_cli_command): Use
2667 gdb::unique_xmalloc_ptr.
2668
2669 2017-09-03 Tom Tromey <tom@tromey.com>
2670
2671 * thread.c (print_thread_info_1): Use string_printf.
2672 (thread_apply_command, thread_apply_all_command): Use
2673 std::string.
2674
2675 2017-09-03 Tom Tromey <tom@tromey.com>
2676
2677 * valprint.c (val_print_string): Update.
2678 * gdbcore.h (memory_error_message): Return std::string.
2679 * corefile.c (memory_error_message): Return std::string.
2680 (memory_error): Update.
2681 * breakpoint.c (insert_bp_location): Update.
2682
2683 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
2684
2685 * target/waitstatus.h (target_waitstatus_to_string): Change
2686 return type to std::string.
2687 * target/waitstatus.c (target_waitstatus_to_string): Return
2688 std::string.
2689 * target.h (target_waitstatus_to_string): Remove declaration.
2690 * infrun.c (resume, clear_proceed_status_thread,
2691 print_target_wait_results, do_target_wait, save_waitstatus,
2692 stop_all_threads): Adjust.
2693 * record-btrace.c (record_btrace_wait): Adjust.
2694 * target-debug.h
2695 (target_debug_print_struct_target_waitstatus_p): Adjust.
2696
2697 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2698
2699 PR gdb/22046
2700 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
2701 detection.
2702
2703 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
2704
2705 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
2706 for setting/unsetting environment variables on the remote target.
2707 (New remote packets): Add entries for QEnvironmentHexEncoded,
2708 QEnvironmentUnset and QEnvironmentReset.
2709 * common/environ.c (gdb_environ::operator=): Extend method to
2710 handle m_user_set_env_list and m_user_unset_env_list.
2711 (gdb_environ::clear): Likewise.
2712 (match_var_in_string): Change type of first parameter from 'char
2713 *' to 'const char *'.
2714 (gdb_environ::set): Extend method to handle
2715 m_user_set_env_list and m_user_unset_env_list.
2716 (gdb_environ::unset): Likewise.
2717 (gdb_environ::clear_user_set_env): New method.
2718 (gdb_environ::user_set_envp): Likewise.
2719 (gdb_environ::user_unset_envp): Likewise.
2720 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
2721 m_user_unset_env_list on move constructor/assignment.
2722 (unset): Add new default parameter 'update_unset_list = true'.
2723 (clear_user_set_env): New method.
2724 (user_set_envp): Likewise.
2725 (user_unset_envp): Likewise.
2726 (m_user_set_env_list): New std::set.
2727 (m_user_unset_env_list): Likewise.
2728 * common/rsp-low.c (hex2str): New function.
2729 (bin2hex): New overload for bin2hex function.
2730 * common/rsp-low.c (hex2str): New prototype.
2731 (str2hex): New overload prototype.
2732 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
2733 QEnvironmentUnset and QEnvironmentReset.
2734 (remote_protocol_features): Add QEnvironmentHexEncoded,
2735 QEnvironmentUnset and QEnvironmentReset packets.
2736 (send_environment_packet): New function.
2737 (extended_remote_environment_support): Likewise.
2738 (extended_remote_create_inferior): Call
2739 extended_remote_environment_support.
2740 (_initialize_remote): Add QEnvironmentHexEncoded,
2741 QEnvironmentUnset and QEnvironmentReset packet configs.
2742 * unittests/environ-selftests.c (gdb_selftest_env_var):
2743 New variable.
2744 (test_vector_initialization): New function.
2745 (test_init_from_host_environ): Likewise.
2746 (test_reinit_from_host_environ): Likewise.
2747 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
2748 Likewise.
2749 (test_unset_set_empty_vector): Likewise.
2750 (test_vector_clear): Likewise.
2751 (test_std_move): Likewise.
2752 (test_move_constructor):
2753 (test_self_move): Likewise.
2754 (test_set_unset_reset): Likewise.
2755 (run_tests): Rewrite in terms of the functions above.
2756
2757 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
2758
2759 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
2760 (adi_available): Use a temp variable of type CORE_ADDR as argument
2761 3 when calling target_auxv_search.
2762 (adi_normalize_address): Use masks and xor operators to calculate
2763 normalized address.
2764 (adi_read_versions, adi_write_versions, adi_print_versions)
2765 (do_examine, do_assign): Use paddress.
2766
2767 2017-08-29 John Baldwin <jhb@FreeBSD.org>
2768
2769 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
2770 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
2771 out of loop and add supply of FIR.
2772 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
2773 add collect of FIR.
2774
2775 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
2776
2777 PR gdb/21827
2778 * cli/cli-script.c (define_command): Don't convert command name
2779 to lower case.
2780
2781 2017-08-25 Joel Brobecker <brobecker@adacore.com>
2782
2783 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
2784 Update all callers accordingly. Remove all code blocks handling
2785 the case where DISPP is not NULL.
2786
2787 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2788
2789 PR symtab/22003
2790 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
2791 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
2792 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
2793
2794 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2795
2796 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
2797 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
2798 (read_comp_units_from_section): New parameter abbrev_section, use
2799 read_and_check_comp_unit_head, allocate signatured_type if needed.
2800 (create_all_comp_units): Update read_comp_units_from_section caller.
2801
2802 2017-08-23 Pedro Alves <palves@redhat.com>
2803
2804 PR remote/21852
2805 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
2806 to null_ptid and switch to thread without reading the registers
2807 after adding the inferior.
2808
2809 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2810
2811 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
2812 compile-gcc.
2813 * compile/compile.c (compile_gcc, show_compile_gcc): New.
2814 (compile_to_object): Implement compile_gcc.
2815 (_initialize_compile): Install "set compile-gcc". Initialize
2816 compile_gcc.
2817
2818 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2819
2820 * compile/compile.c (compile_to_object): Conditionally call
2821 set_verbose. Conditionally call compile or compile_v0.
2822
2823 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
2824
2825 * sparc64-tdep.h: (adi_normalize_address): New export.
2826 * sparc-nat.h: (open_adi_tag_fd): New export.
2827 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
2828 * sparc64-linux-tdep.c:
2829 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
2830 (sparc64_linux_handle_segmentation_fault): New function.
2831 (sparc64_linux_init_abi): Register
2832 sparc64_linux_handle_segmentation_fault
2833 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
2834 (sparc64_addr_bits_remove): New function.
2835 (sparc64_init_abi): Register sparc64_addr_bits_remove.
2836 (MAX_PROC_NAME_SIZE): New macro.
2837 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
2838 (sparc64adilist): New variable.
2839 (adi_proc_list): New variable.
2840 (find_adi_info): New function.
2841 (add_adi_info): New function.
2842 (get_adi_info_proc): New function.
2843 (get_adi_info): New function.
2844 (info_adi_command): New function.
2845 (read_maps_entry): New function.
2846 (adi_available): New function.
2847 (adi_normalize_address): New function.
2848 (adi_align_address): New function.
2849 (adi_convert_byte_count): New function.
2850 (adi_tag_fd): New function.
2851 (adi_is_addr_mapped): New function.
2852 (adi_read_versions): New function.
2853 (adi_write_versions): New function.
2854 (adi_print_versions): New function.
2855 (do_examine): New function.
2856 (do_assign): New function.
2857 (adi_examine_command): New function.
2858 (adi_assign_command): New function.
2859 (_initialize_sparc64_adi_tdep): New function.
2860
2861 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
2862
2863 * breakpoint.c (breakpoints_info): Rename to ...
2864 (info_breakpoints_command): ... this.
2865 (watchpoints_info): Rename to ...
2866 (info_watchpoints_command): ... this.
2867 (tracepoints_info): Rename to ...
2868 (info_tracepoints_command): ... this.
2869 (_initialize_breakpoint): Adjust.
2870 * dcache.c (dcache_info): Rename to ...
2871 (info_display_command): ... this.
2872 (_initialize_dcache): Adjust.
2873 * frame.h (args_info): Rename to ...
2874 (info_args_command): ... this.
2875 (locals_info): Rename to ...
2876 (info_locals_command): ... this.
2877 * infcmd.c (nofp_registers_info): Rename to ...
2878 (info_registers_command): ... this.
2879 (float_info): Rename to ...
2880 (info_float_command): ... this.
2881 (program_info): Rename to ...
2882 (info_program_command): ... this.
2883 (all_registers_info): Rename to ...
2884 (info_all_registers_command): ... this.
2885 (vector_info): Rename to ...
2886 (info_vector_command): ... this.
2887 (float_info): Rename to ...
2888 (info_float_command): ... this.
2889 (_initialize_infcmd): Adjust.
2890 * inferior.h (term_info): Rename to ...
2891 (info_terminal_command): ... this.
2892 * inflow.c (term_info): Rename to ...
2893 (info_terminal_command): ... this.
2894 (_initialize_inflow): Adjust.
2895 * infrun.c (signals_info): Rename to ...
2896 (info_signals_command): ... this.
2897 (_initialize_infrun): Adjust.
2898 * objc-lang.c (classes_info): Rename to ...
2899 (info_classes_command): ... this.
2900 (selectors_info): Rename to ...
2901 (info_selectors_command): ... this.
2902 (_initialize_objc_language): Adjust.
2903 * printcmd.c (sym_info): Rename to ...
2904 (info_symbol_command): ... this.
2905 (address_info): Rename to ...
2906 (info_address_command): ... this.
2907 (display_info): Rename to ...
2908 (info_display_command): ... this.
2909 (_initialize_printcmd): Adjust.
2910 * reverse.c (bookmarks_info): Rename to ...
2911 (info_breakpoints_command): ... this.
2912 (_initialize_reverse): Adjust.
2913 * ser-go32.c (dos_info): Rename to ...
2914 (info_serial_command): ... this.
2915 (_initialize_ser_dos): Adjust.
2916 * skip.c (skip_info): Rename to ...
2917 (info_skip_command): ... this.
2918 (_initialize_step_skip): Adjust.
2919 * source.c (line_info): Rename to ...
2920 (info_line_command): ... this.
2921 (source_info): Rename to ...
2922 (info_source_command)
2923 * stack.c (frame_info): Rename to ...
2924 (info_frame_command): ... this.
2925 (locals_info): Rename to ...
2926 (info_locals_command): ... this.
2927 (args_info): Rename to ...
2928 (info_args_command): ... this.
2929 (_initialize_stack): Adjust.
2930 * symtab.c (sources_info): Rename to ...
2931 (info_sources_command): ... this.
2932 (variables_info): Rename to ...
2933 (info_variables_command): ... this.
2934 (functions_info): Rename to ...
2935 (info_functions_command): ... this.
2936 (types_info): Rename to ...
2937 (info_types_command): ... this.
2938 (_initialize_symtab): Adjust.
2939 * target.c (target_info): Rename to ...
2940 (info_target_command): ... this.
2941 (initialize_targets): Adjust.
2942 * tracepoint.c (tvariables_info): Rename to ...
2943 (info_tvariables_command): ... this.
2944 (scope_info): Rename to ...
2945 (info_scope_command): ... this.
2946 (trace_dump_actions): Adjust.
2947 (_initialize_tracepoint): Adjust.
2948
2949 2017-08-22 Tom Tromey <tom@tromey.com>
2950
2951 * breakpoint.h (install_breakpoint): Update.
2952 * breakpoint.c (add_solib_catchpoint): Update.
2953 (install_breakpoint): Change argument to a std::unique_ptr.
2954 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
2955 (create_breakpoint_sal, create_breakpoint): Update.
2956 (watch_command_1, catch_exec_command_1)
2957 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
2958 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
2959 Return the breakpoint.
2960 (set_raw_breakpoint_without_location, set_raw_breakpoint)
2961 (new_single_step_breakpoint): Update.
2962 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
2963 std::unique_ptr.
2964 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
2965 std::unique_ptr.
2966 * break-catch-sig.c (create_signal_catchpoint): Use
2967 std::unique_ptr.
2968 * ada-lang.c (create_ada_exception_catchpoint): Use
2969 std::unique_ptr.
2970
2971 2017-08-22 Tom Tromey <tom@tromey.com>
2972
2973 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
2974
2975 2017-08-22 Tom Tromey <tom@tromey.com>
2976
2977 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
2978 (lookup_partial_symbol): Update.
2979
2980 2017-08-22 Tom Tromey <tom@tromey.com>
2981
2982 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
2983 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
2984 (find_and_open_source, symtab_to_fullname): Update.
2985 * psymtab.c (psymtab_to_fullname): Update.
2986
2987 2017-08-22 Tom Tromey <tom@tromey.com>
2988
2989 * exec.c (exec_file_attach): Update.
2990 * linux-thread-db.c (try_thread_db_load): Update.
2991 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
2992 * utils.c (gdb_realpath): Change return type.
2993 (gdb_realpath_keepfile): Update.
2994 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
2995 (_initialize_utils): Register the new self test.
2996 * source.c (openp): Update.
2997 (find_and_open_source): Update.
2998 * nto-tdep.c (nto_find_and_open_solib): Update.
2999 * main.c (set_gdb_data_directory): Update.
3000 (captured_main_1): Update.
3001 * dwarf2read.c (dwarf2_get_dwz_file): Update
3002 (dw2_map_symbol_filenames): Update.
3003 * auto-load.c (auto_load_safe_path_vec_update): Update.
3004 (filename_is_in_auto_load_safe_path_vec): Change type of
3005 "filename_realp".
3006 (auto_load_objfile_script): Update.
3007 (file_is_auto_load_safe): Update. Use std::string.
3008 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
3009
3010 2017-08-22 Tom Tromey <tom@tromey.com>
3011
3012 * utils.c (gdb_realpath_keepfile): Return a
3013 gdb::unique_xmalloc_ptr.
3014 * exec.c (exec_file_attach): Update.
3015 * utils.h (gdb_realpath_keepfile): Return a
3016 gdb::unique_xmalloc_ptr.
3017
3018 2017-08-22 Tom Tromey <tom@tromey.com>
3019
3020 * compile/compile.c (compile_file_command): Use
3021 gdb::unique_xmalloc_ptr, std::string.
3022 * utils.c (gdb_abspath): Change return type.
3023 * source.c (openp): Update.
3024 * objfiles.c (allocate_objfile): Update.
3025 * main.c (set_gdb_data_directory): Update.
3026 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
3027
3028 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
3029
3030 * cli-cmds.c (list_commands): List actual code around more than
3031 one location.
3032
3033 2017-08-21 John Baldwin <jhb@FreeBSD.org>
3034
3035 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
3036
3037 2017-08-21 Pedro Alves <palves@redhat.com>
3038
3039 PR gdb/19487
3040 * c-exp.y (variable production): Handle function aliases.
3041 * minsyms.c (msymbol_is_text): New function.
3042 * minsyms.h (msymbol_is_text): Declare.
3043 * symtab.c (find_function_alias_target): New function.
3044 * symtab.h (find_function_alias_target): Declare.
3045
3046 2017-08-21 Pedro Alves <palves@redhat.com>
3047
3048 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
3049 typedefs.
3050 * typeprint.c (whatis_exp): If handling "whatis", and expression
3051 is OP_TYPE, strip one typedef level. Otherwise don't strip
3052 typedefs here.
3053 * valops.c (value_cast): Save "to" type before resolving
3054 stubs/typedefs. Use that type as resulting value's type.
3055
3056 2017-08-18 Tom Tromey <tom@tromey.com>
3057 Pedro Alves <palves@redhat.com>
3058
3059 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
3060 * sol-thread.c (sol_thread_resume, sol_thread_wait)
3061 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
3062 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
3063 * proc-service.c (ps_xfer_memory): Use scoped_restore.
3064 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
3065 (linux_get_siginfo_data): Add "thread" argument. Use
3066 scoped_restore.
3067 * linux-nat.c (linux_child_follow_fork)
3068 (check_stopped_by_watchpoint): Use scoped_restore.
3069 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
3070 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
3071 (restore_inferior_ptid, save_inferior_ptid): Remove.
3072 * btrace.c (btrace_fetch): Use scoped_restore.
3073 * bsd-uthread.c (bsd_uthread_fetch_registers)
3074 (bsd_uthread_store_registers): Use scoped_restore.
3075 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
3076 scoped_restore.
3077 * aix-thread.c (aix_thread_resume, aix_thread_wait)
3078 (aix_thread_xfer_partial): Use scoped_restore.
3079 * inferior.h (save_inferior_ptid): Remove.
3080
3081 2017-08-18 Yao Qi <yao.qi@linaro.org>
3082
3083 PR tdep/21818
3084 * arm-tdep.c (gdb_print_insn_arm): Mark
3085 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
3086
3087 2017-08-18 Yao Qi <yao.qi@linaro.org>
3088
3089 * NEWS: Mention GDBserver's new option "--selftest".
3090 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
3091 * selftest.c: Move it to common/selftest.c.
3092 * selftest.h: Move it to common/selftest.h.
3093 * selftest-arch.c (reset): New function.
3094 (tests_with_arch): Call reset.
3095
3096 2017-08-18 Yao Qi <yao.qi@linaro.org>
3097
3098 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
3099 instead of exception_fprintf and printf_filtered.
3100
3101 2017-08-18 Yao Qi <yao.qi@linaro.org>
3102
3103 * selftest.c (register_self_test): Rename it to
3104 selftests::register_test.
3105 (run_self_tests): selftest::run_tests.
3106 * selftest.h: Update declarations.
3107 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
3108 selftests::register_test_foreach_arch.
3109 * selftest-arch.h: Update declaration.
3110 * aarch64-tdep.c: Update.
3111 * arm-tdep.c: Likewise.
3112 * disasm-selftests.c: Likewise.
3113 * dwarf2loc.c: Likewise.
3114 * dwarf2-frame.c: Likewise.
3115 * findvar.c: Likewise.
3116 * gdbarch-selftests.c: Likewise.
3117 * maint.c (maintenance_selftest): Likewise.
3118 * regcache.c: Likewise.
3119 * rust-exp.y: Likewise.
3120 * selftest-arch.c: Likewise.
3121 * unittests/environ-selftests.c: Likewise.
3122 * unittests/function-view-selftests.c: Likewise.
3123 * unittests/offset-type-selftests.c: Likewise.
3124 * unittests/optional-selftests.c: Likewise.
3125 * unittests/scoped_restore-selftests.c: Likewise.
3126 * utils-selftests.c: Likewise.
3127
3128 2017-08-17 Pedro Alves <palves@redhat.com>
3129
3130 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
3131 local.
3132
3133 2017-08-17 Pedro Alves <palves@redhat.com>
3134
3135 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
3136 field.
3137 (reset_die_in_process): Delete, replaced by ...
3138 (process_die_scope): ... this new class. Make it responsible for
3139 freeing cu->line_header too.
3140 (process_die): Use process_die_scope.
3141 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
3142 cu->line_header_die_owner. Don't release the line header if it's
3143 owned by the CU.
3144 (setup_type_unit_groups): Make the CU/DIE own the line header.
3145 Don't release the line header here.
3146
3147 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
3148
3149 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
3150
3151 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
3152
3153 * NEWS: Mention new shortcuts for nexti and stepi in TUI
3154 Single-Key mode
3155
3156 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
3157
3158 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
3159 mode command list.
3160
3161 2017-08-15 Stafford Horne <shorne@gmail.com>
3162
3163 * MAINTAINERS (Write After Approval): Add Stafford Horne.
3164
3165 2017-08-15 Stafford Horne <shorne@gmail.com>
3166
3167 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
3168
3169 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
3170
3171 PR gdb/21954
3172 * infcmd.c (unset_environment_command): Use the 'clear' method on
3173 the environment instead of resetting it.
3174
3175 2017-08-15 John Baldwin <jhb@FreeBSD.org>
3176
3177 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
3178 platforms.
3179
3180 2017-08-14 Tom Tromey <tom@tromey.com>
3181
3182 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
3183 (print_binary_chars): Likewise.
3184 (BITS_IN_BYTES): Remove.
3185
3186 2017-08-14 Tom Tromey <tom@tromey.com>
3187
3188 PR gdb/21675
3189 * valprint.c (LOW_ZERO): Change value to 034.
3190 (print_octal_chars): Add static_asserts for octal constants.
3191 * printcmd.c (print_scalar_formatted): Add 'd' case.
3192
3193 2017-08-11 Tom Tromey <tom@tromey.com>
3194
3195 * symfile.c (add_symbol_file_command): Use std::vector.
3196
3197 2017-08-14 Tom Tromey <tom@tromey.com>
3198
3199 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
3200 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
3201 std::move.
3202 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
3203
3204 2017-08-11 Pedro Alves <palves@redhat.com>
3205
3206 * infrun.c (process_event_stop_test): Adjust
3207 function_name_is_marked_for_skip call.
3208 * skip.c: Include <list>.
3209 (skiplist_entry): Make it a class with private fields, and
3210 getters/setters.
3211 (skiplist_entry_chain): Delete.
3212 (skiplist_entries): New.
3213 (skiplist_entry_count): Delete.
3214 (highest_skiplist_entry_num): New.
3215 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
3216 (add_skiplist_entry): Delete.
3217 (skiplist_entry::skiplist_entry): New.
3218 (skiplist_entry::add_entry): New.
3219 (skip_file_command, skip_function): Adjust.
3220 (compile_skip_regexp): Delete.
3221 (skip_command): Don't compile regexp here. Adjust to use
3222 skiplist_entry::add_entry.
3223 (skip_info): Adjust to use range-for and getters.
3224 (skip_enable_command, skip_disable_command): Adjust to use
3225 range-for and setters.
3226 (skip_delete_command): Adjust to use std::list.
3227 (add_skiplist_entry): Delete.
3228 (skip_file_p): Delete, refactored as ...
3229 (skiplist_entry::do_skip_file_p): ... this new method.
3230 (skip_gfile_p): Delete, refactored as ...
3231 (skiplist_entry::do_gskip_file_p): ... this new method.
3232 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
3233 (skiplist_entry::skip_function_p): ... this new method.
3234 (function_name_is_marked_for_skip): Now returns bool, and takes
3235 the function sal by const reference. Adjust to use range-for and
3236 skiplist_entry methods.
3237 (_initialize_step_skip): Remove references to
3238 skiplist_entry_chain, skiplist_entry_count.
3239 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
3240 takes the function sal by const reference.
3241
3242 2017-08-11 Yao Qi <yao.qi@linaro.org>
3243
3244 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
3245 (dwarf2_frame_cache): Remove reset_cache_cleanup.
3246 (dwarf2_frame_cache):
3247 * frame-unwind.c (frame_unwind_try_unwinder): Catch
3248 RETURN_MASK_ALL and set *this_case to NULL.
3249 * frame-unwind.h: Update comments.
3250
3251 2017-08-11 Yao Qi <yao.qi@linaro.org>
3252
3253 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
3254 (dwarf2_frame_state_copy_regs): Remove.
3255 (dwarf2_frame_state_free_regs): Remove.
3256 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
3257 (dwarf2_restore_rule): Call method .alloc_regs instead of
3258 dwarf2_frame_state_alloc_regs.
3259 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
3260 constructor. Call std::move.
3261 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
3262 (dwarf2_frame_cache): Likewise.
3263
3264 [GDB_SELF_TEST]: Include selftest.h and
3265 selftest-arch.h.
3266 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
3267 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
3268 execute_cfa_program_test.
3269
3270 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
3271 copy ctor, assignment operator, move assignment.
3272 <alloc_regs>: New method.
3273 <swap>: New method.
3274 (struct dwarf2_frame_state): Delete dtor.
3275 (dwarf2_frame_state_alloc_regs): Remove declaration.
3276 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
3277 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
3278
3279 2017-08-11 Yao Qi <yao.qi@linaro.org>
3280
3281 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
3282 (dwarf2_frame_state::dwarf2_frame_state): New.
3283 (dwarf2_frame_state::~dwarf2_frame_state): New.
3284 (dwarf2_fetch_cfa_info): Update.
3285 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
3286 rather than a pointer. Update code.
3287 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
3288 dtor.
3289 <data_align, code_align, retaddr_column>: Change them to const.
3290 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
3291 to bool.
3292
3293 2017-08-11 Yao Qi <yao.qi@linaro.org>
3294
3295 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
3296 <loc.exp>: New field.
3297 * dwarf2-frame.c (execute_cfa_program): Update.
3298 (dwarf2_frame_prev_register): Update.
3299
3300 2017-08-10 Pedro Alves <palves@redhat.com>
3301
3302 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
3303
3304 2017-08-09 John Baldwin <jhb@FreeBSD.org>
3305
3306 * fbsd-nat.c (struct fbsd_fork_info): Remove.
3307 (fbsd_pending_children): Use std::list.
3308 (fbsd_remember_child): Likewise.
3309 (fbsd_is_child_pending): Likewise.
3310 (fbsd_pending_vfork_done): Use std::forward_list.
3311 (fbsd_add_vfork_done): Likewise.
3312 (fbsd_is_vfork_done_pending): Likewise.
3313 (fbsd_next_vfork_done): Likewise.
3314
3315 2017-08-09 John Baldwin <jhb@FreeBSD.org>
3316
3317 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
3318 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
3319 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
3320 for `mapfilename'.
3321 (fbsd_xfer_partial): Use gdb::byte_vector.
3322 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
3323
3324 2017-08-09 John Baldwin <jhb@FreeBSD.org>
3325
3326 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
3327 "filestuff.h".
3328 (fbsd_find_memory_regions): Fix `mapfile' initialization.
3329
3330 2017-08-09 Tom Tromey <tom@tromey.com>
3331
3332 * skip.c (skiplist_entry): New constructor.
3333 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
3334 (skiplist_entry::file_is_glob): Now bool.
3335 (skiplist_entry::file, skiplist_entry::function): Now
3336 std::string.
3337 (make_skip_entry): Return a unique_ptr. Use new.
3338 (free_skiplist_entry, free_skiplist_entry_cleanup)
3339 (make_free_skiplist_entry_cleanup): Remove.
3340 (skip_command, skip_disable_command, add_skiplist_entry)
3341 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
3342 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
3343 (function_name_is_marked_for_skip): Update.
3344 (skip_delete_command): Update. Use delete.
3345
3346 2017-08-09 Jiong Wang <jiong.wang@arm.com>
3347
3348 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
3349 (aarch64_linux_core_read_description): New function.
3350 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
3351
3352 2017-08-09 Pedro Alves <palves@redhat.com>
3353
3354 * cp-name-parser.y (cp_comp_to_string): Return a
3355 gdb::unique_xmalloc_ptr<char>.
3356 * cp-support.c (replace_typedefs_qualified_name)
3357 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
3358 (cp_canonicalize_string_full): Use op= instead of explicit
3359 convertion.
3360 (cp_class_name_from_physname, method_name_from_physname)
3361 (cp_func_name, cp_remove_params): Adjust to use
3362 gdb::unique_xmalloc_ptr<char>.
3363 * cp-support.h (cp_comp_to_string): Return a
3364 gdb::unique_xmalloc_ptr<char>.
3365 * python/py-type.c (typy_lookup_type): Adjust to use
3366 gdb::unique_xmalloc_ptr<char>.
3367
3368 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
3369
3370 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
3371
3372 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
3373 Yao Qi <yao.qi@linaro.org>
3374
3375 * cp-support.c (cp_canonicalize_string_full): Use
3376 gdb::unique_xmalloc_ptr<char>.
3377 (cp_canonicalize_string): Likewise.
3378
3379 2017-08-09 Yao Qi <yao.qi@linaro.org>
3380
3381 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
3382 * regformats/i386/amd64-avx-avx512.dat: Remove.
3383 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
3384 * regformats/i386/amd64-avx-mpx.dat:Remove.
3385 * regformats/i386/amd64-avx.dat: Remove.
3386 * regformats/i386/amd64-mpx.dat: Remove.
3387 * regformats/i386/i386-avx-avx512.dat: Remove.
3388 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
3389 * regformats/i386/i386-avx-mpx.dat: Remove.
3390 * regformats/i386/i386-mmx.dat: Remove.
3391 * regformats/i386/i386-mpx.dat: Remove.
3392
3393 2017-08-09 Yao Qi <yao.qi@linaro.org>
3394
3395 * amd64-tdep.h (tdesc_x32): Remove the declaration.
3396 * amd64-tdep.c: Don't include features/i386/x32*.c.
3397 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
3398 functions.
3399 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
3400 and i386/x32-avx-avx512.
3401 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
3402 and i386/x32.xml.
3403 * features/i386/x32-avx-avx512.c: Removed.
3404 * features/i386/x32-avx-avx512.xml: Removed.
3405 * features/i386/x32-avx.c: Removed.
3406 * features/i386/x32-avx.xml: Removed.
3407 * features/i386/x32.c: Removed.
3408 * features/i386/x32.xml: Removed.
3409 * regformats/i386/x32-avx-avx512.dat: Removed.
3410 * regformats/i386/x32-avx.dat: Removed.
3411 * regformats/i386/x32.dat: Removed.
3412
3413 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3414
3415 PR breakpoints/21886
3416 * mem-break.c (default_memory_insert_breakpoint): Use
3417 `->placed_address' rather than `->reqstd_address' for the
3418 breakpoint location.
3419
3420 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3421
3422 * arch-utils.c (default_print_insn): Remove arch/mach/endian
3423 assertions.
3424
3425 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
3426
3427 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
3428 a union of `tdep_info', `tdesc_data' and `id'.
3429 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
3430 rather than `info.tdep_info'.
3431 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
3432 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
3433 * i386-tdep.c (i386_gdbarch_init): Likewise.
3434 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
3435 * mips-tdep.c (mips_gdbarch_init): Likewise.
3436 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
3437 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3438 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
3439 `info.tdep_info'.
3440 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
3441 `info.tdep_info'.
3442 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
3443 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
3444 `info.tdep_info'.
3445 * spu-tdep.c (spu_gdbarch_init): Likewise.
3446 * gdbarch.h: Regenerate.
3447
3448 2017-08-07 Leszek Swirski <leszeks@google.com>
3449
3450 PR symtab/20899
3451 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
3452
3453 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
3454
3455 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
3456 (gdbsim_open): Rename gdb_argv args object to argv.
3457
3458 2017-08-05 Tom Tromey <tom@tromey.com>
3459
3460 * compile/compile-object-load.c (compile_object_load): Use
3461 gdb::unique_xmalloc_ptr.
3462 * cli/cli-dump.c (scan_filename): Rename from
3463 scan_filename_with_cleanup. Change return type.
3464 (scan_expression): Rename from scan_expression_with_cleanup.
3465 Change return type.
3466 (dump_memory_to_file, dump_value_to_file, restore_command):
3467 Use gdb::unique_xmalloc_ptr. Update.
3468 * cli/cli-cmds.c (find_and_open_script): Use
3469 gdb::unique_xmalloc_ptr.
3470 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
3471 * symmisc.c (maintenance_print_symbols)
3472 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
3473 * symfile.c (symfile_bfd_open, generic_load)
3474 (add_symbol_file_command, remove_symbol_file_command): Use
3475 gdb::unique_xmalloc_ptr.
3476 * source.c (openp): Use gdb::unique_xmalloc_ptr.
3477 * psymtab.c (maintenance_print_psymbols): Use
3478 gdb::unique_xmalloc_ptr.
3479 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
3480 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
3481 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
3482 (reload_shared_libraries_1): Likewise.
3483
3484 2017-08-05 Tom Tromey <tom@tromey.com>
3485
3486 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
3487 (rust_op_vector, rust_set_vector): New typedefs.
3488 (current_parser): New global.
3489 (work_obstack): Change to pointer type. Update all users.
3490 (rust_ast, pstate): Remove globals.
3491 (struct rust_parser): New.
3492 (%union) <params, field_inits>: Change type.
3493 (start, tuple_expr, unit_expr, struct_expr_list, literal)
3494 (field_expr, expr_list, maybe_expr_list, type_list): Update.
3495 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
3496 (convert_params_to_types, convert_params_to_expression): Change
3497 type of "params".
3498 (ast_string): Change type of "fields".
3499 (rust_parse): Make a rust_parser. Remove cleanups.
3500 (rust_lex_tests): Make and install an auto_obstack.
3501
3502 2017-08-04 Yao Qi <yao.qi@linaro.org>
3503
3504 * configure.srv (ipa_x32_linux_regobj): New.
3505 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
3506 instead of X86_TDESC_AVX512.
3507 (initialize_low_tracepoint): Call
3508 init_registers_x32_avx_avx512_linux.
3509
3510 2017-08-04 Yao Qi <yao.qi@linaro.org>
3511
3512 * utils.h (gdb_argv): Add namespace std for nullptr_t.
3513
3514 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
3515
3516 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
3517
3518 2017-08-03 Tom Tromey <tom@tromey.com>
3519
3520 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
3521 Remove.
3522 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
3523
3524 2017-08-03 Tom Tromey <tom@tromey.com>
3525
3526 * python/py-param.c (compute_enum_values): Use gdb_argv.
3527
3528 2017-08-03 Tom Tromey <tom@tromey.com>
3529
3530 * utils.h (struct gdb_argv_deleter): New.
3531 (gdb_argv): New class.
3532 * utils.c (gdb_argv::reset): New method.
3533 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
3534 * tracefile.c (tsave_command): Use gdb_argv.
3535 * top.c (new_ui_command): Use gdb_argv.
3536 * symmisc.c (maintenance_print_symbols)
3537 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
3538 * symfile.c (symbol_file_command, generic_load)
3539 (remove_symbol_file_command): Use gdb_argv.
3540 * stack.c (backtrace_command): Use gdb_argv.
3541 * source.c (add_path, show_substitute_path_command)
3542 (unset_substitute_path_command, set_substitute_path_command):
3543 Use gdb_argv.
3544 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
3545 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
3546 * remote.c (extended_remote_run, remote_put_command)
3547 (remote_get_command, remote_delete_command): Use gdb_argv.
3548 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
3549 (gdbsim_open): Use gdb_argv.
3550 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
3551 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
3552 * procfs.c (procfs_info_proc): Use gdb_argv.
3553 * interps.c (interpreter_exec_cmd): Use gdb_argv.
3554 * infrun.c (handle_command): Use gdb_argv.
3555 * inferior.c (add_inferior_command, clone_inferior_command):
3556 Use gdb_argv.
3557 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
3558 * exec.c (exec_file_command): Use gdb_argv.
3559 * cli/cli-cmds.c (alias_command): Use gdb_argv.
3560 * compile/compile.c (build_argc_argv): Use gdb_argv.
3561
3562 2017-08-03 Tom Tromey <tom@tromey.com>
3563
3564 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
3565
3566 2017-08-03 Tom Tromey <tom@tromey.com>
3567
3568 * python/python.c (compute_python_string): Return std::string.
3569 (gdbpy_eval_from_control_command): Update.
3570 (do_start_initialization): Use std::string.
3571 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
3572 xstrprintf.
3573 * python/py-breakpoint.c (local_setattro): Use string_printf, not
3574 xstrprintf.
3575
3576 2017-08-03 Tom Tromey <tom@tromey.com>
3577
3578 * top.h (do_restore_instream_cleanup): Remove.
3579 * top.c (do_restore_instream_cleanup): Remove.
3580 (read_command_file): Use scoped_restore.
3581 * cli/cli-script.c (execute_user_command): Use scoped_restore.
3582
3583 2017-08-03 Tom Tromey <tom@tromey.com>
3584
3585 * cli/cli-script.c (execute_user_command)
3586 (execute_control_command): Use scoped_restore.
3587
3588 2017-08-03 Tom Tromey <tom@tromey.com>
3589
3590 * cli/cli-script.c (do_restore_user_call_depth): Remove.
3591 (execute_user_command): Remove user_call_depth; use
3592 user_args_stack's size instead.
3593
3594 2017-08-03 Tom Tromey <tom@tromey.com>
3595
3596 * top.h (in_user_command): Remove.
3597 * top.c (in_user_command): Remove.
3598 * cli/cli-script.c (do_restore_user_call_depth)
3599 (execute_user_command): Update.
3600
3601 2017-08-03 Tom Tromey <tom@tromey.com>
3602
3603 * valops.c (search_struct_method): Use gdb::byte_vector.
3604 * valarith.c (value_concat): Use std::vector.
3605 * target.c (memory_xfer_partial): Use gdb::byte_vector.
3606 (simple_search_memory): Likewise.
3607 * printcmd.c (find_string_backward): Use gdb::byte_vector.
3608 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
3609 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
3610 * elfread.c (elf_rel_plt_read): Use std::string.
3611 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
3612 * cli/cli-dump.c (restore_section_callback): Use
3613 gdb::byte_vector.
3614
3615 2017-08-03 Tom Tromey <tom@tromey.com>
3616
3617 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
3618
3619 2017-08-03 Tom Tromey <tom@tromey.com>
3620
3621 * tui/tui-regs.c (tui_restore_gdbout): Remove.
3622 (tui_register_format): Use scoped_restore.
3623
3624 2017-08-03 Tom Tromey <tom@tromey.com>
3625
3626 * reverse.c (exec_direction_default): Remove.
3627 (exec_reverse_once): Use scoped_restore.
3628 * remote.c (restore_remote_timeout): Remove.
3629 (remote_flash_erase, remote_flash_write, remote_flash_done)
3630 (readchar, remote_serial_write): Use scoped_restore.
3631 * cli/cli-script.c (struct source_cleanup_lines_args)
3632 (source_cleanup_lines): Remove.
3633 (script_from_file): Use scoped_restore.
3634 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
3635 (source_command): Use scoped_restore.
3636
3637 2017-08-03 Tom Tromey <tom@tromey.com>
3638
3639 * utils.h (make_cleanup_free_so): Remove.
3640 * utils.c (do_free_so, make_cleanup_free_so): Remove.
3641 * solist.h (struct so_deleter): New.
3642 (so_list_up): New typedef.
3643 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
3644
3645 2017-08-03 Tom Tromey <tom@tromey.com>
3646
3647 * utils.h (make_cleanup_restore_current_language): Remove.
3648 * utils.c (do_restore_current_language)
3649 (make_cleanup_restore_current_language): Remove.
3650 * parse.c (parse_exp_in_context_1)
3651 (parse_expression_with_language): Use
3652 scoped_restore_current_language.
3653 * mi/mi-main.c (mi_cmd_execute): Use
3654 scoped_restore_current_language.
3655 * language.h (scoped_restore_current_language): New class.
3656
3657 2017-08-03 Tom Tromey <tom@tromey.com>
3658
3659 * compile/compile.c (cleanup_unlink_file): Remove.
3660 (compile_to_object): Use gdb::unlinker.
3661 (eval_compile_command): Likewise.
3662
3663 2017-08-03 Tom Tromey <tom@tromey.com>
3664
3665 * utils.h (make_cleanup_fclose): Remove.
3666 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
3667
3668 2017-08-03 Tom Tromey <tom@tromey.com>
3669
3670 * top.c (open_terminal_stream): Return gdb_file_up.
3671 (new_ui_command): Update.
3672
3673 2017-08-03 Tom Tromey <tom@tromey.com>
3674
3675 * source.c (print_source_lines_base, forward_search_command)
3676 (reverse_search_command): Use gdb_file_up.
3677
3678 2017-08-03 Tom Tromey <tom@tromey.com>
3679
3680 * fbsd-nat.c (fbsd_find_memory_regions): Update.
3681
3682 2017-08-03 Tom Tromey <tom@tromey.com>
3683
3684 * cli/cli-cmds.c (find_and_open_script): Change return type.
3685 Remove "streamp" and "full_path" parameters.
3686 (source_script_with_search): Update.
3687 * auto-load.c (source_script_file): Update.
3688 * cli/cli-cmds.h (find_and_open_script): Change type.
3689 (open_script): New struct.
3690
3691 2017-08-03 Tom Tromey <tom@tromey.com>
3692
3693 * xml-support.c (xml_fetch_content_from_file): Update.
3694 * ui-file.c (stdio_file::open): Update.
3695 * tracefile-tfile.c (tfile_start): Update.
3696 * remote.c (remote_file_put, remote_file_get): Update.
3697 * nat/linux-procfs.c (linux_proc_get_int)
3698 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
3699 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
3700 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
3701 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
3702 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
3703 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
3704 * linux-nat.c (linux_proc_pending_signals): Update.
3705 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
3706 (file_closer): Remove.
3707 * compile/compile.c (compile_to_object): Update.
3708 * common/filestuff.h (struct gdb_file_deleter): New.
3709 (gdb_file_up): New typedef.
3710 (gdb_fopen_cloexec): Change return type.
3711 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
3712 * cli/cli-dump.c (fopen_with_cleanup): Remove.
3713 (dump_binary_file, restore_binary_file): Update.
3714 * auto-load.c (auto_load_objfile_script_1): Update.
3715
3716 2017-08-03 Tom Tromey <tom@tromey.com>
3717
3718 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
3719 (info_static_tracepoint_markers_command): Likewise.
3720 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
3721 * skip.c (skip_info): Use ui_out_emit_table.
3722 * progspace.c (print_program_space): Use ui_out_emit_table.
3723 * osdata.c (info_osdata): Use ui_out_emit_table.
3724 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
3725 ui_out_emit_table.
3726 * linux-thread-db.c (info_auto_load_libthread_db): Use
3727 ui_out_emit_table.
3728 * inferior.c (print_inferior): Use ui_out_emit_table.
3729 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
3730 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
3731 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
3732 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
3733 * ui-out.h (class ui_out_emit_table): New.
3734
3735 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
3736
3737 * mips-tdep.c (mips_fpu_type_str): New function.
3738 (mips_dump_tdep): Call it.
3739
3740 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
3741
3742 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
3743 `->mips_fpu_type'.
3744
3745 2017-07-31 Xavier Roirand <roirand@adacore.com>
3746
3747 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3748
3749 2017-07-27 Xavier Roirand <roirand@adacore.com>
3750
3751 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
3752
3753 2017-07-26 Yao Qi <yao.qi@linaro.org>
3754
3755 * cli/cli-cmds.c (maintenancechecklist): New variable.
3756 * gdbcmd.h (maintenancechecklist): Declare it.
3757 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
3758 Call i386_linux_read_description with different masks.
3759 * maint.c (maintenance_check_command): New function.
3760 (_initialize_maint_cmds): Call add_prefix_cmd.
3761 * target-descriptions.c (tdesc_reg): override operator != and ==.
3762 (tdesc_type): Likewise.
3763 (tdesc_feature): Likewise.
3764 (target_desc): Likewise.
3765 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
3766 (maintenance_check_xml_descriptions): New function.
3767 (_initialize_target_descriptions) Add command "xml-descriptions".
3768 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
3769
3770 2017-07-26 Yao Qi <yao.qi@linaro.org>
3771
3772 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
3773 Include features/i386/32bit-*.c.
3774 (i386_linux_read_description): Generate target description if it
3775 doesn't exist.
3776 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
3777 functions.
3778 * features/i386/32bit-linux.c: Re-generated.
3779 * features/i386/32bit-sse.c: Likewise.
3780 * target-descriptions.c (print_c_feature::visit): Print code to
3781 set register number if needed.
3782 (print_c_feature) <m_next_regnum>: New field.
3783
3784 2017-07-26 Yao Qi <yao.qi@linaro.org>
3785
3786 * features/Makefile (CFILES): Rename with TDESC_CFILES.
3787 (FEATURE_XMLFILES): New.
3788 (FEATURE_CFILES): New.
3789 New rules.
3790 (clean-cfiles): Remove generated c files.
3791 * features/i386/32bit-avx.c: Generated.
3792 * features/i386/32bit-avx512.c: Generated.
3793 * features/i386/32bit-core.c: Generated.
3794 * features/i386/32bit-linux.c: Generated.
3795 * features/i386/32bit-mpx.c: Generated.
3796 * features/i386/32bit-pkeys.c: Generated.
3797 * features/i386/32bit-sse.c: Generated.
3798 * target-descriptions.c: Include algorithm.
3799 (tdesc_element_visitor): Add method visit_end.
3800 (print_c_tdesc): Implement visit_end.
3801 (print_c_tdesc:: m_filename_after_features): Move it to
3802 protected.
3803 (print_c_feature): New class.
3804 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
3805 name starts with "i386/32bit-".
3806
3807 2017-07-26 Yao Qi <yao.qi@linaro.org>
3808
3809 * target-descriptions.c (tdesc_element_visitor): New class.
3810 (tdesc_element): New class.
3811 (tdesc_reg): Inherit from tdesc_element.
3812 (tdesc_reg::accept): New function.
3813 (tdesc_type): Inherit from tdesc_element.
3814 (tdesc_type::accept): New function.
3815 (tdesc_feature): Inherit from tdesc_element.
3816 (tdesc_feature::accept): New function.
3817 (target_desc): Inherit from tdesc_element.
3818 (target_desc::target_desc): New.
3819 (target_desc::~target_desc): New.
3820 (target_desc::accept): New.
3821 (allocate_target_description): Use new.
3822 (free_target_description): Use delete.
3823 (print_c_tdesc): New class.
3824 (maint_print_c_tdesc_cmd): Adjust.
3825
3826 * features/aarch64.c: Re-generated.
3827 * features/arc-arcompact.c: Re-generated.
3828 * features/arc-v2.c: Re-generated.
3829 * features/arm/arm-with-iwmmxt.c: Re-generated.
3830 * features/arm/arm-with-m.c: Re-generated.
3831 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
3832 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
3833 * features/arm/arm-with-neon.c: Re-generated.
3834 * features/arm/arm-with-vfpv2.c: Re-generated.
3835 * features/arm/arm-with-vfpv3.c: Re-generated.
3836 * features/i386/amd64-avx-avx512.c: Re-generated.
3837 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
3838 * features/i386/amd64-avx.c: Re-generated.
3839 * features/i386/amd64-avx-linux.c: Re-generated.
3840 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
3841 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
3842 * features/i386/amd64-avx-mpx.c: Re-generated.
3843 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
3844 * features/i386/amd64.c: Re-generated.
3845 * features/i386/amd64-linux.c: Re-generated.
3846 * features/i386/amd64-mpx.c: Re-generated.
3847 * features/i386/amd64-mpx-linux.c: Re-generated.
3848 * features/i386/i386-avx-avx512.c: Re-generated.
3849 * features/i386/i386-avx-avx512-linux.c: Re-generated.
3850 * features/i386/i386-avx.c: Re-generated.
3851 * features/i386/i386-avx-linux.c: Re-generated.
3852 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
3853 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
3854 * features/i386/i386-avx-mpx.c: Re-generated.
3855 * features/i386/i386-avx-mpx-linux.c: Re-generated.
3856 * features/i386/i386.c: Re-generated.
3857 * features/i386/i386-linux.c: Re-generated.
3858 * features/i386/i386-mmx.c: Re-generated.
3859 * features/i386/i386-mmx-linux.c: Re-generated.
3860 * features/i386/i386-mpx.c: Re-generated.
3861 * features/i386/i386-mpx-linux.c: Re-generated.
3862 * features/i386/x32-avx-avx512.c: Re-generated.
3863 * features/i386/x32-avx-avx512-linux.c: Re-generated.
3864 * features/i386/x32-avx.c: Re-generated.
3865 * features/i386/x32-avx-linux.c: Re-generated.
3866 * features/i386/x32.c: Re-generated.
3867 * features/i386/x32-linux.c: Re-generated.
3868 * features/microblaze.c: Re-generated.
3869 * features/microblaze-with-stack-protect.c: Re-generated.
3870 * features/mips64-dsp-linux.c: Re-generated.
3871 * features/mips64-linux.c: Re-generated.
3872 * features/mips-dsp-linux.c: Re-generated.
3873 * features/mips-linux.c: Re-generated.
3874 * features/nds32.c: Re-generated.
3875 * features/nios2.c: Re-generated.
3876 * features/nios2-linux.c: Re-generated.
3877 * features/rs6000/powerpc-32.c: Re-generated.
3878 * features/rs6000/powerpc-32l.c: Re-generated.
3879 * features/rs6000/powerpc-403.c: Re-generated.
3880 * features/rs6000/powerpc-403gc.c : Re-generated.
3881 * features/rs6000/powerpc-405.c: Re-generated.
3882 * features/rs6000/powerpc-505.c: Re-generated.
3883 * features/rs6000/powerpc-601.c: Re-generated.
3884 * features/rs6000/powerpc-602.c: Re-generated.
3885 * features/rs6000/powerpc-603.c: Re-generated.
3886 * features/rs6000/powerpc-604.c: Re-generated.
3887 * features/rs6000/powerpc-64.c: Re-generated.
3888 * features/rs6000/powerpc-64l.c: Re-generated.
3889 * features/rs6000/powerpc-7400.c: Re-generated.
3890 * features/rs6000/powerpc-750.c: Re-generated.
3891 * features/rs6000/powerpc-860.c: Re-generated.
3892 * features/rs6000/powerpc-altivec32.c: Re-generated.
3893 * features/rs6000/powerpc-altivec32l.c: Re-generated.
3894 * features/rs6000/powerpc-altivec64.c: Re-generated.
3895 * features/rs6000/powerpc-altivec64l.c: Re-generated.
3896 * features/rs6000/powerpc-cell32l.c: Re-generated.
3897 * features/rs6000/powerpc-cell64l.c: Re-generated.
3898 * features/rs6000/powerpc-e500.c: Re-generated.
3899 * features/rs6000/powerpc-e500l.c: Re-generated.
3900 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
3901 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
3902 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
3903 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
3904 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
3905 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
3906 * features/rs6000/powerpc-vsx32.c: Re-generated.
3907 * features/rs6000/powerpc-vsx32l.c: Re-generated.
3908 * features/rs6000/powerpc-vsx64.c: Re-generated.
3909 * features/rs6000/powerpc-vsx64l.c: Re-generated.
3910 * features/rs6000/rs6000.c: Re-generated.
3911 * features/s390-linux32.c: Re-generated.
3912 * features/s390-linux32v1.c: Re-generated.
3913 * features/s390-linux32v2.c: Re-generated.
3914 * features/s390-linux64.c: Re-generated.
3915 * features/s390-linux64v1.c: Re-generated.
3916 * features/s390-linux64v2.c: Re-generated.
3917 * features/s390-te-linux64.c: Re-generated.
3918 * features/s390-tevx-linux64.c: Re-generated.
3919 * features/s390-vx-linux64.c: Re-generated.
3920 * features/s390x-linux64.c: Re-generated.
3921 * features/s390x-linux64v1.c: Re-generated.
3922 * features/s390x-linux64v2.c: Re-generated.
3923 * features/s390x-te-linux64.c: Re-generated.
3924 * features/s390x-tevx-linux64.c: Re-generated.
3925 * features/s390x-vx-linux64.c: Re-generated.
3926 * features/sparc/sparc32-solaris.c: Re-generated.
3927 * features/sparc/sparc64-solaris.c: Re-generated.
3928 * features/tic6x-c62x.c: Re-generated.
3929 * features/tic6x-c62x-linux.c: Re-generated.
3930 * features/tic6x-c64x.c: Re-generated.
3931 * features/tic6x-c64x-linux.c: Re-generated.
3932 * features/tic6x-c64xp.c: Re-generated.
3933 * features/tic6x-c64xp-linux.c: Re-generated.
3934
3935 2017-07-26 Yao Qi <yao.qi@linaro.org>
3936
3937 * i386-linux-tdep.c (i386_linux_read_description): New function.
3938 (i386_linux_core_read_description): Call
3939 i386_linux_read_description.
3940 * i386-linux-tdep.h (i386_linux_read_description): Declare.
3941 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
3942 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
3943 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
3944 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
3945 * x86-linux-nat.c (x86_linux_read_description): Call
3946 i386_linux_read_description.
3947
3948 2017-07-26 Yao Qi <yao.qi@linaro.org>
3949
3950 * NEWS: Mention it.
3951 * features/Makefile (%.c: %.xml): Pass the xml file name to
3952 command "maint print c-tdesc".
3953 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
3954 name from 'arg'.
3955
3956 2017-07-26 Yao Qi <yao.qi@linaro.org>
3957
3958 * target-descriptions.c (target_desc): Add ctor and dtor. Do
3959 in-class initialization.
3960 (tdesc_create_feature): Call new instead of XCNEW.
3961 (free_target_description): Ue delete.
3962
3963 2017-07-25 John Baldwin <jhb@FreeBSD.org>
3964
3965 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
3966
3967 2017-07-25 Yao Qi <yao.qi@linaro.org>
3968
3969 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
3970 constant.
3971 (amd64_x32_init_abi): Likewise.
3972 * amd64-tdep.h (amd64_init_abi): Update declaration.
3973 (amd64_x32_init_abi): Likewise.
3974
3975 2017-07-25 Yao Qi <yao.qi@linaro.org>
3976
3977 PR tdep/21717
3978 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
3979 condition for FPSCR.
3980 (arm_linux_store_inferior_registers): Likewise.
3981
3982 2017-07-22 Tom Tromey <tom@tromey.com>
3983
3984 * break-catch-syscall.c (struct catch_syscall_inferior_data)
3985 <syscalls_counts>: Now a std::vector.
3986 (get_catch_syscall_inferior_data): Use "new".
3987 (catch_syscall_inferior_data_cleanup): Use "delete".
3988 (insert_catch_syscall, remove_catch_syscall)
3989 (clear_syscall_counts): Update.
3990
3991 2017-07-22 Tom Tromey <tom@tromey.com>
3992
3993 * break-catch-syscall.c (syscall_catchpoint)
3994 <syscalls_to_be_caught>: Now a std::vector<int>
3995 (~syscall_catchpoint): Remove.
3996 (insert_catch_syscall, remove_catch_syscall)
3997 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
3998 (print_mention_catch_syscall, print_recreate_catch_syscall):
3999 Update.
4000 (create_syscall_event_catchpoint): Change type of "filter"
4001 parameter.
4002 (catch_syscall_split_args): Return a std::vector.
4003 (catch_syscall_command_1, catching_syscall_number_1): Update.
4004
4005 2017-07-22 Tom Tromey <tom@tromey.com>
4006
4007 * break-catch-throw.c (struct exception_catchpoint)
4008 <exception_rx>: Now a std::string.
4009 (~exception_catchpoint): Remove.
4010 (print_one_detail_exception_catchpoint): Update.
4011 (handle_gnu_v3_exceptions): Change type of except_rx.
4012 (extract_exception_regexp): Return a std::string.
4013 (catch_exception_command_1): Update.
4014
4015 2017-07-22 Tom Tromey <tom@tromey.com>
4016
4017 * break-catch-sig.c (gdb_signal_type): Remove typedef.
4018 (struct signal_catchpoint) <signals_to_be_caught>: Now a
4019 std::vector.
4020 <catch_all>: Now a bool.
4021 (~signal_catchpoint): Remove.
4022 (signal_catchpoint_insert_location)
4023 (signal_catchpoint_remove_location)
4024 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
4025 (signal_catchpoint_print_mention)
4026 (signal_catchpoint_print_recreate)
4027 (signal_catchpoint_explains_signal): Update.
4028 (create_signal_catchpoint): Change type of "filter" and
4029 "catch_all".
4030 (catch_signal_split_args): Return a std::vector. Change type of
4031 "catch_all".
4032 (catch_signal_command): Update.
4033
4034 2017-07-20 Pedro Alves <palves@redhat.com>
4035
4036 * ada-lang.c (ada_language_defn): Make extern.
4037 (_initialize_ada_language): Remove add_language call.
4038 * c-lang.c (c_language_defn, cplus_language_defn)
4039 (asm_language_defn, minimal_language_defn): Make extern.
4040 (_initialize_c_language): Delete.
4041 * completer.c (compare_cstrings): Delete, moved to utils.h.
4042 * d-lang.c (d_language_defn): Make extern.
4043 (_initialize_d_language): Remove add_language calls.
4044 * defs.h (enum language): Add comment.
4045 * f-lang.c (f_language_defn): Make extern.
4046 (_initialize_f_language): Remove add_language call.
4047 * go-lang.c (go_language_defn): Make extern.
4048 (_initialize_go_language): Remove add_language call.
4049 * language.c: Include <algorithm>.
4050 (languages): Redefine as const array.
4051 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
4052 (set_language_command): Handle "local". Use for-range loop.
4053 (set_language): Remove loop.
4054 (language_enum): Rewrite.
4055 (language_def, language_str): Remove loops.
4056 (add_language): Delete.
4057 (add_set_language_command): New, based on add_languages.
4058 (skip_language_trampoline): Adjust.
4059 (local_language_defn): Delete.
4060 (language_gdbarch_post_init): Adjust.
4061 (_initialize_language): Remove add_language calls. Call
4062 add_set_language_command.
4063 * language.h (add_language): Delete.
4064 (auto_language_defn)
4065 (unknown_language_defn, minimal_language_defn, ada_language_defn)
4066 (asm_language_defn, c_language_defn, cplus_language_defn)
4067 (d_language_defn, f_language_defn, go_language_defn)
4068 (m2_language_defn, objc_language_defn, opencl_language_defn)
4069 (pascal_language_defn, rust_language_defn): Declare.
4070 * m2-lang.c (m2_language_defn): Make extern.
4071 (_initialize_m2_language): Remove add_language call.
4072 * objc-lang.c (objc_language_defn): Make extern.
4073 (_initialize_objc_language): Remove add_language call.
4074 * opencl-lang.c (opencl_language_defn): Make extern.
4075 (_initialize_opencl_language): Remove add_language call.
4076 * p-lang.c (pascal_language_defn): Make extern.
4077 (_initialize_pascal_language): Delete.
4078 * rust-lang.c (rust_language_defn): Make extern.
4079 (_initialize_rust_language): Delete.
4080 * utils.h (compare_cstrings): New static inline function.
4081
4082 2017-07-20 Pedro Alves <palves@redhat.com>
4083
4084 * ada-lang.c (ada_to_fixed_type_1): Adjust.
4085 (get_var_value): Constify parameters.
4086 (get_int_var_value): Change prototype.
4087 (to_fixed_range_type): Adjust.
4088 * ada-lang.h (get_int_var_value): Change prototype.
4089
4090 2017-07-20 Pedro Alves <palves@redhat.com>
4091
4092 * dwarf2read.c (dw2_lookup_symbol): Use
4093 SYMBOL_MATCHES_SEARCH_NAME.
4094 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
4095
4096 2017-07-20 Pedro Alves <palves@redhat.com>
4097
4098 * block.c (block_iter_name_step, block_iter_name_first)
4099 (block_iter_name_next): Delete.
4100 (block_lookup_symbol_primary): Adjust to use
4101 dict_iter_match_first/dict_iter_match_next.
4102 * block.h (block_iter_name_first, block_iter_name_next): Delete
4103 declarations.
4104 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
4105 dict_iter_match_first/dict_iter_match_next.
4106
4107 2017-07-20 Pedro Alves <palves@redhat.com>
4108
4109 * cp-support.c (cp_find_first_component_aux): Add missing case for
4110 end of string.
4111
4112 2017-07-18 David Blaikie <dblaikie@gmail.com>
4113
4114 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
4115 of dwo_cu's dwo_file.
4116
4117 2017-07-18 Yao Qi <yao.qi@linaro.org>
4118
4119 * remote.c (store_registers_using_G): Remove one line comment.
4120
4121 2017-07-18 Yao Qi <yao.qi@linaro.org>
4122
4123 * regcache.c (regcache_cpy): Simplify it.
4124 (regcache::cpy_no_passthrough): Remove it.
4125 * regcache.h (cpy_no_passthrough): Remove it.
4126 (regcache_dup, regcache_cpy): Update comments.
4127
4128 2017-07-18 Pedro Alves <palves@redhat.com>
4129
4130 * remote-sim.c (sim_command_completer): Adjust to work with a
4131 completion_tracker instead of a VEC.
4132
4133 2017-07-17 Pedro Alves <palves@redhat.com>
4134
4135 * completer.c (complete_source_filenames): New function.
4136 (complete_address_and_linespec_locations): New function.
4137 (location_completer): Use complete_address_and_linespec_locations.
4138 (completion_tracker::build_completion_result): Honor the tracker's
4139 request to suppress append.
4140 * completer.h (completion_tracker::suppress_append_ws)
4141 (completion_tracker::set_suppress_append_ws): New methods.
4142 (completion_tracker::m_suppress_append_ws): New field.
4143 (complete_source_filenames): New declaration.
4144 * linespec.c (linespec_complete_what): New.
4145 (struct ls_parser) <complete_what, completion_word,
4146 completion_quote_char, completion_quote_end, completion_tracker>:
4147 New fields.
4148 (string_find_incomplete_keyword_at_end): New.
4149 (linespec_lexer_lex_string): Record quote char. If in completion
4150 mode, don't throw.
4151 (linespec_lexer_consume_token): Advance the completion word point.
4152 (linespec_lexer_peek_token): Save/restore completion info.
4153 (save_stream_and_consume_token): New.
4154 (set_completion_after_number): New.
4155 (linespec_parse_basic): Set what to complete next depending on
4156 token. Handle function and label completions specially.
4157 (parse_linespec): Disable objc shortcut in completion mode. Set
4158 what to complete next depending on token type. Skip keyword if in
4159 completion mode.
4160 (complete_linespec_component, linespec_complete): New.
4161 * linespec.h (linespec_complete): Declare.
4162
4163 2017-07-17 Pedro Alves <palves@redhat.com>
4164
4165 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
4166 Handle 'operator<' / 'operator<<'.
4167
4168 2017-07-17 Pedro Alves <palves@redhat.com>
4169
4170 * completer.c (collect_explicit_location_matches): Handle
4171 MATCH_LABEL.
4172 (convert_explicit_location_to_linespec): New, factored out from
4173 ...
4174 (convert_explicit_location_to_sals): ... this.
4175 (complete_label): New.
4176 (linespec_complete_label, find_label_symbols_in_block): New.
4177 (find_label_symbols): Add completion_mode parameter and adjust to
4178 call find_label_symbols_in_block.
4179 * linespec.h (linespec_complete_label): Declare.
4180
4181 2017-07-17 Pedro Alves <palves@redhat.com>
4182
4183 * ada-lang.c (ada_collect_symbol_completion_matches): Add
4184 complete_symbol_mode parameter.
4185 * cli/cli-cmds.c (complete_command): Get the completion result out
4186 of the handle_brkchars tracker if used a custom word point.
4187 * completer.c: Include "linespec.h".
4188 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
4189 (advance_to_expression_complete_word_point): New.
4190 (completion_tracker::completes_to_completion_word): New.
4191 (complete_files_symbols): Pass down
4192 complete_symbol_mode::EXPRESSION.
4193 (explicit_options, probe_options): New.
4194 (collect_explicit_location_matches): Complete on the
4195 explictit_loc->foo instead of word. Use
4196 linespec_complete_function. Handle MATCH_LINE. Handle offering
4197 keyword and options completions.
4198 (backup_text_ptr): Delete.
4199 (skip_keyword): New.
4200 (complete_explicit_location): Remove 'word' parameter. Add
4201 language, quoted_arg_start and quoted_arg_end parameters.
4202 Rewrite, parsing left to right.
4203 (location_completer): Rewrite.
4204 (location_completer_handle_brkchars): New function.
4205 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
4206 (enum complete_line_internal_reason): Adjust comments.
4207 (completion_tracker::discard_completions): New.
4208 (completer_handle_brkchars_func_for_completer): Handle
4209 location_completer.
4210 (gdb_custom_word_point_brkchars)
4211 (gdb_org_rl_basic_quote_characters): New.
4212 (gdb_completion_word_break_characters_throw)
4213 (completion_find_completion_word): Handle trackers that use a
4214 custom word point.
4215 (completion_tracker::advance_custom_word_point_by): New.
4216 (completion_tracker::build_completion_result): Don't rely on
4217 readline appending the quote char.
4218 (gdb_rl_attempted_completion_function_throw): Handle trackers that
4219 use a custom word point.
4220 (gdb_rl_attempted_completion_function): Restore
4221 rl_basic_quote_characters.
4222 * completer.h (class completion_tracker): Extend intro comment.
4223 (completion_tracker::set_quote_char)
4224 (completion_tracker::quote_char)
4225 (completion_tracker::set_use_custom_word_point)
4226 (completion_tracker::use_custom_word_point)
4227 (completion_tracker::custom_word_point)
4228 (completion_tracker::set_custom_word_point)
4229 (completion_tracker::advance_custom_word_point_by)
4230 (completion_tracker::completes_to_completion_word)
4231 (completion_tracker::discard_completions): New methods.
4232 (completion_tracker::m_quote_char)
4233 (completion_tracker::m_use_custom_word_point)
4234 (completion_tracker::m_custom_word_point): New fields.
4235 (advance_to_expression_complete_word_point): Declare.
4236 * f-lang.c (f_collect_symbol_completion_matches): Add
4237 complete_symbol_mode parameter.
4238 * language.h (struct language_defn)
4239 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
4240 parameter.
4241 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
4242 (linespec_complete_function): New function.
4243 (linespec_lexer_lex_keyword): Adjust.
4244 * linespec.h (linespec_keywords, linespec_complete_function): New
4245 declarations.
4246 * location.c (find_end_quote): New function.
4247 (explicit_location_lex_one): Add explicit_completion_info
4248 parameter. Save quoting info. Don't throw if being called for
4249 completion. Don't handle Ada operators here.
4250 (is_cp_operator, skip_op_false_positives, first_of)
4251 (explicit_location_lex_one_function): New function.
4252 (string_to_explicit_location): Replace 'dont_throw' parameter with
4253 an explicit_completion_info pointer parameter. Handle it. Don't
4254 use explicit_location_lex_one to lex function names. Use
4255 explicit_location_lex_one_function instead.
4256 * location.h (struct explicit_completion_info): New.
4257 (string_to_explicit_location): Replace 'dont_throw' parameter with
4258 an explicit_completion_info pointer parameter.
4259 * symtab.c (default_collect_symbol_completion_matches_break_on):
4260 Add complete_symbol_mode parameter. Handle LINESPEC mode.
4261 (default_collect_symbol_completion_matches)
4262 (collect_symbol_completion_matches): Add complete_symbol_mode
4263 parameter.
4264 (collect_symbol_completion_matches_type): Pass down
4265 complete_symbol_mode::EXPRESSION.
4266 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4267 parameter. Handle LINESPEC mode.
4268 * symtab.h (complete_symbol_mode): New.
4269 (default_collect_symbol_completion_matches_break_on)
4270 (default_collect_symbol_completion_matches)
4271 (collect_symbol_completion_matches)
4272 (collect_file_symbol_completion_matches): Add complete_symbol_mode
4273 parameter.
4274
4275 2017-07-17 Pedro Alves <palves@redhat.com>
4276
4277 * utils.c (enum class strncmp_iw_mode): New.
4278 (strcmp_iw): Rename to ...
4279 (strncmp_iw_with_mode): ... this. Add string2_len and mode
4280 parameters. Handle them.
4281 (strncmp_iw): New.
4282 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
4283 * utils.h (strncmp_iw): Declare.
4284 (strcmp_iw): Move describing comments here.
4285
4286 2017-07-17 Pedro Alves <palves@redhat.com>
4287
4288 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
4289 CP_OPERATOR_STR.
4290 * c-typeprint.c (is_type_conversion_operator): Use
4291 CP_OPERATOR_STR.
4292 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
4293 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
4294 CP_OPERATOR_LEN.
4295 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
4296 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
4297 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
4298 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
4299 CP_OPERATOR_STR.
4300 * location.c: Include "cp-support.h".
4301 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
4302 CP_OPERATOR_STR.
4303 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
4304 CP_OPERATOR_LEN.
4305
4306 2017-07-17 Pedro Alves <palves@redhat.com>
4307
4308 * cli/cli-cmds.c (complete_command): Use a completion tracker
4309 along with completion_find_completion_word for handle_brkchars
4310 phase.
4311 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
4312 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
4313 (struct gdb_rl_completion_word_info): New.
4314 (gdb_rl_find_completion_word): New.
4315 (completion_find_completion_word): New.
4316 * completer.h (completion_find_completion_word): Declare.
4317
4318 2017-07-17 Pedro Alves <palves@redhat.com>
4319
4320 * ada-lang.c (symbol_completion_match): Adjust comments.
4321 (symbol_completion_add): Replace vector parameter with
4322 completion_tracker parameter. Use it.
4323 (ada_make_symbol_completion_list): Rename to...
4324 (ada_collect_symbol_completion_matches): ... this. Add
4325 completion_tracker parameter and use it.
4326 (ada_language_defn): Adjust.
4327 * break-catch-syscall.c (catch_syscall_completer): Adjust
4328 prototype and work with completion_tracker instead of VEC.
4329 * breakpoint.c (condition_completer): Adjust prototype and work
4330 with completion_tracker instead of VEC.
4331 * c-lang.c (c_language_defn, cplus_language_defn)
4332 (asm_language_defn, minimal_language_defn): Adjust to renames.
4333 * cli/cli-cmds.c (complete_command): Rework using
4334 completion_tracker. Catch exceptions when completing.
4335 * cli/cli-decode.c (integer_unlimited_completer)
4336 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
4337 with completion_tracker instead of VEC.
4338 * command.h (struct completion_tracker): Forward declare.
4339 (completer_ftype, completer_handle_brkchars_ftype): Change
4340 types.
4341 (complete_on_cmdlist, complete_on_enum): Adjust.
4342 * completer.c: Include <algorithm>.
4343 (struct gdb_completer_state): New.
4344 (current_completion): New global.
4345 (readline_line_completion_function): Delete.
4346 (noop_completer, filename_completer)
4347 (filename_completer_handle_brkchars, complete_files_symbols)
4348 (linespec_location_completer): Adjust to work with a
4349 completion_tracker instead of a VEC.
4350 (string_or_empty): New.
4351 (collect_explicit_location_matches): Adjust to work with a
4352 completion_tracker instead of a VEC.
4353 (explicit_location_completer): Rename to ...
4354 (complete_explicit_location): ... this and adjust to work with a
4355 completion_tracker instead of a VEC.
4356 (location_completer): Adjust to work with a completion_tracker
4357 instead of a VEC.
4358 (add_struct_fields): Adjust to work with a completion_list instead
4359 of VEC.
4360 (expression_completer): Rename to ...
4361 (complete_expression): ... this and adjust to work with a
4362 completion_tracker instead of a VEC. Use complete_files_symbols.
4363 (expression_completer): Reimplement on top of complete_expression.
4364 (symbol_completer): Adjust to work with a completion_tracker
4365 instead of a VEC.
4366 (enum complete_line_internal_reason): Add describing comments.
4367 (complete_line_internal_normal_command): Adjust to work with a
4368 completion_tracker instead of a VEC.
4369 (complete_line_internal): Rename to ...
4370 (complete_line_internal_1): ... this and adjust to work with a
4371 completion_tracker instead of a VEC. Assert TEXT is NULL in the
4372 handle_brkchars phase.
4373 (new_completion_tracker): Delete.
4374 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
4375 complete_line_internal_1.
4376 (free_completion_tracker): Delete.
4377 (INITIAL_COMPLETION_HTAB_SIZE): New.
4378 (completion_tracker::completion_tracker)
4379 (completion_tracker::~completion_tracker): New.
4380 (maybe_add_completion): Delete.
4381 (completion_tracker::maybe_add_completion)
4382 (completion_tracker::add_completion)
4383 (completion_tracker::add_completions): New.
4384 (throw_max_completions_reached_error): Delete.
4385 (complete_line): Adjust to work with a completion_tracker instead
4386 of a VEC. Don't create a completion_tracker_t or check for max
4387 completions here.
4388 (command_completer, command_completer_handle_brkchars)
4389 (signal_completer, reg_or_group_completer_1)
4390 (reg_or_group_completer, default_completer_handle_brkchars):
4391 Adjust to work with a completion_tracker.
4392 (gdb_completion_word_break_characters_throw): New.
4393 (gdb_completion_word_break_characters): Reimplement.
4394 (line_completion_function): Delete.
4395 (completion_tracker::recompute_lowest_common_denominator)
4396 (expand_preserving_ws)
4397 (completion_tracker::build_completion_result)
4398 (completion_result::completion_result)
4399 (completion_result::completion_result)
4400 (completion_result::~completion_result)
4401 (completion_result::completion_result)
4402 (completion_result::release_match_list, compare_cstrings)
4403 (completion_result::sort_match_list)
4404 (completion_result::reset_match_list)
4405 (gdb_rl_attempted_completion_function_throw)
4406 (gdb_rl_attempted_completion_function): New.
4407 * completer.h (completion_list, struct completion_result)
4408 (class completion_tracker): New.
4409 (complete_line): Add completion_tracker parameter.
4410 (readline_line_completion_function): Delete.
4411 (gdb_rl_attempted_completion_function): New.
4412 (noop_completer, filename_completer, expression_completer)
4413 (location_completer, symbol_completer, command_completer)
4414 (signal_completer, reg_or_group_completer): Update prototypes.
4415 (completion_tracker_t, new_completion_tracker)
4416 (make_cleanup_free_completion_tracker): Delete.
4417 (enum maybe_add_completion_enum): Delete.
4418 (maybe_add_completion): Delete.
4419 (throw_max_completions_reached_error): Delete.
4420 * corefile.c (complete_set_gnutarget): Adjust to work with a
4421 completion_tracker instead of a VEC.
4422 * cp-abi.c (cp_abi_completer): Adjust to work with a
4423 completion_tracker instead of a VEC.
4424 * d-lang.c (d_language_defn): Adjust.
4425 * disasm.c (disassembler_options_completer): Adjust to work with a
4426 completion_tracker instead of a VEC.
4427 * f-lang.c (f_make_symbol_completion_list): Rename to ...
4428 (f_collect_symbol_completion_matches): ... this. Adjust to work
4429 with a completion_tracker instead of a VEC.
4430 (f_language_defn): Adjust.
4431 * go-lang.c (go_language_defn): Adjust.
4432 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
4433 Adjust to work with a completion_tracker instead of a VEC.
4434 * infrun.c (handle_completer): Likewise.
4435 * interps.c (interpreter_completer): Likewise.
4436 * interps.h (interpreter_completer): Likewise.
4437 * language.c (unknown_language_defn, auto_language_defn)
4438 (local_language_defn): Adjust.
4439 * language.h (language_defn::la_make_symbol_completion_list):
4440 Rename to ...
4441 (language_defn::la_collect_symbol_completion_matches): ... this
4442 and adjust to work with a completion_tracker instead of a VEC.
4443 * m2-lang.c (m2_language_defn): Adjust.
4444 * objc-lang.c (objc_language_defn): Adjust.
4445 * opencl-lang.c (opencl_language_defn): Adjust.
4446 * p-lang.c (pascal_language_defn): Adjust.
4447 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
4448 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
4449 with a completion_tracker.
4450 * rust-lang.c (rust_language_defn): Adjust.
4451 * symtab.c (free_completion_list, do_free_completion_list)
4452 (return_val, completion_tracker): Delete.
4453 (completion_list_add_name, completion_list_add_symbol)
4454 (completion_list_add_msymbol, completion_list_objc_symbol)
4455 (completion_list_add_fields, add_symtab_completions): Add
4456 completion_tracker parameter and use it.
4457 (default_make_symbol_completion_list_break_on_1): Rename to...
4458 (default_collect_symbol_completion_matches_break_on): ... this.
4459 Add completion_tracker parameter and use it instead of allocating
4460 a completion tracker here.
4461 (default_make_symbol_completion_list_break_on): Delete old
4462 implementation.
4463 (default_make_symbol_completion_list): Delete.
4464 (default_collect_symbol_completion_matches): New.
4465 (make_symbol_completion_list): Delete.
4466 (collect_symbol_completion_matches): New.
4467 (make_symbol_completion_type): Rename to ...
4468 (collect_symbol_completion_matches_type): ... this. Add
4469 completion_tracker parameter and use it instead of VEC.
4470 (make_file_symbol_completion_list_1): Rename to...
4471 (collect_file_symbol_completion_matches): ... this. Add
4472 completion_tracker parameter and use it instead of VEC.
4473 (make_file_symbol_completion_list): Delete.
4474 (add_filename_to_list): Use completion_list instead of a VEC.
4475 (add_partial_filename_data::list): Now a completion_list.
4476 (make_source_files_completion_list): Work with a completion_list
4477 instead of a VEC.
4478 * symtab.h: Include "completer.h".
4479 (default_make_symbol_completion_list_break_on)
4480 (default_make_symbol_completion_list, make_symbol_completion_list)
4481 (make_symbol_completion_type, make_file_symbol_completion_list)
4482 (make_source_files_completion_list): Delete.
4483 (default_collect_symbol_completion_matches_break_on)
4484 (default_collect_symbol_completion_matches)
4485 (collect_symbol_completion_matches)
4486 (collect_symbol_completion_matches_type)
4487 (collect_file_symbol_completion_matches)
4488 (make_source_files_completion_list): New.
4489 * top.c (init_main): Don't install a rl_completion_entry_function
4490 hook. Install a rl_attempted_completion_function hook instead.
4491 * tui/tui-layout.c (layout_completer): Adjust to work with a
4492 completion_tracker.
4493 * tui/tui-regs.c (tui_reggroup_completer):
4494 * tui/tui-win.c (window_name_completer, focus_completer)
4495 (winheight_completer): Adjust to work with a completion_tracker.
4496 * value.c: Include "completer.h".
4497 (complete_internalvar): Adjust to work with a completion_tracker.
4498 * value.h (complete_internalvar): Likewise.
4499
4500 2017-07-17 Pedro Alves <palves@redhat.com>
4501
4502 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
4503 renames.
4504 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
4505 comments to completer_ftype's declaration.
4506 <completer_handle_brkchars>: Change type to
4507 completer_handle_brkchars_ftype.
4508 * command.h (completer_ftype): Add describing comment and give
4509 names to parameters.
4510 (completer_ftype_void): Rename to ...
4511 (completer_handle_brkchars_ftype) ... this. Add describing comment.
4512 (set_cmd_completer_handle_brkchars): Adjust.
4513 * completer.c (filename_completer_handle_brkchars): New function.
4514 (complete_line_internal_normal_command): New function, factored
4515 out from ...
4516 (complete_line_internal): ... here.
4517 (command_completer_handle_brkchars)
4518 (default_completer_handle_brkchars)
4519 (completer_handle_brkchars_func_for_completer): New functions.
4520 * completer.h (set_gdb_completion_word_break_characters): Delete
4521 declaration.
4522 (completer_handle_brkchars_func_for_completer): New declaration.
4523 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
4524 completer_handle_brkchars_func_for_completer.
4525
4526 2017-07-17 Pedro Alves <palves@redhat.com>
4527
4528 * completer.c (symbol_completer): New function, based on
4529 make_symbol_completion_list_fn.
4530 * completer.h (symbol_completer): New declaration.
4531 * guile/scm-cmd.c (cmdscm_completers): Adjust.
4532 * python/py-cmd.c (completers): Adjust.
4533 * symtab.c (make_symbol_completion_list_fn): Delete.
4534 * symtab.h (make_symbol_completion_list_fn): Delete.
4535 * cli/cli-decode.c (add_cmd): Adjust.
4536
4537 2017-07-17 Pedro Alves <palves@redhat.com>
4538
4539 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
4540 * dwarf2read.c: Include "filename-seen-cache.h".
4541 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
4542 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
4543 * filename-seen-cache.c: New file.
4544 * filename-seen-cache.h: New file.
4545 * symtab.c: Include "filename-seen-cache.h".
4546 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
4547 (create_filename_seen_cache, clear_filename_seen_cache)
4548 (delete_filename_seen_cache, filename_seen): Delete, parts moved
4549 to filename-seen-cache.h/filename-seen-cache.c.
4550 (output_source_filename, sources_info)
4551 (maybe_add_partial_symtab_filename)
4552 (make_source_files_completion_list): Adjust to use
4553 filename_seen_cache.
4554
4555 2017-07-17 Pedro Alves <palves@redhat.com>
4556
4557 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
4558 fields.
4559 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
4560 dwarf2_debug_sections*)): New.
4561 (dwarf2_per_objfile::dwarf2_per_objfile(const
4562 dwarf2_per_objfile&)): Declare as deleted.
4563 (dwarf2_per_objfile::operator=): Declare as deleted.
4564 (dwarf2_per_objfile::dwarf2_per_objfile)
4565 (dwarf2_per_objfile::~dwarf2_per_objfile)
4566 (dwarf2_per_objfile::free_cached_comp_units): New.
4567 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
4568 ctor. Call dwarf2_per_objfile's ctor manually.
4569 (dwarf2_locate_sections): Deleted/refactored as ...
4570 (dwarf2_per_objfile::locate_sections): ... this new method.
4571 (free_cached_comp_units): Defer to
4572 dwarf2_per_objfile::free_cached_comp_units.
4573 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
4574
4575 2017-07-14 Tom Tromey <tom@tromey.com>
4576
4577 PR rust/21764:
4578 * rust-exp.y (convert_ast_to_expression): Add "want_type"
4579 parameter.
4580 <UNOP_SIZEOF>: Split into separate case.
4581 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
4582
4583 2017-07-14 Tom Tromey <tom@tromey.com>
4584
4585 PR rust/21763:
4586 * symtab.c (symbol_matches_domain): Add language_rust to special
4587 case.
4588 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
4589 treat LOC_TYPEDEF symbols as variables.
4590
4591 2017-07-14 Pedro Alves <palves@redhat.com>
4592
4593 * symtab.c (make_file_symbol_completion_list_1): Iterate over
4594 symtabs matching all symtabs with SRCFILE as file name instead of
4595 only considering the first hit, with lookup_symtab.
4596
4597 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4598
4599 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
4600 operator_name parameters.
4601 (gen_expr): Update function call.
4602
4603 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4604
4605 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
4606 parameter.
4607 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
4608 Likewise.
4609 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
4610 parameter, use agent_expr::gdbarch instead, update function
4611 calls.
4612 (locexpr_tracepoint_var_ref): Likewise.
4613 (loclist_tracepoint_var_ref): Likewise.
4614 * ax-gdb.c (gen_trace_static_fields): Likewise.
4615 (gen_traced_pop): Likewise.
4616 (gen_frame_args_address): Likewise.
4617 (gen_frame_locals_address): Likewise.
4618 (gen_var_ref): Likewise.
4619 (gen_struct_ref_recursive): Likewise.
4620 (gen_static_field): Likewise.
4621 (gen_maybe_namespace_elt): Likewise.
4622 (gen_expr): Likewise.
4623 (gen_trace_for_var): Likewise.
4624 (gen_trace_for_expr): Likewise.
4625 (gen_trace_for_return_address): Likewise.
4626
4627 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4628
4629 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
4630 parameter.
4631 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
4632
4633 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
4634
4635 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
4636 from ax, update calls.
4637 (gen_usual_arithmetic): Likewise.
4638 (gen_integral_promotions): Likewise.
4639 (gen_bitfield_ref): Likewise.
4640 (gen_primitive_field): Likewise.
4641 (gen_struct_ref_recursive): Likewise.
4642 (gen_struct_ref): Likewise.
4643 (gen_maybe_namespace_elt): Likewise.
4644 (gen_struct_elt_for_reference): Likewise.
4645 (gen_namespace_elt): Likewise.
4646 (gen_aggregate_elt_ref): Likewise.
4647 (gen_expr): Get gdbarch from ax, update calls.
4648 (gen_expr_binop_rest): Likewise.
4649
4650 2017-07-13 Pedro Alves <palves@redhat.com>
4651
4652 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
4653 as default tdesc.
4654 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
4655 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
4656 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
4657 tdesc_amd64_linux as default tdesc. Get final tdesc from the
4658 tdep.
4659 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
4660 Get final tdesc from the tdep.
4661 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
4662 default tdesc.
4663 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4664 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4665 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
4666 Use it as default tdesc.
4667 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
4668 down to amd_init_abi. No longer handle fallback tdesc here.
4669 * amd64-tdep.h (tdesc_x32): Declare.
4670 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
4671 parameter.
4672 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
4673 as default tdesc.
4674
4675 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4676
4677 * s390-linux-tdep.c (s390_process_record): Add support for
4678 instructions new in arch12.
4679
4680 2017-07-11 John Baldwin <jhb@FreeBSD.org>
4681
4682 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
4683 PT_GETFSBASE and PT_GETGSBASE.
4684 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
4685 PT_SETGSBASE.
4686
4687 2017-07-11 John Baldwin <jhb@FreeBSD.org>
4688
4689 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
4690 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
4691 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
4692 those rules.
4693 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
4694 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
4695 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
4696 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
4697 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
4698 * features/i386/amd64.xml: Add 64bit-segments.xml.
4699 * features/i386/amd64-avx-avx512.c: Regenerated.
4700 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
4701 * features/i386/amd64-avx-mpx.c: Regenerated.
4702 * features/i386/amd64-avx.c: Regenerated.
4703 * features/i386/amd64-mpx.c: Regenerated.
4704 * features/i386/amd64.c: Regenerated.
4705 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
4706 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
4707 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
4708 * regformats/i386/amd64-avx.dat: Regenerated.
4709 * regformats/i386/amd64-mpx.dat: Regenerated.
4710 * regformats/i386/amd64.dat: Regenerated.
4711
4712 2017-07-10 Yao Qi <yao.qi@linaro.org>
4713
4714 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
4715 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
4716
4717 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
4718
4719 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
4720 unsetenv.
4721 * gnulib/aclocal.m4: Regenerate.
4722 * gnulib/config.in: Regenerate.
4723 * gnulib/configure: Regenerate.
4724 * gnulib/import/Makefile.am: Regenerate.
4725 * gnulib/import/Makefile.in: Regenerate.
4726 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4727 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4728 * gnulib/import/m4/environ.m4: New file.
4729 * gnulib/import/m4/setenv.m4: New file.
4730 * gnulib/import/setenv.c: New file.
4731 * gnulib/import/unsetenv.c: New file.
4732
4733 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
4734
4735 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
4736 address when op is DW_OP_addr.
4737
4738 2017-07-09 Tom Tromey <tom@tromey.com>
4739
4740 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
4741 check and apply to outer type.
4742
4743 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4744
4745 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
4746 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
4747 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
4748 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
4749
4750 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4751
4752 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
4753
4754 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4755
4756 * corelow.c (get_core_siginfo): Remove.
4757 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
4758 instead of get_core_siginfo.
4759 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
4760 * gdbarch.h: Re-generate.
4761 * gdbarch.c: Re-generate.
4762 * linux-tdep.c (linux_core_xfer_siginfo): New.
4763 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
4764
4765 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4766
4767 * corelow.c (thread_section_name): Move to ...
4768 * gdbcore.h (thread_section_name): ... here.
4769
4770 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4771
4772 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
4773 (struct siginfo32): New.
4774 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
4775 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
4776 via ptrace(PT_LWPINFO).
4777
4778 2017-07-07 John Baldwin <jhb@FreeBSD.org>
4779
4780 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
4781 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
4782 (fbsd_get_siginfo_type): New.
4783 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4784 (_initialize_fbsd_tdep): New.
4785
4786 2017-07-06 David Blaikie <dblaikie@gmail.com>
4787
4788 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
4789 a singular dwo_unit*) to support multiple CUs in the same way that
4790 multiple TUs are supported.
4791 (create_cus_hash_table): Replace create_dwo_cu with a function for
4792 parsing multiple CUs from a DWO file.
4793 (open_and_init_dwo_file): Use create_cus_hash_table rather than
4794 create_dwo_cu.
4795 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
4796 htab_find, rather than comparing the signature to a singleton CU in
4797 the dwo_file.
4798
4799 2017-07-06 Pedro Alves <palves@redhat.com>
4800
4801 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
4802
4803 2017-07-04 Pedro Alves <palves@redhat.com>
4804
4805 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
4806 * gdbtypes.h (TYPE_STATIC): Delete.
4807 (struct fn_field) <is_public, is_abstract, is_static, is_final,
4808 is_synchronized, is_native>: Delete.
4809 <dummy>: Bump.
4810 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
4811 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
4812 (TYPE_FN_FIELD_ABSTRACT): Delete.
4813
4814 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
4815
4816 * buffer.h (buffer_finish): Fix spelling mistakes.
4817
4818 2017-07-01 Eli Zaretskii <eliz@gnu.org>
4819
4820 * .dir-locals.el: Automatically switch to C-style comments in
4821 versions of Emacs that support the feature.
4822
4823 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
4824 Pedro Alves <palves@redhat.com>
4825
4826 PR cli/21688
4827 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
4828 (process_next_line): New variable 'inline_cmd'.
4829 Adjust 'if' clauses for "python", "compile" and "guile" to use
4830 'command_name_equals' and check for '!inline_cmd'.
4831
4832 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
4833
4834 PR cli/21688
4835 * cli/cli-script.c (command_name_equals_not_inline): New function.
4836 (process_next_line): Adjust 'if' clauses for "python", "compile"
4837 and "guile" to use command_name_equals_not_inline.
4838
4839 2017-06-29 Pedro Alves <palves@redhat.com>
4840
4841 * completer.c (expression_completer): Call
4842 linespec_location_completer instead of location_completer.
4843
4844 2017-06-29 Pedro Alves <palves@redhat.com>
4845
4846 * completer.c (expression_completer): Remove code that recomputes
4847 'text' from 'word'.
4848
4849 2017-06-29 Yao Qi <yao.qi@linaro.org>
4850
4851 * regformats/regdat.sh: Generate code with
4852 "ifndef IN_PROCESS_AGENT".
4853
4854 2017-06-28 Pedro Alves <palves@redhat.com>
4855
4856 * command.h: Include "common/scoped_restore.h".
4857
4858 2017-06-28 Yao Qi <yao.qi@linaro.org>
4859
4860 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
4861 instead of obstack_grow.
4862
4863 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
4864
4865 PR gdb/21337
4866 * symfile.c (reread_symbols): Call objfiles_changed just before
4867 read_symbols.
4868
4869 2017-06-27 Pedro Alves <palves@redhat.com>
4870
4871 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
4872 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
4873 (completion_list_add_symbol, completion_list_add_msymbol):
4874 ... these new functions.
4875 (add_symtab_completions)
4876 (default_make_symbol_completion_list_break_on_1): Adjust.
4877
4878 2017-06-27 Pedro Alves <palves@redhat.com>
4879
4880 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
4881 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
4882 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
4883 dtor.
4884 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
4885 'storage_obstack' field an auto_obstack. In-class initialize all
4886 non-bitfield fields. Make minsyms_read bool.
4887 * symfile.c (read_symbols): Adjust.
4888
4889 2017-06-27 Alan Hayward <alan.hayward@arm.com>
4890
4891 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
4892 (gdbsim_store_register): Likewise.
4893
4894 2017-06-27 Pedro Alves <palves@redhat.com>
4895
4896 * c-exp.y (name_obstack): Now an auto_obstack.
4897 (yylex): Use auto_obstack::clear.
4898 (c_parse): Use auto_obstack::clear instead of reinitializing and
4899 freeing the obstack.
4900 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
4901 * d-exp.y (name_obstack): Now an auto_obstack.
4902 (yylex): Use auto_obstack::clear.
4903 (d_parse): Use auto_obstack::clear instead of reinitializing and
4904 freeing the obstack.
4905 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
4906 auto_obstack.
4907 * dwarf2read.c (create_addrmap_from_index)
4908 (dwarf2_build_psymtabs_hard)
4909 (update_enumeration_type_from_children): Likewise.
4910 * gdb_obstack.h (auto_obstack): New type.
4911 * go-exp.y (name_obstack): Now an auto_obstack.
4912 (build_packaged_name): Use auto_obstack::clear.
4913 (go_parse): Use auto_obstack::clear instead of reinitializing and
4914 freeing the obstack.
4915 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
4916 auto_obstack.
4917 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
4918 * rust-exp.y (work_obstack): Now an auto_obstack.
4919 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
4920 reinitializing and freeing the obstack.
4921 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
4922 (host_char_to_target): Use auto_obstack.
4923 * utils.h (make_cleanup_obstack_free): Delete declaration.
4924 * valprint.c (generic_emit_char, generic_printstr): Use
4925 auto_obstack.
4926
4927 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
4928
4929 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
4930 thread.
4931 (darwin_init_thread_list): Don't update dummy thread.
4932 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
4933
4934 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
4935
4936 * record-full.c (netorder16): Remove.
4937
4938 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
4939
4940 * common/diagnostics.h: Define macros for GCC.
4941 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
4942 * common/vec.h: Include diagnostics.h.
4943 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
4944 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
4945 warning.
4946
4947 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
4948
4949 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
4950 New macro.
4951 * ada-lex.l: Ignore deprecated register warnings.
4952
4953 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
4954
4955 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
4956 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
4957
4958 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
4959
4960 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
4961 its own line.
4962
4963 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
4964
4965 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
4966
4967 2017-06-23 Alan Hayward <alan.hayward@arm.com>
4968
4969 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
4970 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
4971 (xtensa_register_read_masked): Likewise.
4972
4973 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
4974
4975 * common/environ.c (gdb_environ::unset): Update comment.
4976
4977 2017-06-22 Alan Hayward <alan.hayward@arm.com>
4978
4979 * python/py-unwind.c (pyuw_sniffer): Allocate space for
4980 registers.
4981
4982 2017-06-22 Alan Hayward <alan.hayward@arm.com>
4983
4984 * record-full.c (record_full_exec_insn): Use byte_vector.
4985
4986 2017-06-22 Yao Qi <yao.qi@linaro.org>
4987
4988 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
4989 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
4990
4991 2017-06-22 Alan Hayward <alan.hayward@arm.com>
4992
4993 * remote.c (cached_reg): Move from here...
4994 * regcache.h (cached_reg): ...to here.
4995 * python/py-unwind.c (struct reg_info): Remove.
4996 (cached_frame_info): Use cached_reg_t.
4997 (pyuw_prev_register): Likewise.
4998 (pyuw_sniffer): Use cached_reg_t and allocate registers.
4999 (pyuw_dealloc_cache): Free all registers.
5000
5001 2017-06-22 Pedro Alves <palves@redhat.com>
5002 Simon Marchi <simon.marchi@ericsson.com>
5003
5004 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
5005 warning.
5006 * common/diagnostics.h: New file.
5007
5008 2017-06-22 Pedro Alves <palves@redhat.com>
5009
5010 * common/agent.h: Add include guards.
5011
5012 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
5013
5014 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
5015 talk about addressable units instead of bytes.
5016
5017 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5018
5019 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
5020 of '::const_iterator'.
5021
5022 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
5023
5024 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5025 'unittests/environ-selftests.c'.
5026 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
5027 * charset.c (find_charset_names): Declare object 'iconv_env'.
5028 Update code to use 'iconv_env' object. Remove call to
5029 'free_environ'.
5030 * common/environ.c: Include <utility>.
5031 (make_environ): Delete function.
5032 (free_environ): Delete function.
5033 (gdb_environ::clear): New function.
5034 (gdb_environ::operator=): New function.
5035 (gdb_environ::get): Likewise.
5036 (environ_vector): Delete function.
5037 (set_in_environ): Delete function.
5038 (gdb_environ::set): New function.
5039 (unset_in_environ): Delete function.
5040 (gdb_environ::unset): New function.
5041 (gdb_environ::envp): Likewise.
5042 * common/environ.h: Include <vector>.
5043 (struct gdb_environ): Delete; transform into...
5044 (class gdb_environ): ... this class.
5045 (free_environ): Delete prototype.
5046 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
5047 environ_vector): Likewise.
5048 * infcmd.c (run_command_1): Update code to call
5049 'envp' from 'gdb_environ' class.
5050 (environment_info): Update code to call methods from 'gdb_environ'
5051 class.
5052 (unset_environment_command): Likewise.
5053 (path_info): Likewise.
5054 (path_command): Likewise.
5055 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
5056 (inferior::inferior): Initialize 'environment' using the host's
5057 information.
5058 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
5059 Include "environ.h".
5060 (class inferior) <environment>: Change type from 'struct
5061 gdb_environ' to 'gdb_environ'.
5062 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
5063 methods from 'gdb_environ' class.
5064 * solib.c (solib_find_1): Likewise
5065 * unittests/environ-selftests.c: New file.
5066
5067 2017-06-20 Yao Qi <yao.qi@linaro.org>
5068
5069 * features/i386/i386-linux.xml: Exchange the order of including
5070 32bit-linux.xml and 32bit-sse.xml.
5071 * features/i386/i386-linux.c: Regenerated.
5072
5073 2017-06-20 Yao Qi <yao.qi@linaro.org>
5074
5075 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
5076 Delete copy ctor and assignment operator.
5077 (tdesc_type): Likewise.
5078 (tdesc_feature): Likewise.
5079 (tdesc_free_reg): Remove.
5080 (tdesc_create_reg): Use new.
5081 (tdesc_free_type): Remove.
5082 (tdesc_create_vector): Use new.
5083 (tdesc_create_union): Likewise.
5084 (tdesc_create_flags): Likewise.
5085 (tdesc_create_enum): Likewise.
5086 (tdesc_free_feature): Delete.
5087 (free_target_description): Use delete.
5088
5089 2017-06-19 John Baldwin <jhb@FreeBSD.org>
5090
5091 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
5092 registers.
5093
5094 2017-06-19 Pedro Alves <palves@redhat.com>
5095
5096 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
5097 after gdb::unlinker.
5098
5099 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
5100
5101 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
5102 gdb_environ to access an environment variable.
5103
5104 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
5105
5106 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
5107 gdb_byte*.
5108
5109 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5110
5111 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
5112
5113 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5114
5115 * configure: Re-generate.
5116 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
5117
5118 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5119
5120 * configure: Re-generate.
5121 * warning.m4: Pass -Werror to compiler when checking for
5122 supported warning flags.
5123
5124 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
5125
5126 * Makefile.in (COMPILE.pre): Add "-x c++".
5127
5128 2017-06-16 Alan Hayward <alan.hayward@arm.com>
5129 Pedro Alves <palves@redhat.com>
5130 Yao Qi <yao.qi@linaro.org>
5131
5132 * defs.h (RequireLongest): New.
5133 (extract_integer): Declare function template.
5134 (extract_signed_integer): Remove the declaration, but define it
5135 static inline.
5136 (extract_unsigned_integer): Likewise.
5137 (store_integer): Declare function template.
5138 (store_signed_integer): Remove the declaration, but define it
5139 static inline.
5140 (store_unsigned_integer): Likewise.
5141 * findvar.c (extract_integer): New function template.
5142 (extract_signed_integer): Remove.
5143 (extract_unsigned_integer): Remove.
5144 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
5145 instantiations.
5146 (store_integer): New function template.
5147 (store_signed_integer): Remove.
5148 (store_unsigned_integer): Remove.
5149 (store_integer): Explicit instantiations.
5150 * regcache.c (regcache_raw_read_signed): Update.
5151 (regcache::raw_read): New function.
5152 (regcache::raw_read_signed): Remove.
5153 (regcache::raw_read_unsigned): Remove.
5154 (regcache_raw_read_unsigned): Update.
5155 (regcache_raw_write_unsigned): Update.
5156 (regcache::raw_write_signed): Remove.
5157 (regcache::raw_write): New function.
5158 (regcache_cooked_read_signed): Update.
5159 (regcache::raw_write_unsigned): Remove.
5160 (regcache::cooked_read_signed): Remove.
5161 (regcache_cooked_read_unsigned): Update.
5162 (regcache::cooked_read_unsigned): Remove.
5163 (regcache_cooked_write_signed): Update.
5164 (regcache_cooked_write_unsigned): Update.
5165 * regcache.h (regcache) <raw_read_signed>: Remove.
5166 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
5167 <raw_read, raw_write>: New.
5168 <cooked_read_signed, cooked_write_signed>: Remove.
5169 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
5170 <cooked_read, cooked_write>: New.
5171 * sh64-tdep.c (sh64_pseudo_register_read): Update.
5172 (sh64_pseudo_register_write): Update.
5173
5174 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
5175
5176 * arc-tdep.c (arc_disassembler_options): New variable.
5177 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
5178 of default_print_insn.
5179 (arc_delayed_print_insn): Set info->section when needed,
5180 use default_print_insn to retrieve a disassembler.
5181
5182 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
5183
5184 PR gdb/21574
5185 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
5186 to mention $SHELL and startup-with-shell.
5187
5188 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
5189
5190 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
5191
5192 2017-06-14 Yao Qi <yao.qi@linaro.org>
5193
5194 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
5195 default_print_insn instead of print_insn_aarch64.
5196 * arm-tdep.c (gdb_print_insn_arm): Call
5197 default_print_insn instead of print_insn_big_arm
5198 and print_insn_little_arm.
5199 * i386-tdep.c (i386_print_insn): Call default_print_insn
5200 instead of print_insn_i386.
5201 * ia64-tdep.c (ia64_print_insn): Call
5202 default_print_insn instead of print_insn_ia64.
5203 * mips-tdep.c (gdb_print_insn_mips): Call
5204 default_print_insn instead of print_insn_big_mips
5205 and print_insn_little_mips.
5206 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
5207 instead of print_insn_spu.
5208
5209 2017-06-14 Pedro Alves <palves@redhat.com>
5210
5211 * ada-lang.c: Include "common/byte-vector.h".
5212 (ada_value_primitive_packed_val): Use gdb::byte_vector.
5213 * charset.c (wchar_iterator::iterate): Resize the vector instead
5214 of reserving it.
5215 * common/byte-vector.h: Include "common/def-vector.h".
5216 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
5217 * cli/cli-dump.c: Include "common/byte-vector.h".
5218 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
5219 * common/byte-vector.h: New file.
5220 * common/def-vector.h: New file.
5221 * common/default-init-alloc.h: New file.
5222 * dwarf2loc.c: Include "common/byte-vector.h".
5223 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
5224 instead of reserving it.
5225 * dwarf2read.c: Include "common/byte-vector.h".
5226 (data_buf::m_vec): Now a gdb::byte_vector.
5227 * gdb_regex.c: Include "common/def-vector.h".
5228 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
5229 * mi/mi-main.c: Include "common/byte-vector.h".
5230 (mi_cmd_data_read_memory): Use gdb::byte_vector.
5231 * printcmd.c: Include "common/byte-vector.h".
5232 (print_scalar_formatted): Use gdb::byte_vector.
5233 * valprint.c: Include "common/byte-vector.h".
5234 (maybe_negate_by_bytes, print_decimal_chars): Use
5235 gdb::byte_vector.
5236
5237 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5238
5239 * darwin-nat.c: Include "nat/fork-inferior.h".
5240
5241 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5242
5243 * configure.nat: Factor out Darwin bits that are not
5244 architecture-specific. Add fork-inferior.o.
5245
5246 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
5247
5248 * configure.nat: Factor out AIX bits that are not
5249 architecture-specific. Add fork-inferior.o.
5250
5251 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5252
5253 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
5254 (read_pieced_value, write_pieced_value): ...here. Reduce to
5255 wrappers that just call rw_pieced_value.
5256
5257 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5258
5259 * dwarf2loc.c (write_pieced_value): When writing the data for a
5260 memory piece, use write_memory_with_notification instead of
5261 write_memory.
5262
5263 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5264
5265 * valops.c (read_value_memory): Change embedded_offset to
5266 represent a bit offset instead of a byte offset.
5267 * value.h (read_value_memory): Adjust comment.
5268
5269 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5270
5271 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
5272 dest_offset_bits and source_offset_bits.
5273 (write_pieced_value): Likewise.
5274
5275 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5276
5277 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
5278 given by DW_OP_bit_piece.
5279 (write_pieced_value): Likewise.
5280
5281 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5282
5283 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
5284 some other preparations to the places where sufficient information
5285 is available.
5286 (write_pieced_value): Likewise.
5287
5288 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5289
5290 * dwarf2loc.c (bits_to_bytes): New function.
5291 (read_pieced_value): Fix offset calculations for register pieces
5292 on big-endian targets.
5293 (write_pieced_value): Likewise.
5294
5295 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5296
5297 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
5298 (write_pieced_value): Likewise.
5299
5300 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5301
5302 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
5303 transfer the source value's least significant bits, instead of its
5304 lowest-addressed ones. Rename type_len to max_offset.
5305 (read_pieced_value): Mirror above changes to write_pieced_value as
5306 applicable.
5307
5308 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5309
5310 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
5311 truncate full bytes from dest_offset_bits before using it as an
5312 offset into the buffer.
5313
5314 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5315
5316 * dwarf2loc.c (write_pieced_value): Include transfer size in
5317 byte-wise check.
5318
5319 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5320
5321 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
5322 calculation of this_size.
5323
5324 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5325
5326 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
5327 when targeting a bit-field.
5328 (write_pieced_value): Likewise.
5329
5330 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5331
5332 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
5333 (allocate_piece_closure): Drop addr_size parameter.
5334 (dwarf2_evaluate_loc_desc_full): Adjust call to
5335 allocate_piece_closure.
5336
5337 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5338
5339 PR gdb/21226
5340 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
5341 the LSB end, independent of endianness.
5342
5343 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5344
5345 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
5346 size capping.
5347
5348 2017-06-13 Yao Qi <yao.qi@linaro.org>
5349
5350 * mips-linux-nat.c: Move include features/mips*-linux.c to
5351 mips-linux-tdep.c.
5352 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
5353 to mips-linux-tdep.c.
5354 * mips-linux-tdep.c: Include features/mips*-linux.c
5355 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
5356 functions.
5357 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
5358 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
5359 (tdesc_mips64_dsp_linux): Declare.
5360
5361 2017-06-12 Tom Tromey <tom@tromey.com>
5362
5363 * valprint.h (val_print_type_code_int): Remove.
5364 * valprint.c (generic_val_print_int): Always call
5365 val_print_scalar_formatted.
5366 (val_print_type_code_int): Remove.
5367 * printcmd.c (print_scalar_formatted): Handle options->format==0.
5368 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
5369 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
5370 * ada-valprint.c (ada_val_print_num): Use
5371 val_print_scalar_formatted.
5372
5373 2017-06-12 Tom Tromey <tom@tromey.com>
5374
5375 * printcmd.c (print_scalar_formatted): Unify the two switches.
5376 Don't convert scalars to LONGEST.
5377
5378 2017-06-12 Tom Tromey <tom@tromey.com>
5379
5380 PR exp/16225:
5381 * valprint.h (print_decimal_chars): Update.
5382 * valprint.c (maybe_negate_by_bytes): New function.
5383 (print_decimal_chars): Add "is_signed" argument.
5384 * printcmd.c (print_scalar_formatted): Update.
5385
5386 2017-06-12 Tom Tromey <tom@tromey.com>
5387
5388 PR exp/16225:
5389 * valprint.h (print_binary_chars, print_hex_chars): Update.
5390 * valprint.c (val_print_type_code_int): Update.
5391 (print_binary_chars): Add "zero_pad" argument.
5392 (emit_octal_digit): New function.
5393 (print_octal_chars): Don't zero-pad.
5394 (print_decimal_chars): Likewise.
5395 (print_hex_chars): Add "zero_pad" argument.
5396 * sh64-tdep.c (sh64_do_fp_register): Update.
5397 * regcache.c (regcache::dump): Update.
5398 * printcmd.c (print_scalar_formatted): Update.
5399 * infcmd.c (default_print_one_register_info): Update.
5400
5401 2017-06-12 Pedro Alves <palves@redhat.com>
5402 Alan Hayward <alan.hayward@arm.com>
5403
5404 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
5405 (mips_eabi_push_dummy_call): Rename local 'regsize' to
5406 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
5407 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
5408 Assert that abi_regsize bytes fit in 'ref_valbuf'.
5409
5410 2017-06-12 Pedro Alves <palves@redhat.com>
5411
5412 * dwarf2read.c (mapped_symtab::data): Now a vector of
5413 symtab_index_entry instead of vector of
5414 std::unique_ptr<symtab_index_entry>. All users adjusted to check
5415 whether an element's name is NULL instead of checking whether the
5416 element itself is NULL.
5417 (find_slot): Change return type. Adjust.
5418 (hash_expand, , add_index_entry, uniquify_cu_indices)
5419 (write_hash_table): Adjust.
5420
5421 2017-06-12 Pedro Alves <palves@redhat.com>
5422
5423 * dwarf2read.c (recursively_count_psymbols): New function.
5424 (write_psymtabs_to_index): Call it to compute number of psyms and
5425 pass estimate size of psyms_seen to unordered_set's ctor.
5426
5427 2017-06-12 Pedro Alves <palves@redhat.com>
5428
5429 * dwarf2read.c (write_hash_table): Check if key already exists
5430 before emplacing.
5431
5432 2017-06-12 Pedro Alves <palves@redhat.com>
5433
5434 * dwarf2read.c (data_buf::append_space): Rename to...
5435 (data_buf::grow): ... this, and make private. Adjust all callers.
5436 (data_buf::append_uint): New method.
5437 (add_address_entry, write_one_signatured_type)
5438 (write_psymtabs_to_index): Use it.
5439
5440 2017-06-12 Pedro Alves <palves@redhat.com>
5441
5442 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
5443 (file_write (FILE *, const std::vector<Elem>&)): Delete.
5444 (data_buf::file_write): Call ::fwrite directly.
5445
5446 2017-06-12 Pedro Alves <palves@redhat.com>
5447
5448 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
5449 std::vector::erase.
5450
5451 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5452
5453 Code cleanup: C++ify .gdb_index producer.
5454 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
5455 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
5456 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
5457 (create_strtab, add_string): Remove.
5458 (file_write, data_buf): New.
5459 (struct symtab_index_entry): Use std::vector for cu_indices.
5460 (struct mapped_symtab): Use std::vector for data.
5461 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
5462 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
5463 Remove.
5464 (find_slot): Change return type. Update it to the new data structures.
5465 (hash_expand, add_index_entry): Update it to the new data structures.
5466 (offset_type_compare): Remove.
5467 (uniquify_cu_indices): Update it to the new data structures.
5468 (c_str_view, c_str_view_hasher, vector_hasher): New.
5469 (add_indices_to_cpool): Remove.
5470 (write_hash_table): Update it to the new data structures.
5471 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
5472 (eq_psymtab_cu_index): Remove.
5473 (psym_index_map): New typedef.
5474 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
5475 reference and std::unordered_map for cu_index_htab.
5476 (add_address_entry, add_address_entry_worker, write_address_map)
5477 (write_psymbols): Update it to the new data structures.
5478 (write_obstack): Remove.
5479 (struct signatured_type_index_data): Change types_list to a data_buf
5480 reference and psyms_seen to a std::unordered_set reference.
5481 (write_one_signatured_type, recursively_write_psymbols)
5482 (write_psymtabs_to_index): Update it to the new data structures.
5483
5484 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
5485
5486 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
5487 separate-debug-file commands.
5488 * symfile.h (separate_debug_file_debug): New global.
5489 * symfile.c (separate_debug_file_debug): New global.
5490 (separate_debug_file_exists, find_separate_debug_file): Add
5491 debug output.
5492 (_initialize_symfile): Add "set debug separate-debug-file"
5493 command.
5494 * build-id.c (build_id_to_debug_bfd,
5495 find_separate_debug_file_by_buildid): Add debug output.
5496
5497 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5498
5499 * gdbarch.sh (displaced_step_free_closure): Remove.
5500 * gdbarch.h, gdbarch.c: Re-generate.
5501 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
5502 displaced_step_free_closure.
5503 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
5504 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
5505 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
5506 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
5507 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5508 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5509 * arch-utils.h (simple_displaced_step_free_closure): Remove.
5510 * arch-utils.c (simple_displaced_step_free_closure): Remove.
5511 * infrun.c (displaced_step_clear): Call xfree instead of
5512 gdbarch_displaced_step_free_closure.
5513
5514 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
5515
5516 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
5517 NULL".
5518
5519 2017-06-08 Alan Hayward <alan.hayward@arm.com>
5520
5521 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
5522 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
5523 (mn10300_push_dummy_call): Likewise.
5524
5525 2017-06-08 Alan Hayward <alan.hayward@arm.com>
5526
5527 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
5528
5529 2017-06-08 Alan Hayward <alan.hayward@arm.com>
5530
5531 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
5532
5533 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5534
5535 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
5536 able to start inferiors using a shell.
5537 (New remote packets): Announce new packet "QStartupWithShell".
5538 * remote.c: Add PACKET_QStartupWithShell.
5539 (extended_remote_create_inferior): Handle new
5540 PACKET_QStartupWithShell.
5541 (remote_protocol_features) <QStartupWithShell>: New entry for
5542 PACKET_QStartupWithShell.
5543 (_initialize_remote): Call "add_packet_config_cmd" for
5544 QStartupShell.
5545
5546 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5547 Pedro Alves <palves@redhat.com>
5548
5549 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
5550 and "nat/fork-inferior.h".
5551 * common/common-inferior.h: New file, with contents from
5552 "gdb/inferior.h".
5553 * commom/common-utils.c: Include "common-utils.h".
5554 (stringify_argv): New function.
5555 * common/common-utils.h (stringify_argv): New prototype.
5556 * configure.nat: Add "fork-inferior.o" as a dependency for
5557 "*linux*", "fbsd*" and "nbsd*" hosts.
5558 * corefile.c (get_exec_file): Update comment.
5559 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
5560 instead of "startup_inferior".
5561 (darwin_create_inferior): Call "add_thread_silent" after
5562 "fork_inferior".
5563 * fork-child.c: Cleanup unnecessary includes.
5564 (SHELL_FILE): Move to "common/common-fork-child.c".
5565 (environ): Likewise.
5566 (exec_wrapper): Initialize.
5567 (get_exec_wrapper): New function.
5568 (breakup_args): Move to "common/common-fork-child.c"; rename to
5569 "breakup_args_for_exec".
5570 (escape_bang_in_quoted_argument): Move to
5571 "common/common-fork-child.c".
5572 (saved_ui): New variable.
5573 (prefork_hook): New function.
5574 (postfork_hook): Likewise.
5575 (postfork_child_hook): Likewise.
5576 (gdb_startup_inferior): Likewise.
5577 (fork_inferior): Move to "common/common-fork-child.c". Update
5578 function to support gdbserver.
5579 (startup_inferior): Likewise.
5580 * gdbcore.h (get_exec_file): Remove declaration.
5581 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
5582 instead of "startup_inferior". Call "add_thread_silent" after
5583 "fork_inferior".
5584 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
5585 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
5586 instead of "startup_inferior". Call "add_thread_silent" after
5587 "fork_inferior".
5588 * inferior.h: Include "common-inferior.h".
5589 (trace_start_error): Move to "common/common-utils.h".
5590 (trace_start_error_with_name): Likewise.
5591 (fork_inferior): Move prototype to "nat/fork-inferior.h".
5592 (startup_inferior): Likewise.
5593 (gdb_startup_inferior): New prototype.
5594 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
5595 * nat/fork-inferior.h: New file.
5596 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
5597 instead of "startup_inferior". Call "add_thread_silent" after
5598 "fork_inferior".
5599 * target.h (target_terminal_init): Move prototype to
5600 "target/target.h".
5601 (target_terminal_inferior): Likewise.
5602 (target_terminal_ours): Likewise.
5603 * target/target.h (target_terminal_init): New prototype, moved
5604 from "target.h".
5605 (target_terminal_inferior): Likewise.
5606 (target_terminal_ours): Likewise.
5607 * utils.c (gdb_flush_out_err): New function.
5608
5609 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5610
5611 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
5612 * common/common-gdbthread.h: New file, with parts from
5613 "gdb/gdbthread.h".
5614 * gdbthread.h: Include "common-gdbthread.h".
5615 (switch_to_thread): Moved to "common/common-gdbthread.h".
5616
5617 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
5618
5619 * Makefile.in (SFILES): Add "common/job-control.c".
5620 (HFILES_NO_SRCDIR): Add "common/job-control.h".
5621 (COMMON_OBS): Add "job-control.o".
5622 * common/job-control.c: New file, with contents from
5623 "gdb/inflow.c".
5624 * common/job-control.h: New file, with contents from "terminal.h".
5625 * fork-child.c: Include "job-control.h".
5626 * inflow.c: Include "job-control.h".
5627 (gdb_setpgid): Move to "common/common-inflow.c".
5628 (_initialize_inflow): Move setting of "job_control" to
5629 "handle_job_control".
5630 * terminal.h (job_control): Moved to "common/common-terminal.h".
5631 (gdb_setpgid): Likewise.
5632 * top.c: Include "job_control.h".
5633 * utils.c: Likewise.
5634 (job_control): Moved to "job-control.c".
5635
5636 2017-06-07 Pedro Alves <palves@redhat.com>
5637
5638 * Makefile.in (SFILES): Add gdb_regex.c.
5639 (COMMON_OBS): Add gdb_regex.o.
5640 * ada-lang.c (ada_add_standard_exceptions)
5641 (ada_add_exceptions_from_frame, name_matches_regex)
5642 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
5643 parameter type to compiled_regex. Adjust.
5644 (ada_exceptions_list): Use compiled_regex.
5645 * break-catch-throw.c (exception_catchpoint::pattern): Now a
5646 std::unique_ptr<compiled_regex>.
5647 (exception_catchpoint::~exception_catchpoint): Remove regfree
5648 call.
5649 (check_status_exception_catchpoint): Adjust to use compiled_regex.
5650 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
5651 * breakpoint.c (solib_catchpoint::compiled): Now a
5652 std::unique_ptr<compiled_regex>.
5653 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
5654 (check_status_catch_solib): Adjust to use compiled_regex.
5655 (add_solib_catchpoint): Adjust to use compiled_regex.
5656 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
5657 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
5658 compiled_regex reference. Adjust to use it.
5659 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
5660 declaration. Include "gdb_regex.h".
5661 (apropos_cmd): Change regex parameter to compiled_regex reference.
5662 * gdb_regex.c: New file.
5663 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
5664 declarations.
5665 (class compiled_regex): New.
5666 * linux-tdep.c: Include "common/gdb_optional.h".
5667 (struct mapping_regexes): New, factored out from
5668 mapping_is_anonymous_p, and adjusted to use compiled_regex.
5669 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
5670 gdb::optional and remove cleanups. Adjust to compiled_regex.
5671 * probe.c: Include "common/gdb_optional.h".
5672 (collect_probes): Use compiled_regex and gdb::optional and remove
5673 cleanups.
5674 * skip.c: Include "common/gdb_optional.h".
5675 (skiplist_entry::compiled_function_regexp): Now a
5676 gdb::optional<compiled_regex>.
5677 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
5678 (free_skiplist_entry): Remove regfree call.
5679 (compile_skip_regexp, skip_rfunction_p): Adjust to use
5680 compiled_regex and gdb::optional.
5681 * symtab.c: Include "common/gdb_optional.h".
5682 (search_symbols): Use compiled_regex and gdb::optional.
5683 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
5684 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
5685 to gdb_regex.c.
5686
5687 2017-06-07 Alan Hayward <alan.hayward@arm.com>
5688
5689 * regcache.c (regcache::save): Avoid buffer use.
5690 (regcache::dump): Likewise.
5691
5692 2017-06-07 Alan Hayward <alan.hayward@arm.com>
5693
5694 * sh-tdep.c (sh_pseudo_register_read): Remove
5695 MAX_REGISTER_SIZE.
5696 (sh_pseudo_register_write): Likewise.
5697 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
5698 (sh64_pseudo_register_write): Likewise
5699
5700 2017-06-07 Alan Hayward <alan.hayward@arm.com>
5701
5702 * aarch64-tdep.c (aarch64_store_return_value): Use
5703 V_REGISTER_SIZE.
5704 (aarch64_pseudo_read_value): Likewise.
5705 (aarch64_pseudo_write): Likewise.
5706
5707 2017-06-06 Yao Qi <yao.qi@linaro.org>
5708
5709 * regformats/regdef.h (set_register_cache): Remove the
5710 declaration.
5711
5712 2017-06-06 Alan Hayward <alan.hayward@arm.com>
5713
5714 * frame.c (frame_unwind_register_signed): Use
5715 frame_unwind_register_value.
5716
5717 2017-06-06 Pedro Alves <palves@redhat.com>
5718
5719 PR breakpoints/21553
5720 * breakpoint.c (create_breakpoints_sal_default)
5721 (init_breakpoint_sal, create_breakpoint_sal): Use
5722 gdb::unique_xmalloc_ptr for string parameters.
5723 (create_breakpoint): Constify 'extra_string' and 'cond_string'
5724 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
5725 (base_breakpoint_create_breakpoints_sal)
5726 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
5727 (strace_marker_create_breakpoints_sal)
5728 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
5729 string parameters.
5730 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
5731 gdb::unique_xmalloc_ptr for string parameters.
5732 (create_breakpoint): Constify 'extra_string' and 'cond_string'
5733 parameters.
5734
5735 2017-06-06 Alan Hayward <alan.hayward@arm.com>
5736
5737 * alpha-tdep.c (alpha_register_to_value): Use
5738 get_frame_register_value.
5739 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
5740
5741 2017-06-06 Alan Hayward <alan.hayward@arm.com>
5742
5743 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
5744 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
5745 (ia64_value_to_register): Likewise.
5746 (ia64_extract_return_value): Likewise.
5747 (ia64_store_return_value): Likewise.
5748 (ia64_push_dummy_call): Likewise.
5749
5750 2017-06-04 Joel Brobecker <brobecker@adacore.com>
5751
5752 GDB 8.0 released.
5753
5754 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
5755
5756 * x86-linux-nat.c (struct arch_lwp_info): Remove.
5757
5758 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
5759
5760 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
5761 parameter.
5762 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
5763
5764 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
5765
5766 * event-loop.c (poll_timers): Unallocate timer using delete
5767 instead of xfree.
5768
5769 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5770
5771 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
5772 (struct breakpoint) <~breakpoint>: New.
5773 (struct watchpoint): Inherit from breakpoint.
5774 <~watchpoint>: New.
5775 <base>: Remove.
5776 (struct tracepoint): Inherit from breakpoint.
5777 <base>: Remove.
5778 * breakpoint.c (longjmp_breakpoint_ops): Remove.
5779 (struct longjmp_breakpoint): Inherit from breakpoint.
5780 <~longjmp_breakpoint>: New.
5781 <base>: Remove.
5782 (new_breakpoint_from_type): Remove casts.
5783 (watchpoint_in_thread_scope): Remove reference to base field.
5784 (watchpoint_del_at_next_stop): Likewise.
5785 (update_watchpoint): Likewise.
5786 (watchpoint_check): Likewise.
5787 (bpstat_check_watchpoint): Likewise.
5788 (set_longjmp_breakpoint): Likewise.
5789 (struct fork_catchpoint): Inherit from breakpoint.
5790 <base>: Remove.
5791 (struct solib_catchpoint): Inherit from breakpoint.
5792 <~solib_catchpoint>: New.
5793 <base>: Remove.
5794 (dtor_catch_solib): Change to ...
5795 (solib_catchpoint::~solib_catchpoint): ... this.
5796 (breakpoint_hit_catch_solib): Remove reference to base field.
5797 (add_solib_catchpoint): Likewise.
5798 (create_fork_vfork_event_catchpoint): Likewise.
5799 (struct exec_catchpoint): Inherit from breakpoint.
5800 <~exec_catchpoint>: New.
5801 <base>: Remove.
5802 (dtor_catch_exec): Change to ...
5803 (exec_catchpoint::~exec_catchpoint): ... this.
5804 (dtor_watchpoint): Change to ...
5805 (watchpoint::~watchpoint): ... this.
5806 (watch_command_1): Remove reference to base field.
5807 (catch_exec_command_1): Likewise.
5808 (base_breakpoint_dtor): Change to ...
5809 (breakpoint::~breakpoint): ... this.
5810 (base_breakpoint_ops): Remove dtor field value.
5811 (longjmp_bkpt_dtor): Change to ...
5812 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
5813 (strace_marker_create_breakpoints_sal): Remove reference to base
5814 field.
5815 (delete_breakpoint): Don't manually call breakpoint destructor.
5816 (create_tracepoint_from_upload): Remove reference to base field.
5817 (trace_pass_set_count): Likewise.
5818 (initialize_breakpoint_ops): Don't initialize
5819 momentary_breakpoint_ops, don't set dtors.
5820 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
5821 <~ada_catchpoint>: New.
5822 <base>: Remove.
5823 (create_excep_cond_exprs): Remove reference to base field.
5824 (dtor_exception): Change to ...
5825 (ada_catchpoint::~ada_catchpoint): ... this.
5826 (dtor_catch_exception): Remove.
5827 (dtor_catch_exception_unhandled): Remove.
5828 (dtor_catch_assert): Remove.
5829 (create_ada_exception_catchpoint): Remove reference to base
5830 field.
5831 (initialize_ada_catchpoint_ops): Don't set dtors.
5832 * break-catch-sig.c (struct signal_catchpoint): Inherit from
5833 breakpoint.
5834 <~signal_catchpoint>: New.
5835 <base>: Remove.
5836 (signal_catchpoint_dtor): Change to ...
5837 (signal_catchpoint::~signal_catchpoint): ... this.
5838 (create_signal_catchpoint): Remove reference to base field.
5839 (initialize_signal_catchpoint_ops): Don't set dtor.
5840 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
5841 from breakpoint.
5842 <~syscall_catchpoint>: New.
5843 <base>: Remove.
5844 (dtor_catch_syscall): Change to ...
5845 (syscall_catchpoint::~syscall_catchpoint): ... this.
5846 (create_syscall_event_catchpoint): Remove reference to base
5847 field.
5848 (initialize_syscall_catchpoint_ops): Don't set dtor.
5849 * break-catch-throw.c (struct exception_catchpoint): Inherit
5850 from breakpoint.
5851 <~exception_catchpoint>: New.
5852 <base>: Remove.
5853 (dtor_exception_catchpoint): Change to ...
5854 (exception_catchpoint::~exception_catchpoint): ... this.
5855 (handle_gnu_v3_exceptions): Remove reference to base field.
5856 (initialize_throw_catchpoint_ops): Don't set dtor.
5857 * ctf.c (ctf_get_traceframe_address): Remove reference to base
5858 field.
5859 * remote.c (remote_get_tracepoint_status): Likewise.
5860 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
5861 * tracefile.c (tracefile_fetch_registers): Likewise.
5862 * tracepoint.c (actions_command): Likewise.
5863 (validate_actionline): Likewise.
5864 (tfind_1): Likewise.
5865 (get_traceframe_location): Likewise.
5866 (find_matching_tracepoint_location): Likewise.
5867 (parse_tracepoint_status): Likewise.
5868 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
5869
5870 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5871
5872 * breakpoint.c (struct longjmp_breakpoint): New struct.
5873 (is_tracepoint_type): Change return type to bool.
5874 (is_longjmp_type): New function.
5875 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
5876 (set_raw_breakpoint_without_location): Use
5877 new_breakpoint_from_type.
5878 (set_raw_breakpoint): Likewise.
5879
5880 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
5881
5882 * breakpoint.c (new_breakpoint_from_type): New function.
5883 (create_breakpoint_sal): Use new_breakpoint_from_type and
5884 unique_ptr.
5885 (create_breakpoint): Likewise.
5886
5887 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
5888
5889 * memattr.c (mem_info_command): Rename to ...
5890 (info_mem_command): ... this.
5891 (mem_enable_command): Rename to ...
5892 (enable_mem_command): ... this.
5893 (mem_disable_command): Rename to ...
5894 (disable_mem_command): ... this.
5895 (mem_delete_command): Rename to ...
5896 (delete_mem_command): ... this.
5897 (_initialize_mem): Adjust function names.
5898
5899 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
5900
5901 * btrace.c (handle_pt_insn_events): New.
5902 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
5903 STATUS. Split into this and ...
5904 (handle_pt_insn_event_flags): ... this.
5905
5906 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
5907
5908 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
5909 and struct pt_insn.resynced.
5910 * configure: Regenerated.
5911 * config.in: Regenerated.
5912
5913 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5914
5915 * btrace.c (ftrace_find_call_by_number): New function.
5916 (ftrace_new_function): Store objects, not pointers.
5917 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
5918 ftrace_new_gap, ftrace_update_function,
5919 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
5920 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
5921 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
5922 btrace_ends_with_single_insn, btrace_call_get): Account for
5923 btrace_thread_info::functions now storing objects.
5924 * btrace.h (struct btrace_thread_info): Add constructor.
5925 (struct btrace_thread_info) <functions>: Make std::vector.
5926 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
5927 Initialize with default values.
5928 * record-btrace.c (record_btrace_frame_sniffer): Account for
5929 btrace_thread_info::functions now storing objects.
5930
5931 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5932
5933 * btrace.c: Remove typedef bfun_s.
5934 (ftrace_new_gap): Directly add gaps to the list of gaps.
5935 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
5936 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
5937 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
5938 instead of gdb VEC.
5939
5940 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5941
5942 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
5943 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
5944 with btrace_thread_info::next_segment and
5945 btrace_thread_info::prev_segment.
5946 * btrace.h: Remove struct btrace_func_link.
5947 (struct btrace_function): Replace pair of function segment pointers
5948 with pair of indices.
5949 * python/py-record-btrace.c (btpy_call_prev_sibling,
5950 btpy_call_next_sibling): Replace references to
5951 btrace_thread_info::segment with btrace_thread_info::next_segment and
5952 btrace_thread_info::prev_segment.
5953 * record-btrace.c (record_btrace_frame_this_id): Use
5954 btrace_find_call_by_number.
5955
5956 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5957
5958 * btrace.c (ftrace_new_function, ftrace_fixup_level,
5959 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
5960 btrace_insn_next, btrace_insn_prev): Remove references to
5961 btrace_thread_info::flow.
5962 * btrace.h (struct btrace_function): Remove FLOW.
5963
5964 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5965
5966 * btrace.c (ftrace_find_call_by_number): New function.
5967 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
5968 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
5969 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
5970 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
5971 index.
5972 * btrace.h (struct btrace_function): Turn UP into an index.
5973 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
5974 as an index.
5975 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
5976 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
5977 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
5978
5979 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5980
5981 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
5982 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
5983 ftrace_update_function, ftrace_compute_global_level_offset,
5984 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
5985 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
5986 btrace_insn_end, btrace_is_empty): Remove references to
5987 btrace_thread_info::begin and btrace_thread_info::end.
5988 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
5989 (struct btrace_thread_info) <functions>: Adjust comment.
5990 * record-btrace.c (record_btrace_start_replaying): Remove reference to
5991 btrace_thread_info::begin.
5992
5993 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
5994
5995 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
5996 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
5997 ftrace_update_function): Remove arguments that implicitly were always
5998 BTINFO->END.
5999 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
6000 Don't pass BTINFO->END.
6001
6002 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6003
6004 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
6005 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
6006 btrace_find_insn_by_number): Replace function segment pointer with
6007 index.
6008 (btrace_insn_cmp): Simplify.
6009 * btrace.h: (struct btrace_insn_iterator) Rename index to
6010 insn_index. Replace function segment pointer with index into function
6011 segment vector.
6012 * record-btrace.c (record_btrace_call_history): Replace function
6013 segment pointer use with index.
6014 (record_btrace_frame_sniffer): Retrieve function call segment through
6015 vector.
6016 (record_btrace_set_replay): Remove defunc't safety check.
6017
6018 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6019
6020 * btrace.c (btrace_ends_with_single_insn): New function.
6021 (btrace_call_get, btrace_call_number, btrace_call_begin,
6022 btrace_call_end, btrace_call_next, btrace_call_prev,
6023 btrace_find_call_by_number): Use index into call segment vector
6024 instead of pointer.
6025 (btrace_call_cmp): Simplify.
6026 * btrace.h (struct btrace_call_iterator): Replace function call segment
6027 pointer with index into vector.
6028 * record-btrace.c (record_btrace_call_history): Use index instead of
6029 pointer.
6030
6031 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6032
6033 * btrace.c (btrace_insn_begin, btrace_insn_end,
6034 btrace_find_insn_by_number): Add btinfo to iterator.
6035 * btrace.h (struct btrace_insn_iterator): Add btinfo.
6036
6037 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6038
6039 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
6040 and save pointers directly.
6041 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
6042 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
6043 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
6044 changed signature of functions.
6045 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
6046 (btrace_fetch): Remove code that adds btrace_function pointers to
6047 vector of btrace_functions.
6048 (btrace_clear): Simplify freeing vector of btrace_functions.
6049
6050 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
6051
6052 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
6053 Replace VEC_* with std::vector functions.
6054 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
6055 (struct btrace_thread_info)<functions>: Change type to std::vector.
6056
6057 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
6058
6059 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
6060 "Removed targets and native configurations" up. Merge duplicate
6061 "New commands" sub-sections. Add "New options" sub-sections.
6062
6063 2017-05-26 Alan Hayward <alan.hayward@arm.com>
6064
6065 * defs.h (copy_integer_to_size): New declaration.
6066 * findvar.c (copy_integer_to_size): New function.
6067 (do_cint_test): New selftest function.
6068 (copy_integer_to_size_test): Likewise.
6069 (_initialize_findvar): Likewise.
6070 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
6071 (mips_fbsd_collect_reg): Use raw_collect_integer.
6072 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
6073 (mips64_fill_gregset): Use raw_collect_integer
6074 (mips64_fill_fpregset): Use raw_supply_integer.
6075 * regcache.c (regcache::raw_supply_integer): New function.
6076 (regcache::raw_collect_integer): Likewise.
6077 * regcache.h: (regcache::raw_supply_integer): New declaration.
6078 (regcache::raw_collect_integer): Likewise.
6079
6080 2017-05-24 Yao Qi <yao.qi@linaro.org>
6081
6082 * Makefile.in (SFILES): Add gdbarch-selftests.c.
6083 (COMMON_OBS): Add gdbarch-selftests.o.
6084 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
6085 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
6086 * gdbarch-selftests.c: New file.
6087 * regcache.h (regcache) <~regcache>: Mark it virtual if
6088 GDB_SELF_TEST.
6089 <raw_write>: Likewise.
6090
6091 2017-05-24 Yao Qi <yao.qi@linaro.org>
6092
6093 * regcache.c (current_regcache): Change it to
6094 regcache::current_regcache.
6095 (regcache_observer_target_changed): Update.
6096 (regcache_thread_ptid_changed): Make it a regcache static
6097 method.
6098 (regcache_thread_ptid_changed): Update.
6099 (class regcache_access): New.
6100 (current_regcache_test): Update.
6101 (_initialize_regcache): Update.
6102 * regcache.h: Include forward_list.
6103 (regcache): Declare regcache_thread_ptid_changed and declare
6104 registers_changed_ptid as friend.
6105
6106 2017-05-24 Yao Qi <yao.qi@linaro.org>
6107
6108 * i387-tdep.c (i387_register_to_value): Use register_size
6109 instead of TYPE_LENGTH.
6110 * m68k-tdep.c (m68k_register_to_value): Likewise.
6111
6112 2017-05-24 Yao Qi <yao.qi@linaro.org>
6113
6114 * i387-tdep.c (i387_convert_register_p): Return false if type
6115 code isn't TYPE_CODE_FLT.
6116
6117 2017-05-24 Yao Qi <yao.qi@linaro.org>
6118
6119 * alpha-tdep.c (alpha_convert_register_p): Return true if type
6120 length is 4.
6121 (alpha_register_to_value): Remove type length check.
6122 (alpha_value_to_register): Likewise.
6123
6124 2017-05-24 Yao Qi <yao.qi@linaro.org>
6125
6126 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
6127 TYPE_CODE_FLT.
6128
6129 2017-05-24 Yao Qi <yao.qi@linaro.org>
6130
6131 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
6132 TYPE_CODE_FLT or not.
6133
6134 2017-05-24 Yao Qi <yao.qi@linaro.org>
6135
6136 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
6137 * avr-tdep.c (avr_gdbarch_init): Likewise.
6138 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6139 * cris-tdep.c (cris_gdbarch_init): Likewise.
6140 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6141 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6142 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6143 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
6144 * mep-tdep.c (mep_gdbarch_init): Likewise.
6145 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6146 * mips-tdep.c (mips_gdbarch_init): Likewise.
6147 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6148 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6149 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6150 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6151 * v850-tdep.c (v850_gdbarch_init): Likewise.
6152
6153 2017-05-24 Yao Qi <yao.qi@linaro.org>
6154
6155 * selftest-arch.c (tests_with_arch): Call registers_changed
6156 and reinit_frame_cache.
6157 * selftest.c (run_self_tests): Likewise.
6158
6159 2017-05-24 Yao Qi <yao.qi@linaro.org>
6160
6161 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
6162 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
6163
6164 2017-05-24 Yao Qi <yao.qi@linaro.org>
6165
6166 * rl78-tdep.c (rl78_gdbarch_init): Don't call
6167 set_gdbarch_print_insn.
6168
6169 2017-05-24 Yao Qi <yao.qi@linaro.org>
6170
6171 * h8300-tdep.c (h8300_gdbarch_init): Don't call
6172 set_gdbarch_print_insn.
6173
6174 2017-05-24 Yao Qi <yao.qi@linaro.org>
6175
6176 * alpha-tdep.c (alpha_gdbarch_init): Don't call
6177 set_gdbarch_print_insn.
6178 * arc-tdep.c (arc_gdbarch_init): Likewise.
6179 * arch-utils.c: include dis-asm.h.
6180 (default_print_insn): New function.
6181 * arch-utils.h (default_print_insn): Declare.
6182 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
6183 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
6184 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
6185 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
6186 * frv-tdep.c (frv_gdbarch_init): Likewise.
6187 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
6188 * gdbarch.sh (print_insn): Use default_print_insn.
6189 * gdbarch.c: Regenerated.
6190 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
6191 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
6192 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
6193 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
6194 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
6195 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
6196 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
6197 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
6198 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
6199 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
6200 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6201 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
6202 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
6203 * mt-tdep.c (mt_gdbarch_init): Likewise.
6204 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
6205 * nios2-tdep.c (nios2_print_insn): Remove.
6206 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
6207 * rx-tdep.c (rx_gdbarch_init): Likewise.
6208 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6209 * score-tdep.c (score_print_insn): Remove.
6210 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
6211 * sh-tdep.c (sh_gdbarch_init): Likewise.
6212 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
6213 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6214 * tic6x-tdep.c (tic6x_print_insn): Remove.
6215 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
6216 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
6217 * v850-tdep.c (v850_gdbarch_init): Likewise.
6218 * vax-tdep.c (vax_gdbarch_init): Likewise.
6219 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
6220 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
6221
6222 2017-05-23 John Baldwin <jhb@FreeBSD.org>
6223
6224 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
6225 (MIPS_FP0_REGNUM): Remove.
6226 (MIPS_FSR_REGNUM): Remove.
6227 (mips_fbsd_supply_fpregs): Use mips_regnum.
6228 (mips_fbsd_supply_gregs): Likewise.
6229 (mips_fbsd_collect_fpregs): Likewise.
6230 (mips_fbsd_collect_gregs): Likewise.
6231
6232 2017-05-23 John Baldwin <jhb@FreeBSD.org>
6233
6234 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
6235 (getpfpregs_supplies): New function.
6236 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
6237 getfpregs_supplies.
6238 (mips_fbsd_store_inferior_registers): Likewise.
6239
6240 2017-05-22 Pedro Alves <palves@redhat.com>
6241
6242 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
6243 maintainer.
6244
6245 2017-05-22 Alan Hayward <alan.hayward@arm.com>
6246
6247 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
6248 (store_register): Likewise.
6249 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
6250 (get_decimal_float_return_value): Likewise.
6251 (do_ppc_sysv_return_value): Likewise.
6252 (ppc64_sysv_abi_push_integer): Likewise.
6253 (ppc64_sysv_abi_push_freg): Likewise.
6254 (ppc64_sysv_abi_return_value_base): Likewise.
6255 (ppc64_sysv_abi_return_value): Likewise.
6256 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
6257 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
6258 * rs6000-nat.c: Likewise.
6259 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
6260 (rs6000_value_to_register): Likewise.
6261 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
6262
6263 2017-05-21 Tom Tromey <tom@tromey.com>
6264
6265 PR rust/21466:
6266 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
6267 arrays as "[T]", not "[T; ]".
6268
6269 2017-05-19 Tom Tromey <tom@tromey.com>
6270
6271 PR rust/21484:
6272 * rust-lang.c (exp_descriptor_rust): New function.
6273 (rust_language_defn): Use it.
6274 * p-lang.c (pascal_language_defn): Update.
6275 * opencl-lang.c (opencl_language_defn): Update.
6276 * objc-lang.c (objc_language_defn): Update.
6277 * m2-lang.c (m2_language_defn): Update.
6278 * language.h (struct language_defn)
6279 <la_watch_location_expression>: New member.
6280 * language.c (unknown_language_defn, auto_language_defn)
6281 (local_language_defn): Update.
6282 * go-lang.c (go_language_defn): Update.
6283 * f-lang.c (f_language_defn): Update.
6284 * d-lang.c (d_language_defn): Update.
6285 * c-lang.h (c_watch_location_expression): Declare.
6286 * c-lang.c (c_watch_location_expression): New function.
6287 (c_language_defn, cplus_language_defn, asm_language_defn)
6288 (minimal_language_defn): Use it.
6289 * breakpoint.c (watch_command_1): Call
6290 la_watch_location_expression.
6291 * ada-lang.c (ada_language_defn): Update.
6292
6293 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6294
6295 PR tui/21482
6296 * gdb_curses.h (NOMACROS): Define.
6297 (NCURSES_NOMACROS): Define.
6298
6299 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6300
6301 PR tui/21482
6302 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
6303 arg to char *.
6304 * tui/tui-wingeneral.c (box_win): Likewise.
6305 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
6306 (tui_show_source_line): Likewise.
6307 (tui_show_exec_info_content): Likewise.
6308
6309 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
6310
6311 * sparc-tdep.c (sparc_structure_return_p)
6312 (sparc_arg_on_registers_p): New functions.
6313 (sparc32_store_arguments): Use them.
6314 * sparc64-tdep.c (sparc64_16_byte_align_p)
6315 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
6316 Handle TYPE_CODE_ARRAY.
6317
6318 2017-05-17 Yao Qi <yao.qi@linaro.org>
6319
6320 * cli/cli-decode.c (add_alias_cmd): New function.
6321 * command.h (add_alias_cmd): Declare.
6322 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
6323 instead call add_alias_cmd.
6324
6325 2017-05-17 Pedro Alves <palves@redhat.com>
6326
6327 * Makefile.in (nat_extra_makefile_frag): Rename to ...
6328 (nat_makefile_frag): ... this. All references updated.
6329 * configure.ac: Likewise.
6330 * configure.nat: Likewise. Enhance comments.
6331 * configure: Regenerate.
6332
6333 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6334
6335 * procfs.c (procfs_create_inferior): Change prototype to match
6336 definition.
6337
6338 2017-05-13 Eli Zaretskii <eliz@gnu.org>
6339
6340 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
6341 C++ compiler warning.
6342
6343 2017-05-12 Tom Tromey <tom@tromey.com>
6344
6345 PR rust/21483:
6346 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
6347 recurse, just call value_struct_elt directly.
6348
6349 2017-05-12 Tom Tromey <tom@tromey.com>
6350
6351 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
6352 OP_RUST_ARRAY>: Fix.
6353
6354 2017-05-12 Tom Tromey <tom@tromey.com>
6355
6356 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
6357
6358 2017-05-09 Yao Qi <yao.qi@linaro.org>
6359
6360 * regcache.c: Include <forward_list>.
6361 (struct regcache_list): Remove.
6362 (current_regcache): Update.
6363 (get_thread_arch_aspace_regcache): Update for std::forward_list.
6364 (regcache_thread_ptid_changed): Likewise.
6365 (registers_changed_ptid): Likewise.
6366 (current_regcache_size): Likewise.
6367
6368 2017-05-09 Yao Qi <yao.qi@linaro.org>
6369
6370 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
6371 (current_regcache_size): New function.
6372 (current_regcache_test): New function.
6373 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
6374
6375 2017-05-08 Alan Hayward <alan.hayward@arm.com>
6376
6377 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
6378 (print_gp_register_row): Use get_frame_register_value.
6379
6380 2017-05-08 Alan Hayward <alan.hayward@arm.com>
6381
6382 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
6383 (mips_supply_fpregset): Likewise.
6384 (mips64_supply_gregset): Likewise.
6385
6386 2017-05-08 Alan Hayward <alan.hayward@arm.com>
6387
6388 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
6389 regcache->raw_supply_zeroed.
6390
6391 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6392
6393 * configure.nat: Rearrange 'case' statements to match
6394 host before cpu.
6395
6396 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
6397
6398 * Makefile.in: Remove "@host_makefile_frag@". Add variables
6399 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
6400 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
6401 "@nat_extra_makefile_frag@".
6402 (Makefile): Remove dependency on "@frags@".
6403 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
6404 (data-directory/Makefile): Likewise.
6405 * config/aarch64/linux.mh: Deleted; moved contents to
6406 "gdb/configure.nat".
6407 * config/alpha/alpha-linux.mh: Likewise.
6408 * config/alpha/nbsd.mh: Likewise.
6409 * config/arm/linux.mh: Likewise.
6410 * config/arm/nbsdelf.mh: Likewise.
6411 * config/i386/cygwin.mh: Likewise.
6412 * config/i386/cygwin64.mh: Likewise.
6413 * config/i386/darwin.mh: Likewise.
6414 * config/i386/fbsd.mh: Likewise.
6415 * config/i386/fbsd64.mh: Likewise.
6416 * config/i386/go32.mh: Likewise.
6417 * config/i386/i386gnu.mh: Likewise.
6418 * config/i386/i386sol2.mh: Likewise.
6419 * config/i386/linux.mh: Likewise.
6420 * config/i386/linux64.mh: Likewise.
6421 * config/i386/mingw.mh: Likewise.
6422 * config/i386/mingw64.mh: Likewise.
6423 * config/i386/nbsd64.mh: Likewise.
6424 * config/i386/nbsdelf.mh: Likewise.
6425 * config/i386/nto.mh: Likewise.
6426 * config/i386/obsd.mh: Likewise.
6427 * config/i386/obsd64.mh: Likewise.
6428 * config/i386/sol2-64.mh: Likewise.
6429 * config/ia64/linux.mh: Likewise.
6430 * config/m32r/linux.mh: Likewise.
6431 * config/m68k/linux.mh: Likewise.
6432 * config/m68k/nbsdelf.mh: Likewise.
6433 * config/m68k/obsd.mh: Likewise.
6434 * config/m88k/obsd.mh: Likewise.
6435 * config/mips/fbsd.mh: Likewise.
6436 * config/mips/linux.mh: Likewise.
6437 * config/mips/nbsd.mh: Likewise.
6438 * config/mips/obsd64.mh: Likewise.
6439 * config/pa/linux.mh: Likewise.
6440 * config/pa/nbsd.mh: Likewise.
6441 * config/pa/obsd.mh: Likewise.
6442 * config/powerpc/aix.mh: Likewise.
6443 * config/powerpc/fbsd.mh: Likewise.
6444 * config/powerpc/linux.mh: Likewise.
6445 * config/powerpc/nbsd.mh: Likewise.
6446 * config/powerpc/obsd.mh: Likewise.
6447 * config/powerpc/ppc64-linux.mh: Likewise.
6448 * config/powerpc/spu-linux.mh: Likewise.
6449 * config/s390/linux.mh: Likewise.
6450 * config/sh/nbsd.mh: Likewise.
6451 * config/sparc/fbsd.mh: Likewise.
6452 * config/sparc/linux.mh: Likewise.
6453 * config/sparc/linux64.mh: Likewise.
6454 * config/sparc/nbsd64.mh: Likewise.
6455 * config/sparc/nbsdelf.mh: Likewise.
6456 * config/sparc/obsd64.mh: Likewise.
6457 * config/sparc/sol2.mh: Likewise.
6458 * config/tilegx/linux.mh: Likewise.
6459 * config/vax/nbsdelf.mh: Likewise.
6460 * config/vax/obsd.mh: Likewise.
6461 * config/xtensa/linux.mh: Likewise.
6462 * config/i386/i386gnu.mn: New file, with excerpts from
6463 "config/i386/i386gnu.mh".
6464 * configure: Regenerate.
6465 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
6466 *.mh files under "gdb/config".
6467 * configure.nat: New file, with contents from the
6468 "gdb/config/*/*.mh" files.
6469
6470 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
6471
6472 * btrace.c (btrace_clear): Free insn vector.
6473
6474 2017-05-05 Pedro Alves <palves@redhat.com>
6475
6476 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
6477 * configure: Regenerate.
6478
6479 2017-05-04 Pedro Alves <palves@redhat.com>
6480
6481 * Makefile.in (SFILES): Add progspace-and-thread.c.
6482 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
6483 (COMMON_OBS): Add progspace-and-thread.o.
6484 * breakpoint.c: Include "progspace-and-thread.h".
6485 (update_inserted_breakpoint_locations)
6486 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
6487 Use scoped_restore_current_pspace_and_thread.
6488 (create_std_terminate_master_breakpoint): Use
6489 scoped_restore_current_program_space.
6490 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
6491 (print_breakpoint_location): Use
6492 scoped_restore_current_program_space.
6493 (bp_loc_is_permanent): Use
6494 scoped_restore_current_pspace_and_thread.
6495 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
6496 (download_tracepoint_locations): Use
6497 scoped_restore_current_pspace_and_thread.
6498 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
6499 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
6500 (enum step_over_calls_kind): Moved from inferior.h.
6501 (class scoped_restore_current_thread): New class.
6502 * gdbthread.h (make_cleanup_restore_current_thread): Delete
6503 declaration.
6504 (scoped_restore_current_thread): New class.
6505 * infcmd.c: Include "common/gdb_optional.h".
6506 (continue_1, proceed_after_attach): Use
6507 scoped_restore_current_thread.
6508 (notice_new_inferior): Use scoped_restore_current_thread.
6509 * inferior.c: Include "progspace-and-thread.h".
6510 (restore_inferior, save_current_inferior): Delete.
6511 (add_inferior_command, clone_inferior_command): Use
6512 scoped_restore_current_pspace_and_thread.
6513 * inferior.h (scoped_restore_current_inferior): New class.
6514 * infrun.c: Include "progspace-and-thread.h" and
6515 "common/gdb_optional.h".
6516 (follow_fork_inferior): Use
6517 scoped_restore_current_pspace_and_thread.
6518 (scoped_restore_exited_inferior): New class.
6519 (handle_vfork_child_exec_or_exit): Use
6520 scoped_restore_exited_inferior,
6521 scoped_restore_current_pspace_and_thread,
6522 scoped_restore_current_thread and scoped_restore.
6523 (fetch_inferior_event): Use scoped_restore_current_thread.
6524 * linespec.c (decode_line_full, decode_line_1): Use
6525 scoped_restore_current_program_space.
6526 * mi/mi-main.c: Include "progspace-and-thread.h".
6527 (exec_continue): Use scoped_restore_current_thread.
6528 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
6529 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
6530 * proc-service.c (ps_pglobal_lookup): Use
6531 scoped_restore_current_program_space.
6532 * progspace-and-thread.c: New file.
6533 * progspace-and-thread.h: New file.
6534 * progspace.c (release_program_space, clone_program_space): Use
6535 scoped_restore_current_program_space.
6536 (restore_program_space, save_current_program_space)
6537 (save_current_space_and_thread): Delete.
6538 (switch_to_program_space_and_thread): Moved to
6539 progspace-and-thread.c.
6540 * progspace.h (save_current_program_space)
6541 (save_current_space_and_thread): Delete declarations.
6542 (scoped_restore_current_program_space): New class.
6543 * remote.c (remote_btrace_maybe_reopen): Use
6544 scoped_restore_current_thread.
6545 * symtab.c: Include "progspace-and-thread.h".
6546 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
6547 * thread.c (print_thread_info_1): Use
6548 scoped_restore_current_thread.
6549 (struct current_thread_cleanup): Delete.
6550 (do_restore_current_thread_cleanup)
6551 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
6552 (scoped_restore_current_thread::~scoped_restore_current_thread):
6553 ... this new dtor.
6554 (make_cleanup_restore_current_thread): Rename/convert to ...
6555 (scoped_restore_current_thread::scoped_restore_current_thread):
6556 ... this new ctor.
6557 (thread_apply_all_command): Use scoped_restore_current_thread.
6558 (thread_apply_command): Use scoped_restore_current_thread.
6559 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
6560 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
6561
6562 2017-05-04 Pedro Alves <palves@redhat.com>
6563
6564 * thread.c (make_cleanup_restore_current_thread): Move
6565 find_thread_ptid call before the is_stopped call. Assert that the
6566 thread is found. Replace is_stopped call by checking the thread's
6567 state directly. Remove unnecessary NULL-thread check.
6568
6569 2017-05-04 Pedro Alves <palves@redhat.com>
6570
6571 * corelow.c (thread_section_name): New class.
6572 (get_core_register_section, get_core_siginfo): Use it.
6573
6574 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
6575
6576 * corelow.c (sniff_core_bfd): Remove extra semicolon.
6577 (get_core_register_section): Remove xfree of NULL pointer.
6578
6579 2017-05-03 Alan Hayward <alan.hayward@arm.com>
6580
6581 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
6582 * regcache.c (regcache::raw_supply_zeroed): New function.
6583 * regcache.h (regcache::raw_supply_zeroed): New declaration.
6584
6585 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
6586
6587 * gdbarch.sh: Remove commented out definition of
6588 TARGET_CHAR_BIT.
6589 * gdbarch.h: Re-generate.
6590
6591 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6592
6593 * configure: Regenerate.
6594
6595 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
6596
6597 * solib-target.c (solib_target_relocate_section_addresses):
6598 Remove num_section_bases, num_bases, segment_bases variables.
6599
6600 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6601
6602 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
6603
6604 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6605
6606 * solib-target.c: Include <vector>
6607 (struct lm_info_target) <~lm_info_target>: Remove.
6608 <segment_bases, section_bases>: Change type to
6609 std::vector<CORE_ADDR>.
6610 (library_list_start_segment, library_list_start_section,
6611 library_list_end_library,
6612 solib_target_relocate_section_addresses): Adjust.
6613
6614 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6615
6616 * gdbarch.sh (software_single_step): Change return type to
6617 std::vector<CORE_ADDR>.
6618 * gdbarch.c, gdbarch.h: Re-generate.
6619 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
6620 Adjust.
6621 (arm_deal_with_atomic_sequence_raw): Adjust.
6622 (thumb_get_next_pcs_raw): Adjust.
6623 (arm_get_next_pcs_raw): Adjust.
6624 (arm_get_next_pcs): Adjust.
6625 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
6626 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
6627 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
6628 (alpha_software_single_step): Adjust.
6629 * alpha-tdep.h (alpha_software_single_step): Adjust.
6630 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
6631 * arm-tdep.c (arm_software_single_step): Adjust.
6632 (arm_breakpoint_kind_from_current_state): Adjust.
6633 * arm-tdep.h (arm_software_single_step): Adjust.
6634 * breakpoint.c (insert_single_step_breakpoint): Adjust.
6635 * cris-tdep.c (cris_software_single_step): Adjust.
6636 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
6637 (micromips_deal_with_atomic_sequence): Adjust.
6638 (deal_with_atomic_sequence): Adjust.
6639 (mips_software_single_step): Adjust.
6640 * mips-tdep.h (mips_software_single_step): Adjust.
6641 * moxie-tdep.c (moxie_software_single_step): Adjust.
6642 * nios2-tdep.c (nios2_software_single_step): Adjust.
6643 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
6644 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
6645 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
6646 * s390-linux-tdep.c (s390_software_single_step): Adjust.
6647 * sparc-tdep.c (sparc_software_single_step): Adjust.
6648 * spu-tdep.c (spu_software_single_step): Adjust.
6649 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
6650
6651 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
6652
6653 * gdbarch.sh: Use semi-colon as field separator instead of colon.
6654 * gdbarch.h: Re-generate.
6655
6656 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6657
6658 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
6659 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
6660 * python/py-instruction.c, python/py-instruction.h: New file.
6661 * python/py-record.c: Add py-instruction.h include.
6662 (gdbpy_initialize_record): Make gdb.Instruction a super class of
6663 gdb.RecordInstruction.
6664 * python/python-internal.h: Add gdbpy_initialize_instruction
6665 declaration.
6666 * python/python.c (do_start_initialization): Add
6667 gdbpy_initialize_instruction.
6668
6669 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6670
6671 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
6672 Remove.
6673 (btrace_func_from_recpy_func): New function.
6674 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
6675 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
6676 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
6677 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
6678 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
6679 Also, use new helper functions.
6680 (btpy_list_item): Use new helper functions.
6681 (recpy_bt_function_call_history): Use new type name.
6682 (btpy_call_getset): Remove.
6683 (gdbpy_initialize_btrace): Remove code to initialize
6684 gdb.BtraceFunctionCall.
6685 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
6686 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
6687 recpy_bt_func_prev, recpy_bt_func_next): New export.
6688 * python/py-record.c (recpy_func_type): New static object.
6689 (recpy_func_new, recpy_func_level, recpy_func_symbol,
6690 recpy_func_instructions, recpy_func_up, recpy_func_prev,
6691 recpy_func_next): New function.
6692 (recpy_element_hash, recpy_element_richcompare): Updated comment.
6693 (recpy_func_getset): New static object.
6694 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
6695 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
6696
6697 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6698
6699 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
6700 (btpy_object, btpy_insn_type, btpy_new): Remove.
6701 (btpy_list_object): Use gdb.RecordInstruction type instead of
6702 gdb.BtraceInstruction type.
6703 (btrace_insn_from_recpy_insn): New function.
6704 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
6705 btpy_new.
6706 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
6707 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
6708 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
6709 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
6710 instead of btpy_object.
6711 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
6712 btpy_insn_data, btpy_insn_decode): Rename to ...
6713 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
6714 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
6715 recpy_bt_insn_decode): This. Also, use new helper functions.
6716 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
6717 recpy_insn_type.
6718 (btpy_insn_getset): Remove.
6719 (gdbpy_initialize_btrace): Remove code to initialize
6720 gdb.BtraceInstruction. Use recpy_element_object.
6721 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
6722 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
6723 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
6724 * python/py-record.c (recpy_insn_type): New static object.
6725 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
6726 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
6727 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
6728 New function.
6729 (recpy_insn_getset): New static object.
6730 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
6731 * python/py-record.h (recpy_element_object): New typedef.
6732 (recpy_insn_type, recpy_insn_new): New export.
6733
6734 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6735
6736 * py-record-btrace.c (btpy_insn_new): Removed.
6737 (btpy_insn_or_gap_new): New function.
6738 (btpy_insn_error): Removed.
6739 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
6740 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
6741 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
6742 btpy_insn_or_gap_new instead of btpy_insn_new.
6743 (btpy_insn_getset): Remove btpy_insn_error.
6744 * py-record.c (recpy_gap_type): New static object.
6745 (recpy_gap_object): New typedef.
6746 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
6747 recpy_gap_reason_string): New function.
6748 (recpy_gap_getset): New static object.
6749 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
6750 * py-record.h (recpy_gap_new): New export.
6751
6752 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6753
6754 * python/py-record.c (recpy_ptid): Remove.
6755 (recpy_record_getset): Remove recpy_ptid.
6756
6757 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6758
6759 * btrace.c (btrace_fetch): Set inferior_ptid.
6760 * python/py-record-btrace.c: Add "py-record.h" include.
6761 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
6762 recpy_bt_end, recpy_bt_instruction_history,
6763 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
6764 in gdb.Record object instead of current ptid.
6765 * python/py-record.c: Include new "py-record.h" file.
6766 (recpy_record_object): Moved to py-record.h.
6767 * python/py-record.h: New file.
6768
6769 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
6770
6771 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
6772 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
6773 indentation.
6774
6775 2017-05-01 Joel Brobecker <brobecker@adacore.com>
6776
6777 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
6778 the past maintainers section.
6779
6780 2017-04-28 Yao Qi <yao.qi@linaro.org>
6781
6782 * infcmd.c (get_return_value): Use regcache ctor, and remove
6783 cleanup.
6784
6785 2017-04-28 Yao Qi <yao.qi@linaro.org>
6786 Pedro Alves <palves@redhat.com>
6787
6788 * regcache.c (regcache::regcache): New tag dispatch ctor.
6789 (do_cooked_read): Moved above.
6790 (regcache_dup): Use the tag dispatch ctor..
6791 * regcache.h (regcache): Declare ctor, delete copy ctor and
6792 assignment operator, remove friend regcache_dup.
6793
6794 2017-04-28 Yao Qi <yao.qi@linaro.org>
6795
6796 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
6797 call method save instead of regcache_cpy.
6798 * regcache.h (struct regcache): Make regcache_dup a friend.
6799
6800 2017-04-28 Yao Qi <yao.qi@linaro.org>
6801
6802 * regcache.c (struct regcache): Move to regcache.h
6803 (regcache::arch): New method.
6804 (regcache_get_ptid): Update.
6805 (get_regcache_arch): Call arch method.
6806 (get_regcache_aspace): Call method aspace.
6807 (register_buffer): Change it to method.
6808 (regcache_save): Change it to regcache::save.
6809 (regcache_restore): Likewise.
6810 (regcache_cpy_no_passthrough): Remove the declaration.
6811 (regcache_cpy): Call methods restore and cpy_no_passthrough.
6812 (regcache_cpy_no_passthrough): Change it to method
6813 cpy_no_passthrough.
6814 (regcache_register_status): Change it to method
6815 get_register_status.
6816 (regcache_invalidate): Change it to method invalidate.
6817 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
6818 (regcache_raw_update): Change it to method raw_update.
6819 (regcache_raw_read): Likewise.
6820 (regcache_raw_read_signed): Likewise.
6821 (regcache_raw_read_unsigned): Likewise.
6822 (regcache_raw_write_signed): Likewise.
6823 (regcache_raw_write_unsigned): Likewise.
6824 (regcache_cooked_read): Likewise.
6825 (regcache_cooked_read_value): Likewise.
6826 (regcache_cooked_read_signed): Likewise.
6827 (regcache_cooked_read_unsigned): Likewise.
6828 (regcache_cooked_write_signed): Likewise.
6829 (regcache_cooked_write_unsigned): Likewise.
6830 (regcache_raw_set_cached_value): Likewise.
6831 (regcache_raw_write): Likewise.
6832 (regcache_cooked_write): Likewise.
6833 (regcache_xfer_part): Likewise.
6834 (regcache_raw_read_part): Likewise.
6835 (regcache_raw_write_part): Likewise.
6836 (regcache_cooked_read_part): Likewise.
6837 (regcache_cooked_write_part): Likewise.
6838 (regcache_raw_supply): Likewise.
6839 (regcache_raw_collect): Likewise.
6840 (regcache_transfer_regset): Likewise.
6841 (regcache_supply_regset): Likewise.
6842 (regcache_collect_regset): Likewise.
6843 (regcache_debug_print_register): Likewise.
6844 (enum regcache_dump_what): Move it to regcache.h.
6845 (regcache_dump): Change it to method dump.
6846 * regcache.h (enum regcache_dump_what): New.
6847 (class regcache): New.
6848 * target.c (target_fetch_registers): Call method
6849 debug_print_register.
6850 (target_store_registers): Likewise.
6851
6852 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6853
6854 * windows-nat.c (struct lm_info_windows): Initialize field.
6855 (windows_make_so): Allocate lm_info_windows with new.
6856 (windows_free_so): Free lm_info_windows with delete.
6857
6858 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6859
6860 * solib-darwin.c (struct lm_info_darwin): Initialize field.
6861 (darwin_current_sos): Allocate lm_info_darwin with new, remove
6862 cleanup.
6863 (darwin_free_so): Free lm_info_darwin with delete.
6864
6865 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6866
6867 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
6868 <l_addr_p>: Change type to bool.
6869 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
6870 (svr4_free_so): Free lm_info_svr4 with delete.
6871 (svr4_copy_library_list): Replace memcpy with call to copy
6872 constructor.
6873 (library_list_start_library, svr4_default_sos): Allocate
6874 lm_info_svr4 with new.
6875
6876 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6877
6878 * solib-target.c (struct lm_info_target): Add destructor,
6879 initialize fields.
6880 <name>: Change type to std::string.
6881 (library_list_start_library): Allocate lm_info_target with new.
6882 (solib_target_free_library_list): Free lm_info_target with
6883 delete.
6884 (solib_target_current_sos): Adapt to std::string.
6885 (solib_target_free_so): Free lm_info_target with delete.
6886
6887 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6888
6889 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
6890 fields.
6891 (frv_current_sos): Allocate lm_info_frv with new.
6892 (frv_relocate_main_executable): Free lm_info_frv with delete,
6893 allocate with new.
6894 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
6895
6896 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6897
6898 * solib-frv.c (struct lm_info_frv): Fix indentation.
6899
6900 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6901
6902 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
6903 map field.
6904 (dsbt_current_sos): Allocate lm_info_dsbt with new.
6905 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
6906 and allocate with new.
6907 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
6908
6909 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6910
6911 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
6912 <filename, member_name>: Change type to std::string.
6913 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
6914 (library_list_start_library): Allocate lm_info_aix with new.
6915 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
6916 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
6917 with copy constructor.
6918
6919 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6920
6921 * solist.h (struct lm_info): Remove.
6922 (struct lm_info_base): New class.
6923 (struct so_list) <lm_info>: Change type to lm_info_base *.
6924 * nto-tdep.c (struct lm_info): Remove.
6925 (lm_addr): Adjust.
6926 * solib-aix.c (struct lm_info): Rename to ...
6927 (struct lm_info_aix): ... this. Extend lm_info_base.
6928 (lm_info_p): Rename to ...
6929 (lm_info_aix_p): ... this, and adjust.
6930 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
6931 solib_aix_parse_libraries, library_list_start_library,
6932 solib_aix_free_library_list, solib_aix_parse_libraries,
6933 solib_aix_get_library_list,
6934 solib_aix_relocate_section_addresses, solib_aix_free_so,
6935 solib_aix_get_section_offsets,
6936 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
6937 Adjust.
6938 (struct solib_aix_inferior_data) <library_list>: Adjust.
6939 * solib-darwin.c (struct lm_info): Rename to ...
6940 (struct lm_info_darwin): ... this. Extend lm_info_base.
6941 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
6942 * solib-dsbt.c (struct lm_info): Rename to ...
6943 (struct lm_info_dsbt): ... this. Extend lm_info_base.
6944 (struct dsbt_info) <main_executable_lm_info): Adjust.
6945 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
6946 dsbt_relocate_section_addresses): Adjust.
6947 * solib-frv.c (struct lm_info): Rename to ...
6948 (struct lm_info_frv): ... this. Extend lm_info_base.
6949 (main_executable_lm_info): Adjust.
6950 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
6951 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
6952 find_canonical_descriptor_in_load_object,
6953 frv_fdpic_find_canonical_descriptor): Adjust.
6954 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
6955 to lm_info_svr4.
6956 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
6957 svr4_clear_so, svr4_copy_library_list,
6958 library_list_start_library, svr4_default_sos, svr4_read_so_list,
6959 svr4_current_sos, svr4_fetch_objfile_link_map,
6960 solist_update_incremental): Adjust.
6961 * solib-svr4.h (struct lm_info_svr4): Move here from
6962 solib-svr4.c.
6963 * solib-target.c (struct lm_info): Rename to ...
6964 (struct lm_info_target): ... this. Extend lm_info_base.
6965 (lm_info_p): Rename to ...
6966 (lm_info_target_p): ... this.
6967 (solib_target_parse_libraries, library_list_start_segment,
6968 library_list_start_section, library_list_start_library,
6969 library_list_end_library, solib_target_free_library_list,
6970 solib_target_current_sos, solib_target_free_so,
6971 solib_target_relocate_section_addresses): Adjust.
6972 * windows-nat.c (struct lm_info): Rename to ...
6973 (struct lm_info_windows): ... this. Extend lm_info_base.
6974 (windows_make_so, handle_load_dll, handle_unload_dll,
6975 windows_xfer_shared_libraries): Adjust.
6976
6977 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
6978
6979 * solib-darwin.c (struct darwin_so_list): Remove.
6980 (darwin_current_sos): Allocate an so_list object instead of a
6981 darwin_so_list, separately allocate an lm_info object.
6982 (darwin_free_so): Free lm_info.
6983
6984 2017-04-28 John Baldwin <jhb@FreeBSD.org>
6985
6986 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
6987 with fprintf_filtered.
6988
6989 2017-04-28 Yao Qi <yao.qi@linaro.org>
6990
6991 * regcache.c (regcache::regcache): New function.
6992 (regcache::~regcache): New function.
6993 (regcache_xmalloc_1): Remove.
6994 (regcache_xmalloc): Call new regcache.
6995 (regcache_xfree): Call delete regcache.
6996 (get_thread_arch_aspace_regcache): Call new regcache.
6997
6998 2017-04-28 Yao Qi <yao.qi@linaro.org>
6999
7000 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
7001 lwp instead of ptid_get_lwp.
7002
7003 2017-04-28 Yao Qi <yao.qi@linaro.org>
7004
7005 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
7006 lwp_info instead of getting from inferior_ptid.
7007
7008 2017-04-27 Keith Seitz <keiths@redhat.com>
7009
7010 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
7011 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
7012 (CV_CONVERSION_BADNESS): Define.
7013 (rank_one_type): Remove overly restrictive rvalue reference
7014 rank checks.
7015 Add cv-qualifier checks and subranks for type equality.
7016 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
7017 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
7018 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
7019
7020 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
7021
7022 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
7023 count when creating the object.
7024
7025 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
7026 Ulrich Weigand <uweigand@de.ibm.com>
7027
7028 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
7029 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
7030 is used in AIX.
7031 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
7032 (process_xcoff_symbol): Likewise.
7033 (scan_xcoff_symtab): Likewise.
7034
7035 2017-04-26 Alan Hayward <alan.hayward@arm.com>
7036
7037 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
7038 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
7039 (ia64_access_reg): Use get_frame_register_unsigned.
7040 (ia64_access_rse_reg): Likewise.
7041 (ia64_libunwind_frame_prev_register): Likewise.
7042
7043 2017-04-26 Jiong Wang <jiong.wang@arm.com>
7044
7045 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
7046 * gdbarch.c: Regenerated.
7047 * gdbarch.h: Regenerated.
7048 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
7049 visibility external.
7050 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
7051 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
7052 (enum cfa_how_kind): Move to ...
7053 (struct dwarf2_frame_state_reg_info): Likewise.
7054 (struct dwarf2_frame_state): Likewise.
7055 * dwarf2-frame.h: ... here.
7056 (dwarf2_frame_state_alloc_regs): New declaration.
7057 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
7058 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
7059
7060 2017-04-26 Alan Hayward <alan.hayward@arm.com>
7061
7062 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
7063 regcache_raw_read_unsigned.
7064 (xtensa_pseudo_register_write): Likewise.
7065
7066 2017-04-26 Alan Hayward <alan.hayward@arm.com>
7067
7068 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
7069 (nds32_pseudo_register_write): Likewise.
7070
7071 2017-04-25 Yao Qi <yao.qi@linaro.org>
7072
7073 * regcache.c (struct regcache) <readonly_p>: Change its type
7074 to bool.
7075 (regcache_xmalloc_1): Update parameter type and callers update.
7076
7077 2017-04-25 Yao Qi <yao.qi@linaro.org>
7078
7079 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
7080 set_gdbarch_wchar_bit.
7081 * arm-tdep.c (arm_gdbarch_init): Likewise.
7082
7083 2017-04-25 Pedro Alves <palves@redhat.com>
7084
7085 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
7086 (BothAreRelocatable, memcopy, memmove): Don't define.
7087 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
7088 macros.
7089
7090 2017-04-25 Pedro Alves <palves@redhat.com>
7091
7092 * common/common-defs.h: Include "common/poison.h".
7093 * common/function-view.h: (Not, Or, Requires): Move to traits.h
7094 and adjust.
7095 * common/poison.h: New file.
7096 * common/traits.h: Include <type_traits>.
7097 (Not, Or, Requires): New, moved from common/function-view.h.
7098
7099 2017-04-25 Pedro Alves <palves@redhat.com>
7100
7101 * breakpoint.h (struct breakpoint): In-class initialize all
7102 fields. Make boolean fields "bool".
7103 * breakpoint.c (init_raw_breakpoint_without_location): Remove
7104 memset call and initializations no longer necessary.
7105
7106 2017-04-25 Pedro Alves <palves@redhat.com>
7107
7108 * btrace.c (pt_btrace_insn_flags): Change parameter type to
7109 reference.
7110 (pt_btrace_insn): New function.
7111 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
7112
7113 2017-04-25 Pedro Alves <palves@redhat.com>
7114
7115 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
7116 "base" field and inherit from "bp_location" instead. Add
7117 non-default ctor.
7118 (allocate_location_exception): Use new non-default ctor.
7119 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
7120 (init_bp_location): Convert to ...
7121 (bp_location::bp_location): ... this new ctor, and remove memset
7122 call.
7123 (base_breakpoint_allocate_location): Use the new non-default ctor.
7124 * breakpoint.h (bp_location): Now a class. Declare default and
7125 non-default ctors. In-class initialize all members.
7126 (init_bp_location): Remove declaration.
7127
7128 2017-04-25 Pedro Alves <palves@redhat.com>
7129
7130 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
7131 assignment operator.
7132
7133 2017-04-24 Yao Qi <yao.qi@linaro.org>
7134
7135 * doublest.c (convert_doublest_to_floatformat): Call
7136 floatformat_totalsize_bytes.
7137
7138 2017-04-22 Tom Tromey <tom@tromey.com>
7139
7140 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
7141 ui_out_emit_list.
7142 * stack.c (print_frame): Use ui_out_emit_list.
7143 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7144 ui_out_emit_list.
7145 * mi/mi-main.c (print_one_inferior)
7146 (mi_cmd_data_list_register_names)
7147 (mi_cmd_data_list_register_values, mi_cmd_list_features)
7148 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
7149 ui_out_emit_list.
7150 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
7151 (mi_output_solib_attribs): Use ui_out_emit_list,
7152 ui_out_emit_tuple.
7153 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
7154 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
7155 (mi_cmd_stack_list_args, list_args_or_locals): Use
7156 ui_out_emit_list.
7157 * disasm.c (do_assembly_only): Use ui_out_emit_list.
7158 * breakpoint.c (print_solib_event, output_thread_groups): Use
7159 ui_out_emit_list.
7160
7161 2017-04-22 Tom Tromey <tom@tromey.com>
7162
7163 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
7164 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
7165 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
7166
7167 2017-04-22 Tom Tromey <tom@tromey.com>
7168
7169 * tracepoint.c (tvariables_info_1)
7170 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
7171
7172 2017-04-22 Tom Tromey <tom@tromey.com>
7173
7174 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
7175 annotate_arg_emitter.
7176 * breakpoint.c (print_mention_watchpoint)
7177 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
7178 * annotate.h (struct annotate_arg_emitter): New.
7179
7180 2017-04-22 Tom Tromey <tom@tromey.com>
7181
7182 * record-btrace.c (record_btrace_insn_history)
7183 (record_btrace_insn_history_range, record_btrace_call_history)
7184 (record_btrace_call_history_range): Use ui_out_emit_tuple.
7185 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
7186 ui_out_emit_tuple.
7187 * stack.c (print_frame_info): Use ui_out_emit_tuple.
7188 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
7189 * skip.c (skip_info): Use ui_out_emit_tuple.
7190 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
7191 * progspace.c (print_program_space): Use ui_out_emit_tuple.
7192 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
7193 * osdata.c (info_osdata): Use ui_out_emit_tuple.
7194 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
7195 ui_out_emit_tuple.
7196 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
7197 (output_register, mi_cmd_data_read_memory)
7198 (mi_cmd_data_read_memory_bytes, mi_load_progress)
7199 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
7200 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
7201 Use ui_out_emit_tuple.
7202 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
7203 ui_out_emit_tuple.
7204 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
7205 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
7206 * linux-thread-db.c (info_auto_load_libthread_db): Use
7207 ui_out_emit_tuple.
7208 * inferior.c (print_inferior): Use ui_out_emit_tuple.
7209 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
7210 * disasm.c (do_mixed_source_and_assembly_deprecated)
7211 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
7212 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
7213 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
7214 * breakpoint.c (print_one_breakpoint_location)
7215 (print_one_breakpoint): Use ui_out_emit_tuple.
7216 * auto-load.c (print_script, info_auto_load_cmd): Use
7217 ui_out_emit_tuple.
7218 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
7219
7220 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
7221
7222 * thread.c (print_thread_info_1): Remove dead code.
7223
7224 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7225
7226 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
7227 GDB_SELF_TEST.
7228 * arm-tdep.c (selftests::arm_record_test): Likewise.
7229
7230 2017-04-21 Yao Qi <yao.qi@linaro.org>
7231
7232 * regcache.c (regcache_restore): Remove argument 2. Replace
7233 argument 3 with regcache. Get register status from
7234 src->register_status and get register contents from
7235 register_buffer (src, regnum).
7236 (regcache_cpy): Update.
7237
7238 2017-04-19 Pedro Alves <palves@redhat.com>
7239
7240 * gdbthread.h (thread): Add missing closing parenthesis in
7241 comment.
7242
7243 2017-04-19 Pedro Alves <palves@redhat.com>
7244
7245 * common/refcounted-object.h: New file.
7246 * gdbthread.h: Include "common/refcounted-object.h".
7247 (thread_info): Inherit from refcounted_object and add comments.
7248 (thread_info::incref, thread_info::decref)
7249 (thread_info::m_refcount): Delete.
7250 (thread_info::deletable): Use the refcounted_object::refcount()
7251 method.
7252 * inferior.c (current_inferior_): Add comment.
7253 (set_current_inferior): Increment/decrement refcounts.
7254 (prune_inferiors, remove_inferior_command): Skip inferiors marked
7255 not-deletable instead of comparing with the current inferior.
7256 (initialize_inferiors): Increment the initial inferior's refcount.
7257 * inferior.h (struct inferior): Forward declare.
7258 Include "common/refcounted-object.h".
7259 (current_inferior, set_current_inferior): Move declaration to
7260 before struct inferior's definition, and fix comment.
7261 (inferior): Inherit from refcounted_object. Add comments.
7262 * thread.c (switch_to_thread_no_regs): Reference the thread's
7263 inferior pointer directly instead of doing a ptid lookup.
7264 (switch_to_no_thread): New function.
7265 (switch_to_thread(thread_info *)): New function, factored out
7266 from ...
7267 (switch_to_thread(ptid_t)): ... this.
7268 (restore_current_thread): Delete.
7269 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
7270 fields, and add 'inf' field.
7271 (do_restore_current_thread_cleanup): Check whether old->inf is
7272 alive instead of looking up an inferior by ptid. Use
7273 switch_to_thread and switch_to_no_thread.
7274 (restore_current_thread_cleanup_dtor): Use old->inf directly
7275 instead of lookup up an inferior by id. Decref the inferior.
7276 Don't restore 'removable'.
7277 (make_cleanup_restore_current_thread): Same the inferior pointer
7278 in old, instead of the inferior number. Incref the inferior.
7279 Don't save/clear 'removable'.
7280
7281 2017-04-19 Pedro Alves <palves@redhat.com>
7282
7283 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7284 unittests/scoped_restore-selftests.c.
7285 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
7286 * common/scoped_restore.h (scoped_restore_base): Make "class".
7287 (scoped_restore_base::release): New public method.
7288 (scoped_restore_base::scoped_restore_base): New protected ctor.
7289 (scoped_restore_base::m_saved_var): New protected field.
7290 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
7291 scoped_restore_base base class instead of m_saved_var directly.
7292 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
7293 (scoped_restore_tmpl::scoped_restore_tmpl(const
7294 scoped_restore_tmpl<T>&)): Likewise.
7295 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
7296 method.
7297 (scoped_restore_tmpl::saved_var): New method.
7298 (scoped_restore_tmpl::m_saved_var): Delete.
7299 * inferior.h (inferior::detaching): Now a bool.
7300 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
7301 cleanup.
7302 * unittests/scoped_restore-selftests.c: New file.
7303
7304 2017-04-19 Pedro Alves <palves@redhat.com>
7305
7306 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
7307 Re-sort in alphabetic order.
7308
7309 2017-04-18 Pedro Alves <palves@redhat.com>
7310
7311 * xml-support.c (obstack_xml_printf): Delete.
7312 * xml-support.h (obstack_xml_printf): Delete.
7313
7314 2017-04-18 Pedro Alves <palves@redhat.com>
7315
7316 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
7317 vdebug, verror, body_text, start_element, end_element, name,
7318 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
7319 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
7320 is_xinclude>: Make private and add m_ prefix.
7321 (gdb_xml_parser::body_text): New method, based on ...
7322 (gdb_xml_body_text): ... this. Adjust.
7323 (gdb_xml_parser::vdebug): New method, based on ...
7324 (gdb_xml_debug): ... this. Adjust.
7325 (gdb_xml_parser::verror): New method, based on ...
7326 (gdb_xml_error): ... this. Adjust.
7327 (gdb_xml_parser::start_element): New method, based on ...
7328 (gdb_xml_start_element): ... this. Adjust.
7329 (gdb_xml_start_element_wrapper): Defer to
7330 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
7331 (gdb_xml_parser::end_element): New method, based on ...
7332 (gdb_xml_end_element_wrapper): ... this. Adjust.
7333 (gdb_xml_parser::~gdb_xml_parser): Adjust.
7334 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
7335 (gdb_xml_parser::use_dtd): New method, based on ...
7336 (gdb_xml_use_dtd): ... this. Adjust.
7337 (gdb_xml_parser::parse): New method, based on ...
7338 (gdb_xml_parse): ... this. Adjust.
7339 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
7340 (xinclude_start_include): Adjust to call the parser's name method.
7341 (xml_xinclude_default, xml_xinclude_start_doctype)
7342 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
7343 method.
7344 (xml_process_xincludes): Adjust to call parser methods.
7345 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
7346 declarations.
7347
7348 2017-04-18 Pedro Alves <palves@redhat.com>
7349
7350 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
7351 gdb::optional<std::string>.
7352 * xml-support.c: Include <string>.
7353 (scope_level::scope_level(scope_level &&))
7354 (scope_level::~scope_level): Delete.
7355 (scope_level::body): Now a std::string.
7356 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
7357 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
7358 parameter.
7359 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
7360 (xinclude_parsing_data::output): Now a std::string reference.
7361 (xinclude_start_include): Adjust.
7362 (xml_xinclude_default): Adjust.
7363 (xml_process_xincludes): Add 'output' parameter, and return bool.
7364 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
7365 and return bool.
7366 * xml-tdesc.c: Include <unordered_map> and <string>.
7367 (tdesc_xml_cache): Delete.
7368 (tdesc_xml_cache_s): Delete.
7369 (xml_cache): Now an std::unordered_map.
7370 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
7371 (target_fetch_description_xml): Change return type to
7372 gdb::optional<std::string>, and adjust.
7373 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
7374 (target_fetch_description_xml): Change return type to
7375 gdb::optional<std::string>.
7376
7377 2017-04-18 Pedro Alves <palves@redhat.com>
7378
7379 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7380 unittests/optional-selftests.c.
7381 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
7382 * unittests/optional-selftests.c: New file.
7383 * unittests/optional/assignment/1.cc: New file.
7384 * unittests/optional/assignment/2.cc: New file.
7385 * unittests/optional/assignment/3.cc: New file.
7386 * unittests/optional/assignment/4.cc: New file.
7387 * unittests/optional/assignment/5.cc: New file.
7388 * unittests/optional/assignment/6.cc: New file.
7389 * unittests/optional/assignment/7.cc: New file.
7390 * unittests/optional/cons/copy.cc: New file.
7391 * unittests/optional/cons/default.cc: New file.
7392 * unittests/optional/cons/move.cc: New file.
7393 * unittests/optional/cons/value.cc: New file.
7394 * unittests/optional/in_place.cc: New file.
7395 * unittests/optional/observers/1.cc: New file.
7396 * unittests/optional/observers/2.cc: New file.
7397
7398 2017-04-18 Pedro Alves <palves@redhat.com>
7399
7400 * common/gdb_optional.h: Include common/traits.h.
7401 (in_place_t): New type.
7402 (in_place): New constexpr variable.
7403 (optional::optional): Remove member initialization of
7404 m_instantiated.
7405 (optional::optional(in_place_t...)): New constructor.
7406 (optional::~optional): Use reset.
7407 (optional::optional(const optional&)): New.
7408 (optional::optional(const optional&&)): New.
7409 (optional::optional(T &)): New.
7410 (optional::optional(T &&)): New.
7411 (operator::operator=(const optional &)): New.
7412 (operator::operator=(optional &&)): New.
7413 (operator::operator= (const T &))
7414 (operator::operator= (T &&))
7415 (operator::emplace (Args &&... args)): Return a T&. Use reset.
7416 (operator::reset): New.
7417 (operator::m_instantiated):: Add in-class initializer.
7418 * common/traits.h: Include <type_traits>.
7419 (struct And): New types.
7420
7421 2017-04-18 Pedro Alves <palves@redhat.com>
7422
7423 * xml-support.c: Include <vector>.
7424 (scope_level::scope_level(const gdb_xml_element *))
7425 (scope_level::scope_level(scope_level&&)): New.
7426 (scope_level::~scope_level): New.
7427 (scope_level_s): Delete.
7428 (gdb_xml_parser::scopes): Now a std::vector.
7429 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
7430 Use std::vector.
7431 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
7432 scope cleanup code.
7433 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
7434 of the scopes member. Use std::vector::emplace_back.
7435
7436 2017-04-18 Pedro Alves <palves@redhat.com>
7437
7438 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
7439 a bool.
7440 (gdb_xml_end_element): Change type of first parameter.
7441 (gdb_xml_cleanup): Rename to ...
7442 (gdb_xml_parser::~gdb_xml_parser): ... this.
7443 (gdb_xml_create_parser_and_cleanup): Delete with ...
7444 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
7445 to this new ctor.
7446 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
7447 using gdb_xml_create_parser_and_cleanup.
7448 (xinclude_parsing_data): Add ctor/dtor.
7449 (xml_xinclude_cleanup): Delete.
7450 (xml_process_xincludes): Create a local xinclude_parsing_data
7451 instead of heap-allocating one. Create a local gdb_xml_parser
7452 instead of heap-allocating one with
7453 gdb_xml_create_parser_and_cleanup.
7454
7455 2017-04-18 John Baldwin <jhb@FreeBSD.org>
7456
7457 PR threads/20743
7458 * fbsd-nat.c (resume_one_thread_cb): Remove.
7459 (resume_all_threads_cb): Remove.
7460 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
7461 iterate_over_threads.
7462
7463 2017-04-17 Joel Brobecker <brobecker@adacore.com>
7464
7465 * NEWS: Create a new section for the next release branch.
7466 Rename the section of the current branch, now that it has
7467 been cut.
7468
7469 2017-04-17 Joel Brobecker <brobecker@adacore.com>
7470
7471 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
7472 * version.in: Bump version to 8.0.50.DATE-git.
7473
7474 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
7475
7476 PR gdb/21385
7477 * windows-nat.c (windows_create_inferior): Declare 'allargs'
7478 independently of the host, and fix build breakage on Cygwin.
7479
7480 2017-04-13 Pedro Alves <palves@redhat.com>
7481
7482 * inferior.c (free_inferior): Convert to ...
7483 (inferior::~inferior): ... this dtor.
7484 (inferior::inferior): New ctor, factored out from ...
7485 (add_inferior_silent): ... here. Allocate the inferior with a new
7486 expression.
7487 (delete_inferior): Call delete instead of free_inferior.
7488 * inferior.h (gdb_environ, continuation): Forward declare.
7489 (inferior): Now a class. Add in-class initialization to all
7490 members. Make boolean fields bool, except 'detaching'.
7491 (inferior::inferior): New explicit ctor.
7492 (inferior::~inferior): New.
7493
7494 2017-04-13 Pedro Alves <palves@redhat.com>
7495
7496 * inferior.c (init_inferior_list): Delete.
7497 * inferior.h (init_inferior_list): Delete.
7498
7499 2017-04-13 Pedro Alves <palves@redhat.com>
7500
7501 PR threads/13217
7502 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
7503 (top level): Call it twice, with different thread sets.
7504
7505 2017-04-13 Pedro Alves <palves@redhat.com>
7506
7507 * thread.c: Include <algorithm>.
7508 (thread_array_cleanup): Delete.
7509 (scoped_inc_dec_ref): New class.
7510 (live_threads_count): New function.
7511 (set_thread_refcount): Delete.
7512 (tp_array_compar_ascending): Now a bool.
7513 (tp_array_compar): Convert to a std::sort comparison function.
7514 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
7515 and live_threads_count.
7516
7517 2017-04-13 Pedro Alves <palves@redhat.com>
7518
7519 * infrun.c (follow_fork_inferior): Also switch the current
7520 inferior.
7521
7522 2017-04-13 Pedro Alves <palves@redhat.com>
7523
7524 * breakpoint.c (watch_command_1): Save watchpoint-frame info
7525 before calling create_internal_breakpoint.
7526
7527 2017-04-13 Pedro Alves <palves@redhat.com>
7528
7529 * fork-child.c (execv_argv): New class.
7530 (breakup_args): Refactored as ...
7531 (execv_argv::init_for_no_shell): .. this method of execv_argv.
7532 Copy arguments to storage and replace separators with NULL
7533 terminators in place.
7534 (escape_bang_in_quoted_argument): Adjust to return bool.
7535 (execv_argv::execv_argv): New ctor.
7536 (execv_argv::init_for_shell): New method, factored out from
7537 fork_inferior. Don't strdup strings into the vector.
7538 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
7539 Remove free_vector_argv call.
7540
7541 2017-04-13 Yao Qi <yao.qi@linaro.org>
7542
7543 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
7544 tdep->rx_psw_type.
7545
7546 2017-04-13 Yao Qi <yao.qi@linaro.org>
7547
7548 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
7549 * rx-tdep.c (rx_gdbarch_init): Likewise.
7550
7551 2017-04-13 Pedro Alves <palves@redhat.com>
7552
7553 * breakpoint.h (struct breakpoint): Reindent.
7554
7555 2017-04-13 Pedro Alves <palves@redhat.com>
7556
7557 * breakpoint.c (bp_location): Rename to ...
7558 (bp_locations): ... this. All references updated.
7559 (bp_location_count): Rename to ...
7560 (bp_locations_count): ... this. All references updated.
7561 (bp_location_placed_address_before_address_max): Rename to ...
7562 (bp_locations_placed_address_before_address_max): ... this. All
7563 references updated.
7564 (bp_location_shadow_len_after_address_max): Rename to ...
7565 (bp_locations_shadow_len_after_address_max): ... this. All
7566 references updated.
7567 (bp_location_compare_addrs): Rename to ...
7568 (bp_locations_compare_addrs): ... this. All references updated.
7569 (bp_location_compare):Rename to ...
7570 (bp_locations_compare): ... this. All references updated.
7571 (bp_location_target_extensions_update): Rename to ...
7572 (bp_locations_target_extensions_update): ... this. All references
7573 updated.
7574
7575 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7576
7577 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
7578 * common/common.m4: Check headers 'termios.h', 'termio.h' and
7579 'sgtty.h'.
7580 * common/gdb_termios.h: New file, with parts of "terminal.h".
7581 * inflow.c: Include "gdb_termios.h".
7582 * ser-unix.c: Include "gdb_termios.h".
7583 * terminal.h: Move terminal-related defines to
7584 "common/gdb_termios.h".
7585
7586 2017-04-12 Tom Tromey <tom@tromey.com>
7587
7588 * probe.c (parse_probes): Update.
7589 * location.h (delete_event_location): Don't declare.
7590 (event_location_deleter::operator()): Update.
7591 * location.c (event_location_deleter::operator()): Rename from
7592 delete_event_location.
7593 * linespec.h (linespec_result) <location>: Change type to
7594 event_location_up.
7595 * linespec.c (canonicalize_linespec, event_location_to_sals)
7596 (decode_objc): Update.
7597 (linespec_result): Don't call delete_event_location.
7598 * breakpoint.c (create_breakpoints_sal)
7599 (bkpt_probe_create_sals_from_location)
7600 (strace_marker_create_sals_from_location): Update.
7601
7602 2017-04-12 Tom Tromey <tom@tromey.com>
7603
7604 * linespec.h (struct linespec_result): Add constructor and
7605 destructor.
7606 (init_linespec_result, destroy_linespec_result)
7607 (make_cleanup_destroy_linespec_result): Don't declare.
7608 * linespec.c (init_linespec_result): Remove.
7609 (linespec_result::~linespec_result): Rename from
7610 destroy_linespec_result. Update.
7611 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
7612 Remove.
7613 * breakpoint.c (create_breakpoint, break_range_command)
7614 (decode_location_default): Update.
7615 * ax-gdb.c (agent_command_1): Update.
7616
7617 2017-04-12 Tom Tromey <tom@tromey.com>
7618
7619 * remote.c (remote_download_tracepoint): Update.
7620 * python/py-breakpoint.c (bppy_get_location): Update.
7621 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
7622 (gdbscm_breakpoint_location): Update.
7623 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
7624 * breakpoint.h (struct breakpoint) <location, location_range_end>:
7625 Change type to event_location_up.
7626 * breakpoint.c (create_overlay_event_breakpoint)
7627 (create_longjmp_master_breakpoint)
7628 (create_std_terminate_master_breakpoint)
7629 (create_exception_master_breakpoint)
7630 (breakpoint_event_location_empty_p, print_breakpoint_location)
7631 (print_one_breakpoint_location, create_thread_event_breakpoint)
7632 (init_breakpoint_sal, create_breakpoint)
7633 (print_recreate_ranged_breakpoint, break_range_command)
7634 (init_ada_exception_breakpoint, say_where): Update.
7635 (base_breakpoint_dtor): Don't call delete_event_location.
7636 (bkpt_print_recreate, tracepoint_print_recreate)
7637 (dprintf_print_recreate, update_static_tracepoint)
7638 (breakpoint_re_set_default): Update.
7639
7640 2017-04-12 Tom Tromey <tom@tromey.com>
7641
7642 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
7643 type of "to_do". Update.
7644 (compute_stack_depth): Use std::vector.
7645
7646 2017-04-12 Tom Tromey <tom@tromey.com>
7647
7648 * printcmd.c (find_instruction_backward): Use std::vector.
7649
7650 2017-04-12 Tom Tromey <tom@tromey.com>
7651
7652 * symfile.c (objfilep): Remove typedef.
7653 (reread_symbols): Use a std::vector.
7654
7655 2017-04-12 Tom Tromey <tom@tromey.com>
7656
7657 * mi/mi-main.c (exec_direction_forward): Remove.
7658 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
7659 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
7660 scoped_restore.
7661 * guile/guile.c (guile_repl_command, guile_command)
7662 (gdbscm_execute_gdb_command): Use scoped_restore.
7663 * go-exp.y (go_parse): Use scoped_restore.
7664 * d-exp.y (d_parse): Use scoped_restore.
7665 * cli/cli-decode.c (cmd_func): Use scoped_restore.
7666 * c-exp.y (c_parse): Use scoped_restore.
7667
7668 2017-04-12 Tom Tromey <tom@tromey.com>
7669
7670 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
7671 (mi_parse): Update return type.
7672 (mi_parse_free): Remove.
7673 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
7674 (mi_parse::~mi_parse): Rename from mi_parse_free.
7675 (mi_parse_cleanup): Remove.
7676 (mi_parse): Return a unique_ptr. Use new.
7677 * mi/mi-main.c (mi_execute_command): Update.
7678
7679 2017-04-12 Tom Tromey <tom@tromey.com>
7680
7681 * location.c (explicit_location_lex_one): Return a
7682 unique_xmalloc_ptr.
7683 (string_to_explicit_location): Update. Remove cleanups.
7684
7685 2017-04-12 Tom Tromey <tom@tromey.com>
7686
7687 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
7688 (compare_value_and_voffset): Change type. Update.
7689 (compute_vtable_size): Change type of "offset_vec".
7690 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
7691 (gnuv3_get_typeid): Remove extraneous declaration.
7692
7693 2017-04-12 Tom Tromey <tom@tromey.com>
7694
7695 * charset.h (wchar_iterator): Fix comment.
7696
7697 2017-04-12 Tom Tromey <tom@tromey.com>
7698
7699 * charset.c (iconv_wrapper): New class.
7700 (cleanup_iconv): Remove.
7701 (convert_between_encodings): Use it.
7702
7703 2017-04-12 Tom Tromey <tom@tromey.com>
7704
7705 * symfile.h (increment_reading_symtab): Update type.
7706 * symfile.c (decrement_reading_symtab): Remove.
7707 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
7708 * psymtab.c (psymtab_to_symtab): Update.
7709 * dwarf2read.c (dw2_instantiate_symtab): Update.
7710
7711 2017-04-12 Tom Tromey <tom@tromey.com>
7712
7713 * jit.c (struct jit_reader): Declare separately. Add constructor
7714 and destructor. Change type of "handle".
7715 (loaded_jit_reader): Define separately.
7716 (jit_reader_load): Update. New "new".
7717 (jit_reader_unload_command): Use "delete".
7718 * gdb-dlfcn.h (struct dlclose_deleter): New.
7719 (gdb_dlhandle_up): New typedef.
7720 (gdb_dlopen, gdb_dlsym): Update types.
7721 (gdb_dlclose): Remove.
7722 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
7723 (gdb_dlsym): Change type of "handle".
7724 (make_cleanup_dlclose): Remove.
7725 (dlclose_deleter::operator()): Rename from gdb_dlclose.
7726 * compile/compile-c-support.c (load_libcc): Update.
7727
7728 2017-04-12 Tom Tromey <tom@tromey.com>
7729
7730 * symtab.h (find_pcs_for_symtab_line): Change return type.
7731 * symtab.c (find_pcs_for_symtab_line): Change return type.
7732 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
7733 type of "vec". Update.
7734 (ltpy_get_pcs_for_line): Update.
7735 * linespec.c (decode_digits_ordinary): Update.
7736
7737 2017-04-12 Tom Tromey <tom@tromey.com>
7738
7739 * tracepoint.c (actions_command): Update.
7740 * python/python.c (python_command, python_interactive_command):
7741 Update.
7742 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7743 * guile/guile.c (guile_command): Update.
7744 * defs.h (read_command_lines, read_command_lines_1): Return
7745 command_line_up.
7746 (command_lines_deleter): New struct.
7747 (command_line_up): New typedef.
7748 * compile/compile.c (compile_code_command)
7749 (compile_print_command): Update.
7750 * cli/cli-script.h (get_command_line, copy_command_lines): Return
7751 command_line_up.
7752 (make_cleanup_free_command_lines): Remove.
7753 * cli/cli-script.c (get_command_line, read_command_lines_1)
7754 (copy_command_lines): Return command_line_up.
7755 (while_command, if_command, read_command_lines, define_command)
7756 (document_command): Update.
7757 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
7758 Remove.
7759 * breakpoint.h (breakpoint_set_commands): Change type of
7760 "commands".
7761 * breakpoint.c (breakpoint_set_commands): Change type of
7762 "commands". Update.
7763 (do_map_commands_command, update_dprintf_command_list)
7764 (create_tracepoint_from_upload): Update.
7765
7766 2017-04-12 Tom Tromey <tom@tromey.com>
7767
7768 * tracepoint.c (scope_info): Update.
7769 * spu-tdep.c (spu_catch_start): Update.
7770 * python/python.c (gdbpy_decode_line): Update.
7771 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
7772 * python/py-breakpoint.c (bppy_init): Update.
7773 * probe.c (parse_probes): Update.
7774 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
7775 * location.h (event_location_deleter): New struct.
7776 (event_location_up): New typedef.
7777 (new_linespec_location, new_address_location, new_probe_location)
7778 (new_explicit_location, copy_event_location)
7779 (string_to_event_location, string_to_event_location_basic)
7780 (string_to_explicit_location): Update return type.
7781 (make_cleanup_delete_event_location): Remove.
7782 * location.c (new_linespec_location, new_address_location)
7783 (new_probe_location, new_explicit_location, copy_event_location):
7784 Return event_location_up.
7785 (delete_event_location_cleanup)
7786 (make_cleanup_delete_event_location): Remove.
7787 (string_to_explicit_location, string_to_event_location_basic)
7788 (string_to_event_location): Return event_location_up.
7789 * linespec.c (canonicalize_linespec, event_location_to_sals)
7790 (decode_line_with_current_source)
7791 (decode_line_with_last_displayed, decode_objc): Update.
7792 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
7793 * completer.c (location_completer): Update.
7794 * cli/cli-cmds.c (edit_command, list_command): Update.
7795 * breakpoint.c (create_overlay_event_breakpoint)
7796 (create_longjmp_master_breakpoint)
7797 (create_std_terminate_master_breakpoint)
7798 (create_exception_master_breakpoint)
7799 (create_thread_event_breakpoint): Update.
7800 (init_breakpoint_sal): Update. Remove some dead code.
7801 (create_breakpoint_sal): Change type of "location". Update.
7802 (create_breakpoints_sal, create_breakpoint, break_command_1)
7803 (dprintf_command, break_range_command, until_break_command)
7804 (init_ada_exception_breakpoint)
7805 (strace_marker_create_sals_from_location)
7806 (update_static_tracepoint, trace_command, ftrace_command)
7807 (strace_command, create_tracepoint_from_upload): Update.
7808 * break-catch-throw.c (re_set_exception_catchpoint): Update.
7809 * ax-gdb.c (agent_command_1): Update.
7810
7811 2017-04-12 Pedro Alves <palves@redhat.com>
7812
7813 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
7814 * configure.tgt: Handle i[34567]86-*-go32* and
7815 i[34567]86-*-msdosdjgpp*.
7816 * i386-tdep.c (i386_svr4_reg_to_regnum):
7817 Make extern.
7818 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
7819 i386-go32-tdep.c.
7820 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
7821 * i386-go32-tdep.c: New file.
7822 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
7823 declarations.
7824
7825 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
7826
7827 * aix-thread.c (pd_status2str): Change return type to const char *.
7828
7829 2017-04-12 Pedro Alves <palves@redhat.com>
7830
7831 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
7832 calls to set_gdbarch_gnu_triplet_regexp.
7833
7834 2017-04-12 Pedro Alves <palves@redhat.com>
7835
7836 PR gdb/21323
7837 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
7838 New enum value.
7839 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
7840 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
7841 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
7842 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
7843 * gdbarch.h, gdbarch.c: Regenerate.
7844 * aarch64-tdep.c (aarch64_gdbarch_init): Override
7845 gdbarch_wchar_bit and gdbarch_wchar_signed.
7846 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
7847 * arm-tdep.c (arm_gdbarch_init): Likewise.
7848 * avr-tdep.c (avr_gdbarch_init): Likewise.
7849 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
7850 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
7851 * i386-tdep.c (i386_go32_init_abi): Likewise.
7852 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7853 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7854 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
7855 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
7856 * sh-tdep.c (sh_gdbarch_init): Likewise.
7857 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7858 * sparc64-tdep.c (sparc64_init_abi): Likewise.
7859 * windows-tdep.c (windows_init_abi): Likewise.
7860 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
7861
7862 2017-04-12 Pedro Alves <palves@redhat.com>
7863
7864 PR c++/21323
7865 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
7866 cplus_primitive_type_char32_t>: New enum values.
7867 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
7868 and cplus_primitive_type_char32_t.
7869 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
7870 32, use the archtecture's built-in type for char16_t and char32_t,
7871 respectively. Otherwise, fallback to init_integer_type as before,
7872 but make the type unsigned, and issue a complaint.
7873 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
7874
7875 2017-04-12 Alan Hayward <alan.hayward@arm.com>
7876
7877 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
7878 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
7879
7880 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7881
7882 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
7883 'const char *'.
7884
7885 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7886
7887 * common/common-utils.c (free_vector_argv): New function.
7888 * common/common-utils.h: Include <vector>.
7889 (free_vector_argv): New prototype.
7890 * darwin-nat.c (darwin_create_inferior): Rewrite function
7891 prototype in order to constify "exec_file" and accept a
7892 "std::string" for "allargs".
7893 * fork-child.c: Include <vector>.
7894 (breakup_args): Rewrite function, using C++.
7895 (fork_inferior): Rewrite function header, constify "exec_file_arg"
7896 and accept "std::string" for "allargs". Update the code to
7897 calculate "argv" based on "allargs". Update calls to "exec_fun"
7898 and "execvp".
7899 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
7900 order to constify "exec_file" and accept a "std::string" for
7901 "allargs".
7902 * go32-nat.c (go32_create_inferior): Likewise.
7903 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
7904 * infcmd.c (run_command_1): Constify "exec_file". Use
7905 "std::string" for inferior arguments.
7906 * inferior.h (fork_inferior): Update prototype.
7907 * linux-nat.c (linux_nat_create_inferior): Rewrite function
7908 prototype in order to constify "exec_file" and accept a
7909 "std::string" for "allargs".
7910 * nto-procfs.c (procfs_create_inferior): Likewise.
7911 * procfs.c (procfs_create_inferior): Likewise.
7912 * remote-sim.c (gdbsim_create_inferior): Likewise.
7913 * remote.c (extended_remote_run): Update code to accept
7914 "std::string" as argument.
7915 (extended_remote_create_inferior): Rewrite function prototype in
7916 order to constify "exec_file" and accept a "std::string" for
7917 "allargs".
7918 * rs6000-nat.c (super_create_inferior): Likewise.
7919 (rs6000_create_inferior): Likewise.
7920 * target.h (struct target_ops) <to_create_inferior>: Likewise.
7921 * windows-nat.c (windows_create_inferior): Likewise.
7922
7923 2017-04-11 Pedro Alves <palves@redhat.com>
7924
7925 * thread.c: Fix whitespace throughout.
7926
7927 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
7928
7929 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
7930
7931 2017-04-11 Alan Hayward <alan.hayward@arm.com>
7932
7933 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
7934
7935 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
7936
7937 PR gdb/21364
7938 * osdata.c (info_osdata): Check if 'type' is an empty string
7939 instead of NULL.
7940
7941 2017-04-10 Pedro Alves <palves@redhat.com>
7942
7943 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
7944 (ptid_to_global_thread_id, in_thread_list)
7945 (do_captured_list_thread_ids, set_resumed, set_running)
7946 (set_executing, set_stop_requested, finish_thread_state)
7947 (validate_registers_access, can_access_registers_ptid)
7948 (print_thread_info_1, switch_to_thread)
7949 (do_restore_current_thread_cleanup)
7950 (make_cleanup_restore_current_thread, thread_command)
7951 (thread_name_command): Use operator== instead of ptid_equal.
7952
7953 2017-04-10 Pedro Alves <palves@redhat.com>
7954
7955 * thread.c (struct current_thread_cleanup) <next>: Delete field.
7956 (current_thread_cleanup_chain): Delete.
7957 (restore_current_thread_cleanup_dtor)
7958 (make_cleanup_restore_current_thread): Remove references to
7959 current_thread_cleanup_chain.
7960
7961 2017-04-10 Alan Hayward <alan.hayward@arm.com>
7962
7963 * msp430-tdep.c (msp430_pseudo_register_read): Never return
7964 REG_UNKNOWN.
7965
7966 2017-04-10 Yao Qi <yao.qi@linaro.org>
7967
7968 PR gdb/19942
7969 * gdbthread.h (thread_info::deletable): New method.
7970 (thread_info::incref): New method.
7971 (thread_info::decref): New method.
7972 (thread_info::refcount): Move it to private.
7973 * infrun.c (save_stop_context): Call inc_refcount.
7974 (release_stop_context_cleanup): Likewise.
7975 * thread.c (set_thread_exited): New function.
7976 (init_thread_list): Delete "tp" only it is deletable, otherwise
7977 call set_thread_exited.
7978 (delete_thread_1): Call set_thread_exited.
7979 (current_thread_cleanup) <inferior_pid>: Remove.
7980 <thread>: New field.
7981 (restore_current_thread_ptid_changed): Removed.
7982 (do_restore_current_thread_cleanup): Adjust.
7983 (restore_current_thread_cleanup_dtor): Don't call
7984 find_thread_ptid.
7985 (set_thread_refcount): Use dec_refcount.
7986 (make_cleanup_restore_current_thread): Adjust.
7987 (thread_apply_all_command): Call inc_refcount.
7988 (_initialize_thread): Don't call
7989 observer_attach_thread_ptid_changed.
7990
7991 2017-04-10 Yao Qi <yao.qi@linaro.org>
7992
7993 * thread.c (delete_thread_1): Hoist code on marking thread as
7994 exited.
7995
7996 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
7997
7998 * windows-nat.c (windows_detach): Initialize ptid with
7999 minus_one_ptid.
8000
8001 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
8002
8003 * unittests/ptid-selftests.c: Fix erroneous assert messages.
8004
8005 2017-04-07 Alan Hayward <alan.hayward@arm.com>
8006
8007 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
8008 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
8009 (bfin_pseudo_register_write): Likewise
8010
8011 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
8012
8013 * common/ptid.h (struct ptid): Change to...
8014 (class ptid_t): ... this.
8015 <ptid_t>: New constructors.
8016 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
8017 matches>: New methods.
8018 <make_null, make_minus_one>: New static methods.
8019 <pid>: Rename to...
8020 <m_pid>: ...this.
8021 <lwp>: Rename to...
8022 <m_lwp>: ...this.
8023 <tid>: Rename to...
8024 <m_tid>: ...this.
8025 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
8026 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
8027 as references, move comment to class ptid_t.
8028 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
8029 ptid_t static methods.
8030 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
8031 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
8032 Take ptid arguments as references, implement using ptid_t methods.
8033 * unittests/ptid-selftests.c: New file.
8034 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8035 unittests/ptid-selftests.c.
8036 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
8037
8038 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
8039
8040 * python/python.c (python_run_simple_file): Cast mode literal to
8041 non-const char pointer as expected by PyFile_FromString.
8042
8043 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
8044
8045 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
8046 minus_one_ptid and null_ptid.
8047
8048 2017-04-05 Pedro Alves <palves@redhat.com>
8049
8050 * warning.m4 (build_warnings): Remove -Wno-write-strings.
8051 * configure: Regenerate.
8052
8053 2017-04-05 Pedro Alves <palves@redhat.com>
8054
8055 * ada-exp.y (yyerror): Constify.
8056 * ada-lang.c (bound_name, get_selections)
8057 (ada_variant_discrim_type)
8058 (ada_variant_discrim_name, ada_value_struct_elt)
8059 (ada_lookup_struct_elt_type, is_unchecked_variant)
8060 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
8061 (catch_ada_exception_command_split)
8062 (catch_ada_assert_command_split, catch_assert_command)
8063 (ada_op_name): Constify.
8064 * ada-lang.h (ada_yyerror, get_selections)
8065 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
8066 * arc-tdep.c (arc_print_frame_cache): Constify.
8067 * arm-tdep.c (arm_skip_stub): Constify.
8068 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
8069 (gen_aggregate_elt_ref): Constify.
8070 * bcache.c (print_bcache_statistics): Constify.
8071 * bcache.h (print_bcache_statistics): Constify.
8072 * break-catch-throw.c (catch_exception_command_1):
8073 * breakpoint.c (struct ep_type_description::description):
8074 Constify.
8075 (add_solib_catchpoint): Constify.
8076 (catch_fork_command_1): Add cast.
8077 (add_catch_command): Constify.
8078 * breakpoint.h (add_catch_command, add_solib_catchpoint):
8079 Constify.
8080 * bsd-uthread.c (bsd_uthread_state): Constify.
8081 * buildsym.c (patch_subfile_names): Constify.
8082 * buildsym.h (next_symbol_text_func, patch_subfile_names):
8083 Constify.
8084 * c-exp.y (yyerror): Constify.
8085 (token::oper): Constify.
8086 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
8087 * c-varobj.c (cplus_describe_child): Constify.
8088 * charset.c (find_charset_names): Add cast.
8089 (find_charset_names): Constify array and add const_cast.
8090 * cli/cli-cmds.c (complete_command, cd_command): Constify.
8091 (edit_command): Constify.
8092 * cli/cli-decode.c (lookup_cmd): Constify.
8093 * cli/cli-dump.c (dump_memory_command, dump_value_command):
8094 Constify.
8095 (struct dump_context): Constify.
8096 (add_dump_command, restore_command): Constify.
8097 * cli/cli-script.c (get_command_line): Constify.
8098 * cli/cli-script.h (get_command_line): Constify.
8099 * cli/cli-utils.c (check_for_argument): Constify.
8100 * cli/cli-utils.h (check_for_argument): Constify.
8101 * coff-pe-read.c (struct read_pe_section_data): Constify.
8102 * command.h (lookup_cmd): Constify.
8103 * common/print-utils.c (decimal2str): Constify.
8104 * completer.c (gdb_print_filename): Constify.
8105 * corefile.c (set_gnutarget): Constify.
8106 * cp-name-parser.y (yyerror): Constify.
8107 * cp-valprint.c (cp_print_class_member): Constify.
8108 * cris-tdep.c (cris_register_name, crisv32_register_name):
8109 Constify.
8110 * d-exp.y (yyerror): Constify.
8111 (struct token::oper): Constify.
8112 * d-lang.h (d_yyerror): Constify.
8113 * dbxread.c (struct header_file_location::name): Constify.
8114 (add_old_header_file, add_new_header_file, last_function_name)
8115 (dbx_next_symbol_text, add_bincl_to_list)
8116 (find_corresponding_bincl_psymtab, set_namestring)
8117 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
8118 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
8119 * defs.h (command_line_input, print_address_symbolic)
8120 (deprecated_readline_begin_hook): Constify.
8121 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
8122 Constify.
8123 * event-top.c (handle_line_of_input): Constify and add cast.
8124 * exceptions.c (catch_errors): Constify.
8125 * exceptions.h (catch_errors): Constify.
8126 * expprint.c (print_subexp_standard, op_string, op_name)
8127 (op_name_standard, dump_raw_expression, dump_raw_expression):
8128 * expression.h (op_name, op_string, dump_raw_expression):
8129 Constify.
8130 * f-exp.y (yyerror): Constify.
8131 (struct token::oper): Constify.
8132 (struct f77_boolean_val::name): Constify.
8133 * f-lang.c (f_word_break_characters): Constify.
8134 * f-lang.h (f_yyerror): Constify.
8135 * fork-child.c (fork_inferior): Add cast.
8136 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
8137 (new_variant): Constify.
8138 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
8139 * gdbarch.c: Regenerate.
8140 * gdbcore.h (set_gnutarget): Constify.
8141 * go-exp.y (yyerror): Constify.
8142 (token::oper): Constify.
8143 * go-lang.h (go_yyerror): Constify.
8144 * go32-nat.c (go32_sysinfo): Constify.
8145 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
8146 * guile/scm-cmd.c (cmdscm_function): Constify.
8147 * guile/scm-param.c (pascm_param_value): Constify.
8148 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
8149 (h8300sx_register_name): Constify.
8150 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
8151 Constify.
8152 * ia64-tdep.c (ia64_register_names): Constify.
8153 * infcmd.c (construct_inferior_arguments): Constify.
8154 (path_command, attach_post_wait): Constify.
8155 * language.c (show_range_command, show_case_command)
8156 (unk_lang_error): Constify.
8157 * language.h (language_defn::la_error)
8158 (language_defn::la_name_of_this): Constify.
8159 * linespec.c (decode_line_2): Constify.
8160 * linux-thread-db.c (thread_db_err_str): Constify.
8161 * lm32-tdep.c (lm32_register_name): Constify.
8162 * m2-exp.y (yyerror): Constify.
8163 * m2-lang.h (m2_yyerror): Constify.
8164 * m32r-tdep.c (m32r_register_names): Constify and make static.
8165 * m68hc11-tdep.c (m68hc11_register_names): Constify.
8166 * m88k-tdep.c (m88k_register_name): Constify.
8167 * macroexp.c (appendmem): Constify.
8168 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
8169 (upgrade_type, parse_external, parse_partial_symbols)
8170 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
8171 (new_symbol): Constify.
8172 * memattr.c (mem_info_command): Constify.
8173 * mep-tdep.c (register_name_from_keyword): Constify.
8174 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
8175 Constify.
8176 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
8177 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
8178 * mi/mi-main.c (captured_mi_execute_command): Constify and add
8179 cast.
8180 (mi_execute_async_cli_command): Constify.
8181 * mips-tdep.c (mips_register_name): Constify.
8182 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
8183 (am33_register_name, am33_2_register_name)
8184 * moxie-tdep.c (moxie_register_names): Constify.
8185 * nat/linux-osdata.c (osdata_type): Constify fields.
8186 * nto-tdep.c (nto_parse_redirection): Constify.
8187 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
8188 (lookup_child_selector): Constify.
8189 (objc_methcall::name): Constify.
8190 * objc-lang.h (lookup_objc_class, lookup_child_selector)
8191 (lookup_struct_typedef): Constify.
8192 * objfiles.c (pc_in_section): Constify.
8193 * objfiles.h (pc_in_section): Constify.
8194 * p-exp.y (struct token::oper): Constify.
8195 (yyerror): Constify.
8196 * p-lang.h (pascal_yyerror): Constify.
8197 * parser-defs.h (op_name_standard): Constify.
8198 (op_print::string): Constify.
8199 (exp_descriptor::op_name): Constify.
8200 * printcmd.c (print_address_symbolic): Constify.
8201 * psymtab.c (print_partial_symbols): Constify.
8202 * python/py-breakpoint.c (stop_func): Constify.
8203 (bppy_get_expression): Constify.
8204 * python/py-cmd.c (cmdpy_completer::name): Constify.
8205 (cmdpy_function): Constify.
8206 * python/py-event.c (evpy_add_attribute)
8207 (gdbpy_initialize_event_generic): Constify.
8208 * python/py-event.h (evpy_add_attribute)
8209 (gdbpy_initialize_event_generic): Constify.
8210 * python/py-evts.c (add_new_registry): Constify.
8211 * python/py-finishbreakpoint.c (outofscope_func): Constify.
8212 * python/py-framefilter.c (get_py_iter_from_func): Constify.
8213 * python/py-inferior.c (get_buffer): Add cast.
8214 * python/py-param.c (parm_constant::name): Constify.
8215 * python/py-unwind.c (fprint_frame_id): Constify.
8216 * python/python.c (gdbpy_parameter_value): Constify.
8217 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
8218 * remote.c (memory_packet_config::name): Constify.
8219 (show_packet_config_cmd, remote_write_bytes)
8220 (remote_buffer_add_string):
8221 * reverse.c (exec_reverse_once): Constify.
8222 * rs6000-tdep.c (variant::name, variant::description): Constify.
8223 * rust-exp.y (rustyyerror): Constify.
8224 * rust-lang.c (rust_op_name): Constify.
8225 * rust-lang.h (rustyyerror): Constify.
8226 * serial.h (serial_ops::name): Constify.
8227 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
8228 (sh_sh3e_register_name, sh_sh2e_register_name)
8229 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
8230 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
8231 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
8232 (sh_sh4al_dsp_register_name): Constify.
8233 * sh64-tdep.c (sh64_register_name): Constify.
8234 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
8235 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
8236 * stabsread.c (patch_block_stabs, read_type_number)
8237 (ref_map::stabs, ref_add, process_reference)
8238 (symbol_reference_defined, define_symbol, define_symbol)
8239 (error_type, read_type, read_member_functions, read_cpp_abbrev)
8240 (read_one_struct_field, read_struct_fields, read_baseclasses)
8241 (read_tilde_fields, read_struct_type, read_array_type)
8242 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
8243 (read_huge_number, read_range_type, read_args, common_block_start)
8244 (find_name_end): Constify.
8245 * stabsread.h (common_block_start, define_symbol)
8246 (process_one_symbol, symbol_reference_defined, ref_add):
8247 * symfile.c (get_section_index, add_symbol_file_command):
8248 * symfile.h (get_section_index): Constify.
8249 * target-descriptions.c (tdesc_type::name): Constify.
8250 (tdesc_free_type): Add cast.
8251 * target.c (find_default_run_target):
8252 (add_deprecated_target_alias, find_default_run_target)
8253 (target_announce_detach): Constify.
8254 (do_option): Constify.
8255 * target.h (add_deprecated_target_alias): Constify.
8256 * thread.c (print_thread_info_1): Constify.
8257 * top.c (deprecated_readline_begin_hook, command_line_input):
8258 Constify.
8259 (init_main): Add casts.
8260 * top.h (handle_line_of_input): Constify.
8261 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
8262 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
8263 (tfind_command): Rename to ...
8264 (tfind_command_1): ... this and constify.
8265 (tfind_command): New function.
8266 (tfind_end_command, tfind_start_command): Adjust.
8267 (encode_source_string): Constify.
8268 * tracepoint.h (encode_source_string): Constify.
8269 * tui/tui-data.c (tui_partial_win_by_name): Constify.
8270 * tui/tui-data.h (tui_partial_win_by_name): Constify.
8271 * tui/tui-source.c (tui_set_source_content_nil): Constify.
8272 * tui/tui-source.h (tui_set_source_content_nil): Constify.
8273 * tui/tui-win.c (parse_scrolling_args): Constify.
8274 * tui/tui-windata.c (tui_erase_data_content): Constify.
8275 * tui/tui-windata.h (tui_erase_data_content): Constify.
8276 * tui/tui-winsource.c (tui_erase_source_content): Constify.
8277 * tui/tui.c (tui_enable): Add cast.
8278 * utils.c (defaulted_query): Constify.
8279 (init_page_info): Add cast.
8280 (puts_debug, subset_compare): Constify.
8281 * utils.h (subset_compare): Constify.
8282 * varobj.c (varobj_format_string): Constify.
8283 * varobj.h (varobj_format_string): Constify.
8284 * vax-tdep.c (vax_register_name): Constify.
8285 * windows-nat.c (windows_detach): Constify.
8286 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
8287 * xml-support.c (gdb_xml_end_element): Constify.
8288 * xml-tdesc.c (tdesc_start_reg): Constify.
8289 * xstormy16-tdep.c (xstormy16_register_name): Constify.
8290 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
8291 * xtensa-tdep.h (xtensa_register_t::name): Constify.
8292
8293 2017-04-05 Pedro Alves <palves@redhat.com>
8294
8295 * proc-api.c (struct trans): Constify.
8296 (procfs_note): Constify.
8297 * proc-events.c (struct trans, syscall_table):
8298 * proc-flags.c (struct trans): Constify.
8299 * proc-utils.h (procfs_note): Constify.
8300 * proc-why.c (struct trans): Constify.
8301 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
8302 (procfs_detach): Constify.
8303 * sol-thread.c (struct string_map): Constify.
8304 (td_err_string, td_state_string): Constify.
8305
8306 2017-04-05 Pedro Alves <palves@redhat.com>
8307
8308 * proc-api.c (procfs_filename): Don't initialize
8309 procfs_filename.
8310 (prepare_to_trace): Assume procfs_filename is non-NULL.
8311 (_initialize_proc_api): Give procfs_filename a default value here.
8312
8313 2017-04-05 Pedro Alves <palves@redhat.com>
8314
8315 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
8316 'cond_string' parameter.
8317 (extract_exception_regexp): Constify 'string' parameter.
8318 (catch_exception_command_1): Constify.
8319 * breakpoint.c (init_catchpoint)
8320 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
8321 parameter.
8322 (ep_parse_optional_if_clause, catch_fork_command_1)
8323 (catch_exec_command_1): Constify.
8324 * breakpoint.h (init_catchpoint): Constify 'cond_string'
8325 parameter.
8326 (ep_parse_optional_if_clause): Constify.
8327 * cli/cli-utils.c (remove_trailing_whitespace)
8328 (check_for_argument): Constify.
8329 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
8330 non-const overload.
8331 (check_for_argument): Likewise.
8332
8333 2017-04-05 Pedro Alves <palves@redhat.com>
8334
8335 * event-top.c (command_line_handler): Add cast to execute_command
8336 call.
8337 * record-btrace.c (cmd_record_btrace_bts_start)
8338 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
8339 (cmd_record_btrace_start): Add cast to execute_command call.
8340 * record-full.c (record_full_goto_insn):
8341 * record.c (record_start, record_stop): Add cast to
8342 execute_command_to_string calls.
8343 (cmd_record_start): Add cast to execute_command calls.
8344
8345 2017-04-05 Pedro Alves <palves@redhat.com>
8346
8347 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
8348 static inline function.
8349 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
8350 array and use gdb_PyArg_ParseTupleAndKeywords.
8351 * python/py-cmd.c (cmdpy_init): Likewise.
8352 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
8353 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
8354 (infpy_search_memory): Likewise.
8355 * python/py-objfile.c (objfpy_add_separate_debug_file)
8356 (gdbpy_lookup_objfile): Likewise.
8357 * python/py-symbol.c (gdbpy_lookup_symbol)
8358 (gdbpy_lookup_global_symbol): Likewise.
8359 * python/py-type.c (gdbpy_lookup_type): Likewise.
8360 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
8361 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
8362 Likewise.
8363
8364 2017-04-05 Pedro Alves <palves@redhat.com>
8365
8366 * python/python-internal.h (gdb_PyGetSetDef): New type.
8367 * python/py-block.c (block_object_getset)
8368 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
8369 * python/py-event.c (event_object_getset)
8370 (finish_breakpoint_object_getset): Likewise.
8371 * python/py-inferior.c (inferior_object_getset): Likewise.
8372 * python/py-infthread.c (thread_object_getset): Likewise.
8373 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
8374 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
8375 * python/py-objfile.c (objfile_getset): Likewise.
8376 * python/py-progspace.c (pspace_getset): Likewise.
8377 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
8378 Likewise.
8379 * python/py-record.c (recpy_record_getset): Likewise.
8380 * python/py-symbol.c (symbol_object_getset): Likewise.
8381 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
8382 Likewise.
8383 * python/py-type.c (type_object_getset, field_object_getset):
8384 Likewise.
8385 * python/py-value.c (value_object_getset): Likewise.
8386
8387 2017-04-05 Pedro Alves <palves@redhat.com>
8388
8389 * python/python-internal.h (gdb_PyObject_CallMethod)
8390 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
8391 New functions.
8392 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
8393 (PySys_GetObject, PySys_SetPath): New macros.
8394
8395 2017-04-05 Pedro Alves <palves@redhat.com>
8396
8397 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
8398 info_osdata_command.
8399 * osdata.c (info_osdata_command): Rename to ...
8400 (info_osdata): ... this. Constify 'type' parameter, and remove
8401 the 'from_tty' parameter. Accept NULL TYPE.
8402 (info_osdata_command): New function.
8403 * osdata.h (info_osdata_command): Remove declaration.
8404 (info_osdata): New declaration.
8405
8406 2017-04-05 Pedro Alves <palves@redhat.com>
8407
8408 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
8409 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
8410 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
8411 parameter.
8412 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
8413 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
8414 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
8415 parameter.
8416 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
8417 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
8418 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
8419 (mi_cmd_file_list_exec_source_files)
8420 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
8421 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
8422 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
8423 parameter.
8424 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
8425 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
8426 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
8427 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
8428 (mi_cmd_stack_info_frame): Constify 'command' parameter.
8429 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
8430 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
8431 'command' parameter.
8432 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
8433 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
8434 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
8435 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
8436 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
8437 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
8438 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
8439 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
8440 (mi_cmd_var_set_update_range): Constify 'command' parameter.
8441 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
8442 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
8443 parameter.
8444 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
8445 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
8446 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
8447 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
8448 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
8449 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
8450 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
8451 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
8452 (mi_cmd_data_list_changed_registers)
8453 (mi_cmd_data_write_register_values)
8454 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
8455 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
8456 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
8457 (mi_cmd_list_features, mi_cmd_list_target_features)
8458 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
8459 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
8460 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
8461 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
8462 (mi_cmd_trace_frame_collected): Constify 'command'
8463 parameter.
8464 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
8465 'command' parameter.
8466
8467 2017-04-05 Pedro Alves <palves@redhat.com>
8468
8469 * ada-lang.c (ada_completer_word_break_characters): Now a const
8470 array.
8471 (ada_get_gdb_completer_word_break_characters): Constify.
8472 * completer.c (gdb_completer_command_word_break_characters)
8473 (gdb_completer_file_name_break_characters)
8474 (gdb_completer_quote_characters): Now const arrays.
8475 (get_gdb_completer_quote_characters): Constify.
8476 (set_rl_completer_word_break_characters): New function.
8477 (set_gdb_completion_word_break_characters)
8478 (complete_line_internal): Use it.
8479 * completer.h (get_gdb_completer_quote_characters): Constify.
8480 (set_rl_completer_word_break_characters): Declare.
8481 * f-lang.c (f_word_break_characters): Constify.
8482 * language.c (default_word_break_characters): Constify.
8483 * language.h (language_defn::la_word_break_characters): Constify.
8484 (default_word_break_characters): Constify.
8485 * top.c (init_main): Use set_rl_completer_word_break_characters.
8486
8487 2017-04-05 Pedro Alves <palves@redhat.com>
8488
8489 * aix-thread.c (aix_thread_pid_to_str)
8490 (aix_thread_extra_thread_info): Constify.
8491 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
8492 * bsd-uthread.c (bsd_uthread_extra_thread_info)
8493 (bsd_uthread_pid_to_str): Constify.
8494 * corelow.c (core_pid_to_str): Constify.
8495 * darwin-nat.c (darwin_pid_to_str): Constify.
8496 * fbsd-nat.c (fbsd_pid_to_str): Constify.
8497 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
8498 Constify.
8499 * gnu-nat.c (gnu_pid_to_str): Constify.
8500 * go32-nat.c (go32_pid_to_str): Constify.
8501 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
8502 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
8503 * inferior.c (inferior_pid_to_str): Constify.
8504 * linux-nat.c (linux_nat_pid_to_str): Constify.
8505 * linux-tdep.c (linux_core_pid_to_str): Constify.
8506 * linux-thread-db.c (thread_db_pid_to_str)
8507 (thread_db_extra_thread_info): Constify.
8508 * nto-tdep.c (nto_extra_thread_info): Constify.
8509 * nto-tdep.h (nto_extra_thread_info): Constify.
8510 * obsd-nat.c (obsd_pid_to_str): Constify.
8511 * procfs.c (procfs_pid_to_str): Constify.
8512 * ravenscar-thread.c (ravenscar_extra_thread_info)
8513 (ravenscar_pid_to_str): Constify.
8514 * remote-sim.c (gdbsim_pid_to_str): Constify.
8515 * remote.c (remote_threads_extra_info, remote_pid_to_str):
8516 Constify.
8517 * sol-thread.c (solaris_pid_to_str): Constify.
8518 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
8519 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
8520 * target.c (default_pid_to_str, target_pid_to_str)
8521 (normal_pid_to_str, default_pid_to_str): Constify.
8522 * target.h (target_ops::to_pid_to_str)
8523 (target_ops::to_extra_thread_info): Constify.
8524 (target_pid_to_str, normal_pid_to_str): Constify.
8525 * windows-nat.c (windows_pid_to_str): Constify.
8526 * gdbarch.sh (core_pid_to_str): Constify.
8527 * target-delegates.c: Regenerate.
8528 * gdbarch.h, gdbarch.c: Regenerate.
8529
8530 2017-04-05 Pedro Alves <palves@redhat.com>
8531
8532 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
8533 the memory of the temporary warning_pre_print override.
8534 * utils.c (warning_pre_print): Constify.
8535 * utils.h (warning_pre_print): Constify.
8536
8537 2017-04-05 Pedro Alves <palves@redhat.com>
8538
8539 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
8540 (shell_command): New function.
8541 (make_command): Use std::string.
8542 (init_cli_cmds): Register shell_command instead of shell_escape.
8543
8544 2017-04-05 Pedro Alves <palves@redhat.com>
8545
8546 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
8547 * tracepoint.c (default_collect): Don't initialize.
8548
8549 2017-04-05 Pedro Alves <palves@redhat.com>
8550
8551 * macroexp.c (macro_buffer::shared): Now a bool.
8552 (init_buffer): Update.
8553 (init_shared_buffer): Constify 'addr' parameter.
8554 (substitute_args, expand, macro_expand, macro_expand_next): Remove
8555 casts.
8556
8557 2017-04-05 Pedro Alves <palves@redhat.com>
8558
8559 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
8560 * disasm.c (set_disassembler_options): Constify local.
8561 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
8562
8563 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
8564
8565 PR gdb/21352
8566 * tracefile.c (tsave_command): Fix argument parsing for '-r'
8567 option.
8568
8569 2017-04-05 Yao Qi <yao.qi@linaro.org>
8570
8571 * frame.c (frame_unwind_register_unsigned): Call
8572 frame_unwind_register_value.
8573
8574 2017-04-05 Yao Qi <yao.qi@linaro.org>
8575
8576 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
8577 Use gdb_test_multiple, and don't match anchor.
8578
8579 2017-04-05 Pedro Alves <palves@redhat.com>
8580
8581 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
8582 (Write After Approval): Remove Simon Marchi.
8583
8584 2017-04-05 Pedro Alves <palves@redhat.com>
8585
8586 * common/gdb_optional.h (optional::optional): Make constexpr and
8587 initialize m_dummy.
8588
8589 2017-04-04 John Baldwin <jhb@FreeBSD.org>
8590
8591 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
8592 (amd64fbsd_jmp_buf_reg_offset): Remove.
8593 (amd64fbsd_supply_uthread): Remove function.
8594 (amd64fbsd_collect_uthread): Remove function.
8595 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
8596 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
8597 (x86_64-*-freebsd*): Remove bsd-uthread.o.
8598 (fbsd-nat.c): Update comment.
8599 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
8600 (i386fbsd_jmp_buf_reg_offset): Remove.
8601 (i386fbsd_supply_uthread): Remove function.
8602 (i386fbsd_collect_uthread): Remove function.
8603 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
8604
8605 2017-04-04 John Baldwin <jhb@FreeBSD.org>
8606
8607 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
8608 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
8609 * NEWS: Mention that support for FreeBSD/alpha was removed.
8610 * alpha-fbsd-tdep.c: Delete file.
8611 * config/alpha/fbsd.mh: Delete file.
8612 * configure.host: Delete alpha*-*-freebsd* and
8613 alpha*-*-kfreebsd*-gnu.
8614 * configure.tgt: Delete alpha*-*-freebsd* and
8615 alpha*-*-kfreebsd*-gnu.
8616
8617 2017-04-04 John Baldwin <jhb@FreeBSD.org>
8618
8619 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
8620 amd64bsd_store_inferior_registers): Use ptid from regcache.
8621
8622 2017-04-04 Pedro Alves <palves@redhat.com>
8623
8624 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
8625 data fields, make them private and add "m_" prefixes.
8626 (lnp_state_machine::lnp_state_machine): New ctor.
8627 (record_line, check_line_address, handle_set_discriminator)
8628 (handle_set_address, handle_advance_pc, handle_special_opcode)
8629 (handle_advance_line, handle_set_file, handle_negate_stmt)
8630 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
8631 (end_sequence, advance_line): New methods.
8632 (m_gdbarch, m_record_lines_p): New fields.
8633 (lnp_reader_state): Delete.
8634 (dwarf_record_line): Rename to ...
8635 (lnp_state_machine::record_line): ... adjust.
8636 (init_lnp_state_machine): Delete.
8637 (lnp_state_machine::lnp_state_machine): New.
8638 (check_line_address): Rename to ...
8639 (lnp_state_machine::check_line_address): This.
8640 (dwarf_decode_lines_1): Remove reference to "reader_state".
8641 Adjust lnp_state_machine having a non-default ctor. Use bool.
8642 State machine internal state manipulation moved to
8643 lnp_state_machine methods.
8644
8645 2017-04-04 Pedro Alves <palves@redhat.com>
8646
8647 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8648 unittests/offset-type-selftests.c.
8649 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
8650 * common/offset-type.h: New file.
8651 * common/preprocessor.h: New file.
8652 * common/traits.h: New file.
8653 * common/valid-expr.h: New file.
8654 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
8655 sect_offset and cu_offset strong typedefs throughout.
8656 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
8657 typedefs throughout.
8658 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
8659 sect_offset and cu_offset strong typedefs throughout.
8660 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
8661 typedefs throughout.
8662 * gdbtypes.h: Include "common/offset-type.h".
8663 (cu_offset): Now an offset type (strong typedef) instead of a
8664 struct.
8665 (sect_offset): Likewise.
8666 (union call_site_parameter_u): Rename "param_offset" field to
8667 "param_cu_off".
8668 * unittests/offset-type-selftests.c: New file.
8669
8670 2017-04-04 Pedro Alves <palves@redhat.com>
8671
8672 * common/underlying.h: New file.
8673 * dwarf2read.c: Include "common/gdb_optional.h" and
8674 "common/underlying.h".
8675 (dir_index, file_name_index): New types.
8676 (file_entry): Use them.
8677 (file_entry::include): Use to_underlying.
8678 (line_header::add_file_name): Use dir_index.
8679 (read_formatted_entries): Use gdb::optional. Read form before
8680 writting to file_entry.
8681 (dwarf_decode_line_header): Use dir_index.
8682 (lnp_state_machine::current_file): Use to_underlying.
8683 (lnp_state_machine::file): Change type to file_name_index.
8684 (dwarf_record_line): Use to_underlying.
8685 (init_lnp_state_machine): Use file_name_index.
8686 (dwarf_decode_lines_1): Use dir_index and file_name_index.
8687
8688 2017-04-04 Pedro Alves <palves@redhat.com>
8689
8690 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
8691 operator bool, has_value and get methods.
8692
8693 2017-04-04 Pedro Alves <palves@redhat.com>
8694
8695 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
8696 fields.
8697 (line_header): Initialize all data fields. Change type of
8698 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
8699 Change type of include_dirs to std::vector<const char *>. Remove
8700 num_include_dirs, include_dirs_size. Change type of file_names to
8701 std::vector<file_entry>. Remove num_file_names, file_names_size.
8702 (line_header::line_header): New.
8703 (line_header::add_include_dir, line_header::add_file_name): New
8704 methods.
8705 (line_header::include_dir_at): Remove NULL check.
8706 (line_header::file_name_at): Add const overload.
8707 (line_header_up): New unique_ptr typedef.
8708 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
8709 std::vector. Remove free_line_header call.
8710 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
8711 free_line_header call.
8712 (free_cu_line_header): Delete.
8713 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
8714 (setup_type_unit_groups): Use line_header_up instead of cleanups.
8715 Adjust to use std::vector.
8716 (free_line_header): Delete.
8717 (free_line_header_voidp): Use delete.
8718 (add_include_dir): Replace with ...
8719 (line_header::add_include_dir): ... this method. Use std::vector.
8720 (add_file_name): Replace with ...
8721 (line_header::add_file_name): ... this method. Use std::vector.
8722 (add_include_dir_stub): Delete.
8723 (read_formatted_entries): Remove memset.
8724 (dwarf_decode_line_header): Return a line_header_up instead of a
8725 raw pointer. Remove cleanup handling. Pass lambdas to
8726 read_formatted_entries. Adjust to use line_header methods.
8727 (dwarf_decode_lines_1): Adjust to use line_header methods.
8728 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
8729 use std::vector.
8730
8731 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
8732
8733 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
8734 instead of struct ptid.
8735
8736 2017-05-04 Alan Hayward <alan.hayward@arm.com>
8737
8738 * frame.c (get_frame_register_bytes): Unwind using value.
8739 (put_frame_register_bytes): Likewise.
8740
8741 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
8742
8743 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
8744 aggregate-like.
8745
8746 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8747
8748 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
8749
8750 2017-03-29 Yao Qi <yao.qi@linaro.org>
8751
8752 * gdbthread.h (struct thread_info): Declare constructor and
8753 destructor. Add some in-class member initializers.
8754 * thread.c (free_thread): Remove.
8755 (init_thread_list): Call delete instead of free_thread.
8756 (new_thread): Call thread_info constructor.
8757 (thread_info::thread_info): New function.
8758 (thread_info::~thread_info): New function.
8759 (delete_thread_1): Call delete instead of free_thread.
8760 (make_cleanup_restore_current_thread): Move tp and frame to
8761 inner block.
8762
8763 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8764
8765 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
8766 (arc_skip_prologue): Likewise.
8767 (arc_make_frame_cache): Likewise.
8768 (arc_pv_get_operand): New function.
8769 (arc_is_in_prologue): Likewise.
8770 (arc_analyze_prologue): Likewise.
8771 (arc_print_frame_cache): Likewise.
8772 (MAX_PROLOGUE_LENGTH): New constant.
8773
8774 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8775
8776 * configure.tgt: Add arc-insn.o.
8777 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
8778 (dump_arc_instruction_command): New function.
8779 (arc_fprintf_disasm): Likewise.
8780 (arc_disassemble_info): Likewise.
8781 (arc_insn_get_operand_value): Likewise.
8782 (arc_insn_get_operand_value_signed): Likewise.
8783 (arc_insn_get_memory_base_reg): Likewise.
8784 (arc_insn_get_memory_offset): Likewise.
8785 (arc_insn_get_branch_target): Likewise.
8786 (arc_insn_dump): Likewise.
8787 (arc_insn_get_linear_next_pc): Likewise.
8788 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
8789 (arc_disassemble_info): Likewise.
8790 (arc_insn_get_branch_target): Likewise.
8791 (arc_insn_get_linear_next_pc): Likewise.
8792 * NEWS: Mention new "maint print arc arc-instruction".
8793
8794 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8795
8796 * arc-tdep (maintenance_print_arc_list): New variable.
8797 (maintenance_print_arc_command): New function.
8798
8799 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
8800
8801 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
8802 Add "limm" and "reserved".
8803 (arc_cannot_fetch_register, arc_cannot_store_register): Add
8804 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
8805 * arc-tdep.h (arc_regnum): Likewise.
8806
8807 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8808
8809 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
8810 for THREADPTR register.
8811 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
8812 register.
8813 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
8814 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
8815 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
8816
8817 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8818
8819 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
8820 registers above gdbarch_num_regs (gdbarch) as privileged in
8821 call0 ABI.
8822
8823 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8824
8825 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
8826 for a single specified register or for all registers in
8827 a0_base..a0_base + C0_NREGS range.
8828 (supply_gregset_reg): Call regcache_raw_supply for a single
8829 specified register or for all registers in a0_base..a0_base +
8830 C0_NREGS range.
8831
8832 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8833
8834 * arch/xtensa.h (C0_NREGS): Add definition.
8835 * xtensa-tdep.c (C0_NREGS): Remove definition.
8836
8837 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
8838
8839 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
8840 Drop xtensa_default_isa initialization.
8841 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
8842
8843 2017-03-27 Pedro Alves <palves@redhat.com>
8844
8845 * dwarf2read.c (file_entry) <dir_index>: Add comment.
8846 (file_entry::include_dir): New method.
8847 (line_header::include_dir_at, line_header::file_name_at): New
8848 methods.
8849 (setup_type_unit_groups, setup_type_unit_groups)
8850 (psymtab_include_file_name): Simplify using the new methods.
8851 (lnp_state_machine) <the_line_header>: New field.
8852 <file>: Add comment.
8853 (lnp_state_machine::current_file): New method.
8854 (dwarf_record_line): Simplify using the new methods.
8855 (init_lnp_state_machine): Initialize the "the_line_header" field.
8856 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
8857 Simplify using the new methods.
8858
8859 2017-03-27 Pedro Alves <palves@redhat.com>
8860
8861 * cp-name-parser.y (make_empty): Delete.
8862 (demangler_special, nested_name, ptr_operator, array_indicator)
8863 (direct_declarator, declarator_1): Use fill_comp instead of
8864 make_empty.
8865
8866 2017-03-27 Pedro Alves <palves@redhat.com>
8867
8868 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
8869 to ATTRIBUTE_PRINTF.
8870 * solib-target.c (library_list_start_list): Print "string" not
8871 "version".
8872 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
8873 gdb_xml_error call.
8874
8875 2017-03-27 Pedro Alves <palves@redhat.com>
8876
8877 * dwarf2read.c (struct file_and_directory): New.
8878 (dwarf2_get_dwz_file): Adjust to use std::string.
8879 (dw2_get_file_names_reader): Adjust to use file_and_directory.
8880 (find_file_and_directory): Adjust to return a file_and_directory
8881 object.
8882 (read_file_scope): Adjust to use file_and_directory. Remove
8883 make_cleanup/do_cleanups calls.
8884 (open_and_init_dwp_file): Adjust to use std::string. Remove
8885 make_cleanup/do_cleanups calls.
8886 * python/python.c (do_start_initialization): Adjust to ldirname
8887 returning a std::string.
8888 * utils.c (ldirname): Now returns a std::string.
8889 * utils.h (ldirname): Change return type to std::string.
8890 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
8891 returning a std::string.
8892 * xml-tdesc.c (file_read_description_xml): Likewise.
8893
8894 2017-03-24 Alan Hayward <alan.hayward@arm.com>
8895
8896 * regcache.c (regcache_debug_print_register): New function.
8897 * regcache.h (regcache_debug_print_register): New declaration.
8898 * target.c (debug_print_register): Remove.
8899 (target_fetch_registers): Call regcache_debug_print_register.
8900 (target_store_registers): Likewise.
8901
8902 2017-03-24 Pádraig Brady <pbrady@fb.com>
8903
8904 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
8905 reference beyond the 'lh->include_dirs' array before accessing to
8906 it.
8907 (psymtab_include_file_name): Likewise.
8908 (dwarf_decode_lines_1): Likewise.
8909 (dwarf_decode_lines): Likewise.
8910 (file_file_name): Likewise.
8911
8912 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
8913
8914 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
8915 inferior_ptid.
8916 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
8917 ps_lsetfpregs): Likewise.
8918 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
8919 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
8920 ps_lsetfpregs): Likewise.
8921 * target.c (target_fetch_registers, target_store_registers):
8922 Remove asserts.
8923
8924 2017-03-23 Alan Hayward <alan.hayward@arm.com>
8925
8926 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
8927
8928 2017-03-23 Yao Qi <yao.qi@linaro.org>
8929
8930 * aarch64-tdep.c (aarch64_process_record_test): Declare.
8931 (_initialize_aarch64_tdep): Register it.
8932 (aarch64_record_load_store): Handle PRFM instruction.
8933 (aarch64_process_record_test): New function.
8934
8935 2017-03-23 Yao Qi <yao.qi@linaro.org>
8936
8937 * aarch64-tdep.c (aarch64_record_load_store): Fix code
8938 indentation.
8939
8940 2017-03-23 Yao Qi <yao.qi@linaro.org>
8941
8942 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
8943
8944 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
8945
8946 python/python.c (do_start_initialization): Fix memory leak.
8947
8948 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
8949
8950 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
8951 using get_ptrace_pid.
8952 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
8953 inferior_ptid.
8954 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
8955 inferior_ptid instead of pid.
8956
8957 2017-03-22 Yao Qi <yao.qi@linaro.org>
8958
8959 * aarch64-tdep.c: Wrap locally used classes in anonymous
8960 namespace.
8961 * arm-tdep.c: Likewise.
8962 * linespec.c: Likewise.
8963 * ui-out.c: Likewise.
8964
8965 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
8966
8967 PR gdb/19637
8968 * python/lib/gdb/printer/bound_registers.py: Import sys.
8969
8970 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
8971
8972 * windows-nat.c (do_windows_fetch_inferior_registers): Add
8973 windows_thread_info parameter and use it instead of
8974 current_thread.
8975 (windows_fetch_inferior_registers): Don't set current_thread,
8976 pass the thread to do_windows_fetch_inferior_registers. Use
8977 ptid from regcache instead of inferior_ptid.
8978 (do_windows_store_inferior_registers): Add windows_thread_info
8979 parameter and use it instead of current_thread.
8980 (windows_store_inferior_registers): Don't set current_thread,
8981 pass the thread to do_windows_store_inferior_registers. Use
8982 ptid from regcache instead of inferior_ptid.
8983
8984 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
8985
8986 * ser-mingw.c (ser_windows_raw): Remove reference to
8987 struct serial::current_timeout.
8988
8989 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
8990
8991 PR tdep/20928
8992 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
8993 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
8994 (sparc64_fsr_type): Fix %fsr decoding.
8995
8996 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
8997
8998 * python/py-record-btrace.c (btpy_insn_data): Change return type
8999 for Python 2.
9000
9001 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
9002
9003 * spu-linux-nat.c (spu_fetch_inferior_registers,
9004 spu_store_inferior_registers): Use ptid from regcache, set and
9005 restore inferior_ptid.
9006 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
9007 Likewise.
9008
9009 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
9010
9011 * i386-linux-nat.c (fetch_register, store_register,
9012 i386_linux_fetch_inferior_registers,
9013 i386_linux_store_inferior_registers): Use ptid from regcache.
9014 * ia64-linux-nat.c (ia64_linux_fetch_register,
9015 ia64_linux_store_register): Likewise.
9016 * inf-ptrace.c (inf_ptrace_fetch_register,
9017 inf_ptrace_store_register): Likewise.
9018 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
9019 m32r_linux_store_inferior_registers): Likewise.
9020 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
9021 m68kbsd_store_inferior_registers): Likewise.
9022 * m68k-linux-nat.c (fetch_register, store_register,
9023 m68k_linux_fetch_inferior_registers,
9024 m68k_linux_store_inferior_registers): Likewise.
9025 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
9026 m88kbsd_store_inferior_registers): Likewise.
9027 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
9028 mips_fbsd_store_inferior_registers): Likewise.
9029 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
9030 mips64_linux_regsets_store_registers): Likewise.
9031 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
9032 mipsnbsd_store_inferior_registers): Likewise.
9033 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
9034 mips64obsd_store_inferior_registers): Likewise.
9035 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
9036 Likewise.
9037 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
9038 ppcfbsd_store_inferior_registers): Likewise.
9039 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
9040 ppc_linux_store_inferior_registers): Likewise.
9041 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
9042 ppcnbsd_store_inferior_registers): Likewise.
9043 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
9044 ppcobsd_store_registers): Likewise.
9045 * procfs.c (procfs_fetch_registers, procfs_store_registers):
9046 Likewise.
9047 * ravenscar-thread.c (ravenscar_fetch_registers,
9048 ravenscar_store_registers, ravenscar_prepare_to_store):
9049 Likewise.
9050 * record-btrace.c (record_btrace_fetch_registers,
9051 record_btrace_store_registers, record_btrace_prepare_to_store):
9052 Likewise.
9053 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
9054 Lookup inferior using ptid from regcache, instead of
9055 current_inferior.
9056 * remote.c (remote_fetch_registers, remote_store_registers): Use
9057 ptid from regcache.
9058 * rs6000-nat.c (fetch_register, store_register): Likewise.
9059 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
9060 s390_linux_store_inferior_registers): Likewise.
9061 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
9062 shnbsd_store_inferior_registers): Likewise.
9063 * sol-thread.c (sol_thread_fetch_registers,
9064 sol_thread_store_registers): Likewise.
9065 * sparc-nat.c (sparc_fetch_inferior_registers,
9066 sparc_store_inferior_registers): Likewise.
9067 * tilegx-linux-nat.c (fetch_inferior_registers,
9068 store_inferior_registers): Likewise.
9069 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
9070 vaxbsd_store_inferior_registers): Likewise.
9071 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
9072 store_xtregs): Likewise.
9073
9074 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9075
9076 PR gdb/14441
9077 * NEWS: Mention support for rvalue references in GDB and python.
9078 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
9079 supports both lvalue and rvalue references.
9080
9081 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9082
9083 PR gdb/14441
9084 * gdbtypes.c (rank_one_type): Implement overloading
9085 resolution rules regarding rvalue references.
9086
9087 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9088
9089 PR gdb/14441
9090 * aarch64-tdep.c (aarch64_type_align)
9091 (aarch64_extract_return_value, aarch64_store_return_value): Change
9092 lvalue reference type checks to general reference type checks.
9093 * amd64-tdep.c (amd64_classify): Likewise.
9094 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
9095 Likewise.
9096 * arm-tdep.c (arm_type_align, arm_extract_return_value)
9097 (arm_store_return_value): Likewise.
9098 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
9099 * c-typeprint.c (c_print_type): Likewise.
9100 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
9101 (cplus_number_of_children, cplus_describe_child): Likewise.
9102 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
9103 * completer.c (expression_completer): Likewise.
9104 * cp-support.c (make_symbol_overload_list_adl_namespace):
9105 Likewise.
9106 * darwin-nat-info.c (info_mach_region_command): Likewise.
9107 * dwarf2loc.c (entry_data_value_coerce_ref)
9108 (value_of_dwarf_reg_entry): Likewise.
9109 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
9110 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
9111 Likewise.
9112 * findvar.c (extract_typed_address, store_typed_address):
9113 Likewise.
9114 * gdbtypes.c (rank_one_type): Likewise.
9115 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
9116 * infcall.c (value_arg_coerce): Likewise.
9117 * language.c (pointer_type): Likewise.
9118 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
9119 Likewise.
9120 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
9121 * mn10300-tdep.c (mn10300_type_align): Likewise.
9122 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
9123 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
9124 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
9125 Likewise.
9126 * printcmd.c (print_formatted, x_command): Likewise.
9127 * python/py-type.c (typy_get_composite, typy_template_argument):
9128 Likewise.
9129 * python/py-value.c (valpy_referenced_value)
9130 (valpy_get_dynamic_type, value_has_field): Likewise.
9131 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
9132 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
9133 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
9134 * spu-tdep.c (spu_scalar_value_p): Likewise.
9135 * symtab.c (lookup_symbol_aux): Likewise.
9136 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
9137 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
9138 Likewise.
9139 * valops.c (value_cast_pointers, value_cast)
9140 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
9141 (value_struct_elt, value_struct_elt_bitpos)
9142 (value_find_oload_method_list, find_overload_match)
9143 (value_rtti_indirect_type): Likewise.
9144 * valprint.c (val_print_scalar_type_p, generic_val_print):
9145 Likewise.
9146 * value.c (value_actual_type, value_as_address, unpack_long)
9147 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
9148 (coerce_ref): Likewise.
9149 * varobj.c (varobj_get_value_type): Likewise.
9150
9151 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9152
9153 PR gdb/14441
9154 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
9155 table of constants.
9156 * python/lib/gdb/command/explore.py: Support exploring values
9157 of rvalue reference types.
9158 * python/lib/gdb/types.py: Implement get_basic_type() for
9159 rvalue reference types.
9160 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
9161 constant.
9162 * python/py-value.c (valpy_getitem): Add an rvalue reference
9163 check.
9164 (valpy_reference_value): Add new parameter "refcode".
9165 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
9166 New wrappers for valpy_reference_value().
9167 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9168 (gdbpy_invoke_xmethod): Likewise.
9169
9170 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9171
9172 PR gdb/14441
9173 * dwarf2read.c (process_die, read_type_die_1): Handle the
9174 DW_TAG_rvalue_reference_type DIE.
9175 (read_tag_reference_type): Add new parameter "refcode".
9176
9177 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9178
9179 PR gdb/14441
9180 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
9181 (c_type_print_modifier, c_type_print_varspec_suffix)
9182 (c_type_print_base): Support printing rvalue reference types.
9183 * c-valprint.c (c_val_print, c_value_print): Support printing
9184 rvalue reference values.
9185
9186 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9187
9188 PR gdb/14441
9189 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
9190 typename.
9191 * cp-support.c (replace_typedefs): Handle
9192 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
9193 * python/py-type.c (typy_lookup_type): Likewise.
9194
9195 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9196
9197 PR gdb/14441
9198 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
9199 * parse.c (insert_type): Change assert statement.
9200 (follow_types): Handle rvalue reference types.
9201 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
9202 constant.
9203
9204 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9205
9206 PR gdb/14441
9207 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
9208 value_ref() interface.
9209 * c-valprint.c (c_value_print): Likewise.
9210 * infcall.c (value_arg_coerce): Likewise.
9211 * python/py-value.c (valpy_reference_value): Likewise.
9212 * valops.c (value_cast, value_reinterpret_cast)
9213 (value_dynamic_cast, typecmp): Likewise.
9214 (value_ref): Parameterize by kind of return value reference type.
9215 * value.h (value_ref): Add new parameter "refcode".
9216
9217 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9218
9219 PR gdb/14441
9220 * dwarf2read.c (read_tag_reference_type): Use
9221 lookup_lvalue_reference_type() instead of lookup_reference_type().
9222 * eval.c (evaluate_subexp_standard): Likewise.
9223 * f-exp.y: Likewise.
9224 * gdbtypes.c (make_reference_type, lookup_reference_type):
9225 Generalize with rvalue reference types.
9226 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
9227 convenience wrappers for lookup_reference_type().
9228 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
9229 reference kind parameter.
9230 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
9231 wrappers for lookup_reference_type().
9232 * guile/scm-type.c (gdbscm_type_reference): Use
9233 lookup_lvalue_reference_type() instead of lookup_reference_type().
9234 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
9235 * parse.c (follow_types): Likewise.
9236 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
9237 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
9238 Likewise.
9239 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
9240 (gdbpy_invoke_xmethod): Likewise.
9241 * stabsread.c: Provide extra argument to make_reference_type()
9242 call.
9243 * valops.c (value_ref, value_rtti_indirect_type): Use
9244 lookup_lvalue_reference_type() instead of lookup_reference_type().
9245
9246 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
9247
9248 PR gdb/14441
9249 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
9250 (TYPE_IS_REFERENCE): New macro.
9251 (struct type): Add rvalue_reference_type field.
9252 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
9253
9254 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9255
9256 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
9257 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
9258 New function definition.
9259 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
9260 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
9261 New function declaration.
9262 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
9263 * mi/mi-interp.h: New file.
9264 * solib.c (info_sharedlibrary_command): Replace for loop with
9265 ALL_SO_LIBS macro
9266 * solib.h (update_solib_list): New function declaration.
9267 (so_list_head): Move macro.
9268 * solist.h (ALL_SO_LIBS): New macro.
9269
9270 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
9271
9272 * infcmd.c (post_create_inferior): Remove unused argument in
9273 call to solib_add.
9274 * remote.c (remote_start_remote): Likewise.
9275 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
9276 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
9277 (enable_break): Likewise.
9278 * solib.c (update_solib_list): Remove unused target argument
9279 and its documentation.
9280 (solib_add): Remove unused target argument. Remove unused
9281 argument in call to update_solib_list.
9282 (info_sharedlibrary_command): Remove unused argument in call
9283 to update_solib_list.
9284 (sharedlibrary_command): Remove unused argument in call to
9285 solib_add.
9286 (handle_solib_event): Likewise.
9287 (reload_shared_libraries): Likewise.
9288 * solib.h (solib_add): Remove unused target argument.
9289
9290 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
9291
9292 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
9293 (s390_displaced_step_fixup): Cover relative branches with the
9294 default fixup handling. This fixes lack of support for some
9295 relative branch instructions.
9296
9297 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9298
9299 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
9300 ptid from regcache.
9301
9302 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9303
9304 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
9305 i386_darwin_store_inferior_registers): Use ptid from regcache.
9306
9307 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9308
9309 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
9310 i386bsd_store_inferior_registers): Use ptid from regcache.
9311
9312 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9313
9314 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
9315 hppaobsd_store_registers): Use ptid from regcache.
9316
9317 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9318
9319 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
9320 hppanbsd_store_registers): Use ptid from regcache.
9321
9322 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9323
9324 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
9325 from regcache. Use get_ptrace_pid.
9326
9327 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9328
9329 * corelow.c (get_core_register_section): Use ptid from regcache,
9330 update doc.
9331
9332 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9333
9334 * bsd-uthread.c (bsd_uthread_fetch_registers,
9335 bsd_uthread_store_registers): Use ptid from regcache, set and
9336 restore inferior_ptid.
9337
9338 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9339
9340 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
9341 fetch_fp_regs, store_register, store_regs, store_fp_register,
9342 store_fp_regs): Use ptid from regcache.
9343
9344 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
9345
9346 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
9347 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
9348 store_vfp_regs): Use ptid from regcache.
9349
9350 2017-03-17 Pedro Alves <palves@redhat.com>
9351
9352 PR remote/21188
9353 * ser-base.c (ser_base_wait_for): Add comment.
9354 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
9355 version.
9356 * ser-unix.c (hardwire_raw): Remove reference to
9357 scb->current_timeout.
9358 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
9359 (hardwire_ops): Install ser_base_readchar instead of
9360 hardwire_readchar.
9361 * serial.h (struct serial) <current_timeout, timeout_remaining>:
9362 Remove fields.
9363
9364 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
9365
9366 PR gdb/19637
9367 * python/lib/gdb/printer/bound_registers.py: Add support for
9368 Python 3.
9369
9370 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
9371
9372 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
9373 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
9374 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
9375 byte_offset to subobj_byte_offset. Fix the handling of
9376 DWARF_VALUE_STACK on big-endian targets when coming via an
9377 implicit pointer.
9378 (dwarf2_evaluate_loc_desc): Adjust call to
9379 dwarf2_evaluate_loc_desc_full.
9380 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
9381 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
9382
9383 2017-03-16 Yao Qi <yao.qi@linaro.org>
9384
9385 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
9386 and REVSH instructions.
9387
9388 2017-03-16 Yao Qi <yao.qi@linaro.org>
9389
9390 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
9391 (arm_record_test): Declare.
9392 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
9393 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
9394 align with the manual.
9395 (thumb_record_misc): Adjust the code order to align with the
9396 manual.
9397 (thumb2_record_decode_insn_handler): Fix instruction matching.
9398 (instruction_reader_thumb): New class.
9399 (arm_record_test): New function.
9400
9401 2017-03-16 Yao Qi <yao.qi@linaro.org>
9402
9403 * arm-tdep.c (abstract_memory_reader): New class.
9404 (instruction_reader): New class.
9405 (extract_arm_insn): Add argument 'reader'. Callers updated.
9406 (decode_insn): Likewise.
9407
9408 2017-03-16 Doug Evans <dje@google.com>
9409
9410 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
9411 member. Change type of TYPE member to SCM. All uses updated.
9412 (lsscm_make_lazy_string_smob): Add assert.
9413 (lsscm_make_lazy_string): Flag bad length values.
9414 (lsscm_elt_type): New function.
9415 (gdbscm_lazy_string_to_value): Rewrite to use
9416 lsscm_safe_lazy_string_to_value.
9417 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
9418 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
9419 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
9420 in incoming type.
9421 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
9422 * guile/scm-type.c (tyscm_scm_to_type): New function.
9423
9424 2017-03-15 Doug Evans <dje@google.com>
9425
9426 PR python/17728, python/18439, python/18779
9427 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
9428 member. Change type of TYPE member to PyObject *. All uses updated.
9429 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
9430 (gdbpy_create_lazy_string_object): Flag bad length values.
9431 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
9432 Handle typedefs in incoming type.
9433 (stpy_lazy_string_elt_type): New function.
9434 (gdbpy_extract_lazy_string): Call it.
9435 * python/py-value.c (valpy_lazy_string): Flag bad length values.
9436 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
9437 typedefs in incoming type.
9438
9439 2017-03-16 Doug Evans <dje@google.com>
9440
9441 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
9442 * guile/scm-type.c (tyscm_scm_to_type): New function.
9443
9444 2017-03-16 Jiong Wang <jiong.wang@arm.com>
9445
9446 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
9447 "ULONGEST" for "skip".
9448
9449 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
9450
9451 PR gdb/21220
9452 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
9453 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
9454 (inf_ptrace_peek_poke): ...here. New function. Now also loop
9455 over ptrace peek/poke until end of buffer or error.
9456
9457 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
9458
9459 * parse.c (length_of_subexp): Make static.
9460 * parser-defs.h (length_of_subexp): Remove.
9461
9462 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
9463
9464 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
9465 as well.
9466
9467 2017-03-14 Pedro Alves <palves@redhat.com>
9468
9469 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
9470 (main): Use std::unique_ptr. Remove calls to
9471 cp_demangled_name_parse_free.
9472
9473 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9474
9475 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
9476 alphabsd_store_inferior_registers): Use regcache->ptid instead
9477 of inferior_ptid.
9478
9479 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9480
9481 * aix-thread.c (aix_thread_fetch_registers,
9482 aix_thread_store_registers): Use regcache->ptid instead of
9483 inferior_ptid.
9484
9485 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9486
9487 * aarch64-linux-nat.c (fetch_gregs_from_thread,
9488 store_gregs_to_thread, fetch_fpregs_from_thread,
9489 store_fpregs_to_thread): Use regcache->ptid instead of
9490 inferior_ptid.
9491
9492 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9493
9494 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
9495 amd64_linux_fetch_inferior_registers): Use regcache->ptid
9496 instead of inferior_ptid.
9497
9498 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9499
9500 * target.c (target_fetch_registers, target_store_registers): Add
9501 assert.
9502
9503 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
9504
9505 * regcache.h (regcache_get_ptid): New function.
9506 * regcache.c (regcache_get_ptid): New function.
9507
9508 2017-03-13 Mark Wielaard <mark@klomp.org>
9509
9510 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
9511
9512 2017-03-10 Keith Seitz <keiths@redhat.com>
9513
9514 PR c++/8218
9515 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
9516
9517 2017-03-08 Pedro Alves <palves@redhat.com>
9518
9519 PR gdb/18360
9520 * infrun.c (start_step_over, do_target_resume, resume)
9521 (restart_threads): Assert we're not resuming a thread that is
9522 meant to be stopped.
9523 (infrun_thread_stop_requested_callback): Delete.
9524 (infrun_thread_stop_requested): If the thread is internally
9525 stopped, queue a pending stop event and clear the thread's
9526 inline-frame state.
9527 (handle_stop_requested): New function.
9528 (handle_syscall_event, handle_inferior_event_1): Use
9529 handle_stop_requested.
9530 (handle_stop_requested): New function.
9531 (handle_signal_stop): Set the thread's stop_signal here instead of
9532 at caller.
9533 (finish_step_over): Clear step over info unconditionally.
9534 (handle_signal_stop): If the user had interrupted the event
9535 thread, consider the stop a random signal.
9536 (handle_signal_stop) <signal arrived while stepping over
9537 breakpoint>: Don't restart threads here.
9538 (stop_waiting): Don't clear step-over info here.
9539
9540 2017-03-08 Pedro Alves <palves@redhat.com>
9541
9542 PR 21206
9543 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
9544 goes to argument 2, not 1.
9545
9546 2017-03-08 Pedro Alves <palves@redhat.com>
9547
9548 PR cli/21218
9549 * top.c (gdb_readline_wrapper): Avoid passing NULL to
9550 display_gdb_prompt.
9551 (command_line_input): Add comment.
9552
9553 2017-03-08 Pedro Alves <palves@redhat.com>
9554
9555 PR tui/21216
9556 * tui/tui-file.c (tui_file::write): New.
9557 * tui/tui-file.h (tui_file): Override "write".
9558 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
9559 factored out from ...
9560 (tui_puts): ... here.
9561 (tui_putc): Use them.
9562 (tui_write): New function.
9563 * tui/tui-io.h (tui_write): Declare.
9564
9565 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
9566
9567 * Makefile.in (SFILES): Replace "environ.c" with
9568 "common/environ.c".
9569 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
9570 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
9571 to...
9572 * common/environ.c: ... here.
9573 * environ.h: Moved to...
9574 * common/environ.h: ... here.
9575
9576 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
9577
9578 * gdbarch.sh (pstring_ptr): New static function.
9579 (gdbarch_disassembler_options): Use it.
9580 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
9581 not valid_disassembler_option->name.
9582 * gdbarch.c: Regenerate.
9583
9584 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
9585
9586 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
9587
9588 2017-03-07 Pedro Alves <palves@redhat.com>
9589
9590 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
9591
9592 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
9593
9594 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
9595 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
9596 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
9597 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
9598
9599 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
9600
9601 * xtensa-linux-nat.c (fetch_gregs): Remove const.
9602
9603 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
9604
9605 * remote.c (remote_add_target_side_commands): Use range-based
9606 for loop.
9607
9608 2017-03-03 Yao Qi <yao.qi@linaro.org>
9609
9610 PR gdb/21165
9611 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
9612 value is lazy.
9613 * valprint.c (common_val_print): Likewise.
9614
9615 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
9616
9617 * NEWS: Mention new set/show disassembler-options commands.
9618 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
9619 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
9620 (prospective_options): New static variable.
9621 (gdb_disassembler::gdb_disassembler): Initialize
9622 m_di.disassembler_options.
9623 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
9624 (get_disassembler_options): New function.
9625 (set_disassembler_options): Likewise.
9626 (set_disassembler_options_sfunc): Likewise.
9627 (show_disassembler_options_sfunc): Likewise.
9628 (disassembler_options_completer): Likewise.
9629 (_initialize_disasm): Likewise.
9630 * disasm.h (get_disassembler_options): New prototype.
9631 (set_disassembler_options): Likewise.
9632 * gdbarch.sh (gdbarch_disassembler_options): New variable.
9633 (gdbarch_verify_disassembler_options): Likewise.
9634 * gdbarch.c: Regenerate.
9635 * gdbarch.h: Likewise.
9636 * arm-tdep.c (num_disassembly_options): Delete.
9637 (set_disassembly_style): Likewise.
9638 (arm_disassembler_options): New static variable.
9639 (set_disassembly_style_sfunc): Convert short style name into long
9640 option name. Call set_disassembler_options.
9641 (show_disassembly_style_sfunc): New function.
9642 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
9643 set_gdbarch_verify_disassembler_options.
9644 (_initialize_arm_tdep): Delete regnames variable and update callers.
9645 (arm_disassembler_options): Initialize.
9646 (disasm_options): New variable.
9647 (num_disassembly_options): Rename from this...
9648 (num_disassembly_styles): ...to this. Compute by scanning through
9649 disasm_options.
9650 (valid_disassembly_styles): Initialize using disasm_options.
9651 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
9652 set_arm_regname_option.
9653 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
9654 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
9655 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
9656 set_gdbarch_verify_disassembler_options.
9657 * s390-tdep.c (s390_disassembler_options): New static variable.
9658 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
9659 set_gdbarch_verify_disassembler_options.
9660
9661 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
9662
9663 * remote.c (remote_add_target_side_condition): Remove "struct"
9664 keyword from range-based for loop.
9665
9666 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
9667
9668 * remote.c (remote_add_target_side_condition): Use range-based
9669 for loop. Update comment.
9670
9671 2017-02-27 Yao Qi <yao.qi@linaro.org>
9672
9673 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
9674
9675 2017-02-26 Alan Hayward <alan.hayward@arm.com>
9676
9677 * regcache.c (regcache_raw_update): New function.
9678 (regcache_raw_read): Move code to regcache_raw_update.
9679 * regcache.h (regcache_raw_update): New declaration.
9680 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
9681
9682 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9683
9684 * dwarf2read.c (create_debug_type_hash_table): Initialize
9685 header.signature and header.type_offset_in_tu.
9686
9687 2017-02-24 Pedro Alves <palves@redhat.com>
9688
9689 * symtab.c (make_file_symbol_completion_list_1): Use
9690 add_symtab_completions.
9691
9692 2017-02-24 Alan Hayward <alan.hayward@arm.com>
9693
9694 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
9695
9696 2017-02-24 Alan Hayward <alan.hayward@arm.com>
9697
9698 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
9699 I386_MAX_REGISTER_SIZE.
9700 (i386_pseudo_register_write): Likewise.
9701 (i386_process_record): Likewise.
9702 * i387-tdep.c (i387_supply_xsave): Likewise.
9703 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
9704 (store_register): Likewise.
9705
9706 2017-02-23 Pedro Alves <palves@redhat.com>
9707
9708 * ada-lang.c: Include "common/function-view.h".
9709 (ada_iterate_over_symbols): Adjust to use function_view as
9710 callback type.
9711 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
9712 (ada_make_symbol_completion_list): Use a lambda.
9713 (ada_exc_search_name_matches): Delete.
9714 (name_matches_regex): New.
9715 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
9716 * compile/compile-c-support.c: Include "common/function-view.h".
9717 (print_one_macro): Change prototype to accept a ui_file pointer.
9718 (write_macro_definitions): Use a lambda.
9719 * dwarf2read.c: Include "common/function-view.h".
9720 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9721 (dw2_expand_symtabs_matching): Adjust to use function_view as
9722 callback type.
9723 * language.h: Include "common/function-view.h".
9724 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
9725 function_view as callback type.
9726 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
9727 * linespec.c: Include "common/function-view.h".
9728 (collect_info::add_symbol): New method.
9729 (struct symbol_and_data_callback, iterate_inline_only, struct
9730 symbol_matcher_data, iterate_name_matcher): Delete.
9731 (iterate_over_all_matching_symtabs): Adjust to use function_view
9732 as callback type and lambdas.
9733 (iterate_over_file_blocks): Adjust to use function_view as
9734 callback type.
9735 (decode_compound_collector): Now a class with private fields.
9736 (decode_compound_collector::release_symbols): New method.
9737 (collect_one_symbol): Rename to...
9738 (decode_compound_collector::operator()): ... this and adjust.
9739 (lookup_prefix_sym): decode_compound_collector construction bits
9740 move to decode_compound_collector ctor. Pass the
9741 decode_compound_collector object directly as callback. Remove
9742 cleanups and use decode_compound_collector::release_symbols
9743 instead.
9744 (symtab_collector): Now a class with private fields.
9745 (symtab_collector::release_symtabs): New method.
9746 (add_symtabs_to_list): Rename to...
9747 (symtab_collector::operator()): ... this and adjust.
9748 (collect_symtabs_from_filename): symtab_collector construction
9749 bits move to symtab_collector ctor. Pass the symtab_collector
9750 object directly as callback. Remove cleanups and use
9751 symtab_collector::release_symtabs instead.
9752 (collect_symbols): Delete.
9753 (add_matching_symbols_to_info): Use lambdas.
9754 * macrocmd.c (print_macro_callback): Delete.
9755 (info_macro_command): Use a lambda.
9756 (info_macros_command): Pass print_macro_definition as callable
9757 directly.
9758 (print_one_macro): Remove 'ignore' parameter.
9759 (macro_list_command): Adjust.
9760 * macrotab.c (macro_for_each_data::fn): Now a function_view.
9761 (macro_for_each_data::user_data): Delete field.
9762 (foreach_macro): Adjust to call the function_view.
9763 (macro_for_each): Adjust to use function_view as callback type.
9764 (foreach_macro_in_scope): Adjust to call the function_view.
9765 (macro_for_each_in_scope): Adjust to use function_view as callback
9766 type.
9767 * macrotab.h: Include "common/function-view.h".
9768 (macro_callback_fn): Declare a prototype instead of a pointer.
9769 Remove "user_data" parameter.
9770 (macro_for_each, macro_for_each_in_scope): Adjust to use
9771 function_view as callback type.
9772 * psymtab.c (partial_map_expand_apply)
9773 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
9774 Adjust to use function_view as callback type and to return bool.
9775 (psym_expand_symtabs_matching): Adjust to use function_view as
9776 callback types.
9777 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
9778 to use function_view as callback type and to return bool.
9779 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
9780 callback types.
9781 * symfile.c (expand_symtabs_matching): Adjust to use function_view
9782 as callback types.
9783 * symfile.h: Include "common/function-view.h".
9784 (expand_symtabs_file_matcher_ftype)
9785 (expand_symtabs_symbol_matcher_ftype)
9786 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
9787 return bool.
9788 (quick_symbol_functions::map_symtabs_matching_filename)
9789 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
9790 function_view as callback type and return bool.
9791 (expand_symtabs_matching): Adjust to use function_view as callback
9792 type.
9793 (maintenance_expand_name_matcher)
9794 (maintenance_expand_file_matcher): Delete.
9795 (maintenance_expand_symtabs): Use lambdas.
9796 * symtab.c (iterate_over_some_symtabs): Adjust to use
9797 function_view as callback types and return bool.
9798 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
9799 of a cleanup.
9800 (lookup_symtab_callback): Delete.
9801 (lookup_symtab): Use a lambda.
9802 (iterate_over_symbols): Adjust to use function_view as callback
9803 type.
9804 (struct search_symbols_data, search_symbols_file_matches)
9805 (search_symbols_name_matches): Delete.
9806 (search_symbols): Use a pair of lambdas.
9807 (struct add_name_data, add_macro_name, symbol_completion_matcher)
9808 (symtab_expansion_callback): Delete.
9809 (default_make_symbol_completion_list_break_on_1): Use lambdas.
9810 * symtab.h: Include "common/function-view.h".
9811 (iterate_over_some_symtabs): Adjust to use function_view as
9812 callback type and return bool.
9813 (iterate_over_symtabs): Adjust to use function_view as callback
9814 type.
9815 (symbol_found_callback_ftype): Remove 'data' parameter and return
9816 bool.
9817 (iterate_over_symbols): Adjust to use function_view as callback
9818 type.
9819
9820 2017-02-23 Pedro Alves <palves@redhat.com>
9821
9822 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
9823 (%.o) <unittests/%.c>: New pattern.
9824 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
9825 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
9826 * common/function-view.h: New file.
9827 * unittests/function-view-selftests.c: New file.
9828 * configure: Regenerate.
9829
9830 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
9831
9832 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
9833 inferior_ptid.
9834 * go32-nat.c (go32_thread_alive): Likewise.
9835
9836 2017-02-23 Yao Qi <yao.qi@linaro.org>
9837
9838 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
9839 delete.
9840
9841 2017-02-23 Yao Qi <yao.qi@linaro.org>
9842
9843 * varobj.c (varobj_clear_saved_item): Use delete instead of
9844 xfree.
9845 (update_dynamic_varobj_children): Likewise.
9846
9847 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9848
9849 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
9850
9851 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
9852
9853 * common/enum-flags.h (enum_flags::enum_flags): Initialize
9854 m_enum_value to 0 in default constructor.
9855
9856 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9857
9858 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
9859 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
9860 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
9861 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
9862 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
9863 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
9864 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
9865 IS_STORE_CONDITIONAL_INSN.
9866
9867 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9868
9869 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
9870
9871 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9872
9873 * NEWS (Changes since GDB 7.12): Add DWARF-5.
9874
9875 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9876
9877 * dwarf2read.c (skip_one_die, read_attribute_value)
9878 (dwarf2_const_value_attr, dump_die_shallow)
9879 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
9880 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
9881
9882 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9883
9884 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
9885 (dwarf_parse_macro_header): Accept DWARF version 5.
9886 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
9887
9888 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9889
9890 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
9891 DW_AT_GNU_*.
9892 * common/common-exceptions.h (enum errors): Likewise.
9893 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
9894 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
9895 (dwarf_expr_context::execute_stack_op): Likewise.
9896 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
9897 Likewise.
9898 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
9899 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9900 (show_entry_values_debug, call_site_to_target_addr)
9901 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
9902 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
9903 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
9904 (value_of_dwarf_block_entry, indirect_pieced_value)
9905 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
9906 (disassemble_dwarf_expression): Likewise.
9907 * dwarf2read.c (process_die, inherit_abstract_dies)
9908 (read_call_site_scope): Likewise.
9909 * gdbtypes.h (struct func_type, struct call_site_parameter)
9910 (struct call_site): Likewise.
9911 * stack.c (read_frame_arg): Likewise.
9912 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
9913
9914 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9915
9916 * defs.h (read_unsigned_leb128): New declaration.
9917 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
9918 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
9919 (dwarf2_find_location_expression): Call also
9920 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
9921 * dwarf2loc.h (dwarf2_version): New declaration.
9922 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
9923 rnglists.
9924 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
9925 .debug_rnglists.
9926 (struct dwop_section_names): Add loclists_dwo.
9927 (dwop_section_names): Add .debug_loclists.dwo.
9928 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
9929 (struct dwarf2_per_cu_data): Add dwarf_version.
9930 (struct dwo_sections): Add loclists.
9931 (struct attr_abbrev): Add implicit_const.
9932 (read_indirect_line_string): New declaration.
9933 (read_unsigned_leb128): Delete declaration.
9934 (rcuh_kind): New definition.
9935 (read_and_check_comp_unit_head): Change parameter
9936 is_debug_types_section to section_kind.
9937 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
9938 (read_comp_unit_head): Change parameter abfd to section, add parameter
9939 section_kind. Handle DWARF-5.
9940 (error_check_comp_unit_head): Accept also DWARF version 5.
9941 (read_and_check_comp_unit_head): Change parameter
9942 is_debug_types_section to section_kind.
9943 (read_and_check_type_unit_head): Delete function.
9944 (read_abbrev_offset): Handle DWARF-5.
9945 (create_debug_type_hash_table): Add parameter section_kind. Process
9946 only DW_UT_type. Use signature and type_offset_in_tu from struct
9947 comp_unit_head.
9948 (create_debug_types_hash_table): Update create_debug_type_hash_table
9949 caller.
9950 (create_all_type_units): Call create_debug_type_hash_table.
9951 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
9952 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
9953 caller.
9954 (skip_one_die): Handle DW_FORM_implicit_const.
9955 (dwarf2_rnglists_process): New function.
9956 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
9957 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
9958 (read_attribute_value): Handle DW_FORM_implicit_const,
9959 DW_FORM_line_strp.
9960 (read_attribute): Handle DW_FORM_implicit_const.
9961 (read_indirect_string_at_offset_from): New function from
9962 read_indirect_string_at_offset.
9963 (read_indirect_string_at_offset): Call
9964 read_indirect_string_at_offset_from.
9965 (read_indirect_line_string_at_offset): New function.
9966 (read_indirect_string): New function comment.
9967 (read_indirect_line_string): New function.
9968 (read_unsigned_leb128): Make it global.
9969 (dwarf2_string_attr): Handle DWARF-5.
9970 (add_include_dir_stub, read_formatted_entries): New functions.
9971 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
9972 Handle DWARF-5.
9973 (per_cu_header_read_in): Update read_comp_unit_head caller.
9974 (dwarf2_version): New function.
9975 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
9976 rnglists.
9977 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
9978 fields.
9979
9980 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9981
9982 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
9983
9984 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9985
9986 * dwarf2read.c (dwarf2_ranges_process): New function from
9987 dwarf2_ranges_read.
9988 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
9989 dwarf2_ranges_process.
9990
9991 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9992
9993 * dwarf2read.c (create_debug_type_hash_table): New function from
9994 create_debug_types_hash_table.
9995 (create_debug_types_hash_table): Call create_debug_type_hash_table.
9996 (create_all_type_units, open_and_init_dwo_file): Update
9997 create_debug_types_hash_table callers.
9998
9999 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10000
10001 PR gdb/16188
10002 * fork-child.c (trace_start_error): Fix thinko. va_end should
10003 refer to 'ap', not 'args'.
10004
10005 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10006 Pedro Alves <palves@redhat.com>
10007
10008 PR gdb/16188
10009 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
10010 calls succeeded.
10011 * fork-child.c (trace_start_error): New function.
10012 (trace_start_error_with_name): Likewise.
10013 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
10014 * inf-ptrace.c (inf_ptrace_me): Likewise.
10015 * inferior.h (trace_start_error): New prototype.
10016 (trace_start_error_with_name): Likewise.
10017
10018 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
10019
10020 PR gdb/21164
10021 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
10022 NULL before using it.
10023 * symmisc.c (maintenance_print_symbols): Likewise.
10024 (maintenance_print_msymbols): Likewise.
10025
10026 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10027
10028 * NEWS: Add record Python bindings entry.
10029
10030 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10031
10032 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
10033 py-record-full.o.
10034 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
10035 * python/py-record-btrace.c, python/py-record-btrace.h,
10036 python/py-record-full.c, python/py-record-full.h: New file.
10037 * python/py-record.c: Add include for py-record-btrace.h and
10038 py-record-full.h.
10039 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
10040 recpy_instruction_history, recpy_function_call_history, recpy_begin,
10041 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
10042 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
10043 New definition.
10044 (gdbpy_initialize_btrace): New export.
10045 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
10046
10047 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10048
10049 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
10050 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
10051 * python/py-record.c: New file.
10052 * python/python-internal.h (gdbpy_start_recording,
10053 gdbpy_current_recording, gdpy_stop_recording,
10054 gdbpy_initialize_record): New export.
10055 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
10056 (python_GdbMethods): Add gdbpy_start_recording,
10057 gdbpy_current_recording and gdbpy_stop_recording.
10058
10059 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10060
10061 * record-btrace.c (record_btrace_record_method): New function.
10062 (init_record_btrace_ops): Initialize to_record_method.
10063 * record-full.c (record_full_record_method): New function.
10064 (init_record_full_ops, init_record_full_core_ops): Add
10065 record_full_record_method.
10066 * record.h (enum record_method): New enum.
10067 * target-debug.h (target_debug_print_enum_record_method: New define.
10068 * target-delegates.c: Regenerate.
10069 * target.c (target_record_method): New function.
10070 * target.h: Include record.h.
10071 (struct target_ops) <to_record_method>: New field.
10072 (target_record_method): New export.
10073
10074 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10075
10076 * record.h (record_start, record_stop): New export.
10077 * record.c (record_start, record_stop): New function.
10078
10079 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10080
10081 * btrace.c (btrace_fetch): Copy function call segments pointer
10082 into a vector.
10083 (btrace_clear): Clear the vector.
10084 (btrace_find_insn_by_number): Use binary search to find the correct
10085 function call segment.
10086 * btrace.h (brace_fun_p): New typedef.
10087 (struct btrace_thread_info) <functions>: New field.
10088
10089 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10090
10091 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
10092 * btrace.c (btrace_decode_error): ... here. New function.
10093 * btrace.h (btrace_decode_error): New export.
10094
10095 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
10096
10097 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
10098 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
10099 btrace_find_insn_by_number): Remove special case for gaps.
10100 * btrace.h (btrace_insn_get_error): New export.
10101 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
10102 * record-btrace.c (btrace_insn_history): Print number for gaps.
10103 (record_btrace_info, record_btrace_goto): Handle gaps.
10104
10105 2017-02-14 Tom Tromey <tom@tromey.com>
10106
10107 PR python/13598:
10108 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
10109 event.
10110 * python/py-evts.c (gdbpy_initialize_py_events): Add
10111 before_prompt registry.
10112 * python/py-events.h (events_object) <before_prompt>: New field.
10113
10114 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
10115
10116 * btrace.c (ftrace_new_switch): Preserve up link and flags.
10117
10118 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
10119
10120 * symfile (_initialize_symfile): Add usage text to the load command's
10121 help text.
10122
10123 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
10124
10125 * utils.c (defaulted_query): Don't query on secondary UIs.
10126
10127 2017-02-10 Tom Tromey <tom@tromey.com>
10128
10129 * rust-lang.c (rust_get_disr_info): Remove unused variable.
10130
10131 2017-02-10 Tom Tromey <tom@tromey.com>
10132
10133 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
10134 "cleanup" local.
10135 * python/py-type.c (typy_legacy_template_argument): Remove
10136 unnecessary "cleanup" local.
10137
10138 2017-02-10 Tom Tromey <tom@tromey.com>
10139
10140 * python/python.c (do_start_initialization): New function, from
10141 _initialize_python.
10142 (_initialize_python): Call do_start_initialization.
10143 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
10144 goto.
10145
10146 2017-02-10 Tom Tromey <tom@tromey.com>
10147
10148 * python/py-prettyprint.c (pretty_print_one_value): Use
10149 gdbpy_ref.
10150
10151 2017-02-10 Tom Tromey <tom@tromey.com>
10152
10153 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
10154 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
10155 gdbpy_ref.
10156 * python/py-type.c (field_new): Use gdbpy_ref.
10157 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
10158 gdbpy_ref.
10159 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
10160 (py_free_pspace): Likewise.
10161 (pspace_to_pspace_object): Likewise.
10162 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
10163 (py_free_objfile): Likewise.
10164 (objfile_to_objfile_object): Likewise.
10165 * python/py-inferior.c (delete_thread_object): Use
10166 gdbpy_ref.
10167 (infpy_read_memory): Likewise.
10168 (py_free_inferior): Likewise.
10169 * python/py-evtregistry.c (create_eventregistry_object): Use
10170 gdbpy_ref.
10171 * python/py-event.c (create_event_object): Use gdbpy_ref.
10172
10173 2017-02-10 Tom Tromey <tom@tromey.com>
10174
10175 * python/py-ref.h (gdbpy_ref_policy): Now a template.
10176 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
10177 used.
10178 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
10179 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
10180 python/py-exitedevent.c, python/py-finishbreakpoint.c,
10181 python/py-framefilter.c, python/py-function.c,
10182 python/py-inferior.c, python/py-infevents.c,
10183 python/py-linetable.c, python/py-newobjfileevent.c,
10184 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
10185 python/py-signalevent.c, python/py-stopevent.c,
10186 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
10187 python/py-unwind.c, python/py-utils.c, python/py-value.c,
10188 python/py-varobj.c, python/py-xmethods.c, python/python.c,
10189 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
10190
10191 2017-02-10 Tom Tromey <tom@tromey.com>
10192
10193 * ui-out.h (ui_out_emit_type): New class.
10194 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
10195 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
10196 and ui_out_emit_tuple.
10197 (enumerate_locals): Likewise.
10198 (py_mi_print_variables, py_print_locals, py_print_args): Use
10199 ui_out_emit_list.
10200 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
10201 ui_out_emit_list.
10202 * common/gdb_optional.h: New file.
10203
10204 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
10205
10206 * MAINTAINERS (Write After Approval): Update my e-mail address.
10207
10208 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
10209
10210 PR gdb/21122
10211 * breakpoint.c (_initialize_breakpoint): Update the help description
10212 of the 'commands' command to indicate that it takes a list argument.
10213
10214 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
10215
10216 * interps.c (current_interp_set_logging): Remove "return".
10217
10218 2017-02-09 Gary Benson <gbenson@redhat.com>
10219
10220 * symtab.c (add_symtab_completions): Prevent NULL pointer
10221 dereference.
10222
10223 2017-02-08 Pedro Alves <palves@redhat.com>
10224
10225 * interps.c (interp::interp): Remove reference to quiet_p.
10226 (interp_set): Make static. Remove dead "Switching to" output
10227 code.
10228 (interp_quiet_p, interp_set_quiet): Delete.
10229 (interpreter_exec_cmd): Don't set the interpreter quiet.
10230 * interps.h (interp_quiet_p): Make static.
10231 (class interp) <quiet_p>: Remove field
10232
10233 2017-02-08 Jerome Guitton <guitton@adacore.com>
10234
10235 * cli/cli-decode.c (find_command_name_length): Make it extern.
10236 * cli/cli-decode.h (find_command_name_length): Declare.
10237 * cli/cli-script.c (command_name_equals, line_first_arg):
10238 New functions.
10239 (process_next_line): Use cli-decode to parse command names.
10240 (build_command_line): Make args a constant pointer.
10241
10242 2017-02-08 Jerome Guitton <guitton@adacore.com>
10243
10244 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
10245 Remove case-insensitive search.
10246
10247 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
10248
10249 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
10250 at the end of the line. Avoids an ARI warning.
10251
10252 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
10253
10254 * NEWS: Mention support for record/replay of Intel 64 rdrand and
10255 rdseed instructions.
10256 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
10257
10258 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
10259
10260 PR tdep/20936
10261 Provide and use sparc32 and sparc64 target description XML files.
10262 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
10263 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
10264 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
10265 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
10266 * features/sparc/sparc32-solaris.xml: New file.
10267 * features/sparc/sparc64-solaris.xml: New file.
10268 * features/sparc/sparc32-solaris.c: Generated.
10269 * features/sparc/sparc64-solaris.c: Generated.
10270 * sparc-tdep.h: Account for differences in target descriptions.
10271 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
10272 (sparc32_register_type): Use target provided registers.
10273 (validate_tdesc_registers): New function.
10274 (sparc32_gdbarch_init): Use tdesc_has_registers.
10275 Set pseudoregister functions.
10276 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
10277 (sparc64_register_type): Use target provided registers.
10278 (sparc64_init_abi): Set pseudoregister functions.
10279
10280 2017-02-03 Tom Tromey <tom@tromey.com>
10281
10282 PR rust/21097:
10283 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
10284 with a single member.
10285
10286 2017-02-03 Pedro Alves <palves@redhat.com>
10287
10288 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
10289 (cli_interp_base::~cli_interp_base): New.
10290 (cli_interp): New struct.
10291 (as_cli_interp): Cast the interp itself to cli_interp.
10292 (cli_interpreter_pre_command_loop): Rename to ...
10293 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
10294 parameter.
10295 (cli_interpreter_init): Rename to ...
10296 (cli_interp::init): ... this. Remove 'self' parameter. Use
10297 boolean. Make extern.
10298 (cli_interpreter_resume): Rename to ...
10299 (cli_interp::resume): ... this. Remove 'data' parameter. Make
10300 extern.
10301 (cli_interpreter_suspend): Rename to ...
10302 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
10303 extern.
10304 (cli_interpreter_exec): Rename to ...
10305 (cli_interp::exec): ... this. Remove 'data' parameter. Make
10306 extern.
10307 (cli_interpreter_supports_command_editing): Rename to ...
10308 (cli_interp_base::supports_command_editing): ... this. Remove
10309 'interp' parameter. Make extern.
10310 (cli_ui_out): Rename to ...
10311 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
10312 Make extern.
10313 (cli_set_logging): Rename to ...
10314 (cli_interp_base::set_logging): ... this. Remove 'interp'
10315 parameter. Make extern.
10316 (cli_interp_procs): Delete.
10317 (cli_interp_factory): Adjust to use "new".
10318 * cli/cli-interp.h: Include "interps.h".
10319 (struct cli_interp_base): New struct.
10320 * interps.c (struct interp): Delete. Fields moved to interps.h.
10321 (interp_new): Delete.
10322 (interp::interp, interp::~interp): New.
10323 (interp_set): Use bool, and return void. Assume the interpreter
10324 has suspend, init and resume methods, and that the all return
10325 void.
10326 (set_top_level_interpreter): interp_set returns void.
10327 (interp_ui_out): Adapt.
10328 (current_interp_set_logging): Adapt.
10329 (interp_data): Delete.
10330 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
10331 (interp_exec): Adapt.
10332 (top_level_interpreter_data): Delete.
10333 * interps.h (interp_init_ftype, interp_resume_ftype)
10334 (interp_suspend_ftype, interp_exec_ftype)
10335 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
10336 (class interp): New.
10337 (interp_new): Delete.
10338 (interp_set): Now returns void. Use bool.
10339 (interp_data, top_level_interpreter_data): Delete.
10340 * mi/mi-common.h: Include interps.h.
10341 (class mi_interp): Inherit from interp. Define a ctor. Declare
10342 init, resume, suspect, exec, interp_ui_out, set_logging and
10343 pre_command_loop methods.
10344 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
10345 (mi_interpreter_init): Rename to ...
10346 (mi_interp::init): ... this. Remove the 'interp' parameter, use
10347 bool, return void and make extern. Adjust.
10348 (mi_interpreter_resume): ... Rename to ...
10349 (mi_interp::resume): ... this. Remove the 'data' parameter,
10350 return void and make extern. Adjust.
10351 (mi_interpreter_suspend): ... Rename to ...
10352 (mi_interp::suspend): ... this. Remove the 'data' parameter,
10353 return void and make extern. Adjust.
10354 (mi_interpreter_exec): ... Rename to ...
10355 (mi_interp::exec): ... this. Remove the 'data' parameter and make
10356 extern. Adjust.
10357 (mi_interpreter_pre_command_loop): ... Rename to ...
10358 (mi_interp::pre_command_loop): ... this. Remove the 'self'
10359 parameter and make extern.
10360 (mi_on_normal_stop_1): Adjust.
10361 (mi_ui_out): Rename to ...
10362 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
10363 parameter and make extern. Adjust.
10364 (mi_set_logging): Rename to ...
10365 (mi_interp::set_logging): ... this. Remove the 'interp'
10366 parameter and make extern. Adjust.
10367 (mi_interp_procs): Delete.
10368 (mi_interp_factory): Adjust to use 'new'.
10369 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
10370 (mi_print_exception, mi_execute_command, mi_load_progress):
10371 Adjust.
10372 * tui/tui-interp.c (tui_interp): New class.
10373 (as_tui_interp): Return a tui_interp pointer.
10374 (tui_on_normal_stop, tui_on_signal_received)
10375 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
10376 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
10377 to use interp::interp_ui_out.
10378 (tui_init): Rename to ...
10379 (tui_interp::init): ... this. Remove the 'self' parameter, use
10380 bool, return void and make extern. Adjust.
10381 (tui_resume): Rename to ...
10382 (tui_interp::resume): ... this. Remove the 'data' parameter,
10383 return void and make extern. Adjust.
10384 (tui_suspend): Rename to ...
10385 (tui_interp::suspend): ... this. Remove the 'data' parameter,
10386 return void and make extern. Adjust.
10387 (tui_ui_out): Rename to ...
10388 (tui_interp::interp_ui_out): ... this. Remove the 'self'
10389 parameter, and make extern. Adjust.
10390 (tui_exec): Rename to ...
10391 (tui_interp::exec): ... this. Remove the 'data' parameter and
10392 make extern.
10393 (tui_interp_procs): Delete.
10394 (tui_interp_factory): Use "new".
10395
10396 2017-02-02 Tom Tromey <tom@tromey.com>
10397
10398 * rust-exp.y (ends_raw_string, space_then_number)
10399 (rust_identifier_start_p): Return bool.
10400 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
10401 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
10402 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
10403 (rust_chartype_p): Return bool.
10404 (val_print_struct, rust_print_struct_def, rust_print_type):
10405 Update.
10406 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
10407 Return bool.
10408
10409 2017-02-02 Tom Tromey <tom@tromey.com>
10410
10411 * rust-lang.c: Reindent.
10412
10413 2017-02-02 Tom Tromey <tom@tromey.com>
10414
10415 * rust-lang.h (rust_crate_for_block): Update.
10416 * rust-lang.c (rust_crate_for_block): Return std::string.
10417 (rust_get_disr_info): Use std:;string, not
10418 gdb::unique_xmalloc_ptr.
10419 * rust-exp.y (crate_name): Update.
10420
10421 2017-02-02 Pedro Alves <palves@redhat.com>
10422
10423 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
10424 field out of gdb_disassembler_test and make it static.
10425
10426 2017-02-02 Pedro Alves <palves@redhat.com>
10427
10428 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
10429 mi1_interp and mi_interp fields.
10430
10431 2017-02-02 Pedro Alves <palves@redhat.com>
10432
10433 * cli/cli-interp.c (struct saved_output_files, saved_output):
10434 Moved from cli/cli-logging.c.
10435 (cli_set_logging): New function.
10436 (cli_interp_procs): Install cli_set_logging.
10437 * cli/cli-interp.h (make_logging_output, cli_set_logging):
10438 Declare.
10439 * cli/cli-logging.c (struct saved_output_files, saved_output):
10440 Moved to cli/cli-interp.c.
10441 (pop_output_files): Don't save outputs here.
10442 (make_logging_output): New function.
10443 (handle_redirections): Don't build tee nor save previous outputs
10444 here.
10445 * interps.c (current_interp_set_logging): Change prototype.
10446 Assume there's always a set_logging_proc method installed.
10447 * interps.h (interp_set_logging_ftype): Change prototype.
10448 (current_interp_set_logging): Change prototype and adjust comment.
10449 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
10450 use make_logging_output.
10451 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
10452 2017-02-02 Pedro Alves <palves@redhat.com>
10453
10454 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
10455 from ...
10456 (set_logging_overwrite): ... here.
10457 (logging_no_redirect_file): Delete.
10458 (set_logging_redirect): Don't handle redirection on the fly.
10459 Instead warn that "logging off" / "logging on" is necessary.
10460 (pop_output_files): Delete references to logging_no_redirect_file.
10461 (show_logging_command): Always speak in terms of what will happen
10462 once logging is reenabled.
10463
10464 2017-02-02 Pedro Alves <palves@redhat.com>
10465
10466 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
10467
10468 2017-02-02 Pedro Alves <palves@redhat.com>
10469
10470 * disasm.c (gdb_pretty_print_insn): Rename to ...
10471 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
10472 Remove gdbarch parameter. Adapt to clear the object's buffers
10473 instead of allocating new buffers, and to print using the object's
10474 gdb_disassembler instead of calling gdb_print_insn.
10475 (dump_insns): Use gdb_pretty_print_disassembler.
10476 * disasm.h (gdb_pretty_print_insn): Delete declaration.
10477 (gdb_pretty_print_disassembler): New class.
10478 * record-btrace.c (btrace_insn_history): Use
10479 gdb_pretty_print_disassembler.
10480
10481 2017-02-02 Pedro Alves <palves@redhat.com>
10482
10483 * ada-lang.c (type_as_string): Use string_file.
10484 * ada-valprint.c (ada_print_floating): Use string_file.
10485 * ada-varobj.c (ada_varobj_scalar_image)
10486 (ada_varobj_get_value_image): Use string_file.
10487 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
10488 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
10489 * breakpoint.c (update_inserted_breakpoint_locations)
10490 (insert_breakpoint_locations, reattach_breakpoints)
10491 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
10492 (print_it_watchpoint): Use string_file.
10493 (save_breakpoints): Use stdio_file.
10494 * c-exp.y (oper): Use string_file.
10495 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
10496 tee_file.
10497 (pop_output_files): Use delete.
10498 (handle_redirections): Use stdio_file and tee_file.
10499 * cli/cli-setshow.c (do_show_command): Use string_file.
10500 * compile/compile-c-support.c (c_compute_program): Use
10501 string_file.
10502 * compile/compile-c-symbols.c (generate_vla_size): Take a
10503 'string_file &' instead of a 'ui_file *'.
10504 (generate_c_for_for_one_variable): Take a 'string_file &' instead
10505 of a 'ui_file *'. Use string_file.
10506 (generate_c_for_variable_locations): Take a 'string_file &'
10507 instead of a 'ui_file *'.
10508 * compile/compile-internal.h (generate_c_for_for_one_variable):
10509 Take a 'string_file &' instead of a 'ui_file *'.
10510 * compile/compile-loc2c.c (push, pushf, unary, binary)
10511 (print_label, pushf_register_address, pushf_register)
10512 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
10513 'ui_file *'. Adjust.
10514 * compile/compile.c (compile_to_object): Use string_file.
10515 * compile/compile.h (compile_dwarf_expr_to_c)
10516 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
10517 'ui_file *'.
10518 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
10519 (replace_typedefs_qualified_name): Use string_file and
10520 obstack_copy0.
10521 * disasm.c (gdb_pretty_print_insn): Use string_file.
10522 (gdb_disassembly): Adjust reference the null_stream global.
10523 (do_ui_file_delete): Delete.
10524 (gdb_insn_length): Use null_stream.
10525 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
10526 * dwarf2loc.c (dwarf2_compile_property_to_c)
10527 (locexpr_generate_c_location, loclist_generate_c_location): Take a
10528 'string_file &' instead of a 'ui_file *'.
10529 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
10530 * dwarf2read.c (do_ui_file_peek_last): Delete.
10531 (dwarf2_compute_name): Use string_file.
10532 * event-top.c (gdb_setup_readline): Use stdio_file.
10533 * gdbarch.sh (verify_gdbarch): Use string_file.
10534 * gdbtypes.c (safe_parse_type): Use null_stream.
10535 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
10536 string_file.
10537 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
10538 'string_file *' instead of a 'ui_file *'.
10539 (gdbscm_arch_disassemble): Use string_file.
10540 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
10541 * guile/scm-ports.c (class ioscm_file_port): Now a class that
10542 inherits from ui_file.
10543 (ioscm_file_port_delete, ioscm_file_port_rewind)
10544 (ioscm_file_port_put): Delete.
10545 (ioscm_file_port_write): Rename to ...
10546 (ioscm_file_port::write): ... this. Remove file_port_magic
10547 checks.
10548 (ioscm_file_port_new): Delete.
10549 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
10550 ui_file_up.
10551 * guile/scm-type.c (tyscm_type_name): Use string_file.
10552 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
10553 Use string_file.
10554 * infcmd.c (print_return_value_1): Use string_file.
10555 * infrun.c (print_target_wait_results): Use string_file.
10556 * language.c (add_language): Use string_file.
10557 * location.c (explicit_to_string_internal): Use string_file.
10558 * main.c (captured_main_1): Use null_file.
10559 * maint.c (maintenance_print_architecture): Use stdio_file.
10560 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
10561 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
10562 event_channel>: Change type to mi_console_file pointer.
10563 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
10564 (mi_console_file_delete): Delete.
10565 (struct mi_console_file): Delete.
10566 (mi_console_file_magic): Delete.
10567 (mi_console_file_new): Delete.
10568 (mi_console_file::mi_console_file): New.
10569 (mi_console_file_delete): Delete.
10570 (mi_console_file_fputs): Delete.
10571 (mi_console_file::write): New.
10572 (mi_console_raw_packet): Delete.
10573 (mi_console_file::flush): New.
10574 (mi_console_file_flush): Delete.
10575 (mi_console_set_raw): Rename to ...
10576 (mi_console_file::set_raw): ... this.
10577 * mi/mi-console.h (class mi_console_file): New class.
10578 (mi_console_file_new, mi_console_set_raw): Delete.
10579 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
10580 (mi_set_logging): Use delete and tee_file. Adjust.
10581 * mi/mi-main.c (output_register): Use string_file.
10582 (mi_cmd_data_evaluate_expression): Use string_file.
10583 (mi_cmd_data_read_memory): Use string_file.
10584 (mi_cmd_execute, print_variable_or_computed): Use string_file.
10585 * mi/mi-out.c (mi_ui_out::main_stream): New.
10586 (mi_ui_out::rewind): Use main_stream and
10587 string_file.
10588 (mi_ui_out::put): Use main_stream and string_file.
10589 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
10590 Allocate a 'string_file' instead.
10591 (mi_out_new): Don't allocate a mem_fileopen stream here.
10592 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
10593 (mi_ui_out::main_stream): Declare method.
10594 * printcmd.c (eval_command): Use string_file.
10595 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
10596 * python/py-arch.c (archpy_disassemble): Use string_file.
10597 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
10598 * python/py-frame.c (frapy_str): Use string_file.
10599 * python/py-framefilter.c (py_print_type, py_print_single_arg):
10600 Use string_file.
10601 * python/py-type.c (typy_str): Use string_file.
10602 * python/py-unwind.c (unwind_infopy_str): Use string_file.
10603 * python/py-value.c (valpy_str): Use string_file.
10604 * record-btrace.c (btrace_insn_history): Use string_file.
10605 * regcache.c (regcache_print): Use stdio_file.
10606 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
10607 * remote.c (escape_buffer): Use string_file.
10608 * rust-lang.c (rust_get_disr_info): Use string_file.
10609 * serial.c (serial_open_ops_1): Use stdio_file.
10610 (do_serial_close): Use delete.
10611 * stack.c (print_frame_arg): Use string_file.
10612 (print_frame_args): Remove local mem_fileopen stream, not used.
10613 (print_frame): Use string_file.
10614 * symmisc.c (maintenance_print_symbols): Use stdio_file.
10615 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
10616 Take a 'string_file *' instead of a 'ui_file *'.
10617 * top.c (new_ui): Use stdio_file and stderr_file.
10618 (free_ui): Use delete.
10619 (execute_command_to_string): Use string_file.
10620 (quit_confirm): Use string_file.
10621 * tracepoint.c (collection_list::append_exp): Use string_file.
10622 * tui/tui-disasm.c (tui_disassemble): Use string_file.
10623 * tui/tui-file.c: Don't include "ui-file.h".
10624 (enum streamtype, struct tui_stream): Delete.
10625 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
10626 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
10627 (tui_file::tui_file): New method.
10628 (tui_file_fputs): Delete.
10629 (tui_file_get_strbuf): Delete.
10630 (tui_file::puts): New method.
10631 (tui_file_adjust_strbuf): Delete.
10632 (tui_file_flush): Delete.
10633 (tui_file::flush): New method.
10634 * tui/tui-file.h: Tweak intro comment.
10635 Include ui-file.h.
10636 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
10637 (tui_file_adjust_strbuf): Delete declarations.
10638 (class tui_file): New class.
10639 * tui/tui-io.c (tui_initialize_io): Use tui_file.
10640 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
10641 (tui_register_format): Use string_stream.
10642 * tui/tui-stack.c (tui_make_status_line): Use string_file.
10643 (tui_get_function_from_frame): Use string_file.
10644 * typeprint.c (type_to_string): Use string_file.
10645 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
10646 (null_stream): New global.
10647 (ui_file_delete): Delete.
10648 (ui_file::ui_file): New.
10649 (null_file_isatty): Delete.
10650 (ui_file::~ui_file): New.
10651 (null_file_rewind): Delete.
10652 (ui_file::printf): New.
10653 (null_file_put): Delete.
10654 (null_file_flush): Delete.
10655 (ui_file::putstr): New.
10656 (null_file_write): Delete.
10657 (ui_file::putstrn): New.
10658 (null_file_read): Delete.
10659 (ui_file::putc): New.
10660 (null_file_fputs): Delete.
10661 (null_file_write_async_safe): Delete.
10662 (ui_file::vprintf): New.
10663 (null_file_delete): Delete.
10664 (null_file::write): New.
10665 (null_file_fseek): Delete.
10666 (null_file::puts): New.
10667 (ui_file_data): Delete.
10668 (null_file::write_async_safe): New.
10669 (gdb_flush, ui_file_isatty): Adjust.
10670 (ui_file_put, ui_file_rewind): Delete.
10671 (ui_file_write): Adjust.
10672 (ui_file_write_for_put): Delete.
10673 (ui_file_write_async_safe, ui_file_read): Adjust.
10674 (ui_file_fseek): Delete.
10675 (fputs_unfiltered): Adjust.
10676 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
10677 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
10678 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
10679 (set_ui_file_data): Delete.
10680 (string_file::~string_file, string_file::write)
10681 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
10682 (do_ui_file_as_string, ui_file_as_string): Delete.
10683 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
10684 (struct mem_file): Delete.
10685 (mem_file_new): Delete.
10686 (stdio_file::stdio_file): New.
10687 (mem_file_delete): Delete.
10688 (stdio_file::stdio_file): New.
10689 (mem_fileopen): Delete.
10690 (stdio_file::~stdio_file): New.
10691 (mem_file_rewind): Delete.
10692 (stdio_file::set_stream): New.
10693 (mem_file_put): Delete.
10694 (stdio_file::open): New.
10695 (mem_file_write): Delete.
10696 (stdio_file_magic, struct stdio_file): Delete.
10697 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
10698 (stdio_file::flush): New.
10699 (stdio_file_read): Rename to ...
10700 (stdio_file::read): ... this. Adjust.
10701 (stdio_file_write): Rename to ...
10702 (stdio_file::write): ... this. Adjust.
10703 (stdio_file_write_async_safe): Rename to ...
10704 (stdio_file::write_async_safe) ... this. Adjust.
10705 (stdio_file_fputs): Rename to ...
10706 (stdio_file::puts) ... this. Adjust.
10707 (stdio_file_isatty): Delete.
10708 (stdio_file_fseek): Delete.
10709 (stdio_file::isatty): New.
10710 (stderr_file_write): Rename to ...
10711 (stderr_file::write) ... this. Adjust.
10712 (stderr_file_fputs): Rename to ...
10713 (stderr_file::puts) ... this. Adjust.
10714 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
10715 (stderr_file::stderr_file): New.
10716 (tee_file_magic): Delete.
10717 (struct tee_file): Delete.
10718 (tee_file::tee_file): New.
10719 (tee_file_new): Delete.
10720 (tee_file::~tee_file): New.
10721 (tee_file_delete): Delete.
10722 (tee_file_flush): Rename to ...
10723 (tee_file::flush): ... this. Adjust.
10724 (tee_file_write): Rename to ...
10725 (tee_file::write): ... this. Adjust.
10726 (tee_file::write_async_safe): New.
10727 (tee_file_fputs): Rename to ...
10728 (tee_file::puts): ... this. Adjust.
10729 (tee_file_isatty): Rename to ...
10730 (tee_file::isatty): ... this. Adjust.
10731 * ui-file.h (struct obstack, struct ui_file): Don't
10732 forward-declare.
10733 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
10734 (ui_file_write_ftype)
10735 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
10736 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
10737 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
10738 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
10739 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
10740 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
10741 (set_ui_file_fseek): Delete.
10742 (ui_file_data, ui_file_delete, ui_file_rewind)
10743 (struct ui_file): New.
10744 (ui_file_up): New.
10745 (class null_file): New.
10746 (null_stream): Declare.
10747 (ui_file_write_for_put, ui_file_put): Delete.
10748 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
10749 Delete.
10750 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
10751 (gdb_fopen, tee_file_new): Delete.
10752 (struct string_file): New.
10753 (struct stdio_file): New.
10754 (stdio_file_up): New.
10755 (struct stderr_file): New.
10756 (class tee_file): New.
10757 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
10758 of a 'ui_file *'. Adjust.
10759 * ui-out.h (class ui_out) <field_stream>: Likewise.
10760 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
10761 (null_stream): Delete.
10762 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
10763 Adjust.
10764 * utils.h (struct ui_file): Delete forward declaration..
10765 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
10766 (error_stream): Take a 'string_file &' instead of a
10767 'ui_file *'.
10768 * varobj.c (varobj_value_get_print_value): Use string_file.
10769 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
10770 * gdbarch.c: Regenerate.
10771
10772 2017-02-02 Pedro Alves <palves@redhat.com>
10773
10774 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
10775 (gdb_pretty_print_insn): ... this. Now a free function. Add back
10776 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
10777 Adjust to call gdb_print_insn instead of
10778 gdb_disassembler::print_insn.
10779 (dump_insns, do_mixed_source_and_assembly_deprecated)
10780 (do_mixed_source_and_assembly, do_assembly_only): Add back a
10781 'gdbarch' parameter. Remove gdb_disassembler parameter.
10782 (gdb_disassembly): Don't allocate a gdb_disassembler here.
10783 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
10784 declaration.
10785 (gdb_pretty_print_insn): Re-add declaration.
10786 * record-btrace.c (btrace_insn_history): Don't allocate a
10787 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
10788
10789 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
10790
10791 * disasm.h (gdb_disassembly): Remove file_string parameter.
10792 * disasm.c (gdb_disassembly): Likewise.
10793 * cli/cli-cmds.c (print_disassembly): Adapt.
10794 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
10795 * stack.c (do_gdb_disassembly): Likewise.
10796
10797 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
10798
10799 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
10800 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
10801 targets. And if the implicit value is longer than needed, extract
10802 the first bytes instead of the "least significant" ones.
10803
10804 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
10805
10806 * btrace.c (btrace_enable): Do not call btrace_add_pc for
10807 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
10808 (btrace_fetch): Assert can_access_registers_ptid.
10809 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
10810 validate_registers_access.
10811
10812 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
10813
10814 * gdbthread.h (can_access_registers_ptid): New.
10815 * thread.c (can_access_registers_ptid): New.
10816
10817 2017-02-01 Pedro Alves <palves@redhat.com>
10818
10819 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
10820
10821 2017-01-31 Pedro Alves <palves@redhat.com>
10822
10823 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
10824 Fix typos.
10825
10826 2017-01-31 Pedro Alves <palves@redhat.com>
10827
10828 * stack.c (print_frame_args): Remove local mem_fileopen stream,
10829 not used.
10830
10831 2017-01-31 Pedro Alves <palves@redhat.com>
10832
10833 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
10834
10835 2017-01-31 Pedro Alves <palves@redhat.com>
10836
10837 * common/scoped_restore.h
10838 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
10839 change the value's parameter type to T2.
10840 (make_scoped_restore): Likewise.
10841
10842 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10843 Richard Henderson <rth@redhat.com>
10844
10845 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
10846 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
10847 GS_BASE for older kernels.
10848 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
10849 GS_BASE for older kernels.
10850 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
10851 and GS_BASE to the offset table.
10852 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
10853 system register group.
10854 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
10855 for older kernels.
10856 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
10857 amd64 ABI.
10858 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
10859 AMD64_GSBASE_REGNUM.
10860 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
10861 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
10862 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
10863 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
10864 i386/64bit-segments.xml in those rules.
10865 * features/i386/64bit-segments.xml: New file.
10866 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
10867 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
10868 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
10869 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
10870 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
10871 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
10872 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
10873 * features/i386/amd64-avx-linux.c: Regenerated.
10874 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
10875 * features/i386/amd64-avx-mpx.c: Regenerated.
10876 * features/i386/amd64-avx512-linux.c: Regenerated.
10877 * features/i386/amd64-linux.c: Regenerated.
10878 * features/i386/amd64-mpx-linux.c: Regenerated.
10879 * features/i386/i386-avx-mpx-linux.c: Regenerated.
10880 * features/i386/i386-avx-mpx.c: Regenerated.
10881 * features/i386/x32-avx-linux.c: Regenerated.
10882 * features/i386/x32-avx512-linux.c: Regenerated.
10883 * regformats/i386/amd64-avx-linux.dat: Regenerated.
10884 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
10885 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
10886 * regformats/i386/amd64-linux.dat: Regenerated.
10887 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
10888 * regformats/i386/x32-avx-linux.dat: Regenerated.
10889 * regformats/i386/x32-avx512-linux.dat: Regenerated.
10890 * regformats/i386/x32-linux.dat: Regenerated.
10891
10892 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10893
10894 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
10895 Set to AMD64_NUM_REGS.
10896
10897 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
10898
10899 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
10900 that checks validity of a register number.
10901
10902 2017-01-27 Kees Cook <keescook@google.com>
10903
10904 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
10905 fetch_fpregs if target has fpa registers.
10906 (arm_linux_store_inferior_registers): Call store_fpregs if target
10907 has fpa registers.
10908
10909 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
10910
10911 * cris-tdep.c (cris_gdbarch_init): Remove check for
10912 info.byte_order and force it to BFD_ENDIAN_LITTLE.
10913
10914 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
10915
10916 * corelow.c (get_core_register_section): Check for regset
10917 existence before checking for REGSET_VARIABLE_SIZE.
10918
10919 2017-01-26 Yao Qi <yao.qi@linaro.org>
10920 Pedro Alves <palves@redhat.com>
10921
10922 PR gdb/20939
10923 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
10924 call memory_error, save memaddr instead.
10925 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
10926 negative, cal memory_error.
10927 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
10928
10929 2017-01-26 Yao Qi <yao.qi@linaro.org>
10930
10931 * disasm-selftests.c (memory_error_test): New function.
10932 (_initialize_disasm_selftests): Register memory_error_test.
10933
10934 2017-01-26 Yao Qi <yao.qi@linaro.org>
10935
10936 * Makefile.in (SFILES): Add disasm-selftests.c and
10937 selftest-arch.c.
10938 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
10939 * disasm-selftests.c: New file.
10940 * selftest-arch.c: New file.
10941 * selftest-arch.h: New file.
10942
10943 2017-01-26 Yao Qi <yao.qi@linaro.org>
10944
10945 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
10946 to bfd_arch_mep. Don't return 0 if section is not
10947 found. Call print_insn_mep.
10948
10949 2017-01-26 Pedro Alves <palves@redhat.com>
10950 Yao Qi <yao.qi@linaro.org>
10951
10952 * arm-tdep.c: Include "disasm.h".
10953 (gdb_print_insn_arm): Update code to get gdbarch.
10954 * disasm.c (dis_asm_read_memory): Change it to
10955 gdb_disassembler::dis_asm_read_memory.
10956 (dis_asm_memory_error): Likewise.
10957 (dis_asm_print_address): Likewise.
10958 (gdb_pretty_print_insn): Change it to
10959 gdb_disassembler::pretty_print_insn.
10960 (dump_insns): Add one argument gdb_disassemlber. All
10961 callers updated.
10962 (do_mixed_source_and_assembly_deprecated): Likewise.
10963 (do_mixed_source_and_assembly): Likewise.
10964 (do_assembly_only): Likewise.
10965 (gdb_disassembler::gdb_disassembler): New.
10966 (gdb_disassembler::print_insn): New.
10967 * disasm.h (class gdb_disassembler): New.
10968 (gdb_pretty_print_insn): Remove declaration.
10969 (gdb_disassemble_info): Likewise.
10970 * guile/scm-disasm.c (class gdbscm_disassembler): New.
10971 (gdbscm_disasm_read_memory_worker): Update.
10972 (gdbscm_disasm_read_memory): Update.
10973 (gdbscm_disasm_memory_error): Remove.
10974 (gdbscm_disasm_print_address): Remove.
10975 (gdbscm_disassembler::gdbscm_disassembler): New.
10976 (gdbscm_print_insn_from_port): Update.
10977 * mips-tdep.c: Include disasm.h.
10978 (gdb_print_insn_mips): Update code to get gdbarch.
10979 * record-btrace.c (btrace_insn_history): Update.
10980 * spu-tdep.c: Include disasm.h.
10981 (struct spu_dis_asm_data): Remove.
10982 (struct spu_dis_asm_info): New.
10983 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
10984 SPU id.
10985 (gdb_print_insn_spu): Cast disassemble_info to
10986 spu_dis_asm_info.
10987
10988 2017-01-26 Yao Qi <yao.qi@linaro.org>
10989
10990 * disasm.c (do_ui_file_delete): Delete.
10991 (gdb_insn_length): Move code creating stream to ...
10992 * utils.c (null_stream): ... here. New function.
10993 * utils.h (null_stream): Declare.
10994
10995 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10996
10997 * python/py-inferior.c (find_thread_object): Return directly
10998 from the loop. Remove "found" variable.
10999
11000 2017-01-21 Joel Brobecker <brobecker@adacore.com>
11001
11002 GDB 7.12.1 released.
11003
11004 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
11005
11006 * python/py-function.c (fnpy_call): Reorder declarations to have
11007 the gdbpy_enter object declared first.
11008 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
11009
11010 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
11011
11012 PR python/21068
11013 * python/python-internal.h (PyMem_RawMalloc): Define for
11014 Python < 3.4.
11015 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
11016 PyMem_RawMalloc instead of PyMem_Malloc.
11017
11018 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
11019 Luis Machado <lgustavo@codesourcery.com>
11020
11021 * NEWS (New commands): Mention flash-erase.
11022 (New MI commands): Mention target-flash-erase.
11023 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
11024 command.
11025 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
11026 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
11027 * target.c (flash_erase_command): New function.
11028 (initialize_targets): Add new flash-erase command.
11029 * target.h (flash_erase_command): New declaration.
11030
11031 2017-01-20 Joel Brobecker <brobecker@adacore.com>
11032
11033 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
11034 HAVE_SYS_PROCFS_H is defined.
11035
11036 2017-01-18 Alan Hayward <alan.hayward@arm.com>
11037
11038 * remote.c (struct cached_reg): Change data into a pointer.
11039 * (stop_reply_dtr): Free data pointers before deleting vector.
11040 (process_stop_reply): Likewise.
11041 (remote_parse_stop_reply): Allocate space for data
11042
11043 2017-01-18 Alan Hayward <alan.hayward@arm.com>
11044
11045 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
11046 MAX_REGISTER_SIZE.
11047 (amd64_pseudo_register_read_value): Likewise.
11048 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
11049 (store_register_using_P): Likewise.
11050 * regcache.c (regcache_xfer_part): Likewise.
11051
11052 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
11053
11054 Split real and pseudo registers.
11055 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
11056 (sparc32_pseudo_regnum): New enum.
11057 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
11058 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
11059 (SPARC32_CP0_REGISTERS): New macro.
11060 (sparc32_pseudo_register_name): New function.
11061 (sparc32_register_name): Use sparc32_pseudo_register_name.
11062 (sparc32_pseudo_register_type): New function.
11063 (sparc32_register_type): Use sparc32_pseudo_register_type.
11064 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
11065 pseudo register numbers.
11066 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
11067 (SPARC64_CP0_REGISTERS): New macro.
11068 (sparc64_pseudo_register_name): New function.
11069 (sparc64_register_name): Use sparc64_pseudo_register_name.
11070 (sparc64_pseudo_register_type): New function.
11071 (sparc64_register_type): Use sparc64_pseudo_register_type.
11072 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
11073 pseudo register numbers.
11074 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
11075 sparc64_store_arguments): Handle pseudo register numbers.
11076
11077 2017-01-13 Yao Qi <yao.qi@linaro.org>
11078
11079 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
11080 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
11081 output.
11082 (getpkt_or_notif_sane_1): Likewise.
11083
11084 2017-01-13 Yao Qi <yao.qi@linaro.org>
11085
11086 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
11087 of CC. Pass "-x c++-header" instead of "-x c".
11088
11089 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11090
11091 * remote.c (remote_can_async_p): Update comment.
11092
11093 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11094
11095 * linux-nat.c (linux_nat_can_async_p): Update comment.
11096
11097 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
11098
11099 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
11100
11101 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
11102
11103 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
11104
11105 2017-01-10 Tom Tromey <tom@tromey.com>
11106
11107 * python/py-type.c (typy_legacy_template_argument): Update.
11108 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
11109 ~demangle_parse_info): Declare new members.
11110 (cp_demangled_name_to_comp): Return unique_ptr.
11111 (cp_demangled_name_parse_free)
11112 (make_cleanup_cp_demangled_name_parse_free)
11113 (cp_new_demangle_parse_info): Remove.
11114 * cp-support.c (do_demangled_name_parse_free_cleanup)
11115 (make_cleanup_cp_demangled_name_parse_free): Remove.
11116 (inspect_type, cp_canonicalize_string_full)
11117 (cp_canonicalize_string): Update.
11118 (mangled_name_to_comp): Change return type.
11119 (cp_class_name_from_physname, method_name_from_physname)
11120 (cp_func_name, cp_remove_params): Update.
11121 * cp-name-parser.y (demangle_parse_info): New constructor, from
11122 cp_new_demangle_parse_info.
11123 (~demangle_parse_info): New destructor, from
11124 cp_demangled_name_parse_free.
11125 (cp_merge_demangle_parse_infos): Update.
11126 (cp_demangled_name_to_comp): Change return type.
11127
11128 2017-01-10 Tom Tromey <tom@tromey.com>
11129
11130 * top.c (prevent_dont_repeat): Change return type.
11131 * python/python.c (execute_gdb_command): Use std::string.
11132 Update.
11133 * guile/guile.c (gdbscm_execute_gdb_command): Update.
11134 * command.h (prevent_dont_repeat): Change return type.
11135 * breakpoint.c (bpstat_do_actions_1): Update.
11136
11137 2017-01-10 Tom Tromey <tom@tromey.com>
11138
11139 * value.h (scoped_value_mark::~scoped_value_mark): Call
11140 free_to_mark.
11141 (scoped_value_mark::free_to_mark): New method.
11142 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
11143 scoped_value_mark.
11144
11145 2017-01-10 Tom Tromey <tom@tromey.com>
11146
11147 * python/py-value.c (valpy_dereference, valpy_referenced_value)
11148 (valpy_reference_value, valpy_const_value, valpy_get_address)
11149 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11150 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
11151 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
11152 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
11153 scoped_value_mark.
11154 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
11155 * value.h (scoped_value_mark): New class.
11156
11157 2017-01-10 Tom Tromey <tom@tromey.com>
11158
11159 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
11160 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
11161 * psymtab.c (discard_psymtabs_upto): Remove.
11162 (make_cleanup_discard_psymtabs): Remove.
11163 (struct psymtab_state): Remove.
11164
11165 2017-01-10 Tom Tromey <tom@tromey.com>
11166
11167 * record-full.c (record_full_save_cleanups): Remove.
11168 (record_full_save): Use gdb::unlinker.
11169 * gcore.c (do_bfd_delete_cleanup): Remove.
11170 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
11171 cleanups.
11172 * dwarf2read.c (unlink_if_set): Remove.
11173 (write_psymtabs_to_index): Use gdb::unlinker.
11174 * common/gdb_unlinker.h: New file.
11175
11176 2017-01-10 Tom Tromey <tom@tromey.com>
11177
11178 * windows-tdep.c (windows_xfer_shared_library): Update.
11179 * windows-nat.c (windows_make_so): Update.
11180 * utils.h (make_cleanup_bfd_unref): Remove.
11181 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
11182 * symfile.h (symfile_bfd_open)
11183 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
11184 * symfile.c (read_symbols, symbol_file_add)
11185 (separate_debug_file_exists): Update.
11186 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
11187 (generic_load, reread_symbols): Update.
11188 * symfile-mem.c (symbol_file_add_from_memory): Update.
11189 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
11190 (spu_symbol_file_add_from_memory): Update.
11191 * solist.h (struct target_so_ops) <bfd_open>: Return
11192 gdb_bfd_ref_ptr.
11193 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
11194 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
11195 gdb_bfd_ref_ptr.
11196 (solib_map_sections, reload_shared_libraries_1): Update.
11197 * solib-svr4.c (enable_break): Update.
11198 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
11199 * solib-frv.c (enable_break2): Update.
11200 * solib-dsbt.c (enable_break): Update.
11201 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
11202 gdb_bfd_ref_ptr.
11203 (darwin_solib_get_all_image_info_addr_at_init): Update.
11204 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
11205 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
11206 * record-full.c (record_full_save): Update.
11207 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
11208 * procfs.c (insert_dbx_link_bpt_in_file): Update.
11209 * minidebug.c (find_separate_debug_file_in_section): Return
11210 gdb_bfd_ref_ptr.
11211 * machoread.c (macho_add_oso_symfile): Change abfd to
11212 gdb_bfd_ref_ptr.
11213 (macho_symfile_read_all_oso): Update.
11214 (macho_check_dsym): Return gdb_bfd_ref_ptr.
11215 (macho_symfile_read): Update.
11216 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
11217 (jit_bfd_try_read_symtab): Update.
11218 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11219 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11220 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11221 gdb_bfd_ref_ptr.
11222 (gdb_bfd_ref_policy): New struct.
11223 (gdb_bfd_ref_ptr): New typedef.
11224 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
11225 (gdb_bfd_openw, gdb_bfd_openr_iovec)
11226 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
11227 gdb_bfd_ref_ptr.
11228 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11229 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
11230 (gcore_command): Update.
11231 * exec.c (exec_file_attach): Update.
11232 * elfread.c (elf_symfile_read): Update.
11233 * dwarf2read.c (dwarf2_get_dwz_file): Update.
11234 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
11235 (open_and_init_dwo_file): Update.
11236 (open_dwp_file): Return gdb_bfd_ref_ptr.
11237 (open_and_init_dwp_file): Update.
11238 * corelow.c (core_open): Update.
11239 * compile/compile-object-load.c (compile_object_load): Update.
11240 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
11241 * coffread.c (coff_symfile_read): Update.
11242 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
11243 gdb_bfd_ref_ptr. Rename.
11244 (dump_bfd_file, restore_command): Update.
11245 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
11246 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
11247 (find_separate_debug_file_by_buildid): Update.
11248
11249 2017-01-10 Tom Tromey <tom@tromey.com>
11250
11251 * common/gdb_ref_ptr.h: New file.
11252 * python/py-ref.h (struct gdbpy_ref_policy): New.
11253 (gdbpy_ref): Now a typedef.
11254
11255 2017-01-10 Tom Tromey <tom@tromey.com>
11256
11257 * utils.h (make_cleanup_htab_delete): Don't declare.
11258 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
11259 Remove.
11260 * linespec.c (decode_compound_collector): Add constructor,
11261 destructor.
11262 (lookup_prefix_sym): Remove cleanup.
11263 (symtab_collector): Add constructor, destructor.
11264 (collect_symtabs_from_filename): Remove cleanup.
11265 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
11266 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
11267 Use htab_up.
11268 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
11269 * dwarf2read.c (dw2_expand_symtabs_matching)
11270 (dw2_map_symbol_filenames, dwarf_decode_macros)
11271 (write_psymtabs_to_index): Use htab_up.
11272 * dwarf2loc.c (func_verify_no_selftailcall)
11273 (call_site_find_chain_1, func_verify_no_selftailcall)
11274 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
11275 std::vector, gdb::unique_xmalloc_ptr.
11276 (call_sitep): Remove typedef.
11277 (dwarf2_locexpr_baton_eval): Remove unused variable.
11278
11279 2017-01-10 Tom Tromey <tom@tromey.com>
11280
11281 * python/python-internal.h (make_cleanup_py_decref)
11282 (make_cleanup_py_xdecref): Don't declare.
11283 * python/py-utils.c (py_decref, make_cleanup_py_decref)
11284 (py_xdecref, make_cleanup_py_xdecref): Remove.
11285
11286 2017-01-10 Tom Tromey <tom@tromey.com>
11287
11288 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
11289 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
11290
11291 2017-01-10 Tom Tromey <tom@tromey.com>
11292
11293 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
11294
11295 2017-01-10 Tom Tromey <tom@tromey.com>
11296
11297 * python/py-utils.c (unicode_to_encoded_string)
11298 (python_string_to_target_string)
11299 (python_string_to_target_python_string)
11300 (python_string_to_host_string, gdbpy_obj_to_string)
11301 (get_addr_from_python): Use gdbpy_ref.
11302
11303 2017-01-10 Tom Tromey <tom@tromey.com>
11304
11305 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
11306 gdbpy_ref.
11307
11308 2017-01-10 Tom Tromey <tom@tromey.com>
11309
11310 * python/python.c (eval_python_command, gdbpy_decode_line)
11311 (gdbpy_run_events, gdbpy_start_type_printers)
11312 (gdbpy_apply_type_printers): Use gdbpy_ref.
11313
11314 2017-01-10 Tom Tromey <tom@tromey.com>
11315
11316 * python/py-param.c (get_doc_string, compute_enum_values): Use
11317 gdbpy_ref.
11318
11319 2017-01-10 Tom Tromey <tom@tromey.com>
11320
11321 * python/py-inferior.c (find_thread_object, build_inferior_list):
11322 Use gdbpy_ref.
11323
11324 2017-01-10 Tom Tromey <tom@tromey.com>
11325
11326 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
11327
11328 2017-01-10 Tom Tromey <tom@tromey.com>
11329
11330 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
11331 gdbpy_ref.
11332
11333 2017-01-10 Tom Tromey <tom@tromey.com>
11334
11335 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
11336 extra incref.
11337 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
11338 Use gdbpy_ref.
11339
11340 2017-01-10 Tom Tromey <tom@tromey.com>
11341
11342 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
11343 gdbpy_ref.
11344
11345 2017-01-10 Tom Tromey <tom@tromey.com>
11346
11347 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
11348 decref results of PyArg_ParseTupleAndKeywords.
11349
11350 2017-01-10 Tom Tromey <tom@tromey.com>
11351
11352 * python/python.c (python_run_simple_file): Use
11353 unique_xmalloc_ptr, gdbpy_ref.
11354
11355 2017-01-10 Tom Tromey <tom@tromey.com>
11356
11357 * python/py-prettyprint.c (print_stack_unless_memory_error)
11358 (print_string_repr, print_children): Use gdbpy_ref.
11359 (dummy_python_frame): New class.
11360 (dummy_python_frame::dummy_python_frame): Rename from
11361 push_dummy_python_frame.
11362 (py_restore_tstate): Remove.
11363
11364 2017-01-10 Tom Tromey <tom@tromey.com>
11365
11366 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
11367
11368 2017-01-10 Tom Tromey <tom@tromey.com>
11369
11370 * python/python.c (ensure_python_env, restore_python_env):
11371 Remove.
11372 * python/python-internal.h (ensure_python_env): Don't declare.
11373 * varobj.h (varobj_ensure_python_env): Don't declare.
11374 * varobj.c (varobj_ensure_python_env): Remove.
11375
11376 2017-01-10 Tom Tromey <tom@tromey.com>
11377
11378 * varobj.c (varobj_value_get_print_value): Use
11379 gdbpy_enter_varobj.
11380
11381 2017-01-10 Tom Tromey <tom@tromey.com>
11382
11383 * python/py-prettyprint.c (print_string_repr, print_children):
11384 Update.
11385 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
11386 of "encoding".
11387 * varobj.c (varobj_value_get_print_value): Update.
11388 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
11389
11390 2017-01-10 Tom Tromey <tom@tromey.com>
11391
11392 * varobj.c (varobj_get_display_hint)
11393 (dynamic_varobj_has_child_method, install_new_value_visualizer)
11394 (varobj_set_visualizer, free_variable): Use
11395 gdbpy_enter_varobj.
11396
11397 2017-01-10 Tom Tromey <tom@tromey.com>
11398
11399 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
11400 (do_finish_initialization): New function. Use gdbpy_ref.
11401 (gdbpy_finish_initialization): Use gdbpy_enter. Call
11402 do_finish_initialization.
11403
11404 2017-01-10 Tom Tromey <tom@tromey.com>
11405
11406 * python/py-param.c (get_set_value, get_show_value): Use
11407 gdbpy_enter, gdbpy_ref.
11408
11409 2017-01-10 Tom Tromey <tom@tromey.com>
11410
11411 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
11412
11413 2017-01-10 Tom Tromey <tom@tromey.com>
11414
11415 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
11416
11417 2017-01-10 Tom Tromey <tom@tromey.com>
11418
11419 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
11420 Use gdbpy_enter_varobj.
11421
11422 2017-01-10 Tom Tromey <tom@tromey.com>
11423
11424 * varobj.c (gdbpy_enter_varobj): New constructor.
11425 * python/python-internal.h (gdbpy_enter_varobj): New class.
11426 * python/py-varobj.c (py_varobj_get_iterator): Use
11427 gdbpy_enter_varobj.
11428
11429 2017-01-10 Tom Tromey <tom@tromey.com>
11430
11431 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
11432 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
11433 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
11434 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
11435 unique_xmalloc_ptr.
11436 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
11437
11438 2017-01-10 Tom Tromey <tom@tromey.com>
11439
11440 * python/py-xmethods.c (invoke_match_method): Use
11441 gdbpy_ref.
11442
11443 2017-01-10 Tom Tromey <tom@tromey.com>
11444
11445 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
11446 gdbpy_enter, gdbpy_ref.
11447
11448 2017-01-10 Tom Tromey <tom@tromey.com>
11449
11450 * python/python.c (python_interactive_command): Use gdbpy_enter.
11451
11452 2017-01-10 Tom Tromey <tom@tromey.com>
11453
11454 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
11455 gdbpy_ref.
11456
11457 2017-01-10 Tom Tromey <tom@tromey.com>
11458
11459 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
11460 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
11461
11462 2017-01-10 Tom Tromey <tom@tromey.com>
11463
11464 * utils.h (htab_deleter): New struct.
11465 (htab_up): New typedef.
11466 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
11467 gdbpy_enter, gdbpy_ref, htab_up.
11468
11469 2017-01-10 Tom Tromey <tom@tromey.com>
11470
11471 * python/py-unwind.c (pending_frame_invalidate): Remove.
11472 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
11473
11474 2017-01-10 Tom Tromey <tom@tromey.com>
11475
11476 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
11477 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
11478
11479 2017-01-10 Tom Tromey <tom@tromey.com>
11480
11481 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
11482
11483 2017-01-10 Tom Tromey <tom@tromey.com>
11484
11485 * python/python.c (gdbpy_eval_from_control_command)
11486 (gdbpy_source_script, gdbpy_run_events)
11487 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
11488 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
11489 gdbpy_enter.
11490
11491 2017-01-10 Tom Tromey <tom@tromey.com>
11492
11493 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
11494
11495 2017-01-10 Tom Tromey <tom@tromey.com>
11496
11497 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
11498
11499 2017-01-10 Tom Tromey <tom@tromey.com>
11500
11501 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
11502 (python_on_inferior_call_pre, python_on_inferior_call_post)
11503 (python_on_memory_change, python_on_register_change)
11504 (python_inferior_exit, python_new_objfile, add_thread_object)
11505 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
11506
11507 2017-01-10 Tom Tromey <tom@tromey.com>
11508
11509 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
11510 (bpfinishpy_handle_exit): Use gdbpy_enter.
11511
11512 2017-01-10 Tom Tromey <tom@tromey.com>
11513
11514 * python/py-cmd.c (cmdpy_destroyer)
11515 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
11516 gdbpy_enter.
11517
11518 2017-01-10 Tom Tromey <tom@tromey.com>
11519
11520 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
11521 gdbpy_enter.
11522 (gdbpy_breakpoint_has_cond): Likewise.
11523
11524 2017-01-10 Tom Tromey <tom@tromey.com>
11525
11526 * python/python.c (gdbpy_enter): New constructor.
11527 (~gdbpy_enter): New destructor.
11528 (restore_python_env, ensure_python_env): Rewrite.
11529 * python/python-internal.h (gdbpy_enter): New class.
11530
11531 2017-01-10 Tom Tromey <tom@tromey.com>
11532
11533 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
11534
11535 2017-01-10 Tom Tromey <tom@tromey.com>
11536
11537 * python/py-value.c (value_has_field, get_field_flag)
11538 (get_field_type, valpy_getitem, convert_value_from_python): Use
11539 gdbpy_ref.
11540
11541 2017-01-10 Tom Tromey <tom@tromey.com>
11542
11543 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
11544 gdbpy_ref.
11545
11546 2017-01-10 Tom Tromey <tom@tromey.com>
11547
11548 * python/py-prettyprint.c (search_pp_list)
11549 (find_pretty_printer_from_objfiles)
11550 (find_pretty_printer_from_progspace)
11551 (find_pretty_printer_from_gdb, find_pretty_printer)
11552 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
11553 gdbpy_ref.
11554
11555 2017-01-10 Tom Tromey <tom@tromey.com>
11556
11557 * python/py-param.c (call_doc_function): Use gdbpy_ref.
11558
11559 2017-01-10 Tom Tromey <tom@tromey.com>
11560
11561 * python/py-linetable.c (build_line_table_tuple_from_pcs)
11562 (ltpy_get_all_source_lines): Use gdbpy_ref.
11563
11564 2017-01-10 Tom Tromey <tom@tromey.com>
11565
11566 * python/py-framefilter.c (extract_sym, extract_value)
11567 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
11568 gdbpy_ref.
11569
11570 2017-01-10 Tom Tromey <tom@tromey.com>
11571
11572 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
11573
11574 2017-01-10 Tom Tromey <tom@tromey.com>
11575
11576 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
11577
11578 2017-01-10 Tom Tromey <tom@tromey.com>
11579
11580 * python/py-function.c (convert_values_to_python, fnpy_init): Use
11581 gdbpy_ref.
11582
11583 2017-01-10 Tom Tromey <tom@tromey.com>
11584
11585 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
11586
11587 2017-01-10 Tom Tromey <tom@tromey.com>
11588
11589 * python/py-type.c (convert_field, make_fielditem, typy_fields)
11590 (typy_range): Use gdbpy_ref.
11591
11592 2017-01-10 Tom Tromey <tom@tromey.com>
11593
11594 * python/py-threadevent.c (create_thread_event_object): Use
11595 gdbpy_ref.
11596 * python/py-stopevent.c (create_stop_event_object): Simplify.
11597 (emit_stop_event): Use gdbpy_ref.
11598 * python/py-signalevent.c (create_signal_event_object): Use
11599 gdbpy_ref.
11600 * python/py-newobjfileevent.c (create_new_objfile_event_object)
11601 (emit_new_objfile_event, create_clear_objfiles_event_object)
11602 (emit_clear_objfiles_event): Use gdbpy_ref.
11603 * python/py-infevents.c (create_inferior_call_event_object)
11604 (create_register_changed_event_object)
11605 (create_memory_changed_event_object, emit_inferior_call_event)
11606 (emit_memory_changed_event, emit_register_changed_event): Use
11607 gdbpy_ref.
11608 * python/py-exitedevent.c (create_exited_event_object)
11609 (emit_exited_event): Use gdbpy_ref.
11610 * python/py-event.h (evpy_emit_event): Remove
11611 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
11612 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
11613 * python/py-continueevent.c (emit_continue_event): Use
11614 gdbpy_ref.
11615 * python/py-breakpoint.c (gdbpy_breakpoint_created)
11616 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
11617 gdbpy_ref.
11618 * python/py-bpevent.c (create_breakpoint_event_object): Use
11619 gdbpy_ref.
11620
11621 2017-01-10 Tom Tromey <tom@tromey.com>
11622
11623 * python/py-ref.h: New file.
11624
11625 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
11626
11627 * cli-out.c (cli_ui_out::do_redirect): Change return type to
11628 void.
11629 * cli-out.h (cli_ui_out::do_redirect): Likewise.
11630 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
11631 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
11632 * ui-out.c (ui_out::redirect): Likewise.
11633 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
11634 * cli/cli-logging.c (set_logging_redirect): Update call site of
11635 ui_out::redirect.
11636 (handle_redirections): Likewise.
11637 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
11638 * top.c (execute_command_to_string): Likewise.
11639 * utils.c (do_ui_out_redirect_pop): Likewise.
11640
11641 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
11642
11643 * stack.c (_initialize_stack): Update "frame" command help message.
11644
11645 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
11646
11647 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
11648
11649 2017-01-06 Yao Qi <yao.qi@linaro.org>
11650
11651 * x86-linux-nat.h: Include gdb_proc_service.h.
11652
11653 2017-01-06 Yao Qi <yao.qi@linaro.org>
11654
11655 * ser-base.h: Include serial.h.
11656
11657 2017-01-06 Yao Qi <yao.qi@linaro.org>
11658
11659 * ppc-linux-tdep.h: Include ppc-tdep.h.
11660
11661 2017-01-06 Yao Qi <yao.qi@linaro.org>
11662
11663 * nat/amd64-linux-siginfo.h: Include signal.h.
11664
11665 2017-01-06 Yao Qi <yao.qi@linaro.org>
11666
11667 * nat/aarch64-linux-hw-point.h: Include break-common.h.
11668
11669 2017-01-06 Yao Qi <yao.qi@linaro.org>
11670
11671 * mi/mi-parse.h: Include mi-cmds.h.
11672
11673 2017-01-06 Yao Qi <yao.qi@linaro.org>
11674
11675 * inf-loop.c: Don't include "target.h".
11676 * inf-loop.h: Include it here.
11677
11678 2017-01-06 Yao Qi <yao.qi@linaro.org>
11679
11680 * dfp.h: Include "dboulest.h" and "expression.h".
11681
11682 2017-01-06 Yao Qi <yao.qi@linaro.org>
11683
11684 * ax-gdb.h: Include "ax.h".
11685
11686 2017-01-06 Yao Qi <yao.qi@linaro.org>
11687
11688 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
11689 with nat/gdb_ptrace.h.
11690
11691 2017-01-05 Yao Qi <yao.qi@linaro.org>
11692
11693 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
11694 new line.
11695 (mips64_fbsd_sigframe_init): Likewise.
11696
11697 2017-01-04 John Baldwin <jhb@FreeBSD.org>
11698
11699 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
11700 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
11701
11702 2017-01-04 John Baldwin <jhb@FreeBSD.org>
11703
11704 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
11705 * NEWS: Mention new FreeBSD/mips native configuration.
11706 * config/mips/fbsd.mh: New file.
11707 * configure.host: Add mips*-*-freebsd*.
11708 * mips-fbsd-nat.c: New file.
11709
11710 2017-01-04 John Baldwin <jhb@FreeBSD.org>
11711
11712 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
11713 (ALLDEPFILES): Add mips-fbsd-tdep.c.
11714 * NEWS: Mention new FreeBSD/mips target.
11715 * configure.tgt: Add mips*-*-freebsd*.
11716 * mips-fbsd-tdep.c: New file.
11717 * mips-fbsd-tdep.h: New file.
11718
11719 2017-01-04 Yao Qi <yao.qi@linaro.org>
11720
11721 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
11722 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
11723
11724 2017-01-01 Joel Brobecker <brobecker@adacore.com>
11725
11726 Update copyright year range in all GDB files.
11727
11728 2017-01-01 Joel Brobecker <brobecker@adacore.com>
11729
11730 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
11731
11732 For older changes see ChangeLog-2016.
11733 \f
11734 Local Variables:
11735 mode: change-log
11736 left-margin: 8
11737 fill-column: 74
11738 version-control: never
11739 coding: utf-8
11740 End:
This page took 0.26705 seconds and 5 git commands to generate.