Remove cleanup from ppc-linux-nat.c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2017-10-16 Tom Tromey <tom@tromey.com>
2
3 * ppc-linux-nat.c (hwdebug_insert_point): Use
4 gdb::unique_xmalloc_ptr, XDUP.
5
6 2017-10-16 Tom Tromey <tom@tromey.com>
7
8 * probe.c (parse_probes): Use std::string.
9 (info_probes_for_ops, enable_probes_command)
10 (disable_probes_command): Remove cleanups.
11
12 2017-10-16 Tom Tromey <tom@tromey.com>
13
14 * buildsym.c (block_compar): Remove.
15 (end_symtab_get_static_block): Use std::vector.
16
17 2017-10-16 Simon Marchi <simon.marchi@ericsson.com>
18
19 * memrange.h (struct mem_range): Define operator< and operator==.
20 (mem_range_s): Remove.
21 (DEF_VEC_O (mem_range_s)): Remove.
22 (normalize_mem_ranges): Change parameter type to std::vector.
23 * memrange.c (compare_mem_ranges): Remove.
24 (normalize_mem_ranges): Change parameter type to std::vector,
25 adjust to vector change.
26 * exec.c (section_table_available_memory): Return vector, remove
27 parameter.
28 (section_table_read_available_memory): Adjust to std::vector
29 change.
30 * remote.c (remote_read_bytes): Adjust to std::vector
31 change.
32 * tracepoint.h (traceframe_available_memory): Change parameter
33 type to std::vector.
34 * tracepoint.c (traceframe_available_memory): Change parameter
35 type to std::vector, adjust.
36 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
37 std::vector change.
38 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
39 unittests/memrange-selftests.c.
40 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
41 * gdb/unittests/memrange-selftests.c: New file.
42
43 2017-10-16 Pedro Alves <palves@redhat.com>
44
45 * elfread.c (probe_key_free): Rename range-for variable.
46 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
47 (find_probe_by_pc, collect_probes): Rename range-for variable.
48
49 2017-10-16 Yao Qi <yao.qi@linaro.org>
50
51 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
52 * features/tic6x-c62x.c: Remove.
53 * features/tic6x-c64x-linux.c: Remove.
54 * features/tic6x-c64x.c: Remove.
55 * features/tic6x-c64xp-linux.c: Remove.
56 * features/tic6x-c64xp.c: Remove.
57 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
58 initialize_tdesc_tic6x_*_linux functions.
59 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
60 initialize_tdesc_tic6x_* functions.
61
62 2017-10-16 Yao Qi <yao.qi@linaro.org>
63
64 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
65 tic6x-c62x.
66 * regformats/tic6x-c62x.dat: Remove.
67 * regformats/tic6x-c64x.dat: Remove.
68 * regformats/tic6x-c64xp.dat: Remove.
69
70 2017-10-15 Simon Marchi <simon.marchi@ericsson.com>
71
72 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
73 (the !HAVE_LIBEXPAT version).
74
75 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
76
77 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
78 const.
79
80 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
81
82 * target.h: Include tracepoint.h.
83 (enum trace_find_type): Move to tracepoint.h.
84 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
85 * tracepoint.h: Don't include target.h
86 (enum trace_find_type): Move from target.h.
87 (parse_traceframe_info): Return a unique ptr.
88 * tracepoint.c (current_traceframe_info): Change type to unique
89 ptr.
90 (free_traceframe_info): Remove.
91 (clear_traceframe_info): Don't manually free
92 current_traceframe_info.
93 (free_result): Remove.
94 (parse_traceframe_info): Return a unique ptr.
95 (get_traceframe_info): Adjust to unique ptr.
96 * ctf.c (ctf_traceframe_info): Return a unique ptr.
97 * remote.c (remote_traceframe_info): Return a unique ptr.
98 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
99 ptr.
100 * target-debug.h (target_debug_print_traceframe_info_up): New
101 macro.
102 * target-delegates.c: Regenerate.
103
104 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
105
106 * memrange.h (struct mem_range): Add constructors.
107 * tracepoint.h (struct traceframe_info) <memory>: Change type to
108 std::vector<mem_range>.
109 * tracepoint.c (free_traceframe_info): Don't manually free
110 vector.
111 (traceframe_info_start_memory): Adjust to vector change.
112 (traceframe_available_memory): Likewise.
113 * tracefile-tfile.c (build_traceframe_info): Likewise.
114 * ctf.c (ctf_traceframe_info): Likewise.
115
116 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
117
118 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
119 std::vector<int>.
120 * tracepoint.c (free_traceframe_info): Deallocate with delete.
121 (traceframe_info_start_tvar): Adjust to vector change.
122 (parse_traceframe_info): Allocate with new.
123 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
124 vector change.
125 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
126 change.
127 tfile_traceframe_info): Allocate with new.
128 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
129 change.
130
131 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
132
133 * tracepoint.c (traceframe_info): Rename to...
134 (current_traceframe_info): ...this.
135 (clear_traceframe_info): Adjust.
136 (get_traceframe_info): Adjust.
137
138 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
139
140 * nat/linux-osdata.c: Include algorithm.
141 (compare_processes): Remove.
142 (struct pid_pgid_entry): New struct.
143 (linux_xfer_osdata_processgroups): Use std::vector instead of
144 XNEWVEC.
145
146 2017-10-14 Simon Marchi <simon.marchi@ericsson.com>
147
148 * objfiles.h: Don't include symfile.h.
149 (struct partial_symbol): Remove forward-declaration.
150 (struct objfile) <global_psymbols, static_psymbols>: Change type
151 to std::vector<partial_symbol *>.
152 * objfiles.c (objfile::objfile): Don't memset those fields.
153 (objfile::~objfile): Don't free those fields.
154 * psympriv.h (struct psymbol_allocation_list): Remove
155 forward-declaration.
156 (add_psymbol_to_list): Change psymbol_allocation_list parameter
157 to std::vector.
158 (start_psymtab_common): Change parameters to std::vector.
159 * psymtab.c: Include algorithm.
160 (require_partial_symbols): Call shrink_to_fit.
161 (find_pc_sect_psymbol): Adjust to vector change.
162 (match_partial_symbol): Likewise.
163 (lookup_partial_symbol): Likewise.
164 (psym_relocate): Likewise.
165 (dump_psymtab): Likewise.
166 (recursively_search_psymtabs): Likewise.
167 (compare_psymbols): Remove.
168 (sort_pst_symbols): Adjust to vector change.
169 (start_psymtab_common): Likewise.
170 (end_psymtab_common): Likewise.
171 (psymbol_bcache_full): De-constify return value.
172 (add_psymbol_to_bcache): Likewise.
173 (extend_psymbol_list): Remove.
174 (append_psymbol_to_list): Adjust to vector change.
175 (add_psymbol_to_list): Likewise.
176 (init_psymbol_list): Likewise.
177 (maintenance_info_psymtabs): Likewise.
178 (maintenance_check_psymtabs): Likewise.
179 * symfile.h (struct psymbol_allocation_list): Remove.
180 * symfile.c (reread_symbols): Adjust to vector change.
181 * dbxread.c (start_psymtab): Change type of parameters.
182 (dbx_symfile_read): Adjust to vector change.
183 (read_dbx_symtab): Likewise.
184 (start_psymtab): Change type of parameters.
185 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
186 (create_partial_symtab): Likewise.
187 (add_partial_symbol): Likewise.
188 (write_one_signatured_type): Likewise.
189 (recursively_write_psymbols): Likewise.
190 * mdebugread.c (parse_partial_symbols): Likewise.
191 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
192 (scan_xcoff_symtab): Adjust to vector change.
193 (xcoff_initial_scan): Likewise.
194
195 2017-10-13 Simon Marchi <simon.marchi@ericsson.com>
196
197 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
198
199 2017-10-13 Yao Qi <yao.qi@linaro.org>
200
201 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
202 Remove s390x-*-expedite, add s390x-expedite.
203
204 2017-10-13 Yao Qi <yao.qi@linaro.org>
205
206 * features/s390-gs-linux64.c: Regenerated.
207 * features/s390x-gs-linux64.c: Regenerated.
208
209 2017-10-13 Tom Tromey <tom@tromey.com>
210
211 * compile/compile-object-run.c (do_module_cleanup): Use delete.
212 * solib.c (update_solib_list, reload_shared_libraries_1): Use
213 delete.
214 * symfile.c (symbol_file_add_with_addrs): Use new.
215 (symbol_file_add_separate): Update comment.
216 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
217 * jit.c (jit_object_close_impl): Use new.
218 (jit_unregister_code): Use delete.
219 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
220 (~objfile): Rename from free_objfile.
221 (free_objfile_separate_debug, do_free_objfile_cleanup)
222 (free_all_objfiles, objfile_purge_solibs): Use delete.
223 * objfiles.h (struct objfile): Add constructor and destructor.
224 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
225 (allocate_objfile, free_objfile): Don't declare.
226 (struct objstats): Add initializers.
227
228 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
229
230 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
231 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
232 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
233 * gdbarch.h: Regenerate.
234 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
235 Adjust comment.
236 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
237 (i386_displaced_step_fixup): Adjust comment.
238 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
239
240 2017-10-12 Tom Tromey <tom@tromey.com>
241
242 * prologue-value.h (pv_area::store_would_trash): Return bool.
243 (pv_area::find_reg): Likewise.
244 * prologue-value.c (pv_area::store_would_trash): Return bool.
245 (pv_area::find_reg): Likewise.
246
247 2017-10-12 Tom Tromey <tom@tromey.com>
248
249 * s390-linux-tdep.c (s390_store, s390_load)
250 (s390_check_for_saved, s390_analyze_prologue): Update.
251 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
252 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
253 * prologue-value.h (class pv_area): Move from prologue-value.c.
254 Change names of members. Add constructor, destructor, member
255 functions.
256 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
257 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
258 (pv_area_fetch, pv_area_scan): Don't declare.
259 * prologue-value.c (struct pv_area::area_entry): Now member of
260 pv_area.
261 (struct pv_area): Move to prologue-value.h.
262 (pv_area::pv_area): Rename from make_pv_area.
263 (pv_area::~pv_area): Rename from free_pv_area.
264 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
265 (clear_entries, find_entry, overlaps, store_would_trash, store)
266 (fetch, find_reg, scan): Now member of pv_area.
267 Remove "area" argument. Update.
268 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
269 Update.
270 * mn10300-tdep.c (push_reg, check_for_saved)
271 (mn10300_analyze_prologue): Update.
272 * mep-tdep.c (is_arg_spill, check_for_saved)
273 (mep_analyze_prologue): Update.
274 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
275 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
276 (m32c_is_struct_return, m32c_analyze_prologue): Update.
277 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
278 Update.
279 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
280 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
281
282 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
283
284 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
285 * linux-nat.c (linux_nat_delete_thread): New variable.
286 (lwp_free): Invoke linux_nat_delete_thread if set.
287 (linux_nat_set_delete_thread): New function.
288 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
289 thread delete callback.
290 * arm-linux-nat.c (arm_linux_delete_thread): New function.
291 (_initialize_arm_linux_nat): Assign thread delete callback.
292 * s390-linux-nat.c (s390_delete_thread): New function.
293 (_initialize_s390_nat): Assign thread delete callback.
294 * x86-linux-nat.c (x86_linux_add_target): Likewise.
295 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
296 function.
297 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
298 declaration.
299 * nat/x86-linux.c (x86_linux_delete_thread): New function.
300 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
301
302 2017-10-09 Tom Tromey <tom@tromey.com>
303
304 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
305 std::string.
306 * tui/tui-layout.c (enum tui_status): Use std::string.
307
308 2017-10-11 Tom Tromey <tom@tromey.com>
309
310 * gdbthread.h (thread_command): Constify.
311 * inferior.h (detach_command): Constify.
312 * top.h (set_history, show_history): Constify.
313 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
314 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
315 * bsd-kvm.c (bsd_kvm_cmd): Constify.
316 * printcmd.c (set_command): Constify.
317 (non_const_set_command): New function.
318 * dcache.c (set_dcache_command, show_dcache_command): Constify.
319 * breakpoint.c (enable_command, disable_command, delete_command)
320 (catch_command, tcatch_command, set_breakpoint_cmd)
321 (show_breakpoint_cmd): Constify.
322 * macrocmd.c (macro_command): Constify.
323 * infcmd.c (unset_command, kill_command, detach_command)
324 (info_proc_cmd): Constify.
325 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
326 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
327 (info_auto_load_cmd): Constify.
328 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
329 (unset_tdesc_cmd): Constify.
330 * ada-lang.c (set_ada_command, show_ada_command)
331 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
332 * guile/guile.c (set_guile_command, show_guile_command)
333 (info_guile_command): Constify.
334 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
335 Constify.
336 * skip.c (skip_command): Constify.
337 * compile/compile.c (_initialize_compile): Constify.
338 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
339 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
340 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
341 (maint_btrace_pt_show_cmd): Constify.
342 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
343 Constify.
344 * python/python.c (user_show_python, user_set_python): Constify.
345 * mips-tdep.c (set_mips_command, show_mips_command)
346 (set_mipsfpu_command): Constify.
347 * record-btrace.c (cmd_record_btrace_start)
348 (cmd_set_record_btrace, cmd_show_record_btrace)
349 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
350 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
351 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
352 Constify.
353 * symfile.c (overlay_command): Constify.
354 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
355 * cli/cli-logging.c (set_logging_command, show_logging_command):
356 Constify.
357 * cli/cli-dump.c (dump_command, append_command)
358 (srec_dump_command, ihex_dump_command, verilog_dump_command)
359 (tekhex_dump_command, binary_dump_command)
360 (binary_append_command): Constify.
361 * cli/cli-decode.c (struct cmd_list_element): Change type of
362 "fun".
363 * cli/cli-cmds.c (info_command, show_command, set_debug)
364 (show_debug): Constify.
365 (show_command): Add non-const overload.
366 * top.c (set_history, show_history): Constify.
367 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
368 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
369 * target.c (target_command): Constify.
370 * sparc64-tdep.c (info_adi_command): Constify.
371 * record-full.c (cmd_record_full_start): Constify.
372 (set_record_full_command): Constify. Fix typo.
373 (show_record_full_command): Constify.
374 * thread.c (thread_command, thread_apply_command): Constify.
375 * memattr.c (dummy_cmd): Constify.
376 * value.c (function_command): Constify.
377 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
378 * probe.c (info_probes_command): Constify.
379 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
380 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
381 (show_thread_cmd, set_thread_default_cmd)
382 (show_thread_default_cmd): Constify.
383 (check_empty): Constify.
384 * tracepoint.c (tfind_command): Constify.
385 * cp-support.c (maint_cplus_command): Constify.
386 * windows-tdep.c (info_w32_command): Constify.
387 * record.c (cmd_record_start, set_record_command)
388 (show_record_command, info_record_command, cmd_record_goto):
389 Constify.
390 * ravenscar-thread.c (set_ravenscar_command)
391 (show_ravenscar_command): Constify.
392 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
393 Constify.
394 (add_internal_problem_command): Remove casts.
395 * arc-tdep.c (maintenance_print_arc_command): Constify.
396 * valprint.c (set_print, show_print, set_print_raw)
397 (show_print_raw): Constify.
398 * maint.c (maintenance_command, maintenance_info_command)
399 (maintenance_print_command, maintenance_set_cmd)
400 (maintenance_show_cmd, set_per_command_cmd)
401 (show_per_command_cmd, maintenance_check_command): Constify.
402 * language.c (set_check, show_check): Constify.
403 * typeprint.c (show_print_type, set_print_type): Constify.
404 * go32-nat.c (go32_info_dos_command): Constify.
405
406 2017-10-11 Tom Tromey <tom@tromey.com>
407
408 * breakpoint.c (prepare_re_set_context): Remove.
409 (breakpoint_re_set_one): Update. Don't use cleanups.
410 (breakpoint_re_set): Use scoped_restore, std::string, and
411 scoped_restore_current_language.
412
413 2017-10-11 Tom Tromey <tom@tromey.com>
414
415 * breakpoint.c (commands_command_1): Use std::string.
416 (cleanup_executing_breakpoints): Remove.
417 (bpstat_do_actions_1): Use scoped_restore.
418 (bpstat_check_watchpoint): Use std::string.
419 (decode_static_tracepoint_spec): Likewise.
420 (break_range_command): Likewise.
421 (watch_command_1): Likewise.
422 (compare_breakpoints): Change argument types.
423 (clear_command): Use std::vector.
424 (cleanup_executing_breakpoints): Remove.
425 (update_global_location_list): Use unique_xmalloc_ptr.
426 (strace_command): Remove unused declaration.
427
428 2017-10-11 John Baldwin <jhb@FreeBSD.org>
429
430 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
431 * NEWS: Mention new FreeBSD/arm native configuration.
432 * configure.host: Add arm*-*-freebsd*.
433 * configure.nat: Likewise.
434 * arm-fbsd-nat.c: New file.
435
436 2017-10-11 John Baldwin <jhb@FreeBSD.org>
437
438 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
439 (ALLDEPFILES): Add arm-fbsd-tdep.c.
440 * NEWS: Mention new FreeBSD/arm target.
441 * configure.tgt: Add arm*-*-freebsd*.
442 * arm-fbsd-tdep.c: New file.
443 * arm-fbsd-tdep.h: New file.
444
445 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
446
447 * linux-tdep.c (linux_make_corefile_notes): Remove call to
448 `gdbarch_elfcore_write_linux_prpsinfo'.
449 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
450 method.
451 (elf_internal_linux_prpsinfo): Remove declaration.
452 * gdbarch.h: Regenerate.
453 * gdbarch.c: Regenerate.
454
455 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
456
457 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
458 `set_gdbarch_elfcore_write_linux_prpsinfo'.
459
460 2017-10-11 Pedro Alves <palves@redhat.com>
461
462 * breakpoint.c (reattach_breakpoints): Delete.
463 * breakpoint.h (reattach_breakpoints): Delete.
464
465 2017-10-11 Simon Marchi <simon.marchi@ericsson.com>
466
467 * symfile.c (registered_sym_fns): Make struct, not typedef.
468 (DEF_VEC_O (registered_sym_fns)): Remove.
469 (symtab_fns): Change type to std::vector.
470 (add_symtab_fns): Adjust.
471 (find_sym_fns): Adjust.
472
473 2017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
474
475 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
476 * arc-tdep.h (arc_arch_is_em): New function.
477 (arc_arch_is_hs): Likewise.
478
479 2017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
480
481 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
482 parentheses in the declaration.
483 (macro_lookup_inclusion): Likewise.
484 (macro_lookup_definition): Likewise.
485 * p-lang.h (pascal_builtin_types): Likewise.
486 * tui/tui-data.c (tui_win_list): Likewise.
487 * tui/tui-data.h (tui_win_list): Likewise.
488 * utils.h (make_cleanup_free_section_addr_info): Likewise.
489
490 2017-10-11 Mark Rages <markrages@gmail.com>
491
492 * target-memory.c (block_boundaries): Fix for block address not
493 aligned on block size.
494
495 2017-10-10 Pedro Alves <palves@redhat.com>
496 Tom Tromey <tom@tromey.com>
497
498 * breakpoint.c (struct captured_breakpoint_query_args)
499 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
500 (print_breakpoint): New.
501 * breakpoint.h (print_breakpoint): Declare.
502 * common/common-exceptions.h (enum return_reason): Remove
503 references to catch_exceptions.
504 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
505 Delete.
506 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
507 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
508 * gdb.h: Delete.
509 * gdbthread.h (thread_select): Declare.
510 * mi/mi-cmd-break.c: Don't include gdb.h.
511 (breakpoint_notify): Use print_breakpoint.
512 * mi/mi-cmd-catch.c: Don't include gdb.h.
513 * mi/mi-interp.c: Don't include gdb.h.
514 (mi_print_breakpoint_for_event): New.
515 (mi_breakpoint_created, mi_breakpoint_modified): Use
516 mi_print_breakpoint_for_event.
517 * mi/mi-main.c: Don't include gdb.h.
518 (mi_cmd_thread_select): Parse the global thread ID here. Use
519 thread_select instead of gdb_thread_select.
520 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
521 of using gdb_list_thread_ids.
522 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
523 FILEIO_ENOSYS here.
524 (remote_fileio_request): Use TRY/CATCH instead of
525 catch_exceptions.
526 * symfile-mem.c (struct symbol_file_add_from_memory_args)
527 (symbol_file_add_from_memory_wrapper): Delete.
528 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
529 * thread.c: Don't include gdb.h.
530 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
531 (thread_alive): Use thread_select.
532 (do_captured_thread_select): Delete, parts salvaged as ...
533 (thread_select): ... this new function.
534 (gdb_thread_select): Delete.
535
536 2017-10-10 Pedro Alves <palves@redhat.com>
537 Tom Tromey <tom@tromey.com>
538
539 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
540 and reverse logic.
541 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
542 No longer macros. Instead ...
543 (enum wp_check_result): They're now values of this new
544 enumeration.
545 (watchpoint_check): Change return type to wp_check_result and
546 parameter type to bpstat.
547 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
548 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
549 catch_errors. Reverse logic of watchpoint_check call.
550 (breakpoint_re_set_one): Now returns void and takes a breakpoint
551 pointer as parameter.
552 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
553 * common/common-exceptions.c (throw_exception_sjlj): Update
554 comments to avoid mentioning catch_errors.
555 * exceptions.c (catch_errors): Delete.
556 * exceptions.h: Update comments to avoid mentioning catch_errors.
557 (catch_errors_ftype, catch_errors): Delete.
558 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
559 (hook_stop_stub): Delete.
560 (restore_selected_frame): Change return type to void, and
561 parameter type to const frame_id &.
562 (restore_infcall_control_state): Use TRY/CATCH instead of
563 catch_errors.
564 * main.c (captured_command_loop): Return void and remove
565 parameter. Remove references to catch_errors.
566 (captured_main): Use TRY/CATCH instead of catch_errors.
567 * objc-lang.c (objc_submethod_helper_data)
568 (find_objc_msgcall_submethod_helper): Delete.
569 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
570 catch_errors.
571 * record-full.c (record_full_message): Return void.
572 (record_full_message_args, record_full_message_wrapper): Delete.
573 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
574 instead of catch_errors.
575 * solib-aix.c (solib_aix_open_symbol_file_object): Change
576 parameter type to int.
577 * solib-darwin.c (open_symbol_file_object): Ditto.
578 * solib-dsbt.c (open_symbol_file_object): Ditto.
579 * solib-frv.c (open_symbol_file_object): Ditto.
580 * solib-svr4.c (open_symbol_file_object): Ditto.
581 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
582 * solib.c (update_solib_list): Use TRY/CATCH instead of
583 catch_errors.
584 * solist.h (struct target_so_ops) <open_symbol_file_object>:
585 Change type.
586 * symmisc.c (struct print_symbol_args): Remove.
587 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
588 (print_symbol): Change type.
589 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
590 and remove parameters.
591 (catch_errors): New.
592 (get_windows_debug_event): Adjust.
593
594 2017-10-09 Tom Tromey <tom@tromey.com>
595
596 * mi/mi-main.c (free_splay_tree): Remove.
597 (list_available_thread_groups): Use splay_tree_up.
598 * common/gdb_splay_tree.h: New file.
599
600 2017-10-09 Tom Tromey <tom@tromey.com>
601
602 * mi/mi-main.c (do_nothing): Remove.
603 (list_available_thread_groups): Update.
604
605 2017-10-09 Pedro Alves <palves@redhat.com>
606
607 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
608 reading registers when switching context.
609
610 2017-10-09 John Baldwin <jhb@FreeBSD.org>
611
612 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
613 (fbsd_convert_siginfo): Likewise.
614 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
615
616 2017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
617
618 * configure.ac (try_guile_versions): Remove guile-2.2.
619 * configure: Regenerate.
620
621 2017-10-09 Tom Tromey <tom@tromey.com>
622
623 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
624 (COMPILE.pre): Use $(CXX).
625
626 2017-10-09 Pedro Alves <palves@redhat.com>
627
628 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
629 Use bool.
630 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
631 * cp-support.h (cp_remove_params): Now returns a
632 gdb::unique_xmalloc_ptr.
633 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
634 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
635 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
636 returning a gdb::unique_xmalloc_ptr.
637 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
638 * stack.c (find_frame_funname): Adjust to cp_remove_params
639 returning a gdb::unique_xmalloc_ptr.
640
641 2017-10-08 Tom Tromey <tom@tromey.com>
642
643 * dwarf2read.c (dwarf2_get_dwz_file): Use
644 gdb::unique_xmalloc_ptr.
645 (find_slot_in_mapped_hash): Likewise.
646 (dwarf2_physname): Likewise.
647 (create_dwo_unit_in_dwp_v1): Use std::string.
648 (create_dwo_unit_in_dwp_v2): Likewise.
649 (lookup_dwo_cutu): Likewise.
650 (inherit_abstract_dies): Use std::vector.
651 (read_array_type): Likewise.
652 (dwarf_decode_macros): Remove unused declaration.
653 (unsigned_int_compar): Remove.
654 (dwarf2_build_psymtabs_hard): Use scoped_restore.
655 (psymtabs_addrmap_cleanup): Remove.
656
657 2017-10-08 Tom Tromey <tom@tromey.com>
658
659 * frame-unwind.c (frame_unwind_try_unwinder): Update.
660 * frame.h (frame_cleanup_after_sniffer): Declare.
661 (frame_prepare_for_sniffer): Return void.
662 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
663 type of argument.
664 (frame_prepare_for_sniffer): Return void.
665
666 2017-10-08 Tom Tromey <tom@tromey.com>
667
668 * utils.h (make_cleanup_value_free): Remove.
669 * utils.c (do_value_free, struct cleanup): Remove.
670 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
671 Use gdb_value_up.
672 * value.h (struct value_deleter): New.
673 (gdb_value_up): New typedef.
674
675 2017-10-08 Tom Tromey <tom@tromey.com>
676
677 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
678 (make_cleanup_free_search_symbols): Remove.
679 (search_symbols): Return std::vector.
680 (symbol_search::compare_search_syms): Now member of
681 symbol_search. Change arguments.
682 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
683 (symtab_symbol_info, rbreak_command): Update.
684 * symtab.h (struct symbol_search) <next>: Remove.
685 Add constructors.
686 (symbol_search::operator<): New function.
687 (symbol_search::operator==): New function.
688 (search_symbols): Remove std::vector.
689 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
690 (symbol_search::compare_search_syms): Declare.
691
692 2017-10-06 Yao Qi <yao.qi@linaro.org>
693
694 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
695 arch/aarch64-insn.o.
696 Remove one rule.
697 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
698
699 2017-10-06 Yao Qi <yao.qi@linaro.org>
700
701 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
702 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
703 arch/arm-linux.o respectively.
704 * configure.tgt: Likewise.
705
706 2017-10-06 Yao Qi <yao.qi@linaro.org>
707
708 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
709 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
710
711 2017-10-06 Pedro Alves <palves@redhat.com>
712
713 * windows-nat.c: Include <algorithm>.
714
715 2017-10-06 Yao Qi <yao.qi@linaro.org>
716
717 * configure.tgt (i386_tobjs): New variable.
718 (amd64_tobjs): New variable.
719 Set $cpu_obs and $os_obs.
720
721 2017-10-06 Yao Qi <yao.qi@linaro.org>
722
723 * Makefile.in (CONFIG_SRC_SUBDIR): New.
724 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
725 (clean): Remove object files and dependency files.
726 (distclean): Remove the directory.
727 * configure.ac: Invoke AC_CONFIG_COMMANDS.
728 * configure: Re-generated.
729 * configure.tgt: Replace amd64.o with arch/amd64.o.
730
731 2017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
732
733 PR build/22188
734 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
735 and SETEND.
736
737 2017-10-05 Pedro Alves <palves@redhat.com>
738
739 * linux-nat.c (linux_child_follow_fork): When following the parent
740 and detaching the child, consult the parent thread's architecture
741 instead of the child's.
742
743 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
744
745 * ax.h: Do not include "doublest.h".
746 (union agent_val): Remove.
747
748 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
749
750 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
751 (decimal_to_string): Return std::string object.
752 (decimal_from_string): Accept std::string object. Return bool.
753 (decimal_from_integral, decimal_from_doublest): Remove.
754 (decimal_from_longest): Add prototype.
755 (decimal_from_ulongest): Likewise.
756 (decimal_to_longest): Likewise.
757 (decimal_from_doublest): Likewise.
758 * dfp.c: Do not include "gdbtypes.h" or "value.h".
759 (MAX_DECIMAL_STRING): Move here.
760 (decimal_to_string): Return std::string object.
761 (decimal_from_string): Accept std::string object. Return bool.
762 (decimal_from_integral): Remove, replace by ...
763 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
764 (decimal_to_longest): New function.
765 (decimal_from_floating): Remove, replace by ...
766 (decimal_from_doublest): ... this new function.
767 (decimal_to_doublest): Update to new decimal_to_string interface.
768
769 * value.c (unpack_long): Use decimal_to_longest.
770 * valops.c (value_cast): Use decimal_from_doublest instead of
771 decimal_from_floating. Use decimal_from_[u]longest isntead of
772 decimal_from_integral.
773 * valarith.c (value_args_as_decimal): Likewise.
774 * valprint.c (print_decimal_floating): Update to new
775 decimal_to_string interface.
776 * printcmd.c (printf_decfloat): Likewise.
777 * c-exp.y (parse_number): Update to new decimal_from_string interface.
778
779 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
780
781 * doublest.h: Do not include "floatformat.h". Remove stale comments.
782 * gdbtypes.c: Include "floatformat.h".
783 * value.c: Likewise.
784 * m68k-tdep.c: Likewise.
785
786 * findvar.c: Do not include "floatformat.h".
787 * amd64-darwin-tdep.c: Likewise.
788 * arm-linux-tdep.c: Likewise.
789 * i386-darwin-tdep.c: Likewise.
790 * i387-tdep.c: Likewise.
791 * m68k-linux-tdep.c: Likewise.
792 * mep-tdep.c: Likewise.
793 * mips-tdep.c: Likewise.
794 * nios2-tdep.c: Likewise.
795 * s390-linux-tdep.c: Likewise.
796 * sparc-obsd-tdep.c: Likewise.
797 * sparc-tdep.c: Likewise.
798 * sparc64-tdep.c: Likewise.
799 * spu-tdep.c: Likewise.
800 * tic6x-tdep.c: Likewise.
801 * tilegx-tdep.c: Likewise.
802 * vax-tdep.c: Likewise.
803 * xstormy16-tdep.c: Likewise.
804 * xtensa-tdep.c: Likewise.
805
806 * top.c: Do not include "doublest.h".
807 * aarch64-tdep.c: Likewise.
808 * alpha-tdep.c: Likewise.
809 * arm-linux-tdep.c: Likewise.
810 * m68k-linux-tdep.c: Likewise.
811 * tilegx-tdep.c: Likewise.
812 * xstormy16-tdep.c: Likewise.
813
814 2017-10-05 John Baldwin <jhb@FreeBSD.org>
815
816 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
817 (mipsn32_fbsd_sigframe): Define.
818 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
819 for FreeBSD/mipsn32.
820
821 2017-10-05 John Baldwin <jhb@FreeBSD.org>
822
823 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
824 AT_HWCAP.
825
826 2017-10-05 Tristan Gingold <tgingold@free.fr>
827
828 * MAINTAINERS (Misc): Update my email address.
829
830 2017-10-04 Pedro Alves <palves@redhat.com>
831
832 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
833 it instead of target_gdbarch.
834 (get_remote_state, get_remote_packet_size): Adjust
835 get_remote_arch_state calls, passing down target_gdbarch
836 explicitly.
837 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
838 'gdbarch' and use it instead of target_gdbarch.
839 (get_memory_packet_size): Adjust get_remote_arch_state calls,
840 passing down target_gdbarch explicitly.
841 (struct stop_reply) <arch>: New field.
842 (remote_parse_stop_reply): Use the stopped thread's architecture,
843 not the current inferior's. Save the architecture in the
844 stop_reply.
845 (process_stop_reply): Use the stop reply's architecture.
846 (process_g_packet, remote_fetch_registers)
847 (remote_prepare_to_store, store_registers_using_G)
848 (remote_store_registers): Adjust get_remote_arch_state calls,
849 using the regcache's architecture.
850 (remote_get_trace_status): Adjust get_remote_arch_state calls,
851 passing down target_gdbarch explicitly.
852 * spu-multiarch.c (spu_thread_architecture): Defer to the target
853 beneath instead of calling target_gdbarch.
854 * target.c (default_thread_architecture): Use the specified
855 inferior's architecture, instead of the current inferior's
856 architecture (via target_gdbarch).
857
858 2017-10-04 Pedro Alves <palves@redhat.com>
859
860 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
861 case.
862 (regcache_print): Handle !target_has_registers here instead.
863
864 2017-10-04 Pedro Alves <palves@redhat.com>
865
866 * frame.c (create_test_frame): Delete.
867 * frame.h (create_test_frame): Delete.
868 * gdbarch-selftests.c: Include gdbthread.h and target.h.
869 (class regcache_test): Delete.
870 (test_target_has_registers, test_target_has_stack)
871 (test_target_has_memory, test_target_prepare_to_store)
872 (test_target_store_registers): New functions.
873 (test_target_ops): New class.
874 (register_to_value_test): Error out if there's already a
875 process_stratum (or higher) target pushed. Create a fuller mock
876 environment, with mock target_ops, inferior, address space, thread
877 and inferior_ptid.
878 * progspace.c (struct address_space): Move to ...
879 * progspace.h (struct address_space): ... here.
880 * regcache.h (regcache::~regcache, regcache::raw_write)
881 [GDB_SELF_TEST]: No longer virtual.
882
883 2017-10-04 Simon Marchi <simon.marchi@ericsson.com>
884
885 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
886
887 2017-10-04 Pedro Alves <palves@redhat.com>
888
889 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
890 out of 'between TRY and CATCH'.
891
892 2017-10-04 Pedro Alves <palves@redhat.com>
893
894 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
895 * common/common-exceptions.h (TRY): Open an outermost scope.
896 Expand intro comment.
897 (CATCH): Reindent.
898 (END_CATCH): Close the outermost scope.
899 * completer.c (complete_line_internal): Add missing END_CATCH.
900
901 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
902
903 * NEWS (Changes since GDB 8.0): Add entry about new
904 'set-cwd-on-gdbserver' feature.
905 (New remote packets): Add entry for QSetWorkingDir.
906 * common/common-inferior.h (set_inferior_cwd): New prototype.
907 * infcmd.c (set_inferior_cwd): Remove "static".
908 (show_cwd_command): Expand text to include remote debugging.
909 * remote.c: Add PACKET_QSetWorkingDir.
910 (remote_protocol_features) <QSetWorkingDir>: New entry for
911 PACKET_QSetWorkingDir.
912 (extended_remote_set_inferior_cwd): New function.
913 (extended_remote_create_inferior): Call
914 "extended_remote_set_inferior_cwd".
915 (_initialize_remote): Call "add_packet_config_cmd" for
916 QSetWorkingDir.
917
918 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
919
920 * NEWS (New commands): Mention "set/show cwd".
921 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
922 "cd" command's help text.
923 * common/common-inferior.h (get_inferior_cwd): New prototype.
924 * infcmd.c (inferior_cwd_scratch): New global variable.
925 (set_inferior_cwd): New function.
926 (get_inferior_cwd): Likewise.
927 (set_cwd_command): Likewise.
928 (show_cwd_command): Likewise.
929 (_initialize_infcmd): Add "set/show cwd" commands.
930 * inferior.h (class inferior) <cwd>: New field.
931 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
932 (fork_inferior): Change inferior's cwd before its execution.
933 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
934 to CreateProcess.
935
936 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
937
938 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
939 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
940 (COMMON_OBS): Add gdb_tilde_expand.o.
941 * common/gdb_tilde_expand.c: New file.
942 * common/gdb_tilde_expand.h: Likewise.
943
944 2017-10-03 Maciej W. Rozycki <macro@imgtec.com>
945
946 * gdbarch.sh (objfile): Remove duplicate declaration.
947 * gdbarch.h: Regenerate.
948
949 2017-10-03 Tom Tromey <tom@tromey.com>
950
951 * utils.c (internal_vproblem): Use string_vprintf.
952
953 2017-10-03 Tom Tromey <tom@tromey.com>
954
955 * printcmd.c (info_symbol_command): Use std::string.
956
957 2017-10-03 Tom Tromey <tom@tromey.com>
958
959 * top.c (gdb_safe_append_history): Use std::string.
960
961 2017-10-03 Tom Tromey <tom@tromey.com>
962
963 * event-top.c (stdin_event_handler): Update.
964 * main.c (captured_main_1): Update.
965 * top.h (make_delete_ui_cleanup): Remove.
966 (struct ui): Add constructor and destructor.
967 (new_ui, delete_ui): Remove.
968 * top.c (make_delete_ui_cleanup): Remove.
969 (new_ui_command): Use std::unique_ptr.
970 (delete_ui_cleanup): Remove.
971 (ui::ui): Rename from new_ui. Update.
972 (free_ui): Remove.
973 (ui::~ui): Rename from delete_ui. Update.
974
975 2017-10-03 Tom Tromey <tom@tromey.com>
976
977 * symfile.c (load_progress): Use gdb::byte_vector.
978
979 2017-10-03 Tom Tromey <tom@tromey.com>
980
981 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
982 declaration.
983 * printcmd.c (x_command): Remove unused declaration.
984 * symfile.c (symbol_file_command): Remove unused declaration.
985
986 2017-10-03 Tom Tromey <tom@tromey.com>
987
988 * utils.c (internal_vproblem): Use std::string.
989 (defaulted_query): Likewise.
990
991 2017-10-03 Tom Tromey <tom@tromey.com>
992
993 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
994 * top.c (execute_command_to_string): Update.
995 * utils.c (make_cleanup_restore_page_info): Remove.
996 (do_restore_page_info_cleanup): Remove.
997 (set_batch_flag_and_restore_page_info):
998 New.
999 (make_cleanup_restore_page_info): Remove.
1000 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
1001 (~set_batch_flag_and_restore_page_info): New
1002 (make_cleanup_restore_uinteger): Remove.
1003 (make_cleanup_restore_integer): Remove.
1004 (struct restore_integer_closure): Remove.
1005 (restore_integer): Remove.
1006 * utils.h (struct set_batch_flag_and_restore_page_info): New
1007 class.
1008 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
1009 (make_cleanup_restore_page_info): Remove.
1010 (make_cleanup_restore_uinteger) Remove.
1011 (make_cleanup_restore_integer) Remove.
1012
1013 2017-10-03 Tom Tromey <tom@tromey.com>
1014
1015 * record-full.h (record_full_gdb_operation_disable_set): Return
1016 scoped_restore_tmpl<int>.
1017 * infrun.c (adjust_pc_after_break): Update.
1018 (handle_signal_stop): Update.
1019 * record-full.c (record_full_gdb_operation_disable_set): Return
1020 scoped_restore_tmpl<int>.
1021 (record_full_wait_1, record_full_insert_breakpoint)
1022 (record_full_remove_breakpoint, record_full_save)
1023 (record_full_goto_insn): Update.
1024
1025 2017-10-02 Tom Tromey <tom@tromey.com>
1026
1027 PR rust/22236:
1028 * rust-lang.c (rust_val_print_str): New function.
1029 (val_print_struct): Call it.
1030 (rust_subscript): Preserve name of slice type.
1031
1032 2017-10-02 Tom Tromey <tom@tromey.com>
1033
1034 * rust-lang.c (rust_subscript): Handle slices in
1035 EVAL_AVOID_SIDE_EFFECTS case.
1036
1037 2017-10-02 Tom Tromey <tom@tromey.com>
1038
1039 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
1040
1041 2017-10-02 Tom Tromey <tom@tromey.com>
1042
1043 * rust-lang.h (rust_slice_type): Add "extern".
1044
1045 2017-10-02 Tom Tromey <tom@tromey.com>
1046 Pedro Alves <palves@redhat.com>
1047
1048 * ada-lang.h (ada_exc_info::operator<): Make const.
1049 (ada_exc_info::operator==): Make const.
1050 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
1051 Make const.
1052
1053 2017-09-29 Tom Tromey <tom@tromey.com>
1054
1055 * target.c (read_whatever_is_readable): Change type of "result".
1056 Update.
1057 (free_memory_read_result_vector): Remove.
1058 (read_memory_robust): Change return type. Update.
1059 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
1060 bin2hex, std::string.
1061 * target.h (memory_read_result_s): Remove typedef.
1062 (free_memory_read_result_vector): Remove.
1063 (read_memory_robust): Return std::vector.
1064
1065 2017-09-29 Tom Tromey <tom@tromey.com>
1066
1067 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
1068
1069 2017-09-29 Tom Tromey <tom@tromey.com>
1070
1071 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
1072 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
1073 operator< and operator==.
1074 (ada_exceptions_list): Return a std::vector.
1075 * ada-lang.c (ada_exc_info::operator<): Rename from
1076 compare_ada_exception_info.
1077 (ada_exc_info::operator==): New.
1078 (sort_remove_dups_ada_exceptions_list): Change type of
1079 "exceptions".
1080 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
1081 (ada_add_global_exceptions): Likewise.
1082 (ada_exceptions_list_1): Return a std::vector.
1083 (ada_exceptions_list): Likewise.
1084
1085 2017-09-29 Tom Tromey <tom@tromey.com>
1086
1087 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
1088 'std::set *'.
1089 (print_one_inferior): Update.
1090 (free_vector_of_ints): Remove.
1091 (list_available_thread_groups): Change "ids" to std::set.
1092 (mi_cmd_list_thread_groups): Update.
1093 (struct collect_cores_data) <core>: Now a std::set.
1094 (collect_cores): Update.
1095 (unique): Remove.
1096 (print_one_inferior): Update.
1097
1098 2017-09-29 Tom Tromey <tom@tromey.com>
1099
1100 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
1101 (mi_execute_async_cli_command): Likewise.
1102 (mi_cmd_trace_frame_collected): Use field_fmt.
1103
1104 2017-09-29 Tom Tromey <tom@tromey.com>
1105
1106 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
1107 gdb::byte_vector.
1108
1109 2017-09-29 Tom Tromey <tom@tromey.com>
1110
1111 * mi/mi-parse.c (mi_parse): Remove unused declaration.
1112
1113 2017-09-29 Tom Tromey <tom@tromey.com>
1114
1115 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
1116
1117 2017-09-29 Tom Tromey <tom@tromey.com>
1118
1119 * varobj.h (varobj_gen_name): Return std::string.
1120 * varobj.c (varobj_gen_name): Return std::string.
1121 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
1122 (mi_cmd_var_delete): Don't copy "name".
1123
1124 2017-09-29 Tom Tromey <tom@tromey.com>
1125
1126 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
1127 (mi_cmd_break_insert_1): Update.
1128
1129 2017-09-29 Tom Tromey <tom@tromey.com>
1130
1131 * target.h (make_scoped_defer_target_commit_resume): Update.
1132 * target.c (make_scoped_defer_target_commit_resume): Rename from
1133 make_cleanup_defer_target_commit_resume. Return a
1134 scoped_restore.
1135 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
1136
1137 2017-09-29 Tom Tromey <tom@tromey.com>
1138
1139 * main.c (captured_main_1): Remove unused declaration.
1140 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
1141
1142 2017-09-29 Tom Tromey <tom@tromey.com>
1143
1144 * symtab.c (search_symbols): Remove unused outer cleanup.
1145 (make_source_files_completion_list): Remove unused declaration.
1146
1147 2017-09-29 Tom Tromey <tom@tromey.com>
1148
1149 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
1150
1151 2017-09-29 Tom Tromey <tom@tromey.com>
1152
1153 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
1154 gdb::byte_vector.
1155
1156 2017-09-29 Tom Tromey <tom@tromey.com>
1157
1158 * complaints.c (vcomplaint): Use std::string.
1159
1160 2017-09-29 Tom Tromey <tom@tromey.com>
1161
1162 * tracepoint.c (trace_variable_command): Use std::string.
1163 (encode_actions_1): Remove unused declarations.
1164 (create_tsv_from_upload): Use std::string.
1165
1166 2017-09-29 Tom Tromey <tom@tromey.com>
1167
1168 * cp-support.c (gdb_demangle): Use std::string.
1169
1170 2017-09-29 Tom Tromey <tom@tromey.com>
1171
1172 * stack.c (parse_frame_specification): Use std::string
1173 (info_frame_command): Use gdb::unique_xmalloc_ptr.
1174
1175 2017-09-29 Tom Tromey <tom@tromey.com>
1176
1177 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
1178
1179 2017-09-29 Tom Tromey <tom@tromey.com>
1180
1181 * utils.c (vfprintf_maybe_filtered): Use std::string.
1182 (vfprintf_unfiltered): Likewise.
1183
1184 2017-09-29 Tom Tromey <tom@tromey.com>
1185
1186 * event-top.c (top_level_prompt): Return std::string.
1187 (display_gdb_prompt): Update.
1188
1189 2017-09-29 Tom Tromey <tom@tromey.com>
1190
1191 * unittests/common-utils-selftests.c (format): New function.
1192 (string_vprintf_tests): New function.
1193 (_initialize_common_utils_selftests): Register new tests.
1194 * common/common-utils.c (string_vprintf): New function.
1195 * common/common-utils.h (string_vprintf): Declare.
1196
1197 2017-09-29 Pedro Alves <palves@redhat.com>
1198
1199 * common/rsp-low.c (unpack_varlen_hex): Constify.
1200 * common/rsp-low.h (unpack_varlen_hex): Constify.
1201 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
1202 Constify.
1203 * remote.c (remote_set_permissions, read_ptid)
1204 (remote_current_thread, remote_get_threads_with_qthreadinfo)
1205 (remote_static_tracepoint_marker_at)
1206 (remote_static_tracepoint_markers_by_strid)
1207 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
1208 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
1209 (parse_tracepoint_definition, parse_tsv_definition)
1210 (parse_static_tracepoint_marker_definition): Constify.
1211 * tracepoint.h (parse_static_tracepoint_marker_definition)
1212 (parse_trace_status, parse_tracepoint_status)
1213 (parse_tracepoint_definition, parse_tsv_definition): Constify.
1214
1215 2017-09-29 Pedro Alves <palves@redhat.com>
1216
1217 * remote.c (target_buf, target_buf_size): Delete.
1218 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
1219 Use the connection's packet buffer instead.
1220 All callers adjusted.
1221 (_initialize_remote): Remove references to target_buf and
1222 target_buf_size.
1223
1224 2017-09-28 Pedro Alves <palves@redhat.com>
1225
1226 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1227 unittests/common-utils-selftests.c.
1228 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
1229 (COMMON_OBS): Remove utils-selftests.o.
1230 * utils-selftests.c: Move to ...
1231 * unittests/common-utils-selftests.c: ... here and rename self
1232 test to "string_printf".
1233
1234 2017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
1235
1236 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
1237 having NULL cus or tus.
1238
1239 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
1240
1241 * arm-tdep.c: (convert_from_extended): Remove.
1242 (convert_to_extended): Likewise.
1243 (arm_extract_return_value): Use convert_typed_floating.
1244 (arm_store_return_value): Likewise.
1245
1246 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
1247 * sh-tdep.c: Do not include "floatformat.h".
1248 (sh_littlebyte_bigword_type): New function.
1249 (sh_register_convert_to_virtual): Use convert_typed_floating.
1250 (sh_register_convert_to_raw): Likewise.
1251 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
1252 (sh64_littlebyte_bigword_type): New function.
1253 (sh64_extract_return_value): Use convert_typed_floating.
1254 (sh64_register_convert_to_virtual): Likewise.
1255 (sh64_register_convert_to_raw): Likewise.
1256
1257 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
1258
1259 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
1260 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
1261
1262 * gdbtypes.h (union type_specific): Make field floatformat hold
1263 just a single struct floatformat, not an array.
1264 (floatformat_from_type): Move here.
1265 * gdbtypes.c (floatformat_from_type): Move here. Update to
1266 changed TYPE_FLOATFORMAT definition.
1267 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
1268 (recursive_dump_type): Likewise.
1269 (init_float_type): Install correct floatformat for byte order.
1270 (arch_float_type): Likewise.
1271
1272 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
1273
1274 * gdbtypes.c (init_type): Change incoming argument from
1275 length-in-bytes to length-in-bits. Assert length is a
1276 multiple of TARGET_CHAR_BITS.
1277 (arch_type, arch_flags_type): Likewise.
1278 (init_integer_type): Update call to init_type.
1279 (init_character_type): Likewise.
1280 (init_boolean_type): Likewise.
1281 (init_float_type): Likewise.
1282 (init_decfloat_type): Likewise.
1283 (init_complex_type): Likewise.
1284 (init_pointer_type): Likewise.
1285 (objfile_type): Likewise.
1286 (arch_integer_type): Update call to arch_type.
1287 (arch_character_type): Likewise.
1288 (arch_boolean_type): Likewise.
1289 (arch_float_type): Likewise.
1290 (arch_decfloat_type): Likewise.
1291 (arch_complex_type): Likewise.
1292 (arch_pointer_type): Likewise.
1293 (gdbtypes_post_init): Likewise.
1294
1295 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
1296 (read_base_type): Likewise.
1297 * mdebugread.c (basic_type): Likewise.
1298 * stabsread.c (dbx_init_float_type): Likewise.
1299 (rs6000_builtin_type): Likewise.
1300 (read_range_type): Likewise. Also, fix call to init_integer_type
1301 with erroneous length argument.
1302
1303 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
1304 * d-lang.c (build_d_types): Likewise.
1305 * f-lang.c (build_fortran_types): Likewise.
1306 * go-lang.c (build_go_types): Likewise.
1307 * opencl-lang.c (build_opencl_types): Likewise.
1308 * jit.c (finalize_symtab): Likewise.
1309 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
1310 (build_std_type_info_type): Likewise.
1311 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
1312 update call to arch_flags_type.
1313
1314 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
1315 arch_type.
1316 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
1317 * windows-tdep.c (windows_get_tlb_type): Likewise.
1318
1319 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
1320 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
1321 * m32c-tdep.c (make_types): Likewise.
1322 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
1323 (rl78_psw_type): Update call to arch_flags_type.
1324 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
1325 * rx-tdep.c (rx_psw_type): Likewise.
1326 (rx_fpsw_type): Likewise.
1327 * sparc-tdep.c (sparc_psr_type): Likewise.
1328 (sparc_fsr_type): Likewise.
1329 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
1330 (sparc64_ccr_type): Likewise.
1331 (sparc64_fsr_type): Likewise.
1332 (sparc64_fprs_type): Likewise.
1333
1334 2017-09-27 Tom Tromey <tom@tromey.com>
1335
1336 * findcmd.c (find_command): Constify.
1337
1338 2017-09-27 Tom Tromey <tom@tromey.com>
1339
1340 * ada-tasks.c (task_command_1, task_command): Constify.
1341
1342 2017-09-27 Tom Tromey <tom@tromey.com>
1343
1344 * symtab.c (maintenance_print_symbol_cache)
1345 (maintenance_flush_symbol_cache)
1346 (maintenance_print_symbol_cache_statistics): Constify.
1347
1348 2017-09-27 Tom Tromey <tom@tromey.com>
1349
1350 * inferior.c (detach_inferior_command, kill_inferior_command)
1351 (inferior_command): Constify.
1352
1353 2017-09-27 Tom Tromey <tom@tromey.com>
1354
1355 * regcache.c (regcache_print, maintenance_print_registers)
1356 (maintenance_print_raw_registers)
1357 (maintenance_print_cooked_registers)
1358 (maintenance_print_register_groups)
1359 (maintenance_print_remote_registers): Constify.
1360
1361 2017-09-27 Tom Tromey <tom@tromey.com>
1362
1363 * printcmd.c (map_display_numbers, undisplay_command)
1364 (enable_disable_display_command, enable_display_command)
1365 (disable_display_command): Constify.
1366
1367 2017-09-27 Tom Tromey <tom@tromey.com>
1368
1369 * breakpoint.h (delete_command): Don't declare.
1370 * breakpoint.c (delete_command, enable_once_command)
1371 (enable_count_command, enable_delete_command, breakpoint_1)
1372 (maintenance_info_breakpoints, stopin_command, stopat_command)
1373 (delete_command, delete_trace_command, save_breakpoints)
1374 (save_breakpoints_command, save_tracepoints_command): Constify.
1375
1376 2017-09-27 Tom Tromey <tom@tromey.com>
1377
1378 * macrocmd.c (macro_expand_command, macro_expand_once_command)
1379 (skip_ws, extract_identifier, macro_define_command)
1380 (macro_undef_command, macro_list_command): Constify.
1381
1382 2017-09-27 Tom Tromey <tom@tromey.com>
1383
1384 * infcmd.c (environment_info, set_environment_command)
1385 (unset_environment_command, path_info, info_proc_cmd_1)
1386 (info_proc_cmd_mappings, info_proc_cmd_stat)
1387 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
1388 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
1389
1390 2017-09-27 Tom Tromey <tom@tromey.com>
1391
1392 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
1393 Constify.
1394
1395 2017-09-27 Tom Tromey <tom@tromey.com>
1396
1397 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
1398
1399 2017-09-27 Tom Tromey <tom@tromey.com>
1400
1401 * demangle.c (demangle_command): Constify.
1402
1403 2017-09-27 Tom Tromey <tom@tromey.com>
1404
1405 * progspace.c (maintenance_info_program_spaces_command):
1406 Constify.
1407
1408 2017-09-27 Tom Tromey <tom@tromey.com>
1409
1410 * compile/compile.c (check_raw_argument, compile_file_command)
1411 (compile_code_command, compile_print_command): Constify.
1412
1413 2017-09-27 Tom Tromey <tom@tromey.com>
1414
1415 * reggroups.c (maintenance_print_reggroups): Constify.
1416
1417 2017-09-27 Tom Tromey <tom@tromey.com>
1418
1419 * dwarf2read.c (save_gdb_index_command): Constify.
1420
1421 2017-09-27 Tom Tromey <tom@tromey.com>
1422
1423 * stap-probe.c (info_probes_stap_command): Constify.
1424
1425 2017-09-27 Tom Tromey <tom@tromey.com>
1426
1427 * fork-child.c (unset_exec_wrapper_command): Constify.
1428
1429 2017-09-27 Tom Tromey <tom@tromey.com>
1430
1431 * btrace.c (get_uint, get_context_size, no_chunk)
1432 (maint_btrace_packet_history_cmd)
1433 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
1434 (maint_info_btrace_cmd): Constify.
1435
1436 2017-09-27 Tom Tromey <tom@tromey.com>
1437
1438 * reverse.c (delete_bookmark_command): Constify.
1439
1440 2017-09-27 Tom Tromey <tom@tromey.com>
1441
1442 * remote.c (set_memory_packet_size)
1443 (set_memory_write_packet_size, show_memory_write_packet_size)
1444 (set_memory_read_packet_size, show_memory_read_packet_size)
1445 (compare_sections_command, packet_command, remote_put_command)
1446 (remote_get_command, remote_delete_command): Constify.
1447
1448 2017-09-27 Tom Tromey <tom@tromey.com>
1449
1450 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
1451 (set_mipsfpu_double_command, set_mipsfpu_none_command)
1452 (set_mipsfpu_auto_command): Constify.
1453
1454 2017-09-27 Tom Tromey <tom@tromey.com>
1455
1456 * cli/cli-cmds.h (cd_command): Constify.
1457 * cli/cli-cmds.c (cd_command): Constify.
1458
1459 2017-09-27 Tom Tromey <tom@tromey.com>
1460
1461 * thread.c (thread_name_command, thread_find_command): Constify.
1462
1463 2017-09-27 Tom Tromey <tom@tromey.com>
1464
1465 * probe.c (enable_probes_command, disable_probes_command):
1466 Constify.
1467
1468 2017-09-27 Tom Tromey <tom@tromey.com>
1469
1470 * symfile.c (symbol_file_command): Constify.
1471 * gdbcore.h (deprecated_file_changed_hook): Constify.
1472 * exec.c (deprecated_file_changed_hook, exec_file_command)
1473 (file_command): Constify.
1474 * defs.h (symbol_file_command): Constify.
1475
1476 2017-09-27 Tom Tromey <tom@tromey.com>
1477
1478 * remote-fileio.c (set_system_call_allowed)
1479 (show_system_call_allowed): Constify.
1480
1481 2017-09-27 Tom Tromey <tom@tromey.com>
1482
1483 * tracepoint.c (delete_trace_variable_command)
1484 (tfind_end_command, tfind_start_command, tfind_pc_command)
1485 (tfind_tracepoint_command, tfind_line_command)
1486 (tfind_range_command, tfind_outside_command): Constify.
1487
1488 2017-09-27 Tom Tromey <tom@tromey.com>
1489
1490 * ax-gdb.c (maint_agent_printf_command, agent_command)
1491 (agent_eval_command): Constify.
1492
1493 2017-09-27 Tom Tromey <tom@tromey.com>
1494
1495 * tracepoint.c (info_scope_command): Constify.
1496 * python/python.c (gdbpy_decode_line): Constify.
1497 * python/py-breakpoint.c (bppy_init): Constify.
1498 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
1499 * location.h: (new_linespec_location)
1500 (string_to_event_location_basic, string_to_event_location):
1501 Constify.
1502 * location.c (new_linespec_location)
1503 (string_to_event_location_basic, string_to_event_location):
1504 Constify.
1505 * linespec.h (decode_line_with_current_source)
1506 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
1507 * linespec.c (linespec_lex_to_end)
1508 (decode_line_with_current_source)
1509 (decode_line_with_last_displayed): Constify.
1510 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
1511 Constify.
1512 * cli/cli-cmds.c (edit_command, list_command): Constify.
1513 * breakpoint.h (until_break_command, watch_command_wrapper)
1514 (awatch_command_wrapper, rwatch_command_wrapper)
1515 (init_ada_exception_breakpoint): Constify.
1516 * breakpoint.c (break_command_1, dprintf_command)
1517 (break_range_command, watch_command_wrapper)
1518 (rwatch_command_wrapper, awatch_command_wrapper)
1519 (until_break_command, init_ada_exception_breakpoint)
1520 (strace_marker_create_sals_from_location, trace_command)
1521 (ftrace_command, strace_command, struct tracepoint): Constify.
1522 * ax-gdb.c (agent_command_1): Constify.
1523 * ada-lang.c (ada_exception_sal): Constify.
1524
1525 2017-09-27 Tom Tromey <tom@tromey.com>
1526
1527 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
1528 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
1529 (get_context_size, no_chunk, get_insn_history_modifiers)
1530 (cmd_record_insn_history, get_call_history_modifiers)
1531 (cmd_record_call_history): Constify.
1532
1533 2017-09-27 Tom Tromey <tom@tromey.com>
1534
1535 * source.c (show_substitute_path_command)
1536 (unset_substitute_path_command, set_substitute_path_command):
1537 Constify.
1538
1539 2017-09-27 Tom Tromey <tom@tromey.com>
1540
1541 * typeprint.c (maintenance_print_type): Constify.
1542 * maint.c (maintenance_dump_me, maintenance_demangle)
1543 (maintenance_time_display, maintenance_info_sections)
1544 (maintenance_print_statistics, maintenance_deprecate)
1545 (maintenance_undeprecate): Constify.
1546 (maintenance_do_deprecate): Constify. Use std::string.
1547 (maintenance_selftest): Constify.
1548 * gdbtypes.h (maintenance_print_type): Constify.
1549
1550 2017-09-27 Tom Tromey <tom@tromey.com>
1551
1552 * hppa-tdep.c (unwind_command): Constify.
1553
1554 2017-09-27 Tom Tromey <tom@tromey.com>
1555
1556 * target-descriptions.c (unset_tdesc_filename_cmd)
1557 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
1558 Constify.
1559
1560 2017-09-27 Tom Tromey <tom@tromey.com>
1561
1562 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
1563
1564 2017-09-27 Tom Tromey <tom@tromey.com>
1565
1566 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
1567
1568 2017-09-27 Tom Tromey <tom@tromey.com>
1569
1570 * tui/tui-regs.c (tui_reg_command): Constify.
1571
1572 2017-09-27 Tom Tromey <tom@tromey.com>
1573
1574 * skip.c (skip_file_command, skip_function_command)
1575 (skip_enable_command, skip_disable_command, skip_delete_command):
1576 Constify.
1577
1578 2017-09-27 Tom Tromey <tom@tromey.com>
1579
1580 * record-btrace.c (cmd_record_btrace_bts_start)
1581 (cmd_record_btrace_pt_start): Constify.
1582
1583 2017-09-27 Tom Tromey <tom@tromey.com>
1584
1585 * symmisc.c (maintenance_print_symbols)
1586 (maintenance_print_msymbols, maintenance_print_objfiles)
1587 (maintenance_info_symtabs, maintenance_check_symtabs)
1588 (maintenance_expand_symtabs, maintenance_info_line_tables):
1589 Constify.
1590
1591 2017-09-27 Tom Tromey <tom@tromey.com>
1592
1593 * top.c (new_ui_command): Constify.
1594
1595 2017-09-27 Tom Tromey <tom@tromey.com>
1596
1597 * symfile.c (add_symbol_file_command)
1598 (remove_symbol_file_command, list_overlays_command)
1599 (map_overlay_command, unmap_overlay_command)
1600 (overlay_auto_command, overlay_manual_command)
1601 (overlay_off_command, overlay_load_command): Constify.
1602
1603 2017-09-27 Tom Tromey <tom@tromey.com>
1604
1605 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
1606 (info_spu_mailbox_command, info_spu_dma_command)
1607 (info_spu_proxydma_command): Constify.
1608
1609 2017-09-27 Tom Tromey <tom@tromey.com>
1610
1611 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
1612
1613 2017-09-27 Tom Tromey <tom@tromey.com>
1614
1615 * cli/cli-script.c (user_defined_command): Constify.
1616
1617 2017-09-27 Tom Tromey <tom@tromey.com>
1618
1619 * cli/cli-dump.c (dump_memory_command, dump_value_command)
1620 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
1621 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
1622 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
1623 (dump_binary_value, append_binary_memory, append_binary_value):
1624 Constify.
1625 (struct dump_context) <func>: Constify.
1626 (add_dump_command): Update.
1627
1628 2017-09-27 Tom Tromey <tom@tromey.com>
1629
1630 * cli/cli-cmds.c (show_version, show_configuration)
1631 (source_command, show_user): Constify.
1632
1633 2017-09-27 Tom Tromey <tom@tromey.com>
1634
1635 * target.c (maintenance_print_target_stack): Constify.
1636
1637 2017-09-27 Tom Tromey <tom@tromey.com>
1638
1639 * interps.c (interpreter_exec_cmd): Constify.
1640
1641 2017-09-27 Tom Tromey <tom@tromey.com>
1642
1643 * record-full.c (cmd_record_full_restore): Constify.
1644
1645 2017-09-27 Tom Tromey <tom@tromey.com>
1646
1647 * memattr.c (enable_mem_command, disable_mem_command)
1648 (delete_mem_command): Constify.
1649
1650 2017-09-27 Tom Tromey <tom@tromey.com>
1651
1652 * value.c (show_convenience): Constify.
1653
1654 2017-09-27 Tom Tromey <tom@tromey.com>
1655
1656 * gdbcore.h (core_file_command): Update.
1657 * corefile.c (core_file_command): Constify.
1658
1659 2017-09-27 Tom Tromey <tom@tromey.com>
1660
1661 * user-regs.c (maintenance_print_user_registers): Constify.
1662
1663 2017-09-27 Tom Tromey <tom@tromey.com>
1664
1665 * cp-namespace.c (maintenance_cplus_namespace): Constify.
1666
1667 2017-09-27 Tom Tromey <tom@tromey.com>
1668
1669 * cp-support.c (first_component_command): Constify.
1670
1671 2017-09-27 Tom Tromey <tom@tromey.com>
1672
1673 * psymtab.c (maintenance_print_psymbols)
1674 (maintenance_info_psymtabs, maintenance_check_psymtabs):
1675 Constify.
1676
1677 2017-09-27 Tom Tromey <tom@tromey.com>
1678
1679 * windows-tdep.c (display_tib): Constify.
1680
1681 2017-09-27 Tom Tromey <tom@tromey.com>
1682
1683 * linux-fork.c (delete_checkpoint_command)
1684 (detach_checkpoint_command): Constify.
1685
1686 2017-09-27 Tom Tromey <tom@tromey.com>
1687
1688 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
1689
1690 2017-09-27 Tom Tromey <tom@tromey.com>
1691
1692 * arc-tdep.c (dump_arc_instruction_command): Constify.
1693
1694 2017-09-27 Tom Tromey <tom@tromey.com>
1695
1696 * valprint.c (set_radix, show_radix): Constify.
1697
1698 2017-09-27 Tom Tromey <tom@tromey.com>
1699
1700 * dtrace-probe.c (info_probes_dtrace_command): Constify.
1701
1702 2017-09-27 Tom Tromey <tom@tromey.com>
1703
1704 * command.h (not_just_help_class_command): Update.
1705 * cli/cli-decode.h (not_just_help_class_command): Update.
1706 * cli/cli-decode.c (not_just_help_class_command): Constify.
1707
1708 2017-09-27 Tom Tromey <tom@tromey.com>
1709
1710 * gdb_bfd.c (maintenance_info_bfds): Constify.
1711
1712 2017-09-27 Tom Tromey <tom@tromey.com>
1713
1714 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
1715 overloads.
1716 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
1717 (do_const_cfunc): New function.
1718 (cmd_cfunc_eq): New overload.
1719 (cli_user_command_p): Check do_const_cfunc.
1720 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
1721 const_cfunc.
1722 * command.h (add_cmd): Add const overload and no-function
1723 overload.
1724 (set_cmd_cfunc): Add const overload.
1725 (cmd_const_cfunc_ftype): Declare.
1726 (cmd_cfunc_eq): Add const overload.
1727 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
1728 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
1729 overload.
1730
1731 2017-09-27 Tom Tromey <tom@tromey.com>
1732
1733 * macroexp.c (get_next_token_for_substitution): New function.
1734 (substitute_args): Call it. Check for __VA_OPT__.
1735
1736 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
1737 Pedro Alves <palves@redhat.com>
1738
1739 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
1740 producer_is_icc_lt_14.
1741 (producer_is_icc_lt_14): New function.
1742 (check_producer): Add code for checking version of ICC.
1743 (producer_is_icc): Move to producer.c.
1744 (read_structure_type): Restrict ICC workaround to ICC<14.
1745 * producer.c: Include selftest.h.
1746 (producer_is_icc, producer_parsing_tests, _initialize_producer):
1747 New functions.
1748 * producer.h (producer_is_icc): New declaration.
1749
1750 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
1751
1752 * Makefile.in (SFILES): Add producer.c.
1753 (COMMON_OBS): Add producer.o
1754 * amd64-tdep.c (producer.h): Add new include.
1755 * dwarf2read.c (producer.h): Add new include.
1756 * producer.c: New file.
1757 * producer.h: New file.
1758 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
1759 producer.c.
1760 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
1761 producer.h.
1762
1763 2017-09-26 Matthias Klose <doko@ubuntu.com>
1764
1765 * configure.ac: Search ncursesw before ncurses.
1766 Check ncursesw/ncurses.h before ncurses/ncurses.h.
1767 * gdb_curses.h: Include <ncursesw/ncurses.h>
1768 * config.in, configure: Regenerate.
1769
1770 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1771
1772 PR gdb/22185
1773 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
1774 obsolete.
1775 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
1776 Remove i386sol2 support.
1777 * configure.nat <i386sol2>: Remove.
1778 <sol2-64>: Fold into ...
1779 <sol2>: ... this.
1780 Move common settings to default section.
1781 Add sol-thread.o.
1782 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
1783 x86_64-*-solaris2.1[0-9]*>: Rename to ...
1784 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
1785 <i[34567]86-*-solaris*>: Remove.
1786 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
1787
1788 * configure.ac: Remove wctype in libw check.
1789 (_MSE_INT_H): Don't define on Solaris 7-9.
1790 <solaris*>: Remove libthread_db.so.1 check.
1791 * configure: Regenerate.
1792 * config.in: Regenerate.
1793
1794 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
1795 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
1796 (gdb_ps_size_t): Remove.
1797 Use base types in users.
1798 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
1799
1800 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
1801
1802 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1803
1804 PR build/22206
1805 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
1806 (adi_is_addr_mapped): Likewise.
1807 (PSR_ICC): Don't redefine.
1808 (PSR_IMPL): Likewise.
1809
1810 2017-09-25 Tom Tromey <tom@tromey.com>
1811
1812 * regcache.c (regcache::dump): Use string_printf.
1813
1814 2017-09-25 Tom Tromey <tom@tromey.com>
1815
1816 * regcache.c (class regcache_invalidator): New.
1817 (struct register_to_invalidate): Remove.
1818 (make_cleanup_regcache_invalidate): Remove.
1819 (regcache::raw_write): Use regcache_invalidator.
1820
1821 2017-09-25 Tom Tromey <tom@tromey.com>
1822
1823 * spu-tdep.c (spu2ppu_sniffer): Update.
1824 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
1825 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
1826 Remove.
1827 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
1828 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
1829 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
1830 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
1831 (frame_pop): Update.
1832
1833 2017-09-25 Tom Tromey <tom@tromey.com>
1834
1835 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
1836 * regcache.h (regcache_xfree): Don't declare.
1837 * regcache.c (regcache_xfree): Remove.
1838 (do_regcache_xfree): Use delete.
1839 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
1840 * linux-fork.c (free_fork): Use delete.
1841 (fork_save_infrun_state): Likewise.
1842 * jit.c (jit_dealloc_cache): Use delete.
1843 * infrun.c (discard_infcall_suspend_state): Use delete.
1844
1845 2017-09-25 Tom Tromey <tom@tromey.com>
1846
1847 * regcache.h (regcache_xmalloc): Don't declare.
1848 (regcache_raw_set_cached_value): Update comment.
1849 * regcache.c (regcache_xmalloc): Remove.
1850 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
1851 * jit.c (jit_frame_sniffer): Use new.
1852 * frame.c (frame_save_as_regcache): Use new.
1853
1854 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1855
1856 * NEWS: Advertise support for guarded-storage registers on IBM z.
1857
1858 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1859
1860 * s390-linux-nat.c (have_regset_gs): New static variable.
1861 (s390_linux_fetch_inferior_registers): Handle guarded-storage
1862 control block and guarded-storage broadcast control regsets.
1863 (s390_read_description): Detect whether the target has
1864 guarded-storage support, return appropriate tdesc.
1865 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
1866 (features/s390x-gs-linux64.c): Likewise.
1867 (struct gdbarch_tdep) <have_gs>: New field.
1868 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
1869 (s390_gsbc_regset): New variables.
1870 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
1871 and s390_gsbc_regset, if applicable.
1872 (s390_core_read_description): Check whether core file was from a
1873 target with guarded-storage support; include appropriate regsets.
1874 (s390_gdbarch_init): Add registers for guarded-storage support.
1875 (_initialize_s390_tdep): Initialize new target descriptions that
1876 include registers for guarded-storage support.
1877 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
1878 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
1879 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
1880 (S390_NUM_REGS): Adjust macro definition.
1881 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
1882 (tdesc_s390x_gs_linux64): New declarations.
1883
1884 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1885
1886 * features/s390-gs-linux64.xml: New file.
1887 * features/s390-gs.xml: New file.
1888 * features/s390-gsbc.xml: New file.
1889 * features/s390x-gs-linux64.xml: New file.
1890 * features/Makefile (WHICH): Add s390-gs-linux64 and
1891 s390x-gs-linux64.
1892 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
1893 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
1894 * features/s390-gs-linux64.c: New generated file.
1895 * features/s390x-gs-linux64.c: New file.
1896 * regformats/s390-gs-linux64.dat: New file.
1897 * regformats/s390x-gs-linux64.dat: New file.
1898
1899 2017-09-23 Tom Tromey <tom@tromey.com>
1900
1901 * defs.h (make_cleanup_override_quit_handler): Don't declare.
1902
1903 2017-09-22 Tom Tromey <tom@tromey.com>
1904
1905 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
1906 type to scoped_restore_tmpl.
1907 <scoped_input_handler>: Initialize m_quit_handler directly.
1908
1909 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
1910
1911 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
1912 (cd_command): Likewise. Free "current_directory" before
1913 assigning to it.
1914 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
1915 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
1916 * top.c (gdb_dirbuf): Remove global declaration.
1917 * top.h (gdb_dirbuf): Likewise.
1918
1919 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
1920
1921 * gnulib/aclocal.m4: Regenerate.
1922 * gnulib/config.in: Regenerate.
1923 * gnulib/configure: Regenerate.
1924 * gnulib/import/Makefile.am: Regenerate.
1925 * gnulib/import/Makefile.in: Regenerate.
1926 * gnulib/import/assure.h: New file.
1927 * gnulib/import/at-func.c: Likewise
1928 * gnulib/import/chdir-long.c: New file.
1929 * gnulib/import/chdir-long.h: New file.
1930 * gnulib/import/cloexec.c: New file.
1931 * gnulib/import/cloexec.h: New file.
1932 * gnulib/import/close.c: New file.
1933 * gnulib/import/closedir.c: New file.
1934 * gnulib/import/dirent-private.h: New file.
1935 * gnulib/import/dup-safer.c: New file.
1936 * gnulib/import/dup.c: New file.
1937 * gnulib/import/dup2.c: New file.
1938 * gnulib/import/error.c: New file.
1939 * gnulib/import/error.h: New file.
1940 * gnulib/import/exitfail.c: New file.
1941 * gnulib/import/exitfail.h: New file.
1942 * gnulib/import/fchdir.c: New file.
1943 * gnulib/import/fcntl.c: New file.
1944 * gnulib/import/fcntl.in.h: New file.
1945 * gnulib/import/fd-hook.c: New file.
1946 * gnulib/import/fd-hook.h: New file.
1947 * gnulib/import/fd-safer.c: New file.
1948 * gnulib/import/fdopendir.c: New file.
1949 * gnulib/import/filename.h: New file.
1950 * gnulib/import/filenamecat-lgpl.c: New file.
1951 * gnulib/import/filenamecat.h: New file.
1952 * gnulib/import/fstat.c: New file.
1953 * gnulib/import/fstatat.c: New file.
1954 * gnulib/import/getcwd-lgpl.c: New file.
1955 * gnulib/import/getcwd.c: New file.
1956 * gnulib/import/getdtablesize.c: New file.
1957 * gnulib/import/getlogin_r.c: New file.
1958 * gnulib/import/getprogname.c: New file.
1959 * gnulib/import/getprogname.h: New file.
1960 * gnulib/import/gettext.h: New file.
1961 * gnulib/import/glob-libc.h: New file.
1962 * gnulib/import/glob.c: New file.
1963 * gnulib/import/glob.in.h: New file.
1964 * gnulib/import/intprops.h: New file.
1965 * gnulib/import/m4/chdir-long.m4: New file.
1966 * gnulib/import/m4/close.m4: New file.
1967 * gnulib/import/m4/closedir.m4: New file.
1968 * gnulib/import/m4/d-ino.m4: New file.
1969 * gnulib/import/m4/d-type.m4: New file.
1970 * gnulib/import/m4/dup.m4: New file.
1971 * gnulib/import/m4/dup2.m4: New file.
1972 * gnulib/import/m4/error.m4: New file.
1973 * gnulib/import/m4/fchdir.m4: New file.
1974 * gnulib/import/m4/fcntl.m4: New file.
1975 * gnulib/import/m4/fcntl_h.m4: New file.
1976 * gnulib/import/m4/fdopendir.m4: New file.
1977 * gnulib/import/m4/filenamecat.m4: New file.
1978 * gnulib/import/m4/fstat.m4: New file.
1979 * gnulib/import/m4/fstatat.m4: New file.
1980 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
1981 * gnulib/import/m4/getcwd-path-max.m4: New file.
1982 * gnulib/import/m4/getcwd.m4: New file.
1983 * gnulib/import/m4/getdtablesize.m4: New file.
1984 * gnulib/import/m4/getlogin_r.m4: New file.
1985 * gnulib/import/m4/getprogname.m4: New file.
1986 * gnulib/import/m4/glob.m4: New file.
1987 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
1988 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
1989 * gnulib/import/m4/mempcpy.m4: New file.
1990 * gnulib/import/m4/memrchr.m4: New file.
1991 * gnulib/import/m4/mode_t.m4: New file.
1992 * gnulib/import/m4/msvc-inval.m4: New file.
1993 * gnulib/import/m4/msvc-nothrow.m4: New file.
1994 * gnulib/import/m4/open.m4: New file.
1995 * gnulib/import/m4/openat.m4: New file.
1996 * gnulib/import/m4/opendir.m4: New file.
1997 * gnulib/import/m4/readdir.m4: New file.
1998 * gnulib/import/m4/realloc.m4: New file.
1999 * gnulib/import/m4/rewinddir.m4: New file.
2000 * gnulib/import/m4/save-cwd.m4: New file.
2001 * gnulib/import/m4/strdup.m4: New file.
2002 * gnulib/import/m4/strerror.m4: New file.
2003 * gnulib/import/m4/unistd-safer.m4: New file.
2004 * gnulib/import/mempcpy.c: New file.
2005 * gnulib/import/memrchr.c: New file.
2006 * gnulib/import/msvc-inval.c: New file.
2007 * gnulib/import/msvc-inval.h: New file.
2008 * gnulib/import/msvc-nothrow.c: New file.
2009 * gnulib/import/msvc-nothrow.h: New file.
2010 * gnulib/import/open.c: New file.
2011 * gnulib/import/openat-die.c: New file.
2012 * gnulib/import/openat-priv.h: New file.
2013 * gnulib/import/openat-proc.c: New file.
2014 * gnulib/import/openat.c: New file.
2015 * gnulib/import/openat.h: New file.
2016 * gnulib/import/opendir.c: New file.
2017 * gnulib/import/pipe-safer.c: New file.
2018 * gnulib/import/readdir.c: New file.
2019 * gnulib/import/realloc.c: New file.
2020 * gnulib/import/rewinddir.c: New file.
2021 * gnulib/import/save-cwd.c: New file.
2022 * gnulib/import/save-cwd.h: New file.
2023 * gnulib/import/strdup.c: New file.
2024 * gnulib/import/strerror-override.c: New file.
2025 * gnulib/import/strerror-override.h: New file.
2026 * gnulib/import/strerror.c: New file.
2027 * gnulib/import/unistd--.h: New file.
2028 * gnulib/import/unistd-safer.h: New file.
2029 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
2030 "getcwd" and "glob".
2031 * ser-tcp.c: Undefine "close" before redefining it.
2032
2033 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
2034
2035 * guile/scm-value.c (gdbscm_value_address): Initialize address,
2036 get rid of res_val.
2037
2038 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2039
2040 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
2041 <sol2,sparc>: Likewise.
2042 <sol2-64,i386>: Likewise.
2043
2044 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
2045 -Wdeprecated-declarations on *-*-solaris*.
2046 * configure: Regenerate.
2047
2048 * procfs.c: Include "nat/inferior.h".
2049 (procfs_info_proc): Fix typo.
2050
2051 2017-09-21 Kevin Buettner <kevinb@redhat.com>
2052
2053 * remote.c (vector): Include.
2054 (struct private_thread_info): Add field, thread_handle.
2055 (free_private_thread_info): Deallocate storage associated with
2056 thread handle.
2057 (get_private_info_thread): Initialize `thread_handle' field.
2058 (struct thread_item): Add field, thread_handle.
2059 (clear_threads_listing_context): Deallocate storage associated
2060 with thread handle.
2061 (start_thread): Add support for "handle" attribute.
2062 (thread_attributes): Add "handle".
2063 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
2064 field.
2065 (remote_update_thread_list): Update thread_handle.
2066 (remote_thread_handle_to_thread_info): New function.
2067 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
2068
2069 2017-09-21 Kevin Buettner <kevinb@redhat.com>
2070
2071 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
2072 function.
2073 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
2074 * python/python-internal.h (thread_object_type): Declare.
2075
2076 2017-09-21 Kevin Buettner <kevinb@redhat.com>
2077
2078 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
2079 (target_thread_handle_to_thread_info): Declare.
2080 * target.c (target_thread_handle_to_thread_info): New function.
2081 * target-delegates.c: Regenerate.
2082 * gdbthread.h (find_thread_by_handle): Declare.
2083 * thread.c (find_thread_by_handle): New function.
2084 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
2085 function.
2086 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
2087
2088 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
2089
2090 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
2091
2092 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
2093
2094 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
2095
2096 2017-09-21 Yao Qi <yao.qi@linaro.org>
2097
2098 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
2099 to gdb_target_obs.
2100
2101 2017-09-20 Tom Tromey <tom@tromey.com>
2102
2103 * breakpoint.c (struct counted_command_line): Remove.
2104 (breakpoint_commands): Update.
2105 (alloc_counted_command_line, incref_counted_command_line)
2106 (decref_counted_command_line, do_cleanup_counted_command_line)
2107 (make_cleanup_decref_counted_command_line): Remove.
2108 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
2109 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
2110 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
2111 (save_breakpoints): Update.
2112 * breakpoint.h (counted_command_line): Now a typedef to
2113 shared_ptr.
2114 (struct breakpoint) <commands>: Now a counted_command_line.
2115 (struct bpstats) <command>: Likewise.
2116
2117 2017-09-20 Tom Tromey <tom@tromey.com>
2118
2119 * breakpoint.c (struct commands_info, do_map_commands_command):
2120 Remove.
2121 (commands_command_1): Update.
2122 (iterate_over_related_breakpoints): Take a function_view.
2123 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
2124 (delete_command): Update.
2125 (map_breakpoint_numbers): Take a function_view.
2126 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
2127 (disable_command): Update.
2128 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
2129 (enable_command): Update.
2130 (struct disp_data, do_enable_breakpoint_disp)
2131 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
2132 (do_map_enable_delete_breakpoint): Remove.
2133 (enable_once_command, enable_count_command, enable_delete_command)
2134 (delete_trace_variable_command): Update.
2135
2136 2017-09-20 Tom Tromey <tom@tromey.com>
2137
2138 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
2139 (bpstat_clear): Use delete.
2140 (bpstats): New constructors.
2141 (bpstat_copy, bpstat_stop_status): Use new.
2142 (dprintf_after_condition_true): Update.
2143 * breakpoint.h (bpstats::bpstats): Add constructors.
2144 (bpstats::~bpstats): Add destructor.
2145
2146 2017-09-20 Pedro Alves <palves@redhat.com>
2147
2148 * eval.c (make_params): Delete, refactored as ...
2149 (class fake_method): ... this new type's ctor.
2150 (fake_method::~fake_method): New.
2151 (evaluate_subexp_standard): Use 'fake_method'.
2152
2153 2017-09-20 Tom Tromey <tom@tromey.com>
2154
2155 * windows-nat.c (get_windows_debug_event, windows_wait)
2156 (do_initial_windows_stuff, windows_attach): Update.
2157 * utils.c (vwarning, internal_vproblem): Update.
2158 (ui_unregister_input_event_handler_cleanup)
2159 (prepare_to_handle_input): Remove.
2160 (class scoped_input_handler): New.
2161 (defaulted_query, prompt_for_continue): Update.
2162 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
2163 Update.
2164 * top.c (undo_terminal_modifications_before_exit): Update.
2165 * target/target.h (target_terminal_init, target_terminal_inferior)
2166 (target_terminal_ours): Don't declare.
2167 (class target_terminal): New.
2168 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
2169 (target_terminal_ours_for_output)
2170 (make_cleanup_restore_target_terminal): Don't declare.
2171 (target_terminal_info): Remove.
2172 * target.c (enum terminal_state, terminal_state): Remove.
2173 (target_terminal::terminal_state): Define.
2174 (target_terminal::init): Rename from target_terminal_init.
2175 (target_terminal::inferior): Rename from
2176 target_terminal_inferior.
2177 (target_terminal::ours): Rename from target_terminal_ours.
2178 (target_terminal::ours_for_output): Rename from
2179 target_terminal_ours_for_output.
2180 (target_terminal::info): New method.
2181 (cleanup_restore_target_terminal)
2182 (make_cleanup_restore_target_terminal): Remove.
2183 * solib.c (handle_solib_event): Update.
2184 * remote.c (remote_serial_quit_handler): Update.
2185 (remote_terminal_inferior, remote_wait_as): Update.
2186 * record-full.c (record_full_wait_1): Update.
2187 * nto-procfs.c (procfs_create_inferior): Update.
2188 * nat/fork-inferior.c (startup_inferior): Update.
2189 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
2190 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
2191 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
2192 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
2193 (mi_breakpoint_created, mi_breakpoint_deleted)
2194 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
2195 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
2196 (mi_user_selected_context_changed, report_initial_inferior):
2197 Update.
2198 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
2199 (linux_nat_terminal_inferior): Update.
2200 * infrun.c (follow_fork_inferior)
2201 (handle_vfork_child_exec_or_exit, do_target_resume)
2202 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
2203 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
2204 Update.
2205 * inflow.c (child_terminal_init, info_terminal_command): Update.
2206 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
2207 (attach_command): Update.
2208 * infcall.c (call_thread_fsm_should_stop): Update.
2209 * gnu-nat.c (gnu_attach): Update.
2210 * extension.c (struct active_ext_lang_state)
2211 (restore_active_ext_lang): Update.
2212 * exceptions.c (print_flush): Update.
2213 * event-top.c (async_enable_stdin, default_quit_handler): Update.
2214 (struct quit_handler_cleanup_data, restore_quit_handler)
2215 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
2216 Remove.
2217 * cp-support.c (gdb_demangle): Update.
2218 * breakpoint.c (update_inserted_breakpoint_locations)
2219 (insert_breakpoint_locations, handle_jit_event)
2220 (disable_breakpoints_in_unloaded_shlib): Update.
2221 * annotate.c (annotate_breakpoints_invalid)
2222 (annotate_frames_invalid): Update.
2223
2224 2017-09-20 Tom Tromey <tom@tromey.com>
2225
2226 * main.c (catch_command_errors): Rename from
2227 catch_command_errors_const.
2228 (captured_main_1): Update.
2229
2230 2017-09-20 Pedro Alves <palves@redhat.com>
2231
2232 * cli/cli-cmds.c (list_command): Use print_sal_location.
2233 (print_sal_location): New function.
2234 (ambiguous_line_spec): Use print_sal_location.
2235 * linespec.c (symbol_to_sal): Record the symbol in the sal.
2236 * symtab.c (find_function_start_sal): Likewise.
2237 * symtab.h (symtab_and_line::symbol): New field.
2238
2239 2017-09-20 Pedro Alves <palves@redhat.com>
2240
2241 * linespec.c (minsym_found): Handle non-text minsyms.
2242 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
2243
2244 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
2245
2246 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
2247 backslash.
2248
2249 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
2250
2251 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
2252 vmovups instead vmovaps.
2253 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
2254
2255 2017-09-19 John Baldwin <jhb@FreeBSD.org>
2256
2257 * NEWS (Changes since GDB 8.0): Add starti.
2258 * infcmd.c (enum run_break): New.
2259 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
2260 case.
2261 (run_command): Use enum run_how.
2262 (start_command): Likewise.
2263 (starti_command): New function.
2264 (RUN_ARGS_HELP): New macro.
2265 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
2266 commands. Add starti command.
2267
2268 2017-09-19 Yao Qi <yao.qi@linaro.org>
2269
2270 * Makefile.in (monitor.o): Remove the rule.
2271
2272 2017-09-19 Yao Qi <yao.qi@linaro.org>
2273
2274 * annotate.h (struct annotate_arg_emitter): Use
2275 DISABLE_COPY_AND_ASSIGN.
2276 * common/refcounted-object.h (refcounted_object): Likewise.
2277 * completer.h (struct completion_result): Likewise.
2278 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
2279 * filename-seen-cache.h (filename_seen_cache): Likewise.
2280 * gdbcore.h (thread_section_name): Likewise.
2281 * gdb_regex.h (compiled_regex): Likewise.
2282 * gdbthread.h (scoped_restore_current_thread): Likewise.
2283 * inferior.h (scoped_restore_current_inferior): Likewise.
2284 * jit.c (jit_reader): Likewise.
2285 * linespec.h (struct linespec_result): Likewise.
2286 * mi/mi-parse.h (struct mi_parse): Likewise.
2287 * nat/fork-inferior.c (execv_argv): Likewise.
2288 * progspace.h (scoped_restore_current_program_space): Likewise.
2289 * python/python-internal.h (class gdbpy_enter): Likewise.
2290 * regcache.h (regcache): Likewise.
2291 * target-descriptions.c (struct tdesc_reg): Likewise.
2292 (struct tdesc_type): Likewise.
2293 (struct tdesc_feature): Likewise.
2294 * ui-out.h (ui_out_emit_type): Likewise.
2295
2296 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
2297
2298 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
2299 label abort_expression.
2300
2301 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
2302
2303 * common/buffer.c (buffer_xml_printf): Adjust.
2304 * common/xml-utils.c (xml_escape_text): Change return type to
2305 std::string, update code accordingly.
2306 * common/xml-utils.h (xml_escape_text): Change return type to
2307 std::string.
2308 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
2309 * windows-tdep.c (windows_xfer_shared_library): Adjust.
2310 * unittests/xml-utils-selftests.c (test_xml_escape_text):
2311 Adjust.
2312
2313 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
2314
2315 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
2316 (SUBDIR_UNITTESTS_OBS): Add new object file.
2317 * unittests/xml-utils-selftests.c: New file.
2318
2319 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
2320
2321 * common/selftest.h (selftest): New struct/interface.
2322 (register_test): Add name parameter, add new overload.
2323 (run_tests): Add filter parameter.
2324 (for_each_selftest_ftype): New typedef.
2325 (for_each_selftest): New declaration.
2326 * common/selftest.c (tests): Change type to
2327 map<string, unique_ptr<selftest>>.
2328 (simple_selftest): New struct.
2329 (register_test): New function.
2330 (register_test): Add name parameter and use it.
2331 (run_tests): Add filter parameter and use it. Add prints.
2332 Adjust to vector -> map change.
2333 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
2334 registering selftests.
2335 * arm-tdep.c (_initialize_arm_tdep): Likewise.
2336 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
2337 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
2338 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
2339 * findvar.c (_initialize_findvar): Likewise.
2340 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
2341 * maint.c (maintenance_selftest): Update call to run_tests.
2342 (maintenance_info_selftests): New function.
2343 (_initialize_maint_cmds): Register "maintenance info selftests"
2344 command. Update "maintenance selftest" doc.
2345 * regcache.c (_initialize_regcache): Add names when registering
2346 selftests.
2347 * rust-exp.y (_initialize_rust_exp): Likewise.
2348 * selftest-arch.c (gdbarch_selftest): New struct.
2349 (gdbarch_tests): Remove.
2350 (register_test_foreach_arch): Add name parameter. Call
2351 register_test.
2352 (tests_with_arch): Remove, move most content to
2353 gdbarch_selftest::operator().
2354 (_initialize_selftests_foreach_arch): Remove.
2355 * selftest-arch.h (register_test_foreach_arch): Add name
2356 parameter.
2357 (run_tests_with_arch): New declaration.
2358 * utils-selftests.c (_initialize_utils_selftests): Add names
2359 when registering selftests.
2360 * utils.c (_initialize_utils): Likewise.
2361 * unittests/array-view-selftests.c
2362 (_initialize_array_view_selftests): Likewise.
2363 * unittests/environ-selftests.c (_initialize_environ_selftests):
2364 Likewise.
2365 * unittests/function-view-selftests.c
2366 (_initialize_function_view_selftests): Likewise.
2367 * unittests/offset-type-selftests.c
2368 (_initialize_offset_type_selftests): Likewise.
2369 * unittests/optional-selftests.c
2370 (_initialize_optional_selftests): Likewise.
2371 * unittests/scoped_restore-selftests.c
2372 (_initialize_scoped_restore_selftests): Likewise.
2373 * NEWS: Document "maintenance selftest" and "maint info
2374 selftests".
2375
2376 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
2377
2378 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
2379 scoped_restore.
2380
2381 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
2382
2383 * mi/mi-main.c (mi_load_progress): Make uiout variable
2384 a unique_ptr.
2385
2386 2017-09-15 Pedro Alves <palves@redhat.com>
2387
2388 * compile/compile-c-types.c (convert_enum, convert_int)
2389 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
2390
2391 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
2392
2393 * dwarf2read.c (copy_string): Remove.
2394 (parse_macro_definition): Replace copy_string with savestring.
2395
2396 2017-09-15 Yao Qi <yao.qi@linaro.org>
2397
2398 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
2399 gdb_target_obs.
2400 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
2401 Likewise.
2402 (i[34567]86-*-linux*): Likewise.
2403
2404 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
2405
2406 * dwarf2expr.h (dwarf_stack_value): Add constructor.
2407 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
2408 <stack>: Change type to std::vector.
2409 <stack_len, stack_allocated>: Remove.
2410 <grow_stack>: Remove.
2411 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
2412 (dwarf_expr_context::~dwarf_expr_context): Remove.
2413 (dwarf_expr_context::grow_stack): Remove.
2414 (dwarf_expr_context::push): Adjust.
2415 (dwarf_expr_context::pop): Adjust.
2416 (dwarf_expr_context::fetch): Adjust.
2417 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
2418 (dwarf_expr_context::stack_empty_p): Adjust.
2419 (dwarf_expr_context::execute_stack_op): Adjust.
2420
2421 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
2422
2423 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
2424 return type to bool.
2425 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
2426
2427 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
2428
2429 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
2430 Change type to bool.
2431 (dwarf_stack_value) <in_stack_memory>: Likewise.
2432 (dwarf_expr_context) <push_address>: Change parameter type to
2433 bool.
2434 <fetch_in_stack_memory>: Change return type to bool.
2435 <push>: Change parameter type to bool.
2436 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
2437 to bool.
2438 (dwarf_expr_context::push_address): Likewise.
2439 (dwarf_expr_context::fetch_in_stack_memory): Change return type
2440 to bool.
2441 (dwarf_expr_context::execute_stack_op): Adjust.
2442 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
2443
2444 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
2445
2446 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
2447 (struct dwarf_expr_context) <n_pieces>: Remove.
2448 <pieces>: Change type to std::vector.
2449 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
2450 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
2451 pieces.
2452 (dwarf_expr_context::add_piece): Adjust.
2453 * dwarf2loc.c (struct piece_closure): Initialize fields.
2454 <n_pieces>: Remove.
2455 <pieces>: Change type to std::vector.
2456 (allocate_piece_closure): Adjust, change parameter to
2457 std::vector rvalue and std::move it to piece_closure.
2458 (rw_pieced_value): Adjust.
2459 (check_pieced_synthetic_pointer): Adjust.
2460 (indirect_synthetic_pointer): Adjust.
2461 (coerce_pieced_ref): Adjust.
2462 (free_pieced_value_closure): Adjust. Use delete to free
2463 piece_closure.
2464 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
2465 to allocate_piece_closure.
2466 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
2467
2468 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
2469
2470 * probe.h (probe_ops_cp): Remove typedef.
2471 (DEF_VEC_P (probe_ops_cp)): Remove.
2472 (all_probe_ops): Change type to std::vector.
2473 * probe.c (info_probes_for_ops): Adjust to vector change.
2474 (probe_linespec_to_ops): Likewise.
2475 (all_probe_ops): Change type to std::vector.
2476 (_initialize_probe): Adjust to vector change.
2477 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
2478 * elfread.c (elf_get_probes): Likewise.
2479 * stap-probe.c (_initialize_stap_probe): Likewise.
2480
2481 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
2482
2483 * probe.h (struct bound_probe): Define constructors.
2484 * probe.c (bound_probe_s): Remove typedef.
2485 (DEF_VEC_O (bound_probe_s)): Remove VEC.
2486 (collect_probes): Change return type to std::vector, remove
2487 cleanup.
2488 (compare_probes): Return bool, change parameter type. Change
2489 semantic to "less than".
2490 (gen_ui_out_table_header_info): Change parameter to std::vector
2491 and update.
2492 (exists_probe_with_pops): Likewise.
2493 (info_probes_for_ops): Update to std::vector change.
2494 (enable_probes_command): Likewise.
2495 (disable_probes_command): Likewise.
2496
2497 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
2498
2499 * probe.h (struct probe_ops) <get_probes>: Change parameter from
2500 vec to std::vector.
2501 * probe.c (parse_probes_in_pspace): Update.
2502 (find_probes_in_objfile): Update.
2503 (find_probe_by_pc): Update.
2504 (collect_probes): Update.
2505 (probe_any_get_probes): Update.
2506 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
2507 return type to reference to std::vector.
2508 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
2509 std::vector and update.
2510 (dtrace_process_dof): Likewise.
2511 (dtrace_get_probes): Likewise.
2512 * elfread.c (elf_get_probes): Change return type to std::vector,
2513 store an std::vector in bfd_data.
2514 (probe_key_free): Update to std::vector.
2515 * stap-probe.c (handle_stap_probe): Change parameter to
2516 std::vector and update.
2517 (stap_get_probes): Likewise.
2518 * symfile-debug.c (debug_sym_get_probes): Change return type to
2519 std::vector and update.
2520
2521 2017-09-11 Tom Tromey <tom@tromey.com>
2522
2523 * breakpoint.c (program_breakpoint_here_p): Update.
2524 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
2525 from make_show_memory_breakpoints_cleanup. Return a
2526 scoped_restore_tmpl<int>.
2527 (restore_show_memory_breakpoints): Remove.
2528 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
2529 * mem-break.c (memory_validate_breakpoint): Update.
2530 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
2531 (ia64_memory_remove_breakpoint): Update.
2532 (ia64_breakpoint_from_pc): Update.
2533 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
2534 from make_show_memory_breakpoints_cleanup.
2535
2536 2017-09-11 Tom Tromey <tom@tromey.com>
2537
2538 * d-namespace.c (d_lookup_symbol): Use std::string.
2539 (find_symbol_in_baseclass): Likewise.
2540
2541 2017-09-11 Tom Tromey <tom@tromey.com>
2542
2543 * ctf.c (ctf_start): Use std::string.
2544
2545 2017-09-11 Tom Tromey <tom@tromey.com>
2546
2547 * ada-lang.c (is_known_support_routine): Update.
2548 (ada_unhandled_exception_name_addr_from_raise): Update.
2549 * guile/scm-frame.c (gdbscm_frame_name): Update.
2550 * python/py-frame.c (frapy_name): Update.
2551 (frapy_function): Update.
2552 * stack.h (find_frame_funname): Update.
2553 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
2554 (print_frame): Update.
2555
2556 2017-09-11 Tom Tromey <tom@tromey.com>
2557
2558 * findcmd.c (put_bits): Take a gdb::byte_vector.
2559 (parse_find_args): Return gdb::byte_vector. "args" now const.
2560 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
2561 cleanups.
2562 (find_command): Update.
2563
2564 2017-09-11 Tom Tromey <tom@tromey.com>
2565
2566 * cli/cli-script.c (class scoped_restore_hook_in): New.
2567 (clear_hook_in_cleanup): Remove.
2568 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
2569 scoped_restore_hook_in.
2570
2571 2017-09-11 Tom Tromey <tom@tromey.com>
2572
2573 * cli/cli-script.c (restore_interp): Remove.
2574 (read_command_lines): Use scoped_restore_interp.
2575 * interps.c (scoped_restore_interp::set_temp): Rename from
2576 interp_set_temp.
2577 * interps.h (class scoped_restore_interp): New.
2578 (interp_set_temp): Remove.
2579
2580 2017-09-11 Tom Tromey <tom@tromey.com>
2581
2582 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
2583 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
2584 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
2585 scoped_restore.
2586 (mi_cmd_break_insert_1): Update.
2587 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
2588 scoped_restore.
2589
2590 2017-09-11 Tom Tromey <tom@tromey.com>
2591
2592 * demangle.c (demangle_command): Update.
2593 * breakpoint.c (disable_command): Update.
2594 (enable_command): Update.
2595 (find_location_by_number): Make "number" const. Use
2596 get_number_trailer.
2597 * cli/cli-utils.c (extract_arg): Return std::string.
2598 * probe.c (parse_probe_linespec): Update. Change types.
2599 (collect_probes): Take string arguments.
2600 (parse_probe_linespec): Likewise.
2601 (info_probes_for_ops): Update.
2602 (enable_probes_command): Update.
2603 (disable_probes_command): Update.
2604 * break-catch-sig.c (catch_signal_split_args): Update.
2605 * mi/mi-parse.c (mi_parse): Update.
2606
2607 2017-09-11 Tom Tromey <tom@tromey.com>
2608
2609 * language.h (language_enum): Make argument const.
2610 * language.c (language_enum): Make argument const.
2611
2612 2017-09-11 Tom Tromey <tom@tromey.com>
2613
2614 * common/common-utils.h (skip_to_space): Remove macro, redeclare
2615 as function.
2616 (skip_to_space): Rename from skip_to_space_const.
2617 * common/common-utils.c (skip_to_space): New function.
2618 (skip_to_space): Rename from skip_to_space_const.
2619 * cli/cli-utils.h (get_number): Rename from get_number_const.
2620 (extract_arg): Rename from extract_arg_const.
2621 * cli/cli-utils.c (get_number): Rename from get_number_const.
2622 (extract_arg): Rename from extract_arg_const.
2623 (number_or_range_parser::get_number): Use ::get_number.
2624 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
2625 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
2626 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
2627 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
2628 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
2629 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
2630 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
2631 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
2632
2633 2017-09-11 Tom Tromey <tom@tromey.com>
2634
2635 * python/python.c (do_start_initialization): Use
2636 py-event-types.def to initialize types.
2637 Define all object type structures.
2638 * python/python-internal.h: Don't declare event initialization
2639 functions.
2640 * python/py-threadevent.c (thread_event_object_type): Don't
2641 define.
2642 * python/py-stopevent.c (stop_event_object_type): Don't define.
2643 * python/py-signalevent.c (signal_event_object_type): Don't
2644 declare or define.
2645 * python/py-newobjfileevent.c (new_objfile_event_object_type)
2646 (clear_objfiles_event_object_type): Don't declare or define.
2647 * python/py-infevents.c (inferior_call_pre_event_object_type)
2648 (inferior_call_post_event_object_type)
2649 (register_changed_event_object_type)
2650 (memory_changed_event_object_type): Don't declare or define.
2651 * python/py-inferior.c (new_thread_event_object_type)
2652 (new_inferior_event_object_type)
2653 (inferior_deleted_event_object_type): Don't declare or define.
2654 * python/py-exitedevent.c (exited_event_object_type): Don't
2655 declare or define.
2656 * python/py-evts.c (gdbpy_initialize_py_events): Use
2657 py-all-events.def.
2658 * python/py-events.h (thread_event_object_type): Don't declare.
2659 (events_object): Use py-all-events.def.
2660 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
2661 py-event-types.def.
2662 * python/py-event-types.def: New file.
2663 * python/py-continueevent.c (create_continue_event_object): Don't
2664 declare or define.
2665 * python/py-bpevent.c (breakpoint_event_object_type): Don't
2666 declare or define.
2667 * python/py-all-events.def: New file.
2668
2669 2017-09-11 Tom Tromey <tom@tromey.com>
2670
2671 * python/py-threadevent.c (create_thread_event_object): Return
2672 gdbpy_ref.
2673 * python/py-stopevent.h (create_stop_event_object)
2674 (create_breakpoint_event_object, create_signal_event_object):
2675 Update.
2676 * python/py-stopevent.c (create_stop_event_object): Return
2677 gdbpy_ref.
2678 (emit_stop_event): Update.
2679 * python/py-signalevent.c (create_signal_event_object): Return
2680 gdbpy_ref.
2681 * python/py-infevents.c (create_inferior_call_event_object):
2682 Update.
2683 * python/py-event.h (create_event_object)
2684 (create_thread_event_object): Update.
2685 * python/py-event.c (create_event_object): Return gdbpy_ref.
2686 * python/py-continueevent.c: Return gdbpy_ref.
2687 * python/py-bpevent.c (create_breakpoint_event_object): Return
2688 gdbpy_ref.
2689
2690 2017-09-11 Tom Tromey <tom@tromey.com>
2691
2692 PR python/15622:
2693 * NEWS: Add entry.
2694 * python/python.c (do_start_initialization): Initialize new event
2695 types.
2696 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
2697 (gdbpy_initialize_inferior_deleted_event)
2698 (gdbpy_initialize_new_thread_event): Declare.
2699 * python/py-threadevent.c (create_thread_event_object): Add option
2700 "thread" parameter.
2701 * python/py-inferior.c (new_thread_event_object_type)
2702 (new_inferior_event_object_type)
2703 (inferior_deleted_event_object_type): Declare.
2704 (python_new_inferior, python_inferior_deleted): New functions.
2705 (add_thread_object): Emit new_thread event.
2706 (gdbpy_initialize_inferior): Attach new functions to corresponding
2707 observers.
2708 (new_thread, new_inferior, inferior_deleted): Define new event
2709 types.
2710 * python/py-evts.c (gdbpy_initialize_py_events): Add new
2711 registries.
2712 * python/py-events.h (events_object) <new_inferior,
2713 inferior_deleted, new_thread>: New fields.
2714 * python/py-event.h (create_thread_event_breakpoint): Add optional
2715 "thread" parameter.
2716
2717 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
2718
2719 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
2720 check current_ui instead.
2721 (internal_vproblem): Likewise.
2722
2723 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
2724
2725 * thread.c (print_thread_info_1): Remove unnecessary calls to
2726 uiout->is_mi_like_p.
2727
2728 2017-09-09 Tom Tromey <tom@tromey.com>
2729
2730 * namespace.h (add_using_directive): Update.
2731 * namespace.c (add_using_directive): Change type of excludes to
2732 std::vector.
2733 * dwarf2read.c (read_import_statement): Use std::vector.
2734 (read_namespace): Update.
2735 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
2736
2737 2017-09-09 Tom Tromey <tom@tromey.com>
2738
2739 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
2740
2741 2017-09-09 Tom Tromey <tom@tromey.com>
2742
2743 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
2744
2745 2017-09-09 Tom Tromey <tom@tromey.com>
2746
2747 * stack.c (func_command): Use gdb::def_vector.
2748
2749 2017-09-09 Tom Tromey <tom@tromey.com>
2750
2751 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
2752 ui_out_emit_list, ui_out_emit_tuple.
2753 (mi_cmd_var_update): Likewise.
2754
2755 2017-09-09 Tom Tromey <tom@tromey.com>
2756
2757 * mi/mi-interp.c (mi_user_selected_context_changed): Use
2758 ui_out_redirect_pop.
2759 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
2760 ui_out_redirect_pop.
2761 * utils.c (do_ui_out_redirect_pop)
2762 (make_cleanup_ui_out_redirect_pop): Remove.
2763 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
2764 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
2765 * ui-out.h (ui_out_redirect_pop): New class.
2766
2767 2017-09-09 Tom Tromey <tom@tromey.com>
2768
2769 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
2770 (list_available_thread_groups, mi_cmd_list_thread_groups)
2771 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
2772 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
2773 Likewise.
2774
2775 2017-09-09 Tom Tromey <tom@tromey.com>
2776
2777 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
2778 ui_out_emit_tuple.
2779
2780 2017-09-09 Tom Tromey <tom@tromey.com>
2781
2782 * target.c (flash_erase_command): Use ui_out_emit_tuple.
2783 * stack.c (print_frame): Use ui_out_emit_tuple.
2784 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
2785 (info_spu_mailbox_command, info_spu_dma_command)
2786 (info_spu_proxydma_command): Likewise.
2787 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
2788 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
2789 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
2790 ui_out_emit_tuple.
2791 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
2792
2793 2017-09-09 Tom Tromey <tom@tromey.com>
2794
2795 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
2796 (class ui_out_emit_table): Update comment.
2797 * ui-out.c (do_cleanup_table_end)
2798 (make_cleanup_ui_out_table_begin_end): Remove.
2799 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
2800 (info_spu_dma_cmdlist): Likewise.
2801 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
2802 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
2803 ui_out_emit_table.
2804
2805 2017-09-09 Tom Tromey <tom@tromey.com>
2806
2807 * thread.c (print_thread_info_1): Use ui_out_emit_table,
2808 ui_out_emit_list, gdb::optional.
2809
2810 2017-09-09 John Baldwin <jhb@FreeBSD.org>
2811
2812 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
2813 prototype.
2814 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
2815 prototype.
2816 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
2817 prototype.
2818 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
2819 * ada-exp.y: Remove _initialize_ada_exp prototype.
2820 * ada-lang.c: Remove _initialize_ada_language prototype.
2821 * ada-tasks.c: Remove _initialize_tasks prototype.
2822 * addrmap.c: Remove _initialize_addrmap prototype.
2823 * agent.c: Remove _initialize_agent prototype.
2824 * aix-thread.c: Remove _initialize_aix_thread prototype.
2825 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
2826 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
2827 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
2828 prototype.
2829 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
2830 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
2831 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
2832 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
2833 prototype.
2834 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
2835 prototype.
2836 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
2837 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
2838 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
2839 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
2840 prototype.
2841 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
2842 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
2843 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
2844 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
2845 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
2846 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
2847 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
2848 prototype.
2849 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
2850 prototype.
2851 * annotate.c: Remove _initialize_annotate prototype.
2852 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
2853 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
2854 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
2855 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
2856 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
2857 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
2858 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
2859 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
2860 prototype.
2861 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
2862 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
2863 * auto-load.c: Remove _initialize_auto_load prototype.
2864 * auxv.c: Remove _initialize_auxv prototype.
2865 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
2866 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
2867 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
2868 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
2869 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
2870 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
2871 prototype.
2872 * break-catch-throw.c: Remove _initialize_break_catch_throw
2873 prototype.
2874 * breakpoint.c: Remove _initialize_breakpoint prototype.
2875 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
2876 * btrace.c: Remove _initialize_btrace prototype.
2877 * charset.c: Remove _initialize_charset prototype.
2878 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
2879 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
2880 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
2881 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
2882 * cli/cli-script.c: Remove _initialize_cli_script prototype.
2883 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
2884 * coffread.c: Remove _initialize_coffread prototype.
2885 * compile/compile.c: Remove _initialize_compile prototype.
2886 * complaints.c: Remove _initialize_complaints prototype.
2887 * completer.c: Remove _initialize_completer prototype.
2888 * copying.awk: Remove _initialize_copying prototype.
2889 * copying.c: Regenerate.
2890 * core-regset.c: Remove _initialize_core_regset prototype.
2891 * corefile.c: Remove _initialize_core prototype.
2892 * corelow.c: Remove _initialize_corelow prototype.
2893 * cp-abi.c: Remove _initialize_cp_abi prototype.
2894 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
2895 * cp-support.c: Remove _initialize_cp_support prototype.
2896 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
2897 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
2898 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
2899 * ctf.c: Remove _initialize_ctf prototype.
2900 * d-lang.c: Remove _initialize_d_language prototype.
2901 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
2902 prototype.
2903 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
2904 * dbxread.c: Remove _initialize_dbxread prototype.
2905 * dcache.c: Remove _initialize_dcache prototype.
2906 * demangle.c: Remove _initialize_demangler prototype.
2907 * disasm-selftests.c: Remove _initialize_disasm_selftests
2908 prototype.
2909 * disasm.c: Remove _initialize_disasm prototype.
2910 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
2911 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
2912 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
2913 prototype.
2914 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
2915 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
2916 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
2917 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
2918 * elfread.c: Remove _initialize_elfread prototype.
2919 * exec.c: Remove _initialize_exec prototype.
2920 * extension.c: Remove _initialize_extension prototype.
2921 * f-lang.c: Remove _initialize_f_language prototype.
2922 * f-valprint.c: Remove _initialize_f_valprint prototype.
2923 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
2924 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
2925 * filesystem.c: Remove _initialize_filesystem prototype.
2926 * findcmd.c: Remove _initialize_mem_search prototype.
2927 * fork-child.c: Remove _initialize_fork_child prototype.
2928 * frame-base.c: Remove _initialize_frame_base prototype.
2929 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
2930 * frame.c: Remove _initialize_frame prototype.
2931 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
2932 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
2933 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
2934 * gcore.c: Remove _initialize_gcore prototype.
2935 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
2936 * gdbarch.c: Regenerate.
2937 * gdbarch.sh: Remove _initialize_gdbarch prototype.
2938 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
2939 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
2940 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
2941 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
2942 * go-lang.c: Remove _initialize_go_language prototype.
2943 * go32-nat.c: Remove _initialize_go32_nat prototype.
2944 * guile/guile.c: Remove _initialize_guile prototype.
2945 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
2946 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
2947 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
2948 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
2949 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
2950 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
2951 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
2952 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
2953 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
2954 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
2955 prototype.
2956 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
2957 prototype.
2958 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
2959 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
2960 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
2961 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
2962 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
2963 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
2964 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
2965 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
2966 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
2967 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
2968 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
2969 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
2970 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
2971 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
2972 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
2973 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
2974 prototype.
2975 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
2976 prototype.
2977 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
2978 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
2979 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
2980 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
2981 * infcall.c: Remove _initialize_infcall prototype.
2982 * infcmd.c: Remove _initialize_infcmd prototype.
2983 * inferior.c: Remove _initialize_inferiors prototype.
2984 * inflow.c: Remove _initialize_inflow prototype.
2985 * infrun.c: Remove _initialize_infrun prototype.
2986 * interps.c: Remove _initialize_interpreter prototype.
2987 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
2988 * jit.c: Remove _initialize_jit prototype.
2989 * language.c: Remove _initialize_language prototype.
2990 * linux-fork.c: Remove _initialize_linux_fork prototype.
2991 * linux-nat.c: Remove _initialize_linux_nat prototype.
2992 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
2993 * linux-thread-db.c: Remove _initialize_thread_db prototype.
2994 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
2995 * m2-lang.c: Remove _initialize_m2_language prototype.
2996 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
2997 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
2998 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
2999 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
3000 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
3001 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
3002 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
3003 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
3004 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
3005 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
3006 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
3007 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
3008 * machoread.c: Remove _initialize_machoread prototype.
3009 * macrocmd.c: Remove _initialize_macrocmd prototype.
3010 * macroscope.c: Remove _initialize_macroscope prototype.
3011 * maint.c: Remove _initialize_maint_cmds prototype.
3012 * mdebugread.c: Remove _initialize_mdebugread prototype.
3013 * memattr.c: Remove _initialize_mem prototype.
3014 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
3015 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
3016 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
3017 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
3018 * mi/mi-main.c: Remove _initialize_mi_main prototype.
3019 * microblaze-linux-tdep.c: Remove
3020 _initialize_microblaze_linux_tdep prototype.
3021 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
3022 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
3023 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
3024 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
3025 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
3026 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
3027 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
3028 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
3029 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
3030 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
3031 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
3032 prototype.
3033 * mipsread.c: Remove _initialize_mipsread prototype.
3034 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
3035 prototype.
3036 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
3037 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
3038 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
3039 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
3040 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
3041 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
3042 prototype.
3043 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
3044 * nto-procfs.c: Remove _initialize_procfs prototype.
3045 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
3046 * objc-lang.c: Remove _initialize_objc_language prototype.
3047 * objfiles.c: Remove _initialize_objfiles prototype.
3048 * observer.c: Remove observer_test_first_notification_function,
3049 observer_test_second_notification_function,
3050 observer_test_third_notification_function, and
3051 _initialize_observer prototypes.
3052 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
3053 * osabi.c: Remove _initialize_gdb_osabi prototype.
3054 * osdata.c: Remove _initialize_osdata prototype.
3055 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
3056 * parse.c: Remove _initialize_parse prototype.
3057 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
3058 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
3059 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
3060 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
3061 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
3062 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
3063 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
3064 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
3065 * printcmd.c: Remove _initialize_printcmd prototype.
3066 * probe.c: Remove _initialize_probe prototype.
3067 * proc-api.c: Remove _initialize_proc_api prototype.
3068 * proc-events.c: Remove _initialize_proc_events prototype.
3069 * proc-service.c: Remove _initialize_proc_service prototype.
3070 * procfs.c: Remove _initialize_procfs prototype.
3071 * psymtab.c: Remove _initialize_psymtab prototype.
3072 * python/python.c: Remove _initialize_python prototype.
3073 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
3074 * record-btrace.c: Remove _initialize_record_btrace prototype.
3075 * record-full.c: Remove _initialize_record_full prototype.
3076 * record.c: Remove _initialize_record prototype.
3077 * regcache.c: Remove _initialize_regcache prototype.
3078 * reggroups.c: Remove _initialize_reggroup prototype.
3079 * remote-notif.c: Remove _initialize_notif prototype.
3080 * remote-sim.c: Remove _initialize_remote_sim prototype.
3081 * remote.c: Remove _initialize_remote prototype.
3082 * reverse.c: Remove _initialize_reverse prototype.
3083 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
3084 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
3085 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
3086 prototype.
3087 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
3088 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
3089 * rust-exp.y: Remove _initialize_rust_exp prototype.
3090 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
3091 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
3092 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
3093 * score-tdep.c: Remove _initialize_score_tdep prototype.
3094 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
3095 prototype.
3096 * ser-go32.c: Remove _initialize_ser_dos prototype.
3097 * ser-mingw.c: Remove _initialize_ser_windows prototype.
3098 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
3099 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
3100 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
3101 * serial.c: Remove _initialize_serial prototype.
3102 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
3103 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
3104 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
3105 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
3106 * skip.c: Remove _initialize_step_skip prototype.
3107 * sol-thread.c: Remove _initialize_sol_thread prototype.
3108 * solib-aix.c: Remove _initialize_solib_aix prototype.
3109 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
3110 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
3111 * solib-frv.c: Remove _initialize_frv_solib prototype.
3112 * solib-spu.c: Remove _initialize_spu_solib prototype.
3113 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
3114 * solib-target.c: Remove _initialize_solib_target prototype.
3115 * solib.c: Remove _initialize_solib prototype.
3116 * source.c: Remove _initialize_source prototype.
3117 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
3118 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
3119 prototype.
3120 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
3121 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
3122 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
3123 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
3124 prototype.
3125 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
3126 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
3127 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
3128 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
3129 prototype.
3130 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
3131 prototype.
3132 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
3133 prototype.
3134 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
3135 prototype.
3136 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
3137 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
3138 prototype.
3139 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
3140 prototype.
3141 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
3142 prototype.
3143 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
3144 prototype.
3145 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
3146 prototype.
3147 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
3148 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
3149 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
3150 * stabsread.c: Remove _initialize_stabsread prototype.
3151 * stack.c: Remove _initialize_stack prototype.
3152 * stap-probe.c: Remove _initialize_stap_probe prototype.
3153 * std-regs.c: Remove _initialize_frame_reg prototype.
3154 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
3155 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
3156 * symfile.c: Remove _initialize_symfile prototype.
3157 * symmisc.c: Remove _initialize_symmisc prototype.
3158 * symtab.c: Remove _initialize_symtab prototype.
3159 * target-dcache.c: Remove _initialize_target_dcache prototype.
3160 * target-descriptions.c: Remove _initialize_target_descriptions
3161 prototype.
3162 * thread.c: Remove _initialize_thread prototype.
3163 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
3164 prototype.
3165 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
3166 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
3167 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
3168 prototype.
3169 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
3170 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
3171 * tracefile.c: Remove _initialize_tracefile prototype.
3172 * tracepoint.c: Remove _initialize_tracepoint prototype.
3173 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
3174 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
3175 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
3176 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
3177 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
3178 * tui/tui-win.c: Remove _initialize_tui_win prototype.
3179 * tui/tui.c: Remove _initialize_tui prototype.
3180 * typeprint.c: Remove _initialize_typeprint prototype.
3181 * user-regs.c: Remove _initialize_user_regs prototype.
3182 * utils.c: Remove _initialize_utils prototype.
3183 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
3184 * valarith.c: Remove _initialize_valarith prototype.
3185 * valops.c: Remove _initialize_valops prototype.
3186 * valprint.c: Remove _initialize_valprint prototype.
3187 * value.c: Remove _initialize_values prototype.
3188 * varobj.c: Remove _initialize_varobj prototype.
3189 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
3190 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
3191 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
3192 * windows-nat.c: Remove _initialize_windows_nat,
3193 _initialize_check_for_gdb_ini, and _initialize_loadable
3194 prototypes.
3195 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
3196 * xcoffread.c: Remove _initialize_xcoffread prototype.
3197 * xml-support.c: Remove _initialize_xml_support prototype.
3198 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
3199 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
3200 prototype.
3201 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
3202 prototype.
3203 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
3204
3205 2017-09-08 Keith Seitz <keiths@redhat.com>
3206
3207 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
3208 field.
3209
3210 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
3211
3212 * f-valprint.c (f_val_print): Remove check for one byte
3213 sized integers. Remove printing of character type.
3214
3215 2017-09-08 Frank Penczek <frank.penczek@intel.com>
3216 Christoph Weinmann <christoph.t.weinmann@intel.com>
3217 Bernhard Heckel <bernhard.heckel@intel.com>
3218
3219 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
3220 to maintain proper indentation when printing pointers/refs.
3221
3222 2017-09-07 Joel Brobecker <brobecker@adacore.com>
3223
3224 GDB 8.0.1 released.
3225
3226 2017-09-07 Joel Brobecker <brobecker@adacore.com>
3227
3228 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
3229
3230 2017-09-05 Tom Tromey <tom@tromey.com>
3231
3232 * parse.c (funcall_chain): Now a std::vector.
3233 (start_arglist, end_arglist): Simplify.
3234 (free_funcalls): Remove.
3235 (parse_exp_in_context_1): Remove cleanup.
3236
3237 2017-09-05 Tom Tromey <tom@tromey.com>
3238
3239 * go-exp.y (go_parse): Don't create a cleanup.
3240
3241 2017-09-05 Tom Tromey <tom@tromey.com>
3242
3243 * d-exp.y (PrimaryExpression): Use std::string.
3244 (d_parse): Don't create a cleanup.
3245
3246 2017-09-05 Tom Tromey <tom@tromey.com>
3247
3248 * utils.c (do_clear_parser_state): Remove.
3249 (make_cleanup_clear_parser_state): Remove.
3250 * p-exp.y (pascal_parse): Use scoped_restore.
3251 * m2-exp.y (m2_parse): Use scoped_restore.
3252 * f-exp.y (f_parse): Use scoped_restore.
3253 * d-exp.y (d_parse): Use scoped_restore.
3254 * c-exp.y (c_parse): Use scoped_restore.
3255 * ada-exp.y (ada_parse): Use scoped_restore.
3256 * utils.h (make_cleanup_clear_parser_state): Remove.
3257
3258 2017-09-06 Keith Seitz <keiths@redhat.com>
3259
3260 * dwarf2read.c (dw2_linkage_name_attr): New function.
3261 (dw2_linkage_name): New function.
3262 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
3263 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
3264 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
3265
3266 2017-09-06 Kamil Rytarowski <n54@gmx.com>
3267
3268 * config/djgpp/djconfig.sh: Correct shell portability issue.
3269
3270 2017-09-06 Kamil Rytarowski <n54@gmx.com>
3271
3272 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
3273
3274 2017-09-06 John Baldwin <jhb@FreeBSD.org>
3275
3276 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
3277 * NEWS: Mention new FreeBSD/mips native configuration.
3278 * configure.host: Add aarch64*-*-freebsd*.
3279 * configure.nat: Likewise.
3280 * aarch64-fbsd-nat.c: New file.
3281
3282 2017-09-06 John Baldwin <jhb@FreeBSD.org>
3283
3284 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
3285 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
3286 * NEWS: Mention new FreeBSD/aarch64 target.
3287 * configure.tgt: Add aarch64*-*-freebsd*.
3288 * aarch64-fbsd-tdep.c: New file.
3289 * aarch64-fbsd-tdep.h: New file.
3290
3291 2017-09-06 Kamil Rytarowski <n54@gmx.com>
3292
3293 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
3294
3295 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3296
3297 * parse.c (find_minsym_type_and_address): Don't relocate addresses
3298 of TLS symbols.
3299
3300 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3301
3302 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
3303 call.
3304
3305 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
3306
3307 * infrun.c (follow_exec): Call add_thread after
3308 target_find_description.
3309
3310 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
3311
3312 * infrun.c (handle_inferior_event_1): When exec'ing, read
3313 stop_pc after follow_exec.
3314
3315 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
3316
3317 * remote.c (process_g_packet): Update error message.
3318
3319 2017-09-05 Yao Qi <yao.qi@linaro.org>
3320
3321 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
3322 targets.
3323
3324 2017-09-05 Pedro Alves <palves@redhat.com>
3325
3326 * eval.c (eval_call, evaluate_funcall): New functions, factored
3327 out from ...
3328 (evaluate_subexp_standard): ... this.
3329
3330 2017-09-05 Yao Qi <yao.qi@linaro.org>
3331
3332 * amd64-tdep.c (amd64_target_description): Create target
3333 descriptions.
3334 (_initialize_amd64_tdep): Don't call functions
3335 initialize_tdesc_amd64_*. Add self tests.
3336 * arch/amd64.c (amd64_create_target_description): Add parameter
3337 is_linux. Call set_tdesc_osabi if is_linux is true.
3338 * arch/amd64.h (amd64_create_target_description): Update the
3339 declaration.
3340 * arch/i386.c (i386_create_target_description): Add parameter
3341 is_linux. Call set_tdesc_osabi if is_linux is true.
3342 * arch/i386.h (i386_create_target_description): Update
3343 declaration.
3344 * configure.tgt: Add i386.o to gdb_target_obs.
3345 * features/Makefile (XMLTOC): Remove i386/*.xml.
3346 * features/i386/amd64-avx-avx512.c: Remove.
3347 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
3348 * features/i386/amd64-avx-mpx.c: Remove.
3349 * features/i386/amd64-avx.c: Remove.
3350 * features/i386/amd64-mpx.c: Remove.
3351 * features/i386/amd64.c: Remove.
3352 * features/i386/i386-avx-avx512.c: Remove.
3353 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
3354 * features/i386/i386-avx-mpx.c: Remove.
3355 * features/i386/i386-avx.c: Remove.
3356 * features/i386/i386-mmx.c: Remove.
3357 * features/i386/i386-mpx.c: Remove.
3358 * features/i386/i386.c: Remove.
3359 * i386-tdep.c: Don't include features/i386/i386*.c., include
3360 target-descriptions.h and arch/i386.h.
3361 (i386_target_description): Create target descriptions.
3362 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
3363 functions. Do self tests.
3364
3365 2017-09-05 Yao Qi <yao.qi@linaro.org>
3366
3367 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
3368 * features/i386/amd64-avx-avx512-linux.c: Removed.
3369 * features/i386/amd64-avx-linux.c: Removed.
3370 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
3371 * features/i386/amd64-avx-mpx-linux.c: Removed.
3372 * features/i386/amd64-linux.c: Removed.
3373 * features/i386/amd64-mpx-linux.c: Removed.
3374 * features/i386/x32-avx-avx512-linux.c: Removed.
3375 * features/i386/x32-avx-linux.c: Removed.
3376 * features/i386/x32-linux.c: Removed.
3377
3378 2017-09-05 Yao Qi <yao.qi@linaro.org>
3379
3380 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
3381 features/i386/*.c.
3382 (amd64_linux_read_description): Call
3383 amd64_create_target_description.
3384 * arch/amd64.c: New file.
3385 * arch/amd64.h: New file.
3386 * configure.tgt (x86_64-*-linux*): Append amd64.o.
3387 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
3388
3389 2017-09-05 Yao Qi <yao.qi@linaro.org>
3390
3391 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
3392 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
3393 (amd64_linux_read_description): Create target descriptions.
3394 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
3395 functions. Add unit tests.
3396 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
3397 x32-core.xml.
3398 * features/i386/64bit-avx.c: Generated.
3399 * features/i386/64bit-avx512.c: Generated.
3400 * features/i386/64bit-core.c: Generated.
3401 * features/i386/64bit-linux.c: Generated.
3402 * features/i386/64bit-mpx.c: Generated.
3403 * features/i386/64bit-pkeys.c: Generated.
3404 * features/i386/64bit-segments.c: Generated.
3405 * features/i386/64bit-sse.c: Generated.
3406 * features/i386/x32-core.c: Generated.
3407 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
3408 c files for amd64-linux and x32-linux.
3409
3410 2017-09-05 Yao Qi <yao.qi@linaro.org>
3411
3412 * amd64-linux-tdep.c (amd64_linux_read_description): New
3413 function.
3414 (amd64_linux_core_read_description): Call
3415 amd64_linux_read_description.
3416 (amd64_linux_init_abi): Likewise.
3417 (amd64_x32_linux_init_abi): Likewise.
3418 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
3419 * x86-linux-nat.c (x86_linux_read_description): Call
3420 amd64_linux_read_description.
3421
3422 2017-09-05 Yao Qi <yao.qi@linaro.org>
3423
3424 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
3425 comments.
3426
3427 2017-09-05 Yao Qi <yao.qi@linaro.org>
3428
3429 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
3430 * features/i386/i386-avx-avx512-linux.c: Remove.
3431 * features/i386/i386-avx-linux.c: Remove.
3432 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
3433 * features/i386/i386-avx-mpx-linux.c: Remove.
3434 * features/i386/i386-linux.c: Remove.
3435 * features/i386/i386-mmx-linux.c: Remove.
3436 * features/i386/i386-mpx-linux.c: Remove.
3437
3438 2017-09-05 Yao Qi <yao.qi@linaro.org>
3439
3440 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
3441 (SFILES): Add arch/i386.c.
3442 (HFILES_NO_SRCDIR): Add arch/i386.h.
3443 * arch/i386.c: New file.
3444 * arch/i386.h: New file.
3445 * arch/tdesc.h (allocate_target_description): Declare.
3446 (set_tdesc_architecture): Declare.
3447 (set_tdesc_osabi): Declare.
3448 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
3449 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
3450 include arch/i386.h.
3451 (i386_linux_read_description): Remove code and call
3452 i386_create_target_description.
3453 (set_tdesc_architecture): New function.
3454 (set_tdesc_osabi): New function.
3455 * target-descriptions.h (allocate_target_description): Remove.
3456
3457 2017-09-05 Yao Qi <yao.qi@linaro.org>
3458
3459 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
3460 * target-descriptions.c (tdesc_create_feature): Likewise, and
3461 adjust code.
3462 * features/i386/32bit-avx.c: Re-generated.
3463 * features/i386/32bit-avx512.c: Re-generated.
3464 * features/i386/32bit-core.c: Re-generated.
3465 * features/i386/32bit-linux.c: Re-generated.
3466 * features/i386/32bit-mpx.c: Re-generated.
3467 * features/i386/32bit-pkeys.c: Re-generated.
3468 * features/i386/32bit-sse.c: Re-generated.
3469
3470 2017-09-05 Yao Qi <yao.qi@linaro.org>
3471
3472 * regformats/regdef.h (struct reg): Override operator == and !=.
3473
3474 2017-09-05 Yao Qi <yao.qi@linaro.org>
3475
3476 * arch/tdesc.h: New file.
3477 * regformats/regdat.sh: Generate code using tdesc_create_reg.
3478 * target-descriptions.c: Update comments.
3479 * target-descriptions.h: Include "arch/tdesc.h". Remove the
3480 declarations.
3481 * features/i386/32bit-avx.c: Re-generated.
3482 * features/i386/32bit-avx512.c: Re-generated.
3483 * features/i386/32bit-core.c: Re-generated.
3484 * features/i386/32bit-linux.c: Re-generated.
3485 * features/i386/32bit-mpx.c: Re-generated.
3486 * features/i386/32bit-pkeys.c: Re-generated.
3487 * features/i386/32bit-sse.c: Re-generated.
3488
3489 2017-09-05 Yao Qi <yao.qi@linaro.org>
3490
3491 * regformats/regdat.sh: Update generated code.
3492
3493 2017-09-05 Yao Qi <yao.qi@linaro.org>
3494
3495 * regformats/regdat.sh: Adjust code order.
3496
3497 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
3498
3499 * expprint.c (dump_subexp_body_standard): Use constant format
3500 string in fprintf_filtered call.
3501
3502 2017-09-04 John Baldwin <jhb@FreeBSD.org>
3503
3504 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
3505 NetBSD/i386.
3506 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
3507
3508 2017-09-04 John Baldwin <jhb@FreeBSD.org>
3509
3510 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
3511
3512 2017-09-04 John Baldwin <jhb@FreeBSD.org>
3513
3514 * bsd-kvm.o: Define _KMEMUSER.
3515 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
3516 * configure: Regenerate.
3517
3518 2017-09-04 John Baldwin <jhb@FreeBSD.org>
3519
3520 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
3521 * i386-fbsd-nat.c: Likewise.
3522
3523 2017-09-04 John Baldwin <jhb@FreeBSD.org>
3524
3525 * unittests/array-view-selftests.c: Add include of <array>.
3526
3527 2017-09-04 John Baldwin <jhb@FreeBSD.org>
3528
3529 * spu-tdep.c (flush_ea_cache): Add missing argument to
3530 call_function_by_hand.
3531
3532 2017-09-04 Pedro Alves <palves@redhat.com>
3533
3534 * NEWS (Safer support for debugging with no debug info): New.
3535
3536 2017-09-04 Pedro Alves <palves@redhat.com>
3537
3538 * c-exp.y (function_method, function_method_void): Add current
3539 instance flags to TYPE_INSTANCE.
3540 * dwarf2read.c (check_modifier): New.
3541 (compute_delayed_physnames): Assert that only C++ adds delayed
3542 physnames. Mark fn_fields as const/volatile depending on
3543 physname.
3544 * eval.c (make_params): New type_instance_flags parameter. Use
3545 it as the new type's instance flags.
3546 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
3547 flags element and pass it to make_params.
3548 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
3549 instance flags element.
3550 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
3551 * gdbtypes.h: Include "enum-flags.h".
3552 (type_instance_flags): New enum-flags type.
3553 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
3554 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
3555 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
3556 (follow_type_instance_flags): New function.
3557 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
3558 * parser-defs.h (follow_type_instance_flags): Declare.
3559 * valops.c (value_struct_elt_for_reference): const/volatile must
3560 match too.
3561
3562 2017-09-04 Pedro Alves <palves@redhat.com>
3563
3564 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
3565 function/method scopes; lookup the nested name as a function local
3566 static variable.
3567
3568 2017-09-04 Pedro Alves <palves@redhat.com>
3569
3570 (%type <voidval>): Add function_method.
3571 * c-exp.y (exp): New production for calls with no arguments.
3572 (function_method, function_method_void_or_typelist): New
3573 productions.
3574 (exp): New production for "method()::static_var".
3575 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
3576 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
3577 Handle OP_FUNC_STATIC_VAR.
3578 * parse.c (operator_length_standard):
3579 Handle OP_FUNC_STATIC_VAR.
3580
3581 2017-09-04 Pedro Alves <palves@redhat.com>
3582
3583 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
3584 handling.
3585 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
3586 Ditto.
3587 * parse.c (operator_length_standard, operator_check_standard):
3588 Ditto.
3589 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
3590
3591 2017-09-04 Pedro Alves <palves@redhat.com>
3592
3593 * ax-gdb.c: Include "typeprint.h".
3594 (gen_expr_for_cast): New function.
3595 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
3596 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
3597 type is unknown.
3598 * dwarf2read.c (new_symbol_full): Fallback to int instead of
3599 nodebug_data_symbol.
3600 * eval.c: Include "typeprint.h".
3601 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
3602 Error out if symbol has unknown type.
3603 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
3604 evaluate_subexp_for_cast.
3605 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
3606 OP_VAR_MSYM_VALUE.
3607 (evaluate_subexp_for_cast): New function.
3608 * gdbtypes.c (init_nodebug_var_type): New function.
3609 (objfile_type): Use it to initialize types of variables with no
3610 debug info.
3611 * typeprint.c (error_unknown_type): New.
3612 * typeprint.h (error_unknown_type): New declaration.
3613 * compile/compile-c-types.c (convert_type_basic): Handle
3614 TYPE_CODE_ERROR; warn and fallback to int for variables with
3615 unknown type.
3616
3617 2017-09-04 Pedro Alves <palves@redhat.com>
3618
3619 * eval.c (evaluate_var_value): New function, factored out from ...
3620 (evaluate_subexp_standard): ... here.
3621
3622 2017-09-04 Pedro Alves <palves@redhat.com>
3623
3624 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
3625 Remove useless assignments to 'op'.
3626
3627 2017-09-04 Pedro Alves <palves@redhat.com>
3628
3629 * eval.c (eval_skip_value): New function.
3630 (evaluate_subexp_standard): Use it.
3631
3632 2017-09-04 Pedro Alves <palves@redhat.com>
3633
3634 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
3635 function name from symbol/minsym and pass it to
3636 error_call_unknown_return_type.
3637
3638 2017-09-04 Pedro Alves <palves@redhat.com>
3639
3640 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
3641 * ax-gdb.c (gen_msym_var_ref): New function.
3642 (gen_expr): Handle OP_VAR_MSYM_VALUE.
3643 * eval.c (evaluate_var_msym_value): New function.
3644 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
3645 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
3646 to call_function_by_hand.
3647 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
3648 Handle OP_VAR_MSYM_VALUE.
3649 (union exp_element) <msymbol>: New field.
3650 * minsyms.h (struct type): Forward declare.
3651 (find_minsym_type_and_address): Declare.
3652 * parse.c (write_exp_elt_msym): New function.
3653 (write_exp_msymbol): Delete, refactored as ...
3654 (find_minsym_type_and_address): ... this new function.
3655 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
3656 (operator_length_standard, operator_check_standard): Handle
3657 OP_VAR_MSYM_VALUE.
3658 * std-operator.def (OP_VAR_MSYM_VALUE): New.
3659
3660 2017-09-04 Pedro Alves <palves@redhat.com>
3661
3662 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
3663 TYPE_GNU_IFUNC specially here. Throw error if return type is
3664 unknown.
3665 * ada-typeprint.c (print_func_type): Handle functions with unknown
3666 return type.
3667 * c-typeprint.c (c_type_print_base): Handle functions and methods
3668 with unknown return type.
3669 * compile/compile-c-symbols.c (convert_symbol_bmsym)
3670 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
3671 * compile/compile-c-types.c: Include "objfiles.h".
3672 (convert_func): For functions with unknown return type, warn and
3673 default to int.
3674 * compile/compile-object-run.c (compile_object_run): Adjust call
3675 to call_function_by_hand_dummy.
3676 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
3677 call_function_by_hand.
3678 * eval.c (evaluate_subexp_standard): Adjust calls to
3679 call_function_by_hand. Handle functions and methods with unknown
3680 return type. Pass expect_type to call_function_by_hand.
3681 * f-typeprint.c (f_type_print_base): Handle functions with unknown
3682 return type.
3683 * gcore.c (call_target_sbrk): Adjust call to
3684 call_function_by_hand.
3685 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
3686 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
3687 an integer address type instead of nodebug.
3688 * guile/scm-value.c (gdbscm_value_call): Adjust call to
3689 call_function_by_hand.
3690 * infcall.c (error_call_unknown_return_type): New function.
3691 (call_function_by_hand): New "default_return_type" parameter.
3692 Pass it down.
3693 (call_function_by_hand_dummy): New "default_return_type"
3694 parameter. Use it instead of defaulting to int. If there's no
3695 default and the return type is unknown, throw an error. If
3696 there's a default return type, and the called function has no
3697 debug info, then assume the function is prototyped.
3698 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
3699 New "default_return_type" parameter.
3700 (error_call_unknown_return_type): New declaration.
3701 * linux-fork.c (call_lseek): Cast return type of lseek.
3702 (inferior_call_waitpid, checkpoint_command): Adjust calls to
3703 call_function_by_hand.
3704 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
3705 calls to call_function_by_hand.
3706 * m2-typeprint.c (m2_procedure): Handle functions with unknown
3707 return type.
3708 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3709 (value_nsstring, print_object_command): Adjust calls to
3710 call_function_by_hand.
3711 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
3712 functions with unknown return type.
3713 (pascal_type_print_func_varspec_suffix): New function.
3714 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
3715 TYPE_CODE_METHOD>: Use it.
3716 * python/py-value.c (valpy_call): Adjust call to
3717 call_function_by_hand.
3718 * rust-lang.c (rust_evaluate_funcall): Adjust call to
3719 call_function_by_hand.
3720 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
3721 call_function_by_hand.
3722 * valops.c (value_allocate_space_in_inferior): Adjust call to
3723 call_function_by_hand.
3724 * typeprint.c (type_print_unknown_return_type): New function.
3725 * typeprint.h (type_print_unknown_return_type): New declaration.
3726
3727 2017-09-04 Pedro Alves <palves@redhat.com>
3728
3729 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
3730 types with more than one parameter as prototyped.
3731
3732 2017-09-04 Pedro Alves <palves@redhat.com>
3733
3734 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
3735 (disassemble_command): Use gdb_disassembly_flags instead of bare
3736 int.
3737 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
3738 (dump_insns, do_mixed_source_and_assembly_deprecated)
3739 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
3740 Use gdb_disassembly_flags instead of bare int.
3741 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
3742 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
3743 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
3744 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
3745 (enum gdb_disassembly_flag): ... values of this new enumeration.
3746 (gdb_disassembly_flags): Define.
3747 (gdb_disassembly)
3748 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
3749 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
3750 gdb_disassembly_flags instead of bare int.
3751 * record-btrace.c (btrace_insn_history)
3752 (record_btrace_insn_history, record_btrace_insn_history_range)
3753 (record_btrace_insn_history_from): Use gdb_disassembly_flags
3754 instead of bare int.
3755 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
3756 Use gdb_disassembly_flags instead of bare int.
3757 * target-debug.h (target_debug_print_gdb_disassembly_flags):
3758 Define.
3759 * target-delegates.c: Regenerate.
3760 * target.c (target_insn_history, target_insn_history_from)
3761 (target_insn_history_range): Use gdb_disassembly_flags instead of
3762 bare int.
3763 * target.h: Include "disasm.h".
3764 (struct target_ops) <to_insn_history, to_insn_history_from,
3765 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
3766 int.
3767 (target_insn_history, target_insn_history_from)
3768 (target_insn_history_range): Use gdb_disassembly_flags instead of
3769 bare int.
3770
3771 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
3772
3773 * cli/cli-script.c (build_command_line): For if/while commands,
3774 check whether args is empty.
3775
3776 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
3777
3778 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
3779 (enum command_control_type): Likewise.
3780 (struct command_line): Likewise.
3781 (free_command_lines): Likewise.
3782 (struct command_lines_deleter): Likewise.
3783 (command_line_up): Likewise.
3784 (read_command_lines): Likewise.
3785 (read_command_lines_1): Likewise.
3786 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
3787 (enum command_control_type): Likewise.
3788 (struct command_line): Likewise.
3789 (free_command_lines): Likewise.
3790 (struct command_lines_deleter): Likewise.
3791 (command_line_up): Likewise.
3792 (read_command_lines): Likewise.
3793 (read_command_lines_1): Likewise.
3794 * breakpoint.h: Include cli/cli-script.h.
3795 * extension-priv.h: Likewise.
3796 * gdbcmd.h: Likewise.
3797
3798 2017-09-04 Pedro Alves <palves@redhat.com>
3799
3800 * ada-lang.c (is_known_support_routine): Move sal declaration to
3801 where it is initialized.
3802 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
3803 (parse_breakpoint_sals, decode_static_tracepoint_spec)
3804 (clear_command, update_static_tracepoint): Remove init_sal
3805 references. Move declarations closer to initializations.
3806 * cli/cli-cmds.c (list_command): Move sal declarations closer to
3807 initializations.
3808 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
3809 references. Move sal declarations closer to initializations.
3810 * frame.c (find_frame_sal): Return a symtab_and_line via function
3811 return instead of output parameter. Remove init_sal references.
3812 * frame.h (find_frame_sal): Return a symtab_and_line via function
3813 return instead of output parameter.
3814 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
3815 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
3816 instead of memset.
3817 (gdbscm_find_pc_line): Remove init_sal reference.
3818 * infcall.c (call_function_by_hand_dummy): Remove init_sal
3819 references. Move declarations closer to initializations.
3820 * infcmd.c (set_step_frame): Update. Move declarations closer to
3821 initializations.
3822 (finish_backward): Remove init_sal references. Move declarations
3823 closer to initializations.
3824 * infrun.c (process_event_stop_test, handle_step_into_function)
3825 (insert_hp_step_resume_breakpoint_at_frame)
3826 (insert_step_resume_breakpoint_at_caller): Likewise.
3827 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
3828 (symbol_to_sal): Likewise.
3829 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
3830 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
3831 to its initialization.
3832 * reverse.c (save_bookmark_command): Use new/delete. Remove
3833 init_sal references. Move declarations closer to initializations.
3834 * source.c (get_current_source_symtab_and_line): Remove brace
3835 initialization.
3836 (set_current_source_symtab_and_line): Now takes the sal by const
3837 reference. Remove brace initialization.
3838 (line_info): Remove init_sal reference.
3839 * source.h (set_current_source_symtab_and_line): Now takes a
3840 symtab_and_line via const reference.
3841 * stack.c (set_current_sal_from_frame): Adjust.
3842 (print_frame_info): Adjust.
3843 (get_last_displayed_sal): Return the sal via function return
3844 instead of via output parameter. Simplify.
3845 (frame_info): Adjust.
3846 * stack.h (get_last_displayed_sal): Return the sal via function
3847 return instead of via output parameter.
3848 * symtab.c (init_sal): Delete.
3849 (find_pc_sect_line): Remove init_sal references. Move
3850 declarations closer to initializations.
3851 (find_function_start_sal): Remove init_sal references. Move
3852 declarations closer to initializations.
3853 * symtab.h (struct symtab_and_line): In-class initialize all
3854 fields.
3855 * tracepoint.c (set_traceframe_context)
3856 (print_one_static_tracepoint_marker): Remove init_sal references.
3857 Move declarations closer to initializations.
3858 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
3859 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
3860 declarations closer to initializations.
3861 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
3862 init_sal references. Adjust.
3863
3864 2017-09-04 Pedro Alves <palves@redhat.com>
3865
3866 * ax-gdb.c (agent_command_1): Use range-for.
3867 * break-catch-throw.c (re_set_exception_catchpoint): Update.
3868 * breakpoint.c: Include "common/array-view.h".
3869 (init_breakpoint_sal, create_breakpoint_sal): Change sals
3870 parameter from struct symtabs_and_lines to
3871 array_view<symtab_and_line>. Adjust. Use range-for. Update.
3872 (breakpoint_sals_to_pc): Change sals parameter from struct
3873 symtabs_and_lines to std::vector reference.
3874 (check_fast_tracepoint_sals): Change sals parameter from struct
3875 symtabs_and_lines to std::array_view. Use range-for.
3876 (decode_static_tracepoint_spec): Return a std::vector instead of
3877 symtabs_and_lines. Update.
3878 (create_breakpoint): Update.
3879 (break_range_command, until_break_command, clear_command): Update.
3880 (base_breakpoint_decode_location, bkpt_decode_location)
3881 (bkpt_probe_create_sals_from_location)
3882 (bkpt_probe_decode_location, tracepoint_decode_location)
3883 (tracepoint_probe_decode_location)
3884 (strace_marker_create_sals_from_location): Return a std::vector
3885 instead of symtabs_and_lines.
3886 (strace_marker_create_breakpoints_sal): Update.
3887 (strace_marker_decode_location): Return a std::vector instead of
3888 symtabs_and_lines. Update.
3889 (update_breakpoint_locations): Change struct symtabs_and_lines
3890 parameters to gdb::array_view. Adjust.
3891 (location_to_sals): Return a std::vector instead of
3892 symtabs_and_lines. Update.
3893 (breakpoint_re_set_default): Use std::vector instead of struct
3894 symtabs_and_lines.
3895 (decode_location_default): Return a std::vector instead of
3896 symtabs_and_lines. Update.
3897 * breakpoint.h: Include "common/array-view.h".
3898 (struct breakpoint_ops) <decode_location>: Now returns a
3899 std::vector instead of returning a symtabs_and_lines via output
3900 parameter.
3901 (update_breakpoint_locations): Change sals parameters to use
3902 gdb::array_view.
3903 * cli/cli-cmds.c (edit_command, list_command): Update to use
3904 std::vector and gdb::array_view.
3905 (ambiguous_line_spec): Adjust to use gdb::array_view and
3906 range-for.
3907 (compare_symtabs): Rename to ...
3908 (cmp_symtabs): ... this. Change parameters to symtab_and_line
3909 const reference and adjust.
3910 (filter_sals): Rewrite using std::vector and standard algorithms.
3911 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
3912 (jump_command): Update to use std::vector.
3913 * linespec.c (struct linespec_state) <canonical_names>: Update
3914 comment.
3915 (add_sal_to_sals_basic): Delete.
3916 (add_sal_to_sals, filter_results, convert_results_to_lsals)
3917 (decode_line_2, create_sals_line_offset)
3918 (convert_address_location_to_sals, convert_linespec_to_sals)
3919 (convert_explicit_location_to_sals, parse_linespec)
3920 (event_location_to_sals, decode_line_full, decode_line_1)
3921 (decode_line_with_current_source)
3922 (decode_line_with_last_displayed, decode_objc)
3923 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
3924 (linespec_result::~linespec_result): Adjust to use std::vector
3925 instead of symtabs_and_lines.
3926 * linespec.h (linespec_sals::sals): Now a std::vector.
3927 (struct linespec_result): Use std::vector, bool, and in-class
3928 initialization.
3929 (decode_line_1, decode_line_with_current_source)
3930 (decode_line_with_last_displayed): Return std::vector.
3931 * macrocmd.c (info_macros_command): Use std::vector.
3932 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
3933 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
3934 std::vector.
3935 * probe.h (parse_probes): Return a std::vector.
3936 * python/python.c (gdbpy_decode_line): Use std::vector and
3937 gdb::array_view.
3938 * source.c (select_source_symtab, line_info): Use std::vector.
3939 * stack.c (func_command): Use std::vector.
3940 * symtab.h (struct symtabs_and_lines): Delete.
3941 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
3942
3943 2017-09-04 Pedro Alves <palves@redhat.com>
3944
3945 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3946 unittests/array-view-selftests.c.
3947 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
3948 * common/array-view.h: New file.
3949 * unittests/array-view-selftests.c: New file.
3950
3951 2017-09-04 Pedro Alves <palves@redhat.com>
3952
3953 * cli/cli-cmds.c (edit_command): Pass message to
3954 ambiguous_line_spec.
3955 (list_command): Pass message to ambiguous_line_spec. Say
3956 "first"/"last" instead of "start" and "end" to be consistent with
3957 the manual.
3958 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
3959 them to print formatted message.
3960
3961 2017-09-04 Pedro Alves <palves@redhat.com>
3962
3963 * btrace.c (ftrace_add_pt): Pass btrace_insn to
3964 ftrace_update_insns by reference instead of pointer.
3965
3966 2017-09-04 Yao Qi <yao.qi@linaro.org>
3967
3968 * i386-go32-tdep.c: Include x86-xstate.h.
3969 (i386_go32_init_abi): Call i386_target_description.
3970 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
3971 if xcr0 is X86_XSTATE_X87_MASK.
3972 * i386-tdep.h (tdesc_i386): Remove the declaration.
3973 (tdesc_i386_mmx): Likewise.
3974
3975 2017-09-04 Yao Qi <yao.qi@linaro.org>
3976
3977 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
3978 X86_XSTATE_SSE_MASK instead of 0.
3979
3980 2017-09-04 Yao Qi <yao.qi@linaro.org>
3981
3982 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
3983 i386_target_description.
3984 * i386-fbsd-nat.c (i386fbsd_read_description): Call
3985 i386_target_description.
3986 * i386-tdep.c (i386_gdbarch_init): Likewise.
3987
3988 2017-09-04 Yao Qi <yao.qi@linaro.org>
3989
3990 * amd64-darwin-tdep.c: Include "x86-xstate.h".
3991 (x86_darwin_init_abi_64): Call amd64_target_description.
3992 * amd64-dicos-tdep.c: Likewise.
3993 * amd64-fbsd-nat.c: Likewise.
3994 * amd64-fbsd-tdep.c: Likewise.
3995 * amd64-nbsd-tdep.c: Likewise.
3996 * amd64-obsd-tdep.c: Likewise.
3997 * amd64-sol2-tdep.c: Likewise.
3998 * amd64-windows-tdep.c: Likewise.
3999 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
4000
4001 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
4002
4003 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
4004 (btrace_function) <insn>: Change type to use std::vector.
4005 * btrace.c (ftrace_debug, ftrace_call_num_insn,
4006 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
4007 ftrace_update_insns, ftrace_compute_global_level_offset,
4008 btrace_stitch_bts, btrace_clear, btrace_insn_get,
4009 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
4010 change to std::vector.
4011 (ftrace_update_insns): Adjust to change to std::vector, change
4012 type of INSN parameter.
4013 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
4014 * record-btrace.c (btrace_call_history_insn_range,
4015 btrace_compute_src_line_range,
4016 record_btrace_frame_prev_register): Adjust to change to
4017 std::vector.
4018 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
4019 to change to std::vector.
4020
4021 2017-09-03 Tom Tromey <tom@tromey.com>
4022
4023 * corefile.c (reopen_exec_file): Use std::string.
4024
4025 2017-09-03 Tom Tromey <tom@tromey.com>
4026
4027 * compile/compile.c (compile_register_name_mangled): Return
4028 std::string.
4029 * compile/compile-loc2c.c (pushf_register_address): Update.
4030 (pushf_register): Update.
4031 * compile/compile-c-types.c (convert_array): Update.
4032 * compile/compile-c-symbols.c (generate_vla_size): Update.
4033 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
4034 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
4035 (convert_one_symbol): Update.
4036 (generate_c_for_for_one_variable): Update.
4037 * compile/compile-c-support.c (c_get_range_decl_name): Return a
4038 std::string.
4039 (generate_register_struct): Update.
4040 * compile/compile-internal.h (c_get_range_decl_name): Return a
4041 std::string.
4042 (compile_register_name_mangled): Return std::string.
4043
4044 2017-09-03 Tom Tromey <tom@tromey.com>
4045
4046 * utils.c (perror_string): Return a std::string.
4047 (throw_perror_with_name, perror_warning_with_name): Update.
4048
4049 2017-09-03 Tom Tromey <tom@tromey.com>
4050
4051 * demangle.c (demangle_command): Use std::string,
4052 unique_xmalloc_ptr.
4053
4054 2017-09-03 Tom Tromey <tom@tromey.com>
4055
4056 * cli/cli-setshow.c (do_set_command): Use std::string.
4057
4058 2017-09-03 Tom Tromey <tom@tromey.com>
4059
4060 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
4061
4062 2017-09-03 Tom Tromey <tom@tromey.com>
4063
4064 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
4065
4066 2017-09-03 Tom Tromey <tom@tromey.com>
4067
4068 * mi/mi-cmd-env.c (env_execute_cli_command): Use
4069 gdb::unique_xmalloc_ptr.
4070
4071 2017-09-03 Tom Tromey <tom@tromey.com>
4072
4073 * thread.c (print_thread_info_1): Use string_printf.
4074 (thread_apply_command, thread_apply_all_command): Use
4075 std::string.
4076
4077 2017-09-03 Tom Tromey <tom@tromey.com>
4078
4079 * valprint.c (val_print_string): Update.
4080 * gdbcore.h (memory_error_message): Return std::string.
4081 * corefile.c (memory_error_message): Return std::string.
4082 (memory_error): Update.
4083 * breakpoint.c (insert_bp_location): Update.
4084
4085 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
4086
4087 * target/waitstatus.h (target_waitstatus_to_string): Change
4088 return type to std::string.
4089 * target/waitstatus.c (target_waitstatus_to_string): Return
4090 std::string.
4091 * target.h (target_waitstatus_to_string): Remove declaration.
4092 * infrun.c (resume, clear_proceed_status_thread,
4093 print_target_wait_results, do_target_wait, save_waitstatus,
4094 stop_all_threads): Adjust.
4095 * record-btrace.c (record_btrace_wait): Adjust.
4096 * target-debug.h
4097 (target_debug_print_struct_target_waitstatus_p): Adjust.
4098
4099 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4100
4101 PR gdb/22046
4102 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
4103 detection.
4104
4105 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
4106
4107 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
4108 for setting/unsetting environment variables on the remote target.
4109 (New remote packets): Add entries for QEnvironmentHexEncoded,
4110 QEnvironmentUnset and QEnvironmentReset.
4111 * common/environ.c (gdb_environ::operator=): Extend method to
4112 handle m_user_set_env_list and m_user_unset_env_list.
4113 (gdb_environ::clear): Likewise.
4114 (match_var_in_string): Change type of first parameter from 'char
4115 *' to 'const char *'.
4116 (gdb_environ::set): Extend method to handle
4117 m_user_set_env_list and m_user_unset_env_list.
4118 (gdb_environ::unset): Likewise.
4119 (gdb_environ::clear_user_set_env): New method.
4120 (gdb_environ::user_set_envp): Likewise.
4121 (gdb_environ::user_unset_envp): Likewise.
4122 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
4123 m_user_unset_env_list on move constructor/assignment.
4124 (unset): Add new default parameter 'update_unset_list = true'.
4125 (clear_user_set_env): New method.
4126 (user_set_envp): Likewise.
4127 (user_unset_envp): Likewise.
4128 (m_user_set_env_list): New std::set.
4129 (m_user_unset_env_list): Likewise.
4130 * common/rsp-low.c (hex2str): New function.
4131 (bin2hex): New overload for bin2hex function.
4132 * common/rsp-low.c (hex2str): New prototype.
4133 (str2hex): New overload prototype.
4134 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
4135 QEnvironmentUnset and QEnvironmentReset.
4136 (remote_protocol_features): Add QEnvironmentHexEncoded,
4137 QEnvironmentUnset and QEnvironmentReset packets.
4138 (send_environment_packet): New function.
4139 (extended_remote_environment_support): Likewise.
4140 (extended_remote_create_inferior): Call
4141 extended_remote_environment_support.
4142 (_initialize_remote): Add QEnvironmentHexEncoded,
4143 QEnvironmentUnset and QEnvironmentReset packet configs.
4144 * unittests/environ-selftests.c (gdb_selftest_env_var):
4145 New variable.
4146 (test_vector_initialization): New function.
4147 (test_init_from_host_environ): Likewise.
4148 (test_reinit_from_host_environ): Likewise.
4149 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
4150 Likewise.
4151 (test_unset_set_empty_vector): Likewise.
4152 (test_vector_clear): Likewise.
4153 (test_std_move): Likewise.
4154 (test_move_constructor):
4155 (test_self_move): Likewise.
4156 (test_set_unset_reset): Likewise.
4157 (run_tests): Rewrite in terms of the functions above.
4158
4159 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
4160
4161 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
4162 (adi_available): Use a temp variable of type CORE_ADDR as argument
4163 3 when calling target_auxv_search.
4164 (adi_normalize_address): Use masks and xor operators to calculate
4165 normalized address.
4166 (adi_read_versions, adi_write_versions, adi_print_versions)
4167 (do_examine, do_assign): Use paddress.
4168
4169 2017-08-29 John Baldwin <jhb@FreeBSD.org>
4170
4171 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
4172 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
4173 out of loop and add supply of FIR.
4174 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
4175 add collect of FIR.
4176
4177 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
4178
4179 PR gdb/21827
4180 * cli/cli-script.c (define_command): Don't convert command name
4181 to lower case.
4182
4183 2017-08-25 Joel Brobecker <brobecker@adacore.com>
4184
4185 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
4186 Update all callers accordingly. Remove all code blocks handling
4187 the case where DISPP is not NULL.
4188
4189 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4190
4191 PR symtab/22003
4192 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
4193 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
4194 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
4195
4196 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4197
4198 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
4199 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
4200 (read_comp_units_from_section): New parameter abbrev_section, use
4201 read_and_check_comp_unit_head, allocate signatured_type if needed.
4202 (create_all_comp_units): Update read_comp_units_from_section caller.
4203
4204 2017-08-23 Pedro Alves <palves@redhat.com>
4205
4206 PR remote/21852
4207 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
4208 to null_ptid and switch to thread without reading the registers
4209 after adding the inferior.
4210
4211 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4212
4213 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
4214 compile-gcc.
4215 * compile/compile.c (compile_gcc, show_compile_gcc): New.
4216 (compile_to_object): Implement compile_gcc.
4217 (_initialize_compile): Install "set compile-gcc". Initialize
4218 compile_gcc.
4219
4220 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4221
4222 * compile/compile.c (compile_to_object): Conditionally call
4223 set_verbose. Conditionally call compile or compile_v0.
4224
4225 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
4226
4227 * sparc64-tdep.h: (adi_normalize_address): New export.
4228 * sparc-nat.h: (open_adi_tag_fd): New export.
4229 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
4230 * sparc64-linux-tdep.c:
4231 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
4232 (sparc64_linux_handle_segmentation_fault): New function.
4233 (sparc64_linux_init_abi): Register
4234 sparc64_linux_handle_segmentation_fault
4235 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
4236 (sparc64_addr_bits_remove): New function.
4237 (sparc64_init_abi): Register sparc64_addr_bits_remove.
4238 (MAX_PROC_NAME_SIZE): New macro.
4239 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
4240 (sparc64adilist): New variable.
4241 (adi_proc_list): New variable.
4242 (find_adi_info): New function.
4243 (add_adi_info): New function.
4244 (get_adi_info_proc): New function.
4245 (get_adi_info): New function.
4246 (info_adi_command): New function.
4247 (read_maps_entry): New function.
4248 (adi_available): New function.
4249 (adi_normalize_address): New function.
4250 (adi_align_address): New function.
4251 (adi_convert_byte_count): New function.
4252 (adi_tag_fd): New function.
4253 (adi_is_addr_mapped): New function.
4254 (adi_read_versions): New function.
4255 (adi_write_versions): New function.
4256 (adi_print_versions): New function.
4257 (do_examine): New function.
4258 (do_assign): New function.
4259 (adi_examine_command): New function.
4260 (adi_assign_command): New function.
4261 (_initialize_sparc64_adi_tdep): New function.
4262
4263 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
4264
4265 * breakpoint.c (breakpoints_info): Rename to ...
4266 (info_breakpoints_command): ... this.
4267 (watchpoints_info): Rename to ...
4268 (info_watchpoints_command): ... this.
4269 (tracepoints_info): Rename to ...
4270 (info_tracepoints_command): ... this.
4271 (_initialize_breakpoint): Adjust.
4272 * dcache.c (dcache_info): Rename to ...
4273 (info_display_command): ... this.
4274 (_initialize_dcache): Adjust.
4275 * frame.h (args_info): Rename to ...
4276 (info_args_command): ... this.
4277 (locals_info): Rename to ...
4278 (info_locals_command): ... this.
4279 * infcmd.c (nofp_registers_info): Rename to ...
4280 (info_registers_command): ... this.
4281 (float_info): Rename to ...
4282 (info_float_command): ... this.
4283 (program_info): Rename to ...
4284 (info_program_command): ... this.
4285 (all_registers_info): Rename to ...
4286 (info_all_registers_command): ... this.
4287 (vector_info): Rename to ...
4288 (info_vector_command): ... this.
4289 (float_info): Rename to ...
4290 (info_float_command): ... this.
4291 (_initialize_infcmd): Adjust.
4292 * inferior.h (term_info): Rename to ...
4293 (info_terminal_command): ... this.
4294 * inflow.c (term_info): Rename to ...
4295 (info_terminal_command): ... this.
4296 (_initialize_inflow): Adjust.
4297 * infrun.c (signals_info): Rename to ...
4298 (info_signals_command): ... this.
4299 (_initialize_infrun): Adjust.
4300 * objc-lang.c (classes_info): Rename to ...
4301 (info_classes_command): ... this.
4302 (selectors_info): Rename to ...
4303 (info_selectors_command): ... this.
4304 (_initialize_objc_language): Adjust.
4305 * printcmd.c (sym_info): Rename to ...
4306 (info_symbol_command): ... this.
4307 (address_info): Rename to ...
4308 (info_address_command): ... this.
4309 (display_info): Rename to ...
4310 (info_display_command): ... this.
4311 (_initialize_printcmd): Adjust.
4312 * reverse.c (bookmarks_info): Rename to ...
4313 (info_breakpoints_command): ... this.
4314 (_initialize_reverse): Adjust.
4315 * ser-go32.c (dos_info): Rename to ...
4316 (info_serial_command): ... this.
4317 (_initialize_ser_dos): Adjust.
4318 * skip.c (skip_info): Rename to ...
4319 (info_skip_command): ... this.
4320 (_initialize_step_skip): Adjust.
4321 * source.c (line_info): Rename to ...
4322 (info_line_command): ... this.
4323 (source_info): Rename to ...
4324 (info_source_command)
4325 * stack.c (frame_info): Rename to ...
4326 (info_frame_command): ... this.
4327 (locals_info): Rename to ...
4328 (info_locals_command): ... this.
4329 (args_info): Rename to ...
4330 (info_args_command): ... this.
4331 (_initialize_stack): Adjust.
4332 * symtab.c (sources_info): Rename to ...
4333 (info_sources_command): ... this.
4334 (variables_info): Rename to ...
4335 (info_variables_command): ... this.
4336 (functions_info): Rename to ...
4337 (info_functions_command): ... this.
4338 (types_info): Rename to ...
4339 (info_types_command): ... this.
4340 (_initialize_symtab): Adjust.
4341 * target.c (target_info): Rename to ...
4342 (info_target_command): ... this.
4343 (initialize_targets): Adjust.
4344 * tracepoint.c (tvariables_info): Rename to ...
4345 (info_tvariables_command): ... this.
4346 (scope_info): Rename to ...
4347 (info_scope_command): ... this.
4348 (trace_dump_actions): Adjust.
4349 (_initialize_tracepoint): Adjust.
4350
4351 2017-08-22 Tom Tromey <tom@tromey.com>
4352
4353 * breakpoint.h (install_breakpoint): Update.
4354 * breakpoint.c (add_solib_catchpoint): Update.
4355 (install_breakpoint): Change argument to a std::unique_ptr.
4356 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
4357 (create_breakpoint_sal, create_breakpoint): Update.
4358 (watch_command_1, catch_exec_command_1)
4359 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
4360 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
4361 Return the breakpoint.
4362 (set_raw_breakpoint_without_location, set_raw_breakpoint)
4363 (new_single_step_breakpoint): Update.
4364 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
4365 std::unique_ptr.
4366 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
4367 std::unique_ptr.
4368 * break-catch-sig.c (create_signal_catchpoint): Use
4369 std::unique_ptr.
4370 * ada-lang.c (create_ada_exception_catchpoint): Use
4371 std::unique_ptr.
4372
4373 2017-08-22 Tom Tromey <tom@tromey.com>
4374
4375 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
4376
4377 2017-08-22 Tom Tromey <tom@tromey.com>
4378
4379 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
4380 (lookup_partial_symbol): Update.
4381
4382 2017-08-22 Tom Tromey <tom@tromey.com>
4383
4384 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
4385 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
4386 (find_and_open_source, symtab_to_fullname): Update.
4387 * psymtab.c (psymtab_to_fullname): Update.
4388
4389 2017-08-22 Tom Tromey <tom@tromey.com>
4390
4391 * exec.c (exec_file_attach): Update.
4392 * linux-thread-db.c (try_thread_db_load): Update.
4393 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
4394 * utils.c (gdb_realpath): Change return type.
4395 (gdb_realpath_keepfile): Update.
4396 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
4397 (_initialize_utils): Register the new self test.
4398 * source.c (openp): Update.
4399 (find_and_open_source): Update.
4400 * nto-tdep.c (nto_find_and_open_solib): Update.
4401 * main.c (set_gdb_data_directory): Update.
4402 (captured_main_1): Update.
4403 * dwarf2read.c (dwarf2_get_dwz_file): Update
4404 (dw2_map_symbol_filenames): Update.
4405 * auto-load.c (auto_load_safe_path_vec_update): Update.
4406 (filename_is_in_auto_load_safe_path_vec): Change type of
4407 "filename_realp".
4408 (auto_load_objfile_script): Update.
4409 (file_is_auto_load_safe): Update. Use std::string.
4410 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
4411
4412 2017-08-22 Tom Tromey <tom@tromey.com>
4413
4414 * utils.c (gdb_realpath_keepfile): Return a
4415 gdb::unique_xmalloc_ptr.
4416 * exec.c (exec_file_attach): Update.
4417 * utils.h (gdb_realpath_keepfile): Return a
4418 gdb::unique_xmalloc_ptr.
4419
4420 2017-08-22 Tom Tromey <tom@tromey.com>
4421
4422 * compile/compile.c (compile_file_command): Use
4423 gdb::unique_xmalloc_ptr, std::string.
4424 * utils.c (gdb_abspath): Change return type.
4425 * source.c (openp): Update.
4426 * objfiles.c (allocate_objfile): Update.
4427 * main.c (set_gdb_data_directory): Update.
4428 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
4429
4430 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
4431
4432 * cli-cmds.c (list_commands): List actual code around more than
4433 one location.
4434
4435 2017-08-21 John Baldwin <jhb@FreeBSD.org>
4436
4437 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
4438
4439 2017-08-21 Pedro Alves <palves@redhat.com>
4440
4441 PR gdb/19487
4442 * c-exp.y (variable production): Handle function aliases.
4443 * minsyms.c (msymbol_is_text): New function.
4444 * minsyms.h (msymbol_is_text): Declare.
4445 * symtab.c (find_function_alias_target): New function.
4446 * symtab.h (find_function_alias_target): Declare.
4447
4448 2017-08-21 Pedro Alves <palves@redhat.com>
4449
4450 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
4451 typedefs.
4452 * typeprint.c (whatis_exp): If handling "whatis", and expression
4453 is OP_TYPE, strip one typedef level. Otherwise don't strip
4454 typedefs here.
4455 * valops.c (value_cast): Save "to" type before resolving
4456 stubs/typedefs. Use that type as resulting value's type.
4457
4458 2017-08-18 Tom Tromey <tom@tromey.com>
4459 Pedro Alves <palves@redhat.com>
4460
4461 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
4462 * sol-thread.c (sol_thread_resume, sol_thread_wait)
4463 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
4464 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
4465 * proc-service.c (ps_xfer_memory): Use scoped_restore.
4466 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
4467 (linux_get_siginfo_data): Add "thread" argument. Use
4468 scoped_restore.
4469 * linux-nat.c (linux_child_follow_fork)
4470 (check_stopped_by_watchpoint): Use scoped_restore.
4471 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
4472 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
4473 (restore_inferior_ptid, save_inferior_ptid): Remove.
4474 * btrace.c (btrace_fetch): Use scoped_restore.
4475 * bsd-uthread.c (bsd_uthread_fetch_registers)
4476 (bsd_uthread_store_registers): Use scoped_restore.
4477 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
4478 scoped_restore.
4479 * aix-thread.c (aix_thread_resume, aix_thread_wait)
4480 (aix_thread_xfer_partial): Use scoped_restore.
4481 * inferior.h (save_inferior_ptid): Remove.
4482
4483 2017-08-18 Yao Qi <yao.qi@linaro.org>
4484
4485 PR tdep/21818
4486 * arm-tdep.c (gdb_print_insn_arm): Mark
4487 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
4488
4489 2017-08-18 Yao Qi <yao.qi@linaro.org>
4490
4491 * NEWS: Mention GDBserver's new option "--selftest".
4492 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
4493 * selftest.c: Move it to common/selftest.c.
4494 * selftest.h: Move it to common/selftest.h.
4495 * selftest-arch.c (reset): New function.
4496 (tests_with_arch): Call reset.
4497
4498 2017-08-18 Yao Qi <yao.qi@linaro.org>
4499
4500 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
4501 instead of exception_fprintf and printf_filtered.
4502
4503 2017-08-18 Yao Qi <yao.qi@linaro.org>
4504
4505 * selftest.c (register_self_test): Rename it to
4506 selftests::register_test.
4507 (run_self_tests): selftest::run_tests.
4508 * selftest.h: Update declarations.
4509 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
4510 selftests::register_test_foreach_arch.
4511 * selftest-arch.h: Update declaration.
4512 * aarch64-tdep.c: Update.
4513 * arm-tdep.c: Likewise.
4514 * disasm-selftests.c: Likewise.
4515 * dwarf2loc.c: Likewise.
4516 * dwarf2-frame.c: Likewise.
4517 * findvar.c: Likewise.
4518 * gdbarch-selftests.c: Likewise.
4519 * maint.c (maintenance_selftest): Likewise.
4520 * regcache.c: Likewise.
4521 * rust-exp.y: Likewise.
4522 * selftest-arch.c: Likewise.
4523 * unittests/environ-selftests.c: Likewise.
4524 * unittests/function-view-selftests.c: Likewise.
4525 * unittests/offset-type-selftests.c: Likewise.
4526 * unittests/optional-selftests.c: Likewise.
4527 * unittests/scoped_restore-selftests.c: Likewise.
4528 * utils-selftests.c: Likewise.
4529
4530 2017-08-17 Pedro Alves <palves@redhat.com>
4531
4532 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
4533 local.
4534
4535 2017-08-17 Pedro Alves <palves@redhat.com>
4536
4537 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
4538 field.
4539 (reset_die_in_process): Delete, replaced by ...
4540 (process_die_scope): ... this new class. Make it responsible for
4541 freeing cu->line_header too.
4542 (process_die): Use process_die_scope.
4543 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
4544 cu->line_header_die_owner. Don't release the line header if it's
4545 owned by the CU.
4546 (setup_type_unit_groups): Make the CU/DIE own the line header.
4547 Don't release the line header here.
4548
4549 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
4550
4551 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
4552
4553 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
4554
4555 * NEWS: Mention new shortcuts for nexti and stepi in TUI
4556 Single-Key mode
4557
4558 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
4559
4560 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
4561 mode command list.
4562
4563 2017-08-15 Stafford Horne <shorne@gmail.com>
4564
4565 * MAINTAINERS (Write After Approval): Add Stafford Horne.
4566
4567 2017-08-15 Stafford Horne <shorne@gmail.com>
4568
4569 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
4570
4571 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
4572
4573 PR gdb/21954
4574 * infcmd.c (unset_environment_command): Use the 'clear' method on
4575 the environment instead of resetting it.
4576
4577 2017-08-15 John Baldwin <jhb@FreeBSD.org>
4578
4579 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
4580 platforms.
4581
4582 2017-08-14 Tom Tromey <tom@tromey.com>
4583
4584 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
4585 (print_binary_chars): Likewise.
4586 (BITS_IN_BYTES): Remove.
4587
4588 2017-08-14 Tom Tromey <tom@tromey.com>
4589
4590 PR gdb/21675
4591 * valprint.c (LOW_ZERO): Change value to 034.
4592 (print_octal_chars): Add static_asserts for octal constants.
4593 * printcmd.c (print_scalar_formatted): Add 'd' case.
4594
4595 2017-08-11 Tom Tromey <tom@tromey.com>
4596
4597 * symfile.c (add_symbol_file_command): Use std::vector.
4598
4599 2017-08-14 Tom Tromey <tom@tromey.com>
4600
4601 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
4602 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
4603 std::move.
4604 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
4605
4606 2017-08-11 Pedro Alves <palves@redhat.com>
4607
4608 * infrun.c (process_event_stop_test): Adjust
4609 function_name_is_marked_for_skip call.
4610 * skip.c: Include <list>.
4611 (skiplist_entry): Make it a class with private fields, and
4612 getters/setters.
4613 (skiplist_entry_chain): Delete.
4614 (skiplist_entries): New.
4615 (skiplist_entry_count): Delete.
4616 (highest_skiplist_entry_num): New.
4617 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
4618 (add_skiplist_entry): Delete.
4619 (skiplist_entry::skiplist_entry): New.
4620 (skiplist_entry::add_entry): New.
4621 (skip_file_command, skip_function): Adjust.
4622 (compile_skip_regexp): Delete.
4623 (skip_command): Don't compile regexp here. Adjust to use
4624 skiplist_entry::add_entry.
4625 (skip_info): Adjust to use range-for and getters.
4626 (skip_enable_command, skip_disable_command): Adjust to use
4627 range-for and setters.
4628 (skip_delete_command): Adjust to use std::list.
4629 (add_skiplist_entry): Delete.
4630 (skip_file_p): Delete, refactored as ...
4631 (skiplist_entry::do_skip_file_p): ... this new method.
4632 (skip_gfile_p): Delete, refactored as ...
4633 (skiplist_entry::do_gskip_file_p): ... this new method.
4634 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
4635 (skiplist_entry::skip_function_p): ... this new method.
4636 (function_name_is_marked_for_skip): Now returns bool, and takes
4637 the function sal by const reference. Adjust to use range-for and
4638 skiplist_entry methods.
4639 (_initialize_step_skip): Remove references to
4640 skiplist_entry_chain, skiplist_entry_count.
4641 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
4642 takes the function sal by const reference.
4643
4644 2017-08-11 Yao Qi <yao.qi@linaro.org>
4645
4646 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
4647 (dwarf2_frame_cache): Remove reset_cache_cleanup.
4648 (dwarf2_frame_cache):
4649 * frame-unwind.c (frame_unwind_try_unwinder): Catch
4650 RETURN_MASK_ALL and set *this_case to NULL.
4651 * frame-unwind.h: Update comments.
4652
4653 2017-08-11 Yao Qi <yao.qi@linaro.org>
4654
4655 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
4656 (dwarf2_frame_state_copy_regs): Remove.
4657 (dwarf2_frame_state_free_regs): Remove.
4658 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
4659 (dwarf2_restore_rule): Call method .alloc_regs instead of
4660 dwarf2_frame_state_alloc_regs.
4661 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
4662 constructor. Call std::move.
4663 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
4664 (dwarf2_frame_cache): Likewise.
4665
4666 [GDB_SELF_TEST]: Include selftest.h and
4667 selftest-arch.h.
4668 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
4669 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
4670 execute_cfa_program_test.
4671
4672 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
4673 copy ctor, assignment operator, move assignment.
4674 <alloc_regs>: New method.
4675 <swap>: New method.
4676 (struct dwarf2_frame_state): Delete dtor.
4677 (dwarf2_frame_state_alloc_regs): Remove declaration.
4678 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
4679 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
4680
4681 2017-08-11 Yao Qi <yao.qi@linaro.org>
4682
4683 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
4684 (dwarf2_frame_state::dwarf2_frame_state): New.
4685 (dwarf2_frame_state::~dwarf2_frame_state): New.
4686 (dwarf2_fetch_cfa_info): Update.
4687 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
4688 rather than a pointer. Update code.
4689 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
4690 dtor.
4691 <data_align, code_align, retaddr_column>: Change them to const.
4692 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
4693 to bool.
4694
4695 2017-08-11 Yao Qi <yao.qi@linaro.org>
4696
4697 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
4698 <loc.exp>: New field.
4699 * dwarf2-frame.c (execute_cfa_program): Update.
4700 (dwarf2_frame_prev_register): Update.
4701
4702 2017-08-10 Pedro Alves <palves@redhat.com>
4703
4704 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
4705
4706 2017-08-09 John Baldwin <jhb@FreeBSD.org>
4707
4708 * fbsd-nat.c (struct fbsd_fork_info): Remove.
4709 (fbsd_pending_children): Use std::list.
4710 (fbsd_remember_child): Likewise.
4711 (fbsd_is_child_pending): Likewise.
4712 (fbsd_pending_vfork_done): Use std::forward_list.
4713 (fbsd_add_vfork_done): Likewise.
4714 (fbsd_is_vfork_done_pending): Likewise.
4715 (fbsd_next_vfork_done): Likewise.
4716
4717 2017-08-09 John Baldwin <jhb@FreeBSD.org>
4718
4719 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
4720 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
4721 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
4722 for `mapfilename'.
4723 (fbsd_xfer_partial): Use gdb::byte_vector.
4724 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
4725
4726 2017-08-09 John Baldwin <jhb@FreeBSD.org>
4727
4728 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
4729 "filestuff.h".
4730 (fbsd_find_memory_regions): Fix `mapfile' initialization.
4731
4732 2017-08-09 Tom Tromey <tom@tromey.com>
4733
4734 * skip.c (skiplist_entry): New constructor.
4735 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
4736 (skiplist_entry::file_is_glob): Now bool.
4737 (skiplist_entry::file, skiplist_entry::function): Now
4738 std::string.
4739 (make_skip_entry): Return a unique_ptr. Use new.
4740 (free_skiplist_entry, free_skiplist_entry_cleanup)
4741 (make_free_skiplist_entry_cleanup): Remove.
4742 (skip_command, skip_disable_command, add_skiplist_entry)
4743 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
4744 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
4745 (function_name_is_marked_for_skip): Update.
4746 (skip_delete_command): Update. Use delete.
4747
4748 2017-08-09 Jiong Wang <jiong.wang@arm.com>
4749
4750 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
4751 (aarch64_linux_core_read_description): New function.
4752 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
4753
4754 2017-08-09 Pedro Alves <palves@redhat.com>
4755
4756 * cp-name-parser.y (cp_comp_to_string): Return a
4757 gdb::unique_xmalloc_ptr<char>.
4758 * cp-support.c (replace_typedefs_qualified_name)
4759 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
4760 (cp_canonicalize_string_full): Use op= instead of explicit
4761 convertion.
4762 (cp_class_name_from_physname, method_name_from_physname)
4763 (cp_func_name, cp_remove_params): Adjust to use
4764 gdb::unique_xmalloc_ptr<char>.
4765 * cp-support.h (cp_comp_to_string): Return a
4766 gdb::unique_xmalloc_ptr<char>.
4767 * python/py-type.c (typy_lookup_type): Adjust to use
4768 gdb::unique_xmalloc_ptr<char>.
4769
4770 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
4771
4772 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
4773
4774 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
4775 Yao Qi <yao.qi@linaro.org>
4776
4777 * cp-support.c (cp_canonicalize_string_full): Use
4778 gdb::unique_xmalloc_ptr<char>.
4779 (cp_canonicalize_string): Likewise.
4780
4781 2017-08-09 Yao Qi <yao.qi@linaro.org>
4782
4783 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
4784 * regformats/i386/amd64-avx-avx512.dat: Remove.
4785 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
4786 * regformats/i386/amd64-avx-mpx.dat:Remove.
4787 * regformats/i386/amd64-avx.dat: Remove.
4788 * regformats/i386/amd64-mpx.dat: Remove.
4789 * regformats/i386/i386-avx-avx512.dat: Remove.
4790 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
4791 * regformats/i386/i386-avx-mpx.dat: Remove.
4792 * regformats/i386/i386-mmx.dat: Remove.
4793 * regformats/i386/i386-mpx.dat: Remove.
4794
4795 2017-08-09 Yao Qi <yao.qi@linaro.org>
4796
4797 * amd64-tdep.h (tdesc_x32): Remove the declaration.
4798 * amd64-tdep.c: Don't include features/i386/x32*.c.
4799 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
4800 functions.
4801 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
4802 and i386/x32-avx-avx512.
4803 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
4804 and i386/x32.xml.
4805 * features/i386/x32-avx-avx512.c: Removed.
4806 * features/i386/x32-avx-avx512.xml: Removed.
4807 * features/i386/x32-avx.c: Removed.
4808 * features/i386/x32-avx.xml: Removed.
4809 * features/i386/x32.c: Removed.
4810 * features/i386/x32.xml: Removed.
4811 * regformats/i386/x32-avx-avx512.dat: Removed.
4812 * regformats/i386/x32-avx.dat: Removed.
4813 * regformats/i386/x32.dat: Removed.
4814
4815 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
4816
4817 PR breakpoints/21886
4818 * mem-break.c (default_memory_insert_breakpoint): Use
4819 `->placed_address' rather than `->reqstd_address' for the
4820 breakpoint location.
4821
4822 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
4823
4824 * arch-utils.c (default_print_insn): Remove arch/mach/endian
4825 assertions.
4826
4827 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
4828
4829 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
4830 a union of `tdep_info', `tdesc_data' and `id'.
4831 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
4832 rather than `info.tdep_info'.
4833 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
4834 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
4835 * i386-tdep.c (i386_gdbarch_init): Likewise.
4836 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
4837 * mips-tdep.c (mips_gdbarch_init): Likewise.
4838 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
4839 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
4840 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
4841 `info.tdep_info'.
4842 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
4843 `info.tdep_info'.
4844 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
4845 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
4846 `info.tdep_info'.
4847 * spu-tdep.c (spu_gdbarch_init): Likewise.
4848 * gdbarch.h: Regenerate.
4849
4850 2017-08-07 Leszek Swirski <leszeks@google.com>
4851
4852 PR symtab/20899
4853 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
4854
4855 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
4856
4857 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
4858 (gdbsim_open): Rename gdb_argv args object to argv.
4859
4860 2017-08-05 Tom Tromey <tom@tromey.com>
4861
4862 * compile/compile-object-load.c (compile_object_load): Use
4863 gdb::unique_xmalloc_ptr.
4864 * cli/cli-dump.c (scan_filename): Rename from
4865 scan_filename_with_cleanup. Change return type.
4866 (scan_expression): Rename from scan_expression_with_cleanup.
4867 Change return type.
4868 (dump_memory_to_file, dump_value_to_file, restore_command):
4869 Use gdb::unique_xmalloc_ptr. Update.
4870 * cli/cli-cmds.c (find_and_open_script): Use
4871 gdb::unique_xmalloc_ptr.
4872 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
4873 * symmisc.c (maintenance_print_symbols)
4874 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
4875 * symfile.c (symfile_bfd_open, generic_load)
4876 (add_symbol_file_command, remove_symbol_file_command): Use
4877 gdb::unique_xmalloc_ptr.
4878 * source.c (openp): Use gdb::unique_xmalloc_ptr.
4879 * psymtab.c (maintenance_print_psymbols): Use
4880 gdb::unique_xmalloc_ptr.
4881 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
4882 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
4883 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
4884 (reload_shared_libraries_1): Likewise.
4885
4886 2017-08-05 Tom Tromey <tom@tromey.com>
4887
4888 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
4889 (rust_op_vector, rust_set_vector): New typedefs.
4890 (current_parser): New global.
4891 (work_obstack): Change to pointer type. Update all users.
4892 (rust_ast, pstate): Remove globals.
4893 (struct rust_parser): New.
4894 (%union) <params, field_inits>: Change type.
4895 (start, tuple_expr, unit_expr, struct_expr_list, literal)
4896 (field_expr, expr_list, maybe_expr_list, type_list): Update.
4897 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
4898 (convert_params_to_types, convert_params_to_expression): Change
4899 type of "params".
4900 (ast_string): Change type of "fields".
4901 (rust_parse): Make a rust_parser. Remove cleanups.
4902 (rust_lex_tests): Make and install an auto_obstack.
4903
4904 2017-08-04 Yao Qi <yao.qi@linaro.org>
4905
4906 * configure.srv (ipa_x32_linux_regobj): New.
4907 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
4908 instead of X86_TDESC_AVX512.
4909 (initialize_low_tracepoint): Call
4910 init_registers_x32_avx_avx512_linux.
4911
4912 2017-08-04 Yao Qi <yao.qi@linaro.org>
4913
4914 * utils.h (gdb_argv): Add namespace std for nullptr_t.
4915
4916 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
4917
4918 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
4919
4920 2017-08-03 Tom Tromey <tom@tromey.com>
4921
4922 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
4923 Remove.
4924 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
4925
4926 2017-08-03 Tom Tromey <tom@tromey.com>
4927
4928 * python/py-param.c (compute_enum_values): Use gdb_argv.
4929
4930 2017-08-03 Tom Tromey <tom@tromey.com>
4931
4932 * utils.h (struct gdb_argv_deleter): New.
4933 (gdb_argv): New class.
4934 * utils.c (gdb_argv::reset): New method.
4935 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
4936 * tracefile.c (tsave_command): Use gdb_argv.
4937 * top.c (new_ui_command): Use gdb_argv.
4938 * symmisc.c (maintenance_print_symbols)
4939 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
4940 * symfile.c (symbol_file_command, generic_load)
4941 (remove_symbol_file_command): Use gdb_argv.
4942 * stack.c (backtrace_command): Use gdb_argv.
4943 * source.c (add_path, show_substitute_path_command)
4944 (unset_substitute_path_command, set_substitute_path_command):
4945 Use gdb_argv.
4946 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
4947 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
4948 * remote.c (extended_remote_run, remote_put_command)
4949 (remote_get_command, remote_delete_command): Use gdb_argv.
4950 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
4951 (gdbsim_open): Use gdb_argv.
4952 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
4953 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
4954 * procfs.c (procfs_info_proc): Use gdb_argv.
4955 * interps.c (interpreter_exec_cmd): Use gdb_argv.
4956 * infrun.c (handle_command): Use gdb_argv.
4957 * inferior.c (add_inferior_command, clone_inferior_command):
4958 Use gdb_argv.
4959 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
4960 * exec.c (exec_file_command): Use gdb_argv.
4961 * cli/cli-cmds.c (alias_command): Use gdb_argv.
4962 * compile/compile.c (build_argc_argv): Use gdb_argv.
4963
4964 2017-08-03 Tom Tromey <tom@tromey.com>
4965
4966 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
4967
4968 2017-08-03 Tom Tromey <tom@tromey.com>
4969
4970 * python/python.c (compute_python_string): Return std::string.
4971 (gdbpy_eval_from_control_command): Update.
4972 (do_start_initialization): Use std::string.
4973 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
4974 xstrprintf.
4975 * python/py-breakpoint.c (local_setattro): Use string_printf, not
4976 xstrprintf.
4977
4978 2017-08-03 Tom Tromey <tom@tromey.com>
4979
4980 * top.h (do_restore_instream_cleanup): Remove.
4981 * top.c (do_restore_instream_cleanup): Remove.
4982 (read_command_file): Use scoped_restore.
4983 * cli/cli-script.c (execute_user_command): Use scoped_restore.
4984
4985 2017-08-03 Tom Tromey <tom@tromey.com>
4986
4987 * cli/cli-script.c (execute_user_command)
4988 (execute_control_command): Use scoped_restore.
4989
4990 2017-08-03 Tom Tromey <tom@tromey.com>
4991
4992 * cli/cli-script.c (do_restore_user_call_depth): Remove.
4993 (execute_user_command): Remove user_call_depth; use
4994 user_args_stack's size instead.
4995
4996 2017-08-03 Tom Tromey <tom@tromey.com>
4997
4998 * top.h (in_user_command): Remove.
4999 * top.c (in_user_command): Remove.
5000 * cli/cli-script.c (do_restore_user_call_depth)
5001 (execute_user_command): Update.
5002
5003 2017-08-03 Tom Tromey <tom@tromey.com>
5004
5005 * valops.c (search_struct_method): Use gdb::byte_vector.
5006 * valarith.c (value_concat): Use std::vector.
5007 * target.c (memory_xfer_partial): Use gdb::byte_vector.
5008 (simple_search_memory): Likewise.
5009 * printcmd.c (find_string_backward): Use gdb::byte_vector.
5010 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
5011 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
5012 * elfread.c (elf_rel_plt_read): Use std::string.
5013 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
5014 * cli/cli-dump.c (restore_section_callback): Use
5015 gdb::byte_vector.
5016
5017 2017-08-03 Tom Tromey <tom@tromey.com>
5018
5019 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
5020
5021 2017-08-03 Tom Tromey <tom@tromey.com>
5022
5023 * tui/tui-regs.c (tui_restore_gdbout): Remove.
5024 (tui_register_format): Use scoped_restore.
5025
5026 2017-08-03 Tom Tromey <tom@tromey.com>
5027
5028 * reverse.c (exec_direction_default): Remove.
5029 (exec_reverse_once): Use scoped_restore.
5030 * remote.c (restore_remote_timeout): Remove.
5031 (remote_flash_erase, remote_flash_write, remote_flash_done)
5032 (readchar, remote_serial_write): Use scoped_restore.
5033 * cli/cli-script.c (struct source_cleanup_lines_args)
5034 (source_cleanup_lines): Remove.
5035 (script_from_file): Use scoped_restore.
5036 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
5037 (source_command): Use scoped_restore.
5038
5039 2017-08-03 Tom Tromey <tom@tromey.com>
5040
5041 * utils.h (make_cleanup_free_so): Remove.
5042 * utils.c (do_free_so, make_cleanup_free_so): Remove.
5043 * solist.h (struct so_deleter): New.
5044 (so_list_up): New typedef.
5045 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
5046
5047 2017-08-03 Tom Tromey <tom@tromey.com>
5048
5049 * utils.h (make_cleanup_restore_current_language): Remove.
5050 * utils.c (do_restore_current_language)
5051 (make_cleanup_restore_current_language): Remove.
5052 * parse.c (parse_exp_in_context_1)
5053 (parse_expression_with_language): Use
5054 scoped_restore_current_language.
5055 * mi/mi-main.c (mi_cmd_execute): Use
5056 scoped_restore_current_language.
5057 * language.h (scoped_restore_current_language): New class.
5058
5059 2017-08-03 Tom Tromey <tom@tromey.com>
5060
5061 * compile/compile.c (cleanup_unlink_file): Remove.
5062 (compile_to_object): Use gdb::unlinker.
5063 (eval_compile_command): Likewise.
5064
5065 2017-08-03 Tom Tromey <tom@tromey.com>
5066
5067 * utils.h (make_cleanup_fclose): Remove.
5068 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
5069
5070 2017-08-03 Tom Tromey <tom@tromey.com>
5071
5072 * top.c (open_terminal_stream): Return gdb_file_up.
5073 (new_ui_command): Update.
5074
5075 2017-08-03 Tom Tromey <tom@tromey.com>
5076
5077 * source.c (print_source_lines_base, forward_search_command)
5078 (reverse_search_command): Use gdb_file_up.
5079
5080 2017-08-03 Tom Tromey <tom@tromey.com>
5081
5082 * fbsd-nat.c (fbsd_find_memory_regions): Update.
5083
5084 2017-08-03 Tom Tromey <tom@tromey.com>
5085
5086 * cli/cli-cmds.c (find_and_open_script): Change return type.
5087 Remove "streamp" and "full_path" parameters.
5088 (source_script_with_search): Update.
5089 * auto-load.c (source_script_file): Update.
5090 * cli/cli-cmds.h (find_and_open_script): Change type.
5091 (open_script): New struct.
5092
5093 2017-08-03 Tom Tromey <tom@tromey.com>
5094
5095 * xml-support.c (xml_fetch_content_from_file): Update.
5096 * ui-file.c (stdio_file::open): Update.
5097 * tracefile-tfile.c (tfile_start): Update.
5098 * remote.c (remote_file_put, remote_file_get): Update.
5099 * nat/linux-procfs.c (linux_proc_get_int)
5100 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
5101 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
5102 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
5103 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
5104 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
5105 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
5106 * linux-nat.c (linux_proc_pending_signals): Update.
5107 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
5108 (file_closer): Remove.
5109 * compile/compile.c (compile_to_object): Update.
5110 * common/filestuff.h (struct gdb_file_deleter): New.
5111 (gdb_file_up): New typedef.
5112 (gdb_fopen_cloexec): Change return type.
5113 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
5114 * cli/cli-dump.c (fopen_with_cleanup): Remove.
5115 (dump_binary_file, restore_binary_file): Update.
5116 * auto-load.c (auto_load_objfile_script_1): Update.
5117
5118 2017-08-03 Tom Tromey <tom@tromey.com>
5119
5120 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
5121 (info_static_tracepoint_markers_command): Likewise.
5122 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
5123 * skip.c (skip_info): Use ui_out_emit_table.
5124 * progspace.c (print_program_space): Use ui_out_emit_table.
5125 * osdata.c (info_osdata): Use ui_out_emit_table.
5126 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
5127 ui_out_emit_table.
5128 * linux-thread-db.c (info_auto_load_libthread_db): Use
5129 ui_out_emit_table.
5130 * inferior.c (print_inferior): Use ui_out_emit_table.
5131 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
5132 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
5133 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
5134 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
5135 * ui-out.h (class ui_out_emit_table): New.
5136
5137 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
5138
5139 * mips-tdep.c (mips_fpu_type_str): New function.
5140 (mips_dump_tdep): Call it.
5141
5142 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
5143
5144 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
5145 `->mips_fpu_type'.
5146
5147 2017-07-31 Xavier Roirand <roirand@adacore.com>
5148
5149 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
5150
5151 2017-07-27 Xavier Roirand <roirand@adacore.com>
5152
5153 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
5154
5155 2017-07-26 Yao Qi <yao.qi@linaro.org>
5156
5157 * cli/cli-cmds.c (maintenancechecklist): New variable.
5158 * gdbcmd.h (maintenancechecklist): Declare it.
5159 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
5160 Call i386_linux_read_description with different masks.
5161 * maint.c (maintenance_check_command): New function.
5162 (_initialize_maint_cmds): Call add_prefix_cmd.
5163 * target-descriptions.c (tdesc_reg): override operator != and ==.
5164 (tdesc_type): Likewise.
5165 (tdesc_feature): Likewise.
5166 (target_desc): Likewise.
5167 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
5168 (maintenance_check_xml_descriptions): New function.
5169 (_initialize_target_descriptions) Add command "xml-descriptions".
5170 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
5171
5172 2017-07-26 Yao Qi <yao.qi@linaro.org>
5173
5174 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
5175 Include features/i386/32bit-*.c.
5176 (i386_linux_read_description): Generate target description if it
5177 doesn't exist.
5178 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
5179 functions.
5180 * features/i386/32bit-linux.c: Re-generated.
5181 * features/i386/32bit-sse.c: Likewise.
5182 * target-descriptions.c (print_c_feature::visit): Print code to
5183 set register number if needed.
5184 (print_c_feature) <m_next_regnum>: New field.
5185
5186 2017-07-26 Yao Qi <yao.qi@linaro.org>
5187
5188 * features/Makefile (CFILES): Rename with TDESC_CFILES.
5189 (FEATURE_XMLFILES): New.
5190 (FEATURE_CFILES): New.
5191 New rules.
5192 (clean-cfiles): Remove generated c files.
5193 * features/i386/32bit-avx.c: Generated.
5194 * features/i386/32bit-avx512.c: Generated.
5195 * features/i386/32bit-core.c: Generated.
5196 * features/i386/32bit-linux.c: Generated.
5197 * features/i386/32bit-mpx.c: Generated.
5198 * features/i386/32bit-pkeys.c: Generated.
5199 * features/i386/32bit-sse.c: Generated.
5200 * target-descriptions.c: Include algorithm.
5201 (tdesc_element_visitor): Add method visit_end.
5202 (print_c_tdesc): Implement visit_end.
5203 (print_c_tdesc:: m_filename_after_features): Move it to
5204 protected.
5205 (print_c_feature): New class.
5206 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
5207 name starts with "i386/32bit-".
5208
5209 2017-07-26 Yao Qi <yao.qi@linaro.org>
5210
5211 * target-descriptions.c (tdesc_element_visitor): New class.
5212 (tdesc_element): New class.
5213 (tdesc_reg): Inherit from tdesc_element.
5214 (tdesc_reg::accept): New function.
5215 (tdesc_type): Inherit from tdesc_element.
5216 (tdesc_type::accept): New function.
5217 (tdesc_feature): Inherit from tdesc_element.
5218 (tdesc_feature::accept): New function.
5219 (target_desc): Inherit from tdesc_element.
5220 (target_desc::target_desc): New.
5221 (target_desc::~target_desc): New.
5222 (target_desc::accept): New.
5223 (allocate_target_description): Use new.
5224 (free_target_description): Use delete.
5225 (print_c_tdesc): New class.
5226 (maint_print_c_tdesc_cmd): Adjust.
5227
5228 * features/aarch64.c: Re-generated.
5229 * features/arc-arcompact.c: Re-generated.
5230 * features/arc-v2.c: Re-generated.
5231 * features/arm/arm-with-iwmmxt.c: Re-generated.
5232 * features/arm/arm-with-m.c: Re-generated.
5233 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
5234 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
5235 * features/arm/arm-with-neon.c: Re-generated.
5236 * features/arm/arm-with-vfpv2.c: Re-generated.
5237 * features/arm/arm-with-vfpv3.c: Re-generated.
5238 * features/i386/amd64-avx-avx512.c: Re-generated.
5239 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
5240 * features/i386/amd64-avx.c: Re-generated.
5241 * features/i386/amd64-avx-linux.c: Re-generated.
5242 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
5243 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
5244 * features/i386/amd64-avx-mpx.c: Re-generated.
5245 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
5246 * features/i386/amd64.c: Re-generated.
5247 * features/i386/amd64-linux.c: Re-generated.
5248 * features/i386/amd64-mpx.c: Re-generated.
5249 * features/i386/amd64-mpx-linux.c: Re-generated.
5250 * features/i386/i386-avx-avx512.c: Re-generated.
5251 * features/i386/i386-avx-avx512-linux.c: Re-generated.
5252 * features/i386/i386-avx.c: Re-generated.
5253 * features/i386/i386-avx-linux.c: Re-generated.
5254 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
5255 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
5256 * features/i386/i386-avx-mpx.c: Re-generated.
5257 * features/i386/i386-avx-mpx-linux.c: Re-generated.
5258 * features/i386/i386.c: Re-generated.
5259 * features/i386/i386-linux.c: Re-generated.
5260 * features/i386/i386-mmx.c: Re-generated.
5261 * features/i386/i386-mmx-linux.c: Re-generated.
5262 * features/i386/i386-mpx.c: Re-generated.
5263 * features/i386/i386-mpx-linux.c: Re-generated.
5264 * features/i386/x32-avx-avx512.c: Re-generated.
5265 * features/i386/x32-avx-avx512-linux.c: Re-generated.
5266 * features/i386/x32-avx.c: Re-generated.
5267 * features/i386/x32-avx-linux.c: Re-generated.
5268 * features/i386/x32.c: Re-generated.
5269 * features/i386/x32-linux.c: Re-generated.
5270 * features/microblaze.c: Re-generated.
5271 * features/microblaze-with-stack-protect.c: Re-generated.
5272 * features/mips64-dsp-linux.c: Re-generated.
5273 * features/mips64-linux.c: Re-generated.
5274 * features/mips-dsp-linux.c: Re-generated.
5275 * features/mips-linux.c: Re-generated.
5276 * features/nds32.c: Re-generated.
5277 * features/nios2.c: Re-generated.
5278 * features/nios2-linux.c: Re-generated.
5279 * features/rs6000/powerpc-32.c: Re-generated.
5280 * features/rs6000/powerpc-32l.c: Re-generated.
5281 * features/rs6000/powerpc-403.c: Re-generated.
5282 * features/rs6000/powerpc-403gc.c : Re-generated.
5283 * features/rs6000/powerpc-405.c: Re-generated.
5284 * features/rs6000/powerpc-505.c: Re-generated.
5285 * features/rs6000/powerpc-601.c: Re-generated.
5286 * features/rs6000/powerpc-602.c: Re-generated.
5287 * features/rs6000/powerpc-603.c: Re-generated.
5288 * features/rs6000/powerpc-604.c: Re-generated.
5289 * features/rs6000/powerpc-64.c: Re-generated.
5290 * features/rs6000/powerpc-64l.c: Re-generated.
5291 * features/rs6000/powerpc-7400.c: Re-generated.
5292 * features/rs6000/powerpc-750.c: Re-generated.
5293 * features/rs6000/powerpc-860.c: Re-generated.
5294 * features/rs6000/powerpc-altivec32.c: Re-generated.
5295 * features/rs6000/powerpc-altivec32l.c: Re-generated.
5296 * features/rs6000/powerpc-altivec64.c: Re-generated.
5297 * features/rs6000/powerpc-altivec64l.c: Re-generated.
5298 * features/rs6000/powerpc-cell32l.c: Re-generated.
5299 * features/rs6000/powerpc-cell64l.c: Re-generated.
5300 * features/rs6000/powerpc-e500.c: Re-generated.
5301 * features/rs6000/powerpc-e500l.c: Re-generated.
5302 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
5303 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
5304 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
5305 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
5306 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
5307 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
5308 * features/rs6000/powerpc-vsx32.c: Re-generated.
5309 * features/rs6000/powerpc-vsx32l.c: Re-generated.
5310 * features/rs6000/powerpc-vsx64.c: Re-generated.
5311 * features/rs6000/powerpc-vsx64l.c: Re-generated.
5312 * features/rs6000/rs6000.c: Re-generated.
5313 * features/s390-linux32.c: Re-generated.
5314 * features/s390-linux32v1.c: Re-generated.
5315 * features/s390-linux32v2.c: Re-generated.
5316 * features/s390-linux64.c: Re-generated.
5317 * features/s390-linux64v1.c: Re-generated.
5318 * features/s390-linux64v2.c: Re-generated.
5319 * features/s390-te-linux64.c: Re-generated.
5320 * features/s390-tevx-linux64.c: Re-generated.
5321 * features/s390-vx-linux64.c: Re-generated.
5322 * features/s390x-linux64.c: Re-generated.
5323 * features/s390x-linux64v1.c: Re-generated.
5324 * features/s390x-linux64v2.c: Re-generated.
5325 * features/s390x-te-linux64.c: Re-generated.
5326 * features/s390x-tevx-linux64.c: Re-generated.
5327 * features/s390x-vx-linux64.c: Re-generated.
5328 * features/sparc/sparc32-solaris.c: Re-generated.
5329 * features/sparc/sparc64-solaris.c: Re-generated.
5330 * features/tic6x-c62x.c: Re-generated.
5331 * features/tic6x-c62x-linux.c: Re-generated.
5332 * features/tic6x-c64x.c: Re-generated.
5333 * features/tic6x-c64x-linux.c: Re-generated.
5334 * features/tic6x-c64xp.c: Re-generated.
5335 * features/tic6x-c64xp-linux.c: Re-generated.
5336
5337 2017-07-26 Yao Qi <yao.qi@linaro.org>
5338
5339 * i386-linux-tdep.c (i386_linux_read_description): New function.
5340 (i386_linux_core_read_description): Call
5341 i386_linux_read_description.
5342 * i386-linux-tdep.h (i386_linux_read_description): Declare.
5343 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
5344 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
5345 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
5346 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
5347 * x86-linux-nat.c (x86_linux_read_description): Call
5348 i386_linux_read_description.
5349
5350 2017-07-26 Yao Qi <yao.qi@linaro.org>
5351
5352 * NEWS: Mention it.
5353 * features/Makefile (%.c: %.xml): Pass the xml file name to
5354 command "maint print c-tdesc".
5355 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
5356 name from 'arg'.
5357
5358 2017-07-26 Yao Qi <yao.qi@linaro.org>
5359
5360 * target-descriptions.c (target_desc): Add ctor and dtor. Do
5361 in-class initialization.
5362 (tdesc_create_feature): Call new instead of XCNEW.
5363 (free_target_description): Ue delete.
5364
5365 2017-07-25 John Baldwin <jhb@FreeBSD.org>
5366
5367 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
5368
5369 2017-07-25 Yao Qi <yao.qi@linaro.org>
5370
5371 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
5372 constant.
5373 (amd64_x32_init_abi): Likewise.
5374 * amd64-tdep.h (amd64_init_abi): Update declaration.
5375 (amd64_x32_init_abi): Likewise.
5376
5377 2017-07-25 Yao Qi <yao.qi@linaro.org>
5378
5379 PR tdep/21717
5380 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
5381 condition for FPSCR.
5382 (arm_linux_store_inferior_registers): Likewise.
5383
5384 2017-07-22 Tom Tromey <tom@tromey.com>
5385
5386 * break-catch-syscall.c (struct catch_syscall_inferior_data)
5387 <syscalls_counts>: Now a std::vector.
5388 (get_catch_syscall_inferior_data): Use "new".
5389 (catch_syscall_inferior_data_cleanup): Use "delete".
5390 (insert_catch_syscall, remove_catch_syscall)
5391 (clear_syscall_counts): Update.
5392
5393 2017-07-22 Tom Tromey <tom@tromey.com>
5394
5395 * break-catch-syscall.c (syscall_catchpoint)
5396 <syscalls_to_be_caught>: Now a std::vector<int>
5397 (~syscall_catchpoint): Remove.
5398 (insert_catch_syscall, remove_catch_syscall)
5399 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5400 (print_mention_catch_syscall, print_recreate_catch_syscall):
5401 Update.
5402 (create_syscall_event_catchpoint): Change type of "filter"
5403 parameter.
5404 (catch_syscall_split_args): Return a std::vector.
5405 (catch_syscall_command_1, catching_syscall_number_1): Update.
5406
5407 2017-07-22 Tom Tromey <tom@tromey.com>
5408
5409 * break-catch-throw.c (struct exception_catchpoint)
5410 <exception_rx>: Now a std::string.
5411 (~exception_catchpoint): Remove.
5412 (print_one_detail_exception_catchpoint): Update.
5413 (handle_gnu_v3_exceptions): Change type of except_rx.
5414 (extract_exception_regexp): Return a std::string.
5415 (catch_exception_command_1): Update.
5416
5417 2017-07-22 Tom Tromey <tom@tromey.com>
5418
5419 * break-catch-sig.c (gdb_signal_type): Remove typedef.
5420 (struct signal_catchpoint) <signals_to_be_caught>: Now a
5421 std::vector.
5422 <catch_all>: Now a bool.
5423 (~signal_catchpoint): Remove.
5424 (signal_catchpoint_insert_location)
5425 (signal_catchpoint_remove_location)
5426 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
5427 (signal_catchpoint_print_mention)
5428 (signal_catchpoint_print_recreate)
5429 (signal_catchpoint_explains_signal): Update.
5430 (create_signal_catchpoint): Change type of "filter" and
5431 "catch_all".
5432 (catch_signal_split_args): Return a std::vector. Change type of
5433 "catch_all".
5434 (catch_signal_command): Update.
5435
5436 2017-07-20 Pedro Alves <palves@redhat.com>
5437
5438 * ada-lang.c (ada_language_defn): Make extern.
5439 (_initialize_ada_language): Remove add_language call.
5440 * c-lang.c (c_language_defn, cplus_language_defn)
5441 (asm_language_defn, minimal_language_defn): Make extern.
5442 (_initialize_c_language): Delete.
5443 * completer.c (compare_cstrings): Delete, moved to utils.h.
5444 * d-lang.c (d_language_defn): Make extern.
5445 (_initialize_d_language): Remove add_language calls.
5446 * defs.h (enum language): Add comment.
5447 * f-lang.c (f_language_defn): Make extern.
5448 (_initialize_f_language): Remove add_language call.
5449 * go-lang.c (go_language_defn): Make extern.
5450 (_initialize_go_language): Remove add_language call.
5451 * language.c: Include <algorithm>.
5452 (languages): Redefine as const array.
5453 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
5454 (set_language_command): Handle "local". Use for-range loop.
5455 (set_language): Remove loop.
5456 (language_enum): Rewrite.
5457 (language_def, language_str): Remove loops.
5458 (add_language): Delete.
5459 (add_set_language_command): New, based on add_languages.
5460 (skip_language_trampoline): Adjust.
5461 (local_language_defn): Delete.
5462 (language_gdbarch_post_init): Adjust.
5463 (_initialize_language): Remove add_language calls. Call
5464 add_set_language_command.
5465 * language.h (add_language): Delete.
5466 (auto_language_defn)
5467 (unknown_language_defn, minimal_language_defn, ada_language_defn)
5468 (asm_language_defn, c_language_defn, cplus_language_defn)
5469 (d_language_defn, f_language_defn, go_language_defn)
5470 (m2_language_defn, objc_language_defn, opencl_language_defn)
5471 (pascal_language_defn, rust_language_defn): Declare.
5472 * m2-lang.c (m2_language_defn): Make extern.
5473 (_initialize_m2_language): Remove add_language call.
5474 * objc-lang.c (objc_language_defn): Make extern.
5475 (_initialize_objc_language): Remove add_language call.
5476 * opencl-lang.c (opencl_language_defn): Make extern.
5477 (_initialize_opencl_language): Remove add_language call.
5478 * p-lang.c (pascal_language_defn): Make extern.
5479 (_initialize_pascal_language): Delete.
5480 * rust-lang.c (rust_language_defn): Make extern.
5481 (_initialize_rust_language): Delete.
5482 * utils.h (compare_cstrings): New static inline function.
5483
5484 2017-07-20 Pedro Alves <palves@redhat.com>
5485
5486 * ada-lang.c (ada_to_fixed_type_1): Adjust.
5487 (get_var_value): Constify parameters.
5488 (get_int_var_value): Change prototype.
5489 (to_fixed_range_type): Adjust.
5490 * ada-lang.h (get_int_var_value): Change prototype.
5491
5492 2017-07-20 Pedro Alves <palves@redhat.com>
5493
5494 * dwarf2read.c (dw2_lookup_symbol): Use
5495 SYMBOL_MATCHES_SEARCH_NAME.
5496 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
5497
5498 2017-07-20 Pedro Alves <palves@redhat.com>
5499
5500 * block.c (block_iter_name_step, block_iter_name_first)
5501 (block_iter_name_next): Delete.
5502 (block_lookup_symbol_primary): Adjust to use
5503 dict_iter_match_first/dict_iter_match_next.
5504 * block.h (block_iter_name_first, block_iter_name_next): Delete
5505 declarations.
5506 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
5507 dict_iter_match_first/dict_iter_match_next.
5508
5509 2017-07-20 Pedro Alves <palves@redhat.com>
5510
5511 * cp-support.c (cp_find_first_component_aux): Add missing case for
5512 end of string.
5513
5514 2017-07-18 David Blaikie <dblaikie@gmail.com>
5515
5516 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
5517 of dwo_cu's dwo_file.
5518
5519 2017-07-18 Yao Qi <yao.qi@linaro.org>
5520
5521 * remote.c (store_registers_using_G): Remove one line comment.
5522
5523 2017-07-18 Yao Qi <yao.qi@linaro.org>
5524
5525 * regcache.c (regcache_cpy): Simplify it.
5526 (regcache::cpy_no_passthrough): Remove it.
5527 * regcache.h (cpy_no_passthrough): Remove it.
5528 (regcache_dup, regcache_cpy): Update comments.
5529
5530 2017-07-18 Pedro Alves <palves@redhat.com>
5531
5532 * remote-sim.c (sim_command_completer): Adjust to work with a
5533 completion_tracker instead of a VEC.
5534
5535 2017-07-17 Pedro Alves <palves@redhat.com>
5536
5537 * completer.c (complete_source_filenames): New function.
5538 (complete_address_and_linespec_locations): New function.
5539 (location_completer): Use complete_address_and_linespec_locations.
5540 (completion_tracker::build_completion_result): Honor the tracker's
5541 request to suppress append.
5542 * completer.h (completion_tracker::suppress_append_ws)
5543 (completion_tracker::set_suppress_append_ws): New methods.
5544 (completion_tracker::m_suppress_append_ws): New field.
5545 (complete_source_filenames): New declaration.
5546 * linespec.c (linespec_complete_what): New.
5547 (struct ls_parser) <complete_what, completion_word,
5548 completion_quote_char, completion_quote_end, completion_tracker>:
5549 New fields.
5550 (string_find_incomplete_keyword_at_end): New.
5551 (linespec_lexer_lex_string): Record quote char. If in completion
5552 mode, don't throw.
5553 (linespec_lexer_consume_token): Advance the completion word point.
5554 (linespec_lexer_peek_token): Save/restore completion info.
5555 (save_stream_and_consume_token): New.
5556 (set_completion_after_number): New.
5557 (linespec_parse_basic): Set what to complete next depending on
5558 token. Handle function and label completions specially.
5559 (parse_linespec): Disable objc shortcut in completion mode. Set
5560 what to complete next depending on token type. Skip keyword if in
5561 completion mode.
5562 (complete_linespec_component, linespec_complete): New.
5563 * linespec.h (linespec_complete): Declare.
5564
5565 2017-07-17 Pedro Alves <palves@redhat.com>
5566
5567 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
5568 Handle 'operator<' / 'operator<<'.
5569
5570 2017-07-17 Pedro Alves <palves@redhat.com>
5571
5572 * completer.c (collect_explicit_location_matches): Handle
5573 MATCH_LABEL.
5574 (convert_explicit_location_to_linespec): New, factored out from
5575 ...
5576 (convert_explicit_location_to_sals): ... this.
5577 (complete_label): New.
5578 (linespec_complete_label, find_label_symbols_in_block): New.
5579 (find_label_symbols): Add completion_mode parameter and adjust to
5580 call find_label_symbols_in_block.
5581 * linespec.h (linespec_complete_label): Declare.
5582
5583 2017-07-17 Pedro Alves <palves@redhat.com>
5584
5585 * ada-lang.c (ada_collect_symbol_completion_matches): Add
5586 complete_symbol_mode parameter.
5587 * cli/cli-cmds.c (complete_command): Get the completion result out
5588 of the handle_brkchars tracker if used a custom word point.
5589 * completer.c: Include "linespec.h".
5590 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
5591 (advance_to_expression_complete_word_point): New.
5592 (completion_tracker::completes_to_completion_word): New.
5593 (complete_files_symbols): Pass down
5594 complete_symbol_mode::EXPRESSION.
5595 (explicit_options, probe_options): New.
5596 (collect_explicit_location_matches): Complete on the
5597 explictit_loc->foo instead of word. Use
5598 linespec_complete_function. Handle MATCH_LINE. Handle offering
5599 keyword and options completions.
5600 (backup_text_ptr): Delete.
5601 (skip_keyword): New.
5602 (complete_explicit_location): Remove 'word' parameter. Add
5603 language, quoted_arg_start and quoted_arg_end parameters.
5604 Rewrite, parsing left to right.
5605 (location_completer): Rewrite.
5606 (location_completer_handle_brkchars): New function.
5607 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
5608 (enum complete_line_internal_reason): Adjust comments.
5609 (completion_tracker::discard_completions): New.
5610 (completer_handle_brkchars_func_for_completer): Handle
5611 location_completer.
5612 (gdb_custom_word_point_brkchars)
5613 (gdb_org_rl_basic_quote_characters): New.
5614 (gdb_completion_word_break_characters_throw)
5615 (completion_find_completion_word): Handle trackers that use a
5616 custom word point.
5617 (completion_tracker::advance_custom_word_point_by): New.
5618 (completion_tracker::build_completion_result): Don't rely on
5619 readline appending the quote char.
5620 (gdb_rl_attempted_completion_function_throw): Handle trackers that
5621 use a custom word point.
5622 (gdb_rl_attempted_completion_function): Restore
5623 rl_basic_quote_characters.
5624 * completer.h (class completion_tracker): Extend intro comment.
5625 (completion_tracker::set_quote_char)
5626 (completion_tracker::quote_char)
5627 (completion_tracker::set_use_custom_word_point)
5628 (completion_tracker::use_custom_word_point)
5629 (completion_tracker::custom_word_point)
5630 (completion_tracker::set_custom_word_point)
5631 (completion_tracker::advance_custom_word_point_by)
5632 (completion_tracker::completes_to_completion_word)
5633 (completion_tracker::discard_completions): New methods.
5634 (completion_tracker::m_quote_char)
5635 (completion_tracker::m_use_custom_word_point)
5636 (completion_tracker::m_custom_word_point): New fields.
5637 (advance_to_expression_complete_word_point): Declare.
5638 * f-lang.c (f_collect_symbol_completion_matches): Add
5639 complete_symbol_mode parameter.
5640 * language.h (struct language_defn)
5641 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
5642 parameter.
5643 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
5644 (linespec_complete_function): New function.
5645 (linespec_lexer_lex_keyword): Adjust.
5646 * linespec.h (linespec_keywords, linespec_complete_function): New
5647 declarations.
5648 * location.c (find_end_quote): New function.
5649 (explicit_location_lex_one): Add explicit_completion_info
5650 parameter. Save quoting info. Don't throw if being called for
5651 completion. Don't handle Ada operators here.
5652 (is_cp_operator, skip_op_false_positives, first_of)
5653 (explicit_location_lex_one_function): New function.
5654 (string_to_explicit_location): Replace 'dont_throw' parameter with
5655 an explicit_completion_info pointer parameter. Handle it. Don't
5656 use explicit_location_lex_one to lex function names. Use
5657 explicit_location_lex_one_function instead.
5658 * location.h (struct explicit_completion_info): New.
5659 (string_to_explicit_location): Replace 'dont_throw' parameter with
5660 an explicit_completion_info pointer parameter.
5661 * symtab.c (default_collect_symbol_completion_matches_break_on):
5662 Add complete_symbol_mode parameter. Handle LINESPEC mode.
5663 (default_collect_symbol_completion_matches)
5664 (collect_symbol_completion_matches): Add complete_symbol_mode
5665 parameter.
5666 (collect_symbol_completion_matches_type): Pass down
5667 complete_symbol_mode::EXPRESSION.
5668 (collect_file_symbol_completion_matches): Add complete_symbol_mode
5669 parameter. Handle LINESPEC mode.
5670 * symtab.h (complete_symbol_mode): New.
5671 (default_collect_symbol_completion_matches_break_on)
5672 (default_collect_symbol_completion_matches)
5673 (collect_symbol_completion_matches)
5674 (collect_file_symbol_completion_matches): Add complete_symbol_mode
5675 parameter.
5676
5677 2017-07-17 Pedro Alves <palves@redhat.com>
5678
5679 * utils.c (enum class strncmp_iw_mode): New.
5680 (strcmp_iw): Rename to ...
5681 (strncmp_iw_with_mode): ... this. Add string2_len and mode
5682 parameters. Handle them.
5683 (strncmp_iw): New.
5684 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
5685 * utils.h (strncmp_iw): Declare.
5686 (strcmp_iw): Move describing comments here.
5687
5688 2017-07-17 Pedro Alves <palves@redhat.com>
5689
5690 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
5691 CP_OPERATOR_STR.
5692 * c-typeprint.c (is_type_conversion_operator): Use
5693 CP_OPERATOR_STR.
5694 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
5695 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
5696 CP_OPERATOR_LEN.
5697 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
5698 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
5699 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
5700 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
5701 CP_OPERATOR_STR.
5702 * location.c: Include "cp-support.h".
5703 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
5704 CP_OPERATOR_STR.
5705 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
5706 CP_OPERATOR_LEN.
5707
5708 2017-07-17 Pedro Alves <palves@redhat.com>
5709
5710 * cli/cli-cmds.c (complete_command): Use a completion tracker
5711 along with completion_find_completion_word for handle_brkchars
5712 phase.
5713 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
5714 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
5715 (struct gdb_rl_completion_word_info): New.
5716 (gdb_rl_find_completion_word): New.
5717 (completion_find_completion_word): New.
5718 * completer.h (completion_find_completion_word): Declare.
5719
5720 2017-07-17 Pedro Alves <palves@redhat.com>
5721
5722 * ada-lang.c (symbol_completion_match): Adjust comments.
5723 (symbol_completion_add): Replace vector parameter with
5724 completion_tracker parameter. Use it.
5725 (ada_make_symbol_completion_list): Rename to...
5726 (ada_collect_symbol_completion_matches): ... this. Add
5727 completion_tracker parameter and use it.
5728 (ada_language_defn): Adjust.
5729 * break-catch-syscall.c (catch_syscall_completer): Adjust
5730 prototype and work with completion_tracker instead of VEC.
5731 * breakpoint.c (condition_completer): Adjust prototype and work
5732 with completion_tracker instead of VEC.
5733 * c-lang.c (c_language_defn, cplus_language_defn)
5734 (asm_language_defn, minimal_language_defn): Adjust to renames.
5735 * cli/cli-cmds.c (complete_command): Rework using
5736 completion_tracker. Catch exceptions when completing.
5737 * cli/cli-decode.c (integer_unlimited_completer)
5738 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
5739 with completion_tracker instead of VEC.
5740 * command.h (struct completion_tracker): Forward declare.
5741 (completer_ftype, completer_handle_brkchars_ftype): Change
5742 types.
5743 (complete_on_cmdlist, complete_on_enum): Adjust.
5744 * completer.c: Include <algorithm>.
5745 (struct gdb_completer_state): New.
5746 (current_completion): New global.
5747 (readline_line_completion_function): Delete.
5748 (noop_completer, filename_completer)
5749 (filename_completer_handle_brkchars, complete_files_symbols)
5750 (linespec_location_completer): Adjust to work with a
5751 completion_tracker instead of a VEC.
5752 (string_or_empty): New.
5753 (collect_explicit_location_matches): Adjust to work with a
5754 completion_tracker instead of a VEC.
5755 (explicit_location_completer): Rename to ...
5756 (complete_explicit_location): ... this and adjust to work with a
5757 completion_tracker instead of a VEC.
5758 (location_completer): Adjust to work with a completion_tracker
5759 instead of a VEC.
5760 (add_struct_fields): Adjust to work with a completion_list instead
5761 of VEC.
5762 (expression_completer): Rename to ...
5763 (complete_expression): ... this and adjust to work with a
5764 completion_tracker instead of a VEC. Use complete_files_symbols.
5765 (expression_completer): Reimplement on top of complete_expression.
5766 (symbol_completer): Adjust to work with a completion_tracker
5767 instead of a VEC.
5768 (enum complete_line_internal_reason): Add describing comments.
5769 (complete_line_internal_normal_command): Adjust to work with a
5770 completion_tracker instead of a VEC.
5771 (complete_line_internal): Rename to ...
5772 (complete_line_internal_1): ... this and adjust to work with a
5773 completion_tracker instead of a VEC. Assert TEXT is NULL in the
5774 handle_brkchars phase.
5775 (new_completion_tracker): Delete.
5776 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
5777 complete_line_internal_1.
5778 (free_completion_tracker): Delete.
5779 (INITIAL_COMPLETION_HTAB_SIZE): New.
5780 (completion_tracker::completion_tracker)
5781 (completion_tracker::~completion_tracker): New.
5782 (maybe_add_completion): Delete.
5783 (completion_tracker::maybe_add_completion)
5784 (completion_tracker::add_completion)
5785 (completion_tracker::add_completions): New.
5786 (throw_max_completions_reached_error): Delete.
5787 (complete_line): Adjust to work with a completion_tracker instead
5788 of a VEC. Don't create a completion_tracker_t or check for max
5789 completions here.
5790 (command_completer, command_completer_handle_brkchars)
5791 (signal_completer, reg_or_group_completer_1)
5792 (reg_or_group_completer, default_completer_handle_brkchars):
5793 Adjust to work with a completion_tracker.
5794 (gdb_completion_word_break_characters_throw): New.
5795 (gdb_completion_word_break_characters): Reimplement.
5796 (line_completion_function): Delete.
5797 (completion_tracker::recompute_lowest_common_denominator)
5798 (expand_preserving_ws)
5799 (completion_tracker::build_completion_result)
5800 (completion_result::completion_result)
5801 (completion_result::completion_result)
5802 (completion_result::~completion_result)
5803 (completion_result::completion_result)
5804 (completion_result::release_match_list, compare_cstrings)
5805 (completion_result::sort_match_list)
5806 (completion_result::reset_match_list)
5807 (gdb_rl_attempted_completion_function_throw)
5808 (gdb_rl_attempted_completion_function): New.
5809 * completer.h (completion_list, struct completion_result)
5810 (class completion_tracker): New.
5811 (complete_line): Add completion_tracker parameter.
5812 (readline_line_completion_function): Delete.
5813 (gdb_rl_attempted_completion_function): New.
5814 (noop_completer, filename_completer, expression_completer)
5815 (location_completer, symbol_completer, command_completer)
5816 (signal_completer, reg_or_group_completer): Update prototypes.
5817 (completion_tracker_t, new_completion_tracker)
5818 (make_cleanup_free_completion_tracker): Delete.
5819 (enum maybe_add_completion_enum): Delete.
5820 (maybe_add_completion): Delete.
5821 (throw_max_completions_reached_error): Delete.
5822 * corefile.c (complete_set_gnutarget): Adjust to work with a
5823 completion_tracker instead of a VEC.
5824 * cp-abi.c (cp_abi_completer): Adjust to work with a
5825 completion_tracker instead of a VEC.
5826 * d-lang.c (d_language_defn): Adjust.
5827 * disasm.c (disassembler_options_completer): Adjust to work with a
5828 completion_tracker instead of a VEC.
5829 * f-lang.c (f_make_symbol_completion_list): Rename to ...
5830 (f_collect_symbol_completion_matches): ... this. Adjust to work
5831 with a completion_tracker instead of a VEC.
5832 (f_language_defn): Adjust.
5833 * go-lang.c (go_language_defn): Adjust.
5834 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
5835 Adjust to work with a completion_tracker instead of a VEC.
5836 * infrun.c (handle_completer): Likewise.
5837 * interps.c (interpreter_completer): Likewise.
5838 * interps.h (interpreter_completer): Likewise.
5839 * language.c (unknown_language_defn, auto_language_defn)
5840 (local_language_defn): Adjust.
5841 * language.h (language_defn::la_make_symbol_completion_list):
5842 Rename to ...
5843 (language_defn::la_collect_symbol_completion_matches): ... this
5844 and adjust to work with a completion_tracker instead of a VEC.
5845 * m2-lang.c (m2_language_defn): Adjust.
5846 * objc-lang.c (objc_language_defn): Adjust.
5847 * opencl-lang.c (opencl_language_defn): Adjust.
5848 * p-lang.c (pascal_language_defn): Adjust.
5849 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
5850 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
5851 with a completion_tracker.
5852 * rust-lang.c (rust_language_defn): Adjust.
5853 * symtab.c (free_completion_list, do_free_completion_list)
5854 (return_val, completion_tracker): Delete.
5855 (completion_list_add_name, completion_list_add_symbol)
5856 (completion_list_add_msymbol, completion_list_objc_symbol)
5857 (completion_list_add_fields, add_symtab_completions): Add
5858 completion_tracker parameter and use it.
5859 (default_make_symbol_completion_list_break_on_1): Rename to...
5860 (default_collect_symbol_completion_matches_break_on): ... this.
5861 Add completion_tracker parameter and use it instead of allocating
5862 a completion tracker here.
5863 (default_make_symbol_completion_list_break_on): Delete old
5864 implementation.
5865 (default_make_symbol_completion_list): Delete.
5866 (default_collect_symbol_completion_matches): New.
5867 (make_symbol_completion_list): Delete.
5868 (collect_symbol_completion_matches): New.
5869 (make_symbol_completion_type): Rename to ...
5870 (collect_symbol_completion_matches_type): ... this. Add
5871 completion_tracker parameter and use it instead of VEC.
5872 (make_file_symbol_completion_list_1): Rename to...
5873 (collect_file_symbol_completion_matches): ... this. Add
5874 completion_tracker parameter and use it instead of VEC.
5875 (make_file_symbol_completion_list): Delete.
5876 (add_filename_to_list): Use completion_list instead of a VEC.
5877 (add_partial_filename_data::list): Now a completion_list.
5878 (make_source_files_completion_list): Work with a completion_list
5879 instead of a VEC.
5880 * symtab.h: Include "completer.h".
5881 (default_make_symbol_completion_list_break_on)
5882 (default_make_symbol_completion_list, make_symbol_completion_list)
5883 (make_symbol_completion_type, make_file_symbol_completion_list)
5884 (make_source_files_completion_list): Delete.
5885 (default_collect_symbol_completion_matches_break_on)
5886 (default_collect_symbol_completion_matches)
5887 (collect_symbol_completion_matches)
5888 (collect_symbol_completion_matches_type)
5889 (collect_file_symbol_completion_matches)
5890 (make_source_files_completion_list): New.
5891 * top.c (init_main): Don't install a rl_completion_entry_function
5892 hook. Install a rl_attempted_completion_function hook instead.
5893 * tui/tui-layout.c (layout_completer): Adjust to work with a
5894 completion_tracker.
5895 * tui/tui-regs.c (tui_reggroup_completer):
5896 * tui/tui-win.c (window_name_completer, focus_completer)
5897 (winheight_completer): Adjust to work with a completion_tracker.
5898 * value.c: Include "completer.h".
5899 (complete_internalvar): Adjust to work with a completion_tracker.
5900 * value.h (complete_internalvar): Likewise.
5901
5902 2017-07-17 Pedro Alves <palves@redhat.com>
5903
5904 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
5905 renames.
5906 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
5907 comments to completer_ftype's declaration.
5908 <completer_handle_brkchars>: Change type to
5909 completer_handle_brkchars_ftype.
5910 * command.h (completer_ftype): Add describing comment and give
5911 names to parameters.
5912 (completer_ftype_void): Rename to ...
5913 (completer_handle_brkchars_ftype) ... this. Add describing comment.
5914 (set_cmd_completer_handle_brkchars): Adjust.
5915 * completer.c (filename_completer_handle_brkchars): New function.
5916 (complete_line_internal_normal_command): New function, factored
5917 out from ...
5918 (complete_line_internal): ... here.
5919 (command_completer_handle_brkchars)
5920 (default_completer_handle_brkchars)
5921 (completer_handle_brkchars_func_for_completer): New functions.
5922 * completer.h (set_gdb_completion_word_break_characters): Delete
5923 declaration.
5924 (completer_handle_brkchars_func_for_completer): New declaration.
5925 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
5926 completer_handle_brkchars_func_for_completer.
5927
5928 2017-07-17 Pedro Alves <palves@redhat.com>
5929
5930 * completer.c (symbol_completer): New function, based on
5931 make_symbol_completion_list_fn.
5932 * completer.h (symbol_completer): New declaration.
5933 * guile/scm-cmd.c (cmdscm_completers): Adjust.
5934 * python/py-cmd.c (completers): Adjust.
5935 * symtab.c (make_symbol_completion_list_fn): Delete.
5936 * symtab.h (make_symbol_completion_list_fn): Delete.
5937 * cli/cli-decode.c (add_cmd): Adjust.
5938
5939 2017-07-17 Pedro Alves <palves@redhat.com>
5940
5941 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
5942 * dwarf2read.c: Include "filename-seen-cache.h".
5943 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
5944 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
5945 * filename-seen-cache.c: New file.
5946 * filename-seen-cache.h: New file.
5947 * symtab.c: Include "filename-seen-cache.h".
5948 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
5949 (create_filename_seen_cache, clear_filename_seen_cache)
5950 (delete_filename_seen_cache, filename_seen): Delete, parts moved
5951 to filename-seen-cache.h/filename-seen-cache.c.
5952 (output_source_filename, sources_info)
5953 (maybe_add_partial_symtab_filename)
5954 (make_source_files_completion_list): Adjust to use
5955 filename_seen_cache.
5956
5957 2017-07-17 Pedro Alves <palves@redhat.com>
5958
5959 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
5960 fields.
5961 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
5962 dwarf2_debug_sections*)): New.
5963 (dwarf2_per_objfile::dwarf2_per_objfile(const
5964 dwarf2_per_objfile&)): Declare as deleted.
5965 (dwarf2_per_objfile::operator=): Declare as deleted.
5966 (dwarf2_per_objfile::dwarf2_per_objfile)
5967 (dwarf2_per_objfile::~dwarf2_per_objfile)
5968 (dwarf2_per_objfile::free_cached_comp_units): New.
5969 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
5970 ctor. Call dwarf2_per_objfile's ctor manually.
5971 (dwarf2_locate_sections): Deleted/refactored as ...
5972 (dwarf2_per_objfile::locate_sections): ... this new method.
5973 (free_cached_comp_units): Defer to
5974 dwarf2_per_objfile::free_cached_comp_units.
5975 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
5976
5977 2017-07-14 Tom Tromey <tom@tromey.com>
5978
5979 PR rust/21764:
5980 * rust-exp.y (convert_ast_to_expression): Add "want_type"
5981 parameter.
5982 <UNOP_SIZEOF>: Split into separate case.
5983 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
5984
5985 2017-07-14 Tom Tromey <tom@tromey.com>
5986
5987 PR rust/21763:
5988 * symtab.c (symbol_matches_domain): Add language_rust to special
5989 case.
5990 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
5991 treat LOC_TYPEDEF symbols as variables.
5992
5993 2017-07-14 Pedro Alves <palves@redhat.com>
5994
5995 * symtab.c (make_file_symbol_completion_list_1): Iterate over
5996 symtabs matching all symtabs with SRCFILE as file name instead of
5997 only considering the first hit, with lookup_symtab.
5998
5999 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
6000
6001 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
6002 operator_name parameters.
6003 (gen_expr): Update function call.
6004
6005 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
6006
6007 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
6008 parameter.
6009 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
6010 Likewise.
6011 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
6012 parameter, use agent_expr::gdbarch instead, update function
6013 calls.
6014 (locexpr_tracepoint_var_ref): Likewise.
6015 (loclist_tracepoint_var_ref): Likewise.
6016 * ax-gdb.c (gen_trace_static_fields): Likewise.
6017 (gen_traced_pop): Likewise.
6018 (gen_frame_args_address): Likewise.
6019 (gen_frame_locals_address): Likewise.
6020 (gen_var_ref): Likewise.
6021 (gen_struct_ref_recursive): Likewise.
6022 (gen_static_field): Likewise.
6023 (gen_maybe_namespace_elt): Likewise.
6024 (gen_expr): Likewise.
6025 (gen_trace_for_var): Likewise.
6026 (gen_trace_for_expr): Likewise.
6027 (gen_trace_for_return_address): Likewise.
6028
6029 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
6030
6031 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
6032 parameter.
6033 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
6034
6035 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
6036
6037 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
6038 from ax, update calls.
6039 (gen_usual_arithmetic): Likewise.
6040 (gen_integral_promotions): Likewise.
6041 (gen_bitfield_ref): Likewise.
6042 (gen_primitive_field): Likewise.
6043 (gen_struct_ref_recursive): Likewise.
6044 (gen_struct_ref): Likewise.
6045 (gen_maybe_namespace_elt): Likewise.
6046 (gen_struct_elt_for_reference): Likewise.
6047 (gen_namespace_elt): Likewise.
6048 (gen_aggregate_elt_ref): Likewise.
6049 (gen_expr): Get gdbarch from ax, update calls.
6050 (gen_expr_binop_rest): Likewise.
6051
6052 2017-07-13 Pedro Alves <palves@redhat.com>
6053
6054 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
6055 as default tdesc.
6056 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
6057 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
6058 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
6059 tdesc_amd64_linux as default tdesc. Get final tdesc from the
6060 tdep.
6061 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
6062 Get final tdesc from the tdep.
6063 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
6064 default tdesc.
6065 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
6066 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
6067 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
6068 Use it as default tdesc.
6069 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
6070 down to amd_init_abi. No longer handle fallback tdesc here.
6071 * amd64-tdep.h (tdesc_x32): Declare.
6072 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
6073 parameter.
6074 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
6075 as default tdesc.
6076
6077 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6078
6079 * s390-linux-tdep.c (s390_process_record): Add support for
6080 instructions new in arch12.
6081
6082 2017-07-11 John Baldwin <jhb@FreeBSD.org>
6083
6084 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
6085 PT_GETFSBASE and PT_GETGSBASE.
6086 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
6087 PT_SETGSBASE.
6088
6089 2017-07-11 John Baldwin <jhb@FreeBSD.org>
6090
6091 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
6092 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
6093 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
6094 those rules.
6095 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
6096 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
6097 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
6098 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
6099 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
6100 * features/i386/amd64.xml: Add 64bit-segments.xml.
6101 * features/i386/amd64-avx-avx512.c: Regenerated.
6102 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
6103 * features/i386/amd64-avx-mpx.c: Regenerated.
6104 * features/i386/amd64-avx.c: Regenerated.
6105 * features/i386/amd64-mpx.c: Regenerated.
6106 * features/i386/amd64.c: Regenerated.
6107 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
6108 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
6109 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
6110 * regformats/i386/amd64-avx.dat: Regenerated.
6111 * regformats/i386/amd64-mpx.dat: Regenerated.
6112 * regformats/i386/amd64.dat: Regenerated.
6113
6114 2017-07-10 Yao Qi <yao.qi@linaro.org>
6115
6116 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
6117 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
6118
6119 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
6120
6121 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
6122 unsetenv.
6123 * gnulib/aclocal.m4: Regenerate.
6124 * gnulib/config.in: Regenerate.
6125 * gnulib/configure: Regenerate.
6126 * gnulib/import/Makefile.am: Regenerate.
6127 * gnulib/import/Makefile.in: Regenerate.
6128 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
6129 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
6130 * gnulib/import/m4/environ.m4: New file.
6131 * gnulib/import/m4/setenv.m4: New file.
6132 * gnulib/import/setenv.c: New file.
6133 * gnulib/import/unsetenv.c: New file.
6134
6135 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
6136
6137 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
6138 address when op is DW_OP_addr.
6139
6140 2017-07-09 Tom Tromey <tom@tromey.com>
6141
6142 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
6143 check and apply to outer type.
6144
6145 2017-07-07 John Baldwin <jhb@FreeBSD.org>
6146
6147 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
6148 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
6149 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
6150 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
6151
6152 2017-07-07 John Baldwin <jhb@FreeBSD.org>
6153
6154 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
6155
6156 2017-07-07 John Baldwin <jhb@FreeBSD.org>
6157
6158 * corelow.c (get_core_siginfo): Remove.
6159 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
6160 instead of get_core_siginfo.
6161 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
6162 * gdbarch.h: Re-generate.
6163 * gdbarch.c: Re-generate.
6164 * linux-tdep.c (linux_core_xfer_siginfo): New.
6165 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
6166
6167 2017-07-07 John Baldwin <jhb@FreeBSD.org>
6168
6169 * corelow.c (thread_section_name): Move to ...
6170 * gdbcore.h (thread_section_name): ... here.
6171
6172 2017-07-07 John Baldwin <jhb@FreeBSD.org>
6173
6174 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
6175 (struct siginfo32): New.
6176 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
6177 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
6178 via ptrace(PT_LWPINFO).
6179
6180 2017-07-07 John Baldwin <jhb@FreeBSD.org>
6181
6182 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
6183 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
6184 (fbsd_get_siginfo_type): New.
6185 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6186 (_initialize_fbsd_tdep): New.
6187
6188 2017-07-06 David Blaikie <dblaikie@gmail.com>
6189
6190 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
6191 a singular dwo_unit*) to support multiple CUs in the same way that
6192 multiple TUs are supported.
6193 (create_cus_hash_table): Replace create_dwo_cu with a function for
6194 parsing multiple CUs from a DWO file.
6195 (open_and_init_dwo_file): Use create_cus_hash_table rather than
6196 create_dwo_cu.
6197 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
6198 htab_find, rather than comparing the signature to a singleton CU in
6199 the dwo_file.
6200
6201 2017-07-06 Pedro Alves <palves@redhat.com>
6202
6203 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
6204
6205 2017-07-04 Pedro Alves <palves@redhat.com>
6206
6207 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
6208 * gdbtypes.h (TYPE_STATIC): Delete.
6209 (struct fn_field) <is_public, is_abstract, is_static, is_final,
6210 is_synchronized, is_native>: Delete.
6211 <dummy>: Bump.
6212 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
6213 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
6214 (TYPE_FN_FIELD_ABSTRACT): Delete.
6215
6216 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
6217
6218 * buffer.h (buffer_finish): Fix spelling mistakes.
6219
6220 2017-07-01 Eli Zaretskii <eliz@gnu.org>
6221
6222 * .dir-locals.el: Automatically switch to C-style comments in
6223 versions of Emacs that support the feature.
6224
6225 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
6226 Pedro Alves <palves@redhat.com>
6227
6228 PR cli/21688
6229 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
6230 (process_next_line): New variable 'inline_cmd'.
6231 Adjust 'if' clauses for "python", "compile" and "guile" to use
6232 'command_name_equals' and check for '!inline_cmd'.
6233
6234 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
6235
6236 PR cli/21688
6237 * cli/cli-script.c (command_name_equals_not_inline): New function.
6238 (process_next_line): Adjust 'if' clauses for "python", "compile"
6239 and "guile" to use command_name_equals_not_inline.
6240
6241 2017-06-29 Pedro Alves <palves@redhat.com>
6242
6243 * completer.c (expression_completer): Call
6244 linespec_location_completer instead of location_completer.
6245
6246 2017-06-29 Pedro Alves <palves@redhat.com>
6247
6248 * completer.c (expression_completer): Remove code that recomputes
6249 'text' from 'word'.
6250
6251 2017-06-29 Yao Qi <yao.qi@linaro.org>
6252
6253 * regformats/regdat.sh: Generate code with
6254 "ifndef IN_PROCESS_AGENT".
6255
6256 2017-06-28 Pedro Alves <palves@redhat.com>
6257
6258 * command.h: Include "common/scoped_restore.h".
6259
6260 2017-06-28 Yao Qi <yao.qi@linaro.org>
6261
6262 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
6263 instead of obstack_grow.
6264
6265 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
6266
6267 PR gdb/21337
6268 * symfile.c (reread_symbols): Call objfiles_changed just before
6269 read_symbols.
6270
6271 2017-06-27 Pedro Alves <palves@redhat.com>
6272
6273 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
6274 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
6275 (completion_list_add_symbol, completion_list_add_msymbol):
6276 ... these new functions.
6277 (add_symtab_completions)
6278 (default_make_symbol_completion_list_break_on_1): Adjust.
6279
6280 2017-06-27 Pedro Alves <palves@redhat.com>
6281
6282 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
6283 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
6284 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
6285 dtor.
6286 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
6287 'storage_obstack' field an auto_obstack. In-class initialize all
6288 non-bitfield fields. Make minsyms_read bool.
6289 * symfile.c (read_symbols): Adjust.
6290
6291 2017-06-27 Alan Hayward <alan.hayward@arm.com>
6292
6293 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
6294 (gdbsim_store_register): Likewise.
6295
6296 2017-06-27 Pedro Alves <palves@redhat.com>
6297
6298 * c-exp.y (name_obstack): Now an auto_obstack.
6299 (yylex): Use auto_obstack::clear.
6300 (c_parse): Use auto_obstack::clear instead of reinitializing and
6301 freeing the obstack.
6302 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
6303 * d-exp.y (name_obstack): Now an auto_obstack.
6304 (yylex): Use auto_obstack::clear.
6305 (d_parse): Use auto_obstack::clear instead of reinitializing and
6306 freeing the obstack.
6307 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
6308 auto_obstack.
6309 * dwarf2read.c (create_addrmap_from_index)
6310 (dwarf2_build_psymtabs_hard)
6311 (update_enumeration_type_from_children): Likewise.
6312 * gdb_obstack.h (auto_obstack): New type.
6313 * go-exp.y (name_obstack): Now an auto_obstack.
6314 (build_packaged_name): Use auto_obstack::clear.
6315 (go_parse): Use auto_obstack::clear instead of reinitializing and
6316 freeing the obstack.
6317 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
6318 auto_obstack.
6319 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
6320 * rust-exp.y (work_obstack): Now an auto_obstack.
6321 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
6322 reinitializing and freeing the obstack.
6323 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
6324 (host_char_to_target): Use auto_obstack.
6325 * utils.h (make_cleanup_obstack_free): Delete declaration.
6326 * valprint.c (generic_emit_char, generic_printstr): Use
6327 auto_obstack.
6328
6329 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
6330
6331 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
6332 thread.
6333 (darwin_init_thread_list): Don't update dummy thread.
6334 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
6335
6336 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
6337
6338 * record-full.c (netorder16): Remove.
6339
6340 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
6341
6342 * common/diagnostics.h: Define macros for GCC.
6343 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
6344 * common/vec.h: Include diagnostics.h.
6345 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
6346 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
6347 warning.
6348
6349 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
6350
6351 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
6352 New macro.
6353 * ada-lex.l: Ignore deprecated register warnings.
6354
6355 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
6356
6357 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
6358 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
6359
6360 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
6361
6362 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
6363 its own line.
6364
6365 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
6366
6367 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
6368
6369 2017-06-23 Alan Hayward <alan.hayward@arm.com>
6370
6371 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
6372 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
6373 (xtensa_register_read_masked): Likewise.
6374
6375 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
6376
6377 * common/environ.c (gdb_environ::unset): Update comment.
6378
6379 2017-06-22 Alan Hayward <alan.hayward@arm.com>
6380
6381 * python/py-unwind.c (pyuw_sniffer): Allocate space for
6382 registers.
6383
6384 2017-06-22 Alan Hayward <alan.hayward@arm.com>
6385
6386 * record-full.c (record_full_exec_insn): Use byte_vector.
6387
6388 2017-06-22 Yao Qi <yao.qi@linaro.org>
6389
6390 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
6391 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
6392
6393 2017-06-22 Alan Hayward <alan.hayward@arm.com>
6394
6395 * remote.c (cached_reg): Move from here...
6396 * regcache.h (cached_reg): ...to here.
6397 * python/py-unwind.c (struct reg_info): Remove.
6398 (cached_frame_info): Use cached_reg_t.
6399 (pyuw_prev_register): Likewise.
6400 (pyuw_sniffer): Use cached_reg_t and allocate registers.
6401 (pyuw_dealloc_cache): Free all registers.
6402
6403 2017-06-22 Pedro Alves <palves@redhat.com>
6404 Simon Marchi <simon.marchi@ericsson.com>
6405
6406 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
6407 warning.
6408 * common/diagnostics.h: New file.
6409
6410 2017-06-22 Pedro Alves <palves@redhat.com>
6411
6412 * common/agent.h: Add include guards.
6413
6414 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
6415
6416 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
6417 talk about addressable units instead of bytes.
6418
6419 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
6420
6421 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
6422 of '::const_iterator'.
6423
6424 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
6425
6426 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6427 'unittests/environ-selftests.c'.
6428 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
6429 * charset.c (find_charset_names): Declare object 'iconv_env'.
6430 Update code to use 'iconv_env' object. Remove call to
6431 'free_environ'.
6432 * common/environ.c: Include <utility>.
6433 (make_environ): Delete function.
6434 (free_environ): Delete function.
6435 (gdb_environ::clear): New function.
6436 (gdb_environ::operator=): New function.
6437 (gdb_environ::get): Likewise.
6438 (environ_vector): Delete function.
6439 (set_in_environ): Delete function.
6440 (gdb_environ::set): New function.
6441 (unset_in_environ): Delete function.
6442 (gdb_environ::unset): New function.
6443 (gdb_environ::envp): Likewise.
6444 * common/environ.h: Include <vector>.
6445 (struct gdb_environ): Delete; transform into...
6446 (class gdb_environ): ... this class.
6447 (free_environ): Delete prototype.
6448 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
6449 environ_vector): Likewise.
6450 * infcmd.c (run_command_1): Update code to call
6451 'envp' from 'gdb_environ' class.
6452 (environment_info): Update code to call methods from 'gdb_environ'
6453 class.
6454 (unset_environment_command): Likewise.
6455 (path_info): Likewise.
6456 (path_command): Likewise.
6457 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
6458 (inferior::inferior): Initialize 'environment' using the host's
6459 information.
6460 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
6461 Include "environ.h".
6462 (class inferior) <environment>: Change type from 'struct
6463 gdb_environ' to 'gdb_environ'.
6464 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
6465 methods from 'gdb_environ' class.
6466 * solib.c (solib_find_1): Likewise
6467 * unittests/environ-selftests.c: New file.
6468
6469 2017-06-20 Yao Qi <yao.qi@linaro.org>
6470
6471 * features/i386/i386-linux.xml: Exchange the order of including
6472 32bit-linux.xml and 32bit-sse.xml.
6473 * features/i386/i386-linux.c: Regenerated.
6474
6475 2017-06-20 Yao Qi <yao.qi@linaro.org>
6476
6477 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
6478 Delete copy ctor and assignment operator.
6479 (tdesc_type): Likewise.
6480 (tdesc_feature): Likewise.
6481 (tdesc_free_reg): Remove.
6482 (tdesc_create_reg): Use new.
6483 (tdesc_free_type): Remove.
6484 (tdesc_create_vector): Use new.
6485 (tdesc_create_union): Likewise.
6486 (tdesc_create_flags): Likewise.
6487 (tdesc_create_enum): Likewise.
6488 (tdesc_free_feature): Delete.
6489 (free_target_description): Use delete.
6490
6491 2017-06-19 John Baldwin <jhb@FreeBSD.org>
6492
6493 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
6494 registers.
6495
6496 2017-06-19 Pedro Alves <palves@redhat.com>
6497
6498 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
6499 after gdb::unlinker.
6500
6501 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
6502
6503 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
6504 gdb_environ to access an environment variable.
6505
6506 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
6507
6508 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
6509 gdb_byte*.
6510
6511 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6512
6513 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
6514
6515 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6516
6517 * configure: Re-generate.
6518 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
6519
6520 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6521
6522 * configure: Re-generate.
6523 * warning.m4: Pass -Werror to compiler when checking for
6524 supported warning flags.
6525
6526 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6527
6528 * Makefile.in (COMPILE.pre): Add "-x c++".
6529
6530 2017-06-16 Alan Hayward <alan.hayward@arm.com>
6531 Pedro Alves <palves@redhat.com>
6532 Yao Qi <yao.qi@linaro.org>
6533
6534 * defs.h (RequireLongest): New.
6535 (extract_integer): Declare function template.
6536 (extract_signed_integer): Remove the declaration, but define it
6537 static inline.
6538 (extract_unsigned_integer): Likewise.
6539 (store_integer): Declare function template.
6540 (store_signed_integer): Remove the declaration, but define it
6541 static inline.
6542 (store_unsigned_integer): Likewise.
6543 * findvar.c (extract_integer): New function template.
6544 (extract_signed_integer): Remove.
6545 (extract_unsigned_integer): Remove.
6546 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
6547 instantiations.
6548 (store_integer): New function template.
6549 (store_signed_integer): Remove.
6550 (store_unsigned_integer): Remove.
6551 (store_integer): Explicit instantiations.
6552 * regcache.c (regcache_raw_read_signed): Update.
6553 (regcache::raw_read): New function.
6554 (regcache::raw_read_signed): Remove.
6555 (regcache::raw_read_unsigned): Remove.
6556 (regcache_raw_read_unsigned): Update.
6557 (regcache_raw_write_unsigned): Update.
6558 (regcache::raw_write_signed): Remove.
6559 (regcache::raw_write): New function.
6560 (regcache_cooked_read_signed): Update.
6561 (regcache::raw_write_unsigned): Remove.
6562 (regcache::cooked_read_signed): Remove.
6563 (regcache_cooked_read_unsigned): Update.
6564 (regcache::cooked_read_unsigned): Remove.
6565 (regcache_cooked_write_signed): Update.
6566 (regcache_cooked_write_unsigned): Update.
6567 * regcache.h (regcache) <raw_read_signed>: Remove.
6568 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
6569 <raw_read, raw_write>: New.
6570 <cooked_read_signed, cooked_write_signed>: Remove.
6571 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
6572 <cooked_read, cooked_write>: New.
6573 * sh64-tdep.c (sh64_pseudo_register_read): Update.
6574 (sh64_pseudo_register_write): Update.
6575
6576 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
6577
6578 * arc-tdep.c (arc_disassembler_options): New variable.
6579 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
6580 of default_print_insn.
6581 (arc_delayed_print_insn): Set info->section when needed,
6582 use default_print_insn to retrieve a disassembler.
6583
6584 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
6585
6586 PR gdb/21574
6587 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
6588 to mention $SHELL and startup-with-shell.
6589
6590 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
6591
6592 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
6593
6594 2017-06-14 Yao Qi <yao.qi@linaro.org>
6595
6596 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
6597 default_print_insn instead of print_insn_aarch64.
6598 * arm-tdep.c (gdb_print_insn_arm): Call
6599 default_print_insn instead of print_insn_big_arm
6600 and print_insn_little_arm.
6601 * i386-tdep.c (i386_print_insn): Call default_print_insn
6602 instead of print_insn_i386.
6603 * ia64-tdep.c (ia64_print_insn): Call
6604 default_print_insn instead of print_insn_ia64.
6605 * mips-tdep.c (gdb_print_insn_mips): Call
6606 default_print_insn instead of print_insn_big_mips
6607 and print_insn_little_mips.
6608 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
6609 instead of print_insn_spu.
6610
6611 2017-06-14 Pedro Alves <palves@redhat.com>
6612
6613 * ada-lang.c: Include "common/byte-vector.h".
6614 (ada_value_primitive_packed_val): Use gdb::byte_vector.
6615 * charset.c (wchar_iterator::iterate): Resize the vector instead
6616 of reserving it.
6617 * common/byte-vector.h: Include "common/def-vector.h".
6618 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
6619 * cli/cli-dump.c: Include "common/byte-vector.h".
6620 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
6621 * common/byte-vector.h: New file.
6622 * common/def-vector.h: New file.
6623 * common/default-init-alloc.h: New file.
6624 * dwarf2loc.c: Include "common/byte-vector.h".
6625 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
6626 instead of reserving it.
6627 * dwarf2read.c: Include "common/byte-vector.h".
6628 (data_buf::m_vec): Now a gdb::byte_vector.
6629 * gdb_regex.c: Include "common/def-vector.h".
6630 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
6631 * mi/mi-main.c: Include "common/byte-vector.h".
6632 (mi_cmd_data_read_memory): Use gdb::byte_vector.
6633 * printcmd.c: Include "common/byte-vector.h".
6634 (print_scalar_formatted): Use gdb::byte_vector.
6635 * valprint.c: Include "common/byte-vector.h".
6636 (maybe_negate_by_bytes, print_decimal_chars): Use
6637 gdb::byte_vector.
6638
6639 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
6640
6641 * darwin-nat.c: Include "nat/fork-inferior.h".
6642
6643 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
6644
6645 * configure.nat: Factor out Darwin bits that are not
6646 architecture-specific. Add fork-inferior.o.
6647
6648 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
6649
6650 * configure.nat: Factor out AIX bits that are not
6651 architecture-specific. Add fork-inferior.o.
6652
6653 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6654
6655 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
6656 (read_pieced_value, write_pieced_value): ...here. Reduce to
6657 wrappers that just call rw_pieced_value.
6658
6659 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6660
6661 * dwarf2loc.c (write_pieced_value): When writing the data for a
6662 memory piece, use write_memory_with_notification instead of
6663 write_memory.
6664
6665 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6666
6667 * valops.c (read_value_memory): Change embedded_offset to
6668 represent a bit offset instead of a byte offset.
6669 * value.h (read_value_memory): Adjust comment.
6670
6671 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6672
6673 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
6674 dest_offset_bits and source_offset_bits.
6675 (write_pieced_value): Likewise.
6676
6677 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6678
6679 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
6680 given by DW_OP_bit_piece.
6681 (write_pieced_value): Likewise.
6682
6683 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6684
6685 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
6686 some other preparations to the places where sufficient information
6687 is available.
6688 (write_pieced_value): Likewise.
6689
6690 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6691
6692 * dwarf2loc.c (bits_to_bytes): New function.
6693 (read_pieced_value): Fix offset calculations for register pieces
6694 on big-endian targets.
6695 (write_pieced_value): Likewise.
6696
6697 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6698
6699 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
6700 (write_pieced_value): Likewise.
6701
6702 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6703
6704 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
6705 transfer the source value's least significant bits, instead of its
6706 lowest-addressed ones. Rename type_len to max_offset.
6707 (read_pieced_value): Mirror above changes to write_pieced_value as
6708 applicable.
6709
6710 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6711
6712 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
6713 truncate full bytes from dest_offset_bits before using it as an
6714 offset into the buffer.
6715
6716 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6717
6718 * dwarf2loc.c (write_pieced_value): Include transfer size in
6719 byte-wise check.
6720
6721 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6722
6723 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
6724 calculation of this_size.
6725
6726 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6727
6728 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
6729 when targeting a bit-field.
6730 (write_pieced_value): Likewise.
6731
6732 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6733
6734 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
6735 (allocate_piece_closure): Drop addr_size parameter.
6736 (dwarf2_evaluate_loc_desc_full): Adjust call to
6737 allocate_piece_closure.
6738
6739 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6740
6741 PR gdb/21226
6742 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
6743 the LSB end, independent of endianness.
6744
6745 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6746
6747 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
6748 size capping.
6749
6750 2017-06-13 Yao Qi <yao.qi@linaro.org>
6751
6752 * mips-linux-nat.c: Move include features/mips*-linux.c to
6753 mips-linux-tdep.c.
6754 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
6755 to mips-linux-tdep.c.
6756 * mips-linux-tdep.c: Include features/mips*-linux.c
6757 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
6758 functions.
6759 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
6760 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
6761 (tdesc_mips64_dsp_linux): Declare.
6762
6763 2017-06-12 Tom Tromey <tom@tromey.com>
6764
6765 * valprint.h (val_print_type_code_int): Remove.
6766 * valprint.c (generic_val_print_int): Always call
6767 val_print_scalar_formatted.
6768 (val_print_type_code_int): Remove.
6769 * printcmd.c (print_scalar_formatted): Handle options->format==0.
6770 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
6771 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
6772 * ada-valprint.c (ada_val_print_num): Use
6773 val_print_scalar_formatted.
6774
6775 2017-06-12 Tom Tromey <tom@tromey.com>
6776
6777 * printcmd.c (print_scalar_formatted): Unify the two switches.
6778 Don't convert scalars to LONGEST.
6779
6780 2017-06-12 Tom Tromey <tom@tromey.com>
6781
6782 PR exp/16225:
6783 * valprint.h (print_decimal_chars): Update.
6784 * valprint.c (maybe_negate_by_bytes): New function.
6785 (print_decimal_chars): Add "is_signed" argument.
6786 * printcmd.c (print_scalar_formatted): Update.
6787
6788 2017-06-12 Tom Tromey <tom@tromey.com>
6789
6790 PR exp/16225:
6791 * valprint.h (print_binary_chars, print_hex_chars): Update.
6792 * valprint.c (val_print_type_code_int): Update.
6793 (print_binary_chars): Add "zero_pad" argument.
6794 (emit_octal_digit): New function.
6795 (print_octal_chars): Don't zero-pad.
6796 (print_decimal_chars): Likewise.
6797 (print_hex_chars): Add "zero_pad" argument.
6798 * sh64-tdep.c (sh64_do_fp_register): Update.
6799 * regcache.c (regcache::dump): Update.
6800 * printcmd.c (print_scalar_formatted): Update.
6801 * infcmd.c (default_print_one_register_info): Update.
6802
6803 2017-06-12 Pedro Alves <palves@redhat.com>
6804 Alan Hayward <alan.hayward@arm.com>
6805
6806 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
6807 (mips_eabi_push_dummy_call): Rename local 'regsize' to
6808 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
6809 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
6810 Assert that abi_regsize bytes fit in 'ref_valbuf'.
6811
6812 2017-06-12 Pedro Alves <palves@redhat.com>
6813
6814 * dwarf2read.c (mapped_symtab::data): Now a vector of
6815 symtab_index_entry instead of vector of
6816 std::unique_ptr<symtab_index_entry>. All users adjusted to check
6817 whether an element's name is NULL instead of checking whether the
6818 element itself is NULL.
6819 (find_slot): Change return type. Adjust.
6820 (hash_expand, , add_index_entry, uniquify_cu_indices)
6821 (write_hash_table): Adjust.
6822
6823 2017-06-12 Pedro Alves <palves@redhat.com>
6824
6825 * dwarf2read.c (recursively_count_psymbols): New function.
6826 (write_psymtabs_to_index): Call it to compute number of psyms and
6827 pass estimate size of psyms_seen to unordered_set's ctor.
6828
6829 2017-06-12 Pedro Alves <palves@redhat.com>
6830
6831 * dwarf2read.c (write_hash_table): Check if key already exists
6832 before emplacing.
6833
6834 2017-06-12 Pedro Alves <palves@redhat.com>
6835
6836 * dwarf2read.c (data_buf::append_space): Rename to...
6837 (data_buf::grow): ... this, and make private. Adjust all callers.
6838 (data_buf::append_uint): New method.
6839 (add_address_entry, write_one_signatured_type)
6840 (write_psymtabs_to_index): Use it.
6841
6842 2017-06-12 Pedro Alves <palves@redhat.com>
6843
6844 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
6845 (file_write (FILE *, const std::vector<Elem>&)): Delete.
6846 (data_buf::file_write): Call ::fwrite directly.
6847
6848 2017-06-12 Pedro Alves <palves@redhat.com>
6849
6850 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
6851 std::vector::erase.
6852
6853 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6854
6855 Code cleanup: C++ify .gdb_index producer.
6856 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
6857 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
6858 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
6859 (create_strtab, add_string): Remove.
6860 (file_write, data_buf): New.
6861 (struct symtab_index_entry): Use std::vector for cu_indices.
6862 (struct mapped_symtab): Use std::vector for data.
6863 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
6864 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
6865 Remove.
6866 (find_slot): Change return type. Update it to the new data structures.
6867 (hash_expand, add_index_entry): Update it to the new data structures.
6868 (offset_type_compare): Remove.
6869 (uniquify_cu_indices): Update it to the new data structures.
6870 (c_str_view, c_str_view_hasher, vector_hasher): New.
6871 (add_indices_to_cpool): Remove.
6872 (write_hash_table): Update it to the new data structures.
6873 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
6874 (eq_psymtab_cu_index): Remove.
6875 (psym_index_map): New typedef.
6876 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
6877 reference and std::unordered_map for cu_index_htab.
6878 (add_address_entry, add_address_entry_worker, write_address_map)
6879 (write_psymbols): Update it to the new data structures.
6880 (write_obstack): Remove.
6881 (struct signatured_type_index_data): Change types_list to a data_buf
6882 reference and psyms_seen to a std::unordered_set reference.
6883 (write_one_signatured_type, recursively_write_psymbols)
6884 (write_psymtabs_to_index): Update it to the new data structures.
6885
6886 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
6887
6888 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
6889 separate-debug-file commands.
6890 * symfile.h (separate_debug_file_debug): New global.
6891 * symfile.c (separate_debug_file_debug): New global.
6892 (separate_debug_file_exists, find_separate_debug_file): Add
6893 debug output.
6894 (_initialize_symfile): Add "set debug separate-debug-file"
6895 command.
6896 * build-id.c (build_id_to_debug_bfd,
6897 find_separate_debug_file_by_buildid): Add debug output.
6898
6899 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
6900
6901 * gdbarch.sh (displaced_step_free_closure): Remove.
6902 * gdbarch.h, gdbarch.c: Re-generate.
6903 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
6904 displaced_step_free_closure.
6905 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6906 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6907 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6908 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
6909 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
6910 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6911 * arch-utils.h (simple_displaced_step_free_closure): Remove.
6912 * arch-utils.c (simple_displaced_step_free_closure): Remove.
6913 * infrun.c (displaced_step_clear): Call xfree instead of
6914 gdbarch_displaced_step_free_closure.
6915
6916 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
6917
6918 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
6919 NULL".
6920
6921 2017-06-08 Alan Hayward <alan.hayward@arm.com>
6922
6923 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
6924 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
6925 (mn10300_push_dummy_call): Likewise.
6926
6927 2017-06-08 Alan Hayward <alan.hayward@arm.com>
6928
6929 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
6930
6931 2017-06-08 Alan Hayward <alan.hayward@arm.com>
6932
6933 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
6934
6935 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6936
6937 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
6938 able to start inferiors using a shell.
6939 (New remote packets): Announce new packet "QStartupWithShell".
6940 * remote.c: Add PACKET_QStartupWithShell.
6941 (extended_remote_create_inferior): Handle new
6942 PACKET_QStartupWithShell.
6943 (remote_protocol_features) <QStartupWithShell>: New entry for
6944 PACKET_QStartupWithShell.
6945 (_initialize_remote): Call "add_packet_config_cmd" for
6946 QStartupShell.
6947
6948 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6949 Pedro Alves <palves@redhat.com>
6950
6951 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
6952 and "nat/fork-inferior.h".
6953 * common/common-inferior.h: New file, with contents from
6954 "gdb/inferior.h".
6955 * commom/common-utils.c: Include "common-utils.h".
6956 (stringify_argv): New function.
6957 * common/common-utils.h (stringify_argv): New prototype.
6958 * configure.nat: Add "fork-inferior.o" as a dependency for
6959 "*linux*", "fbsd*" and "nbsd*" hosts.
6960 * corefile.c (get_exec_file): Update comment.
6961 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
6962 instead of "startup_inferior".
6963 (darwin_create_inferior): Call "add_thread_silent" after
6964 "fork_inferior".
6965 * fork-child.c: Cleanup unnecessary includes.
6966 (SHELL_FILE): Move to "common/common-fork-child.c".
6967 (environ): Likewise.
6968 (exec_wrapper): Initialize.
6969 (get_exec_wrapper): New function.
6970 (breakup_args): Move to "common/common-fork-child.c"; rename to
6971 "breakup_args_for_exec".
6972 (escape_bang_in_quoted_argument): Move to
6973 "common/common-fork-child.c".
6974 (saved_ui): New variable.
6975 (prefork_hook): New function.
6976 (postfork_hook): Likewise.
6977 (postfork_child_hook): Likewise.
6978 (gdb_startup_inferior): Likewise.
6979 (fork_inferior): Move to "common/common-fork-child.c". Update
6980 function to support gdbserver.
6981 (startup_inferior): Likewise.
6982 * gdbcore.h (get_exec_file): Remove declaration.
6983 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
6984 instead of "startup_inferior". Call "add_thread_silent" after
6985 "fork_inferior".
6986 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
6987 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
6988 instead of "startup_inferior". Call "add_thread_silent" after
6989 "fork_inferior".
6990 * inferior.h: Include "common-inferior.h".
6991 (trace_start_error): Move to "common/common-utils.h".
6992 (trace_start_error_with_name): Likewise.
6993 (fork_inferior): Move prototype to "nat/fork-inferior.h".
6994 (startup_inferior): Likewise.
6995 (gdb_startup_inferior): New prototype.
6996 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
6997 * nat/fork-inferior.h: New file.
6998 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
6999 instead of "startup_inferior". Call "add_thread_silent" after
7000 "fork_inferior".
7001 * target.h (target_terminal_init): Move prototype to
7002 "target/target.h".
7003 (target_terminal_inferior): Likewise.
7004 (target_terminal_ours): Likewise.
7005 * target/target.h (target_terminal_init): New prototype, moved
7006 from "target.h".
7007 (target_terminal_inferior): Likewise.
7008 (target_terminal_ours): Likewise.
7009 * utils.c (gdb_flush_out_err): New function.
7010
7011 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7012
7013 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
7014 * common/common-gdbthread.h: New file, with parts from
7015 "gdb/gdbthread.h".
7016 * gdbthread.h: Include "common-gdbthread.h".
7017 (switch_to_thread): Moved to "common/common-gdbthread.h".
7018
7019 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7020
7021 * Makefile.in (SFILES): Add "common/job-control.c".
7022 (HFILES_NO_SRCDIR): Add "common/job-control.h".
7023 (COMMON_OBS): Add "job-control.o".
7024 * common/job-control.c: New file, with contents from
7025 "gdb/inflow.c".
7026 * common/job-control.h: New file, with contents from "terminal.h".
7027 * fork-child.c: Include "job-control.h".
7028 * inflow.c: Include "job-control.h".
7029 (gdb_setpgid): Move to "common/common-inflow.c".
7030 (_initialize_inflow): Move setting of "job_control" to
7031 "handle_job_control".
7032 * terminal.h (job_control): Moved to "common/common-terminal.h".
7033 (gdb_setpgid): Likewise.
7034 * top.c: Include "job_control.h".
7035 * utils.c: Likewise.
7036 (job_control): Moved to "job-control.c".
7037
7038 2017-06-07 Pedro Alves <palves@redhat.com>
7039
7040 * Makefile.in (SFILES): Add gdb_regex.c.
7041 (COMMON_OBS): Add gdb_regex.o.
7042 * ada-lang.c (ada_add_standard_exceptions)
7043 (ada_add_exceptions_from_frame, name_matches_regex)
7044 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
7045 parameter type to compiled_regex. Adjust.
7046 (ada_exceptions_list): Use compiled_regex.
7047 * break-catch-throw.c (exception_catchpoint::pattern): Now a
7048 std::unique_ptr<compiled_regex>.
7049 (exception_catchpoint::~exception_catchpoint): Remove regfree
7050 call.
7051 (check_status_exception_catchpoint): Adjust to use compiled_regex.
7052 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
7053 * breakpoint.c (solib_catchpoint::compiled): Now a
7054 std::unique_ptr<compiled_regex>.
7055 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
7056 (check_status_catch_solib): Adjust to use compiled_regex.
7057 (add_solib_catchpoint): Adjust to use compiled_regex.
7058 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
7059 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
7060 compiled_regex reference. Adjust to use it.
7061 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
7062 declaration. Include "gdb_regex.h".
7063 (apropos_cmd): Change regex parameter to compiled_regex reference.
7064 * gdb_regex.c: New file.
7065 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
7066 declarations.
7067 (class compiled_regex): New.
7068 * linux-tdep.c: Include "common/gdb_optional.h".
7069 (struct mapping_regexes): New, factored out from
7070 mapping_is_anonymous_p, and adjusted to use compiled_regex.
7071 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
7072 gdb::optional and remove cleanups. Adjust to compiled_regex.
7073 * probe.c: Include "common/gdb_optional.h".
7074 (collect_probes): Use compiled_regex and gdb::optional and remove
7075 cleanups.
7076 * skip.c: Include "common/gdb_optional.h".
7077 (skiplist_entry::compiled_function_regexp): Now a
7078 gdb::optional<compiled_regex>.
7079 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
7080 (free_skiplist_entry): Remove regfree call.
7081 (compile_skip_regexp, skip_rfunction_p): Adjust to use
7082 compiled_regex and gdb::optional.
7083 * symtab.c: Include "common/gdb_optional.h".
7084 (search_symbols): Use compiled_regex and gdb::optional.
7085 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
7086 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
7087 to gdb_regex.c.
7088
7089 2017-06-07 Alan Hayward <alan.hayward@arm.com>
7090
7091 * regcache.c (regcache::save): Avoid buffer use.
7092 (regcache::dump): Likewise.
7093
7094 2017-06-07 Alan Hayward <alan.hayward@arm.com>
7095
7096 * sh-tdep.c (sh_pseudo_register_read): Remove
7097 MAX_REGISTER_SIZE.
7098 (sh_pseudo_register_write): Likewise.
7099 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
7100 (sh64_pseudo_register_write): Likewise
7101
7102 2017-06-07 Alan Hayward <alan.hayward@arm.com>
7103
7104 * aarch64-tdep.c (aarch64_store_return_value): Use
7105 V_REGISTER_SIZE.
7106 (aarch64_pseudo_read_value): Likewise.
7107 (aarch64_pseudo_write): Likewise.
7108
7109 2017-06-06 Yao Qi <yao.qi@linaro.org>
7110
7111 * regformats/regdef.h (set_register_cache): Remove the
7112 declaration.
7113
7114 2017-06-06 Alan Hayward <alan.hayward@arm.com>
7115
7116 * frame.c (frame_unwind_register_signed): Use
7117 frame_unwind_register_value.
7118
7119 2017-06-06 Pedro Alves <palves@redhat.com>
7120
7121 PR breakpoints/21553
7122 * breakpoint.c (create_breakpoints_sal_default)
7123 (init_breakpoint_sal, create_breakpoint_sal): Use
7124 gdb::unique_xmalloc_ptr for string parameters.
7125 (create_breakpoint): Constify 'extra_string' and 'cond_string'
7126 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
7127 (base_breakpoint_create_breakpoints_sal)
7128 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
7129 (strace_marker_create_breakpoints_sal)
7130 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
7131 string parameters.
7132 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
7133 gdb::unique_xmalloc_ptr for string parameters.
7134 (create_breakpoint): Constify 'extra_string' and 'cond_string'
7135 parameters.
7136
7137 2017-06-06 Alan Hayward <alan.hayward@arm.com>
7138
7139 * alpha-tdep.c (alpha_register_to_value): Use
7140 get_frame_register_value.
7141 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
7142
7143 2017-06-06 Alan Hayward <alan.hayward@arm.com>
7144
7145 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
7146 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
7147 (ia64_value_to_register): Likewise.
7148 (ia64_extract_return_value): Likewise.
7149 (ia64_store_return_value): Likewise.
7150 (ia64_push_dummy_call): Likewise.
7151
7152 2017-06-04 Joel Brobecker <brobecker@adacore.com>
7153
7154 GDB 8.0 released.
7155
7156 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
7157
7158 * x86-linux-nat.c (struct arch_lwp_info): Remove.
7159
7160 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
7161
7162 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
7163 parameter.
7164 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
7165
7166 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
7167
7168 * event-loop.c (poll_timers): Unallocate timer using delete
7169 instead of xfree.
7170
7171 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
7172
7173 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
7174 (struct breakpoint) <~breakpoint>: New.
7175 (struct watchpoint): Inherit from breakpoint.
7176 <~watchpoint>: New.
7177 <base>: Remove.
7178 (struct tracepoint): Inherit from breakpoint.
7179 <base>: Remove.
7180 * breakpoint.c (longjmp_breakpoint_ops): Remove.
7181 (struct longjmp_breakpoint): Inherit from breakpoint.
7182 <~longjmp_breakpoint>: New.
7183 <base>: Remove.
7184 (new_breakpoint_from_type): Remove casts.
7185 (watchpoint_in_thread_scope): Remove reference to base field.
7186 (watchpoint_del_at_next_stop): Likewise.
7187 (update_watchpoint): Likewise.
7188 (watchpoint_check): Likewise.
7189 (bpstat_check_watchpoint): Likewise.
7190 (set_longjmp_breakpoint): Likewise.
7191 (struct fork_catchpoint): Inherit from breakpoint.
7192 <base>: Remove.
7193 (struct solib_catchpoint): Inherit from breakpoint.
7194 <~solib_catchpoint>: New.
7195 <base>: Remove.
7196 (dtor_catch_solib): Change to ...
7197 (solib_catchpoint::~solib_catchpoint): ... this.
7198 (breakpoint_hit_catch_solib): Remove reference to base field.
7199 (add_solib_catchpoint): Likewise.
7200 (create_fork_vfork_event_catchpoint): Likewise.
7201 (struct exec_catchpoint): Inherit from breakpoint.
7202 <~exec_catchpoint>: New.
7203 <base>: Remove.
7204 (dtor_catch_exec): Change to ...
7205 (exec_catchpoint::~exec_catchpoint): ... this.
7206 (dtor_watchpoint): Change to ...
7207 (watchpoint::~watchpoint): ... this.
7208 (watch_command_1): Remove reference to base field.
7209 (catch_exec_command_1): Likewise.
7210 (base_breakpoint_dtor): Change to ...
7211 (breakpoint::~breakpoint): ... this.
7212 (base_breakpoint_ops): Remove dtor field value.
7213 (longjmp_bkpt_dtor): Change to ...
7214 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
7215 (strace_marker_create_breakpoints_sal): Remove reference to base
7216 field.
7217 (delete_breakpoint): Don't manually call breakpoint destructor.
7218 (create_tracepoint_from_upload): Remove reference to base field.
7219 (trace_pass_set_count): Likewise.
7220 (initialize_breakpoint_ops): Don't initialize
7221 momentary_breakpoint_ops, don't set dtors.
7222 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
7223 <~ada_catchpoint>: New.
7224 <base>: Remove.
7225 (create_excep_cond_exprs): Remove reference to base field.
7226 (dtor_exception): Change to ...
7227 (ada_catchpoint::~ada_catchpoint): ... this.
7228 (dtor_catch_exception): Remove.
7229 (dtor_catch_exception_unhandled): Remove.
7230 (dtor_catch_assert): Remove.
7231 (create_ada_exception_catchpoint): Remove reference to base
7232 field.
7233 (initialize_ada_catchpoint_ops): Don't set dtors.
7234 * break-catch-sig.c (struct signal_catchpoint): Inherit from
7235 breakpoint.
7236 <~signal_catchpoint>: New.
7237 <base>: Remove.
7238 (signal_catchpoint_dtor): Change to ...
7239 (signal_catchpoint::~signal_catchpoint): ... this.
7240 (create_signal_catchpoint): Remove reference to base field.
7241 (initialize_signal_catchpoint_ops): Don't set dtor.
7242 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
7243 from breakpoint.
7244 <~syscall_catchpoint>: New.
7245 <base>: Remove.
7246 (dtor_catch_syscall): Change to ...
7247 (syscall_catchpoint::~syscall_catchpoint): ... this.
7248 (create_syscall_event_catchpoint): Remove reference to base
7249 field.
7250 (initialize_syscall_catchpoint_ops): Don't set dtor.
7251 * break-catch-throw.c (struct exception_catchpoint): Inherit
7252 from breakpoint.
7253 <~exception_catchpoint>: New.
7254 <base>: Remove.
7255 (dtor_exception_catchpoint): Change to ...
7256 (exception_catchpoint::~exception_catchpoint): ... this.
7257 (handle_gnu_v3_exceptions): Remove reference to base field.
7258 (initialize_throw_catchpoint_ops): Don't set dtor.
7259 * ctf.c (ctf_get_traceframe_address): Remove reference to base
7260 field.
7261 * remote.c (remote_get_tracepoint_status): Likewise.
7262 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
7263 * tracefile.c (tracefile_fetch_registers): Likewise.
7264 * tracepoint.c (actions_command): Likewise.
7265 (validate_actionline): Likewise.
7266 (tfind_1): Likewise.
7267 (get_traceframe_location): Likewise.
7268 (find_matching_tracepoint_location): Likewise.
7269 (parse_tracepoint_status): Likewise.
7270 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
7271
7272 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
7273
7274 * breakpoint.c (struct longjmp_breakpoint): New struct.
7275 (is_tracepoint_type): Change return type to bool.
7276 (is_longjmp_type): New function.
7277 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
7278 (set_raw_breakpoint_without_location): Use
7279 new_breakpoint_from_type.
7280 (set_raw_breakpoint): Likewise.
7281
7282 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
7283
7284 * breakpoint.c (new_breakpoint_from_type): New function.
7285 (create_breakpoint_sal): Use new_breakpoint_from_type and
7286 unique_ptr.
7287 (create_breakpoint): Likewise.
7288
7289 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
7290
7291 * memattr.c (mem_info_command): Rename to ...
7292 (info_mem_command): ... this.
7293 (mem_enable_command): Rename to ...
7294 (enable_mem_command): ... this.
7295 (mem_disable_command): Rename to ...
7296 (disable_mem_command): ... this.
7297 (mem_delete_command): Rename to ...
7298 (delete_mem_command): ... this.
7299 (_initialize_mem): Adjust function names.
7300
7301 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
7302
7303 * btrace.c (handle_pt_insn_events): New.
7304 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
7305 STATUS. Split into this and ...
7306 (handle_pt_insn_event_flags): ... this.
7307
7308 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
7309
7310 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
7311 and struct pt_insn.resynced.
7312 * configure: Regenerated.
7313 * config.in: Regenerated.
7314
7315 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7316
7317 * btrace.c (ftrace_find_call_by_number): New function.
7318 (ftrace_new_function): Store objects, not pointers.
7319 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
7320 ftrace_new_gap, ftrace_update_function,
7321 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
7322 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
7323 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
7324 btrace_ends_with_single_insn, btrace_call_get): Account for
7325 btrace_thread_info::functions now storing objects.
7326 * btrace.h (struct btrace_thread_info): Add constructor.
7327 (struct btrace_thread_info) <functions>: Make std::vector.
7328 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
7329 Initialize with default values.
7330 * record-btrace.c (record_btrace_frame_sniffer): Account for
7331 btrace_thread_info::functions now storing objects.
7332
7333 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7334
7335 * btrace.c: Remove typedef bfun_s.
7336 (ftrace_new_gap): Directly add gaps to the list of gaps.
7337 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
7338 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
7339 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
7340 instead of gdb VEC.
7341
7342 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7343
7344 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
7345 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
7346 with btrace_thread_info::next_segment and
7347 btrace_thread_info::prev_segment.
7348 * btrace.h: Remove struct btrace_func_link.
7349 (struct btrace_function): Replace pair of function segment pointers
7350 with pair of indices.
7351 * python/py-record-btrace.c (btpy_call_prev_sibling,
7352 btpy_call_next_sibling): Replace references to
7353 btrace_thread_info::segment with btrace_thread_info::next_segment and
7354 btrace_thread_info::prev_segment.
7355 * record-btrace.c (record_btrace_frame_this_id): Use
7356 btrace_find_call_by_number.
7357
7358 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7359
7360 * btrace.c (ftrace_new_function, ftrace_fixup_level,
7361 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
7362 btrace_insn_next, btrace_insn_prev): Remove references to
7363 btrace_thread_info::flow.
7364 * btrace.h (struct btrace_function): Remove FLOW.
7365
7366 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7367
7368 * btrace.c (ftrace_find_call_by_number): New function.
7369 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
7370 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
7371 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
7372 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
7373 index.
7374 * btrace.h (struct btrace_function): Turn UP into an index.
7375 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
7376 as an index.
7377 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
7378 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
7379 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
7380
7381 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7382
7383 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
7384 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
7385 ftrace_update_function, ftrace_compute_global_level_offset,
7386 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
7387 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
7388 btrace_insn_end, btrace_is_empty): Remove references to
7389 btrace_thread_info::begin and btrace_thread_info::end.
7390 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
7391 (struct btrace_thread_info) <functions>: Adjust comment.
7392 * record-btrace.c (record_btrace_start_replaying): Remove reference to
7393 btrace_thread_info::begin.
7394
7395 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7396
7397 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
7398 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
7399 ftrace_update_function): Remove arguments that implicitly were always
7400 BTINFO->END.
7401 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
7402 Don't pass BTINFO->END.
7403
7404 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7405
7406 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
7407 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
7408 btrace_find_insn_by_number): Replace function segment pointer with
7409 index.
7410 (btrace_insn_cmp): Simplify.
7411 * btrace.h: (struct btrace_insn_iterator) Rename index to
7412 insn_index. Replace function segment pointer with index into function
7413 segment vector.
7414 * record-btrace.c (record_btrace_call_history): Replace function
7415 segment pointer use with index.
7416 (record_btrace_frame_sniffer): Retrieve function call segment through
7417 vector.
7418 (record_btrace_set_replay): Remove defunc't safety check.
7419
7420 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7421
7422 * btrace.c (btrace_ends_with_single_insn): New function.
7423 (btrace_call_get, btrace_call_number, btrace_call_begin,
7424 btrace_call_end, btrace_call_next, btrace_call_prev,
7425 btrace_find_call_by_number): Use index into call segment vector
7426 instead of pointer.
7427 (btrace_call_cmp): Simplify.
7428 * btrace.h (struct btrace_call_iterator): Replace function call segment
7429 pointer with index into vector.
7430 * record-btrace.c (record_btrace_call_history): Use index instead of
7431 pointer.
7432
7433 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7434
7435 * btrace.c (btrace_insn_begin, btrace_insn_end,
7436 btrace_find_insn_by_number): Add btinfo to iterator.
7437 * btrace.h (struct btrace_insn_iterator): Add btinfo.
7438
7439 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7440
7441 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
7442 and save pointers directly.
7443 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
7444 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
7445 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
7446 changed signature of functions.
7447 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
7448 (btrace_fetch): Remove code that adds btrace_function pointers to
7449 vector of btrace_functions.
7450 (btrace_clear): Simplify freeing vector of btrace_functions.
7451
7452 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7453
7454 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
7455 Replace VEC_* with std::vector functions.
7456 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
7457 (struct btrace_thread_info)<functions>: Change type to std::vector.
7458
7459 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
7460
7461 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
7462 "Removed targets and native configurations" up. Merge duplicate
7463 "New commands" sub-sections. Add "New options" sub-sections.
7464
7465 2017-05-26 Alan Hayward <alan.hayward@arm.com>
7466
7467 * defs.h (copy_integer_to_size): New declaration.
7468 * findvar.c (copy_integer_to_size): New function.
7469 (do_cint_test): New selftest function.
7470 (copy_integer_to_size_test): Likewise.
7471 (_initialize_findvar): Likewise.
7472 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
7473 (mips_fbsd_collect_reg): Use raw_collect_integer.
7474 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
7475 (mips64_fill_gregset): Use raw_collect_integer
7476 (mips64_fill_fpregset): Use raw_supply_integer.
7477 * regcache.c (regcache::raw_supply_integer): New function.
7478 (regcache::raw_collect_integer): Likewise.
7479 * regcache.h: (regcache::raw_supply_integer): New declaration.
7480 (regcache::raw_collect_integer): Likewise.
7481
7482 2017-05-24 Yao Qi <yao.qi@linaro.org>
7483
7484 * Makefile.in (SFILES): Add gdbarch-selftests.c.
7485 (COMMON_OBS): Add gdbarch-selftests.o.
7486 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
7487 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
7488 * gdbarch-selftests.c: New file.
7489 * regcache.h (regcache) <~regcache>: Mark it virtual if
7490 GDB_SELF_TEST.
7491 <raw_write>: Likewise.
7492
7493 2017-05-24 Yao Qi <yao.qi@linaro.org>
7494
7495 * regcache.c (current_regcache): Change it to
7496 regcache::current_regcache.
7497 (regcache_observer_target_changed): Update.
7498 (regcache_thread_ptid_changed): Make it a regcache static
7499 method.
7500 (regcache_thread_ptid_changed): Update.
7501 (class regcache_access): New.
7502 (current_regcache_test): Update.
7503 (_initialize_regcache): Update.
7504 * regcache.h: Include forward_list.
7505 (regcache): Declare regcache_thread_ptid_changed and declare
7506 registers_changed_ptid as friend.
7507
7508 2017-05-24 Yao Qi <yao.qi@linaro.org>
7509
7510 * i387-tdep.c (i387_register_to_value): Use register_size
7511 instead of TYPE_LENGTH.
7512 * m68k-tdep.c (m68k_register_to_value): Likewise.
7513
7514 2017-05-24 Yao Qi <yao.qi@linaro.org>
7515
7516 * i387-tdep.c (i387_convert_register_p): Return false if type
7517 code isn't TYPE_CODE_FLT.
7518
7519 2017-05-24 Yao Qi <yao.qi@linaro.org>
7520
7521 * alpha-tdep.c (alpha_convert_register_p): Return true if type
7522 length is 4.
7523 (alpha_register_to_value): Remove type length check.
7524 (alpha_value_to_register): Likewise.
7525
7526 2017-05-24 Yao Qi <yao.qi@linaro.org>
7527
7528 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
7529 TYPE_CODE_FLT.
7530
7531 2017-05-24 Yao Qi <yao.qi@linaro.org>
7532
7533 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
7534 TYPE_CODE_FLT or not.
7535
7536 2017-05-24 Yao Qi <yao.qi@linaro.org>
7537
7538 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
7539 * avr-tdep.c (avr_gdbarch_init): Likewise.
7540 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
7541 * cris-tdep.c (cris_gdbarch_init): Likewise.
7542 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
7543 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
7544 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7545 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
7546 * mep-tdep.c (mep_gdbarch_init): Likewise.
7547 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
7548 * mips-tdep.c (mips_gdbarch_init): Likewise.
7549 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
7550 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7551 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
7552 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
7553 * v850-tdep.c (v850_gdbarch_init): Likewise.
7554
7555 2017-05-24 Yao Qi <yao.qi@linaro.org>
7556
7557 * selftest-arch.c (tests_with_arch): Call registers_changed
7558 and reinit_frame_cache.
7559 * selftest.c (run_self_tests): Likewise.
7560
7561 2017-05-24 Yao Qi <yao.qi@linaro.org>
7562
7563 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
7564 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
7565
7566 2017-05-24 Yao Qi <yao.qi@linaro.org>
7567
7568 * rl78-tdep.c (rl78_gdbarch_init): Don't call
7569 set_gdbarch_print_insn.
7570
7571 2017-05-24 Yao Qi <yao.qi@linaro.org>
7572
7573 * h8300-tdep.c (h8300_gdbarch_init): Don't call
7574 set_gdbarch_print_insn.
7575
7576 2017-05-24 Yao Qi <yao.qi@linaro.org>
7577
7578 * alpha-tdep.c (alpha_gdbarch_init): Don't call
7579 set_gdbarch_print_insn.
7580 * arc-tdep.c (arc_gdbarch_init): Likewise.
7581 * arch-utils.c: include dis-asm.h.
7582 (default_print_insn): New function.
7583 * arch-utils.h (default_print_insn): Declare.
7584 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
7585 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
7586 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
7587 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
7588 * frv-tdep.c (frv_gdbarch_init): Likewise.
7589 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
7590 * gdbarch.sh (print_insn): Use default_print_insn.
7591 * gdbarch.c: Regenerated.
7592 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
7593 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
7594 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
7595 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
7596 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7597 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
7598 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
7599 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
7600 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
7601 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
7602 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
7603 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7604 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
7605 * mt-tdep.c (mt_gdbarch_init): Likewise.
7606 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
7607 * nios2-tdep.c (nios2_print_insn): Remove.
7608 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
7609 * rx-tdep.c (rx_gdbarch_init): Likewise.
7610 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7611 * score-tdep.c (score_print_insn): Remove.
7612 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
7613 * sh-tdep.c (sh_gdbarch_init): Likewise.
7614 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
7615 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7616 * tic6x-tdep.c (tic6x_print_insn): Remove.
7617 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
7618 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
7619 * v850-tdep.c (v850_gdbarch_init): Likewise.
7620 * vax-tdep.c (vax_gdbarch_init): Likewise.
7621 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
7622 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
7623
7624 2017-05-23 John Baldwin <jhb@FreeBSD.org>
7625
7626 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
7627 (MIPS_FP0_REGNUM): Remove.
7628 (MIPS_FSR_REGNUM): Remove.
7629 (mips_fbsd_supply_fpregs): Use mips_regnum.
7630 (mips_fbsd_supply_gregs): Likewise.
7631 (mips_fbsd_collect_fpregs): Likewise.
7632 (mips_fbsd_collect_gregs): Likewise.
7633
7634 2017-05-23 John Baldwin <jhb@FreeBSD.org>
7635
7636 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
7637 (getpfpregs_supplies): New function.
7638 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
7639 getfpregs_supplies.
7640 (mips_fbsd_store_inferior_registers): Likewise.
7641
7642 2017-05-22 Pedro Alves <palves@redhat.com>
7643
7644 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
7645 maintainer.
7646
7647 2017-05-22 Alan Hayward <alan.hayward@arm.com>
7648
7649 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
7650 (store_register): Likewise.
7651 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
7652 (get_decimal_float_return_value): Likewise.
7653 (do_ppc_sysv_return_value): Likewise.
7654 (ppc64_sysv_abi_push_integer): Likewise.
7655 (ppc64_sysv_abi_push_freg): Likewise.
7656 (ppc64_sysv_abi_return_value_base): Likewise.
7657 (ppc64_sysv_abi_return_value): Likewise.
7658 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
7659 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
7660 * rs6000-nat.c: Likewise.
7661 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
7662 (rs6000_value_to_register): Likewise.
7663 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
7664
7665 2017-05-21 Tom Tromey <tom@tromey.com>
7666
7667 PR rust/21466:
7668 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
7669 arrays as "[T]", not "[T; ]".
7670
7671 2017-05-19 Tom Tromey <tom@tromey.com>
7672
7673 PR rust/21484:
7674 * rust-lang.c (exp_descriptor_rust): New function.
7675 (rust_language_defn): Use it.
7676 * p-lang.c (pascal_language_defn): Update.
7677 * opencl-lang.c (opencl_language_defn): Update.
7678 * objc-lang.c (objc_language_defn): Update.
7679 * m2-lang.c (m2_language_defn): Update.
7680 * language.h (struct language_defn)
7681 <la_watch_location_expression>: New member.
7682 * language.c (unknown_language_defn, auto_language_defn)
7683 (local_language_defn): Update.
7684 * go-lang.c (go_language_defn): Update.
7685 * f-lang.c (f_language_defn): Update.
7686 * d-lang.c (d_language_defn): Update.
7687 * c-lang.h (c_watch_location_expression): Declare.
7688 * c-lang.c (c_watch_location_expression): New function.
7689 (c_language_defn, cplus_language_defn, asm_language_defn)
7690 (minimal_language_defn): Use it.
7691 * breakpoint.c (watch_command_1): Call
7692 la_watch_location_expression.
7693 * ada-lang.c (ada_language_defn): Update.
7694
7695 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7696
7697 PR tui/21482
7698 * gdb_curses.h (NOMACROS): Define.
7699 (NCURSES_NOMACROS): Define.
7700
7701 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7702
7703 PR tui/21482
7704 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
7705 arg to char *.
7706 * tui/tui-wingeneral.c (box_win): Likewise.
7707 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
7708 (tui_show_source_line): Likewise.
7709 (tui_show_exec_info_content): Likewise.
7710
7711 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
7712
7713 * sparc-tdep.c (sparc_structure_return_p)
7714 (sparc_arg_on_registers_p): New functions.
7715 (sparc32_store_arguments): Use them.
7716 * sparc64-tdep.c (sparc64_16_byte_align_p)
7717 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
7718 Handle TYPE_CODE_ARRAY.
7719
7720 2017-05-17 Yao Qi <yao.qi@linaro.org>
7721
7722 * cli/cli-decode.c (add_alias_cmd): New function.
7723 * command.h (add_alias_cmd): Declare.
7724 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
7725 instead call add_alias_cmd.
7726
7727 2017-05-17 Pedro Alves <palves@redhat.com>
7728
7729 * Makefile.in (nat_extra_makefile_frag): Rename to ...
7730 (nat_makefile_frag): ... this. All references updated.
7731 * configure.ac: Likewise.
7732 * configure.nat: Likewise. Enhance comments.
7733 * configure: Regenerate.
7734
7735 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7736
7737 * procfs.c (procfs_create_inferior): Change prototype to match
7738 definition.
7739
7740 2017-05-13 Eli Zaretskii <eliz@gnu.org>
7741
7742 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
7743 C++ compiler warning.
7744
7745 2017-05-12 Tom Tromey <tom@tromey.com>
7746
7747 PR rust/21483:
7748 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
7749 recurse, just call value_struct_elt directly.
7750
7751 2017-05-12 Tom Tromey <tom@tromey.com>
7752
7753 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
7754 OP_RUST_ARRAY>: Fix.
7755
7756 2017-05-12 Tom Tromey <tom@tromey.com>
7757
7758 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
7759
7760 2017-05-09 Yao Qi <yao.qi@linaro.org>
7761
7762 * regcache.c: Include <forward_list>.
7763 (struct regcache_list): Remove.
7764 (current_regcache): Update.
7765 (get_thread_arch_aspace_regcache): Update for std::forward_list.
7766 (regcache_thread_ptid_changed): Likewise.
7767 (registers_changed_ptid): Likewise.
7768 (current_regcache_size): Likewise.
7769
7770 2017-05-09 Yao Qi <yao.qi@linaro.org>
7771
7772 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
7773 (current_regcache_size): New function.
7774 (current_regcache_test): New function.
7775 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
7776
7777 2017-05-08 Alan Hayward <alan.hayward@arm.com>
7778
7779 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
7780 (print_gp_register_row): Use get_frame_register_value.
7781
7782 2017-05-08 Alan Hayward <alan.hayward@arm.com>
7783
7784 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
7785 (mips_supply_fpregset): Likewise.
7786 (mips64_supply_gregset): Likewise.
7787
7788 2017-05-08 Alan Hayward <alan.hayward@arm.com>
7789
7790 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
7791 regcache->raw_supply_zeroed.
7792
7793 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7794
7795 * configure.nat: Rearrange 'case' statements to match
7796 host before cpu.
7797
7798 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7799
7800 * Makefile.in: Remove "@host_makefile_frag@". Add variables
7801 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
7802 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
7803 "@nat_extra_makefile_frag@".
7804 (Makefile): Remove dependency on "@frags@".
7805 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
7806 (data-directory/Makefile): Likewise.
7807 * config/aarch64/linux.mh: Deleted; moved contents to
7808 "gdb/configure.nat".
7809 * config/alpha/alpha-linux.mh: Likewise.
7810 * config/alpha/nbsd.mh: Likewise.
7811 * config/arm/linux.mh: Likewise.
7812 * config/arm/nbsdelf.mh: Likewise.
7813 * config/i386/cygwin.mh: Likewise.
7814 * config/i386/cygwin64.mh: Likewise.
7815 * config/i386/darwin.mh: Likewise.
7816 * config/i386/fbsd.mh: Likewise.
7817 * config/i386/fbsd64.mh: Likewise.
7818 * config/i386/go32.mh: Likewise.
7819 * config/i386/i386gnu.mh: Likewise.
7820 * config/i386/i386sol2.mh: Likewise.
7821 * config/i386/linux.mh: Likewise.
7822 * config/i386/linux64.mh: Likewise.
7823 * config/i386/mingw.mh: Likewise.
7824 * config/i386/mingw64.mh: Likewise.
7825 * config/i386/nbsd64.mh: Likewise.
7826 * config/i386/nbsdelf.mh: Likewise.
7827 * config/i386/nto.mh: Likewise.
7828 * config/i386/obsd.mh: Likewise.
7829 * config/i386/obsd64.mh: Likewise.
7830 * config/i386/sol2-64.mh: Likewise.
7831 * config/ia64/linux.mh: Likewise.
7832 * config/m32r/linux.mh: Likewise.
7833 * config/m68k/linux.mh: Likewise.
7834 * config/m68k/nbsdelf.mh: Likewise.
7835 * config/m68k/obsd.mh: Likewise.
7836 * config/m88k/obsd.mh: Likewise.
7837 * config/mips/fbsd.mh: Likewise.
7838 * config/mips/linux.mh: Likewise.
7839 * config/mips/nbsd.mh: Likewise.
7840 * config/mips/obsd64.mh: Likewise.
7841 * config/pa/linux.mh: Likewise.
7842 * config/pa/nbsd.mh: Likewise.
7843 * config/pa/obsd.mh: Likewise.
7844 * config/powerpc/aix.mh: Likewise.
7845 * config/powerpc/fbsd.mh: Likewise.
7846 * config/powerpc/linux.mh: Likewise.
7847 * config/powerpc/nbsd.mh: Likewise.
7848 * config/powerpc/obsd.mh: Likewise.
7849 * config/powerpc/ppc64-linux.mh: Likewise.
7850 * config/powerpc/spu-linux.mh: Likewise.
7851 * config/s390/linux.mh: Likewise.
7852 * config/sh/nbsd.mh: Likewise.
7853 * config/sparc/fbsd.mh: Likewise.
7854 * config/sparc/linux.mh: Likewise.
7855 * config/sparc/linux64.mh: Likewise.
7856 * config/sparc/nbsd64.mh: Likewise.
7857 * config/sparc/nbsdelf.mh: Likewise.
7858 * config/sparc/obsd64.mh: Likewise.
7859 * config/sparc/sol2.mh: Likewise.
7860 * config/tilegx/linux.mh: Likewise.
7861 * config/vax/nbsdelf.mh: Likewise.
7862 * config/vax/obsd.mh: Likewise.
7863 * config/xtensa/linux.mh: Likewise.
7864 * config/i386/i386gnu.mn: New file, with excerpts from
7865 "config/i386/i386gnu.mh".
7866 * configure: Regenerate.
7867 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
7868 *.mh files under "gdb/config".
7869 * configure.nat: New file, with contents from the
7870 "gdb/config/*/*.mh" files.
7871
7872 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
7873
7874 * btrace.c (btrace_clear): Free insn vector.
7875
7876 2017-05-05 Pedro Alves <palves@redhat.com>
7877
7878 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
7879 * configure: Regenerate.
7880
7881 2017-05-04 Pedro Alves <palves@redhat.com>
7882
7883 * Makefile.in (SFILES): Add progspace-and-thread.c.
7884 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
7885 (COMMON_OBS): Add progspace-and-thread.o.
7886 * breakpoint.c: Include "progspace-and-thread.h".
7887 (update_inserted_breakpoint_locations)
7888 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
7889 Use scoped_restore_current_pspace_and_thread.
7890 (create_std_terminate_master_breakpoint): Use
7891 scoped_restore_current_program_space.
7892 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
7893 (print_breakpoint_location): Use
7894 scoped_restore_current_program_space.
7895 (bp_loc_is_permanent): Use
7896 scoped_restore_current_pspace_and_thread.
7897 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
7898 (download_tracepoint_locations): Use
7899 scoped_restore_current_pspace_and_thread.
7900 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
7901 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
7902 (enum step_over_calls_kind): Moved from inferior.h.
7903 (class scoped_restore_current_thread): New class.
7904 * gdbthread.h (make_cleanup_restore_current_thread): Delete
7905 declaration.
7906 (scoped_restore_current_thread): New class.
7907 * infcmd.c: Include "common/gdb_optional.h".
7908 (continue_1, proceed_after_attach): Use
7909 scoped_restore_current_thread.
7910 (notice_new_inferior): Use scoped_restore_current_thread.
7911 * inferior.c: Include "progspace-and-thread.h".
7912 (restore_inferior, save_current_inferior): Delete.
7913 (add_inferior_command, clone_inferior_command): Use
7914 scoped_restore_current_pspace_and_thread.
7915 * inferior.h (scoped_restore_current_inferior): New class.
7916 * infrun.c: Include "progspace-and-thread.h" and
7917 "common/gdb_optional.h".
7918 (follow_fork_inferior): Use
7919 scoped_restore_current_pspace_and_thread.
7920 (scoped_restore_exited_inferior): New class.
7921 (handle_vfork_child_exec_or_exit): Use
7922 scoped_restore_exited_inferior,
7923 scoped_restore_current_pspace_and_thread,
7924 scoped_restore_current_thread and scoped_restore.
7925 (fetch_inferior_event): Use scoped_restore_current_thread.
7926 * linespec.c (decode_line_full, decode_line_1): Use
7927 scoped_restore_current_program_space.
7928 * mi/mi-main.c: Include "progspace-and-thread.h".
7929 (exec_continue): Use scoped_restore_current_thread.
7930 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
7931 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
7932 * proc-service.c (ps_pglobal_lookup): Use
7933 scoped_restore_current_program_space.
7934 * progspace-and-thread.c: New file.
7935 * progspace-and-thread.h: New file.
7936 * progspace.c (release_program_space, clone_program_space): Use
7937 scoped_restore_current_program_space.
7938 (restore_program_space, save_current_program_space)
7939 (save_current_space_and_thread): Delete.
7940 (switch_to_program_space_and_thread): Moved to
7941 progspace-and-thread.c.
7942 * progspace.h (save_current_program_space)
7943 (save_current_space_and_thread): Delete declarations.
7944 (scoped_restore_current_program_space): New class.
7945 * remote.c (remote_btrace_maybe_reopen): Use
7946 scoped_restore_current_thread.
7947 * symtab.c: Include "progspace-and-thread.h".
7948 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
7949 * thread.c (print_thread_info_1): Use
7950 scoped_restore_current_thread.
7951 (struct current_thread_cleanup): Delete.
7952 (do_restore_current_thread_cleanup)
7953 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
7954 (scoped_restore_current_thread::~scoped_restore_current_thread):
7955 ... this new dtor.
7956 (make_cleanup_restore_current_thread): Rename/convert to ...
7957 (scoped_restore_current_thread::scoped_restore_current_thread):
7958 ... this new ctor.
7959 (thread_apply_all_command): Use scoped_restore_current_thread.
7960 (thread_apply_command): Use scoped_restore_current_thread.
7961 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
7962 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
7963
7964 2017-05-04 Pedro Alves <palves@redhat.com>
7965
7966 * thread.c (make_cleanup_restore_current_thread): Move
7967 find_thread_ptid call before the is_stopped call. Assert that the
7968 thread is found. Replace is_stopped call by checking the thread's
7969 state directly. Remove unnecessary NULL-thread check.
7970
7971 2017-05-04 Pedro Alves <palves@redhat.com>
7972
7973 * corelow.c (thread_section_name): New class.
7974 (get_core_register_section, get_core_siginfo): Use it.
7975
7976 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
7977
7978 * corelow.c (sniff_core_bfd): Remove extra semicolon.
7979 (get_core_register_section): Remove xfree of NULL pointer.
7980
7981 2017-05-03 Alan Hayward <alan.hayward@arm.com>
7982
7983 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
7984 * regcache.c (regcache::raw_supply_zeroed): New function.
7985 * regcache.h (regcache::raw_supply_zeroed): New declaration.
7986
7987 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
7988
7989 * gdbarch.sh: Remove commented out definition of
7990 TARGET_CHAR_BIT.
7991 * gdbarch.h: Re-generate.
7992
7993 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7994
7995 * configure: Regenerate.
7996
7997 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
7998
7999 * solib-target.c (solib_target_relocate_section_addresses):
8000 Remove num_section_bases, num_bases, segment_bases variables.
8001
8002 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
8003
8004 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
8005
8006 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
8007
8008 * solib-target.c: Include <vector>
8009 (struct lm_info_target) <~lm_info_target>: Remove.
8010 <segment_bases, section_bases>: Change type to
8011 std::vector<CORE_ADDR>.
8012 (library_list_start_segment, library_list_start_section,
8013 library_list_end_library,
8014 solib_target_relocate_section_addresses): Adjust.
8015
8016 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
8017
8018 * gdbarch.sh (software_single_step): Change return type to
8019 std::vector<CORE_ADDR>.
8020 * gdbarch.c, gdbarch.h: Re-generate.
8021 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
8022 Adjust.
8023 (arm_deal_with_atomic_sequence_raw): Adjust.
8024 (thumb_get_next_pcs_raw): Adjust.
8025 (arm_get_next_pcs_raw): Adjust.
8026 (arm_get_next_pcs): Adjust.
8027 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
8028 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
8029 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
8030 (alpha_software_single_step): Adjust.
8031 * alpha-tdep.h (alpha_software_single_step): Adjust.
8032 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
8033 * arm-tdep.c (arm_software_single_step): Adjust.
8034 (arm_breakpoint_kind_from_current_state): Adjust.
8035 * arm-tdep.h (arm_software_single_step): Adjust.
8036 * breakpoint.c (insert_single_step_breakpoint): Adjust.
8037 * cris-tdep.c (cris_software_single_step): Adjust.
8038 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
8039 (micromips_deal_with_atomic_sequence): Adjust.
8040 (deal_with_atomic_sequence): Adjust.
8041 (mips_software_single_step): Adjust.
8042 * mips-tdep.h (mips_software_single_step): Adjust.
8043 * moxie-tdep.c (moxie_software_single_step): Adjust.
8044 * nios2-tdep.c (nios2_software_single_step): Adjust.
8045 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
8046 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
8047 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
8048 * s390-linux-tdep.c (s390_software_single_step): Adjust.
8049 * sparc-tdep.c (sparc_software_single_step): Adjust.
8050 * spu-tdep.c (spu_software_single_step): Adjust.
8051 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
8052
8053 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
8054
8055 * gdbarch.sh: Use semi-colon as field separator instead of colon.
8056 * gdbarch.h: Re-generate.
8057
8058 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
8059
8060 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
8061 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
8062 * python/py-instruction.c, python/py-instruction.h: New file.
8063 * python/py-record.c: Add py-instruction.h include.
8064 (gdbpy_initialize_record): Make gdb.Instruction a super class of
8065 gdb.RecordInstruction.
8066 * python/python-internal.h: Add gdbpy_initialize_instruction
8067 declaration.
8068 * python/python.c (do_start_initialization): Add
8069 gdbpy_initialize_instruction.
8070
8071 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
8072
8073 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
8074 Remove.
8075 (btrace_func_from_recpy_func): New function.
8076 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
8077 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
8078 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
8079 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
8080 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
8081 Also, use new helper functions.
8082 (btpy_list_item): Use new helper functions.
8083 (recpy_bt_function_call_history): Use new type name.
8084 (btpy_call_getset): Remove.
8085 (gdbpy_initialize_btrace): Remove code to initialize
8086 gdb.BtraceFunctionCall.
8087 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
8088 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
8089 recpy_bt_func_prev, recpy_bt_func_next): New export.
8090 * python/py-record.c (recpy_func_type): New static object.
8091 (recpy_func_new, recpy_func_level, recpy_func_symbol,
8092 recpy_func_instructions, recpy_func_up, recpy_func_prev,
8093 recpy_func_next): New function.
8094 (recpy_element_hash, recpy_element_richcompare): Updated comment.
8095 (recpy_func_getset): New static object.
8096 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
8097 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
8098
8099 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
8100
8101 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
8102 (btpy_object, btpy_insn_type, btpy_new): Remove.
8103 (btpy_list_object): Use gdb.RecordInstruction type instead of
8104 gdb.BtraceInstruction type.
8105 (btrace_insn_from_recpy_insn): New function.
8106 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
8107 btpy_new.
8108 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
8109 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
8110 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
8111 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
8112 instead of btpy_object.
8113 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
8114 btpy_insn_data, btpy_insn_decode): Rename to ...
8115 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
8116 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
8117 recpy_bt_insn_decode): This. Also, use new helper functions.
8118 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
8119 recpy_insn_type.
8120 (btpy_insn_getset): Remove.
8121 (gdbpy_initialize_btrace): Remove code to initialize
8122 gdb.BtraceInstruction. Use recpy_element_object.
8123 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
8124 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
8125 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
8126 * python/py-record.c (recpy_insn_type): New static object.
8127 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
8128 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
8129 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
8130 New function.
8131 (recpy_insn_getset): New static object.
8132 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
8133 * python/py-record.h (recpy_element_object): New typedef.
8134 (recpy_insn_type, recpy_insn_new): New export.
8135
8136 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
8137
8138 * py-record-btrace.c (btpy_insn_new): Removed.
8139 (btpy_insn_or_gap_new): New function.
8140 (btpy_insn_error): Removed.
8141 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
8142 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
8143 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
8144 btpy_insn_or_gap_new instead of btpy_insn_new.
8145 (btpy_insn_getset): Remove btpy_insn_error.
8146 * py-record.c (recpy_gap_type): New static object.
8147 (recpy_gap_object): New typedef.
8148 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
8149 recpy_gap_reason_string): New function.
8150 (recpy_gap_getset): New static object.
8151 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
8152 * py-record.h (recpy_gap_new): New export.
8153
8154 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
8155
8156 * python/py-record.c (recpy_ptid): Remove.
8157 (recpy_record_getset): Remove recpy_ptid.
8158
8159 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
8160
8161 * btrace.c (btrace_fetch): Set inferior_ptid.
8162 * python/py-record-btrace.c: Add "py-record.h" include.
8163 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
8164 recpy_bt_end, recpy_bt_instruction_history,
8165 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
8166 in gdb.Record object instead of current ptid.
8167 * python/py-record.c: Include new "py-record.h" file.
8168 (recpy_record_object): Moved to py-record.h.
8169 * python/py-record.h: New file.
8170
8171 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
8172
8173 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
8174 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
8175 indentation.
8176
8177 2017-05-01 Joel Brobecker <brobecker@adacore.com>
8178
8179 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
8180 the past maintainers section.
8181
8182 2017-04-28 Yao Qi <yao.qi@linaro.org>
8183
8184 * infcmd.c (get_return_value): Use regcache ctor, and remove
8185 cleanup.
8186
8187 2017-04-28 Yao Qi <yao.qi@linaro.org>
8188 Pedro Alves <palves@redhat.com>
8189
8190 * regcache.c (regcache::regcache): New tag dispatch ctor.
8191 (do_cooked_read): Moved above.
8192 (regcache_dup): Use the tag dispatch ctor..
8193 * regcache.h (regcache): Declare ctor, delete copy ctor and
8194 assignment operator, remove friend regcache_dup.
8195
8196 2017-04-28 Yao Qi <yao.qi@linaro.org>
8197
8198 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
8199 call method save instead of regcache_cpy.
8200 * regcache.h (struct regcache): Make regcache_dup a friend.
8201
8202 2017-04-28 Yao Qi <yao.qi@linaro.org>
8203
8204 * regcache.c (struct regcache): Move to regcache.h
8205 (regcache::arch): New method.
8206 (regcache_get_ptid): Update.
8207 (get_regcache_arch): Call arch method.
8208 (get_regcache_aspace): Call method aspace.
8209 (register_buffer): Change it to method.
8210 (regcache_save): Change it to regcache::save.
8211 (regcache_restore): Likewise.
8212 (regcache_cpy_no_passthrough): Remove the declaration.
8213 (regcache_cpy): Call methods restore and cpy_no_passthrough.
8214 (regcache_cpy_no_passthrough): Change it to method
8215 cpy_no_passthrough.
8216 (regcache_register_status): Change it to method
8217 get_register_status.
8218 (regcache_invalidate): Change it to method invalidate.
8219 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
8220 (regcache_raw_update): Change it to method raw_update.
8221 (regcache_raw_read): Likewise.
8222 (regcache_raw_read_signed): Likewise.
8223 (regcache_raw_read_unsigned): Likewise.
8224 (regcache_raw_write_signed): Likewise.
8225 (regcache_raw_write_unsigned): Likewise.
8226 (regcache_cooked_read): Likewise.
8227 (regcache_cooked_read_value): Likewise.
8228 (regcache_cooked_read_signed): Likewise.
8229 (regcache_cooked_read_unsigned): Likewise.
8230 (regcache_cooked_write_signed): Likewise.
8231 (regcache_cooked_write_unsigned): Likewise.
8232 (regcache_raw_set_cached_value): Likewise.
8233 (regcache_raw_write): Likewise.
8234 (regcache_cooked_write): Likewise.
8235 (regcache_xfer_part): Likewise.
8236 (regcache_raw_read_part): Likewise.
8237 (regcache_raw_write_part): Likewise.
8238 (regcache_cooked_read_part): Likewise.
8239 (regcache_cooked_write_part): Likewise.
8240 (regcache_raw_supply): Likewise.
8241 (regcache_raw_collect): Likewise.
8242 (regcache_transfer_regset): Likewise.
8243 (regcache_supply_regset): Likewise.
8244 (regcache_collect_regset): Likewise.
8245 (regcache_debug_print_register): Likewise.
8246 (enum regcache_dump_what): Move it to regcache.h.
8247 (regcache_dump): Change it to method dump.
8248 * regcache.h (enum regcache_dump_what): New.
8249 (class regcache): New.
8250 * target.c (target_fetch_registers): Call method
8251 debug_print_register.
8252 (target_store_registers): Likewise.
8253
8254 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
8255
8256 * windows-nat.c (struct lm_info_windows): Initialize field.
8257 (windows_make_so): Allocate lm_info_windows with new.
8258 (windows_free_so): Free lm_info_windows with delete.
8259
8260 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
8261
8262 * solib-darwin.c (struct lm_info_darwin): Initialize field.
8263 (darwin_current_sos): Allocate lm_info_darwin with new, remove
8264 cleanup.
8265 (darwin_free_so): Free lm_info_darwin with delete.
8266
8267 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
8268
8269 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
8270 <l_addr_p>: Change type to bool.
8271 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
8272 (svr4_free_so): Free lm_info_svr4 with delete.
8273 (svr4_copy_library_list): Replace memcpy with call to copy
8274 constructor.
8275 (library_list_start_library, svr4_default_sos): Allocate
8276 lm_info_svr4 with new.
8277
8278 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
8279
8280 * solib-target.c (struct lm_info_target): Add destructor,
8281 initialize fields.
8282 <name>: Change type to std::string.
8283 (library_list_start_library): Allocate lm_info_target with new.
8284 (solib_target_free_library_list): Free lm_info_target with
8285 delete.
8286 (solib_target_current_sos): Adapt to std::string.
8287 (solib_target_free_so): Free lm_info_target with delete.
8288
8289 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
8290
8291 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
8292 fields.
8293 (frv_current_sos): Allocate lm_info_frv with new.
8294 (frv_relocate_main_executable): Free lm_info_frv with delete,
8295 allocate with new.
8296 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
8297
8298 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
8299
8300 * solib-frv.c (struct lm_info_frv): Fix indentation.
8301
8302 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
8303
8304 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
8305 map field.
8306 (dsbt_current_sos): Allocate lm_info_dsbt with new.
8307 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
8308 and allocate with new.
8309 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
8310
8311 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
8312
8313 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
8314 <filename, member_name>: Change type to std::string.
8315 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
8316 (library_list_start_library): Allocate lm_info_aix with new.
8317 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
8318 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
8319 with copy constructor.
8320
8321 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
8322
8323 * solist.h (struct lm_info): Remove.
8324 (struct lm_info_base): New class.
8325 (struct so_list) <lm_info>: Change type to lm_info_base *.
8326 * nto-tdep.c (struct lm_info): Remove.
8327 (lm_addr): Adjust.
8328 * solib-aix.c (struct lm_info): Rename to ...
8329 (struct lm_info_aix): ... this. Extend lm_info_base.
8330 (lm_info_p): Rename to ...
8331 (lm_info_aix_p): ... this, and adjust.
8332 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
8333 solib_aix_parse_libraries, library_list_start_library,
8334 solib_aix_free_library_list, solib_aix_parse_libraries,
8335 solib_aix_get_library_list,
8336 solib_aix_relocate_section_addresses, solib_aix_free_so,
8337 solib_aix_get_section_offsets,
8338 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
8339 Adjust.
8340 (struct solib_aix_inferior_data) <library_list>: Adjust.
8341 * solib-darwin.c (struct lm_info): Rename to ...
8342 (struct lm_info_darwin): ... this. Extend lm_info_base.
8343 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
8344 * solib-dsbt.c (struct lm_info): Rename to ...
8345 (struct lm_info_dsbt): ... this. Extend lm_info_base.
8346 (struct dsbt_info) <main_executable_lm_info): Adjust.
8347 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
8348 dsbt_relocate_section_addresses): Adjust.
8349 * solib-frv.c (struct lm_info): Rename to ...
8350 (struct lm_info_frv): ... this. Extend lm_info_base.
8351 (main_executable_lm_info): Adjust.
8352 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
8353 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
8354 find_canonical_descriptor_in_load_object,
8355 frv_fdpic_find_canonical_descriptor): Adjust.
8356 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
8357 to lm_info_svr4.
8358 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
8359 svr4_clear_so, svr4_copy_library_list,
8360 library_list_start_library, svr4_default_sos, svr4_read_so_list,
8361 svr4_current_sos, svr4_fetch_objfile_link_map,
8362 solist_update_incremental): Adjust.
8363 * solib-svr4.h (struct lm_info_svr4): Move here from
8364 solib-svr4.c.
8365 * solib-target.c (struct lm_info): Rename to ...
8366 (struct lm_info_target): ... this. Extend lm_info_base.
8367 (lm_info_p): Rename to ...
8368 (lm_info_target_p): ... this.
8369 (solib_target_parse_libraries, library_list_start_segment,
8370 library_list_start_section, library_list_start_library,
8371 library_list_end_library, solib_target_free_library_list,
8372 solib_target_current_sos, solib_target_free_so,
8373 solib_target_relocate_section_addresses): Adjust.
8374 * windows-nat.c (struct lm_info): Rename to ...
8375 (struct lm_info_windows): ... this. Extend lm_info_base.
8376 (windows_make_so, handle_load_dll, handle_unload_dll,
8377 windows_xfer_shared_libraries): Adjust.
8378
8379 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
8380
8381 * solib-darwin.c (struct darwin_so_list): Remove.
8382 (darwin_current_sos): Allocate an so_list object instead of a
8383 darwin_so_list, separately allocate an lm_info object.
8384 (darwin_free_so): Free lm_info.
8385
8386 2017-04-28 John Baldwin <jhb@FreeBSD.org>
8387
8388 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
8389 with fprintf_filtered.
8390
8391 2017-04-28 Yao Qi <yao.qi@linaro.org>
8392
8393 * regcache.c (regcache::regcache): New function.
8394 (regcache::~regcache): New function.
8395 (regcache_xmalloc_1): Remove.
8396 (regcache_xmalloc): Call new regcache.
8397 (regcache_xfree): Call delete regcache.
8398 (get_thread_arch_aspace_regcache): Call new regcache.
8399
8400 2017-04-28 Yao Qi <yao.qi@linaro.org>
8401
8402 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
8403 lwp instead of ptid_get_lwp.
8404
8405 2017-04-28 Yao Qi <yao.qi@linaro.org>
8406
8407 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
8408 lwp_info instead of getting from inferior_ptid.
8409
8410 2017-04-27 Keith Seitz <keiths@redhat.com>
8411
8412 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
8413 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
8414 (CV_CONVERSION_BADNESS): Define.
8415 (rank_one_type): Remove overly restrictive rvalue reference
8416 rank checks.
8417 Add cv-qualifier checks and subranks for type equality.
8418 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
8419 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
8420 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
8421
8422 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
8423
8424 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
8425 count when creating the object.
8426
8427 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
8428 Ulrich Weigand <uweigand@de.ibm.com>
8429
8430 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
8431 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
8432 is used in AIX.
8433 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
8434 (process_xcoff_symbol): Likewise.
8435 (scan_xcoff_symtab): Likewise.
8436
8437 2017-04-26 Alan Hayward <alan.hayward@arm.com>
8438
8439 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
8440 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
8441 (ia64_access_reg): Use get_frame_register_unsigned.
8442 (ia64_access_rse_reg): Likewise.
8443 (ia64_libunwind_frame_prev_register): Likewise.
8444
8445 2017-04-26 Jiong Wang <jiong.wang@arm.com>
8446
8447 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
8448 * gdbarch.c: Regenerated.
8449 * gdbarch.h: Regenerated.
8450 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
8451 visibility external.
8452 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
8453 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
8454 (enum cfa_how_kind): Move to ...
8455 (struct dwarf2_frame_state_reg_info): Likewise.
8456 (struct dwarf2_frame_state): Likewise.
8457 * dwarf2-frame.h: ... here.
8458 (dwarf2_frame_state_alloc_regs): New declaration.
8459 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
8460 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
8461
8462 2017-04-26 Alan Hayward <alan.hayward@arm.com>
8463
8464 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
8465 regcache_raw_read_unsigned.
8466 (xtensa_pseudo_register_write): Likewise.
8467
8468 2017-04-26 Alan Hayward <alan.hayward@arm.com>
8469
8470 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
8471 (nds32_pseudo_register_write): Likewise.
8472
8473 2017-04-25 Yao Qi <yao.qi@linaro.org>
8474
8475 * regcache.c (struct regcache) <readonly_p>: Change its type
8476 to bool.
8477 (regcache_xmalloc_1): Update parameter type and callers update.
8478
8479 2017-04-25 Yao Qi <yao.qi@linaro.org>
8480
8481 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
8482 set_gdbarch_wchar_bit.
8483 * arm-tdep.c (arm_gdbarch_init): Likewise.
8484
8485 2017-04-25 Pedro Alves <palves@redhat.com>
8486
8487 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
8488 (BothAreRelocatable, memcopy, memmove): Don't define.
8489 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
8490 macros.
8491
8492 2017-04-25 Pedro Alves <palves@redhat.com>
8493
8494 * common/common-defs.h: Include "common/poison.h".
8495 * common/function-view.h: (Not, Or, Requires): Move to traits.h
8496 and adjust.
8497 * common/poison.h: New file.
8498 * common/traits.h: Include <type_traits>.
8499 (Not, Or, Requires): New, moved from common/function-view.h.
8500
8501 2017-04-25 Pedro Alves <palves@redhat.com>
8502
8503 * breakpoint.h (struct breakpoint): In-class initialize all
8504 fields. Make boolean fields "bool".
8505 * breakpoint.c (init_raw_breakpoint_without_location): Remove
8506 memset call and initializations no longer necessary.
8507
8508 2017-04-25 Pedro Alves <palves@redhat.com>
8509
8510 * btrace.c (pt_btrace_insn_flags): Change parameter type to
8511 reference.
8512 (pt_btrace_insn): New function.
8513 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
8514
8515 2017-04-25 Pedro Alves <palves@redhat.com>
8516
8517 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
8518 "base" field and inherit from "bp_location" instead. Add
8519 non-default ctor.
8520 (allocate_location_exception): Use new non-default ctor.
8521 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
8522 (init_bp_location): Convert to ...
8523 (bp_location::bp_location): ... this new ctor, and remove memset
8524 call.
8525 (base_breakpoint_allocate_location): Use the new non-default ctor.
8526 * breakpoint.h (bp_location): Now a class. Declare default and
8527 non-default ctors. In-class initialize all members.
8528 (init_bp_location): Remove declaration.
8529
8530 2017-04-25 Pedro Alves <palves@redhat.com>
8531
8532 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
8533 assignment operator.
8534
8535 2017-04-24 Yao Qi <yao.qi@linaro.org>
8536
8537 * doublest.c (convert_doublest_to_floatformat): Call
8538 floatformat_totalsize_bytes.
8539
8540 2017-04-22 Tom Tromey <tom@tromey.com>
8541
8542 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
8543 ui_out_emit_list.
8544 * stack.c (print_frame): Use ui_out_emit_list.
8545 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
8546 ui_out_emit_list.
8547 * mi/mi-main.c (print_one_inferior)
8548 (mi_cmd_data_list_register_names)
8549 (mi_cmd_data_list_register_values, mi_cmd_list_features)
8550 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
8551 ui_out_emit_list.
8552 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
8553 (mi_output_solib_attribs): Use ui_out_emit_list,
8554 ui_out_emit_tuple.
8555 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
8556 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8557 (mi_cmd_stack_list_args, list_args_or_locals): Use
8558 ui_out_emit_list.
8559 * disasm.c (do_assembly_only): Use ui_out_emit_list.
8560 * breakpoint.c (print_solib_event, output_thread_groups): Use
8561 ui_out_emit_list.
8562
8563 2017-04-22 Tom Tromey <tom@tromey.com>
8564
8565 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
8566 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
8567 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
8568
8569 2017-04-22 Tom Tromey <tom@tromey.com>
8570
8571 * tracepoint.c (tvariables_info_1)
8572 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
8573
8574 2017-04-22 Tom Tromey <tom@tromey.com>
8575
8576 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
8577 annotate_arg_emitter.
8578 * breakpoint.c (print_mention_watchpoint)
8579 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
8580 * annotate.h (struct annotate_arg_emitter): New.
8581
8582 2017-04-22 Tom Tromey <tom@tromey.com>
8583
8584 * record-btrace.c (record_btrace_insn_history)
8585 (record_btrace_insn_history_range, record_btrace_call_history)
8586 (record_btrace_call_history_range): Use ui_out_emit_tuple.
8587 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
8588 ui_out_emit_tuple.
8589 * stack.c (print_frame_info): Use ui_out_emit_tuple.
8590 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
8591 * skip.c (skip_info): Use ui_out_emit_tuple.
8592 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
8593 * progspace.c (print_program_space): Use ui_out_emit_tuple.
8594 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
8595 * osdata.c (info_osdata): Use ui_out_emit_tuple.
8596 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
8597 ui_out_emit_tuple.
8598 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
8599 (output_register, mi_cmd_data_read_memory)
8600 (mi_cmd_data_read_memory_bytes, mi_load_progress)
8601 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
8602 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
8603 Use ui_out_emit_tuple.
8604 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
8605 ui_out_emit_tuple.
8606 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
8607 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
8608 * linux-thread-db.c (info_auto_load_libthread_db): Use
8609 ui_out_emit_tuple.
8610 * inferior.c (print_inferior): Use ui_out_emit_tuple.
8611 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
8612 * disasm.c (do_mixed_source_and_assembly_deprecated)
8613 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
8614 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
8615 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
8616 * breakpoint.c (print_one_breakpoint_location)
8617 (print_one_breakpoint): Use ui_out_emit_tuple.
8618 * auto-load.c (print_script, info_auto_load_cmd): Use
8619 ui_out_emit_tuple.
8620 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
8621
8622 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
8623
8624 * thread.c (print_thread_info_1): Remove dead code.
8625
8626 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8627
8628 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
8629 GDB_SELF_TEST.
8630 * arm-tdep.c (selftests::arm_record_test): Likewise.
8631
8632 2017-04-21 Yao Qi <yao.qi@linaro.org>
8633
8634 * regcache.c (regcache_restore): Remove argument 2. Replace
8635 argument 3 with regcache. Get register status from
8636 src->register_status and get register contents from
8637 register_buffer (src, regnum).
8638 (regcache_cpy): Update.
8639
8640 2017-04-19 Pedro Alves <palves@redhat.com>
8641
8642 * gdbthread.h (thread): Add missing closing parenthesis in
8643 comment.
8644
8645 2017-04-19 Pedro Alves <palves@redhat.com>
8646
8647 * common/refcounted-object.h: New file.
8648 * gdbthread.h: Include "common/refcounted-object.h".
8649 (thread_info): Inherit from refcounted_object and add comments.
8650 (thread_info::incref, thread_info::decref)
8651 (thread_info::m_refcount): Delete.
8652 (thread_info::deletable): Use the refcounted_object::refcount()
8653 method.
8654 * inferior.c (current_inferior_): Add comment.
8655 (set_current_inferior): Increment/decrement refcounts.
8656 (prune_inferiors, remove_inferior_command): Skip inferiors marked
8657 not-deletable instead of comparing with the current inferior.
8658 (initialize_inferiors): Increment the initial inferior's refcount.
8659 * inferior.h (struct inferior): Forward declare.
8660 Include "common/refcounted-object.h".
8661 (current_inferior, set_current_inferior): Move declaration to
8662 before struct inferior's definition, and fix comment.
8663 (inferior): Inherit from refcounted_object. Add comments.
8664 * thread.c (switch_to_thread_no_regs): Reference the thread's
8665 inferior pointer directly instead of doing a ptid lookup.
8666 (switch_to_no_thread): New function.
8667 (switch_to_thread(thread_info *)): New function, factored out
8668 from ...
8669 (switch_to_thread(ptid_t)): ... this.
8670 (restore_current_thread): Delete.
8671 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
8672 fields, and add 'inf' field.
8673 (do_restore_current_thread_cleanup): Check whether old->inf is
8674 alive instead of looking up an inferior by ptid. Use
8675 switch_to_thread and switch_to_no_thread.
8676 (restore_current_thread_cleanup_dtor): Use old->inf directly
8677 instead of lookup up an inferior by id. Decref the inferior.
8678 Don't restore 'removable'.
8679 (make_cleanup_restore_current_thread): Same the inferior pointer
8680 in old, instead of the inferior number. Incref the inferior.
8681 Don't save/clear 'removable'.
8682
8683 2017-04-19 Pedro Alves <palves@redhat.com>
8684
8685 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8686 unittests/scoped_restore-selftests.c.
8687 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
8688 * common/scoped_restore.h (scoped_restore_base): Make "class".
8689 (scoped_restore_base::release): New public method.
8690 (scoped_restore_base::scoped_restore_base): New protected ctor.
8691 (scoped_restore_base::m_saved_var): New protected field.
8692 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
8693 scoped_restore_base base class instead of m_saved_var directly.
8694 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
8695 (scoped_restore_tmpl::scoped_restore_tmpl(const
8696 scoped_restore_tmpl<T>&)): Likewise.
8697 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
8698 method.
8699 (scoped_restore_tmpl::saved_var): New method.
8700 (scoped_restore_tmpl::m_saved_var): Delete.
8701 * inferior.h (inferior::detaching): Now a bool.
8702 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
8703 cleanup.
8704 * unittests/scoped_restore-selftests.c: New file.
8705
8706 2017-04-19 Pedro Alves <palves@redhat.com>
8707
8708 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
8709 Re-sort in alphabetic order.
8710
8711 2017-04-18 Pedro Alves <palves@redhat.com>
8712
8713 * xml-support.c (obstack_xml_printf): Delete.
8714 * xml-support.h (obstack_xml_printf): Delete.
8715
8716 2017-04-18 Pedro Alves <palves@redhat.com>
8717
8718 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
8719 vdebug, verror, body_text, start_element, end_element, name,
8720 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
8721 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
8722 is_xinclude>: Make private and add m_ prefix.
8723 (gdb_xml_parser::body_text): New method, based on ...
8724 (gdb_xml_body_text): ... this. Adjust.
8725 (gdb_xml_parser::vdebug): New method, based on ...
8726 (gdb_xml_debug): ... this. Adjust.
8727 (gdb_xml_parser::verror): New method, based on ...
8728 (gdb_xml_error): ... this. Adjust.
8729 (gdb_xml_parser::start_element): New method, based on ...
8730 (gdb_xml_start_element): ... this. Adjust.
8731 (gdb_xml_start_element_wrapper): Defer to
8732 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
8733 (gdb_xml_parser::end_element): New method, based on ...
8734 (gdb_xml_end_element_wrapper): ... this. Adjust.
8735 (gdb_xml_parser::~gdb_xml_parser): Adjust.
8736 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
8737 (gdb_xml_parser::use_dtd): New method, based on ...
8738 (gdb_xml_use_dtd): ... this. Adjust.
8739 (gdb_xml_parser::parse): New method, based on ...
8740 (gdb_xml_parse): ... this. Adjust.
8741 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
8742 (xinclude_start_include): Adjust to call the parser's name method.
8743 (xml_xinclude_default, xml_xinclude_start_doctype)
8744 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
8745 method.
8746 (xml_process_xincludes): Adjust to call parser methods.
8747 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
8748 declarations.
8749
8750 2017-04-18 Pedro Alves <palves@redhat.com>
8751
8752 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
8753 gdb::optional<std::string>.
8754 * xml-support.c: Include <string>.
8755 (scope_level::scope_level(scope_level &&))
8756 (scope_level::~scope_level): Delete.
8757 (scope_level::body): Now a std::string.
8758 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
8759 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
8760 parameter.
8761 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
8762 (xinclude_parsing_data::output): Now a std::string reference.
8763 (xinclude_start_include): Adjust.
8764 (xml_xinclude_default): Adjust.
8765 (xml_process_xincludes): Add 'output' parameter, and return bool.
8766 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
8767 and return bool.
8768 * xml-tdesc.c: Include <unordered_map> and <string>.
8769 (tdesc_xml_cache): Delete.
8770 (tdesc_xml_cache_s): Delete.
8771 (xml_cache): Now an std::unordered_map.
8772 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
8773 (target_fetch_description_xml): Change return type to
8774 gdb::optional<std::string>, and adjust.
8775 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
8776 (target_fetch_description_xml): Change return type to
8777 gdb::optional<std::string>.
8778
8779 2017-04-18 Pedro Alves <palves@redhat.com>
8780
8781 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8782 unittests/optional-selftests.c.
8783 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
8784 * unittests/optional-selftests.c: New file.
8785 * unittests/optional/assignment/1.cc: New file.
8786 * unittests/optional/assignment/2.cc: New file.
8787 * unittests/optional/assignment/3.cc: New file.
8788 * unittests/optional/assignment/4.cc: New file.
8789 * unittests/optional/assignment/5.cc: New file.
8790 * unittests/optional/assignment/6.cc: New file.
8791 * unittests/optional/assignment/7.cc: New file.
8792 * unittests/optional/cons/copy.cc: New file.
8793 * unittests/optional/cons/default.cc: New file.
8794 * unittests/optional/cons/move.cc: New file.
8795 * unittests/optional/cons/value.cc: New file.
8796 * unittests/optional/in_place.cc: New file.
8797 * unittests/optional/observers/1.cc: New file.
8798 * unittests/optional/observers/2.cc: New file.
8799
8800 2017-04-18 Pedro Alves <palves@redhat.com>
8801
8802 * common/gdb_optional.h: Include common/traits.h.
8803 (in_place_t): New type.
8804 (in_place): New constexpr variable.
8805 (optional::optional): Remove member initialization of
8806 m_instantiated.
8807 (optional::optional(in_place_t...)): New constructor.
8808 (optional::~optional): Use reset.
8809 (optional::optional(const optional&)): New.
8810 (optional::optional(const optional&&)): New.
8811 (optional::optional(T &)): New.
8812 (optional::optional(T &&)): New.
8813 (operator::operator=(const optional &)): New.
8814 (operator::operator=(optional &&)): New.
8815 (operator::operator= (const T &))
8816 (operator::operator= (T &&))
8817 (operator::emplace (Args &&... args)): Return a T&. Use reset.
8818 (operator::reset): New.
8819 (operator::m_instantiated):: Add in-class initializer.
8820 * common/traits.h: Include <type_traits>.
8821 (struct And): New types.
8822
8823 2017-04-18 Pedro Alves <palves@redhat.com>
8824
8825 * xml-support.c: Include <vector>.
8826 (scope_level::scope_level(const gdb_xml_element *))
8827 (scope_level::scope_level(scope_level&&)): New.
8828 (scope_level::~scope_level): New.
8829 (scope_level_s): Delete.
8830 (gdb_xml_parser::scopes): Now a std::vector.
8831 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
8832 Use std::vector.
8833 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
8834 scope cleanup code.
8835 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
8836 of the scopes member. Use std::vector::emplace_back.
8837
8838 2017-04-18 Pedro Alves <palves@redhat.com>
8839
8840 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
8841 a bool.
8842 (gdb_xml_end_element): Change type of first parameter.
8843 (gdb_xml_cleanup): Rename to ...
8844 (gdb_xml_parser::~gdb_xml_parser): ... this.
8845 (gdb_xml_create_parser_and_cleanup): Delete with ...
8846 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
8847 to this new ctor.
8848 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
8849 using gdb_xml_create_parser_and_cleanup.
8850 (xinclude_parsing_data): Add ctor/dtor.
8851 (xml_xinclude_cleanup): Delete.
8852 (xml_process_xincludes): Create a local xinclude_parsing_data
8853 instead of heap-allocating one. Create a local gdb_xml_parser
8854 instead of heap-allocating one with
8855 gdb_xml_create_parser_and_cleanup.
8856
8857 2017-04-18 John Baldwin <jhb@FreeBSD.org>
8858
8859 PR threads/20743
8860 * fbsd-nat.c (resume_one_thread_cb): Remove.
8861 (resume_all_threads_cb): Remove.
8862 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
8863 iterate_over_threads.
8864
8865 2017-04-17 Joel Brobecker <brobecker@adacore.com>
8866
8867 * NEWS: Create a new section for the next release branch.
8868 Rename the section of the current branch, now that it has
8869 been cut.
8870
8871 2017-04-17 Joel Brobecker <brobecker@adacore.com>
8872
8873 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
8874 * version.in: Bump version to 8.0.50.DATE-git.
8875
8876 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
8877
8878 PR gdb/21385
8879 * windows-nat.c (windows_create_inferior): Declare 'allargs'
8880 independently of the host, and fix build breakage on Cygwin.
8881
8882 2017-04-13 Pedro Alves <palves@redhat.com>
8883
8884 * inferior.c (free_inferior): Convert to ...
8885 (inferior::~inferior): ... this dtor.
8886 (inferior::inferior): New ctor, factored out from ...
8887 (add_inferior_silent): ... here. Allocate the inferior with a new
8888 expression.
8889 (delete_inferior): Call delete instead of free_inferior.
8890 * inferior.h (gdb_environ, continuation): Forward declare.
8891 (inferior): Now a class. Add in-class initialization to all
8892 members. Make boolean fields bool, except 'detaching'.
8893 (inferior::inferior): New explicit ctor.
8894 (inferior::~inferior): New.
8895
8896 2017-04-13 Pedro Alves <palves@redhat.com>
8897
8898 * inferior.c (init_inferior_list): Delete.
8899 * inferior.h (init_inferior_list): Delete.
8900
8901 2017-04-13 Pedro Alves <palves@redhat.com>
8902
8903 PR threads/13217
8904 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
8905 (top level): Call it twice, with different thread sets.
8906
8907 2017-04-13 Pedro Alves <palves@redhat.com>
8908
8909 * thread.c: Include <algorithm>.
8910 (thread_array_cleanup): Delete.
8911 (scoped_inc_dec_ref): New class.
8912 (live_threads_count): New function.
8913 (set_thread_refcount): Delete.
8914 (tp_array_compar_ascending): Now a bool.
8915 (tp_array_compar): Convert to a std::sort comparison function.
8916 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
8917 and live_threads_count.
8918
8919 2017-04-13 Pedro Alves <palves@redhat.com>
8920
8921 * infrun.c (follow_fork_inferior): Also switch the current
8922 inferior.
8923
8924 2017-04-13 Pedro Alves <palves@redhat.com>
8925
8926 * breakpoint.c (watch_command_1): Save watchpoint-frame info
8927 before calling create_internal_breakpoint.
8928
8929 2017-04-13 Pedro Alves <palves@redhat.com>
8930
8931 * fork-child.c (execv_argv): New class.
8932 (breakup_args): Refactored as ...
8933 (execv_argv::init_for_no_shell): .. this method of execv_argv.
8934 Copy arguments to storage and replace separators with NULL
8935 terminators in place.
8936 (escape_bang_in_quoted_argument): Adjust to return bool.
8937 (execv_argv::execv_argv): New ctor.
8938 (execv_argv::init_for_shell): New method, factored out from
8939 fork_inferior. Don't strdup strings into the vector.
8940 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
8941 Remove free_vector_argv call.
8942
8943 2017-04-13 Yao Qi <yao.qi@linaro.org>
8944
8945 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
8946 tdep->rx_psw_type.
8947
8948 2017-04-13 Yao Qi <yao.qi@linaro.org>
8949
8950 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
8951 * rx-tdep.c (rx_gdbarch_init): Likewise.
8952
8953 2017-04-13 Pedro Alves <palves@redhat.com>
8954
8955 * breakpoint.h (struct breakpoint): Reindent.
8956
8957 2017-04-13 Pedro Alves <palves@redhat.com>
8958
8959 * breakpoint.c (bp_location): Rename to ...
8960 (bp_locations): ... this. All references updated.
8961 (bp_location_count): Rename to ...
8962 (bp_locations_count): ... this. All references updated.
8963 (bp_location_placed_address_before_address_max): Rename to ...
8964 (bp_locations_placed_address_before_address_max): ... this. All
8965 references updated.
8966 (bp_location_shadow_len_after_address_max): Rename to ...
8967 (bp_locations_shadow_len_after_address_max): ... this. All
8968 references updated.
8969 (bp_location_compare_addrs): Rename to ...
8970 (bp_locations_compare_addrs): ... this. All references updated.
8971 (bp_location_compare):Rename to ...
8972 (bp_locations_compare): ... this. All references updated.
8973 (bp_location_target_extensions_update): Rename to ...
8974 (bp_locations_target_extensions_update): ... this. All references
8975 updated.
8976
8977 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
8978
8979 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
8980 * common/common.m4: Check headers 'termios.h', 'termio.h' and
8981 'sgtty.h'.
8982 * common/gdb_termios.h: New file, with parts of "terminal.h".
8983 * inflow.c: Include "gdb_termios.h".
8984 * ser-unix.c: Include "gdb_termios.h".
8985 * terminal.h: Move terminal-related defines to
8986 "common/gdb_termios.h".
8987
8988 2017-04-12 Tom Tromey <tom@tromey.com>
8989
8990 * probe.c (parse_probes): Update.
8991 * location.h (delete_event_location): Don't declare.
8992 (event_location_deleter::operator()): Update.
8993 * location.c (event_location_deleter::operator()): Rename from
8994 delete_event_location.
8995 * linespec.h (linespec_result) <location>: Change type to
8996 event_location_up.
8997 * linespec.c (canonicalize_linespec, event_location_to_sals)
8998 (decode_objc): Update.
8999 (linespec_result): Don't call delete_event_location.
9000 * breakpoint.c (create_breakpoints_sal)
9001 (bkpt_probe_create_sals_from_location)
9002 (strace_marker_create_sals_from_location): Update.
9003
9004 2017-04-12 Tom Tromey <tom@tromey.com>
9005
9006 * linespec.h (struct linespec_result): Add constructor and
9007 destructor.
9008 (init_linespec_result, destroy_linespec_result)
9009 (make_cleanup_destroy_linespec_result): Don't declare.
9010 * linespec.c (init_linespec_result): Remove.
9011 (linespec_result::~linespec_result): Rename from
9012 destroy_linespec_result. Update.
9013 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
9014 Remove.
9015 * breakpoint.c (create_breakpoint, break_range_command)
9016 (decode_location_default): Update.
9017 * ax-gdb.c (agent_command_1): Update.
9018
9019 2017-04-12 Tom Tromey <tom@tromey.com>
9020
9021 * remote.c (remote_download_tracepoint): Update.
9022 * python/py-breakpoint.c (bppy_get_location): Update.
9023 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
9024 (gdbscm_breakpoint_location): Update.
9025 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
9026 * breakpoint.h (struct breakpoint) <location, location_range_end>:
9027 Change type to event_location_up.
9028 * breakpoint.c (create_overlay_event_breakpoint)
9029 (create_longjmp_master_breakpoint)
9030 (create_std_terminate_master_breakpoint)
9031 (create_exception_master_breakpoint)
9032 (breakpoint_event_location_empty_p, print_breakpoint_location)
9033 (print_one_breakpoint_location, create_thread_event_breakpoint)
9034 (init_breakpoint_sal, create_breakpoint)
9035 (print_recreate_ranged_breakpoint, break_range_command)
9036 (init_ada_exception_breakpoint, say_where): Update.
9037 (base_breakpoint_dtor): Don't call delete_event_location.
9038 (bkpt_print_recreate, tracepoint_print_recreate)
9039 (dprintf_print_recreate, update_static_tracepoint)
9040 (breakpoint_re_set_default): Update.
9041
9042 2017-04-12 Tom Tromey <tom@tromey.com>
9043
9044 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
9045 type of "to_do". Update.
9046 (compute_stack_depth): Use std::vector.
9047
9048 2017-04-12 Tom Tromey <tom@tromey.com>
9049
9050 * printcmd.c (find_instruction_backward): Use std::vector.
9051
9052 2017-04-12 Tom Tromey <tom@tromey.com>
9053
9054 * symfile.c (objfilep): Remove typedef.
9055 (reread_symbols): Use a std::vector.
9056
9057 2017-04-12 Tom Tromey <tom@tromey.com>
9058
9059 * mi/mi-main.c (exec_direction_forward): Remove.
9060 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
9061 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
9062 scoped_restore.
9063 * guile/guile.c (guile_repl_command, guile_command)
9064 (gdbscm_execute_gdb_command): Use scoped_restore.
9065 * go-exp.y (go_parse): Use scoped_restore.
9066 * d-exp.y (d_parse): Use scoped_restore.
9067 * cli/cli-decode.c (cmd_func): Use scoped_restore.
9068 * c-exp.y (c_parse): Use scoped_restore.
9069
9070 2017-04-12 Tom Tromey <tom@tromey.com>
9071
9072 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
9073 (mi_parse): Update return type.
9074 (mi_parse_free): Remove.
9075 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
9076 (mi_parse::~mi_parse): Rename from mi_parse_free.
9077 (mi_parse_cleanup): Remove.
9078 (mi_parse): Return a unique_ptr. Use new.
9079 * mi/mi-main.c (mi_execute_command): Update.
9080
9081 2017-04-12 Tom Tromey <tom@tromey.com>
9082
9083 * location.c (explicit_location_lex_one): Return a
9084 unique_xmalloc_ptr.
9085 (string_to_explicit_location): Update. Remove cleanups.
9086
9087 2017-04-12 Tom Tromey <tom@tromey.com>
9088
9089 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
9090 (compare_value_and_voffset): Change type. Update.
9091 (compute_vtable_size): Change type of "offset_vec".
9092 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
9093 (gnuv3_get_typeid): Remove extraneous declaration.
9094
9095 2017-04-12 Tom Tromey <tom@tromey.com>
9096
9097 * charset.h (wchar_iterator): Fix comment.
9098
9099 2017-04-12 Tom Tromey <tom@tromey.com>
9100
9101 * charset.c (iconv_wrapper): New class.
9102 (cleanup_iconv): Remove.
9103 (convert_between_encodings): Use it.
9104
9105 2017-04-12 Tom Tromey <tom@tromey.com>
9106
9107 * symfile.h (increment_reading_symtab): Update type.
9108 * symfile.c (decrement_reading_symtab): Remove.
9109 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
9110 * psymtab.c (psymtab_to_symtab): Update.
9111 * dwarf2read.c (dw2_instantiate_symtab): Update.
9112
9113 2017-04-12 Tom Tromey <tom@tromey.com>
9114
9115 * jit.c (struct jit_reader): Declare separately. Add constructor
9116 and destructor. Change type of "handle".
9117 (loaded_jit_reader): Define separately.
9118 (jit_reader_load): Update. New "new".
9119 (jit_reader_unload_command): Use "delete".
9120 * gdb-dlfcn.h (struct dlclose_deleter): New.
9121 (gdb_dlhandle_up): New typedef.
9122 (gdb_dlopen, gdb_dlsym): Update types.
9123 (gdb_dlclose): Remove.
9124 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
9125 (gdb_dlsym): Change type of "handle".
9126 (make_cleanup_dlclose): Remove.
9127 (dlclose_deleter::operator()): Rename from gdb_dlclose.
9128 * compile/compile-c-support.c (load_libcc): Update.
9129
9130 2017-04-12 Tom Tromey <tom@tromey.com>
9131
9132 * symtab.h (find_pcs_for_symtab_line): Change return type.
9133 * symtab.c (find_pcs_for_symtab_line): Change return type.
9134 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
9135 type of "vec". Update.
9136 (ltpy_get_pcs_for_line): Update.
9137 * linespec.c (decode_digits_ordinary): Update.
9138
9139 2017-04-12 Tom Tromey <tom@tromey.com>
9140
9141 * tracepoint.c (actions_command): Update.
9142 * python/python.c (python_command, python_interactive_command):
9143 Update.
9144 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
9145 * guile/guile.c (guile_command): Update.
9146 * defs.h (read_command_lines, read_command_lines_1): Return
9147 command_line_up.
9148 (command_lines_deleter): New struct.
9149 (command_line_up): New typedef.
9150 * compile/compile.c (compile_code_command)
9151 (compile_print_command): Update.
9152 * cli/cli-script.h (get_command_line, copy_command_lines): Return
9153 command_line_up.
9154 (make_cleanup_free_command_lines): Remove.
9155 * cli/cli-script.c (get_command_line, read_command_lines_1)
9156 (copy_command_lines): Return command_line_up.
9157 (while_command, if_command, read_command_lines, define_command)
9158 (document_command): Update.
9159 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
9160 Remove.
9161 * breakpoint.h (breakpoint_set_commands): Change type of
9162 "commands".
9163 * breakpoint.c (breakpoint_set_commands): Change type of
9164 "commands". Update.
9165 (do_map_commands_command, update_dprintf_command_list)
9166 (create_tracepoint_from_upload): Update.
9167
9168 2017-04-12 Tom Tromey <tom@tromey.com>
9169
9170 * tracepoint.c (scope_info): Update.
9171 * spu-tdep.c (spu_catch_start): Update.
9172 * python/python.c (gdbpy_decode_line): Update.
9173 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
9174 * python/py-breakpoint.c (bppy_init): Update.
9175 * probe.c (parse_probes): Update.
9176 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
9177 * location.h (event_location_deleter): New struct.
9178 (event_location_up): New typedef.
9179 (new_linespec_location, new_address_location, new_probe_location)
9180 (new_explicit_location, copy_event_location)
9181 (string_to_event_location, string_to_event_location_basic)
9182 (string_to_explicit_location): Update return type.
9183 (make_cleanup_delete_event_location): Remove.
9184 * location.c (new_linespec_location, new_address_location)
9185 (new_probe_location, new_explicit_location, copy_event_location):
9186 Return event_location_up.
9187 (delete_event_location_cleanup)
9188 (make_cleanup_delete_event_location): Remove.
9189 (string_to_explicit_location, string_to_event_location_basic)
9190 (string_to_event_location): Return event_location_up.
9191 * linespec.c (canonicalize_linespec, event_location_to_sals)
9192 (decode_line_with_current_source)
9193 (decode_line_with_last_displayed, decode_objc): Update.
9194 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
9195 * completer.c (location_completer): Update.
9196 * cli/cli-cmds.c (edit_command, list_command): Update.
9197 * breakpoint.c (create_overlay_event_breakpoint)
9198 (create_longjmp_master_breakpoint)
9199 (create_std_terminate_master_breakpoint)
9200 (create_exception_master_breakpoint)
9201 (create_thread_event_breakpoint): Update.
9202 (init_breakpoint_sal): Update. Remove some dead code.
9203 (create_breakpoint_sal): Change type of "location". Update.
9204 (create_breakpoints_sal, create_breakpoint, break_command_1)
9205 (dprintf_command, break_range_command, until_break_command)
9206 (init_ada_exception_breakpoint)
9207 (strace_marker_create_sals_from_location)
9208 (update_static_tracepoint, trace_command, ftrace_command)
9209 (strace_command, create_tracepoint_from_upload): Update.
9210 * break-catch-throw.c (re_set_exception_catchpoint): Update.
9211 * ax-gdb.c (agent_command_1): Update.
9212
9213 2017-04-12 Pedro Alves <palves@redhat.com>
9214
9215 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
9216 * configure.tgt: Handle i[34567]86-*-go32* and
9217 i[34567]86-*-msdosdjgpp*.
9218 * i386-tdep.c (i386_svr4_reg_to_regnum):
9219 Make extern.
9220 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
9221 i386-go32-tdep.c.
9222 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
9223 * i386-go32-tdep.c: New file.
9224 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
9225 declarations.
9226
9227 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
9228
9229 * aix-thread.c (pd_status2str): Change return type to const char *.
9230
9231 2017-04-12 Pedro Alves <palves@redhat.com>
9232
9233 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
9234 calls to set_gdbarch_gnu_triplet_regexp.
9235
9236 2017-04-12 Pedro Alves <palves@redhat.com>
9237
9238 PR gdb/21323
9239 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
9240 New enum value.
9241 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
9242 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
9243 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
9244 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
9245 * gdbarch.h, gdbarch.c: Regenerate.
9246 * aarch64-tdep.c (aarch64_gdbarch_init): Override
9247 gdbarch_wchar_bit and gdbarch_wchar_signed.
9248 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
9249 * arm-tdep.c (arm_gdbarch_init): Likewise.
9250 * avr-tdep.c (avr_gdbarch_init): Likewise.
9251 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
9252 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
9253 * i386-tdep.c (i386_go32_init_abi): Likewise.
9254 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9255 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9256 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
9257 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
9258 * sh-tdep.c (sh_gdbarch_init): Likewise.
9259 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9260 * sparc64-tdep.c (sparc64_init_abi): Likewise.
9261 * windows-tdep.c (windows_init_abi): Likewise.
9262 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
9263
9264 2017-04-12 Pedro Alves <palves@redhat.com>
9265
9266 PR c++/21323
9267 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
9268 cplus_primitive_type_char32_t>: New enum values.
9269 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
9270 and cplus_primitive_type_char32_t.
9271 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
9272 32, use the archtecture's built-in type for char16_t and char32_t,
9273 respectively. Otherwise, fallback to init_integer_type as before,
9274 but make the type unsigned, and issue a complaint.
9275 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
9276
9277 2017-04-12 Alan Hayward <alan.hayward@arm.com>
9278
9279 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
9280 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
9281
9282 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
9283
9284 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
9285 'const char *'.
9286
9287 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
9288
9289 * common/common-utils.c (free_vector_argv): New function.
9290 * common/common-utils.h: Include <vector>.
9291 (free_vector_argv): New prototype.
9292 * darwin-nat.c (darwin_create_inferior): Rewrite function
9293 prototype in order to constify "exec_file" and accept a
9294 "std::string" for "allargs".
9295 * fork-child.c: Include <vector>.
9296 (breakup_args): Rewrite function, using C++.
9297 (fork_inferior): Rewrite function header, constify "exec_file_arg"
9298 and accept "std::string" for "allargs". Update the code to
9299 calculate "argv" based on "allargs". Update calls to "exec_fun"
9300 and "execvp".
9301 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
9302 order to constify "exec_file" and accept a "std::string" for
9303 "allargs".
9304 * go32-nat.c (go32_create_inferior): Likewise.
9305 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
9306 * infcmd.c (run_command_1): Constify "exec_file". Use
9307 "std::string" for inferior arguments.
9308 * inferior.h (fork_inferior): Update prototype.
9309 * linux-nat.c (linux_nat_create_inferior): Rewrite function
9310 prototype in order to constify "exec_file" and accept a
9311 "std::string" for "allargs".
9312 * nto-procfs.c (procfs_create_inferior): Likewise.
9313 * procfs.c (procfs_create_inferior): Likewise.
9314 * remote-sim.c (gdbsim_create_inferior): Likewise.
9315 * remote.c (extended_remote_run): Update code to accept
9316 "std::string" as argument.
9317 (extended_remote_create_inferior): Rewrite function prototype in
9318 order to constify "exec_file" and accept a "std::string" for
9319 "allargs".
9320 * rs6000-nat.c (super_create_inferior): Likewise.
9321 (rs6000_create_inferior): Likewise.
9322 * target.h (struct target_ops) <to_create_inferior>: Likewise.
9323 * windows-nat.c (windows_create_inferior): Likewise.
9324
9325 2017-04-11 Pedro Alves <palves@redhat.com>
9326
9327 * thread.c: Fix whitespace throughout.
9328
9329 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
9330
9331 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
9332
9333 2017-04-11 Alan Hayward <alan.hayward@arm.com>
9334
9335 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
9336
9337 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
9338
9339 PR gdb/21364
9340 * osdata.c (info_osdata): Check if 'type' is an empty string
9341 instead of NULL.
9342
9343 2017-04-10 Pedro Alves <palves@redhat.com>
9344
9345 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
9346 (ptid_to_global_thread_id, in_thread_list)
9347 (do_captured_list_thread_ids, set_resumed, set_running)
9348 (set_executing, set_stop_requested, finish_thread_state)
9349 (validate_registers_access, can_access_registers_ptid)
9350 (print_thread_info_1, switch_to_thread)
9351 (do_restore_current_thread_cleanup)
9352 (make_cleanup_restore_current_thread, thread_command)
9353 (thread_name_command): Use operator== instead of ptid_equal.
9354
9355 2017-04-10 Pedro Alves <palves@redhat.com>
9356
9357 * thread.c (struct current_thread_cleanup) <next>: Delete field.
9358 (current_thread_cleanup_chain): Delete.
9359 (restore_current_thread_cleanup_dtor)
9360 (make_cleanup_restore_current_thread): Remove references to
9361 current_thread_cleanup_chain.
9362
9363 2017-04-10 Alan Hayward <alan.hayward@arm.com>
9364
9365 * msp430-tdep.c (msp430_pseudo_register_read): Never return
9366 REG_UNKNOWN.
9367
9368 2017-04-10 Yao Qi <yao.qi@linaro.org>
9369
9370 PR gdb/19942
9371 * gdbthread.h (thread_info::deletable): New method.
9372 (thread_info::incref): New method.
9373 (thread_info::decref): New method.
9374 (thread_info::refcount): Move it to private.
9375 * infrun.c (save_stop_context): Call inc_refcount.
9376 (release_stop_context_cleanup): Likewise.
9377 * thread.c (set_thread_exited): New function.
9378 (init_thread_list): Delete "tp" only it is deletable, otherwise
9379 call set_thread_exited.
9380 (delete_thread_1): Call set_thread_exited.
9381 (current_thread_cleanup) <inferior_pid>: Remove.
9382 <thread>: New field.
9383 (restore_current_thread_ptid_changed): Removed.
9384 (do_restore_current_thread_cleanup): Adjust.
9385 (restore_current_thread_cleanup_dtor): Don't call
9386 find_thread_ptid.
9387 (set_thread_refcount): Use dec_refcount.
9388 (make_cleanup_restore_current_thread): Adjust.
9389 (thread_apply_all_command): Call inc_refcount.
9390 (_initialize_thread): Don't call
9391 observer_attach_thread_ptid_changed.
9392
9393 2017-04-10 Yao Qi <yao.qi@linaro.org>
9394
9395 * thread.c (delete_thread_1): Hoist code on marking thread as
9396 exited.
9397
9398 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9399
9400 * windows-nat.c (windows_detach): Initialize ptid with
9401 minus_one_ptid.
9402
9403 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
9404
9405 * unittests/ptid-selftests.c: Fix erroneous assert messages.
9406
9407 2017-04-07 Alan Hayward <alan.hayward@arm.com>
9408
9409 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
9410 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
9411 (bfin_pseudo_register_write): Likewise
9412
9413 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
9414
9415 * common/ptid.h (struct ptid): Change to...
9416 (class ptid_t): ... this.
9417 <ptid_t>: New constructors.
9418 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
9419 matches>: New methods.
9420 <make_null, make_minus_one>: New static methods.
9421 <pid>: Rename to...
9422 <m_pid>: ...this.
9423 <lwp>: Rename to...
9424 <m_lwp>: ...this.
9425 <tid>: Rename to...
9426 <m_tid>: ...this.
9427 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
9428 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
9429 as references, move comment to class ptid_t.
9430 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
9431 ptid_t static methods.
9432 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
9433 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
9434 Take ptid arguments as references, implement using ptid_t methods.
9435 * unittests/ptid-selftests.c: New file.
9436 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9437 unittests/ptid-selftests.c.
9438 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
9439
9440 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
9441
9442 * python/python.c (python_run_simple_file): Cast mode literal to
9443 non-const char pointer as expected by PyFile_FromString.
9444
9445 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
9446
9447 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
9448 minus_one_ptid and null_ptid.
9449
9450 2017-04-05 Pedro Alves <palves@redhat.com>
9451
9452 * warning.m4 (build_warnings): Remove -Wno-write-strings.
9453 * configure: Regenerate.
9454
9455 2017-04-05 Pedro Alves <palves@redhat.com>
9456
9457 * ada-exp.y (yyerror): Constify.
9458 * ada-lang.c (bound_name, get_selections)
9459 (ada_variant_discrim_type)
9460 (ada_variant_discrim_name, ada_value_struct_elt)
9461 (ada_lookup_struct_elt_type, is_unchecked_variant)
9462 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
9463 (catch_ada_exception_command_split)
9464 (catch_ada_assert_command_split, catch_assert_command)
9465 (ada_op_name): Constify.
9466 * ada-lang.h (ada_yyerror, get_selections)
9467 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
9468 * arc-tdep.c (arc_print_frame_cache): Constify.
9469 * arm-tdep.c (arm_skip_stub): Constify.
9470 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
9471 (gen_aggregate_elt_ref): Constify.
9472 * bcache.c (print_bcache_statistics): Constify.
9473 * bcache.h (print_bcache_statistics): Constify.
9474 * break-catch-throw.c (catch_exception_command_1):
9475 * breakpoint.c (struct ep_type_description::description):
9476 Constify.
9477 (add_solib_catchpoint): Constify.
9478 (catch_fork_command_1): Add cast.
9479 (add_catch_command): Constify.
9480 * breakpoint.h (add_catch_command, add_solib_catchpoint):
9481 Constify.
9482 * bsd-uthread.c (bsd_uthread_state): Constify.
9483 * buildsym.c (patch_subfile_names): Constify.
9484 * buildsym.h (next_symbol_text_func, patch_subfile_names):
9485 Constify.
9486 * c-exp.y (yyerror): Constify.
9487 (token::oper): Constify.
9488 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
9489 * c-varobj.c (cplus_describe_child): Constify.
9490 * charset.c (find_charset_names): Add cast.
9491 (find_charset_names): Constify array and add const_cast.
9492 * cli/cli-cmds.c (complete_command, cd_command): Constify.
9493 (edit_command): Constify.
9494 * cli/cli-decode.c (lookup_cmd): Constify.
9495 * cli/cli-dump.c (dump_memory_command, dump_value_command):
9496 Constify.
9497 (struct dump_context): Constify.
9498 (add_dump_command, restore_command): Constify.
9499 * cli/cli-script.c (get_command_line): Constify.
9500 * cli/cli-script.h (get_command_line): Constify.
9501 * cli/cli-utils.c (check_for_argument): Constify.
9502 * cli/cli-utils.h (check_for_argument): Constify.
9503 * coff-pe-read.c (struct read_pe_section_data): Constify.
9504 * command.h (lookup_cmd): Constify.
9505 * common/print-utils.c (decimal2str): Constify.
9506 * completer.c (gdb_print_filename): Constify.
9507 * corefile.c (set_gnutarget): Constify.
9508 * cp-name-parser.y (yyerror): Constify.
9509 * cp-valprint.c (cp_print_class_member): Constify.
9510 * cris-tdep.c (cris_register_name, crisv32_register_name):
9511 Constify.
9512 * d-exp.y (yyerror): Constify.
9513 (struct token::oper): Constify.
9514 * d-lang.h (d_yyerror): Constify.
9515 * dbxread.c (struct header_file_location::name): Constify.
9516 (add_old_header_file, add_new_header_file, last_function_name)
9517 (dbx_next_symbol_text, add_bincl_to_list)
9518 (find_corresponding_bincl_psymtab, set_namestring)
9519 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
9520 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
9521 * defs.h (command_line_input, print_address_symbolic)
9522 (deprecated_readline_begin_hook): Constify.
9523 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
9524 Constify.
9525 * event-top.c (handle_line_of_input): Constify and add cast.
9526 * exceptions.c (catch_errors): Constify.
9527 * exceptions.h (catch_errors): Constify.
9528 * expprint.c (print_subexp_standard, op_string, op_name)
9529 (op_name_standard, dump_raw_expression, dump_raw_expression):
9530 * expression.h (op_name, op_string, dump_raw_expression):
9531 Constify.
9532 * f-exp.y (yyerror): Constify.
9533 (struct token::oper): Constify.
9534 (struct f77_boolean_val::name): Constify.
9535 * f-lang.c (f_word_break_characters): Constify.
9536 * f-lang.h (f_yyerror): Constify.
9537 * fork-child.c (fork_inferior): Add cast.
9538 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
9539 (new_variant): Constify.
9540 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
9541 * gdbarch.c: Regenerate.
9542 * gdbcore.h (set_gnutarget): Constify.
9543 * go-exp.y (yyerror): Constify.
9544 (token::oper): Constify.
9545 * go-lang.h (go_yyerror): Constify.
9546 * go32-nat.c (go32_sysinfo): Constify.
9547 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
9548 * guile/scm-cmd.c (cmdscm_function): Constify.
9549 * guile/scm-param.c (pascm_param_value): Constify.
9550 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
9551 (h8300sx_register_name): Constify.
9552 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
9553 Constify.
9554 * ia64-tdep.c (ia64_register_names): Constify.
9555 * infcmd.c (construct_inferior_arguments): Constify.
9556 (path_command, attach_post_wait): Constify.
9557 * language.c (show_range_command, show_case_command)
9558 (unk_lang_error): Constify.
9559 * language.h (language_defn::la_error)
9560 (language_defn::la_name_of_this): Constify.
9561 * linespec.c (decode_line_2): Constify.
9562 * linux-thread-db.c (thread_db_err_str): Constify.
9563 * lm32-tdep.c (lm32_register_name): Constify.
9564 * m2-exp.y (yyerror): Constify.
9565 * m2-lang.h (m2_yyerror): Constify.
9566 * m32r-tdep.c (m32r_register_names): Constify and make static.
9567 * m68hc11-tdep.c (m68hc11_register_names): Constify.
9568 * m88k-tdep.c (m88k_register_name): Constify.
9569 * macroexp.c (appendmem): Constify.
9570 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
9571 (upgrade_type, parse_external, parse_partial_symbols)
9572 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
9573 (new_symbol): Constify.
9574 * memattr.c (mem_info_command): Constify.
9575 * mep-tdep.c (register_name_from_keyword): Constify.
9576 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
9577 Constify.
9578 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
9579 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
9580 * mi/mi-main.c (captured_mi_execute_command): Constify and add
9581 cast.
9582 (mi_execute_async_cli_command): Constify.
9583 * mips-tdep.c (mips_register_name): Constify.
9584 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
9585 (am33_register_name, am33_2_register_name)
9586 * moxie-tdep.c (moxie_register_names): Constify.
9587 * nat/linux-osdata.c (osdata_type): Constify fields.
9588 * nto-tdep.c (nto_parse_redirection): Constify.
9589 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
9590 (lookup_child_selector): Constify.
9591 (objc_methcall::name): Constify.
9592 * objc-lang.h (lookup_objc_class, lookup_child_selector)
9593 (lookup_struct_typedef): Constify.
9594 * objfiles.c (pc_in_section): Constify.
9595 * objfiles.h (pc_in_section): Constify.
9596 * p-exp.y (struct token::oper): Constify.
9597 (yyerror): Constify.
9598 * p-lang.h (pascal_yyerror): Constify.
9599 * parser-defs.h (op_name_standard): Constify.
9600 (op_print::string): Constify.
9601 (exp_descriptor::op_name): Constify.
9602 * printcmd.c (print_address_symbolic): Constify.
9603 * psymtab.c (print_partial_symbols): Constify.
9604 * python/py-breakpoint.c (stop_func): Constify.
9605 (bppy_get_expression): Constify.
9606 * python/py-cmd.c (cmdpy_completer::name): Constify.
9607 (cmdpy_function): Constify.
9608 * python/py-event.c (evpy_add_attribute)
9609 (gdbpy_initialize_event_generic): Constify.
9610 * python/py-event.h (evpy_add_attribute)
9611 (gdbpy_initialize_event_generic): Constify.
9612 * python/py-evts.c (add_new_registry): Constify.
9613 * python/py-finishbreakpoint.c (outofscope_func): Constify.
9614 * python/py-framefilter.c (get_py_iter_from_func): Constify.
9615 * python/py-inferior.c (get_buffer): Add cast.
9616 * python/py-param.c (parm_constant::name): Constify.
9617 * python/py-unwind.c (fprint_frame_id): Constify.
9618 * python/python.c (gdbpy_parameter_value): Constify.
9619 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
9620 * remote.c (memory_packet_config::name): Constify.
9621 (show_packet_config_cmd, remote_write_bytes)
9622 (remote_buffer_add_string):
9623 * reverse.c (exec_reverse_once): Constify.
9624 * rs6000-tdep.c (variant::name, variant::description): Constify.
9625 * rust-exp.y (rustyyerror): Constify.
9626 * rust-lang.c (rust_op_name): Constify.
9627 * rust-lang.h (rustyyerror): Constify.
9628 * serial.h (serial_ops::name): Constify.
9629 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
9630 (sh_sh3e_register_name, sh_sh2e_register_name)
9631 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
9632 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
9633 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
9634 (sh_sh4al_dsp_register_name): Constify.
9635 * sh64-tdep.c (sh64_register_name): Constify.
9636 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
9637 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
9638 * stabsread.c (patch_block_stabs, read_type_number)
9639 (ref_map::stabs, ref_add, process_reference)
9640 (symbol_reference_defined, define_symbol, define_symbol)
9641 (error_type, read_type, read_member_functions, read_cpp_abbrev)
9642 (read_one_struct_field, read_struct_fields, read_baseclasses)
9643 (read_tilde_fields, read_struct_type, read_array_type)
9644 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
9645 (read_huge_number, read_range_type, read_args, common_block_start)
9646 (find_name_end): Constify.
9647 * stabsread.h (common_block_start, define_symbol)
9648 (process_one_symbol, symbol_reference_defined, ref_add):
9649 * symfile.c (get_section_index, add_symbol_file_command):
9650 * symfile.h (get_section_index): Constify.
9651 * target-descriptions.c (tdesc_type::name): Constify.
9652 (tdesc_free_type): Add cast.
9653 * target.c (find_default_run_target):
9654 (add_deprecated_target_alias, find_default_run_target)
9655 (target_announce_detach): Constify.
9656 (do_option): Constify.
9657 * target.h (add_deprecated_target_alias): Constify.
9658 * thread.c (print_thread_info_1): Constify.
9659 * top.c (deprecated_readline_begin_hook, command_line_input):
9660 Constify.
9661 (init_main): Add casts.
9662 * top.h (handle_line_of_input): Constify.
9663 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
9664 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
9665 (tfind_command): Rename to ...
9666 (tfind_command_1): ... this and constify.
9667 (tfind_command): New function.
9668 (tfind_end_command, tfind_start_command): Adjust.
9669 (encode_source_string): Constify.
9670 * tracepoint.h (encode_source_string): Constify.
9671 * tui/tui-data.c (tui_partial_win_by_name): Constify.
9672 * tui/tui-data.h (tui_partial_win_by_name): Constify.
9673 * tui/tui-source.c (tui_set_source_content_nil): Constify.
9674 * tui/tui-source.h (tui_set_source_content_nil): Constify.
9675 * tui/tui-win.c (parse_scrolling_args): Constify.
9676 * tui/tui-windata.c (tui_erase_data_content): Constify.
9677 * tui/tui-windata.h (tui_erase_data_content): Constify.
9678 * tui/tui-winsource.c (tui_erase_source_content): Constify.
9679 * tui/tui.c (tui_enable): Add cast.
9680 * utils.c (defaulted_query): Constify.
9681 (init_page_info): Add cast.
9682 (puts_debug, subset_compare): Constify.
9683 * utils.h (subset_compare): Constify.
9684 * varobj.c (varobj_format_string): Constify.
9685 * varobj.h (varobj_format_string): Constify.
9686 * vax-tdep.c (vax_register_name): Constify.
9687 * windows-nat.c (windows_detach): Constify.
9688 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
9689 * xml-support.c (gdb_xml_end_element): Constify.
9690 * xml-tdesc.c (tdesc_start_reg): Constify.
9691 * xstormy16-tdep.c (xstormy16_register_name): Constify.
9692 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
9693 * xtensa-tdep.h (xtensa_register_t::name): Constify.
9694
9695 2017-04-05 Pedro Alves <palves@redhat.com>
9696
9697 * proc-api.c (struct trans): Constify.
9698 (procfs_note): Constify.
9699 * proc-events.c (struct trans, syscall_table):
9700 * proc-flags.c (struct trans): Constify.
9701 * proc-utils.h (procfs_note): Constify.
9702 * proc-why.c (struct trans): Constify.
9703 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
9704 (procfs_detach): Constify.
9705 * sol-thread.c (struct string_map): Constify.
9706 (td_err_string, td_state_string): Constify.
9707
9708 2017-04-05 Pedro Alves <palves@redhat.com>
9709
9710 * proc-api.c (procfs_filename): Don't initialize
9711 procfs_filename.
9712 (prepare_to_trace): Assume procfs_filename is non-NULL.
9713 (_initialize_proc_api): Give procfs_filename a default value here.
9714
9715 2017-04-05 Pedro Alves <palves@redhat.com>
9716
9717 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
9718 'cond_string' parameter.
9719 (extract_exception_regexp): Constify 'string' parameter.
9720 (catch_exception_command_1): Constify.
9721 * breakpoint.c (init_catchpoint)
9722 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
9723 parameter.
9724 (ep_parse_optional_if_clause, catch_fork_command_1)
9725 (catch_exec_command_1): Constify.
9726 * breakpoint.h (init_catchpoint): Constify 'cond_string'
9727 parameter.
9728 (ep_parse_optional_if_clause): Constify.
9729 * cli/cli-utils.c (remove_trailing_whitespace)
9730 (check_for_argument): Constify.
9731 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
9732 non-const overload.
9733 (check_for_argument): Likewise.
9734
9735 2017-04-05 Pedro Alves <palves@redhat.com>
9736
9737 * event-top.c (command_line_handler): Add cast to execute_command
9738 call.
9739 * record-btrace.c (cmd_record_btrace_bts_start)
9740 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
9741 (cmd_record_btrace_start): Add cast to execute_command call.
9742 * record-full.c (record_full_goto_insn):
9743 * record.c (record_start, record_stop): Add cast to
9744 execute_command_to_string calls.
9745 (cmd_record_start): Add cast to execute_command calls.
9746
9747 2017-04-05 Pedro Alves <palves@redhat.com>
9748
9749 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
9750 static inline function.
9751 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
9752 array and use gdb_PyArg_ParseTupleAndKeywords.
9753 * python/py-cmd.c (cmdpy_init): Likewise.
9754 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
9755 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
9756 (infpy_search_memory): Likewise.
9757 * python/py-objfile.c (objfpy_add_separate_debug_file)
9758 (gdbpy_lookup_objfile): Likewise.
9759 * python/py-symbol.c (gdbpy_lookup_symbol)
9760 (gdbpy_lookup_global_symbol): Likewise.
9761 * python/py-type.c (gdbpy_lookup_type): Likewise.
9762 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
9763 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
9764 Likewise.
9765
9766 2017-04-05 Pedro Alves <palves@redhat.com>
9767
9768 * python/python-internal.h (gdb_PyGetSetDef): New type.
9769 * python/py-block.c (block_object_getset)
9770 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
9771 * python/py-event.c (event_object_getset)
9772 (finish_breakpoint_object_getset): Likewise.
9773 * python/py-inferior.c (inferior_object_getset): Likewise.
9774 * python/py-infthread.c (thread_object_getset): Likewise.
9775 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
9776 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
9777 * python/py-objfile.c (objfile_getset): Likewise.
9778 * python/py-progspace.c (pspace_getset): Likewise.
9779 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
9780 Likewise.
9781 * python/py-record.c (recpy_record_getset): Likewise.
9782 * python/py-symbol.c (symbol_object_getset): Likewise.
9783 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
9784 Likewise.
9785 * python/py-type.c (type_object_getset, field_object_getset):
9786 Likewise.
9787 * python/py-value.c (value_object_getset): Likewise.
9788
9789 2017-04-05 Pedro Alves <palves@redhat.com>
9790
9791 * python/python-internal.h (gdb_PyObject_CallMethod)
9792 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
9793 New functions.
9794 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
9795 (PySys_GetObject, PySys_SetPath): New macros.
9796
9797 2017-04-05 Pedro Alves <palves@redhat.com>
9798
9799 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
9800 info_osdata_command.
9801 * osdata.c (info_osdata_command): Rename to ...
9802 (info_osdata): ... this. Constify 'type' parameter, and remove
9803 the 'from_tty' parameter. Accept NULL TYPE.
9804 (info_osdata_command): New function.
9805 * osdata.h (info_osdata_command): Remove declaration.
9806 (info_osdata): New declaration.
9807
9808 2017-04-05 Pedro Alves <palves@redhat.com>
9809
9810 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
9811 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
9812 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
9813 parameter.
9814 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
9815 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
9816 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
9817 parameter.
9818 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
9819 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
9820 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
9821 (mi_cmd_file_list_exec_source_files)
9822 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
9823 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
9824 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
9825 parameter.
9826 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
9827 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
9828 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9829 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
9830 (mi_cmd_stack_info_frame): Constify 'command' parameter.
9831 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
9832 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
9833 'command' parameter.
9834 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
9835 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
9836 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
9837 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
9838 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
9839 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
9840 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
9841 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
9842 (mi_cmd_var_set_update_range): Constify 'command' parameter.
9843 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
9844 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
9845 parameter.
9846 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
9847 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
9848 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
9849 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
9850 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
9851 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
9852 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
9853 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
9854 (mi_cmd_data_list_changed_registers)
9855 (mi_cmd_data_write_register_values)
9856 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
9857 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
9858 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
9859 (mi_cmd_list_features, mi_cmd_list_target_features)
9860 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
9861 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
9862 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
9863 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
9864 (mi_cmd_trace_frame_collected): Constify 'command'
9865 parameter.
9866 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
9867 'command' parameter.
9868
9869 2017-04-05 Pedro Alves <palves@redhat.com>
9870
9871 * ada-lang.c (ada_completer_word_break_characters): Now a const
9872 array.
9873 (ada_get_gdb_completer_word_break_characters): Constify.
9874 * completer.c (gdb_completer_command_word_break_characters)
9875 (gdb_completer_file_name_break_characters)
9876 (gdb_completer_quote_characters): Now const arrays.
9877 (get_gdb_completer_quote_characters): Constify.
9878 (set_rl_completer_word_break_characters): New function.
9879 (set_gdb_completion_word_break_characters)
9880 (complete_line_internal): Use it.
9881 * completer.h (get_gdb_completer_quote_characters): Constify.
9882 (set_rl_completer_word_break_characters): Declare.
9883 * f-lang.c (f_word_break_characters): Constify.
9884 * language.c (default_word_break_characters): Constify.
9885 * language.h (language_defn::la_word_break_characters): Constify.
9886 (default_word_break_characters): Constify.
9887 * top.c (init_main): Use set_rl_completer_word_break_characters.
9888
9889 2017-04-05 Pedro Alves <palves@redhat.com>
9890
9891 * aix-thread.c (aix_thread_pid_to_str)
9892 (aix_thread_extra_thread_info): Constify.
9893 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
9894 * bsd-uthread.c (bsd_uthread_extra_thread_info)
9895 (bsd_uthread_pid_to_str): Constify.
9896 * corelow.c (core_pid_to_str): Constify.
9897 * darwin-nat.c (darwin_pid_to_str): Constify.
9898 * fbsd-nat.c (fbsd_pid_to_str): Constify.
9899 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
9900 Constify.
9901 * gnu-nat.c (gnu_pid_to_str): Constify.
9902 * go32-nat.c (go32_pid_to_str): Constify.
9903 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
9904 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
9905 * inferior.c (inferior_pid_to_str): Constify.
9906 * linux-nat.c (linux_nat_pid_to_str): Constify.
9907 * linux-tdep.c (linux_core_pid_to_str): Constify.
9908 * linux-thread-db.c (thread_db_pid_to_str)
9909 (thread_db_extra_thread_info): Constify.
9910 * nto-tdep.c (nto_extra_thread_info): Constify.
9911 * nto-tdep.h (nto_extra_thread_info): Constify.
9912 * obsd-nat.c (obsd_pid_to_str): Constify.
9913 * procfs.c (procfs_pid_to_str): Constify.
9914 * ravenscar-thread.c (ravenscar_extra_thread_info)
9915 (ravenscar_pid_to_str): Constify.
9916 * remote-sim.c (gdbsim_pid_to_str): Constify.
9917 * remote.c (remote_threads_extra_info, remote_pid_to_str):
9918 Constify.
9919 * sol-thread.c (solaris_pid_to_str): Constify.
9920 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
9921 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
9922 * target.c (default_pid_to_str, target_pid_to_str)
9923 (normal_pid_to_str, default_pid_to_str): Constify.
9924 * target.h (target_ops::to_pid_to_str)
9925 (target_ops::to_extra_thread_info): Constify.
9926 (target_pid_to_str, normal_pid_to_str): Constify.
9927 * windows-nat.c (windows_pid_to_str): Constify.
9928 * gdbarch.sh (core_pid_to_str): Constify.
9929 * target-delegates.c: Regenerate.
9930 * gdbarch.h, gdbarch.c: Regenerate.
9931
9932 2017-04-05 Pedro Alves <palves@redhat.com>
9933
9934 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
9935 the memory of the temporary warning_pre_print override.
9936 * utils.c (warning_pre_print): Constify.
9937 * utils.h (warning_pre_print): Constify.
9938
9939 2017-04-05 Pedro Alves <palves@redhat.com>
9940
9941 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
9942 (shell_command): New function.
9943 (make_command): Use std::string.
9944 (init_cli_cmds): Register shell_command instead of shell_escape.
9945
9946 2017-04-05 Pedro Alves <palves@redhat.com>
9947
9948 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
9949 * tracepoint.c (default_collect): Don't initialize.
9950
9951 2017-04-05 Pedro Alves <palves@redhat.com>
9952
9953 * macroexp.c (macro_buffer::shared): Now a bool.
9954 (init_buffer): Update.
9955 (init_shared_buffer): Constify 'addr' parameter.
9956 (substitute_args, expand, macro_expand, macro_expand_next): Remove
9957 casts.
9958
9959 2017-04-05 Pedro Alves <palves@redhat.com>
9960
9961 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
9962 * disasm.c (set_disassembler_options): Constify local.
9963 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
9964
9965 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
9966
9967 PR gdb/21352
9968 * tracefile.c (tsave_command): Fix argument parsing for '-r'
9969 option.
9970
9971 2017-04-05 Yao Qi <yao.qi@linaro.org>
9972
9973 * frame.c (frame_unwind_register_unsigned): Call
9974 frame_unwind_register_value.
9975
9976 2017-04-05 Yao Qi <yao.qi@linaro.org>
9977
9978 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
9979 Use gdb_test_multiple, and don't match anchor.
9980
9981 2017-04-05 Pedro Alves <palves@redhat.com>
9982
9983 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
9984 (Write After Approval): Remove Simon Marchi.
9985
9986 2017-04-05 Pedro Alves <palves@redhat.com>
9987
9988 * common/gdb_optional.h (optional::optional): Make constexpr and
9989 initialize m_dummy.
9990
9991 2017-04-04 John Baldwin <jhb@FreeBSD.org>
9992
9993 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
9994 (amd64fbsd_jmp_buf_reg_offset): Remove.
9995 (amd64fbsd_supply_uthread): Remove function.
9996 (amd64fbsd_collect_uthread): Remove function.
9997 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
9998 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
9999 (x86_64-*-freebsd*): Remove bsd-uthread.o.
10000 (fbsd-nat.c): Update comment.
10001 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
10002 (i386fbsd_jmp_buf_reg_offset): Remove.
10003 (i386fbsd_supply_uthread): Remove function.
10004 (i386fbsd_collect_uthread): Remove function.
10005 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
10006
10007 2017-04-04 John Baldwin <jhb@FreeBSD.org>
10008
10009 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
10010 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
10011 * NEWS: Mention that support for FreeBSD/alpha was removed.
10012 * alpha-fbsd-tdep.c: Delete file.
10013 * config/alpha/fbsd.mh: Delete file.
10014 * configure.host: Delete alpha*-*-freebsd* and
10015 alpha*-*-kfreebsd*-gnu.
10016 * configure.tgt: Delete alpha*-*-freebsd* and
10017 alpha*-*-kfreebsd*-gnu.
10018
10019 2017-04-04 John Baldwin <jhb@FreeBSD.org>
10020
10021 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
10022 amd64bsd_store_inferior_registers): Use ptid from regcache.
10023
10024 2017-04-04 Pedro Alves <palves@redhat.com>
10025
10026 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
10027 data fields, make them private and add "m_" prefixes.
10028 (lnp_state_machine::lnp_state_machine): New ctor.
10029 (record_line, check_line_address, handle_set_discriminator)
10030 (handle_set_address, handle_advance_pc, handle_special_opcode)
10031 (handle_advance_line, handle_set_file, handle_negate_stmt)
10032 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
10033 (end_sequence, advance_line): New methods.
10034 (m_gdbarch, m_record_lines_p): New fields.
10035 (lnp_reader_state): Delete.
10036 (dwarf_record_line): Rename to ...
10037 (lnp_state_machine::record_line): ... adjust.
10038 (init_lnp_state_machine): Delete.
10039 (lnp_state_machine::lnp_state_machine): New.
10040 (check_line_address): Rename to ...
10041 (lnp_state_machine::check_line_address): This.
10042 (dwarf_decode_lines_1): Remove reference to "reader_state".
10043 Adjust lnp_state_machine having a non-default ctor. Use bool.
10044 State machine internal state manipulation moved to
10045 lnp_state_machine methods.
10046
10047 2017-04-04 Pedro Alves <palves@redhat.com>
10048
10049 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10050 unittests/offset-type-selftests.c.
10051 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
10052 * common/offset-type.h: New file.
10053 * common/preprocessor.h: New file.
10054 * common/traits.h: New file.
10055 * common/valid-expr.h: New file.
10056 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
10057 sect_offset and cu_offset strong typedefs throughout.
10058 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
10059 typedefs throughout.
10060 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
10061 sect_offset and cu_offset strong typedefs throughout.
10062 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
10063 typedefs throughout.
10064 * gdbtypes.h: Include "common/offset-type.h".
10065 (cu_offset): Now an offset type (strong typedef) instead of a
10066 struct.
10067 (sect_offset): Likewise.
10068 (union call_site_parameter_u): Rename "param_offset" field to
10069 "param_cu_off".
10070 * unittests/offset-type-selftests.c: New file.
10071
10072 2017-04-04 Pedro Alves <palves@redhat.com>
10073
10074 * common/underlying.h: New file.
10075 * dwarf2read.c: Include "common/gdb_optional.h" and
10076 "common/underlying.h".
10077 (dir_index, file_name_index): New types.
10078 (file_entry): Use them.
10079 (file_entry::include): Use to_underlying.
10080 (line_header::add_file_name): Use dir_index.
10081 (read_formatted_entries): Use gdb::optional. Read form before
10082 writting to file_entry.
10083 (dwarf_decode_line_header): Use dir_index.
10084 (lnp_state_machine::current_file): Use to_underlying.
10085 (lnp_state_machine::file): Change type to file_name_index.
10086 (dwarf_record_line): Use to_underlying.
10087 (init_lnp_state_machine): Use file_name_index.
10088 (dwarf_decode_lines_1): Use dir_index and file_name_index.
10089
10090 2017-04-04 Pedro Alves <palves@redhat.com>
10091
10092 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
10093 operator bool, has_value and get methods.
10094
10095 2017-04-04 Pedro Alves <palves@redhat.com>
10096
10097 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
10098 fields.
10099 (line_header): Initialize all data fields. Change type of
10100 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
10101 Change type of include_dirs to std::vector<const char *>. Remove
10102 num_include_dirs, include_dirs_size. Change type of file_names to
10103 std::vector<file_entry>. Remove num_file_names, file_names_size.
10104 (line_header::line_header): New.
10105 (line_header::add_include_dir, line_header::add_file_name): New
10106 methods.
10107 (line_header::include_dir_at): Remove NULL check.
10108 (line_header::file_name_at): Add const overload.
10109 (line_header_up): New unique_ptr typedef.
10110 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
10111 std::vector. Remove free_line_header call.
10112 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
10113 free_line_header call.
10114 (free_cu_line_header): Delete.
10115 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
10116 (setup_type_unit_groups): Use line_header_up instead of cleanups.
10117 Adjust to use std::vector.
10118 (free_line_header): Delete.
10119 (free_line_header_voidp): Use delete.
10120 (add_include_dir): Replace with ...
10121 (line_header::add_include_dir): ... this method. Use std::vector.
10122 (add_file_name): Replace with ...
10123 (line_header::add_file_name): ... this method. Use std::vector.
10124 (add_include_dir_stub): Delete.
10125 (read_formatted_entries): Remove memset.
10126 (dwarf_decode_line_header): Return a line_header_up instead of a
10127 raw pointer. Remove cleanup handling. Pass lambdas to
10128 read_formatted_entries. Adjust to use line_header methods.
10129 (dwarf_decode_lines_1): Adjust to use line_header methods.
10130 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
10131 use std::vector.
10132
10133 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
10134
10135 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
10136 instead of struct ptid.
10137
10138 2017-05-04 Alan Hayward <alan.hayward@arm.com>
10139
10140 * frame.c (get_frame_register_bytes): Unwind using value.
10141 (put_frame_register_bytes): Likewise.
10142
10143 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
10144
10145 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
10146 aggregate-like.
10147
10148 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10149
10150 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
10151
10152 2017-03-29 Yao Qi <yao.qi@linaro.org>
10153
10154 * gdbthread.h (struct thread_info): Declare constructor and
10155 destructor. Add some in-class member initializers.
10156 * thread.c (free_thread): Remove.
10157 (init_thread_list): Call delete instead of free_thread.
10158 (new_thread): Call thread_info constructor.
10159 (thread_info::thread_info): New function.
10160 (thread_info::~thread_info): New function.
10161 (delete_thread_1): Call delete instead of free_thread.
10162 (make_cleanup_restore_current_thread): Move tp and frame to
10163 inner block.
10164
10165 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
10166
10167 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
10168 (arc_skip_prologue): Likewise.
10169 (arc_make_frame_cache): Likewise.
10170 (arc_pv_get_operand): New function.
10171 (arc_is_in_prologue): Likewise.
10172 (arc_analyze_prologue): Likewise.
10173 (arc_print_frame_cache): Likewise.
10174 (MAX_PROLOGUE_LENGTH): New constant.
10175
10176 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
10177
10178 * configure.tgt: Add arc-insn.o.
10179 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
10180 (dump_arc_instruction_command): New function.
10181 (arc_fprintf_disasm): Likewise.
10182 (arc_disassemble_info): Likewise.
10183 (arc_insn_get_operand_value): Likewise.
10184 (arc_insn_get_operand_value_signed): Likewise.
10185 (arc_insn_get_memory_base_reg): Likewise.
10186 (arc_insn_get_memory_offset): Likewise.
10187 (arc_insn_get_branch_target): Likewise.
10188 (arc_insn_dump): Likewise.
10189 (arc_insn_get_linear_next_pc): Likewise.
10190 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
10191 (arc_disassemble_info): Likewise.
10192 (arc_insn_get_branch_target): Likewise.
10193 (arc_insn_get_linear_next_pc): Likewise.
10194 * NEWS: Mention new "maint print arc arc-instruction".
10195
10196 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
10197
10198 * arc-tdep (maintenance_print_arc_list): New variable.
10199 (maintenance_print_arc_command): New function.
10200
10201 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
10202
10203 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
10204 Add "limm" and "reserved".
10205 (arc_cannot_fetch_register, arc_cannot_store_register): Add
10206 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
10207 * arc-tdep.h (arc_regnum): Likewise.
10208
10209 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
10210
10211 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
10212 for THREADPTR register.
10213 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
10214 register.
10215 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
10216 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
10217 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
10218
10219 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
10220
10221 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
10222 registers above gdbarch_num_regs (gdbarch) as privileged in
10223 call0 ABI.
10224
10225 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
10226
10227 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
10228 for a single specified register or for all registers in
10229 a0_base..a0_base + C0_NREGS range.
10230 (supply_gregset_reg): Call regcache_raw_supply for a single
10231 specified register or for all registers in a0_base..a0_base +
10232 C0_NREGS range.
10233
10234 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
10235
10236 * arch/xtensa.h (C0_NREGS): Add definition.
10237 * xtensa-tdep.c (C0_NREGS): Remove definition.
10238
10239 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
10240
10241 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
10242 Drop xtensa_default_isa initialization.
10243 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
10244
10245 2017-03-27 Pedro Alves <palves@redhat.com>
10246
10247 * dwarf2read.c (file_entry) <dir_index>: Add comment.
10248 (file_entry::include_dir): New method.
10249 (line_header::include_dir_at, line_header::file_name_at): New
10250 methods.
10251 (setup_type_unit_groups, setup_type_unit_groups)
10252 (psymtab_include_file_name): Simplify using the new methods.
10253 (lnp_state_machine) <the_line_header>: New field.
10254 <file>: Add comment.
10255 (lnp_state_machine::current_file): New method.
10256 (dwarf_record_line): Simplify using the new methods.
10257 (init_lnp_state_machine): Initialize the "the_line_header" field.
10258 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
10259 Simplify using the new methods.
10260
10261 2017-03-27 Pedro Alves <palves@redhat.com>
10262
10263 * cp-name-parser.y (make_empty): Delete.
10264 (demangler_special, nested_name, ptr_operator, array_indicator)
10265 (direct_declarator, declarator_1): Use fill_comp instead of
10266 make_empty.
10267
10268 2017-03-27 Pedro Alves <palves@redhat.com>
10269
10270 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
10271 to ATTRIBUTE_PRINTF.
10272 * solib-target.c (library_list_start_list): Print "string" not
10273 "version".
10274 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
10275 gdb_xml_error call.
10276
10277 2017-03-27 Pedro Alves <palves@redhat.com>
10278
10279 * dwarf2read.c (struct file_and_directory): New.
10280 (dwarf2_get_dwz_file): Adjust to use std::string.
10281 (dw2_get_file_names_reader): Adjust to use file_and_directory.
10282 (find_file_and_directory): Adjust to return a file_and_directory
10283 object.
10284 (read_file_scope): Adjust to use file_and_directory. Remove
10285 make_cleanup/do_cleanups calls.
10286 (open_and_init_dwp_file): Adjust to use std::string. Remove
10287 make_cleanup/do_cleanups calls.
10288 * python/python.c (do_start_initialization): Adjust to ldirname
10289 returning a std::string.
10290 * utils.c (ldirname): Now returns a std::string.
10291 * utils.h (ldirname): Change return type to std::string.
10292 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
10293 returning a std::string.
10294 * xml-tdesc.c (file_read_description_xml): Likewise.
10295
10296 2017-03-24 Alan Hayward <alan.hayward@arm.com>
10297
10298 * regcache.c (regcache_debug_print_register): New function.
10299 * regcache.h (regcache_debug_print_register): New declaration.
10300 * target.c (debug_print_register): Remove.
10301 (target_fetch_registers): Call regcache_debug_print_register.
10302 (target_store_registers): Likewise.
10303
10304 2017-03-24 Pádraig Brady <pbrady@fb.com>
10305
10306 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
10307 reference beyond the 'lh->include_dirs' array before accessing to
10308 it.
10309 (psymtab_include_file_name): Likewise.
10310 (dwarf_decode_lines_1): Likewise.
10311 (dwarf_decode_lines): Likewise.
10312 (file_file_name): Likewise.
10313
10314 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
10315
10316 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
10317 inferior_ptid.
10318 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
10319 ps_lsetfpregs): Likewise.
10320 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
10321 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
10322 ps_lsetfpregs): Likewise.
10323 * target.c (target_fetch_registers, target_store_registers):
10324 Remove asserts.
10325
10326 2017-03-23 Alan Hayward <alan.hayward@arm.com>
10327
10328 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
10329
10330 2017-03-23 Yao Qi <yao.qi@linaro.org>
10331
10332 * aarch64-tdep.c (aarch64_process_record_test): Declare.
10333 (_initialize_aarch64_tdep): Register it.
10334 (aarch64_record_load_store): Handle PRFM instruction.
10335 (aarch64_process_record_test): New function.
10336
10337 2017-03-23 Yao Qi <yao.qi@linaro.org>
10338
10339 * aarch64-tdep.c (aarch64_record_load_store): Fix code
10340 indentation.
10341
10342 2017-03-23 Yao Qi <yao.qi@linaro.org>
10343
10344 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
10345
10346 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10347
10348 python/python.c (do_start_initialization): Fix memory leak.
10349
10350 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10351
10352 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
10353 using get_ptrace_pid.
10354 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
10355 inferior_ptid.
10356 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
10357 inferior_ptid instead of pid.
10358
10359 2017-03-22 Yao Qi <yao.qi@linaro.org>
10360
10361 * aarch64-tdep.c: Wrap locally used classes in anonymous
10362 namespace.
10363 * arm-tdep.c: Likewise.
10364 * linespec.c: Likewise.
10365 * ui-out.c: Likewise.
10366
10367 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
10368
10369 PR gdb/19637
10370 * python/lib/gdb/printer/bound_registers.py: Import sys.
10371
10372 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
10373
10374 * windows-nat.c (do_windows_fetch_inferior_registers): Add
10375 windows_thread_info parameter and use it instead of
10376 current_thread.
10377 (windows_fetch_inferior_registers): Don't set current_thread,
10378 pass the thread to do_windows_fetch_inferior_registers. Use
10379 ptid from regcache instead of inferior_ptid.
10380 (do_windows_store_inferior_registers): Add windows_thread_info
10381 parameter and use it instead of current_thread.
10382 (windows_store_inferior_registers): Don't set current_thread,
10383 pass the thread to do_windows_store_inferior_registers. Use
10384 ptid from regcache instead of inferior_ptid.
10385
10386 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
10387
10388 * ser-mingw.c (ser_windows_raw): Remove reference to
10389 struct serial::current_timeout.
10390
10391 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
10392
10393 PR tdep/20928
10394 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
10395 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
10396 (sparc64_fsr_type): Fix %fsr decoding.
10397
10398 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
10399
10400 * python/py-record-btrace.c (btpy_insn_data): Change return type
10401 for Python 2.
10402
10403 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
10404
10405 * spu-linux-nat.c (spu_fetch_inferior_registers,
10406 spu_store_inferior_registers): Use ptid from regcache, set and
10407 restore inferior_ptid.
10408 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
10409 Likewise.
10410
10411 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
10412
10413 * i386-linux-nat.c (fetch_register, store_register,
10414 i386_linux_fetch_inferior_registers,
10415 i386_linux_store_inferior_registers): Use ptid from regcache.
10416 * ia64-linux-nat.c (ia64_linux_fetch_register,
10417 ia64_linux_store_register): Likewise.
10418 * inf-ptrace.c (inf_ptrace_fetch_register,
10419 inf_ptrace_store_register): Likewise.
10420 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
10421 m32r_linux_store_inferior_registers): Likewise.
10422 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
10423 m68kbsd_store_inferior_registers): Likewise.
10424 * m68k-linux-nat.c (fetch_register, store_register,
10425 m68k_linux_fetch_inferior_registers,
10426 m68k_linux_store_inferior_registers): Likewise.
10427 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
10428 m88kbsd_store_inferior_registers): Likewise.
10429 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
10430 mips_fbsd_store_inferior_registers): Likewise.
10431 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
10432 mips64_linux_regsets_store_registers): Likewise.
10433 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
10434 mipsnbsd_store_inferior_registers): Likewise.
10435 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
10436 mips64obsd_store_inferior_registers): Likewise.
10437 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
10438 Likewise.
10439 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
10440 ppcfbsd_store_inferior_registers): Likewise.
10441 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
10442 ppc_linux_store_inferior_registers): Likewise.
10443 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
10444 ppcnbsd_store_inferior_registers): Likewise.
10445 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
10446 ppcobsd_store_registers): Likewise.
10447 * procfs.c (procfs_fetch_registers, procfs_store_registers):
10448 Likewise.
10449 * ravenscar-thread.c (ravenscar_fetch_registers,
10450 ravenscar_store_registers, ravenscar_prepare_to_store):
10451 Likewise.
10452 * record-btrace.c (record_btrace_fetch_registers,
10453 record_btrace_store_registers, record_btrace_prepare_to_store):
10454 Likewise.
10455 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
10456 Lookup inferior using ptid from regcache, instead of
10457 current_inferior.
10458 * remote.c (remote_fetch_registers, remote_store_registers): Use
10459 ptid from regcache.
10460 * rs6000-nat.c (fetch_register, store_register): Likewise.
10461 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
10462 s390_linux_store_inferior_registers): Likewise.
10463 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
10464 shnbsd_store_inferior_registers): Likewise.
10465 * sol-thread.c (sol_thread_fetch_registers,
10466 sol_thread_store_registers): Likewise.
10467 * sparc-nat.c (sparc_fetch_inferior_registers,
10468 sparc_store_inferior_registers): Likewise.
10469 * tilegx-linux-nat.c (fetch_inferior_registers,
10470 store_inferior_registers): Likewise.
10471 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
10472 vaxbsd_store_inferior_registers): Likewise.
10473 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
10474 store_xtregs): Likewise.
10475
10476 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
10477
10478 PR gdb/14441
10479 * NEWS: Mention support for rvalue references in GDB and python.
10480 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
10481 supports both lvalue and rvalue references.
10482
10483 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
10484
10485 PR gdb/14441
10486 * gdbtypes.c (rank_one_type): Implement overloading
10487 resolution rules regarding rvalue references.
10488
10489 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
10490
10491 PR gdb/14441
10492 * aarch64-tdep.c (aarch64_type_align)
10493 (aarch64_extract_return_value, aarch64_store_return_value): Change
10494 lvalue reference type checks to general reference type checks.
10495 * amd64-tdep.c (amd64_classify): Likewise.
10496 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
10497 Likewise.
10498 * arm-tdep.c (arm_type_align, arm_extract_return_value)
10499 (arm_store_return_value): Likewise.
10500 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
10501 * c-typeprint.c (c_print_type): Likewise.
10502 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
10503 (cplus_number_of_children, cplus_describe_child): Likewise.
10504 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
10505 * completer.c (expression_completer): Likewise.
10506 * cp-support.c (make_symbol_overload_list_adl_namespace):
10507 Likewise.
10508 * darwin-nat-info.c (info_mach_region_command): Likewise.
10509 * dwarf2loc.c (entry_data_value_coerce_ref)
10510 (value_of_dwarf_reg_entry): Likewise.
10511 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
10512 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
10513 Likewise.
10514 * findvar.c (extract_typed_address, store_typed_address):
10515 Likewise.
10516 * gdbtypes.c (rank_one_type): Likewise.
10517 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
10518 * infcall.c (value_arg_coerce): Likewise.
10519 * language.c (pointer_type): Likewise.
10520 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
10521 Likewise.
10522 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
10523 * mn10300-tdep.c (mn10300_type_align): Likewise.
10524 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
10525 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
10526 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
10527 Likewise.
10528 * printcmd.c (print_formatted, x_command): Likewise.
10529 * python/py-type.c (typy_get_composite, typy_template_argument):
10530 Likewise.
10531 * python/py-value.c (valpy_referenced_value)
10532 (valpy_get_dynamic_type, value_has_field): Likewise.
10533 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
10534 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
10535 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
10536 * spu-tdep.c (spu_scalar_value_p): Likewise.
10537 * symtab.c (lookup_symbol_aux): Likewise.
10538 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
10539 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
10540 Likewise.
10541 * valops.c (value_cast_pointers, value_cast)
10542 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
10543 (value_struct_elt, value_struct_elt_bitpos)
10544 (value_find_oload_method_list, find_overload_match)
10545 (value_rtti_indirect_type): Likewise.
10546 * valprint.c (val_print_scalar_type_p, generic_val_print):
10547 Likewise.
10548 * value.c (value_actual_type, value_as_address, unpack_long)
10549 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
10550 (coerce_ref): Likewise.
10551 * varobj.c (varobj_get_value_type): Likewise.
10552
10553 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
10554
10555 PR gdb/14441
10556 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
10557 table of constants.
10558 * python/lib/gdb/command/explore.py: Support exploring values
10559 of rvalue reference types.
10560 * python/lib/gdb/types.py: Implement get_basic_type() for
10561 rvalue reference types.
10562 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
10563 constant.
10564 * python/py-value.c (valpy_getitem): Add an rvalue reference
10565 check.
10566 (valpy_reference_value): Add new parameter "refcode".
10567 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
10568 New wrappers for valpy_reference_value().
10569 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
10570 (gdbpy_invoke_xmethod): Likewise.
10571
10572 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
10573
10574 PR gdb/14441
10575 * dwarf2read.c (process_die, read_type_die_1): Handle the
10576 DW_TAG_rvalue_reference_type DIE.
10577 (read_tag_reference_type): Add new parameter "refcode".
10578
10579 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
10580
10581 PR gdb/14441
10582 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
10583 (c_type_print_modifier, c_type_print_varspec_suffix)
10584 (c_type_print_base): Support printing rvalue reference types.
10585 * c-valprint.c (c_val_print, c_value_print): Support printing
10586 rvalue reference values.
10587
10588 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
10589
10590 PR gdb/14441
10591 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
10592 typename.
10593 * cp-support.c (replace_typedefs): Handle
10594 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
10595 * python/py-type.c (typy_lookup_type): Likewise.
10596
10597 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
10598
10599 PR gdb/14441
10600 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
10601 * parse.c (insert_type): Change assert statement.
10602 (follow_types): Handle rvalue reference types.
10603 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
10604 constant.
10605
10606 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
10607
10608 PR gdb/14441
10609 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
10610 value_ref() interface.
10611 * c-valprint.c (c_value_print): Likewise.
10612 * infcall.c (value_arg_coerce): Likewise.
10613 * python/py-value.c (valpy_reference_value): Likewise.
10614 * valops.c (value_cast, value_reinterpret_cast)
10615 (value_dynamic_cast, typecmp): Likewise.
10616 (value_ref): Parameterize by kind of return value reference type.
10617 * value.h (value_ref): Add new parameter "refcode".
10618
10619 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
10620
10621 PR gdb/14441
10622 * dwarf2read.c (read_tag_reference_type): Use
10623 lookup_lvalue_reference_type() instead of lookup_reference_type().
10624 * eval.c (evaluate_subexp_standard): Likewise.
10625 * f-exp.y: Likewise.
10626 * gdbtypes.c (make_reference_type, lookup_reference_type):
10627 Generalize with rvalue reference types.
10628 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
10629 convenience wrappers for lookup_reference_type().
10630 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
10631 reference kind parameter.
10632 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
10633 wrappers for lookup_reference_type().
10634 * guile/scm-type.c (gdbscm_type_reference): Use
10635 lookup_lvalue_reference_type() instead of lookup_reference_type().
10636 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
10637 * parse.c (follow_types): Likewise.
10638 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
10639 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
10640 Likewise.
10641 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
10642 (gdbpy_invoke_xmethod): Likewise.
10643 * stabsread.c: Provide extra argument to make_reference_type()
10644 call.
10645 * valops.c (value_ref, value_rtti_indirect_type): Use
10646 lookup_lvalue_reference_type() instead of lookup_reference_type().
10647
10648 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
10649
10650 PR gdb/14441
10651 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
10652 (TYPE_IS_REFERENCE): New macro.
10653 (struct type): Add rvalue_reference_type field.
10654 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
10655
10656 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10657
10658 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
10659 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
10660 New function definition.
10661 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
10662 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
10663 New function declaration.
10664 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
10665 * mi/mi-interp.h: New file.
10666 * solib.c (info_sharedlibrary_command): Replace for loop with
10667 ALL_SO_LIBS macro
10668 * solib.h (update_solib_list): New function declaration.
10669 (so_list_head): Move macro.
10670 * solist.h (ALL_SO_LIBS): New macro.
10671
10672 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10673
10674 * infcmd.c (post_create_inferior): Remove unused argument in
10675 call to solib_add.
10676 * remote.c (remote_start_remote): Likewise.
10677 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
10678 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
10679 (enable_break): Likewise.
10680 * solib.c (update_solib_list): Remove unused target argument
10681 and its documentation.
10682 (solib_add): Remove unused target argument. Remove unused
10683 argument in call to update_solib_list.
10684 (info_sharedlibrary_command): Remove unused argument in call
10685 to update_solib_list.
10686 (sharedlibrary_command): Remove unused argument in call to
10687 solib_add.
10688 (handle_solib_event): Likewise.
10689 (reload_shared_libraries): Likewise.
10690 * solib.h (solib_add): Remove unused target argument.
10691
10692 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
10693
10694 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
10695 (s390_displaced_step_fixup): Cover relative branches with the
10696 default fixup handling. This fixes lack of support for some
10697 relative branch instructions.
10698
10699 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10700
10701 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
10702 ptid from regcache.
10703
10704 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10705
10706 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
10707 i386_darwin_store_inferior_registers): Use ptid from regcache.
10708
10709 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10710
10711 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
10712 i386bsd_store_inferior_registers): Use ptid from regcache.
10713
10714 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10715
10716 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
10717 hppaobsd_store_registers): Use ptid from regcache.
10718
10719 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10720
10721 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
10722 hppanbsd_store_registers): Use ptid from regcache.
10723
10724 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10725
10726 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
10727 from regcache. Use get_ptrace_pid.
10728
10729 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10730
10731 * corelow.c (get_core_register_section): Use ptid from regcache,
10732 update doc.
10733
10734 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10735
10736 * bsd-uthread.c (bsd_uthread_fetch_registers,
10737 bsd_uthread_store_registers): Use ptid from regcache, set and
10738 restore inferior_ptid.
10739
10740 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10741
10742 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
10743 fetch_fp_regs, store_register, store_regs, store_fp_register,
10744 store_fp_regs): Use ptid from regcache.
10745
10746 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10747
10748 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
10749 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
10750 store_vfp_regs): Use ptid from regcache.
10751
10752 2017-03-17 Pedro Alves <palves@redhat.com>
10753
10754 PR remote/21188
10755 * ser-base.c (ser_base_wait_for): Add comment.
10756 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
10757 version.
10758 * ser-unix.c (hardwire_raw): Remove reference to
10759 scb->current_timeout.
10760 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
10761 (hardwire_ops): Install ser_base_readchar instead of
10762 hardwire_readchar.
10763 * serial.h (struct serial) <current_timeout, timeout_remaining>:
10764 Remove fields.
10765
10766 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
10767
10768 PR gdb/19637
10769 * python/lib/gdb/printer/bound_registers.py: Add support for
10770 Python 3.
10771
10772 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
10773
10774 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
10775 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
10776 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
10777 byte_offset to subobj_byte_offset. Fix the handling of
10778 DWARF_VALUE_STACK on big-endian targets when coming via an
10779 implicit pointer.
10780 (dwarf2_evaluate_loc_desc): Adjust call to
10781 dwarf2_evaluate_loc_desc_full.
10782 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
10783 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
10784
10785 2017-03-16 Yao Qi <yao.qi@linaro.org>
10786
10787 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
10788 and REVSH instructions.
10789
10790 2017-03-16 Yao Qi <yao.qi@linaro.org>
10791
10792 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
10793 (arm_record_test): Declare.
10794 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
10795 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
10796 align with the manual.
10797 (thumb_record_misc): Adjust the code order to align with the
10798 manual.
10799 (thumb2_record_decode_insn_handler): Fix instruction matching.
10800 (instruction_reader_thumb): New class.
10801 (arm_record_test): New function.
10802
10803 2017-03-16 Yao Qi <yao.qi@linaro.org>
10804
10805 * arm-tdep.c (abstract_memory_reader): New class.
10806 (instruction_reader): New class.
10807 (extract_arm_insn): Add argument 'reader'. Callers updated.
10808 (decode_insn): Likewise.
10809
10810 2017-03-16 Doug Evans <dje@google.com>
10811
10812 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
10813 member. Change type of TYPE member to SCM. All uses updated.
10814 (lsscm_make_lazy_string_smob): Add assert.
10815 (lsscm_make_lazy_string): Flag bad length values.
10816 (lsscm_elt_type): New function.
10817 (gdbscm_lazy_string_to_value): Rewrite to use
10818 lsscm_safe_lazy_string_to_value.
10819 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
10820 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
10821 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
10822 in incoming type.
10823 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
10824 * guile/scm-type.c (tyscm_scm_to_type): New function.
10825
10826 2017-03-15 Doug Evans <dje@google.com>
10827
10828 PR python/17728, python/18439, python/18779
10829 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
10830 member. Change type of TYPE member to PyObject *. All uses updated.
10831 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
10832 (gdbpy_create_lazy_string_object): Flag bad length values.
10833 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
10834 Handle typedefs in incoming type.
10835 (stpy_lazy_string_elt_type): New function.
10836 (gdbpy_extract_lazy_string): Call it.
10837 * python/py-value.c (valpy_lazy_string): Flag bad length values.
10838 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
10839 typedefs in incoming type.
10840
10841 2017-03-16 Doug Evans <dje@google.com>
10842
10843 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
10844 * guile/scm-type.c (tyscm_scm_to_type): New function.
10845
10846 2017-03-16 Jiong Wang <jiong.wang@arm.com>
10847
10848 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
10849 "ULONGEST" for "skip".
10850
10851 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
10852
10853 PR gdb/21220
10854 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
10855 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
10856 (inf_ptrace_peek_poke): ...here. New function. Now also loop
10857 over ptrace peek/poke until end of buffer or error.
10858
10859 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
10860
10861 * parse.c (length_of_subexp): Make static.
10862 * parser-defs.h (length_of_subexp): Remove.
10863
10864 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
10865
10866 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
10867 as well.
10868
10869 2017-03-14 Pedro Alves <palves@redhat.com>
10870
10871 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
10872 (main): Use std::unique_ptr. Remove calls to
10873 cp_demangled_name_parse_free.
10874
10875 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10876
10877 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
10878 alphabsd_store_inferior_registers): Use regcache->ptid instead
10879 of inferior_ptid.
10880
10881 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10882
10883 * aix-thread.c (aix_thread_fetch_registers,
10884 aix_thread_store_registers): Use regcache->ptid instead of
10885 inferior_ptid.
10886
10887 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10888
10889 * aarch64-linux-nat.c (fetch_gregs_from_thread,
10890 store_gregs_to_thread, fetch_fpregs_from_thread,
10891 store_fpregs_to_thread): Use regcache->ptid instead of
10892 inferior_ptid.
10893
10894 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10895
10896 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
10897 amd64_linux_fetch_inferior_registers): Use regcache->ptid
10898 instead of inferior_ptid.
10899
10900 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10901
10902 * target.c (target_fetch_registers, target_store_registers): Add
10903 assert.
10904
10905 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10906
10907 * regcache.h (regcache_get_ptid): New function.
10908 * regcache.c (regcache_get_ptid): New function.
10909
10910 2017-03-13 Mark Wielaard <mark@klomp.org>
10911
10912 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
10913
10914 2017-03-10 Keith Seitz <keiths@redhat.com>
10915
10916 PR c++/8218
10917 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
10918
10919 2017-03-08 Pedro Alves <palves@redhat.com>
10920
10921 PR gdb/18360
10922 * infrun.c (start_step_over, do_target_resume, resume)
10923 (restart_threads): Assert we're not resuming a thread that is
10924 meant to be stopped.
10925 (infrun_thread_stop_requested_callback): Delete.
10926 (infrun_thread_stop_requested): If the thread is internally
10927 stopped, queue a pending stop event and clear the thread's
10928 inline-frame state.
10929 (handle_stop_requested): New function.
10930 (handle_syscall_event, handle_inferior_event_1): Use
10931 handle_stop_requested.
10932 (handle_stop_requested): New function.
10933 (handle_signal_stop): Set the thread's stop_signal here instead of
10934 at caller.
10935 (finish_step_over): Clear step over info unconditionally.
10936 (handle_signal_stop): If the user had interrupted the event
10937 thread, consider the stop a random signal.
10938 (handle_signal_stop) <signal arrived while stepping over
10939 breakpoint>: Don't restart threads here.
10940 (stop_waiting): Don't clear step-over info here.
10941
10942 2017-03-08 Pedro Alves <palves@redhat.com>
10943
10944 PR 21206
10945 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
10946 goes to argument 2, not 1.
10947
10948 2017-03-08 Pedro Alves <palves@redhat.com>
10949
10950 PR cli/21218
10951 * top.c (gdb_readline_wrapper): Avoid passing NULL to
10952 display_gdb_prompt.
10953 (command_line_input): Add comment.
10954
10955 2017-03-08 Pedro Alves <palves@redhat.com>
10956
10957 PR tui/21216
10958 * tui/tui-file.c (tui_file::write): New.
10959 * tui/tui-file.h (tui_file): Override "write".
10960 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
10961 factored out from ...
10962 (tui_puts): ... here.
10963 (tui_putc): Use them.
10964 (tui_write): New function.
10965 * tui/tui-io.h (tui_write): Declare.
10966
10967 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
10968
10969 * Makefile.in (SFILES): Replace "environ.c" with
10970 "common/environ.c".
10971 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
10972 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
10973 to...
10974 * common/environ.c: ... here.
10975 * environ.h: Moved to...
10976 * common/environ.h: ... here.
10977
10978 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
10979
10980 * gdbarch.sh (pstring_ptr): New static function.
10981 (gdbarch_disassembler_options): Use it.
10982 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
10983 not valid_disassembler_option->name.
10984 * gdbarch.c: Regenerate.
10985
10986 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
10987
10988 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
10989
10990 2017-03-07 Pedro Alves <palves@redhat.com>
10991
10992 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
10993
10994 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
10995
10996 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
10997 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
10998 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
10999 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
11000
11001 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
11002
11003 * xtensa-linux-nat.c (fetch_gregs): Remove const.
11004
11005 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
11006
11007 * remote.c (remote_add_target_side_commands): Use range-based
11008 for loop.
11009
11010 2017-03-03 Yao Qi <yao.qi@linaro.org>
11011
11012 PR gdb/21165
11013 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
11014 value is lazy.
11015 * valprint.c (common_val_print): Likewise.
11016
11017 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
11018
11019 * NEWS: Mention new set/show disassembler-options commands.
11020 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
11021 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
11022 (prospective_options): New static variable.
11023 (gdb_disassembler::gdb_disassembler): Initialize
11024 m_di.disassembler_options.
11025 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
11026 (get_disassembler_options): New function.
11027 (set_disassembler_options): Likewise.
11028 (set_disassembler_options_sfunc): Likewise.
11029 (show_disassembler_options_sfunc): Likewise.
11030 (disassembler_options_completer): Likewise.
11031 (_initialize_disasm): Likewise.
11032 * disasm.h (get_disassembler_options): New prototype.
11033 (set_disassembler_options): Likewise.
11034 * gdbarch.sh (gdbarch_disassembler_options): New variable.
11035 (gdbarch_verify_disassembler_options): Likewise.
11036 * gdbarch.c: Regenerate.
11037 * gdbarch.h: Likewise.
11038 * arm-tdep.c (num_disassembly_options): Delete.
11039 (set_disassembly_style): Likewise.
11040 (arm_disassembler_options): New static variable.
11041 (set_disassembly_style_sfunc): Convert short style name into long
11042 option name. Call set_disassembler_options.
11043 (show_disassembly_style_sfunc): New function.
11044 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
11045 set_gdbarch_verify_disassembler_options.
11046 (_initialize_arm_tdep): Delete regnames variable and update callers.
11047 (arm_disassembler_options): Initialize.
11048 (disasm_options): New variable.
11049 (num_disassembly_options): Rename from this...
11050 (num_disassembly_styles): ...to this. Compute by scanning through
11051 disasm_options.
11052 (valid_disassembly_styles): Initialize using disasm_options.
11053 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
11054 set_arm_regname_option.
11055 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
11056 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
11057 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
11058 set_gdbarch_verify_disassembler_options.
11059 * s390-tdep.c (s390_disassembler_options): New static variable.
11060 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
11061 set_gdbarch_verify_disassembler_options.
11062
11063 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
11064
11065 * remote.c (remote_add_target_side_condition): Remove "struct"
11066 keyword from range-based for loop.
11067
11068 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
11069
11070 * remote.c (remote_add_target_side_condition): Use range-based
11071 for loop. Update comment.
11072
11073 2017-02-27 Yao Qi <yao.qi@linaro.org>
11074
11075 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
11076
11077 2017-02-26 Alan Hayward <alan.hayward@arm.com>
11078
11079 * regcache.c (regcache_raw_update): New function.
11080 (regcache_raw_read): Move code to regcache_raw_update.
11081 * regcache.h (regcache_raw_update): New declaration.
11082 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
11083
11084 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11085
11086 * dwarf2read.c (create_debug_type_hash_table): Initialize
11087 header.signature and header.type_offset_in_tu.
11088
11089 2017-02-24 Pedro Alves <palves@redhat.com>
11090
11091 * symtab.c (make_file_symbol_completion_list_1): Use
11092 add_symtab_completions.
11093
11094 2017-02-24 Alan Hayward <alan.hayward@arm.com>
11095
11096 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
11097
11098 2017-02-24 Alan Hayward <alan.hayward@arm.com>
11099
11100 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
11101 I386_MAX_REGISTER_SIZE.
11102 (i386_pseudo_register_write): Likewise.
11103 (i386_process_record): Likewise.
11104 * i387-tdep.c (i387_supply_xsave): Likewise.
11105 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
11106 (store_register): Likewise.
11107
11108 2017-02-23 Pedro Alves <palves@redhat.com>
11109
11110 * ada-lang.c: Include "common/function-view.h".
11111 (ada_iterate_over_symbols): Adjust to use function_view as
11112 callback type.
11113 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
11114 (ada_make_symbol_completion_list): Use a lambda.
11115 (ada_exc_search_name_matches): Delete.
11116 (name_matches_regex): New.
11117 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
11118 * compile/compile-c-support.c: Include "common/function-view.h".
11119 (print_one_macro): Change prototype to accept a ui_file pointer.
11120 (write_macro_definitions): Use a lambda.
11121 * dwarf2read.c: Include "common/function-view.h".
11122 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
11123 (dw2_expand_symtabs_matching): Adjust to use function_view as
11124 callback type.
11125 * language.h: Include "common/function-view.h".
11126 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
11127 function_view as callback type.
11128 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
11129 * linespec.c: Include "common/function-view.h".
11130 (collect_info::add_symbol): New method.
11131 (struct symbol_and_data_callback, iterate_inline_only, struct
11132 symbol_matcher_data, iterate_name_matcher): Delete.
11133 (iterate_over_all_matching_symtabs): Adjust to use function_view
11134 as callback type and lambdas.
11135 (iterate_over_file_blocks): Adjust to use function_view as
11136 callback type.
11137 (decode_compound_collector): Now a class with private fields.
11138 (decode_compound_collector::release_symbols): New method.
11139 (collect_one_symbol): Rename to...
11140 (decode_compound_collector::operator()): ... this and adjust.
11141 (lookup_prefix_sym): decode_compound_collector construction bits
11142 move to decode_compound_collector ctor. Pass the
11143 decode_compound_collector object directly as callback. Remove
11144 cleanups and use decode_compound_collector::release_symbols
11145 instead.
11146 (symtab_collector): Now a class with private fields.
11147 (symtab_collector::release_symtabs): New method.
11148 (add_symtabs_to_list): Rename to...
11149 (symtab_collector::operator()): ... this and adjust.
11150 (collect_symtabs_from_filename): symtab_collector construction
11151 bits move to symtab_collector ctor. Pass the symtab_collector
11152 object directly as callback. Remove cleanups and use
11153 symtab_collector::release_symtabs instead.
11154 (collect_symbols): Delete.
11155 (add_matching_symbols_to_info): Use lambdas.
11156 * macrocmd.c (print_macro_callback): Delete.
11157 (info_macro_command): Use a lambda.
11158 (info_macros_command): Pass print_macro_definition as callable
11159 directly.
11160 (print_one_macro): Remove 'ignore' parameter.
11161 (macro_list_command): Adjust.
11162 * macrotab.c (macro_for_each_data::fn): Now a function_view.
11163 (macro_for_each_data::user_data): Delete field.
11164 (foreach_macro): Adjust to call the function_view.
11165 (macro_for_each): Adjust to use function_view as callback type.
11166 (foreach_macro_in_scope): Adjust to call the function_view.
11167 (macro_for_each_in_scope): Adjust to use function_view as callback
11168 type.
11169 * macrotab.h: Include "common/function-view.h".
11170 (macro_callback_fn): Declare a prototype instead of a pointer.
11171 Remove "user_data" parameter.
11172 (macro_for_each, macro_for_each_in_scope): Adjust to use
11173 function_view as callback type.
11174 * psymtab.c (partial_map_expand_apply)
11175 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
11176 Adjust to use function_view as callback type and to return bool.
11177 (psym_expand_symtabs_matching): Adjust to use function_view as
11178 callback types.
11179 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
11180 to use function_view as callback type and to return bool.
11181 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
11182 callback types.
11183 * symfile.c (expand_symtabs_matching): Adjust to use function_view
11184 as callback types.
11185 * symfile.h: Include "common/function-view.h".
11186 (expand_symtabs_file_matcher_ftype)
11187 (expand_symtabs_symbol_matcher_ftype)
11188 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
11189 return bool.
11190 (quick_symbol_functions::map_symtabs_matching_filename)
11191 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
11192 function_view as callback type and return bool.
11193 (expand_symtabs_matching): Adjust to use function_view as callback
11194 type.
11195 (maintenance_expand_name_matcher)
11196 (maintenance_expand_file_matcher): Delete.
11197 (maintenance_expand_symtabs): Use lambdas.
11198 * symtab.c (iterate_over_some_symtabs): Adjust to use
11199 function_view as callback types and return bool.
11200 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
11201 of a cleanup.
11202 (lookup_symtab_callback): Delete.
11203 (lookup_symtab): Use a lambda.
11204 (iterate_over_symbols): Adjust to use function_view as callback
11205 type.
11206 (struct search_symbols_data, search_symbols_file_matches)
11207 (search_symbols_name_matches): Delete.
11208 (search_symbols): Use a pair of lambdas.
11209 (struct add_name_data, add_macro_name, symbol_completion_matcher)
11210 (symtab_expansion_callback): Delete.
11211 (default_make_symbol_completion_list_break_on_1): Use lambdas.
11212 * symtab.h: Include "common/function-view.h".
11213 (iterate_over_some_symtabs): Adjust to use function_view as
11214 callback type and return bool.
11215 (iterate_over_symtabs): Adjust to use function_view as callback
11216 type.
11217 (symbol_found_callback_ftype): Remove 'data' parameter and return
11218 bool.
11219 (iterate_over_symbols): Adjust to use function_view as callback
11220 type.
11221
11222 2017-02-23 Pedro Alves <palves@redhat.com>
11223
11224 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
11225 (%.o) <unittests/%.c>: New pattern.
11226 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
11227 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
11228 * common/function-view.h: New file.
11229 * unittests/function-view-selftests.c: New file.
11230 * configure: Regenerate.
11231
11232 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
11233
11234 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
11235 inferior_ptid.
11236 * go32-nat.c (go32_thread_alive): Likewise.
11237
11238 2017-02-23 Yao Qi <yao.qi@linaro.org>
11239
11240 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
11241 delete.
11242
11243 2017-02-23 Yao Qi <yao.qi@linaro.org>
11244
11245 * varobj.c (varobj_clear_saved_item): Use delete instead of
11246 xfree.
11247 (update_dynamic_varobj_children): Likewise.
11248
11249 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11250
11251 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
11252
11253 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
11254
11255 * common/enum-flags.h (enum_flags::enum_flags): Initialize
11256 m_enum_value to 0 in default constructor.
11257
11258 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11259
11260 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
11261 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
11262 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
11263 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
11264 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
11265 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
11266 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
11267 IS_STORE_CONDITIONAL_INSN.
11268
11269 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11270
11271 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
11272
11273 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11274
11275 * NEWS (Changes since GDB 7.12): Add DWARF-5.
11276
11277 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11278
11279 * dwarf2read.c (skip_one_die, read_attribute_value)
11280 (dwarf2_const_value_attr, dump_die_shallow)
11281 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
11282 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
11283
11284 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11285
11286 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
11287 (dwarf_parse_macro_header): Accept DWARF version 5.
11288 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
11289
11290 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11291
11292 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
11293 DW_AT_GNU_*.
11294 * common/common-exceptions.h (enum errors): Likewise.
11295 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
11296 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
11297 (dwarf_expr_context::execute_stack_op): Likewise.
11298 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
11299 Likewise.
11300 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
11301 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11302 (show_entry_values_debug, call_site_to_target_addr)
11303 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
11304 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
11305 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
11306 (value_of_dwarf_block_entry, indirect_pieced_value)
11307 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
11308 (disassemble_dwarf_expression): Likewise.
11309 * dwarf2read.c (process_die, inherit_abstract_dies)
11310 (read_call_site_scope): Likewise.
11311 * gdbtypes.h (struct func_type, struct call_site_parameter)
11312 (struct call_site): Likewise.
11313 * stack.c (read_frame_arg): Likewise.
11314 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
11315
11316 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11317
11318 * defs.h (read_unsigned_leb128): New declaration.
11319 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
11320 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
11321 (dwarf2_find_location_expression): Call also
11322 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
11323 * dwarf2loc.h (dwarf2_version): New declaration.
11324 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
11325 rnglists.
11326 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
11327 .debug_rnglists.
11328 (struct dwop_section_names): Add loclists_dwo.
11329 (dwop_section_names): Add .debug_loclists.dwo.
11330 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
11331 (struct dwarf2_per_cu_data): Add dwarf_version.
11332 (struct dwo_sections): Add loclists.
11333 (struct attr_abbrev): Add implicit_const.
11334 (read_indirect_line_string): New declaration.
11335 (read_unsigned_leb128): Delete declaration.
11336 (rcuh_kind): New definition.
11337 (read_and_check_comp_unit_head): Change parameter
11338 is_debug_types_section to section_kind.
11339 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
11340 (read_comp_unit_head): Change parameter abfd to section, add parameter
11341 section_kind. Handle DWARF-5.
11342 (error_check_comp_unit_head): Accept also DWARF version 5.
11343 (read_and_check_comp_unit_head): Change parameter
11344 is_debug_types_section to section_kind.
11345 (read_and_check_type_unit_head): Delete function.
11346 (read_abbrev_offset): Handle DWARF-5.
11347 (create_debug_type_hash_table): Add parameter section_kind. Process
11348 only DW_UT_type. Use signature and type_offset_in_tu from struct
11349 comp_unit_head.
11350 (create_debug_types_hash_table): Update create_debug_type_hash_table
11351 caller.
11352 (create_all_type_units): Call create_debug_type_hash_table.
11353 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
11354 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
11355 caller.
11356 (skip_one_die): Handle DW_FORM_implicit_const.
11357 (dwarf2_rnglists_process): New function.
11358 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
11359 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
11360 (read_attribute_value): Handle DW_FORM_implicit_const,
11361 DW_FORM_line_strp.
11362 (read_attribute): Handle DW_FORM_implicit_const.
11363 (read_indirect_string_at_offset_from): New function from
11364 read_indirect_string_at_offset.
11365 (read_indirect_string_at_offset): Call
11366 read_indirect_string_at_offset_from.
11367 (read_indirect_line_string_at_offset): New function.
11368 (read_indirect_string): New function comment.
11369 (read_indirect_line_string): New function.
11370 (read_unsigned_leb128): Make it global.
11371 (dwarf2_string_attr): Handle DWARF-5.
11372 (add_include_dir_stub, read_formatted_entries): New functions.
11373 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
11374 Handle DWARF-5.
11375 (per_cu_header_read_in): Update read_comp_unit_head caller.
11376 (dwarf2_version): New function.
11377 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
11378 rnglists.
11379 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
11380 fields.
11381
11382 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11383
11384 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
11385
11386 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11387
11388 * dwarf2read.c (dwarf2_ranges_process): New function from
11389 dwarf2_ranges_read.
11390 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
11391 dwarf2_ranges_process.
11392
11393 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11394
11395 * dwarf2read.c (create_debug_type_hash_table): New function from
11396 create_debug_types_hash_table.
11397 (create_debug_types_hash_table): Call create_debug_type_hash_table.
11398 (create_all_type_units, open_and_init_dwo_file): Update
11399 create_debug_types_hash_table callers.
11400
11401 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11402
11403 PR gdb/16188
11404 * fork-child.c (trace_start_error): Fix thinko. va_end should
11405 refer to 'ap', not 'args'.
11406
11407 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11408 Pedro Alves <palves@redhat.com>
11409
11410 PR gdb/16188
11411 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
11412 calls succeeded.
11413 * fork-child.c (trace_start_error): New function.
11414 (trace_start_error_with_name): Likewise.
11415 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
11416 * inf-ptrace.c (inf_ptrace_me): Likewise.
11417 * inferior.h (trace_start_error): New prototype.
11418 (trace_start_error_with_name): Likewise.
11419
11420 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
11421
11422 PR gdb/21164
11423 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
11424 NULL before using it.
11425 * symmisc.c (maintenance_print_symbols): Likewise.
11426 (maintenance_print_msymbols): Likewise.
11427
11428 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
11429
11430 * NEWS: Add record Python bindings entry.
11431
11432 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
11433
11434 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
11435 py-record-full.o.
11436 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
11437 * python/py-record-btrace.c, python/py-record-btrace.h,
11438 python/py-record-full.c, python/py-record-full.h: New file.
11439 * python/py-record.c: Add include for py-record-btrace.h and
11440 py-record-full.h.
11441 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
11442 recpy_instruction_history, recpy_function_call_history, recpy_begin,
11443 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
11444 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
11445 New definition.
11446 (gdbpy_initialize_btrace): New export.
11447 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
11448
11449 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
11450
11451 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
11452 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
11453 * python/py-record.c: New file.
11454 * python/python-internal.h (gdbpy_start_recording,
11455 gdbpy_current_recording, gdpy_stop_recording,
11456 gdbpy_initialize_record): New export.
11457 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
11458 (python_GdbMethods): Add gdbpy_start_recording,
11459 gdbpy_current_recording and gdbpy_stop_recording.
11460
11461 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
11462
11463 * record-btrace.c (record_btrace_record_method): New function.
11464 (init_record_btrace_ops): Initialize to_record_method.
11465 * record-full.c (record_full_record_method): New function.
11466 (init_record_full_ops, init_record_full_core_ops): Add
11467 record_full_record_method.
11468 * record.h (enum record_method): New enum.
11469 * target-debug.h (target_debug_print_enum_record_method: New define.
11470 * target-delegates.c: Regenerate.
11471 * target.c (target_record_method): New function.
11472 * target.h: Include record.h.
11473 (struct target_ops) <to_record_method>: New field.
11474 (target_record_method): New export.
11475
11476 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
11477
11478 * record.h (record_start, record_stop): New export.
11479 * record.c (record_start, record_stop): New function.
11480
11481 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
11482
11483 * btrace.c (btrace_fetch): Copy function call segments pointer
11484 into a vector.
11485 (btrace_clear): Clear the vector.
11486 (btrace_find_insn_by_number): Use binary search to find the correct
11487 function call segment.
11488 * btrace.h (brace_fun_p): New typedef.
11489 (struct btrace_thread_info) <functions>: New field.
11490
11491 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
11492
11493 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
11494 * btrace.c (btrace_decode_error): ... here. New function.
11495 * btrace.h (btrace_decode_error): New export.
11496
11497 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
11498
11499 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
11500 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
11501 btrace_find_insn_by_number): Remove special case for gaps.
11502 * btrace.h (btrace_insn_get_error): New export.
11503 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
11504 * record-btrace.c (btrace_insn_history): Print number for gaps.
11505 (record_btrace_info, record_btrace_goto): Handle gaps.
11506
11507 2017-02-14 Tom Tromey <tom@tromey.com>
11508
11509 PR python/13598:
11510 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
11511 event.
11512 * python/py-evts.c (gdbpy_initialize_py_events): Add
11513 before_prompt registry.
11514 * python/py-events.h (events_object) <before_prompt>: New field.
11515
11516 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
11517
11518 * btrace.c (ftrace_new_switch): Preserve up link and flags.
11519
11520 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
11521
11522 * symfile (_initialize_symfile): Add usage text to the load command's
11523 help text.
11524
11525 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
11526
11527 * utils.c (defaulted_query): Don't query on secondary UIs.
11528
11529 2017-02-10 Tom Tromey <tom@tromey.com>
11530
11531 * rust-lang.c (rust_get_disr_info): Remove unused variable.
11532
11533 2017-02-10 Tom Tromey <tom@tromey.com>
11534
11535 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
11536 "cleanup" local.
11537 * python/py-type.c (typy_legacy_template_argument): Remove
11538 unnecessary "cleanup" local.
11539
11540 2017-02-10 Tom Tromey <tom@tromey.com>
11541
11542 * python/python.c (do_start_initialization): New function, from
11543 _initialize_python.
11544 (_initialize_python): Call do_start_initialization.
11545 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
11546 goto.
11547
11548 2017-02-10 Tom Tromey <tom@tromey.com>
11549
11550 * python/py-prettyprint.c (pretty_print_one_value): Use
11551 gdbpy_ref.
11552
11553 2017-02-10 Tom Tromey <tom@tromey.com>
11554
11555 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
11556 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
11557 gdbpy_ref.
11558 * python/py-type.c (field_new): Use gdbpy_ref.
11559 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
11560 gdbpy_ref.
11561 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
11562 (py_free_pspace): Likewise.
11563 (pspace_to_pspace_object): Likewise.
11564 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
11565 (py_free_objfile): Likewise.
11566 (objfile_to_objfile_object): Likewise.
11567 * python/py-inferior.c (delete_thread_object): Use
11568 gdbpy_ref.
11569 (infpy_read_memory): Likewise.
11570 (py_free_inferior): Likewise.
11571 * python/py-evtregistry.c (create_eventregistry_object): Use
11572 gdbpy_ref.
11573 * python/py-event.c (create_event_object): Use gdbpy_ref.
11574
11575 2017-02-10 Tom Tromey <tom@tromey.com>
11576
11577 * python/py-ref.h (gdbpy_ref_policy): Now a template.
11578 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
11579 used.
11580 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
11581 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
11582 python/py-exitedevent.c, python/py-finishbreakpoint.c,
11583 python/py-framefilter.c, python/py-function.c,
11584 python/py-inferior.c, python/py-infevents.c,
11585 python/py-linetable.c, python/py-newobjfileevent.c,
11586 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
11587 python/py-signalevent.c, python/py-stopevent.c,
11588 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
11589 python/py-unwind.c, python/py-utils.c, python/py-value.c,
11590 python/py-varobj.c, python/py-xmethods.c, python/python.c,
11591 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
11592
11593 2017-02-10 Tom Tromey <tom@tromey.com>
11594
11595 * ui-out.h (ui_out_emit_type): New class.
11596 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
11597 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
11598 and ui_out_emit_tuple.
11599 (enumerate_locals): Likewise.
11600 (py_mi_print_variables, py_print_locals, py_print_args): Use
11601 ui_out_emit_list.
11602 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
11603 ui_out_emit_list.
11604 * common/gdb_optional.h: New file.
11605
11606 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
11607
11608 * MAINTAINERS (Write After Approval): Update my e-mail address.
11609
11610 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
11611
11612 PR gdb/21122
11613 * breakpoint.c (_initialize_breakpoint): Update the help description
11614 of the 'commands' command to indicate that it takes a list argument.
11615
11616 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
11617
11618 * interps.c (current_interp_set_logging): Remove "return".
11619
11620 2017-02-09 Gary Benson <gbenson@redhat.com>
11621
11622 * symtab.c (add_symtab_completions): Prevent NULL pointer
11623 dereference.
11624
11625 2017-02-08 Pedro Alves <palves@redhat.com>
11626
11627 * interps.c (interp::interp): Remove reference to quiet_p.
11628 (interp_set): Make static. Remove dead "Switching to" output
11629 code.
11630 (interp_quiet_p, interp_set_quiet): Delete.
11631 (interpreter_exec_cmd): Don't set the interpreter quiet.
11632 * interps.h (interp_quiet_p): Make static.
11633 (class interp) <quiet_p>: Remove field
11634
11635 2017-02-08 Jerome Guitton <guitton@adacore.com>
11636
11637 * cli/cli-decode.c (find_command_name_length): Make it extern.
11638 * cli/cli-decode.h (find_command_name_length): Declare.
11639 * cli/cli-script.c (command_name_equals, line_first_arg):
11640 New functions.
11641 (process_next_line): Use cli-decode to parse command names.
11642 (build_command_line): Make args a constant pointer.
11643
11644 2017-02-08 Jerome Guitton <guitton@adacore.com>
11645
11646 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
11647 Remove case-insensitive search.
11648
11649 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
11650
11651 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
11652 at the end of the line. Avoids an ARI warning.
11653
11654 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
11655
11656 * NEWS: Mention support for record/replay of Intel 64 rdrand and
11657 rdseed instructions.
11658 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
11659
11660 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
11661
11662 PR tdep/20936
11663 Provide and use sparc32 and sparc64 target description XML files.
11664 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
11665 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
11666 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
11667 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
11668 * features/sparc/sparc32-solaris.xml: New file.
11669 * features/sparc/sparc64-solaris.xml: New file.
11670 * features/sparc/sparc32-solaris.c: Generated.
11671 * features/sparc/sparc64-solaris.c: Generated.
11672 * sparc-tdep.h: Account for differences in target descriptions.
11673 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
11674 (sparc32_register_type): Use target provided registers.
11675 (validate_tdesc_registers): New function.
11676 (sparc32_gdbarch_init): Use tdesc_has_registers.
11677 Set pseudoregister functions.
11678 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
11679 (sparc64_register_type): Use target provided registers.
11680 (sparc64_init_abi): Set pseudoregister functions.
11681
11682 2017-02-03 Tom Tromey <tom@tromey.com>
11683
11684 PR rust/21097:
11685 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
11686 with a single member.
11687
11688 2017-02-03 Pedro Alves <palves@redhat.com>
11689
11690 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
11691 (cli_interp_base::~cli_interp_base): New.
11692 (cli_interp): New struct.
11693 (as_cli_interp): Cast the interp itself to cli_interp.
11694 (cli_interpreter_pre_command_loop): Rename to ...
11695 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
11696 parameter.
11697 (cli_interpreter_init): Rename to ...
11698 (cli_interp::init): ... this. Remove 'self' parameter. Use
11699 boolean. Make extern.
11700 (cli_interpreter_resume): Rename to ...
11701 (cli_interp::resume): ... this. Remove 'data' parameter. Make
11702 extern.
11703 (cli_interpreter_suspend): Rename to ...
11704 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
11705 extern.
11706 (cli_interpreter_exec): Rename to ...
11707 (cli_interp::exec): ... this. Remove 'data' parameter. Make
11708 extern.
11709 (cli_interpreter_supports_command_editing): Rename to ...
11710 (cli_interp_base::supports_command_editing): ... this. Remove
11711 'interp' parameter. Make extern.
11712 (cli_ui_out): Rename to ...
11713 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
11714 Make extern.
11715 (cli_set_logging): Rename to ...
11716 (cli_interp_base::set_logging): ... this. Remove 'interp'
11717 parameter. Make extern.
11718 (cli_interp_procs): Delete.
11719 (cli_interp_factory): Adjust to use "new".
11720 * cli/cli-interp.h: Include "interps.h".
11721 (struct cli_interp_base): New struct.
11722 * interps.c (struct interp): Delete. Fields moved to interps.h.
11723 (interp_new): Delete.
11724 (interp::interp, interp::~interp): New.
11725 (interp_set): Use bool, and return void. Assume the interpreter
11726 has suspend, init and resume methods, and that the all return
11727 void.
11728 (set_top_level_interpreter): interp_set returns void.
11729 (interp_ui_out): Adapt.
11730 (current_interp_set_logging): Adapt.
11731 (interp_data): Delete.
11732 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
11733 (interp_exec): Adapt.
11734 (top_level_interpreter_data): Delete.
11735 * interps.h (interp_init_ftype, interp_resume_ftype)
11736 (interp_suspend_ftype, interp_exec_ftype)
11737 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
11738 (class interp): New.
11739 (interp_new): Delete.
11740 (interp_set): Now returns void. Use bool.
11741 (interp_data, top_level_interpreter_data): Delete.
11742 * mi/mi-common.h: Include interps.h.
11743 (class mi_interp): Inherit from interp. Define a ctor. Declare
11744 init, resume, suspect, exec, interp_ui_out, set_logging and
11745 pre_command_loop methods.
11746 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
11747 (mi_interpreter_init): Rename to ...
11748 (mi_interp::init): ... this. Remove the 'interp' parameter, use
11749 bool, return void and make extern. Adjust.
11750 (mi_interpreter_resume): ... Rename to ...
11751 (mi_interp::resume): ... this. Remove the 'data' parameter,
11752 return void and make extern. Adjust.
11753 (mi_interpreter_suspend): ... Rename to ...
11754 (mi_interp::suspend): ... this. Remove the 'data' parameter,
11755 return void and make extern. Adjust.
11756 (mi_interpreter_exec): ... Rename to ...
11757 (mi_interp::exec): ... this. Remove the 'data' parameter and make
11758 extern. Adjust.
11759 (mi_interpreter_pre_command_loop): ... Rename to ...
11760 (mi_interp::pre_command_loop): ... this. Remove the 'self'
11761 parameter and make extern.
11762 (mi_on_normal_stop_1): Adjust.
11763 (mi_ui_out): Rename to ...
11764 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
11765 parameter and make extern. Adjust.
11766 (mi_set_logging): Rename to ...
11767 (mi_interp::set_logging): ... this. Remove the 'interp'
11768 parameter and make extern. Adjust.
11769 (mi_interp_procs): Delete.
11770 (mi_interp_factory): Adjust to use 'new'.
11771 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
11772 (mi_print_exception, mi_execute_command, mi_load_progress):
11773 Adjust.
11774 * tui/tui-interp.c (tui_interp): New class.
11775 (as_tui_interp): Return a tui_interp pointer.
11776 (tui_on_normal_stop, tui_on_signal_received)
11777 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
11778 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
11779 to use interp::interp_ui_out.
11780 (tui_init): Rename to ...
11781 (tui_interp::init): ... this. Remove the 'self' parameter, use
11782 bool, return void and make extern. Adjust.
11783 (tui_resume): Rename to ...
11784 (tui_interp::resume): ... this. Remove the 'data' parameter,
11785 return void and make extern. Adjust.
11786 (tui_suspend): Rename to ...
11787 (tui_interp::suspend): ... this. Remove the 'data' parameter,
11788 return void and make extern. Adjust.
11789 (tui_ui_out): Rename to ...
11790 (tui_interp::interp_ui_out): ... this. Remove the 'self'
11791 parameter, and make extern. Adjust.
11792 (tui_exec): Rename to ...
11793 (tui_interp::exec): ... this. Remove the 'data' parameter and
11794 make extern.
11795 (tui_interp_procs): Delete.
11796 (tui_interp_factory): Use "new".
11797
11798 2017-02-02 Tom Tromey <tom@tromey.com>
11799
11800 * rust-exp.y (ends_raw_string, space_then_number)
11801 (rust_identifier_start_p): Return bool.
11802 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
11803 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
11804 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
11805 (rust_chartype_p): Return bool.
11806 (val_print_struct, rust_print_struct_def, rust_print_type):
11807 Update.
11808 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
11809 Return bool.
11810
11811 2017-02-02 Tom Tromey <tom@tromey.com>
11812
11813 * rust-lang.c: Reindent.
11814
11815 2017-02-02 Tom Tromey <tom@tromey.com>
11816
11817 * rust-lang.h (rust_crate_for_block): Update.
11818 * rust-lang.c (rust_crate_for_block): Return std::string.
11819 (rust_get_disr_info): Use std:;string, not
11820 gdb::unique_xmalloc_ptr.
11821 * rust-exp.y (crate_name): Update.
11822
11823 2017-02-02 Pedro Alves <palves@redhat.com>
11824
11825 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
11826 field out of gdb_disassembler_test and make it static.
11827
11828 2017-02-02 Pedro Alves <palves@redhat.com>
11829
11830 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
11831 mi1_interp and mi_interp fields.
11832
11833 2017-02-02 Pedro Alves <palves@redhat.com>
11834
11835 * cli/cli-interp.c (struct saved_output_files, saved_output):
11836 Moved from cli/cli-logging.c.
11837 (cli_set_logging): New function.
11838 (cli_interp_procs): Install cli_set_logging.
11839 * cli/cli-interp.h (make_logging_output, cli_set_logging):
11840 Declare.
11841 * cli/cli-logging.c (struct saved_output_files, saved_output):
11842 Moved to cli/cli-interp.c.
11843 (pop_output_files): Don't save outputs here.
11844 (make_logging_output): New function.
11845 (handle_redirections): Don't build tee nor save previous outputs
11846 here.
11847 * interps.c (current_interp_set_logging): Change prototype.
11848 Assume there's always a set_logging_proc method installed.
11849 * interps.h (interp_set_logging_ftype): Change prototype.
11850 (current_interp_set_logging): Change prototype and adjust comment.
11851 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
11852 use make_logging_output.
11853 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
11854 2017-02-02 Pedro Alves <palves@redhat.com>
11855
11856 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
11857 from ...
11858 (set_logging_overwrite): ... here.
11859 (logging_no_redirect_file): Delete.
11860 (set_logging_redirect): Don't handle redirection on the fly.
11861 Instead warn that "logging off" / "logging on" is necessary.
11862 (pop_output_files): Delete references to logging_no_redirect_file.
11863 (show_logging_command): Always speak in terms of what will happen
11864 once logging is reenabled.
11865
11866 2017-02-02 Pedro Alves <palves@redhat.com>
11867
11868 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
11869
11870 2017-02-02 Pedro Alves <palves@redhat.com>
11871
11872 * disasm.c (gdb_pretty_print_insn): Rename to ...
11873 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
11874 Remove gdbarch parameter. Adapt to clear the object's buffers
11875 instead of allocating new buffers, and to print using the object's
11876 gdb_disassembler instead of calling gdb_print_insn.
11877 (dump_insns): Use gdb_pretty_print_disassembler.
11878 * disasm.h (gdb_pretty_print_insn): Delete declaration.
11879 (gdb_pretty_print_disassembler): New class.
11880 * record-btrace.c (btrace_insn_history): Use
11881 gdb_pretty_print_disassembler.
11882
11883 2017-02-02 Pedro Alves <palves@redhat.com>
11884
11885 * ada-lang.c (type_as_string): Use string_file.
11886 * ada-valprint.c (ada_print_floating): Use string_file.
11887 * ada-varobj.c (ada_varobj_scalar_image)
11888 (ada_varobj_get_value_image): Use string_file.
11889 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
11890 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
11891 * breakpoint.c (update_inserted_breakpoint_locations)
11892 (insert_breakpoint_locations, reattach_breakpoints)
11893 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
11894 (print_it_watchpoint): Use string_file.
11895 (save_breakpoints): Use stdio_file.
11896 * c-exp.y (oper): Use string_file.
11897 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
11898 tee_file.
11899 (pop_output_files): Use delete.
11900 (handle_redirections): Use stdio_file and tee_file.
11901 * cli/cli-setshow.c (do_show_command): Use string_file.
11902 * compile/compile-c-support.c (c_compute_program): Use
11903 string_file.
11904 * compile/compile-c-symbols.c (generate_vla_size): Take a
11905 'string_file &' instead of a 'ui_file *'.
11906 (generate_c_for_for_one_variable): Take a 'string_file &' instead
11907 of a 'ui_file *'. Use string_file.
11908 (generate_c_for_variable_locations): Take a 'string_file &'
11909 instead of a 'ui_file *'.
11910 * compile/compile-internal.h (generate_c_for_for_one_variable):
11911 Take a 'string_file &' instead of a 'ui_file *'.
11912 * compile/compile-loc2c.c (push, pushf, unary, binary)
11913 (print_label, pushf_register_address, pushf_register)
11914 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
11915 'ui_file *'. Adjust.
11916 * compile/compile.c (compile_to_object): Use string_file.
11917 * compile/compile.h (compile_dwarf_expr_to_c)
11918 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
11919 'ui_file *'.
11920 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
11921 (replace_typedefs_qualified_name): Use string_file and
11922 obstack_copy0.
11923 * disasm.c (gdb_pretty_print_insn): Use string_file.
11924 (gdb_disassembly): Adjust reference the null_stream global.
11925 (do_ui_file_delete): Delete.
11926 (gdb_insn_length): Use null_stream.
11927 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
11928 * dwarf2loc.c (dwarf2_compile_property_to_c)
11929 (locexpr_generate_c_location, loclist_generate_c_location): Take a
11930 'string_file &' instead of a 'ui_file *'.
11931 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
11932 * dwarf2read.c (do_ui_file_peek_last): Delete.
11933 (dwarf2_compute_name): Use string_file.
11934 * event-top.c (gdb_setup_readline): Use stdio_file.
11935 * gdbarch.sh (verify_gdbarch): Use string_file.
11936 * gdbtypes.c (safe_parse_type): Use null_stream.
11937 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
11938 string_file.
11939 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
11940 'string_file *' instead of a 'ui_file *'.
11941 (gdbscm_arch_disassemble): Use string_file.
11942 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
11943 * guile/scm-ports.c (class ioscm_file_port): Now a class that
11944 inherits from ui_file.
11945 (ioscm_file_port_delete, ioscm_file_port_rewind)
11946 (ioscm_file_port_put): Delete.
11947 (ioscm_file_port_write): Rename to ...
11948 (ioscm_file_port::write): ... this. Remove file_port_magic
11949 checks.
11950 (ioscm_file_port_new): Delete.
11951 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
11952 ui_file_up.
11953 * guile/scm-type.c (tyscm_type_name): Use string_file.
11954 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
11955 Use string_file.
11956 * infcmd.c (print_return_value_1): Use string_file.
11957 * infrun.c (print_target_wait_results): Use string_file.
11958 * language.c (add_language): Use string_file.
11959 * location.c (explicit_to_string_internal): Use string_file.
11960 * main.c (captured_main_1): Use null_file.
11961 * maint.c (maintenance_print_architecture): Use stdio_file.
11962 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
11963 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
11964 event_channel>: Change type to mi_console_file pointer.
11965 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
11966 (mi_console_file_delete): Delete.
11967 (struct mi_console_file): Delete.
11968 (mi_console_file_magic): Delete.
11969 (mi_console_file_new): Delete.
11970 (mi_console_file::mi_console_file): New.
11971 (mi_console_file_delete): Delete.
11972 (mi_console_file_fputs): Delete.
11973 (mi_console_file::write): New.
11974 (mi_console_raw_packet): Delete.
11975 (mi_console_file::flush): New.
11976 (mi_console_file_flush): Delete.
11977 (mi_console_set_raw): Rename to ...
11978 (mi_console_file::set_raw): ... this.
11979 * mi/mi-console.h (class mi_console_file): New class.
11980 (mi_console_file_new, mi_console_set_raw): Delete.
11981 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
11982 (mi_set_logging): Use delete and tee_file. Adjust.
11983 * mi/mi-main.c (output_register): Use string_file.
11984 (mi_cmd_data_evaluate_expression): Use string_file.
11985 (mi_cmd_data_read_memory): Use string_file.
11986 (mi_cmd_execute, print_variable_or_computed): Use string_file.
11987 * mi/mi-out.c (mi_ui_out::main_stream): New.
11988 (mi_ui_out::rewind): Use main_stream and
11989 string_file.
11990 (mi_ui_out::put): Use main_stream and string_file.
11991 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
11992 Allocate a 'string_file' instead.
11993 (mi_out_new): Don't allocate a mem_fileopen stream here.
11994 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
11995 (mi_ui_out::main_stream): Declare method.
11996 * printcmd.c (eval_command): Use string_file.
11997 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
11998 * python/py-arch.c (archpy_disassemble): Use string_file.
11999 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
12000 * python/py-frame.c (frapy_str): Use string_file.
12001 * python/py-framefilter.c (py_print_type, py_print_single_arg):
12002 Use string_file.
12003 * python/py-type.c (typy_str): Use string_file.
12004 * python/py-unwind.c (unwind_infopy_str): Use string_file.
12005 * python/py-value.c (valpy_str): Use string_file.
12006 * record-btrace.c (btrace_insn_history): Use string_file.
12007 * regcache.c (regcache_print): Use stdio_file.
12008 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
12009 * remote.c (escape_buffer): Use string_file.
12010 * rust-lang.c (rust_get_disr_info): Use string_file.
12011 * serial.c (serial_open_ops_1): Use stdio_file.
12012 (do_serial_close): Use delete.
12013 * stack.c (print_frame_arg): Use string_file.
12014 (print_frame_args): Remove local mem_fileopen stream, not used.
12015 (print_frame): Use string_file.
12016 * symmisc.c (maintenance_print_symbols): Use stdio_file.
12017 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
12018 Take a 'string_file *' instead of a 'ui_file *'.
12019 * top.c (new_ui): Use stdio_file and stderr_file.
12020 (free_ui): Use delete.
12021 (execute_command_to_string): Use string_file.
12022 (quit_confirm): Use string_file.
12023 * tracepoint.c (collection_list::append_exp): Use string_file.
12024 * tui/tui-disasm.c (tui_disassemble): Use string_file.
12025 * tui/tui-file.c: Don't include "ui-file.h".
12026 (enum streamtype, struct tui_stream): Delete.
12027 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
12028 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
12029 (tui_file::tui_file): New method.
12030 (tui_file_fputs): Delete.
12031 (tui_file_get_strbuf): Delete.
12032 (tui_file::puts): New method.
12033 (tui_file_adjust_strbuf): Delete.
12034 (tui_file_flush): Delete.
12035 (tui_file::flush): New method.
12036 * tui/tui-file.h: Tweak intro comment.
12037 Include ui-file.h.
12038 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
12039 (tui_file_adjust_strbuf): Delete declarations.
12040 (class tui_file): New class.
12041 * tui/tui-io.c (tui_initialize_io): Use tui_file.
12042 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
12043 (tui_register_format): Use string_stream.
12044 * tui/tui-stack.c (tui_make_status_line): Use string_file.
12045 (tui_get_function_from_frame): Use string_file.
12046 * typeprint.c (type_to_string): Use string_file.
12047 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
12048 (null_stream): New global.
12049 (ui_file_delete): Delete.
12050 (ui_file::ui_file): New.
12051 (null_file_isatty): Delete.
12052 (ui_file::~ui_file): New.
12053 (null_file_rewind): Delete.
12054 (ui_file::printf): New.
12055 (null_file_put): Delete.
12056 (null_file_flush): Delete.
12057 (ui_file::putstr): New.
12058 (null_file_write): Delete.
12059 (ui_file::putstrn): New.
12060 (null_file_read): Delete.
12061 (ui_file::putc): New.
12062 (null_file_fputs): Delete.
12063 (null_file_write_async_safe): Delete.
12064 (ui_file::vprintf): New.
12065 (null_file_delete): Delete.
12066 (null_file::write): New.
12067 (null_file_fseek): Delete.
12068 (null_file::puts): New.
12069 (ui_file_data): Delete.
12070 (null_file::write_async_safe): New.
12071 (gdb_flush, ui_file_isatty): Adjust.
12072 (ui_file_put, ui_file_rewind): Delete.
12073 (ui_file_write): Adjust.
12074 (ui_file_write_for_put): Delete.
12075 (ui_file_write_async_safe, ui_file_read): Adjust.
12076 (ui_file_fseek): Delete.
12077 (fputs_unfiltered): Adjust.
12078 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
12079 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
12080 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
12081 (set_ui_file_data): Delete.
12082 (string_file::~string_file, string_file::write)
12083 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
12084 (do_ui_file_as_string, ui_file_as_string): Delete.
12085 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
12086 (struct mem_file): Delete.
12087 (mem_file_new): Delete.
12088 (stdio_file::stdio_file): New.
12089 (mem_file_delete): Delete.
12090 (stdio_file::stdio_file): New.
12091 (mem_fileopen): Delete.
12092 (stdio_file::~stdio_file): New.
12093 (mem_file_rewind): Delete.
12094 (stdio_file::set_stream): New.
12095 (mem_file_put): Delete.
12096 (stdio_file::open): New.
12097 (mem_file_write): Delete.
12098 (stdio_file_magic, struct stdio_file): Delete.
12099 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
12100 (stdio_file::flush): New.
12101 (stdio_file_read): Rename to ...
12102 (stdio_file::read): ... this. Adjust.
12103 (stdio_file_write): Rename to ...
12104 (stdio_file::write): ... this. Adjust.
12105 (stdio_file_write_async_safe): Rename to ...
12106 (stdio_file::write_async_safe) ... this. Adjust.
12107 (stdio_file_fputs): Rename to ...
12108 (stdio_file::puts) ... this. Adjust.
12109 (stdio_file_isatty): Delete.
12110 (stdio_file_fseek): Delete.
12111 (stdio_file::isatty): New.
12112 (stderr_file_write): Rename to ...
12113 (stderr_file::write) ... this. Adjust.
12114 (stderr_file_fputs): Rename to ...
12115 (stderr_file::puts) ... this. Adjust.
12116 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
12117 (stderr_file::stderr_file): New.
12118 (tee_file_magic): Delete.
12119 (struct tee_file): Delete.
12120 (tee_file::tee_file): New.
12121 (tee_file_new): Delete.
12122 (tee_file::~tee_file): New.
12123 (tee_file_delete): Delete.
12124 (tee_file_flush): Rename to ...
12125 (tee_file::flush): ... this. Adjust.
12126 (tee_file_write): Rename to ...
12127 (tee_file::write): ... this. Adjust.
12128 (tee_file::write_async_safe): New.
12129 (tee_file_fputs): Rename to ...
12130 (tee_file::puts): ... this. Adjust.
12131 (tee_file_isatty): Rename to ...
12132 (tee_file::isatty): ... this. Adjust.
12133 * ui-file.h (struct obstack, struct ui_file): Don't
12134 forward-declare.
12135 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
12136 (ui_file_write_ftype)
12137 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
12138 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
12139 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
12140 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
12141 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
12142 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
12143 (set_ui_file_fseek): Delete.
12144 (ui_file_data, ui_file_delete, ui_file_rewind)
12145 (struct ui_file): New.
12146 (ui_file_up): New.
12147 (class null_file): New.
12148 (null_stream): Declare.
12149 (ui_file_write_for_put, ui_file_put): Delete.
12150 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
12151 Delete.
12152 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
12153 (gdb_fopen, tee_file_new): Delete.
12154 (struct string_file): New.
12155 (struct stdio_file): New.
12156 (stdio_file_up): New.
12157 (struct stderr_file): New.
12158 (class tee_file): New.
12159 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
12160 of a 'ui_file *'. Adjust.
12161 * ui-out.h (class ui_out) <field_stream>: Likewise.
12162 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
12163 (null_stream): Delete.
12164 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
12165 Adjust.
12166 * utils.h (struct ui_file): Delete forward declaration..
12167 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
12168 (error_stream): Take a 'string_file &' instead of a
12169 'ui_file *'.
12170 * varobj.c (varobj_value_get_print_value): Use string_file.
12171 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
12172 * gdbarch.c: Regenerate.
12173
12174 2017-02-02 Pedro Alves <palves@redhat.com>
12175
12176 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
12177 (gdb_pretty_print_insn): ... this. Now a free function. Add back
12178 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
12179 Adjust to call gdb_print_insn instead of
12180 gdb_disassembler::print_insn.
12181 (dump_insns, do_mixed_source_and_assembly_deprecated)
12182 (do_mixed_source_and_assembly, do_assembly_only): Add back a
12183 'gdbarch' parameter. Remove gdb_disassembler parameter.
12184 (gdb_disassembly): Don't allocate a gdb_disassembler here.
12185 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
12186 declaration.
12187 (gdb_pretty_print_insn): Re-add declaration.
12188 * record-btrace.c (btrace_insn_history): Don't allocate a
12189 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
12190
12191 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
12192
12193 * disasm.h (gdb_disassembly): Remove file_string parameter.
12194 * disasm.c (gdb_disassembly): Likewise.
12195 * cli/cli-cmds.c (print_disassembly): Adapt.
12196 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
12197 * stack.c (do_gdb_disassembly): Likewise.
12198
12199 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
12200
12201 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
12202 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
12203 targets. And if the implicit value is longer than needed, extract
12204 the first bytes instead of the "least significant" ones.
12205
12206 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
12207
12208 * btrace.c (btrace_enable): Do not call btrace_add_pc for
12209 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
12210 (btrace_fetch): Assert can_access_registers_ptid.
12211 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
12212 validate_registers_access.
12213
12214 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
12215
12216 * gdbthread.h (can_access_registers_ptid): New.
12217 * thread.c (can_access_registers_ptid): New.
12218
12219 2017-02-01 Pedro Alves <palves@redhat.com>
12220
12221 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
12222
12223 2017-01-31 Pedro Alves <palves@redhat.com>
12224
12225 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
12226 Fix typos.
12227
12228 2017-01-31 Pedro Alves <palves@redhat.com>
12229
12230 * stack.c (print_frame_args): Remove local mem_fileopen stream,
12231 not used.
12232
12233 2017-01-31 Pedro Alves <palves@redhat.com>
12234
12235 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
12236
12237 2017-01-31 Pedro Alves <palves@redhat.com>
12238
12239 * common/scoped_restore.h
12240 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
12241 change the value's parameter type to T2.
12242 (make_scoped_restore): Likewise.
12243
12244 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
12245 Richard Henderson <rth@redhat.com>
12246
12247 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
12248 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
12249 GS_BASE for older kernels.
12250 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
12251 GS_BASE for older kernels.
12252 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
12253 and GS_BASE to the offset table.
12254 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
12255 system register group.
12256 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
12257 for older kernels.
12258 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
12259 amd64 ABI.
12260 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
12261 AMD64_GSBASE_REGNUM.
12262 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
12263 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
12264 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
12265 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
12266 i386/64bit-segments.xml in those rules.
12267 * features/i386/64bit-segments.xml: New file.
12268 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
12269 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
12270 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
12271 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
12272 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
12273 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
12274 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
12275 * features/i386/amd64-avx-linux.c: Regenerated.
12276 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
12277 * features/i386/amd64-avx-mpx.c: Regenerated.
12278 * features/i386/amd64-avx512-linux.c: Regenerated.
12279 * features/i386/amd64-linux.c: Regenerated.
12280 * features/i386/amd64-mpx-linux.c: Regenerated.
12281 * features/i386/i386-avx-mpx-linux.c: Regenerated.
12282 * features/i386/i386-avx-mpx.c: Regenerated.
12283 * features/i386/x32-avx-linux.c: Regenerated.
12284 * features/i386/x32-avx512-linux.c: Regenerated.
12285 * regformats/i386/amd64-avx-linux.dat: Regenerated.
12286 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
12287 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
12288 * regformats/i386/amd64-linux.dat: Regenerated.
12289 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
12290 * regformats/i386/x32-avx-linux.dat: Regenerated.
12291 * regformats/i386/x32-avx512-linux.dat: Regenerated.
12292 * regformats/i386/x32-linux.dat: Regenerated.
12293
12294 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
12295
12296 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
12297 Set to AMD64_NUM_REGS.
12298
12299 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
12300
12301 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
12302 that checks validity of a register number.
12303
12304 2017-01-27 Kees Cook <keescook@google.com>
12305
12306 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
12307 fetch_fpregs if target has fpa registers.
12308 (arm_linux_store_inferior_registers): Call store_fpregs if target
12309 has fpa registers.
12310
12311 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
12312
12313 * cris-tdep.c (cris_gdbarch_init): Remove check for
12314 info.byte_order and force it to BFD_ENDIAN_LITTLE.
12315
12316 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
12317
12318 * corelow.c (get_core_register_section): Check for regset
12319 existence before checking for REGSET_VARIABLE_SIZE.
12320
12321 2017-01-26 Yao Qi <yao.qi@linaro.org>
12322 Pedro Alves <palves@redhat.com>
12323
12324 PR gdb/20939
12325 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
12326 call memory_error, save memaddr instead.
12327 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
12328 negative, cal memory_error.
12329 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
12330
12331 2017-01-26 Yao Qi <yao.qi@linaro.org>
12332
12333 * disasm-selftests.c (memory_error_test): New function.
12334 (_initialize_disasm_selftests): Register memory_error_test.
12335
12336 2017-01-26 Yao Qi <yao.qi@linaro.org>
12337
12338 * Makefile.in (SFILES): Add disasm-selftests.c and
12339 selftest-arch.c.
12340 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
12341 * disasm-selftests.c: New file.
12342 * selftest-arch.c: New file.
12343 * selftest-arch.h: New file.
12344
12345 2017-01-26 Yao Qi <yao.qi@linaro.org>
12346
12347 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
12348 to bfd_arch_mep. Don't return 0 if section is not
12349 found. Call print_insn_mep.
12350
12351 2017-01-26 Pedro Alves <palves@redhat.com>
12352 Yao Qi <yao.qi@linaro.org>
12353
12354 * arm-tdep.c: Include "disasm.h".
12355 (gdb_print_insn_arm): Update code to get gdbarch.
12356 * disasm.c (dis_asm_read_memory): Change it to
12357 gdb_disassembler::dis_asm_read_memory.
12358 (dis_asm_memory_error): Likewise.
12359 (dis_asm_print_address): Likewise.
12360 (gdb_pretty_print_insn): Change it to
12361 gdb_disassembler::pretty_print_insn.
12362 (dump_insns): Add one argument gdb_disassemlber. All
12363 callers updated.
12364 (do_mixed_source_and_assembly_deprecated): Likewise.
12365 (do_mixed_source_and_assembly): Likewise.
12366 (do_assembly_only): Likewise.
12367 (gdb_disassembler::gdb_disassembler): New.
12368 (gdb_disassembler::print_insn): New.
12369 * disasm.h (class gdb_disassembler): New.
12370 (gdb_pretty_print_insn): Remove declaration.
12371 (gdb_disassemble_info): Likewise.
12372 * guile/scm-disasm.c (class gdbscm_disassembler): New.
12373 (gdbscm_disasm_read_memory_worker): Update.
12374 (gdbscm_disasm_read_memory): Update.
12375 (gdbscm_disasm_memory_error): Remove.
12376 (gdbscm_disasm_print_address): Remove.
12377 (gdbscm_disassembler::gdbscm_disassembler): New.
12378 (gdbscm_print_insn_from_port): Update.
12379 * mips-tdep.c: Include disasm.h.
12380 (gdb_print_insn_mips): Update code to get gdbarch.
12381 * record-btrace.c (btrace_insn_history): Update.
12382 * spu-tdep.c: Include disasm.h.
12383 (struct spu_dis_asm_data): Remove.
12384 (struct spu_dis_asm_info): New.
12385 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
12386 SPU id.
12387 (gdb_print_insn_spu): Cast disassemble_info to
12388 spu_dis_asm_info.
12389
12390 2017-01-26 Yao Qi <yao.qi@linaro.org>
12391
12392 * disasm.c (do_ui_file_delete): Delete.
12393 (gdb_insn_length): Move code creating stream to ...
12394 * utils.c (null_stream): ... here. New function.
12395 * utils.h (null_stream): Declare.
12396
12397 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12398
12399 * python/py-inferior.c (find_thread_object): Return directly
12400 from the loop. Remove "found" variable.
12401
12402 2017-01-21 Joel Brobecker <brobecker@adacore.com>
12403
12404 GDB 7.12.1 released.
12405
12406 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
12407
12408 * python/py-function.c (fnpy_call): Reorder declarations to have
12409 the gdbpy_enter object declared first.
12410 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
12411
12412 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
12413
12414 PR python/21068
12415 * python/python-internal.h (PyMem_RawMalloc): Define for
12416 Python < 3.4.
12417 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
12418 PyMem_RawMalloc instead of PyMem_Malloc.
12419
12420 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
12421 Luis Machado <lgustavo@codesourcery.com>
12422
12423 * NEWS (New commands): Mention flash-erase.
12424 (New MI commands): Mention target-flash-erase.
12425 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
12426 command.
12427 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
12428 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
12429 * target.c (flash_erase_command): New function.
12430 (initialize_targets): Add new flash-erase command.
12431 * target.h (flash_erase_command): New declaration.
12432
12433 2017-01-20 Joel Brobecker <brobecker@adacore.com>
12434
12435 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
12436 HAVE_SYS_PROCFS_H is defined.
12437
12438 2017-01-18 Alan Hayward <alan.hayward@arm.com>
12439
12440 * remote.c (struct cached_reg): Change data into a pointer.
12441 * (stop_reply_dtr): Free data pointers before deleting vector.
12442 (process_stop_reply): Likewise.
12443 (remote_parse_stop_reply): Allocate space for data
12444
12445 2017-01-18 Alan Hayward <alan.hayward@arm.com>
12446
12447 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
12448 MAX_REGISTER_SIZE.
12449 (amd64_pseudo_register_read_value): Likewise.
12450 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
12451 (store_register_using_P): Likewise.
12452 * regcache.c (regcache_xfer_part): Likewise.
12453
12454 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
12455
12456 Split real and pseudo registers.
12457 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
12458 (sparc32_pseudo_regnum): New enum.
12459 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
12460 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
12461 (SPARC32_CP0_REGISTERS): New macro.
12462 (sparc32_pseudo_register_name): New function.
12463 (sparc32_register_name): Use sparc32_pseudo_register_name.
12464 (sparc32_pseudo_register_type): New function.
12465 (sparc32_register_type): Use sparc32_pseudo_register_type.
12466 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
12467 pseudo register numbers.
12468 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
12469 (SPARC64_CP0_REGISTERS): New macro.
12470 (sparc64_pseudo_register_name): New function.
12471 (sparc64_register_name): Use sparc64_pseudo_register_name.
12472 (sparc64_pseudo_register_type): New function.
12473 (sparc64_register_type): Use sparc64_pseudo_register_type.
12474 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
12475 pseudo register numbers.
12476 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
12477 sparc64_store_arguments): Handle pseudo register numbers.
12478
12479 2017-01-13 Yao Qi <yao.qi@linaro.org>
12480
12481 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
12482 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
12483 output.
12484 (getpkt_or_notif_sane_1): Likewise.
12485
12486 2017-01-13 Yao Qi <yao.qi@linaro.org>
12487
12488 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
12489 of CC. Pass "-x c++-header" instead of "-x c".
12490
12491 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
12492
12493 * remote.c (remote_can_async_p): Update comment.
12494
12495 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
12496
12497 * linux-nat.c (linux_nat_can_async_p): Update comment.
12498
12499 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
12500
12501 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
12502
12503 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
12504
12505 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
12506
12507 2017-01-10 Tom Tromey <tom@tromey.com>
12508
12509 * python/py-type.c (typy_legacy_template_argument): Update.
12510 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
12511 ~demangle_parse_info): Declare new members.
12512 (cp_demangled_name_to_comp): Return unique_ptr.
12513 (cp_demangled_name_parse_free)
12514 (make_cleanup_cp_demangled_name_parse_free)
12515 (cp_new_demangle_parse_info): Remove.
12516 * cp-support.c (do_demangled_name_parse_free_cleanup)
12517 (make_cleanup_cp_demangled_name_parse_free): Remove.
12518 (inspect_type, cp_canonicalize_string_full)
12519 (cp_canonicalize_string): Update.
12520 (mangled_name_to_comp): Change return type.
12521 (cp_class_name_from_physname, method_name_from_physname)
12522 (cp_func_name, cp_remove_params): Update.
12523 * cp-name-parser.y (demangle_parse_info): New constructor, from
12524 cp_new_demangle_parse_info.
12525 (~demangle_parse_info): New destructor, from
12526 cp_demangled_name_parse_free.
12527 (cp_merge_demangle_parse_infos): Update.
12528 (cp_demangled_name_to_comp): Change return type.
12529
12530 2017-01-10 Tom Tromey <tom@tromey.com>
12531
12532 * top.c (prevent_dont_repeat): Change return type.
12533 * python/python.c (execute_gdb_command): Use std::string.
12534 Update.
12535 * guile/guile.c (gdbscm_execute_gdb_command): Update.
12536 * command.h (prevent_dont_repeat): Change return type.
12537 * breakpoint.c (bpstat_do_actions_1): Update.
12538
12539 2017-01-10 Tom Tromey <tom@tromey.com>
12540
12541 * value.h (scoped_value_mark::~scoped_value_mark): Call
12542 free_to_mark.
12543 (scoped_value_mark::free_to_mark): New method.
12544 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
12545 scoped_value_mark.
12546
12547 2017-01-10 Tom Tromey <tom@tromey.com>
12548
12549 * python/py-value.c (valpy_dereference, valpy_referenced_value)
12550 (valpy_reference_value, valpy_const_value, valpy_get_address)
12551 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
12552 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
12553 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
12554 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
12555 scoped_value_mark.
12556 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
12557 * value.h (scoped_value_mark): New class.
12558
12559 2017-01-10 Tom Tromey <tom@tromey.com>
12560
12561 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
12562 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
12563 * psymtab.c (discard_psymtabs_upto): Remove.
12564 (make_cleanup_discard_psymtabs): Remove.
12565 (struct psymtab_state): Remove.
12566
12567 2017-01-10 Tom Tromey <tom@tromey.com>
12568
12569 * record-full.c (record_full_save_cleanups): Remove.
12570 (record_full_save): Use gdb::unlinker.
12571 * gcore.c (do_bfd_delete_cleanup): Remove.
12572 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
12573 cleanups.
12574 * dwarf2read.c (unlink_if_set): Remove.
12575 (write_psymtabs_to_index): Use gdb::unlinker.
12576 * common/gdb_unlinker.h: New file.
12577
12578 2017-01-10 Tom Tromey <tom@tromey.com>
12579
12580 * windows-tdep.c (windows_xfer_shared_library): Update.
12581 * windows-nat.c (windows_make_so): Update.
12582 * utils.h (make_cleanup_bfd_unref): Remove.
12583 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
12584 * symfile.h (symfile_bfd_open)
12585 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
12586 * symfile.c (read_symbols, symbol_file_add)
12587 (separate_debug_file_exists): Update.
12588 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
12589 (generic_load, reread_symbols): Update.
12590 * symfile-mem.c (symbol_file_add_from_memory): Update.
12591 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
12592 (spu_symbol_file_add_from_memory): Update.
12593 * solist.h (struct target_so_ops) <bfd_open>: Return
12594 gdb_bfd_ref_ptr.
12595 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
12596 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
12597 gdb_bfd_ref_ptr.
12598 (solib_map_sections, reload_shared_libraries_1): Update.
12599 * solib-svr4.c (enable_break): Update.
12600 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
12601 * solib-frv.c (enable_break2): Update.
12602 * solib-dsbt.c (enable_break): Update.
12603 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
12604 gdb_bfd_ref_ptr.
12605 (darwin_solib_get_all_image_info_addr_at_init): Update.
12606 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
12607 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
12608 * record-full.c (record_full_save): Update.
12609 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
12610 * procfs.c (insert_dbx_link_bpt_in_file): Update.
12611 * minidebug.c (find_separate_debug_file_in_section): Return
12612 gdb_bfd_ref_ptr.
12613 * machoread.c (macho_add_oso_symfile): Change abfd to
12614 gdb_bfd_ref_ptr.
12615 (macho_symfile_read_all_oso): Update.
12616 (macho_check_dsym): Return gdb_bfd_ref_ptr.
12617 (macho_symfile_read): Update.
12618 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
12619 (jit_bfd_try_read_symtab): Update.
12620 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
12621 (gdb_bfd_openw, gdb_bfd_openr_iovec)
12622 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
12623 gdb_bfd_ref_ptr.
12624 (gdb_bfd_ref_policy): New struct.
12625 (gdb_bfd_ref_ptr): New typedef.
12626 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
12627 (gdb_bfd_openw, gdb_bfd_openr_iovec)
12628 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
12629 gdb_bfd_ref_ptr.
12630 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
12631 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
12632 (gcore_command): Update.
12633 * exec.c (exec_file_attach): Update.
12634 * elfread.c (elf_symfile_read): Update.
12635 * dwarf2read.c (dwarf2_get_dwz_file): Update.
12636 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
12637 (open_and_init_dwo_file): Update.
12638 (open_dwp_file): Return gdb_bfd_ref_ptr.
12639 (open_and_init_dwp_file): Update.
12640 * corelow.c (core_open): Update.
12641 * compile/compile-object-load.c (compile_object_load): Update.
12642 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
12643 * coffread.c (coff_symfile_read): Update.
12644 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
12645 gdb_bfd_ref_ptr. Rename.
12646 (dump_bfd_file, restore_command): Update.
12647 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
12648 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
12649 (find_separate_debug_file_by_buildid): Update.
12650
12651 2017-01-10 Tom Tromey <tom@tromey.com>
12652
12653 * common/gdb_ref_ptr.h: New file.
12654 * python/py-ref.h (struct gdbpy_ref_policy): New.
12655 (gdbpy_ref): Now a typedef.
12656
12657 2017-01-10 Tom Tromey <tom@tromey.com>
12658
12659 * utils.h (make_cleanup_htab_delete): Don't declare.
12660 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
12661 Remove.
12662 * linespec.c (decode_compound_collector): Add constructor,
12663 destructor.
12664 (lookup_prefix_sym): Remove cleanup.
12665 (symtab_collector): Add constructor, destructor.
12666 (collect_symtabs_from_filename): Remove cleanup.
12667 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
12668 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
12669 Use htab_up.
12670 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
12671 * dwarf2read.c (dw2_expand_symtabs_matching)
12672 (dw2_map_symbol_filenames, dwarf_decode_macros)
12673 (write_psymtabs_to_index): Use htab_up.
12674 * dwarf2loc.c (func_verify_no_selftailcall)
12675 (call_site_find_chain_1, func_verify_no_selftailcall)
12676 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
12677 std::vector, gdb::unique_xmalloc_ptr.
12678 (call_sitep): Remove typedef.
12679 (dwarf2_locexpr_baton_eval): Remove unused variable.
12680
12681 2017-01-10 Tom Tromey <tom@tromey.com>
12682
12683 * python/python-internal.h (make_cleanup_py_decref)
12684 (make_cleanup_py_xdecref): Don't declare.
12685 * python/py-utils.c (py_decref, make_cleanup_py_decref)
12686 (py_xdecref, make_cleanup_py_xdecref): Remove.
12687
12688 2017-01-10 Tom Tromey <tom@tromey.com>
12689
12690 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
12691 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
12692
12693 2017-01-10 Tom Tromey <tom@tromey.com>
12694
12695 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
12696
12697 2017-01-10 Tom Tromey <tom@tromey.com>
12698
12699 * python/py-utils.c (unicode_to_encoded_string)
12700 (python_string_to_target_string)
12701 (python_string_to_target_python_string)
12702 (python_string_to_host_string, gdbpy_obj_to_string)
12703 (get_addr_from_python): Use gdbpy_ref.
12704
12705 2017-01-10 Tom Tromey <tom@tromey.com>
12706
12707 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
12708 gdbpy_ref.
12709
12710 2017-01-10 Tom Tromey <tom@tromey.com>
12711
12712 * python/python.c (eval_python_command, gdbpy_decode_line)
12713 (gdbpy_run_events, gdbpy_start_type_printers)
12714 (gdbpy_apply_type_printers): Use gdbpy_ref.
12715
12716 2017-01-10 Tom Tromey <tom@tromey.com>
12717
12718 * python/py-param.c (get_doc_string, compute_enum_values): Use
12719 gdbpy_ref.
12720
12721 2017-01-10 Tom Tromey <tom@tromey.com>
12722
12723 * python/py-inferior.c (find_thread_object, build_inferior_list):
12724 Use gdbpy_ref.
12725
12726 2017-01-10 Tom Tromey <tom@tromey.com>
12727
12728 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
12729
12730 2017-01-10 Tom Tromey <tom@tromey.com>
12731
12732 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
12733 gdbpy_ref.
12734
12735 2017-01-10 Tom Tromey <tom@tromey.com>
12736
12737 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
12738 extra incref.
12739 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
12740 Use gdbpy_ref.
12741
12742 2017-01-10 Tom Tromey <tom@tromey.com>
12743
12744 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
12745 gdbpy_ref.
12746
12747 2017-01-10 Tom Tromey <tom@tromey.com>
12748
12749 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
12750 decref results of PyArg_ParseTupleAndKeywords.
12751
12752 2017-01-10 Tom Tromey <tom@tromey.com>
12753
12754 * python/python.c (python_run_simple_file): Use
12755 unique_xmalloc_ptr, gdbpy_ref.
12756
12757 2017-01-10 Tom Tromey <tom@tromey.com>
12758
12759 * python/py-prettyprint.c (print_stack_unless_memory_error)
12760 (print_string_repr, print_children): Use gdbpy_ref.
12761 (dummy_python_frame): New class.
12762 (dummy_python_frame::dummy_python_frame): Rename from
12763 push_dummy_python_frame.
12764 (py_restore_tstate): Remove.
12765
12766 2017-01-10 Tom Tromey <tom@tromey.com>
12767
12768 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
12769
12770 2017-01-10 Tom Tromey <tom@tromey.com>
12771
12772 * python/python.c (ensure_python_env, restore_python_env):
12773 Remove.
12774 * python/python-internal.h (ensure_python_env): Don't declare.
12775 * varobj.h (varobj_ensure_python_env): Don't declare.
12776 * varobj.c (varobj_ensure_python_env): Remove.
12777
12778 2017-01-10 Tom Tromey <tom@tromey.com>
12779
12780 * varobj.c (varobj_value_get_print_value): Use
12781 gdbpy_enter_varobj.
12782
12783 2017-01-10 Tom Tromey <tom@tromey.com>
12784
12785 * python/py-prettyprint.c (print_string_repr, print_children):
12786 Update.
12787 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
12788 of "encoding".
12789 * varobj.c (varobj_value_get_print_value): Update.
12790 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
12791
12792 2017-01-10 Tom Tromey <tom@tromey.com>
12793
12794 * varobj.c (varobj_get_display_hint)
12795 (dynamic_varobj_has_child_method, install_new_value_visualizer)
12796 (varobj_set_visualizer, free_variable): Use
12797 gdbpy_enter_varobj.
12798
12799 2017-01-10 Tom Tromey <tom@tromey.com>
12800
12801 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
12802 (do_finish_initialization): New function. Use gdbpy_ref.
12803 (gdbpy_finish_initialization): Use gdbpy_enter. Call
12804 do_finish_initialization.
12805
12806 2017-01-10 Tom Tromey <tom@tromey.com>
12807
12808 * python/py-param.c (get_set_value, get_show_value): Use
12809 gdbpy_enter, gdbpy_ref.
12810
12811 2017-01-10 Tom Tromey <tom@tromey.com>
12812
12813 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
12814
12815 2017-01-10 Tom Tromey <tom@tromey.com>
12816
12817 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
12818
12819 2017-01-10 Tom Tromey <tom@tromey.com>
12820
12821 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
12822 Use gdbpy_enter_varobj.
12823
12824 2017-01-10 Tom Tromey <tom@tromey.com>
12825
12826 * varobj.c (gdbpy_enter_varobj): New constructor.
12827 * python/python-internal.h (gdbpy_enter_varobj): New class.
12828 * python/py-varobj.c (py_varobj_get_iterator): Use
12829 gdbpy_enter_varobj.
12830
12831 2017-01-10 Tom Tromey <tom@tromey.com>
12832
12833 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
12834 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
12835 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
12836 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
12837 unique_xmalloc_ptr.
12838 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
12839
12840 2017-01-10 Tom Tromey <tom@tromey.com>
12841
12842 * python/py-xmethods.c (invoke_match_method): Use
12843 gdbpy_ref.
12844
12845 2017-01-10 Tom Tromey <tom@tromey.com>
12846
12847 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
12848 gdbpy_enter, gdbpy_ref.
12849
12850 2017-01-10 Tom Tromey <tom@tromey.com>
12851
12852 * python/python.c (python_interactive_command): Use gdbpy_enter.
12853
12854 2017-01-10 Tom Tromey <tom@tromey.com>
12855
12856 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
12857 gdbpy_ref.
12858
12859 2017-01-10 Tom Tromey <tom@tromey.com>
12860
12861 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
12862 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
12863
12864 2017-01-10 Tom Tromey <tom@tromey.com>
12865
12866 * utils.h (htab_deleter): New struct.
12867 (htab_up): New typedef.
12868 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
12869 gdbpy_enter, gdbpy_ref, htab_up.
12870
12871 2017-01-10 Tom Tromey <tom@tromey.com>
12872
12873 * python/py-unwind.c (pending_frame_invalidate): Remove.
12874 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
12875
12876 2017-01-10 Tom Tromey <tom@tromey.com>
12877
12878 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
12879 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
12880
12881 2017-01-10 Tom Tromey <tom@tromey.com>
12882
12883 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
12884
12885 2017-01-10 Tom Tromey <tom@tromey.com>
12886
12887 * python/python.c (gdbpy_eval_from_control_command)
12888 (gdbpy_source_script, gdbpy_run_events)
12889 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
12890 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
12891 gdbpy_enter.
12892
12893 2017-01-10 Tom Tromey <tom@tromey.com>
12894
12895 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
12896
12897 2017-01-10 Tom Tromey <tom@tromey.com>
12898
12899 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
12900
12901 2017-01-10 Tom Tromey <tom@tromey.com>
12902
12903 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
12904 (python_on_inferior_call_pre, python_on_inferior_call_post)
12905 (python_on_memory_change, python_on_register_change)
12906 (python_inferior_exit, python_new_objfile, add_thread_object)
12907 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
12908
12909 2017-01-10 Tom Tromey <tom@tromey.com>
12910
12911 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
12912 (bpfinishpy_handle_exit): Use gdbpy_enter.
12913
12914 2017-01-10 Tom Tromey <tom@tromey.com>
12915
12916 * python/py-cmd.c (cmdpy_destroyer)
12917 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
12918 gdbpy_enter.
12919
12920 2017-01-10 Tom Tromey <tom@tromey.com>
12921
12922 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
12923 gdbpy_enter.
12924 (gdbpy_breakpoint_has_cond): Likewise.
12925
12926 2017-01-10 Tom Tromey <tom@tromey.com>
12927
12928 * python/python.c (gdbpy_enter): New constructor.
12929 (~gdbpy_enter): New destructor.
12930 (restore_python_env, ensure_python_env): Rewrite.
12931 * python/python-internal.h (gdbpy_enter): New class.
12932
12933 2017-01-10 Tom Tromey <tom@tromey.com>
12934
12935 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
12936
12937 2017-01-10 Tom Tromey <tom@tromey.com>
12938
12939 * python/py-value.c (value_has_field, get_field_flag)
12940 (get_field_type, valpy_getitem, convert_value_from_python): Use
12941 gdbpy_ref.
12942
12943 2017-01-10 Tom Tromey <tom@tromey.com>
12944
12945 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
12946 gdbpy_ref.
12947
12948 2017-01-10 Tom Tromey <tom@tromey.com>
12949
12950 * python/py-prettyprint.c (search_pp_list)
12951 (find_pretty_printer_from_objfiles)
12952 (find_pretty_printer_from_progspace)
12953 (find_pretty_printer_from_gdb, find_pretty_printer)
12954 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
12955 gdbpy_ref.
12956
12957 2017-01-10 Tom Tromey <tom@tromey.com>
12958
12959 * python/py-param.c (call_doc_function): Use gdbpy_ref.
12960
12961 2017-01-10 Tom Tromey <tom@tromey.com>
12962
12963 * python/py-linetable.c (build_line_table_tuple_from_pcs)
12964 (ltpy_get_all_source_lines): Use gdbpy_ref.
12965
12966 2017-01-10 Tom Tromey <tom@tromey.com>
12967
12968 * python/py-framefilter.c (extract_sym, extract_value)
12969 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
12970 gdbpy_ref.
12971
12972 2017-01-10 Tom Tromey <tom@tromey.com>
12973
12974 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
12975
12976 2017-01-10 Tom Tromey <tom@tromey.com>
12977
12978 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
12979
12980 2017-01-10 Tom Tromey <tom@tromey.com>
12981
12982 * python/py-function.c (convert_values_to_python, fnpy_init): Use
12983 gdbpy_ref.
12984
12985 2017-01-10 Tom Tromey <tom@tromey.com>
12986
12987 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
12988
12989 2017-01-10 Tom Tromey <tom@tromey.com>
12990
12991 * python/py-type.c (convert_field, make_fielditem, typy_fields)
12992 (typy_range): Use gdbpy_ref.
12993
12994 2017-01-10 Tom Tromey <tom@tromey.com>
12995
12996 * python/py-threadevent.c (create_thread_event_object): Use
12997 gdbpy_ref.
12998 * python/py-stopevent.c (create_stop_event_object): Simplify.
12999 (emit_stop_event): Use gdbpy_ref.
13000 * python/py-signalevent.c (create_signal_event_object): Use
13001 gdbpy_ref.
13002 * python/py-newobjfileevent.c (create_new_objfile_event_object)
13003 (emit_new_objfile_event, create_clear_objfiles_event_object)
13004 (emit_clear_objfiles_event): Use gdbpy_ref.
13005 * python/py-infevents.c (create_inferior_call_event_object)
13006 (create_register_changed_event_object)
13007 (create_memory_changed_event_object, emit_inferior_call_event)
13008 (emit_memory_changed_event, emit_register_changed_event): Use
13009 gdbpy_ref.
13010 * python/py-exitedevent.c (create_exited_event_object)
13011 (emit_exited_event): Use gdbpy_ref.
13012 * python/py-event.h (evpy_emit_event): Remove
13013 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
13014 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
13015 * python/py-continueevent.c (emit_continue_event): Use
13016 gdbpy_ref.
13017 * python/py-breakpoint.c (gdbpy_breakpoint_created)
13018 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
13019 gdbpy_ref.
13020 * python/py-bpevent.c (create_breakpoint_event_object): Use
13021 gdbpy_ref.
13022
13023 2017-01-10 Tom Tromey <tom@tromey.com>
13024
13025 * python/py-ref.h: New file.
13026
13027 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
13028
13029 * cli-out.c (cli_ui_out::do_redirect): Change return type to
13030 void.
13031 * cli-out.h (cli_ui_out::do_redirect): Likewise.
13032 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
13033 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
13034 * ui-out.c (ui_out::redirect): Likewise.
13035 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
13036 * cli/cli-logging.c (set_logging_redirect): Update call site of
13037 ui_out::redirect.
13038 (handle_redirections): Likewise.
13039 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
13040 * top.c (execute_command_to_string): Likewise.
13041 * utils.c (do_ui_out_redirect_pop): Likewise.
13042
13043 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
13044
13045 * stack.c (_initialize_stack): Update "frame" command help message.
13046
13047 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
13048
13049 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
13050
13051 2017-01-06 Yao Qi <yao.qi@linaro.org>
13052
13053 * x86-linux-nat.h: Include gdb_proc_service.h.
13054
13055 2017-01-06 Yao Qi <yao.qi@linaro.org>
13056
13057 * ser-base.h: Include serial.h.
13058
13059 2017-01-06 Yao Qi <yao.qi@linaro.org>
13060
13061 * ppc-linux-tdep.h: Include ppc-tdep.h.
13062
13063 2017-01-06 Yao Qi <yao.qi@linaro.org>
13064
13065 * nat/amd64-linux-siginfo.h: Include signal.h.
13066
13067 2017-01-06 Yao Qi <yao.qi@linaro.org>
13068
13069 * nat/aarch64-linux-hw-point.h: Include break-common.h.
13070
13071 2017-01-06 Yao Qi <yao.qi@linaro.org>
13072
13073 * mi/mi-parse.h: Include mi-cmds.h.
13074
13075 2017-01-06 Yao Qi <yao.qi@linaro.org>
13076
13077 * inf-loop.c: Don't include "target.h".
13078 * inf-loop.h: Include it here.
13079
13080 2017-01-06 Yao Qi <yao.qi@linaro.org>
13081
13082 * dfp.h: Include "dboulest.h" and "expression.h".
13083
13084 2017-01-06 Yao Qi <yao.qi@linaro.org>
13085
13086 * ax-gdb.h: Include "ax.h".
13087
13088 2017-01-06 Yao Qi <yao.qi@linaro.org>
13089
13090 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
13091 with nat/gdb_ptrace.h.
13092
13093 2017-01-05 Yao Qi <yao.qi@linaro.org>
13094
13095 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
13096 new line.
13097 (mips64_fbsd_sigframe_init): Likewise.
13098
13099 2017-01-04 John Baldwin <jhb@FreeBSD.org>
13100
13101 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
13102 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
13103
13104 2017-01-04 John Baldwin <jhb@FreeBSD.org>
13105
13106 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
13107 * NEWS: Mention new FreeBSD/mips native configuration.
13108 * config/mips/fbsd.mh: New file.
13109 * configure.host: Add mips*-*-freebsd*.
13110 * mips-fbsd-nat.c: New file.
13111
13112 2017-01-04 John Baldwin <jhb@FreeBSD.org>
13113
13114 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
13115 (ALLDEPFILES): Add mips-fbsd-tdep.c.
13116 * NEWS: Mention new FreeBSD/mips target.
13117 * configure.tgt: Add mips*-*-freebsd*.
13118 * mips-fbsd-tdep.c: New file.
13119 * mips-fbsd-tdep.h: New file.
13120
13121 2017-01-04 Yao Qi <yao.qi@linaro.org>
13122
13123 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
13124 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
13125
13126 2017-01-01 Joel Brobecker <brobecker@adacore.com>
13127
13128 Update copyright year range in all GDB files.
13129
13130 2017-01-01 Joel Brobecker <brobecker@adacore.com>
13131
13132 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
13133
13134 For older changes see ChangeLog-2016.
13135 \f
13136 Local Variables:
13137 mode: change-log
13138 left-margin: 8
13139 fill-column: 74
13140 version-control: never
13141 coding: utf-8
13142 End:
This page took 0.308788 seconds and 4 git commands to generate.