lwp_info: Make the arch code free arch_lwp_info
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
2
3 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
4 * linux-nat.c (linux_nat_delete_thread): New variable.
5 (lwp_free): Invoke linux_nat_delete_thread if set.
6 (linux_nat_set_delete_thread): New function.
7 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
8 thread delete callback.
9 * arm-linux-nat.c (arm_linux_delete_thread): New function.
10 (_initialize_arm_linux_nat): Assign thread delete callback.
11 * s390-linux-nat.c (s390_delete_thread): New function.
12 (_initialize_s390_nat): Assign thread delete callback.
13 * x86-linux-nat.c (x86_linux_add_target): Likewise.
14 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
15 function.
16 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
17 declaration.
18 * nat/x86-linux.c (x86_linux_delete_thread): New function.
19 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
20
21 2017-10-09 Tom Tromey <tom@tromey.com>
22
23 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
24 std::string.
25 * tui/tui-layout.c (enum tui_status): Use std::string.
26
27 2017-10-11 Tom Tromey <tom@tromey.com>
28
29 * gdbthread.h (thread_command): Constify.
30 * inferior.h (detach_command): Constify.
31 * top.h (set_history, show_history): Constify.
32 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
33 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
34 * bsd-kvm.c (bsd_kvm_cmd): Constify.
35 * printcmd.c (set_command): Constify.
36 (non_const_set_command): New function.
37 * dcache.c (set_dcache_command, show_dcache_command): Constify.
38 * breakpoint.c (enable_command, disable_command, delete_command)
39 (catch_command, tcatch_command, set_breakpoint_cmd)
40 (show_breakpoint_cmd): Constify.
41 * macrocmd.c (macro_command): Constify.
42 * infcmd.c (unset_command, kill_command, detach_command)
43 (info_proc_cmd): Constify.
44 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
45 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
46 (info_auto_load_cmd): Constify.
47 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
48 (unset_tdesc_cmd): Constify.
49 * ada-lang.c (set_ada_command, show_ada_command)
50 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
51 * guile/guile.c (set_guile_command, show_guile_command)
52 (info_guile_command): Constify.
53 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
54 Constify.
55 * skip.c (skip_command): Constify.
56 * compile/compile.c (_initialize_compile): Constify.
57 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
58 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
59 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
60 (maint_btrace_pt_show_cmd): Constify.
61 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
62 Constify.
63 * python/python.c (user_show_python, user_set_python): Constify.
64 * mips-tdep.c (set_mips_command, show_mips_command)
65 (set_mipsfpu_command): Constify.
66 * record-btrace.c (cmd_record_btrace_start)
67 (cmd_set_record_btrace, cmd_show_record_btrace)
68 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
69 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
70 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
71 Constify.
72 * symfile.c (overlay_command): Constify.
73 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
74 * cli/cli-logging.c (set_logging_command, show_logging_command):
75 Constify.
76 * cli/cli-dump.c (dump_command, append_command)
77 (srec_dump_command, ihex_dump_command, verilog_dump_command)
78 (tekhex_dump_command, binary_dump_command)
79 (binary_append_command): Constify.
80 * cli/cli-decode.c (struct cmd_list_element): Change type of
81 "fun".
82 * cli/cli-cmds.c (info_command, show_command, set_debug)
83 (show_debug): Constify.
84 (show_command): Add non-const overload.
85 * top.c (set_history, show_history): Constify.
86 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
87 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
88 * target.c (target_command): Constify.
89 * sparc64-tdep.c (info_adi_command): Constify.
90 * record-full.c (cmd_record_full_start): Constify.
91 (set_record_full_command): Constify. Fix typo.
92 (show_record_full_command): Constify.
93 * thread.c (thread_command, thread_apply_command): Constify.
94 * memattr.c (dummy_cmd): Constify.
95 * value.c (function_command): Constify.
96 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
97 * probe.c (info_probes_command): Constify.
98 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
99 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
100 (show_thread_cmd, set_thread_default_cmd)
101 (show_thread_default_cmd): Constify.
102 (check_empty): Constify.
103 * tracepoint.c (tfind_command): Constify.
104 * cp-support.c (maint_cplus_command): Constify.
105 * windows-tdep.c (info_w32_command): Constify.
106 * record.c (cmd_record_start, set_record_command)
107 (show_record_command, info_record_command, cmd_record_goto):
108 Constify.
109 * ravenscar-thread.c (set_ravenscar_command)
110 (show_ravenscar_command): Constify.
111 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
112 Constify.
113 (add_internal_problem_command): Remove casts.
114 * arc-tdep.c (maintenance_print_arc_command): Constify.
115 * valprint.c (set_print, show_print, set_print_raw)
116 (show_print_raw): Constify.
117 * maint.c (maintenance_command, maintenance_info_command)
118 (maintenance_print_command, maintenance_set_cmd)
119 (maintenance_show_cmd, set_per_command_cmd)
120 (show_per_command_cmd, maintenance_check_command): Constify.
121 * language.c (set_check, show_check): Constify.
122 * typeprint.c (show_print_type, set_print_type): Constify.
123 * go32-nat.c (go32_info_dos_command): Constify.
124
125 2017-10-11 Tom Tromey <tom@tromey.com>
126
127 * breakpoint.c (prepare_re_set_context): Remove.
128 (breakpoint_re_set_one): Update. Don't use cleanups.
129 (breakpoint_re_set): Use scoped_restore, std::string, and
130 scoped_restore_current_language.
131
132 2017-10-11 Tom Tromey <tom@tromey.com>
133
134 * breakpoint.c (commands_command_1): Use std::string.
135 (cleanup_executing_breakpoints): Remove.
136 (bpstat_do_actions_1): Use scoped_restore.
137 (bpstat_check_watchpoint): Use std::string.
138 (decode_static_tracepoint_spec): Likewise.
139 (break_range_command): Likewise.
140 (watch_command_1): Likewise.
141 (compare_breakpoints): Change argument types.
142 (clear_command): Use std::vector.
143 (cleanup_executing_breakpoints): Remove.
144 (update_global_location_list): Use unique_xmalloc_ptr.
145 (strace_command): Remove unused declaration.
146
147 2017-10-11 John Baldwin <jhb@FreeBSD.org>
148
149 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
150 * NEWS: Mention new FreeBSD/arm native configuration.
151 * configure.host: Add arm*-*-freebsd*.
152 * configure.nat: Likewise.
153 * arm-fbsd-nat.c: New file.
154
155 2017-10-11 John Baldwin <jhb@FreeBSD.org>
156
157 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
158 (ALLDEPFILES): Add arm-fbsd-tdep.c.
159 * NEWS: Mention new FreeBSD/arm target.
160 * configure.tgt: Add arm*-*-freebsd*.
161 * arm-fbsd-tdep.c: New file.
162 * arm-fbsd-tdep.h: New file.
163
164 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
165
166 * linux-tdep.c (linux_make_corefile_notes): Remove call to
167 `gdbarch_elfcore_write_linux_prpsinfo'.
168 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
169 method.
170 (elf_internal_linux_prpsinfo): Remove declaration.
171 * gdbarch.h: Regenerate.
172 * gdbarch.c: Regenerate.
173
174 2017-10-11 Maciej W. Rozycki <macro@imgtec.com>
175
176 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
177 `set_gdbarch_elfcore_write_linux_prpsinfo'.
178
179 2017-10-11 Pedro Alves <palves@redhat.com>
180
181 * breakpoint.c (reattach_breakpoints): Delete.
182 * breakpoint.h (reattach_breakpoints): Delete.
183
184 2017-10-11 Simon Marchi <simon.marchi@ericsson.com>
185
186 * symfile.c (registered_sym_fns): Make struct, not typedef.
187 (DEF_VEC_O (registered_sym_fns)): Remove.
188 (symtab_fns): Change type to std::vector.
189 (add_symtab_fns): Adjust.
190 (find_sym_fns): Adjust.
191
192 2017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
193
194 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
195 * arc-tdep.h (arc_arch_is_em): New function.
196 (arc_arch_is_hs): Likewise.
197
198 2017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
199
200 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
201 parentheses in the declaration.
202 (macro_lookup_inclusion): Likewise.
203 (macro_lookup_definition): Likewise.
204 * p-lang.h (pascal_builtin_types): Likewise.
205 * tui/tui-data.c (tui_win_list): Likewise.
206 * tui/tui-data.h (tui_win_list): Likewise.
207 * utils.h (make_cleanup_free_section_addr_info): Likewise.
208
209 2017-10-11 Mark Rages <markrages@gmail.com>
210
211 * target-memory.c (block_boundaries): Fix for block address not
212 aligned on block size.
213
214 2017-10-10 Pedro Alves <palves@redhat.com>
215 Tom Tromey <tom@tromey.com>
216
217 * breakpoint.c (struct captured_breakpoint_query_args)
218 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
219 (print_breakpoint): New.
220 * breakpoint.h (print_breakpoint): Declare.
221 * common/common-exceptions.h (enum return_reason): Remove
222 references to catch_exceptions.
223 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
224 Delete.
225 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
226 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
227 * gdb.h: Delete.
228 * gdbthread.h (thread_select): Declare.
229 * mi/mi-cmd-break.c: Don't include gdb.h.
230 (breakpoint_notify): Use print_breakpoint.
231 * mi/mi-cmd-catch.c: Don't include gdb.h.
232 * mi/mi-interp.c: Don't include gdb.h.
233 (mi_print_breakpoint_for_event): New.
234 (mi_breakpoint_created, mi_breakpoint_modified): Use
235 mi_print_breakpoint_for_event.
236 * mi/mi-main.c: Don't include gdb.h.
237 (mi_cmd_thread_select): Parse the global thread ID here. Use
238 thread_select instead of gdb_thread_select.
239 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
240 of using gdb_list_thread_ids.
241 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
242 FILEIO_ENOSYS here.
243 (remote_fileio_request): Use TRY/CATCH instead of
244 catch_exceptions.
245 * symfile-mem.c (struct symbol_file_add_from_memory_args)
246 (symbol_file_add_from_memory_wrapper): Delete.
247 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
248 * thread.c: Don't include gdb.h.
249 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
250 (thread_alive): Use thread_select.
251 (do_captured_thread_select): Delete, parts salvaged as ...
252 (thread_select): ... this new function.
253 (gdb_thread_select): Delete.
254
255 2017-10-10 Pedro Alves <palves@redhat.com>
256 Tom Tromey <tom@tromey.com>
257
258 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
259 and reverse logic.
260 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
261 No longer macros. Instead ...
262 (enum wp_check_result): They're now values of this new
263 enumeration.
264 (watchpoint_check): Change return type to wp_check_result and
265 parameter type to bpstat.
266 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
267 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
268 catch_errors. Reverse logic of watchpoint_check call.
269 (breakpoint_re_set_one): Now returns void and takes a breakpoint
270 pointer as parameter.
271 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
272 * common/common-exceptions.c (throw_exception_sjlj): Update
273 comments to avoid mentioning catch_errors.
274 * exceptions.c (catch_errors): Delete.
275 * exceptions.h: Update comments to avoid mentioning catch_errors.
276 (catch_errors_ftype, catch_errors): Delete.
277 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
278 (hook_stop_stub): Delete.
279 (restore_selected_frame): Change return type to void, and
280 parameter type to const frame_id &.
281 (restore_infcall_control_state): Use TRY/CATCH instead of
282 catch_errors.
283 * main.c (captured_command_loop): Return void and remove
284 parameter. Remove references to catch_errors.
285 (captured_main): Use TRY/CATCH instead of catch_errors.
286 * objc-lang.c (objc_submethod_helper_data)
287 (find_objc_msgcall_submethod_helper): Delete.
288 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
289 catch_errors.
290 * record-full.c (record_full_message): Return void.
291 (record_full_message_args, record_full_message_wrapper): Delete.
292 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
293 instead of catch_errors.
294 * solib-aix.c (solib_aix_open_symbol_file_object): Change
295 parameter type to int.
296 * solib-darwin.c (open_symbol_file_object): Ditto.
297 * solib-dsbt.c (open_symbol_file_object): Ditto.
298 * solib-frv.c (open_symbol_file_object): Ditto.
299 * solib-svr4.c (open_symbol_file_object): Ditto.
300 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
301 * solib.c (update_solib_list): Use TRY/CATCH instead of
302 catch_errors.
303 * solist.h (struct target_so_ops) <open_symbol_file_object>:
304 Change type.
305 * symmisc.c (struct print_symbol_args): Remove.
306 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
307 (print_symbol): Change type.
308 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
309 and remove parameters.
310 (catch_errors): New.
311 (get_windows_debug_event): Adjust.
312
313 2017-10-09 Tom Tromey <tom@tromey.com>
314
315 * mi/mi-main.c (free_splay_tree): Remove.
316 (list_available_thread_groups): Use splay_tree_up.
317 * common/gdb_splay_tree.h: New file.
318
319 2017-10-09 Tom Tromey <tom@tromey.com>
320
321 * mi/mi-main.c (do_nothing): Remove.
322 (list_available_thread_groups): Update.
323
324 2017-10-09 Pedro Alves <palves@redhat.com>
325
326 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
327 reading registers when switching context.
328
329 2017-10-09 John Baldwin <jhb@FreeBSD.org>
330
331 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
332 (fbsd_convert_siginfo): Likewise.
333 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
334
335 2017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
336
337 * configure.ac (try_guile_versions): Remove guile-2.2.
338 * configure: Regenerate.
339
340 2017-10-09 Tom Tromey <tom@tromey.com>
341
342 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
343 (COMPILE.pre): Use $(CXX).
344
345 2017-10-09 Pedro Alves <palves@redhat.com>
346
347 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
348 Use bool.
349 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
350 * cp-support.h (cp_remove_params): Now returns a
351 gdb::unique_xmalloc_ptr.
352 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
353 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
354 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
355 returning a gdb::unique_xmalloc_ptr.
356 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
357 * stack.c (find_frame_funname): Adjust to cp_remove_params
358 returning a gdb::unique_xmalloc_ptr.
359
360 2017-10-08 Tom Tromey <tom@tromey.com>
361
362 * dwarf2read.c (dwarf2_get_dwz_file): Use
363 gdb::unique_xmalloc_ptr.
364 (find_slot_in_mapped_hash): Likewise.
365 (dwarf2_physname): Likewise.
366 (create_dwo_unit_in_dwp_v1): Use std::string.
367 (create_dwo_unit_in_dwp_v2): Likewise.
368 (lookup_dwo_cutu): Likewise.
369 (inherit_abstract_dies): Use std::vector.
370 (read_array_type): Likewise.
371 (dwarf_decode_macros): Remove unused declaration.
372 (unsigned_int_compar): Remove.
373 (dwarf2_build_psymtabs_hard): Use scoped_restore.
374 (psymtabs_addrmap_cleanup): Remove.
375
376 2017-10-08 Tom Tromey <tom@tromey.com>
377
378 * frame-unwind.c (frame_unwind_try_unwinder): Update.
379 * frame.h (frame_cleanup_after_sniffer): Declare.
380 (frame_prepare_for_sniffer): Return void.
381 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
382 type of argument.
383 (frame_prepare_for_sniffer): Return void.
384
385 2017-10-08 Tom Tromey <tom@tromey.com>
386
387 * utils.h (make_cleanup_value_free): Remove.
388 * utils.c (do_value_free, struct cleanup): Remove.
389 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
390 Use gdb_value_up.
391 * value.h (struct value_deleter): New.
392 (gdb_value_up): New typedef.
393
394 2017-10-08 Tom Tromey <tom@tromey.com>
395
396 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
397 (make_cleanup_free_search_symbols): Remove.
398 (search_symbols): Return std::vector.
399 (symbol_search::compare_search_syms): Now member of
400 symbol_search. Change arguments.
401 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
402 (symtab_symbol_info, rbreak_command): Update.
403 * symtab.h (struct symbol_search) <next>: Remove.
404 Add constructors.
405 (symbol_search::operator<): New function.
406 (symbol_search::operator==): New function.
407 (search_symbols): Remove std::vector.
408 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
409 (symbol_search::compare_search_syms): Declare.
410
411 2017-10-06 Yao Qi <yao.qi@linaro.org>
412
413 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
414 arch/aarch64-insn.o.
415 Remove one rule.
416 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
417
418 2017-10-06 Yao Qi <yao.qi@linaro.org>
419
420 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
421 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
422 arch/arm-linux.o respectively.
423 * configure.tgt: Likewise.
424
425 2017-10-06 Yao Qi <yao.qi@linaro.org>
426
427 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
428 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
429
430 2017-10-06 Pedro Alves <palves@redhat.com>
431
432 * windows-nat.c: Include <algorithm>.
433
434 2017-10-06 Yao Qi <yao.qi@linaro.org>
435
436 * configure.tgt (i386_tobjs): New variable.
437 (amd64_tobjs): New variable.
438 Set $cpu_obs and $os_obs.
439
440 2017-10-06 Yao Qi <yao.qi@linaro.org>
441
442 * Makefile.in (CONFIG_SRC_SUBDIR): New.
443 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
444 (clean): Remove object files and dependency files.
445 (distclean): Remove the directory.
446 * configure.ac: Invoke AC_CONFIG_COMMANDS.
447 * configure: Re-generated.
448 * configure.tgt: Replace amd64.o with arch/amd64.o.
449
450 2017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
451
452 PR build/22188
453 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
454 and SETEND.
455
456 2017-10-05 Pedro Alves <palves@redhat.com>
457
458 * linux-nat.c (linux_child_follow_fork): When following the parent
459 and detaching the child, consult the parent thread's architecture
460 instead of the child's.
461
462 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
463
464 * ax.h: Do not include "doublest.h".
465 (union agent_val): Remove.
466
467 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
468
469 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
470 (decimal_to_string): Return std::string object.
471 (decimal_from_string): Accept std::string object. Return bool.
472 (decimal_from_integral, decimal_from_doublest): Remove.
473 (decimal_from_longest): Add prototype.
474 (decimal_from_ulongest): Likewise.
475 (decimal_to_longest): Likewise.
476 (decimal_from_doublest): Likewise.
477 * dfp.c: Do not include "gdbtypes.h" or "value.h".
478 (MAX_DECIMAL_STRING): Move here.
479 (decimal_to_string): Return std::string object.
480 (decimal_from_string): Accept std::string object. Return bool.
481 (decimal_from_integral): Remove, replace by ...
482 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
483 (decimal_to_longest): New function.
484 (decimal_from_floating): Remove, replace by ...
485 (decimal_from_doublest): ... this new function.
486 (decimal_to_doublest): Update to new decimal_to_string interface.
487
488 * value.c (unpack_long): Use decimal_to_longest.
489 * valops.c (value_cast): Use decimal_from_doublest instead of
490 decimal_from_floating. Use decimal_from_[u]longest isntead of
491 decimal_from_integral.
492 * valarith.c (value_args_as_decimal): Likewise.
493 * valprint.c (print_decimal_floating): Update to new
494 decimal_to_string interface.
495 * printcmd.c (printf_decfloat): Likewise.
496 * c-exp.y (parse_number): Update to new decimal_from_string interface.
497
498 2017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
499
500 * doublest.h: Do not include "floatformat.h". Remove stale comments.
501 * gdbtypes.c: Include "floatformat.h".
502 * value.c: Likewise.
503 * m68k-tdep.c: Likewise.
504
505 * findvar.c: Do not include "floatformat.h".
506 * amd64-darwin-tdep.c: Likewise.
507 * arm-linux-tdep.c: Likewise.
508 * i386-darwin-tdep.c: Likewise.
509 * i387-tdep.c: Likewise.
510 * m68k-linux-tdep.c: Likewise.
511 * mep-tdep.c: Likewise.
512 * mips-tdep.c: Likewise.
513 * nios2-tdep.c: Likewise.
514 * s390-linux-tdep.c: Likewise.
515 * sparc-obsd-tdep.c: Likewise.
516 * sparc-tdep.c: Likewise.
517 * sparc64-tdep.c: Likewise.
518 * spu-tdep.c: Likewise.
519 * tic6x-tdep.c: Likewise.
520 * tilegx-tdep.c: Likewise.
521 * vax-tdep.c: Likewise.
522 * xstormy16-tdep.c: Likewise.
523 * xtensa-tdep.c: Likewise.
524
525 * top.c: Do not include "doublest.h".
526 * aarch64-tdep.c: Likewise.
527 * alpha-tdep.c: Likewise.
528 * arm-linux-tdep.c: Likewise.
529 * m68k-linux-tdep.c: Likewise.
530 * tilegx-tdep.c: Likewise.
531 * xstormy16-tdep.c: Likewise.
532
533 2017-10-05 John Baldwin <jhb@FreeBSD.org>
534
535 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
536 (mipsn32_fbsd_sigframe): Define.
537 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
538 for FreeBSD/mipsn32.
539
540 2017-10-05 John Baldwin <jhb@FreeBSD.org>
541
542 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
543 AT_HWCAP.
544
545 2017-10-05 Tristan Gingold <tgingold@free.fr>
546
547 * MAINTAINERS (Misc): Update my email address.
548
549 2017-10-04 Pedro Alves <palves@redhat.com>
550
551 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
552 it instead of target_gdbarch.
553 (get_remote_state, get_remote_packet_size): Adjust
554 get_remote_arch_state calls, passing down target_gdbarch
555 explicitly.
556 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
557 'gdbarch' and use it instead of target_gdbarch.
558 (get_memory_packet_size): Adjust get_remote_arch_state calls,
559 passing down target_gdbarch explicitly.
560 (struct stop_reply) <arch>: New field.
561 (remote_parse_stop_reply): Use the stopped thread's architecture,
562 not the current inferior's. Save the architecture in the
563 stop_reply.
564 (process_stop_reply): Use the stop reply's architecture.
565 (process_g_packet, remote_fetch_registers)
566 (remote_prepare_to_store, store_registers_using_G)
567 (remote_store_registers): Adjust get_remote_arch_state calls,
568 using the regcache's architecture.
569 (remote_get_trace_status): Adjust get_remote_arch_state calls,
570 passing down target_gdbarch explicitly.
571 * spu-multiarch.c (spu_thread_architecture): Defer to the target
572 beneath instead of calling target_gdbarch.
573 * target.c (default_thread_architecture): Use the specified
574 inferior's architecture, instead of the current inferior's
575 architecture (via target_gdbarch).
576
577 2017-10-04 Pedro Alves <palves@redhat.com>
578
579 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
580 case.
581 (regcache_print): Handle !target_has_registers here instead.
582
583 2017-10-04 Pedro Alves <palves@redhat.com>
584
585 * frame.c (create_test_frame): Delete.
586 * frame.h (create_test_frame): Delete.
587 * gdbarch-selftests.c: Include gdbthread.h and target.h.
588 (class regcache_test): Delete.
589 (test_target_has_registers, test_target_has_stack)
590 (test_target_has_memory, test_target_prepare_to_store)
591 (test_target_store_registers): New functions.
592 (test_target_ops): New class.
593 (register_to_value_test): Error out if there's already a
594 process_stratum (or higher) target pushed. Create a fuller mock
595 environment, with mock target_ops, inferior, address space, thread
596 and inferior_ptid.
597 * progspace.c (struct address_space): Move to ...
598 * progspace.h (struct address_space): ... here.
599 * regcache.h (regcache::~regcache, regcache::raw_write)
600 [GDB_SELF_TEST]: No longer virtual.
601
602 2017-10-04 Simon Marchi <simon.marchi@ericsson.com>
603
604 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
605
606 2017-10-04 Pedro Alves <palves@redhat.com>
607
608 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
609 out of 'between TRY and CATCH'.
610
611 2017-10-04 Pedro Alves <palves@redhat.com>
612
613 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
614 * common/common-exceptions.h (TRY): Open an outermost scope.
615 Expand intro comment.
616 (CATCH): Reindent.
617 (END_CATCH): Close the outermost scope.
618 * completer.c (complete_line_internal): Add missing END_CATCH.
619
620 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
621
622 * NEWS (Changes since GDB 8.0): Add entry about new
623 'set-cwd-on-gdbserver' feature.
624 (New remote packets): Add entry for QSetWorkingDir.
625 * common/common-inferior.h (set_inferior_cwd): New prototype.
626 * infcmd.c (set_inferior_cwd): Remove "static".
627 (show_cwd_command): Expand text to include remote debugging.
628 * remote.c: Add PACKET_QSetWorkingDir.
629 (remote_protocol_features) <QSetWorkingDir>: New entry for
630 PACKET_QSetWorkingDir.
631 (extended_remote_set_inferior_cwd): New function.
632 (extended_remote_create_inferior): Call
633 "extended_remote_set_inferior_cwd".
634 (_initialize_remote): Call "add_packet_config_cmd" for
635 QSetWorkingDir.
636
637 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
638
639 * NEWS (New commands): Mention "set/show cwd".
640 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
641 "cd" command's help text.
642 * common/common-inferior.h (get_inferior_cwd): New prototype.
643 * infcmd.c (inferior_cwd_scratch): New global variable.
644 (set_inferior_cwd): New function.
645 (get_inferior_cwd): Likewise.
646 (set_cwd_command): Likewise.
647 (show_cwd_command): Likewise.
648 (_initialize_infcmd): Add "set/show cwd" commands.
649 * inferior.h (class inferior) <cwd>: New field.
650 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
651 (fork_inferior): Change inferior's cwd before its execution.
652 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
653 to CreateProcess.
654
655 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
656
657 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
658 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
659 (COMMON_OBS): Add gdb_tilde_expand.o.
660 * common/gdb_tilde_expand.c: New file.
661 * common/gdb_tilde_expand.h: Likewise.
662
663 2017-10-03 Maciej W. Rozycki <macro@imgtec.com>
664
665 * gdbarch.sh (objfile): Remove duplicate declaration.
666 * gdbarch.h: Regenerate.
667
668 2017-10-03 Tom Tromey <tom@tromey.com>
669
670 * utils.c (internal_vproblem): Use string_vprintf.
671
672 2017-10-03 Tom Tromey <tom@tromey.com>
673
674 * printcmd.c (info_symbol_command): Use std::string.
675
676 2017-10-03 Tom Tromey <tom@tromey.com>
677
678 * top.c (gdb_safe_append_history): Use std::string.
679
680 2017-10-03 Tom Tromey <tom@tromey.com>
681
682 * event-top.c (stdin_event_handler): Update.
683 * main.c (captured_main_1): Update.
684 * top.h (make_delete_ui_cleanup): Remove.
685 (struct ui): Add constructor and destructor.
686 (new_ui, delete_ui): Remove.
687 * top.c (make_delete_ui_cleanup): Remove.
688 (new_ui_command): Use std::unique_ptr.
689 (delete_ui_cleanup): Remove.
690 (ui::ui): Rename from new_ui. Update.
691 (free_ui): Remove.
692 (ui::~ui): Rename from delete_ui. Update.
693
694 2017-10-03 Tom Tromey <tom@tromey.com>
695
696 * symfile.c (load_progress): Use gdb::byte_vector.
697
698 2017-10-03 Tom Tromey <tom@tromey.com>
699
700 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
701 declaration.
702 * printcmd.c (x_command): Remove unused declaration.
703 * symfile.c (symbol_file_command): Remove unused declaration.
704
705 2017-10-03 Tom Tromey <tom@tromey.com>
706
707 * utils.c (internal_vproblem): Use std::string.
708 (defaulted_query): Likewise.
709
710 2017-10-03 Tom Tromey <tom@tromey.com>
711
712 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
713 * top.c (execute_command_to_string): Update.
714 * utils.c (make_cleanup_restore_page_info): Remove.
715 (do_restore_page_info_cleanup): Remove.
716 (set_batch_flag_and_restore_page_info):
717 New.
718 (make_cleanup_restore_page_info): Remove.
719 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
720 (~set_batch_flag_and_restore_page_info): New
721 (make_cleanup_restore_uinteger): Remove.
722 (make_cleanup_restore_integer): Remove.
723 (struct restore_integer_closure): Remove.
724 (restore_integer): Remove.
725 * utils.h (struct set_batch_flag_and_restore_page_info): New
726 class.
727 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
728 (make_cleanup_restore_page_info): Remove.
729 (make_cleanup_restore_uinteger) Remove.
730 (make_cleanup_restore_integer) Remove.
731
732 2017-10-03 Tom Tromey <tom@tromey.com>
733
734 * record-full.h (record_full_gdb_operation_disable_set): Return
735 scoped_restore_tmpl<int>.
736 * infrun.c (adjust_pc_after_break): Update.
737 (handle_signal_stop): Update.
738 * record-full.c (record_full_gdb_operation_disable_set): Return
739 scoped_restore_tmpl<int>.
740 (record_full_wait_1, record_full_insert_breakpoint)
741 (record_full_remove_breakpoint, record_full_save)
742 (record_full_goto_insn): Update.
743
744 2017-10-02 Tom Tromey <tom@tromey.com>
745
746 PR rust/22236:
747 * rust-lang.c (rust_val_print_str): New function.
748 (val_print_struct): Call it.
749 (rust_subscript): Preserve name of slice type.
750
751 2017-10-02 Tom Tromey <tom@tromey.com>
752
753 * rust-lang.c (rust_subscript): Handle slices in
754 EVAL_AVOID_SIDE_EFFECTS case.
755
756 2017-10-02 Tom Tromey <tom@tromey.com>
757
758 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
759
760 2017-10-02 Tom Tromey <tom@tromey.com>
761
762 * rust-lang.h (rust_slice_type): Add "extern".
763
764 2017-10-02 Tom Tromey <tom@tromey.com>
765 Pedro Alves <palves@redhat.com>
766
767 * ada-lang.h (ada_exc_info::operator<): Make const.
768 (ada_exc_info::operator==): Make const.
769 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
770 Make const.
771
772 2017-09-29 Tom Tromey <tom@tromey.com>
773
774 * target.c (read_whatever_is_readable): Change type of "result".
775 Update.
776 (free_memory_read_result_vector): Remove.
777 (read_memory_robust): Change return type. Update.
778 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
779 bin2hex, std::string.
780 * target.h (memory_read_result_s): Remove typedef.
781 (free_memory_read_result_vector): Remove.
782 (read_memory_robust): Return std::vector.
783
784 2017-09-29 Tom Tromey <tom@tromey.com>
785
786 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
787
788 2017-09-29 Tom Tromey <tom@tromey.com>
789
790 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
791 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
792 operator< and operator==.
793 (ada_exceptions_list): Return a std::vector.
794 * ada-lang.c (ada_exc_info::operator<): Rename from
795 compare_ada_exception_info.
796 (ada_exc_info::operator==): New.
797 (sort_remove_dups_ada_exceptions_list): Change type of
798 "exceptions".
799 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
800 (ada_add_global_exceptions): Likewise.
801 (ada_exceptions_list_1): Return a std::vector.
802 (ada_exceptions_list): Likewise.
803
804 2017-09-29 Tom Tromey <tom@tromey.com>
805
806 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
807 'std::set *'.
808 (print_one_inferior): Update.
809 (free_vector_of_ints): Remove.
810 (list_available_thread_groups): Change "ids" to std::set.
811 (mi_cmd_list_thread_groups): Update.
812 (struct collect_cores_data) <core>: Now a std::set.
813 (collect_cores): Update.
814 (unique): Remove.
815 (print_one_inferior): Update.
816
817 2017-09-29 Tom Tromey <tom@tromey.com>
818
819 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
820 (mi_execute_async_cli_command): Likewise.
821 (mi_cmd_trace_frame_collected): Use field_fmt.
822
823 2017-09-29 Tom Tromey <tom@tromey.com>
824
825 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
826 gdb::byte_vector.
827
828 2017-09-29 Tom Tromey <tom@tromey.com>
829
830 * mi/mi-parse.c (mi_parse): Remove unused declaration.
831
832 2017-09-29 Tom Tromey <tom@tromey.com>
833
834 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
835
836 2017-09-29 Tom Tromey <tom@tromey.com>
837
838 * varobj.h (varobj_gen_name): Return std::string.
839 * varobj.c (varobj_gen_name): Return std::string.
840 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
841 (mi_cmd_var_delete): Don't copy "name".
842
843 2017-09-29 Tom Tromey <tom@tromey.com>
844
845 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
846 (mi_cmd_break_insert_1): Update.
847
848 2017-09-29 Tom Tromey <tom@tromey.com>
849
850 * target.h (make_scoped_defer_target_commit_resume): Update.
851 * target.c (make_scoped_defer_target_commit_resume): Rename from
852 make_cleanup_defer_target_commit_resume. Return a
853 scoped_restore.
854 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
855
856 2017-09-29 Tom Tromey <tom@tromey.com>
857
858 * main.c (captured_main_1): Remove unused declaration.
859 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
860
861 2017-09-29 Tom Tromey <tom@tromey.com>
862
863 * symtab.c (search_symbols): Remove unused outer cleanup.
864 (make_source_files_completion_list): Remove unused declaration.
865
866 2017-09-29 Tom Tromey <tom@tromey.com>
867
868 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
869
870 2017-09-29 Tom Tromey <tom@tromey.com>
871
872 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
873 gdb::byte_vector.
874
875 2017-09-29 Tom Tromey <tom@tromey.com>
876
877 * complaints.c (vcomplaint): Use std::string.
878
879 2017-09-29 Tom Tromey <tom@tromey.com>
880
881 * tracepoint.c (trace_variable_command): Use std::string.
882 (encode_actions_1): Remove unused declarations.
883 (create_tsv_from_upload): Use std::string.
884
885 2017-09-29 Tom Tromey <tom@tromey.com>
886
887 * cp-support.c (gdb_demangle): Use std::string.
888
889 2017-09-29 Tom Tromey <tom@tromey.com>
890
891 * stack.c (parse_frame_specification): Use std::string
892 (info_frame_command): Use gdb::unique_xmalloc_ptr.
893
894 2017-09-29 Tom Tromey <tom@tromey.com>
895
896 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
897
898 2017-09-29 Tom Tromey <tom@tromey.com>
899
900 * utils.c (vfprintf_maybe_filtered): Use std::string.
901 (vfprintf_unfiltered): Likewise.
902
903 2017-09-29 Tom Tromey <tom@tromey.com>
904
905 * event-top.c (top_level_prompt): Return std::string.
906 (display_gdb_prompt): Update.
907
908 2017-09-29 Tom Tromey <tom@tromey.com>
909
910 * unittests/common-utils-selftests.c (format): New function.
911 (string_vprintf_tests): New function.
912 (_initialize_common_utils_selftests): Register new tests.
913 * common/common-utils.c (string_vprintf): New function.
914 * common/common-utils.h (string_vprintf): Declare.
915
916 2017-09-29 Pedro Alves <palves@redhat.com>
917
918 * common/rsp-low.c (unpack_varlen_hex): Constify.
919 * common/rsp-low.h (unpack_varlen_hex): Constify.
920 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
921 Constify.
922 * remote.c (remote_set_permissions, read_ptid)
923 (remote_current_thread, remote_get_threads_with_qthreadinfo)
924 (remote_static_tracepoint_marker_at)
925 (remote_static_tracepoint_markers_by_strid)
926 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
927 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
928 (parse_tracepoint_definition, parse_tsv_definition)
929 (parse_static_tracepoint_marker_definition): Constify.
930 * tracepoint.h (parse_static_tracepoint_marker_definition)
931 (parse_trace_status, parse_tracepoint_status)
932 (parse_tracepoint_definition, parse_tsv_definition): Constify.
933
934 2017-09-29 Pedro Alves <palves@redhat.com>
935
936 * remote.c (target_buf, target_buf_size): Delete.
937 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
938 Use the connection's packet buffer instead.
939 All callers adjusted.
940 (_initialize_remote): Remove references to target_buf and
941 target_buf_size.
942
943 2017-09-28 Pedro Alves <palves@redhat.com>
944
945 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
946 unittests/common-utils-selftests.c.
947 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
948 (COMMON_OBS): Remove utils-selftests.o.
949 * utils-selftests.c: Move to ...
950 * unittests/common-utils-selftests.c: ... here and rename self
951 test to "string_printf".
952
953 2017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
954
955 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
956 having NULL cus or tus.
957
958 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
959
960 * arm-tdep.c: (convert_from_extended): Remove.
961 (convert_to_extended): Likewise.
962 (arm_extract_return_value): Use convert_typed_floating.
963 (arm_store_return_value): Likewise.
964
965 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
966 * sh-tdep.c: Do not include "floatformat.h".
967 (sh_littlebyte_bigword_type): New function.
968 (sh_register_convert_to_virtual): Use convert_typed_floating.
969 (sh_register_convert_to_raw): Likewise.
970 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
971 (sh64_littlebyte_bigword_type): New function.
972 (sh64_extract_return_value): Use convert_typed_floating.
973 (sh64_register_convert_to_virtual): Likewise.
974 (sh64_register_convert_to_raw): Likewise.
975
976 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
977
978 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
979 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
980
981 * gdbtypes.h (union type_specific): Make field floatformat hold
982 just a single struct floatformat, not an array.
983 (floatformat_from_type): Move here.
984 * gdbtypes.c (floatformat_from_type): Move here. Update to
985 changed TYPE_FLOATFORMAT definition.
986 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
987 (recursive_dump_type): Likewise.
988 (init_float_type): Install correct floatformat for byte order.
989 (arch_float_type): Likewise.
990
991 2017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
992
993 * gdbtypes.c (init_type): Change incoming argument from
994 length-in-bytes to length-in-bits. Assert length is a
995 multiple of TARGET_CHAR_BITS.
996 (arch_type, arch_flags_type): Likewise.
997 (init_integer_type): Update call to init_type.
998 (init_character_type): Likewise.
999 (init_boolean_type): Likewise.
1000 (init_float_type): Likewise.
1001 (init_decfloat_type): Likewise.
1002 (init_complex_type): Likewise.
1003 (init_pointer_type): Likewise.
1004 (objfile_type): Likewise.
1005 (arch_integer_type): Update call to arch_type.
1006 (arch_character_type): Likewise.
1007 (arch_boolean_type): Likewise.
1008 (arch_float_type): Likewise.
1009 (arch_decfloat_type): Likewise.
1010 (arch_complex_type): Likewise.
1011 (arch_pointer_type): Likewise.
1012 (gdbtypes_post_init): Likewise.
1013
1014 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
1015 (read_base_type): Likewise.
1016 * mdebugread.c (basic_type): Likewise.
1017 * stabsread.c (dbx_init_float_type): Likewise.
1018 (rs6000_builtin_type): Likewise.
1019 (read_range_type): Likewise. Also, fix call to init_integer_type
1020 with erroneous length argument.
1021
1022 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
1023 * d-lang.c (build_d_types): Likewise.
1024 * f-lang.c (build_fortran_types): Likewise.
1025 * go-lang.c (build_go_types): Likewise.
1026 * opencl-lang.c (build_opencl_types): Likewise.
1027 * jit.c (finalize_symtab): Likewise.
1028 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
1029 (build_std_type_info_type): Likewise.
1030 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
1031 update call to arch_flags_type.
1032
1033 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
1034 arch_type.
1035 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
1036 * windows-tdep.c (windows_get_tlb_type): Likewise.
1037
1038 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
1039 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
1040 * m32c-tdep.c (make_types): Likewise.
1041 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
1042 (rl78_psw_type): Update call to arch_flags_type.
1043 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
1044 * rx-tdep.c (rx_psw_type): Likewise.
1045 (rx_fpsw_type): Likewise.
1046 * sparc-tdep.c (sparc_psr_type): Likewise.
1047 (sparc_fsr_type): Likewise.
1048 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
1049 (sparc64_ccr_type): Likewise.
1050 (sparc64_fsr_type): Likewise.
1051 (sparc64_fprs_type): Likewise.
1052
1053 2017-09-27 Tom Tromey <tom@tromey.com>
1054
1055 * findcmd.c (find_command): Constify.
1056
1057 2017-09-27 Tom Tromey <tom@tromey.com>
1058
1059 * ada-tasks.c (task_command_1, task_command): Constify.
1060
1061 2017-09-27 Tom Tromey <tom@tromey.com>
1062
1063 * symtab.c (maintenance_print_symbol_cache)
1064 (maintenance_flush_symbol_cache)
1065 (maintenance_print_symbol_cache_statistics): Constify.
1066
1067 2017-09-27 Tom Tromey <tom@tromey.com>
1068
1069 * inferior.c (detach_inferior_command, kill_inferior_command)
1070 (inferior_command): Constify.
1071
1072 2017-09-27 Tom Tromey <tom@tromey.com>
1073
1074 * regcache.c (regcache_print, maintenance_print_registers)
1075 (maintenance_print_raw_registers)
1076 (maintenance_print_cooked_registers)
1077 (maintenance_print_register_groups)
1078 (maintenance_print_remote_registers): Constify.
1079
1080 2017-09-27 Tom Tromey <tom@tromey.com>
1081
1082 * printcmd.c (map_display_numbers, undisplay_command)
1083 (enable_disable_display_command, enable_display_command)
1084 (disable_display_command): Constify.
1085
1086 2017-09-27 Tom Tromey <tom@tromey.com>
1087
1088 * breakpoint.h (delete_command): Don't declare.
1089 * breakpoint.c (delete_command, enable_once_command)
1090 (enable_count_command, enable_delete_command, breakpoint_1)
1091 (maintenance_info_breakpoints, stopin_command, stopat_command)
1092 (delete_command, delete_trace_command, save_breakpoints)
1093 (save_breakpoints_command, save_tracepoints_command): Constify.
1094
1095 2017-09-27 Tom Tromey <tom@tromey.com>
1096
1097 * macrocmd.c (macro_expand_command, macro_expand_once_command)
1098 (skip_ws, extract_identifier, macro_define_command)
1099 (macro_undef_command, macro_list_command): Constify.
1100
1101 2017-09-27 Tom Tromey <tom@tromey.com>
1102
1103 * infcmd.c (environment_info, set_environment_command)
1104 (unset_environment_command, path_info, info_proc_cmd_1)
1105 (info_proc_cmd_mappings, info_proc_cmd_stat)
1106 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
1107 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
1108
1109 2017-09-27 Tom Tromey <tom@tromey.com>
1110
1111 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
1112 Constify.
1113
1114 2017-09-27 Tom Tromey <tom@tromey.com>
1115
1116 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
1117
1118 2017-09-27 Tom Tromey <tom@tromey.com>
1119
1120 * demangle.c (demangle_command): Constify.
1121
1122 2017-09-27 Tom Tromey <tom@tromey.com>
1123
1124 * progspace.c (maintenance_info_program_spaces_command):
1125 Constify.
1126
1127 2017-09-27 Tom Tromey <tom@tromey.com>
1128
1129 * compile/compile.c (check_raw_argument, compile_file_command)
1130 (compile_code_command, compile_print_command): Constify.
1131
1132 2017-09-27 Tom Tromey <tom@tromey.com>
1133
1134 * reggroups.c (maintenance_print_reggroups): Constify.
1135
1136 2017-09-27 Tom Tromey <tom@tromey.com>
1137
1138 * dwarf2read.c (save_gdb_index_command): Constify.
1139
1140 2017-09-27 Tom Tromey <tom@tromey.com>
1141
1142 * stap-probe.c (info_probes_stap_command): Constify.
1143
1144 2017-09-27 Tom Tromey <tom@tromey.com>
1145
1146 * fork-child.c (unset_exec_wrapper_command): Constify.
1147
1148 2017-09-27 Tom Tromey <tom@tromey.com>
1149
1150 * btrace.c (get_uint, get_context_size, no_chunk)
1151 (maint_btrace_packet_history_cmd)
1152 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
1153 (maint_info_btrace_cmd): Constify.
1154
1155 2017-09-27 Tom Tromey <tom@tromey.com>
1156
1157 * reverse.c (delete_bookmark_command): Constify.
1158
1159 2017-09-27 Tom Tromey <tom@tromey.com>
1160
1161 * remote.c (set_memory_packet_size)
1162 (set_memory_write_packet_size, show_memory_write_packet_size)
1163 (set_memory_read_packet_size, show_memory_read_packet_size)
1164 (compare_sections_command, packet_command, remote_put_command)
1165 (remote_get_command, remote_delete_command): Constify.
1166
1167 2017-09-27 Tom Tromey <tom@tromey.com>
1168
1169 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
1170 (set_mipsfpu_double_command, set_mipsfpu_none_command)
1171 (set_mipsfpu_auto_command): Constify.
1172
1173 2017-09-27 Tom Tromey <tom@tromey.com>
1174
1175 * cli/cli-cmds.h (cd_command): Constify.
1176 * cli/cli-cmds.c (cd_command): Constify.
1177
1178 2017-09-27 Tom Tromey <tom@tromey.com>
1179
1180 * thread.c (thread_name_command, thread_find_command): Constify.
1181
1182 2017-09-27 Tom Tromey <tom@tromey.com>
1183
1184 * probe.c (enable_probes_command, disable_probes_command):
1185 Constify.
1186
1187 2017-09-27 Tom Tromey <tom@tromey.com>
1188
1189 * symfile.c (symbol_file_command): Constify.
1190 * gdbcore.h (deprecated_file_changed_hook): Constify.
1191 * exec.c (deprecated_file_changed_hook, exec_file_command)
1192 (file_command): Constify.
1193 * defs.h (symbol_file_command): Constify.
1194
1195 2017-09-27 Tom Tromey <tom@tromey.com>
1196
1197 * remote-fileio.c (set_system_call_allowed)
1198 (show_system_call_allowed): Constify.
1199
1200 2017-09-27 Tom Tromey <tom@tromey.com>
1201
1202 * tracepoint.c (delete_trace_variable_command)
1203 (tfind_end_command, tfind_start_command, tfind_pc_command)
1204 (tfind_tracepoint_command, tfind_line_command)
1205 (tfind_range_command, tfind_outside_command): Constify.
1206
1207 2017-09-27 Tom Tromey <tom@tromey.com>
1208
1209 * ax-gdb.c (maint_agent_printf_command, agent_command)
1210 (agent_eval_command): Constify.
1211
1212 2017-09-27 Tom Tromey <tom@tromey.com>
1213
1214 * tracepoint.c (info_scope_command): Constify.
1215 * python/python.c (gdbpy_decode_line): Constify.
1216 * python/py-breakpoint.c (bppy_init): Constify.
1217 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
1218 * location.h: (new_linespec_location)
1219 (string_to_event_location_basic, string_to_event_location):
1220 Constify.
1221 * location.c (new_linespec_location)
1222 (string_to_event_location_basic, string_to_event_location):
1223 Constify.
1224 * linespec.h (decode_line_with_current_source)
1225 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
1226 * linespec.c (linespec_lex_to_end)
1227 (decode_line_with_current_source)
1228 (decode_line_with_last_displayed): Constify.
1229 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
1230 Constify.
1231 * cli/cli-cmds.c (edit_command, list_command): Constify.
1232 * breakpoint.h (until_break_command, watch_command_wrapper)
1233 (awatch_command_wrapper, rwatch_command_wrapper)
1234 (init_ada_exception_breakpoint): Constify.
1235 * breakpoint.c (break_command_1, dprintf_command)
1236 (break_range_command, watch_command_wrapper)
1237 (rwatch_command_wrapper, awatch_command_wrapper)
1238 (until_break_command, init_ada_exception_breakpoint)
1239 (strace_marker_create_sals_from_location, trace_command)
1240 (ftrace_command, strace_command, struct tracepoint): Constify.
1241 * ax-gdb.c (agent_command_1): Constify.
1242 * ada-lang.c (ada_exception_sal): Constify.
1243
1244 2017-09-27 Tom Tromey <tom@tromey.com>
1245
1246 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
1247 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
1248 (get_context_size, no_chunk, get_insn_history_modifiers)
1249 (cmd_record_insn_history, get_call_history_modifiers)
1250 (cmd_record_call_history): Constify.
1251
1252 2017-09-27 Tom Tromey <tom@tromey.com>
1253
1254 * source.c (show_substitute_path_command)
1255 (unset_substitute_path_command, set_substitute_path_command):
1256 Constify.
1257
1258 2017-09-27 Tom Tromey <tom@tromey.com>
1259
1260 * typeprint.c (maintenance_print_type): Constify.
1261 * maint.c (maintenance_dump_me, maintenance_demangle)
1262 (maintenance_time_display, maintenance_info_sections)
1263 (maintenance_print_statistics, maintenance_deprecate)
1264 (maintenance_undeprecate): Constify.
1265 (maintenance_do_deprecate): Constify. Use std::string.
1266 (maintenance_selftest): Constify.
1267 * gdbtypes.h (maintenance_print_type): Constify.
1268
1269 2017-09-27 Tom Tromey <tom@tromey.com>
1270
1271 * hppa-tdep.c (unwind_command): Constify.
1272
1273 2017-09-27 Tom Tromey <tom@tromey.com>
1274
1275 * target-descriptions.c (unset_tdesc_filename_cmd)
1276 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
1277 Constify.
1278
1279 2017-09-27 Tom Tromey <tom@tromey.com>
1280
1281 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
1282
1283 2017-09-27 Tom Tromey <tom@tromey.com>
1284
1285 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
1286
1287 2017-09-27 Tom Tromey <tom@tromey.com>
1288
1289 * tui/tui-regs.c (tui_reg_command): Constify.
1290
1291 2017-09-27 Tom Tromey <tom@tromey.com>
1292
1293 * skip.c (skip_file_command, skip_function_command)
1294 (skip_enable_command, skip_disable_command, skip_delete_command):
1295 Constify.
1296
1297 2017-09-27 Tom Tromey <tom@tromey.com>
1298
1299 * record-btrace.c (cmd_record_btrace_bts_start)
1300 (cmd_record_btrace_pt_start): Constify.
1301
1302 2017-09-27 Tom Tromey <tom@tromey.com>
1303
1304 * symmisc.c (maintenance_print_symbols)
1305 (maintenance_print_msymbols, maintenance_print_objfiles)
1306 (maintenance_info_symtabs, maintenance_check_symtabs)
1307 (maintenance_expand_symtabs, maintenance_info_line_tables):
1308 Constify.
1309
1310 2017-09-27 Tom Tromey <tom@tromey.com>
1311
1312 * top.c (new_ui_command): Constify.
1313
1314 2017-09-27 Tom Tromey <tom@tromey.com>
1315
1316 * symfile.c (add_symbol_file_command)
1317 (remove_symbol_file_command, list_overlays_command)
1318 (map_overlay_command, unmap_overlay_command)
1319 (overlay_auto_command, overlay_manual_command)
1320 (overlay_off_command, overlay_load_command): Constify.
1321
1322 2017-09-27 Tom Tromey <tom@tromey.com>
1323
1324 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
1325 (info_spu_mailbox_command, info_spu_dma_command)
1326 (info_spu_proxydma_command): Constify.
1327
1328 2017-09-27 Tom Tromey <tom@tromey.com>
1329
1330 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
1331
1332 2017-09-27 Tom Tromey <tom@tromey.com>
1333
1334 * cli/cli-script.c (user_defined_command): Constify.
1335
1336 2017-09-27 Tom Tromey <tom@tromey.com>
1337
1338 * cli/cli-dump.c (dump_memory_command, dump_value_command)
1339 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
1340 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
1341 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
1342 (dump_binary_value, append_binary_memory, append_binary_value):
1343 Constify.
1344 (struct dump_context) <func>: Constify.
1345 (add_dump_command): Update.
1346
1347 2017-09-27 Tom Tromey <tom@tromey.com>
1348
1349 * cli/cli-cmds.c (show_version, show_configuration)
1350 (source_command, show_user): Constify.
1351
1352 2017-09-27 Tom Tromey <tom@tromey.com>
1353
1354 * target.c (maintenance_print_target_stack): Constify.
1355
1356 2017-09-27 Tom Tromey <tom@tromey.com>
1357
1358 * interps.c (interpreter_exec_cmd): Constify.
1359
1360 2017-09-27 Tom Tromey <tom@tromey.com>
1361
1362 * record-full.c (cmd_record_full_restore): Constify.
1363
1364 2017-09-27 Tom Tromey <tom@tromey.com>
1365
1366 * memattr.c (enable_mem_command, disable_mem_command)
1367 (delete_mem_command): Constify.
1368
1369 2017-09-27 Tom Tromey <tom@tromey.com>
1370
1371 * value.c (show_convenience): Constify.
1372
1373 2017-09-27 Tom Tromey <tom@tromey.com>
1374
1375 * gdbcore.h (core_file_command): Update.
1376 * corefile.c (core_file_command): Constify.
1377
1378 2017-09-27 Tom Tromey <tom@tromey.com>
1379
1380 * user-regs.c (maintenance_print_user_registers): Constify.
1381
1382 2017-09-27 Tom Tromey <tom@tromey.com>
1383
1384 * cp-namespace.c (maintenance_cplus_namespace): Constify.
1385
1386 2017-09-27 Tom Tromey <tom@tromey.com>
1387
1388 * cp-support.c (first_component_command): Constify.
1389
1390 2017-09-27 Tom Tromey <tom@tromey.com>
1391
1392 * psymtab.c (maintenance_print_psymbols)
1393 (maintenance_info_psymtabs, maintenance_check_psymtabs):
1394 Constify.
1395
1396 2017-09-27 Tom Tromey <tom@tromey.com>
1397
1398 * windows-tdep.c (display_tib): Constify.
1399
1400 2017-09-27 Tom Tromey <tom@tromey.com>
1401
1402 * linux-fork.c (delete_checkpoint_command)
1403 (detach_checkpoint_command): Constify.
1404
1405 2017-09-27 Tom Tromey <tom@tromey.com>
1406
1407 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
1408
1409 2017-09-27 Tom Tromey <tom@tromey.com>
1410
1411 * arc-tdep.c (dump_arc_instruction_command): Constify.
1412
1413 2017-09-27 Tom Tromey <tom@tromey.com>
1414
1415 * valprint.c (set_radix, show_radix): Constify.
1416
1417 2017-09-27 Tom Tromey <tom@tromey.com>
1418
1419 * dtrace-probe.c (info_probes_dtrace_command): Constify.
1420
1421 2017-09-27 Tom Tromey <tom@tromey.com>
1422
1423 * command.h (not_just_help_class_command): Update.
1424 * cli/cli-decode.h (not_just_help_class_command): Update.
1425 * cli/cli-decode.c (not_just_help_class_command): Constify.
1426
1427 2017-09-27 Tom Tromey <tom@tromey.com>
1428
1429 * gdb_bfd.c (maintenance_info_bfds): Constify.
1430
1431 2017-09-27 Tom Tromey <tom@tromey.com>
1432
1433 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
1434 overloads.
1435 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
1436 (do_const_cfunc): New function.
1437 (cmd_cfunc_eq): New overload.
1438 (cli_user_command_p): Check do_const_cfunc.
1439 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
1440 const_cfunc.
1441 * command.h (add_cmd): Add const overload and no-function
1442 overload.
1443 (set_cmd_cfunc): Add const overload.
1444 (cmd_const_cfunc_ftype): Declare.
1445 (cmd_cfunc_eq): Add const overload.
1446 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
1447 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
1448 overload.
1449
1450 2017-09-27 Tom Tromey <tom@tromey.com>
1451
1452 * macroexp.c (get_next_token_for_substitution): New function.
1453 (substitute_args): Call it. Check for __VA_OPT__.
1454
1455 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
1456 Pedro Alves <palves@redhat.com>
1457
1458 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
1459 producer_is_icc_lt_14.
1460 (producer_is_icc_lt_14): New function.
1461 (check_producer): Add code for checking version of ICC.
1462 (producer_is_icc): Move to producer.c.
1463 (read_structure_type): Restrict ICC workaround to ICC<14.
1464 * producer.c: Include selftest.h.
1465 (producer_is_icc, producer_parsing_tests, _initialize_producer):
1466 New functions.
1467 * producer.h (producer_is_icc): New declaration.
1468
1469 2017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
1470
1471 * Makefile.in (SFILES): Add producer.c.
1472 (COMMON_OBS): Add producer.o
1473 * amd64-tdep.c (producer.h): Add new include.
1474 * dwarf2read.c (producer.h): Add new include.
1475 * producer.c: New file.
1476 * producer.h: New file.
1477 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
1478 producer.c.
1479 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
1480 producer.h.
1481
1482 2017-09-26 Matthias Klose <doko@ubuntu.com>
1483
1484 * configure.ac: Search ncursesw before ncurses.
1485 Check ncursesw/ncurses.h before ncurses/ncurses.h.
1486 * gdb_curses.h: Include <ncursesw/ncurses.h>
1487 * config.in, configure: Regenerate.
1488
1489 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1490
1491 PR gdb/22185
1492 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
1493 obsolete.
1494 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
1495 Remove i386sol2 support.
1496 * configure.nat <i386sol2>: Remove.
1497 <sol2-64>: Fold into ...
1498 <sol2>: ... this.
1499 Move common settings to default section.
1500 Add sol-thread.o.
1501 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
1502 x86_64-*-solaris2.1[0-9]*>: Rename to ...
1503 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
1504 <i[34567]86-*-solaris*>: Remove.
1505 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
1506
1507 * configure.ac: Remove wctype in libw check.
1508 (_MSE_INT_H): Don't define on Solaris 7-9.
1509 <solaris*>: Remove libthread_db.so.1 check.
1510 * configure: Regenerate.
1511 * config.in: Regenerate.
1512
1513 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
1514 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
1515 (gdb_ps_size_t): Remove.
1516 Use base types in users.
1517 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
1518
1519 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
1520
1521 2017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1522
1523 PR build/22206
1524 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
1525 (adi_is_addr_mapped): Likewise.
1526 (PSR_ICC): Don't redefine.
1527 (PSR_IMPL): Likewise.
1528
1529 2017-09-25 Tom Tromey <tom@tromey.com>
1530
1531 * regcache.c (regcache::dump): Use string_printf.
1532
1533 2017-09-25 Tom Tromey <tom@tromey.com>
1534
1535 * regcache.c (class regcache_invalidator): New.
1536 (struct register_to_invalidate): Remove.
1537 (make_cleanup_regcache_invalidate): Remove.
1538 (regcache::raw_write): Use regcache_invalidator.
1539
1540 2017-09-25 Tom Tromey <tom@tromey.com>
1541
1542 * spu-tdep.c (spu2ppu_sniffer): Update.
1543 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
1544 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
1545 Remove.
1546 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
1547 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
1548 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
1549 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
1550 (frame_pop): Update.
1551
1552 2017-09-25 Tom Tromey <tom@tromey.com>
1553
1554 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
1555 * regcache.h (regcache_xfree): Don't declare.
1556 * regcache.c (regcache_xfree): Remove.
1557 (do_regcache_xfree): Use delete.
1558 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
1559 * linux-fork.c (free_fork): Use delete.
1560 (fork_save_infrun_state): Likewise.
1561 * jit.c (jit_dealloc_cache): Use delete.
1562 * infrun.c (discard_infcall_suspend_state): Use delete.
1563
1564 2017-09-25 Tom Tromey <tom@tromey.com>
1565
1566 * regcache.h (regcache_xmalloc): Don't declare.
1567 (regcache_raw_set_cached_value): Update comment.
1568 * regcache.c (regcache_xmalloc): Remove.
1569 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
1570 * jit.c (jit_frame_sniffer): Use new.
1571 * frame.c (frame_save_as_regcache): Use new.
1572
1573 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1574
1575 * NEWS: Advertise support for guarded-storage registers on IBM z.
1576
1577 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1578
1579 * s390-linux-nat.c (have_regset_gs): New static variable.
1580 (s390_linux_fetch_inferior_registers): Handle guarded-storage
1581 control block and guarded-storage broadcast control regsets.
1582 (s390_read_description): Detect whether the target has
1583 guarded-storage support, return appropriate tdesc.
1584 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
1585 (features/s390x-gs-linux64.c): Likewise.
1586 (struct gdbarch_tdep) <have_gs>: New field.
1587 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
1588 (s390_gsbc_regset): New variables.
1589 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
1590 and s390_gsbc_regset, if applicable.
1591 (s390_core_read_description): Check whether core file was from a
1592 target with guarded-storage support; include appropriate regsets.
1593 (s390_gdbarch_init): Add registers for guarded-storage support.
1594 (_initialize_s390_tdep): Initialize new target descriptions that
1595 include registers for guarded-storage support.
1596 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
1597 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
1598 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
1599 (S390_NUM_REGS): Adjust macro definition.
1600 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
1601 (tdesc_s390x_gs_linux64): New declarations.
1602
1603 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1604
1605 * features/s390-gs-linux64.xml: New file.
1606 * features/s390-gs.xml: New file.
1607 * features/s390-gsbc.xml: New file.
1608 * features/s390x-gs-linux64.xml: New file.
1609 * features/Makefile (WHICH): Add s390-gs-linux64 and
1610 s390x-gs-linux64.
1611 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
1612 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
1613 * features/s390-gs-linux64.c: New generated file.
1614 * features/s390x-gs-linux64.c: New file.
1615 * regformats/s390-gs-linux64.dat: New file.
1616 * regformats/s390x-gs-linux64.dat: New file.
1617
1618 2017-09-23 Tom Tromey <tom@tromey.com>
1619
1620 * defs.h (make_cleanup_override_quit_handler): Don't declare.
1621
1622 2017-09-22 Tom Tromey <tom@tromey.com>
1623
1624 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
1625 type to scoped_restore_tmpl.
1626 <scoped_input_handler>: Initialize m_quit_handler directly.
1627
1628 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
1629
1630 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
1631 (cd_command): Likewise. Free "current_directory" before
1632 assigning to it.
1633 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
1634 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
1635 * top.c (gdb_dirbuf): Remove global declaration.
1636 * top.h (gdb_dirbuf): Likewise.
1637
1638 2017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
1639
1640 * gnulib/aclocal.m4: Regenerate.
1641 * gnulib/config.in: Regenerate.
1642 * gnulib/configure: Regenerate.
1643 * gnulib/import/Makefile.am: Regenerate.
1644 * gnulib/import/Makefile.in: Regenerate.
1645 * gnulib/import/assure.h: New file.
1646 * gnulib/import/at-func.c: Likewise
1647 * gnulib/import/chdir-long.c: New file.
1648 * gnulib/import/chdir-long.h: New file.
1649 * gnulib/import/cloexec.c: New file.
1650 * gnulib/import/cloexec.h: New file.
1651 * gnulib/import/close.c: New file.
1652 * gnulib/import/closedir.c: New file.
1653 * gnulib/import/dirent-private.h: New file.
1654 * gnulib/import/dup-safer.c: New file.
1655 * gnulib/import/dup.c: New file.
1656 * gnulib/import/dup2.c: New file.
1657 * gnulib/import/error.c: New file.
1658 * gnulib/import/error.h: New file.
1659 * gnulib/import/exitfail.c: New file.
1660 * gnulib/import/exitfail.h: New file.
1661 * gnulib/import/fchdir.c: New file.
1662 * gnulib/import/fcntl.c: New file.
1663 * gnulib/import/fcntl.in.h: New file.
1664 * gnulib/import/fd-hook.c: New file.
1665 * gnulib/import/fd-hook.h: New file.
1666 * gnulib/import/fd-safer.c: New file.
1667 * gnulib/import/fdopendir.c: New file.
1668 * gnulib/import/filename.h: New file.
1669 * gnulib/import/filenamecat-lgpl.c: New file.
1670 * gnulib/import/filenamecat.h: New file.
1671 * gnulib/import/fstat.c: New file.
1672 * gnulib/import/fstatat.c: New file.
1673 * gnulib/import/getcwd-lgpl.c: New file.
1674 * gnulib/import/getcwd.c: New file.
1675 * gnulib/import/getdtablesize.c: New file.
1676 * gnulib/import/getlogin_r.c: New file.
1677 * gnulib/import/getprogname.c: New file.
1678 * gnulib/import/getprogname.h: New file.
1679 * gnulib/import/gettext.h: New file.
1680 * gnulib/import/glob-libc.h: New file.
1681 * gnulib/import/glob.c: New file.
1682 * gnulib/import/glob.in.h: New file.
1683 * gnulib/import/intprops.h: New file.
1684 * gnulib/import/m4/chdir-long.m4: New file.
1685 * gnulib/import/m4/close.m4: New file.
1686 * gnulib/import/m4/closedir.m4: New file.
1687 * gnulib/import/m4/d-ino.m4: New file.
1688 * gnulib/import/m4/d-type.m4: New file.
1689 * gnulib/import/m4/dup.m4: New file.
1690 * gnulib/import/m4/dup2.m4: New file.
1691 * gnulib/import/m4/error.m4: New file.
1692 * gnulib/import/m4/fchdir.m4: New file.
1693 * gnulib/import/m4/fcntl.m4: New file.
1694 * gnulib/import/m4/fcntl_h.m4: New file.
1695 * gnulib/import/m4/fdopendir.m4: New file.
1696 * gnulib/import/m4/filenamecat.m4: New file.
1697 * gnulib/import/m4/fstat.m4: New file.
1698 * gnulib/import/m4/fstatat.m4: New file.
1699 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
1700 * gnulib/import/m4/getcwd-path-max.m4: New file.
1701 * gnulib/import/m4/getcwd.m4: New file.
1702 * gnulib/import/m4/getdtablesize.m4: New file.
1703 * gnulib/import/m4/getlogin_r.m4: New file.
1704 * gnulib/import/m4/getprogname.m4: New file.
1705 * gnulib/import/m4/glob.m4: New file.
1706 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
1707 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
1708 * gnulib/import/m4/mempcpy.m4: New file.
1709 * gnulib/import/m4/memrchr.m4: New file.
1710 * gnulib/import/m4/mode_t.m4: New file.
1711 * gnulib/import/m4/msvc-inval.m4: New file.
1712 * gnulib/import/m4/msvc-nothrow.m4: New file.
1713 * gnulib/import/m4/open.m4: New file.
1714 * gnulib/import/m4/openat.m4: New file.
1715 * gnulib/import/m4/opendir.m4: New file.
1716 * gnulib/import/m4/readdir.m4: New file.
1717 * gnulib/import/m4/realloc.m4: New file.
1718 * gnulib/import/m4/rewinddir.m4: New file.
1719 * gnulib/import/m4/save-cwd.m4: New file.
1720 * gnulib/import/m4/strdup.m4: New file.
1721 * gnulib/import/m4/strerror.m4: New file.
1722 * gnulib/import/m4/unistd-safer.m4: New file.
1723 * gnulib/import/mempcpy.c: New file.
1724 * gnulib/import/memrchr.c: New file.
1725 * gnulib/import/msvc-inval.c: New file.
1726 * gnulib/import/msvc-inval.h: New file.
1727 * gnulib/import/msvc-nothrow.c: New file.
1728 * gnulib/import/msvc-nothrow.h: New file.
1729 * gnulib/import/open.c: New file.
1730 * gnulib/import/openat-die.c: New file.
1731 * gnulib/import/openat-priv.h: New file.
1732 * gnulib/import/openat-proc.c: New file.
1733 * gnulib/import/openat.c: New file.
1734 * gnulib/import/openat.h: New file.
1735 * gnulib/import/opendir.c: New file.
1736 * gnulib/import/pipe-safer.c: New file.
1737 * gnulib/import/readdir.c: New file.
1738 * gnulib/import/realloc.c: New file.
1739 * gnulib/import/rewinddir.c: New file.
1740 * gnulib/import/save-cwd.c: New file.
1741 * gnulib/import/save-cwd.h: New file.
1742 * gnulib/import/strdup.c: New file.
1743 * gnulib/import/strerror-override.c: New file.
1744 * gnulib/import/strerror-override.h: New file.
1745 * gnulib/import/strerror.c: New file.
1746 * gnulib/import/unistd--.h: New file.
1747 * gnulib/import/unistd-safer.h: New file.
1748 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1749 "getcwd" and "glob".
1750 * ser-tcp.c: Undefine "close" before redefining it.
1751
1752 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
1753
1754 * guile/scm-value.c (gdbscm_value_address): Initialize address,
1755 get rid of res_val.
1756
1757 2017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1758
1759 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
1760 <sol2,sparc>: Likewise.
1761 <sol2-64,i386>: Likewise.
1762
1763 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
1764 -Wdeprecated-declarations on *-*-solaris*.
1765 * configure: Regenerate.
1766
1767 * procfs.c: Include "nat/inferior.h".
1768 (procfs_info_proc): Fix typo.
1769
1770 2017-09-21 Kevin Buettner <kevinb@redhat.com>
1771
1772 * remote.c (vector): Include.
1773 (struct private_thread_info): Add field, thread_handle.
1774 (free_private_thread_info): Deallocate storage associated with
1775 thread handle.
1776 (get_private_info_thread): Initialize `thread_handle' field.
1777 (struct thread_item): Add field, thread_handle.
1778 (clear_threads_listing_context): Deallocate storage associated
1779 with thread handle.
1780 (start_thread): Add support for "handle" attribute.
1781 (thread_attributes): Add "handle".
1782 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
1783 field.
1784 (remote_update_thread_list): Update thread_handle.
1785 (remote_thread_handle_to_thread_info): New function.
1786 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
1787
1788 2017-09-21 Kevin Buettner <kevinb@redhat.com>
1789
1790 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
1791 function.
1792 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
1793 * python/python-internal.h (thread_object_type): Declare.
1794
1795 2017-09-21 Kevin Buettner <kevinb@redhat.com>
1796
1797 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
1798 (target_thread_handle_to_thread_info): Declare.
1799 * target.c (target_thread_handle_to_thread_info): New function.
1800 * target-delegates.c: Regenerate.
1801 * gdbthread.h (find_thread_by_handle): Declare.
1802 * thread.c (find_thread_by_handle): New function.
1803 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
1804 function.
1805 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
1806
1807 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
1808
1809 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
1810
1811 2017-09-21 Simon Marchi <simon.marchi@ericsson.com>
1812
1813 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
1814
1815 2017-09-21 Yao Qi <yao.qi@linaro.org>
1816
1817 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
1818 to gdb_target_obs.
1819
1820 2017-09-20 Tom Tromey <tom@tromey.com>
1821
1822 * breakpoint.c (struct counted_command_line): Remove.
1823 (breakpoint_commands): Update.
1824 (alloc_counted_command_line, incref_counted_command_line)
1825 (decref_counted_command_line, do_cleanup_counted_command_line)
1826 (make_cleanup_decref_counted_command_line): Remove.
1827 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
1828 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
1829 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
1830 (save_breakpoints): Update.
1831 * breakpoint.h (counted_command_line): Now a typedef to
1832 shared_ptr.
1833 (struct breakpoint) <commands>: Now a counted_command_line.
1834 (struct bpstats) <command>: Likewise.
1835
1836 2017-09-20 Tom Tromey <tom@tromey.com>
1837
1838 * breakpoint.c (struct commands_info, do_map_commands_command):
1839 Remove.
1840 (commands_command_1): Update.
1841 (iterate_over_related_breakpoints): Take a function_view.
1842 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
1843 (delete_command): Update.
1844 (map_breakpoint_numbers): Take a function_view.
1845 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
1846 (disable_command): Update.
1847 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
1848 (enable_command): Update.
1849 (struct disp_data, do_enable_breakpoint_disp)
1850 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
1851 (do_map_enable_delete_breakpoint): Remove.
1852 (enable_once_command, enable_count_command, enable_delete_command)
1853 (delete_trace_variable_command): Update.
1854
1855 2017-09-20 Tom Tromey <tom@tromey.com>
1856
1857 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
1858 (bpstat_clear): Use delete.
1859 (bpstats): New constructors.
1860 (bpstat_copy, bpstat_stop_status): Use new.
1861 (dprintf_after_condition_true): Update.
1862 * breakpoint.h (bpstats::bpstats): Add constructors.
1863 (bpstats::~bpstats): Add destructor.
1864
1865 2017-09-20 Pedro Alves <palves@redhat.com>
1866
1867 * eval.c (make_params): Delete, refactored as ...
1868 (class fake_method): ... this new type's ctor.
1869 (fake_method::~fake_method): New.
1870 (evaluate_subexp_standard): Use 'fake_method'.
1871
1872 2017-09-20 Tom Tromey <tom@tromey.com>
1873
1874 * windows-nat.c (get_windows_debug_event, windows_wait)
1875 (do_initial_windows_stuff, windows_attach): Update.
1876 * utils.c (vwarning, internal_vproblem): Update.
1877 (ui_unregister_input_event_handler_cleanup)
1878 (prepare_to_handle_input): Remove.
1879 (class scoped_input_handler): New.
1880 (defaulted_query, prompt_for_continue): Update.
1881 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
1882 Update.
1883 * top.c (undo_terminal_modifications_before_exit): Update.
1884 * target/target.h (target_terminal_init, target_terminal_inferior)
1885 (target_terminal_ours): Don't declare.
1886 (class target_terminal): New.
1887 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
1888 (target_terminal_ours_for_output)
1889 (make_cleanup_restore_target_terminal): Don't declare.
1890 (target_terminal_info): Remove.
1891 * target.c (enum terminal_state, terminal_state): Remove.
1892 (target_terminal::terminal_state): Define.
1893 (target_terminal::init): Rename from target_terminal_init.
1894 (target_terminal::inferior): Rename from
1895 target_terminal_inferior.
1896 (target_terminal::ours): Rename from target_terminal_ours.
1897 (target_terminal::ours_for_output): Rename from
1898 target_terminal_ours_for_output.
1899 (target_terminal::info): New method.
1900 (cleanup_restore_target_terminal)
1901 (make_cleanup_restore_target_terminal): Remove.
1902 * solib.c (handle_solib_event): Update.
1903 * remote.c (remote_serial_quit_handler): Update.
1904 (remote_terminal_inferior, remote_wait_as): Update.
1905 * record-full.c (record_full_wait_1): Update.
1906 * nto-procfs.c (procfs_create_inferior): Update.
1907 * nat/fork-inferior.c (startup_inferior): Update.
1908 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
1909 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
1910 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
1911 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
1912 (mi_breakpoint_created, mi_breakpoint_deleted)
1913 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
1914 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
1915 (mi_user_selected_context_changed, report_initial_inferior):
1916 Update.
1917 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
1918 (linux_nat_terminal_inferior): Update.
1919 * infrun.c (follow_fork_inferior)
1920 (handle_vfork_child_exec_or_exit, do_target_resume)
1921 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
1922 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
1923 Update.
1924 * inflow.c (child_terminal_init, info_terminal_command): Update.
1925 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
1926 (attach_command): Update.
1927 * infcall.c (call_thread_fsm_should_stop): Update.
1928 * gnu-nat.c (gnu_attach): Update.
1929 * extension.c (struct active_ext_lang_state)
1930 (restore_active_ext_lang): Update.
1931 * exceptions.c (print_flush): Update.
1932 * event-top.c (async_enable_stdin, default_quit_handler): Update.
1933 (struct quit_handler_cleanup_data, restore_quit_handler)
1934 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
1935 Remove.
1936 * cp-support.c (gdb_demangle): Update.
1937 * breakpoint.c (update_inserted_breakpoint_locations)
1938 (insert_breakpoint_locations, handle_jit_event)
1939 (disable_breakpoints_in_unloaded_shlib): Update.
1940 * annotate.c (annotate_breakpoints_invalid)
1941 (annotate_frames_invalid): Update.
1942
1943 2017-09-20 Tom Tromey <tom@tromey.com>
1944
1945 * main.c (catch_command_errors): Rename from
1946 catch_command_errors_const.
1947 (captured_main_1): Update.
1948
1949 2017-09-20 Pedro Alves <palves@redhat.com>
1950
1951 * cli/cli-cmds.c (list_command): Use print_sal_location.
1952 (print_sal_location): New function.
1953 (ambiguous_line_spec): Use print_sal_location.
1954 * linespec.c (symbol_to_sal): Record the symbol in the sal.
1955 * symtab.c (find_function_start_sal): Likewise.
1956 * symtab.h (symtab_and_line::symbol): New field.
1957
1958 2017-09-20 Pedro Alves <palves@redhat.com>
1959
1960 * linespec.c (minsym_found): Handle non-text minsyms.
1961 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
1962
1963 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1964
1965 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
1966 backslash.
1967
1968 2017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1969
1970 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
1971 vmovups instead vmovaps.
1972 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
1973
1974 2017-09-19 John Baldwin <jhb@FreeBSD.org>
1975
1976 * NEWS (Changes since GDB 8.0): Add starti.
1977 * infcmd.c (enum run_break): New.
1978 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
1979 case.
1980 (run_command): Use enum run_how.
1981 (start_command): Likewise.
1982 (starti_command): New function.
1983 (RUN_ARGS_HELP): New macro.
1984 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
1985 commands. Add starti command.
1986
1987 2017-09-19 Yao Qi <yao.qi@linaro.org>
1988
1989 * Makefile.in (monitor.o): Remove the rule.
1990
1991 2017-09-19 Yao Qi <yao.qi@linaro.org>
1992
1993 * annotate.h (struct annotate_arg_emitter): Use
1994 DISABLE_COPY_AND_ASSIGN.
1995 * common/refcounted-object.h (refcounted_object): Likewise.
1996 * completer.h (struct completion_result): Likewise.
1997 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
1998 * filename-seen-cache.h (filename_seen_cache): Likewise.
1999 * gdbcore.h (thread_section_name): Likewise.
2000 * gdb_regex.h (compiled_regex): Likewise.
2001 * gdbthread.h (scoped_restore_current_thread): Likewise.
2002 * inferior.h (scoped_restore_current_inferior): Likewise.
2003 * jit.c (jit_reader): Likewise.
2004 * linespec.h (struct linespec_result): Likewise.
2005 * mi/mi-parse.h (struct mi_parse): Likewise.
2006 * nat/fork-inferior.c (execv_argv): Likewise.
2007 * progspace.h (scoped_restore_current_program_space): Likewise.
2008 * python/python-internal.h (class gdbpy_enter): Likewise.
2009 * regcache.h (regcache): Likewise.
2010 * target-descriptions.c (struct tdesc_reg): Likewise.
2011 (struct tdesc_type): Likewise.
2012 (struct tdesc_feature): Likewise.
2013 * ui-out.h (ui_out_emit_type): Likewise.
2014
2015 2017-09-18 Simon Marchi <simon.marchi@ericsson.com>
2016
2017 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
2018 label abort_expression.
2019
2020 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
2021
2022 * common/buffer.c (buffer_xml_printf): Adjust.
2023 * common/xml-utils.c (xml_escape_text): Change return type to
2024 std::string, update code accordingly.
2025 * common/xml-utils.h (xml_escape_text): Change return type to
2026 std::string.
2027 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
2028 * windows-tdep.c (windows_xfer_shared_library): Adjust.
2029 * unittests/xml-utils-selftests.c (test_xml_escape_text):
2030 Adjust.
2031
2032 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
2033
2034 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
2035 (SUBDIR_UNITTESTS_OBS): Add new object file.
2036 * unittests/xml-utils-selftests.c: New file.
2037
2038 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
2039
2040 * common/selftest.h (selftest): New struct/interface.
2041 (register_test): Add name parameter, add new overload.
2042 (run_tests): Add filter parameter.
2043 (for_each_selftest_ftype): New typedef.
2044 (for_each_selftest): New declaration.
2045 * common/selftest.c (tests): Change type to
2046 map<string, unique_ptr<selftest>>.
2047 (simple_selftest): New struct.
2048 (register_test): New function.
2049 (register_test): Add name parameter and use it.
2050 (run_tests): Add filter parameter and use it. Add prints.
2051 Adjust to vector -> map change.
2052 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
2053 registering selftests.
2054 * arm-tdep.c (_initialize_arm_tdep): Likewise.
2055 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
2056 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
2057 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
2058 * findvar.c (_initialize_findvar): Likewise.
2059 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
2060 * maint.c (maintenance_selftest): Update call to run_tests.
2061 (maintenance_info_selftests): New function.
2062 (_initialize_maint_cmds): Register "maintenance info selftests"
2063 command. Update "maintenance selftest" doc.
2064 * regcache.c (_initialize_regcache): Add names when registering
2065 selftests.
2066 * rust-exp.y (_initialize_rust_exp): Likewise.
2067 * selftest-arch.c (gdbarch_selftest): New struct.
2068 (gdbarch_tests): Remove.
2069 (register_test_foreach_arch): Add name parameter. Call
2070 register_test.
2071 (tests_with_arch): Remove, move most content to
2072 gdbarch_selftest::operator().
2073 (_initialize_selftests_foreach_arch): Remove.
2074 * selftest-arch.h (register_test_foreach_arch): Add name
2075 parameter.
2076 (run_tests_with_arch): New declaration.
2077 * utils-selftests.c (_initialize_utils_selftests): Add names
2078 when registering selftests.
2079 * utils.c (_initialize_utils): Likewise.
2080 * unittests/array-view-selftests.c
2081 (_initialize_array_view_selftests): Likewise.
2082 * unittests/environ-selftests.c (_initialize_environ_selftests):
2083 Likewise.
2084 * unittests/function-view-selftests.c
2085 (_initialize_function_view_selftests): Likewise.
2086 * unittests/offset-type-selftests.c
2087 (_initialize_offset_type_selftests): Likewise.
2088 * unittests/optional-selftests.c
2089 (_initialize_optional_selftests): Likewise.
2090 * unittests/scoped_restore-selftests.c
2091 (_initialize_scoped_restore_selftests): Likewise.
2092 * NEWS: Document "maintenance selftest" and "maint info
2093 selftests".
2094
2095 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
2096
2097 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
2098 scoped_restore.
2099
2100 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
2101
2102 * mi/mi-main.c (mi_load_progress): Make uiout variable
2103 a unique_ptr.
2104
2105 2017-09-15 Pedro Alves <palves@redhat.com>
2106
2107 * compile/compile-c-types.c (convert_enum, convert_int)
2108 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
2109
2110 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
2111
2112 * dwarf2read.c (copy_string): Remove.
2113 (parse_macro_definition): Replace copy_string with savestring.
2114
2115 2017-09-15 Yao Qi <yao.qi@linaro.org>
2116
2117 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
2118 gdb_target_obs.
2119 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
2120 Likewise.
2121 (i[34567]86-*-linux*): Likewise.
2122
2123 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
2124
2125 * dwarf2expr.h (dwarf_stack_value): Add constructor.
2126 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
2127 <stack>: Change type to std::vector.
2128 <stack_len, stack_allocated>: Remove.
2129 <grow_stack>: Remove.
2130 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
2131 (dwarf_expr_context::~dwarf_expr_context): Remove.
2132 (dwarf_expr_context::grow_stack): Remove.
2133 (dwarf_expr_context::push): Adjust.
2134 (dwarf_expr_context::pop): Adjust.
2135 (dwarf_expr_context::fetch): Adjust.
2136 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
2137 (dwarf_expr_context::stack_empty_p): Adjust.
2138 (dwarf_expr_context::execute_stack_op): Adjust.
2139
2140 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
2141
2142 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
2143 return type to bool.
2144 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
2145
2146 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
2147
2148 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
2149 Change type to bool.
2150 (dwarf_stack_value) <in_stack_memory>: Likewise.
2151 (dwarf_expr_context) <push_address>: Change parameter type to
2152 bool.
2153 <fetch_in_stack_memory>: Change return type to bool.
2154 <push>: Change parameter type to bool.
2155 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
2156 to bool.
2157 (dwarf_expr_context::push_address): Likewise.
2158 (dwarf_expr_context::fetch_in_stack_memory): Change return type
2159 to bool.
2160 (dwarf_expr_context::execute_stack_op): Adjust.
2161 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
2162
2163 2017-09-14 Simon Marchi <simon.marchi@ericsson.com>
2164
2165 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
2166 (struct dwarf_expr_context) <n_pieces>: Remove.
2167 <pieces>: Change type to std::vector.
2168 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
2169 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
2170 pieces.
2171 (dwarf_expr_context::add_piece): Adjust.
2172 * dwarf2loc.c (struct piece_closure): Initialize fields.
2173 <n_pieces>: Remove.
2174 <pieces>: Change type to std::vector.
2175 (allocate_piece_closure): Adjust, change parameter to
2176 std::vector rvalue and std::move it to piece_closure.
2177 (rw_pieced_value): Adjust.
2178 (check_pieced_synthetic_pointer): Adjust.
2179 (indirect_synthetic_pointer): Adjust.
2180 (coerce_pieced_ref): Adjust.
2181 (free_pieced_value_closure): Adjust. Use delete to free
2182 piece_closure.
2183 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
2184 to allocate_piece_closure.
2185 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
2186
2187 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
2188
2189 * probe.h (probe_ops_cp): Remove typedef.
2190 (DEF_VEC_P (probe_ops_cp)): Remove.
2191 (all_probe_ops): Change type to std::vector.
2192 * probe.c (info_probes_for_ops): Adjust to vector change.
2193 (probe_linespec_to_ops): Likewise.
2194 (all_probe_ops): Change type to std::vector.
2195 (_initialize_probe): Adjust to vector change.
2196 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
2197 * elfread.c (elf_get_probes): Likewise.
2198 * stap-probe.c (_initialize_stap_probe): Likewise.
2199
2200 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
2201
2202 * probe.h (struct bound_probe): Define constructors.
2203 * probe.c (bound_probe_s): Remove typedef.
2204 (DEF_VEC_O (bound_probe_s)): Remove VEC.
2205 (collect_probes): Change return type to std::vector, remove
2206 cleanup.
2207 (compare_probes): Return bool, change parameter type. Change
2208 semantic to "less than".
2209 (gen_ui_out_table_header_info): Change parameter to std::vector
2210 and update.
2211 (exists_probe_with_pops): Likewise.
2212 (info_probes_for_ops): Update to std::vector change.
2213 (enable_probes_command): Likewise.
2214 (disable_probes_command): Likewise.
2215
2216 2017-09-12 Simon Marchi <simon.marchi@ericsson.com>
2217
2218 * probe.h (struct probe_ops) <get_probes>: Change parameter from
2219 vec to std::vector.
2220 * probe.c (parse_probes_in_pspace): Update.
2221 (find_probes_in_objfile): Update.
2222 (find_probe_by_pc): Update.
2223 (collect_probes): Update.
2224 (probe_any_get_probes): Update.
2225 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
2226 return type to reference to std::vector.
2227 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
2228 std::vector and update.
2229 (dtrace_process_dof): Likewise.
2230 (dtrace_get_probes): Likewise.
2231 * elfread.c (elf_get_probes): Change return type to std::vector,
2232 store an std::vector in bfd_data.
2233 (probe_key_free): Update to std::vector.
2234 * stap-probe.c (handle_stap_probe): Change parameter to
2235 std::vector and update.
2236 (stap_get_probes): Likewise.
2237 * symfile-debug.c (debug_sym_get_probes): Change return type to
2238 std::vector and update.
2239
2240 2017-09-11 Tom Tromey <tom@tromey.com>
2241
2242 * breakpoint.c (program_breakpoint_here_p): Update.
2243 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
2244 from make_show_memory_breakpoints_cleanup. Return a
2245 scoped_restore_tmpl<int>.
2246 (restore_show_memory_breakpoints): Remove.
2247 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
2248 * mem-break.c (memory_validate_breakpoint): Update.
2249 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
2250 (ia64_memory_remove_breakpoint): Update.
2251 (ia64_breakpoint_from_pc): Update.
2252 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
2253 from make_show_memory_breakpoints_cleanup.
2254
2255 2017-09-11 Tom Tromey <tom@tromey.com>
2256
2257 * d-namespace.c (d_lookup_symbol): Use std::string.
2258 (find_symbol_in_baseclass): Likewise.
2259
2260 2017-09-11 Tom Tromey <tom@tromey.com>
2261
2262 * ctf.c (ctf_start): Use std::string.
2263
2264 2017-09-11 Tom Tromey <tom@tromey.com>
2265
2266 * ada-lang.c (is_known_support_routine): Update.
2267 (ada_unhandled_exception_name_addr_from_raise): Update.
2268 * guile/scm-frame.c (gdbscm_frame_name): Update.
2269 * python/py-frame.c (frapy_name): Update.
2270 (frapy_function): Update.
2271 * stack.h (find_frame_funname): Update.
2272 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
2273 (print_frame): Update.
2274
2275 2017-09-11 Tom Tromey <tom@tromey.com>
2276
2277 * findcmd.c (put_bits): Take a gdb::byte_vector.
2278 (parse_find_args): Return gdb::byte_vector. "args" now const.
2279 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
2280 cleanups.
2281 (find_command): Update.
2282
2283 2017-09-11 Tom Tromey <tom@tromey.com>
2284
2285 * cli/cli-script.c (class scoped_restore_hook_in): New.
2286 (clear_hook_in_cleanup): Remove.
2287 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
2288 scoped_restore_hook_in.
2289
2290 2017-09-11 Tom Tromey <tom@tromey.com>
2291
2292 * cli/cli-script.c (restore_interp): Remove.
2293 (read_command_lines): Use scoped_restore_interp.
2294 * interps.c (scoped_restore_interp::set_temp): Rename from
2295 interp_set_temp.
2296 * interps.h (class scoped_restore_interp): New.
2297 (interp_set_temp): Remove.
2298
2299 2017-09-11 Tom Tromey <tom@tromey.com>
2300
2301 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
2302 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
2303 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
2304 scoped_restore.
2305 (mi_cmd_break_insert_1): Update.
2306 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
2307 scoped_restore.
2308
2309 2017-09-11 Tom Tromey <tom@tromey.com>
2310
2311 * demangle.c (demangle_command): Update.
2312 * breakpoint.c (disable_command): Update.
2313 (enable_command): Update.
2314 (find_location_by_number): Make "number" const. Use
2315 get_number_trailer.
2316 * cli/cli-utils.c (extract_arg): Return std::string.
2317 * probe.c (parse_probe_linespec): Update. Change types.
2318 (collect_probes): Take string arguments.
2319 (parse_probe_linespec): Likewise.
2320 (info_probes_for_ops): Update.
2321 (enable_probes_command): Update.
2322 (disable_probes_command): Update.
2323 * break-catch-sig.c (catch_signal_split_args): Update.
2324 * mi/mi-parse.c (mi_parse): Update.
2325
2326 2017-09-11 Tom Tromey <tom@tromey.com>
2327
2328 * language.h (language_enum): Make argument const.
2329 * language.c (language_enum): Make argument const.
2330
2331 2017-09-11 Tom Tromey <tom@tromey.com>
2332
2333 * common/common-utils.h (skip_to_space): Remove macro, redeclare
2334 as function.
2335 (skip_to_space): Rename from skip_to_space_const.
2336 * common/common-utils.c (skip_to_space): New function.
2337 (skip_to_space): Rename from skip_to_space_const.
2338 * cli/cli-utils.h (get_number): Rename from get_number_const.
2339 (extract_arg): Rename from extract_arg_const.
2340 * cli/cli-utils.c (get_number): Rename from get_number_const.
2341 (extract_arg): Rename from extract_arg_const.
2342 (number_or_range_parser::get_number): Use ::get_number.
2343 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
2344 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
2345 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
2346 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
2347 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
2348 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
2349 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
2350 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
2351
2352 2017-09-11 Tom Tromey <tom@tromey.com>
2353
2354 * python/python.c (do_start_initialization): Use
2355 py-event-types.def to initialize types.
2356 Define all object type structures.
2357 * python/python-internal.h: Don't declare event initialization
2358 functions.
2359 * python/py-threadevent.c (thread_event_object_type): Don't
2360 define.
2361 * python/py-stopevent.c (stop_event_object_type): Don't define.
2362 * python/py-signalevent.c (signal_event_object_type): Don't
2363 declare or define.
2364 * python/py-newobjfileevent.c (new_objfile_event_object_type)
2365 (clear_objfiles_event_object_type): Don't declare or define.
2366 * python/py-infevents.c (inferior_call_pre_event_object_type)
2367 (inferior_call_post_event_object_type)
2368 (register_changed_event_object_type)
2369 (memory_changed_event_object_type): Don't declare or define.
2370 * python/py-inferior.c (new_thread_event_object_type)
2371 (new_inferior_event_object_type)
2372 (inferior_deleted_event_object_type): Don't declare or define.
2373 * python/py-exitedevent.c (exited_event_object_type): Don't
2374 declare or define.
2375 * python/py-evts.c (gdbpy_initialize_py_events): Use
2376 py-all-events.def.
2377 * python/py-events.h (thread_event_object_type): Don't declare.
2378 (events_object): Use py-all-events.def.
2379 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
2380 py-event-types.def.
2381 * python/py-event-types.def: New file.
2382 * python/py-continueevent.c (create_continue_event_object): Don't
2383 declare or define.
2384 * python/py-bpevent.c (breakpoint_event_object_type): Don't
2385 declare or define.
2386 * python/py-all-events.def: New file.
2387
2388 2017-09-11 Tom Tromey <tom@tromey.com>
2389
2390 * python/py-threadevent.c (create_thread_event_object): Return
2391 gdbpy_ref.
2392 * python/py-stopevent.h (create_stop_event_object)
2393 (create_breakpoint_event_object, create_signal_event_object):
2394 Update.
2395 * python/py-stopevent.c (create_stop_event_object): Return
2396 gdbpy_ref.
2397 (emit_stop_event): Update.
2398 * python/py-signalevent.c (create_signal_event_object): Return
2399 gdbpy_ref.
2400 * python/py-infevents.c (create_inferior_call_event_object):
2401 Update.
2402 * python/py-event.h (create_event_object)
2403 (create_thread_event_object): Update.
2404 * python/py-event.c (create_event_object): Return gdbpy_ref.
2405 * python/py-continueevent.c: Return gdbpy_ref.
2406 * python/py-bpevent.c (create_breakpoint_event_object): Return
2407 gdbpy_ref.
2408
2409 2017-09-11 Tom Tromey <tom@tromey.com>
2410
2411 PR python/15622:
2412 * NEWS: Add entry.
2413 * python/python.c (do_start_initialization): Initialize new event
2414 types.
2415 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
2416 (gdbpy_initialize_inferior_deleted_event)
2417 (gdbpy_initialize_new_thread_event): Declare.
2418 * python/py-threadevent.c (create_thread_event_object): Add option
2419 "thread" parameter.
2420 * python/py-inferior.c (new_thread_event_object_type)
2421 (new_inferior_event_object_type)
2422 (inferior_deleted_event_object_type): Declare.
2423 (python_new_inferior, python_inferior_deleted): New functions.
2424 (add_thread_object): Emit new_thread event.
2425 (gdbpy_initialize_inferior): Attach new functions to corresponding
2426 observers.
2427 (new_thread, new_inferior, inferior_deleted): Define new event
2428 types.
2429 * python/py-evts.c (gdbpy_initialize_py_events): Add new
2430 registries.
2431 * python/py-events.h (events_object) <new_inferior,
2432 inferior_deleted, new_thread>: New fields.
2433 * python/py-event.h (create_thread_event_breakpoint): Add optional
2434 "thread" parameter.
2435
2436 2017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
2437
2438 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
2439 check current_ui instead.
2440 (internal_vproblem): Likewise.
2441
2442 2017-09-09 Simon Marchi <simon.marchi@ericsson.com>
2443
2444 * thread.c (print_thread_info_1): Remove unnecessary calls to
2445 uiout->is_mi_like_p.
2446
2447 2017-09-09 Tom Tromey <tom@tromey.com>
2448
2449 * namespace.h (add_using_directive): Update.
2450 * namespace.c (add_using_directive): Change type of excludes to
2451 std::vector.
2452 * dwarf2read.c (read_import_statement): Use std::vector.
2453 (read_namespace): Update.
2454 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
2455
2456 2017-09-09 Tom Tromey <tom@tromey.com>
2457
2458 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
2459
2460 2017-09-09 Tom Tromey <tom@tromey.com>
2461
2462 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
2463
2464 2017-09-09 Tom Tromey <tom@tromey.com>
2465
2466 * stack.c (func_command): Use gdb::def_vector.
2467
2468 2017-09-09 Tom Tromey <tom@tromey.com>
2469
2470 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
2471 ui_out_emit_list, ui_out_emit_tuple.
2472 (mi_cmd_var_update): Likewise.
2473
2474 2017-09-09 Tom Tromey <tom@tromey.com>
2475
2476 * mi/mi-interp.c (mi_user_selected_context_changed): Use
2477 ui_out_redirect_pop.
2478 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
2479 ui_out_redirect_pop.
2480 * utils.c (do_ui_out_redirect_pop)
2481 (make_cleanup_ui_out_redirect_pop): Remove.
2482 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
2483 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
2484 * ui-out.h (ui_out_redirect_pop): New class.
2485
2486 2017-09-09 Tom Tromey <tom@tromey.com>
2487
2488 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
2489 (list_available_thread_groups, mi_cmd_list_thread_groups)
2490 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
2491 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
2492 Likewise.
2493
2494 2017-09-09 Tom Tromey <tom@tromey.com>
2495
2496 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
2497 ui_out_emit_tuple.
2498
2499 2017-09-09 Tom Tromey <tom@tromey.com>
2500
2501 * target.c (flash_erase_command): Use ui_out_emit_tuple.
2502 * stack.c (print_frame): Use ui_out_emit_tuple.
2503 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
2504 (info_spu_mailbox_command, info_spu_dma_command)
2505 (info_spu_proxydma_command): Likewise.
2506 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
2507 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
2508 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
2509 ui_out_emit_tuple.
2510 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
2511
2512 2017-09-09 Tom Tromey <tom@tromey.com>
2513
2514 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
2515 (class ui_out_emit_table): Update comment.
2516 * ui-out.c (do_cleanup_table_end)
2517 (make_cleanup_ui_out_table_begin_end): Remove.
2518 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
2519 (info_spu_dma_cmdlist): Likewise.
2520 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
2521 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
2522 ui_out_emit_table.
2523
2524 2017-09-09 Tom Tromey <tom@tromey.com>
2525
2526 * thread.c (print_thread_info_1): Use ui_out_emit_table,
2527 ui_out_emit_list, gdb::optional.
2528
2529 2017-09-09 John Baldwin <jhb@FreeBSD.org>
2530
2531 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
2532 prototype.
2533 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
2534 prototype.
2535 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
2536 prototype.
2537 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
2538 * ada-exp.y: Remove _initialize_ada_exp prototype.
2539 * ada-lang.c: Remove _initialize_ada_language prototype.
2540 * ada-tasks.c: Remove _initialize_tasks prototype.
2541 * addrmap.c: Remove _initialize_addrmap prototype.
2542 * agent.c: Remove _initialize_agent prototype.
2543 * aix-thread.c: Remove _initialize_aix_thread prototype.
2544 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
2545 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
2546 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
2547 prototype.
2548 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
2549 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
2550 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
2551 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
2552 prototype.
2553 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
2554 prototype.
2555 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
2556 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
2557 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
2558 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
2559 prototype.
2560 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
2561 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
2562 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
2563 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
2564 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
2565 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
2566 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
2567 prototype.
2568 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
2569 prototype.
2570 * annotate.c: Remove _initialize_annotate prototype.
2571 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
2572 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
2573 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
2574 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
2575 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
2576 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
2577 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
2578 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
2579 prototype.
2580 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
2581 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
2582 * auto-load.c: Remove _initialize_auto_load prototype.
2583 * auxv.c: Remove _initialize_auxv prototype.
2584 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
2585 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
2586 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
2587 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
2588 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
2589 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
2590 prototype.
2591 * break-catch-throw.c: Remove _initialize_break_catch_throw
2592 prototype.
2593 * breakpoint.c: Remove _initialize_breakpoint prototype.
2594 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
2595 * btrace.c: Remove _initialize_btrace prototype.
2596 * charset.c: Remove _initialize_charset prototype.
2597 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
2598 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
2599 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
2600 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
2601 * cli/cli-script.c: Remove _initialize_cli_script prototype.
2602 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
2603 * coffread.c: Remove _initialize_coffread prototype.
2604 * compile/compile.c: Remove _initialize_compile prototype.
2605 * complaints.c: Remove _initialize_complaints prototype.
2606 * completer.c: Remove _initialize_completer prototype.
2607 * copying.awk: Remove _initialize_copying prototype.
2608 * copying.c: Regenerate.
2609 * core-regset.c: Remove _initialize_core_regset prototype.
2610 * corefile.c: Remove _initialize_core prototype.
2611 * corelow.c: Remove _initialize_corelow prototype.
2612 * cp-abi.c: Remove _initialize_cp_abi prototype.
2613 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
2614 * cp-support.c: Remove _initialize_cp_support prototype.
2615 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
2616 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
2617 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
2618 * ctf.c: Remove _initialize_ctf prototype.
2619 * d-lang.c: Remove _initialize_d_language prototype.
2620 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
2621 prototype.
2622 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
2623 * dbxread.c: Remove _initialize_dbxread prototype.
2624 * dcache.c: Remove _initialize_dcache prototype.
2625 * demangle.c: Remove _initialize_demangler prototype.
2626 * disasm-selftests.c: Remove _initialize_disasm_selftests
2627 prototype.
2628 * disasm.c: Remove _initialize_disasm prototype.
2629 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
2630 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
2631 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
2632 prototype.
2633 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
2634 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
2635 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
2636 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
2637 * elfread.c: Remove _initialize_elfread prototype.
2638 * exec.c: Remove _initialize_exec prototype.
2639 * extension.c: Remove _initialize_extension prototype.
2640 * f-lang.c: Remove _initialize_f_language prototype.
2641 * f-valprint.c: Remove _initialize_f_valprint prototype.
2642 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
2643 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
2644 * filesystem.c: Remove _initialize_filesystem prototype.
2645 * findcmd.c: Remove _initialize_mem_search prototype.
2646 * fork-child.c: Remove _initialize_fork_child prototype.
2647 * frame-base.c: Remove _initialize_frame_base prototype.
2648 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
2649 * frame.c: Remove _initialize_frame prototype.
2650 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
2651 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
2652 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
2653 * gcore.c: Remove _initialize_gcore prototype.
2654 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
2655 * gdbarch.c: Regenerate.
2656 * gdbarch.sh: Remove _initialize_gdbarch prototype.
2657 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
2658 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
2659 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
2660 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
2661 * go-lang.c: Remove _initialize_go_language prototype.
2662 * go32-nat.c: Remove _initialize_go32_nat prototype.
2663 * guile/guile.c: Remove _initialize_guile prototype.
2664 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
2665 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
2666 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
2667 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
2668 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
2669 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
2670 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
2671 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
2672 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
2673 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
2674 prototype.
2675 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
2676 prototype.
2677 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
2678 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
2679 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
2680 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
2681 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
2682 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
2683 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
2684 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
2685 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
2686 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
2687 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
2688 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
2689 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
2690 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
2691 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
2692 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
2693 prototype.
2694 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
2695 prototype.
2696 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
2697 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
2698 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
2699 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
2700 * infcall.c: Remove _initialize_infcall prototype.
2701 * infcmd.c: Remove _initialize_infcmd prototype.
2702 * inferior.c: Remove _initialize_inferiors prototype.
2703 * inflow.c: Remove _initialize_inflow prototype.
2704 * infrun.c: Remove _initialize_infrun prototype.
2705 * interps.c: Remove _initialize_interpreter prototype.
2706 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
2707 * jit.c: Remove _initialize_jit prototype.
2708 * language.c: Remove _initialize_language prototype.
2709 * linux-fork.c: Remove _initialize_linux_fork prototype.
2710 * linux-nat.c: Remove _initialize_linux_nat prototype.
2711 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
2712 * linux-thread-db.c: Remove _initialize_thread_db prototype.
2713 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
2714 * m2-lang.c: Remove _initialize_m2_language prototype.
2715 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
2716 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
2717 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
2718 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
2719 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
2720 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
2721 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
2722 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
2723 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
2724 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
2725 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
2726 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
2727 * machoread.c: Remove _initialize_machoread prototype.
2728 * macrocmd.c: Remove _initialize_macrocmd prototype.
2729 * macroscope.c: Remove _initialize_macroscope prototype.
2730 * maint.c: Remove _initialize_maint_cmds prototype.
2731 * mdebugread.c: Remove _initialize_mdebugread prototype.
2732 * memattr.c: Remove _initialize_mem prototype.
2733 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
2734 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
2735 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
2736 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
2737 * mi/mi-main.c: Remove _initialize_mi_main prototype.
2738 * microblaze-linux-tdep.c: Remove
2739 _initialize_microblaze_linux_tdep prototype.
2740 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
2741 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
2742 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
2743 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
2744 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
2745 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
2746 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
2747 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
2748 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
2749 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
2750 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
2751 prototype.
2752 * mipsread.c: Remove _initialize_mipsread prototype.
2753 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
2754 prototype.
2755 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
2756 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
2757 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
2758 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
2759 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
2760 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
2761 prototype.
2762 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
2763 * nto-procfs.c: Remove _initialize_procfs prototype.
2764 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
2765 * objc-lang.c: Remove _initialize_objc_language prototype.
2766 * objfiles.c: Remove _initialize_objfiles prototype.
2767 * observer.c: Remove observer_test_first_notification_function,
2768 observer_test_second_notification_function,
2769 observer_test_third_notification_function, and
2770 _initialize_observer prototypes.
2771 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
2772 * osabi.c: Remove _initialize_gdb_osabi prototype.
2773 * osdata.c: Remove _initialize_osdata prototype.
2774 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
2775 * parse.c: Remove _initialize_parse prototype.
2776 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
2777 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
2778 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
2779 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
2780 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
2781 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
2782 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
2783 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
2784 * printcmd.c: Remove _initialize_printcmd prototype.
2785 * probe.c: Remove _initialize_probe prototype.
2786 * proc-api.c: Remove _initialize_proc_api prototype.
2787 * proc-events.c: Remove _initialize_proc_events prototype.
2788 * proc-service.c: Remove _initialize_proc_service prototype.
2789 * procfs.c: Remove _initialize_procfs prototype.
2790 * psymtab.c: Remove _initialize_psymtab prototype.
2791 * python/python.c: Remove _initialize_python prototype.
2792 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
2793 * record-btrace.c: Remove _initialize_record_btrace prototype.
2794 * record-full.c: Remove _initialize_record_full prototype.
2795 * record.c: Remove _initialize_record prototype.
2796 * regcache.c: Remove _initialize_regcache prototype.
2797 * reggroups.c: Remove _initialize_reggroup prototype.
2798 * remote-notif.c: Remove _initialize_notif prototype.
2799 * remote-sim.c: Remove _initialize_remote_sim prototype.
2800 * remote.c: Remove _initialize_remote prototype.
2801 * reverse.c: Remove _initialize_reverse prototype.
2802 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
2803 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
2804 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
2805 prototype.
2806 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
2807 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
2808 * rust-exp.y: Remove _initialize_rust_exp prototype.
2809 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
2810 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
2811 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
2812 * score-tdep.c: Remove _initialize_score_tdep prototype.
2813 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
2814 prototype.
2815 * ser-go32.c: Remove _initialize_ser_dos prototype.
2816 * ser-mingw.c: Remove _initialize_ser_windows prototype.
2817 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
2818 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
2819 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
2820 * serial.c: Remove _initialize_serial prototype.
2821 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
2822 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
2823 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
2824 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
2825 * skip.c: Remove _initialize_step_skip prototype.
2826 * sol-thread.c: Remove _initialize_sol_thread prototype.
2827 * solib-aix.c: Remove _initialize_solib_aix prototype.
2828 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
2829 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
2830 * solib-frv.c: Remove _initialize_frv_solib prototype.
2831 * solib-spu.c: Remove _initialize_spu_solib prototype.
2832 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
2833 * solib-target.c: Remove _initialize_solib_target prototype.
2834 * solib.c: Remove _initialize_solib prototype.
2835 * source.c: Remove _initialize_source prototype.
2836 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
2837 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
2838 prototype.
2839 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
2840 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
2841 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
2842 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
2843 prototype.
2844 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
2845 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
2846 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
2847 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
2848 prototype.
2849 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
2850 prototype.
2851 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
2852 prototype.
2853 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
2854 prototype.
2855 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
2856 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
2857 prototype.
2858 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
2859 prototype.
2860 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
2861 prototype.
2862 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
2863 prototype.
2864 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
2865 prototype.
2866 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
2867 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
2868 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
2869 * stabsread.c: Remove _initialize_stabsread prototype.
2870 * stack.c: Remove _initialize_stack prototype.
2871 * stap-probe.c: Remove _initialize_stap_probe prototype.
2872 * std-regs.c: Remove _initialize_frame_reg prototype.
2873 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
2874 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
2875 * symfile.c: Remove _initialize_symfile prototype.
2876 * symmisc.c: Remove _initialize_symmisc prototype.
2877 * symtab.c: Remove _initialize_symtab prototype.
2878 * target-dcache.c: Remove _initialize_target_dcache prototype.
2879 * target-descriptions.c: Remove _initialize_target_descriptions
2880 prototype.
2881 * thread.c: Remove _initialize_thread prototype.
2882 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
2883 prototype.
2884 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
2885 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
2886 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
2887 prototype.
2888 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
2889 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
2890 * tracefile.c: Remove _initialize_tracefile prototype.
2891 * tracepoint.c: Remove _initialize_tracepoint prototype.
2892 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
2893 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
2894 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
2895 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
2896 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
2897 * tui/tui-win.c: Remove _initialize_tui_win prototype.
2898 * tui/tui.c: Remove _initialize_tui prototype.
2899 * typeprint.c: Remove _initialize_typeprint prototype.
2900 * user-regs.c: Remove _initialize_user_regs prototype.
2901 * utils.c: Remove _initialize_utils prototype.
2902 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
2903 * valarith.c: Remove _initialize_valarith prototype.
2904 * valops.c: Remove _initialize_valops prototype.
2905 * valprint.c: Remove _initialize_valprint prototype.
2906 * value.c: Remove _initialize_values prototype.
2907 * varobj.c: Remove _initialize_varobj prototype.
2908 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
2909 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
2910 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
2911 * windows-nat.c: Remove _initialize_windows_nat,
2912 _initialize_check_for_gdb_ini, and _initialize_loadable
2913 prototypes.
2914 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
2915 * xcoffread.c: Remove _initialize_xcoffread prototype.
2916 * xml-support.c: Remove _initialize_xml_support prototype.
2917 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
2918 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
2919 prototype.
2920 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
2921 prototype.
2922 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
2923
2924 2017-09-08 Keith Seitz <keiths@redhat.com>
2925
2926 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
2927 field.
2928
2929 2017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
2930
2931 * f-valprint.c (f_val_print): Remove check for one byte
2932 sized integers. Remove printing of character type.
2933
2934 2017-09-08 Frank Penczek <frank.penczek@intel.com>
2935 Christoph Weinmann <christoph.t.weinmann@intel.com>
2936 Bernhard Heckel <bernhard.heckel@intel.com>
2937
2938 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
2939 to maintain proper indentation when printing pointers/refs.
2940
2941 2017-09-07 Joel Brobecker <brobecker@adacore.com>
2942
2943 GDB 8.0.1 released.
2944
2945 2017-09-07 Joel Brobecker <brobecker@adacore.com>
2946
2947 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
2948
2949 2017-09-05 Tom Tromey <tom@tromey.com>
2950
2951 * parse.c (funcall_chain): Now a std::vector.
2952 (start_arglist, end_arglist): Simplify.
2953 (free_funcalls): Remove.
2954 (parse_exp_in_context_1): Remove cleanup.
2955
2956 2017-09-05 Tom Tromey <tom@tromey.com>
2957
2958 * go-exp.y (go_parse): Don't create a cleanup.
2959
2960 2017-09-05 Tom Tromey <tom@tromey.com>
2961
2962 * d-exp.y (PrimaryExpression): Use std::string.
2963 (d_parse): Don't create a cleanup.
2964
2965 2017-09-05 Tom Tromey <tom@tromey.com>
2966
2967 * utils.c (do_clear_parser_state): Remove.
2968 (make_cleanup_clear_parser_state): Remove.
2969 * p-exp.y (pascal_parse): Use scoped_restore.
2970 * m2-exp.y (m2_parse): Use scoped_restore.
2971 * f-exp.y (f_parse): Use scoped_restore.
2972 * d-exp.y (d_parse): Use scoped_restore.
2973 * c-exp.y (c_parse): Use scoped_restore.
2974 * ada-exp.y (ada_parse): Use scoped_restore.
2975 * utils.h (make_cleanup_clear_parser_state): Remove.
2976
2977 2017-09-06 Keith Seitz <keiths@redhat.com>
2978
2979 * dwarf2read.c (dw2_linkage_name_attr): New function.
2980 (dw2_linkage_name): New function.
2981 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
2982 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
2983 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
2984
2985 2017-09-06 Kamil Rytarowski <n54@gmx.com>
2986
2987 * config/djgpp/djconfig.sh: Correct shell portability issue.
2988
2989 2017-09-06 Kamil Rytarowski <n54@gmx.com>
2990
2991 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
2992
2993 2017-09-06 John Baldwin <jhb@FreeBSD.org>
2994
2995 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
2996 * NEWS: Mention new FreeBSD/mips native configuration.
2997 * configure.host: Add aarch64*-*-freebsd*.
2998 * configure.nat: Likewise.
2999 * aarch64-fbsd-nat.c: New file.
3000
3001 2017-09-06 John Baldwin <jhb@FreeBSD.org>
3002
3003 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
3004 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
3005 * NEWS: Mention new FreeBSD/aarch64 target.
3006 * configure.tgt: Add aarch64*-*-freebsd*.
3007 * aarch64-fbsd-tdep.c: New file.
3008 * aarch64-fbsd-tdep.h: New file.
3009
3010 2017-09-06 Kamil Rytarowski <n54@gmx.com>
3011
3012 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
3013
3014 2017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3015
3016 * parse.c (find_minsym_type_and_address): Don't relocate addresses
3017 of TLS symbols.
3018
3019 2017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3020
3021 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
3022 call.
3023
3024 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
3025
3026 * infrun.c (follow_exec): Call add_thread after
3027 target_find_description.
3028
3029 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
3030
3031 * infrun.c (handle_inferior_event_1): When exec'ing, read
3032 stop_pc after follow_exec.
3033
3034 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
3035
3036 * remote.c (process_g_packet): Update error message.
3037
3038 2017-09-05 Yao Qi <yao.qi@linaro.org>
3039
3040 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
3041 targets.
3042
3043 2017-09-05 Pedro Alves <palves@redhat.com>
3044
3045 * eval.c (eval_call, evaluate_funcall): New functions, factored
3046 out from ...
3047 (evaluate_subexp_standard): ... this.
3048
3049 2017-09-05 Yao Qi <yao.qi@linaro.org>
3050
3051 * amd64-tdep.c (amd64_target_description): Create target
3052 descriptions.
3053 (_initialize_amd64_tdep): Don't call functions
3054 initialize_tdesc_amd64_*. Add self tests.
3055 * arch/amd64.c (amd64_create_target_description): Add parameter
3056 is_linux. Call set_tdesc_osabi if is_linux is true.
3057 * arch/amd64.h (amd64_create_target_description): Update the
3058 declaration.
3059 * arch/i386.c (i386_create_target_description): Add parameter
3060 is_linux. Call set_tdesc_osabi if is_linux is true.
3061 * arch/i386.h (i386_create_target_description): Update
3062 declaration.
3063 * configure.tgt: Add i386.o to gdb_target_obs.
3064 * features/Makefile (XMLTOC): Remove i386/*.xml.
3065 * features/i386/amd64-avx-avx512.c: Remove.
3066 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
3067 * features/i386/amd64-avx-mpx.c: Remove.
3068 * features/i386/amd64-avx.c: Remove.
3069 * features/i386/amd64-mpx.c: Remove.
3070 * features/i386/amd64.c: Remove.
3071 * features/i386/i386-avx-avx512.c: Remove.
3072 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
3073 * features/i386/i386-avx-mpx.c: Remove.
3074 * features/i386/i386-avx.c: Remove.
3075 * features/i386/i386-mmx.c: Remove.
3076 * features/i386/i386-mpx.c: Remove.
3077 * features/i386/i386.c: Remove.
3078 * i386-tdep.c: Don't include features/i386/i386*.c., include
3079 target-descriptions.h and arch/i386.h.
3080 (i386_target_description): Create target descriptions.
3081 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
3082 functions. Do self tests.
3083
3084 2017-09-05 Yao Qi <yao.qi@linaro.org>
3085
3086 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
3087 * features/i386/amd64-avx-avx512-linux.c: Removed.
3088 * features/i386/amd64-avx-linux.c: Removed.
3089 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
3090 * features/i386/amd64-avx-mpx-linux.c: Removed.
3091 * features/i386/amd64-linux.c: Removed.
3092 * features/i386/amd64-mpx-linux.c: Removed.
3093 * features/i386/x32-avx-avx512-linux.c: Removed.
3094 * features/i386/x32-avx-linux.c: Removed.
3095 * features/i386/x32-linux.c: Removed.
3096
3097 2017-09-05 Yao Qi <yao.qi@linaro.org>
3098
3099 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
3100 features/i386/*.c.
3101 (amd64_linux_read_description): Call
3102 amd64_create_target_description.
3103 * arch/amd64.c: New file.
3104 * arch/amd64.h: New file.
3105 * configure.tgt (x86_64-*-linux*): Append amd64.o.
3106 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
3107
3108 2017-09-05 Yao Qi <yao.qi@linaro.org>
3109
3110 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
3111 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
3112 (amd64_linux_read_description): Create target descriptions.
3113 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
3114 functions. Add unit tests.
3115 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
3116 x32-core.xml.
3117 * features/i386/64bit-avx.c: Generated.
3118 * features/i386/64bit-avx512.c: Generated.
3119 * features/i386/64bit-core.c: Generated.
3120 * features/i386/64bit-linux.c: Generated.
3121 * features/i386/64bit-mpx.c: Generated.
3122 * features/i386/64bit-pkeys.c: Generated.
3123 * features/i386/64bit-segments.c: Generated.
3124 * features/i386/64bit-sse.c: Generated.
3125 * features/i386/x32-core.c: Generated.
3126 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
3127 c files for amd64-linux and x32-linux.
3128
3129 2017-09-05 Yao Qi <yao.qi@linaro.org>
3130
3131 * amd64-linux-tdep.c (amd64_linux_read_description): New
3132 function.
3133 (amd64_linux_core_read_description): Call
3134 amd64_linux_read_description.
3135 (amd64_linux_init_abi): Likewise.
3136 (amd64_x32_linux_init_abi): Likewise.
3137 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
3138 * x86-linux-nat.c (x86_linux_read_description): Call
3139 amd64_linux_read_description.
3140
3141 2017-09-05 Yao Qi <yao.qi@linaro.org>
3142
3143 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
3144 comments.
3145
3146 2017-09-05 Yao Qi <yao.qi@linaro.org>
3147
3148 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
3149 * features/i386/i386-avx-avx512-linux.c: Remove.
3150 * features/i386/i386-avx-linux.c: Remove.
3151 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
3152 * features/i386/i386-avx-mpx-linux.c: Remove.
3153 * features/i386/i386-linux.c: Remove.
3154 * features/i386/i386-mmx-linux.c: Remove.
3155 * features/i386/i386-mpx-linux.c: Remove.
3156
3157 2017-09-05 Yao Qi <yao.qi@linaro.org>
3158
3159 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
3160 (SFILES): Add arch/i386.c.
3161 (HFILES_NO_SRCDIR): Add arch/i386.h.
3162 * arch/i386.c: New file.
3163 * arch/i386.h: New file.
3164 * arch/tdesc.h (allocate_target_description): Declare.
3165 (set_tdesc_architecture): Declare.
3166 (set_tdesc_osabi): Declare.
3167 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
3168 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
3169 include arch/i386.h.
3170 (i386_linux_read_description): Remove code and call
3171 i386_create_target_description.
3172 (set_tdesc_architecture): New function.
3173 (set_tdesc_osabi): New function.
3174 * target-descriptions.h (allocate_target_description): Remove.
3175
3176 2017-09-05 Yao Qi <yao.qi@linaro.org>
3177
3178 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
3179 * target-descriptions.c (tdesc_create_feature): Likewise, and
3180 adjust code.
3181 * features/i386/32bit-avx.c: Re-generated.
3182 * features/i386/32bit-avx512.c: Re-generated.
3183 * features/i386/32bit-core.c: Re-generated.
3184 * features/i386/32bit-linux.c: Re-generated.
3185 * features/i386/32bit-mpx.c: Re-generated.
3186 * features/i386/32bit-pkeys.c: Re-generated.
3187 * features/i386/32bit-sse.c: Re-generated.
3188
3189 2017-09-05 Yao Qi <yao.qi@linaro.org>
3190
3191 * regformats/regdef.h (struct reg): Override operator == and !=.
3192
3193 2017-09-05 Yao Qi <yao.qi@linaro.org>
3194
3195 * arch/tdesc.h: New file.
3196 * regformats/regdat.sh: Generate code using tdesc_create_reg.
3197 * target-descriptions.c: Update comments.
3198 * target-descriptions.h: Include "arch/tdesc.h". Remove the
3199 declarations.
3200 * features/i386/32bit-avx.c: Re-generated.
3201 * features/i386/32bit-avx512.c: Re-generated.
3202 * features/i386/32bit-core.c: Re-generated.
3203 * features/i386/32bit-linux.c: Re-generated.
3204 * features/i386/32bit-mpx.c: Re-generated.
3205 * features/i386/32bit-pkeys.c: Re-generated.
3206 * features/i386/32bit-sse.c: Re-generated.
3207
3208 2017-09-05 Yao Qi <yao.qi@linaro.org>
3209
3210 * regformats/regdat.sh: Update generated code.
3211
3212 2017-09-05 Yao Qi <yao.qi@linaro.org>
3213
3214 * regformats/regdat.sh: Adjust code order.
3215
3216 2017-09-05 Simon Marchi <simon.marchi@ericsson.com>
3217
3218 * expprint.c (dump_subexp_body_standard): Use constant format
3219 string in fprintf_filtered call.
3220
3221 2017-09-04 John Baldwin <jhb@FreeBSD.org>
3222
3223 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
3224 NetBSD/i386.
3225 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
3226
3227 2017-09-04 John Baldwin <jhb@FreeBSD.org>
3228
3229 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
3230
3231 2017-09-04 John Baldwin <jhb@FreeBSD.org>
3232
3233 * bsd-kvm.o: Define _KMEMUSER.
3234 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
3235 * configure: Regenerate.
3236
3237 2017-09-04 John Baldwin <jhb@FreeBSD.org>
3238
3239 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
3240 * i386-fbsd-nat.c: Likewise.
3241
3242 2017-09-04 John Baldwin <jhb@FreeBSD.org>
3243
3244 * unittests/array-view-selftests.c: Add include of <array>.
3245
3246 2017-09-04 John Baldwin <jhb@FreeBSD.org>
3247
3248 * spu-tdep.c (flush_ea_cache): Add missing argument to
3249 call_function_by_hand.
3250
3251 2017-09-04 Pedro Alves <palves@redhat.com>
3252
3253 * NEWS (Safer support for debugging with no debug info): New.
3254
3255 2017-09-04 Pedro Alves <palves@redhat.com>
3256
3257 * c-exp.y (function_method, function_method_void): Add current
3258 instance flags to TYPE_INSTANCE.
3259 * dwarf2read.c (check_modifier): New.
3260 (compute_delayed_physnames): Assert that only C++ adds delayed
3261 physnames. Mark fn_fields as const/volatile depending on
3262 physname.
3263 * eval.c (make_params): New type_instance_flags parameter. Use
3264 it as the new type's instance flags.
3265 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
3266 flags element and pass it to make_params.
3267 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
3268 instance flags element.
3269 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
3270 * gdbtypes.h: Include "enum-flags.h".
3271 (type_instance_flags): New enum-flags type.
3272 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
3273 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
3274 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
3275 (follow_type_instance_flags): New function.
3276 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
3277 * parser-defs.h (follow_type_instance_flags): Declare.
3278 * valops.c (value_struct_elt_for_reference): const/volatile must
3279 match too.
3280
3281 2017-09-04 Pedro Alves <palves@redhat.com>
3282
3283 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
3284 function/method scopes; lookup the nested name as a function local
3285 static variable.
3286
3287 2017-09-04 Pedro Alves <palves@redhat.com>
3288
3289 (%type <voidval>): Add function_method.
3290 * c-exp.y (exp): New production for calls with no arguments.
3291 (function_method, function_method_void_or_typelist): New
3292 productions.
3293 (exp): New production for "method()::static_var".
3294 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
3295 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
3296 Handle OP_FUNC_STATIC_VAR.
3297 * parse.c (operator_length_standard):
3298 Handle OP_FUNC_STATIC_VAR.
3299
3300 2017-09-04 Pedro Alves <palves@redhat.com>
3301
3302 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
3303 handling.
3304 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
3305 Ditto.
3306 * parse.c (operator_length_standard, operator_check_standard):
3307 Ditto.
3308 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
3309
3310 2017-09-04 Pedro Alves <palves@redhat.com>
3311
3312 * ax-gdb.c: Include "typeprint.h".
3313 (gen_expr_for_cast): New function.
3314 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
3315 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
3316 type is unknown.
3317 * dwarf2read.c (new_symbol_full): Fallback to int instead of
3318 nodebug_data_symbol.
3319 * eval.c: Include "typeprint.h".
3320 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
3321 Error out if symbol has unknown type.
3322 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
3323 evaluate_subexp_for_cast.
3324 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
3325 OP_VAR_MSYM_VALUE.
3326 (evaluate_subexp_for_cast): New function.
3327 * gdbtypes.c (init_nodebug_var_type): New function.
3328 (objfile_type): Use it to initialize types of variables with no
3329 debug info.
3330 * typeprint.c (error_unknown_type): New.
3331 * typeprint.h (error_unknown_type): New declaration.
3332 * compile/compile-c-types.c (convert_type_basic): Handle
3333 TYPE_CODE_ERROR; warn and fallback to int for variables with
3334 unknown type.
3335
3336 2017-09-04 Pedro Alves <palves@redhat.com>
3337
3338 * eval.c (evaluate_var_value): New function, factored out from ...
3339 (evaluate_subexp_standard): ... here.
3340
3341 2017-09-04 Pedro Alves <palves@redhat.com>
3342
3343 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
3344 Remove useless assignments to 'op'.
3345
3346 2017-09-04 Pedro Alves <palves@redhat.com>
3347
3348 * eval.c (eval_skip_value): New function.
3349 (evaluate_subexp_standard): Use it.
3350
3351 2017-09-04 Pedro Alves <palves@redhat.com>
3352
3353 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
3354 function name from symbol/minsym and pass it to
3355 error_call_unknown_return_type.
3356
3357 2017-09-04 Pedro Alves <palves@redhat.com>
3358
3359 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
3360 * ax-gdb.c (gen_msym_var_ref): New function.
3361 (gen_expr): Handle OP_VAR_MSYM_VALUE.
3362 * eval.c (evaluate_var_msym_value): New function.
3363 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
3364 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
3365 to call_function_by_hand.
3366 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
3367 Handle OP_VAR_MSYM_VALUE.
3368 (union exp_element) <msymbol>: New field.
3369 * minsyms.h (struct type): Forward declare.
3370 (find_minsym_type_and_address): Declare.
3371 * parse.c (write_exp_elt_msym): New function.
3372 (write_exp_msymbol): Delete, refactored as ...
3373 (find_minsym_type_and_address): ... this new function.
3374 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
3375 (operator_length_standard, operator_check_standard): Handle
3376 OP_VAR_MSYM_VALUE.
3377 * std-operator.def (OP_VAR_MSYM_VALUE): New.
3378
3379 2017-09-04 Pedro Alves <palves@redhat.com>
3380
3381 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
3382 TYPE_GNU_IFUNC specially here. Throw error if return type is
3383 unknown.
3384 * ada-typeprint.c (print_func_type): Handle functions with unknown
3385 return type.
3386 * c-typeprint.c (c_type_print_base): Handle functions and methods
3387 with unknown return type.
3388 * compile/compile-c-symbols.c (convert_symbol_bmsym)
3389 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
3390 * compile/compile-c-types.c: Include "objfiles.h".
3391 (convert_func): For functions with unknown return type, warn and
3392 default to int.
3393 * compile/compile-object-run.c (compile_object_run): Adjust call
3394 to call_function_by_hand_dummy.
3395 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
3396 call_function_by_hand.
3397 * eval.c (evaluate_subexp_standard): Adjust calls to
3398 call_function_by_hand. Handle functions and methods with unknown
3399 return type. Pass expect_type to call_function_by_hand.
3400 * f-typeprint.c (f_type_print_base): Handle functions with unknown
3401 return type.
3402 * gcore.c (call_target_sbrk): Adjust call to
3403 call_function_by_hand.
3404 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
3405 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
3406 an integer address type instead of nodebug.
3407 * guile/scm-value.c (gdbscm_value_call): Adjust call to
3408 call_function_by_hand.
3409 * infcall.c (error_call_unknown_return_type): New function.
3410 (call_function_by_hand): New "default_return_type" parameter.
3411 Pass it down.
3412 (call_function_by_hand_dummy): New "default_return_type"
3413 parameter. Use it instead of defaulting to int. If there's no
3414 default and the return type is unknown, throw an error. If
3415 there's a default return type, and the called function has no
3416 debug info, then assume the function is prototyped.
3417 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
3418 New "default_return_type" parameter.
3419 (error_call_unknown_return_type): New declaration.
3420 * linux-fork.c (call_lseek): Cast return type of lseek.
3421 (inferior_call_waitpid, checkpoint_command): Adjust calls to
3422 call_function_by_hand.
3423 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
3424 calls to call_function_by_hand.
3425 * m2-typeprint.c (m2_procedure): Handle functions with unknown
3426 return type.
3427 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3428 (value_nsstring, print_object_command): Adjust calls to
3429 call_function_by_hand.
3430 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
3431 functions with unknown return type.
3432 (pascal_type_print_func_varspec_suffix): New function.
3433 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
3434 TYPE_CODE_METHOD>: Use it.
3435 * python/py-value.c (valpy_call): Adjust call to
3436 call_function_by_hand.
3437 * rust-lang.c (rust_evaluate_funcall): Adjust call to
3438 call_function_by_hand.
3439 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
3440 call_function_by_hand.
3441 * valops.c (value_allocate_space_in_inferior): Adjust call to
3442 call_function_by_hand.
3443 * typeprint.c (type_print_unknown_return_type): New function.
3444 * typeprint.h (type_print_unknown_return_type): New declaration.
3445
3446 2017-09-04 Pedro Alves <palves@redhat.com>
3447
3448 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
3449 types with more than one parameter as prototyped.
3450
3451 2017-09-04 Pedro Alves <palves@redhat.com>
3452
3453 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
3454 (disassemble_command): Use gdb_disassembly_flags instead of bare
3455 int.
3456 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
3457 (dump_insns, do_mixed_source_and_assembly_deprecated)
3458 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
3459 Use gdb_disassembly_flags instead of bare int.
3460 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
3461 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
3462 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
3463 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
3464 (enum gdb_disassembly_flag): ... values of this new enumeration.
3465 (gdb_disassembly_flags): Define.
3466 (gdb_disassembly)
3467 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
3468 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
3469 gdb_disassembly_flags instead of bare int.
3470 * record-btrace.c (btrace_insn_history)
3471 (record_btrace_insn_history, record_btrace_insn_history_range)
3472 (record_btrace_insn_history_from): Use gdb_disassembly_flags
3473 instead of bare int.
3474 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
3475 Use gdb_disassembly_flags instead of bare int.
3476 * target-debug.h (target_debug_print_gdb_disassembly_flags):
3477 Define.
3478 * target-delegates.c: Regenerate.
3479 * target.c (target_insn_history, target_insn_history_from)
3480 (target_insn_history_range): Use gdb_disassembly_flags instead of
3481 bare int.
3482 * target.h: Include "disasm.h".
3483 (struct target_ops) <to_insn_history, to_insn_history_from,
3484 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
3485 int.
3486 (target_insn_history, target_insn_history_from)
3487 (target_insn_history_range): Use gdb_disassembly_flags instead of
3488 bare int.
3489
3490 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
3491
3492 * cli/cli-script.c (build_command_line): For if/while commands,
3493 check whether args is empty.
3494
3495 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
3496
3497 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
3498 (enum command_control_type): Likewise.
3499 (struct command_line): Likewise.
3500 (free_command_lines): Likewise.
3501 (struct command_lines_deleter): Likewise.
3502 (command_line_up): Likewise.
3503 (read_command_lines): Likewise.
3504 (read_command_lines_1): Likewise.
3505 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
3506 (enum command_control_type): Likewise.
3507 (struct command_line): Likewise.
3508 (free_command_lines): Likewise.
3509 (struct command_lines_deleter): Likewise.
3510 (command_line_up): Likewise.
3511 (read_command_lines): Likewise.
3512 (read_command_lines_1): Likewise.
3513 * breakpoint.h: Include cli/cli-script.h.
3514 * extension-priv.h: Likewise.
3515 * gdbcmd.h: Likewise.
3516
3517 2017-09-04 Pedro Alves <palves@redhat.com>
3518
3519 * ada-lang.c (is_known_support_routine): Move sal declaration to
3520 where it is initialized.
3521 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
3522 (parse_breakpoint_sals, decode_static_tracepoint_spec)
3523 (clear_command, update_static_tracepoint): Remove init_sal
3524 references. Move declarations closer to initializations.
3525 * cli/cli-cmds.c (list_command): Move sal declarations closer to
3526 initializations.
3527 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
3528 references. Move sal declarations closer to initializations.
3529 * frame.c (find_frame_sal): Return a symtab_and_line via function
3530 return instead of output parameter. Remove init_sal references.
3531 * frame.h (find_frame_sal): Return a symtab_and_line via function
3532 return instead of output parameter.
3533 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
3534 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
3535 instead of memset.
3536 (gdbscm_find_pc_line): Remove init_sal reference.
3537 * infcall.c (call_function_by_hand_dummy): Remove init_sal
3538 references. Move declarations closer to initializations.
3539 * infcmd.c (set_step_frame): Update. Move declarations closer to
3540 initializations.
3541 (finish_backward): Remove init_sal references. Move declarations
3542 closer to initializations.
3543 * infrun.c (process_event_stop_test, handle_step_into_function)
3544 (insert_hp_step_resume_breakpoint_at_frame)
3545 (insert_step_resume_breakpoint_at_caller): Likewise.
3546 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
3547 (symbol_to_sal): Likewise.
3548 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
3549 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
3550 to its initialization.
3551 * reverse.c (save_bookmark_command): Use new/delete. Remove
3552 init_sal references. Move declarations closer to initializations.
3553 * source.c (get_current_source_symtab_and_line): Remove brace
3554 initialization.
3555 (set_current_source_symtab_and_line): Now takes the sal by const
3556 reference. Remove brace initialization.
3557 (line_info): Remove init_sal reference.
3558 * source.h (set_current_source_symtab_and_line): Now takes a
3559 symtab_and_line via const reference.
3560 * stack.c (set_current_sal_from_frame): Adjust.
3561 (print_frame_info): Adjust.
3562 (get_last_displayed_sal): Return the sal via function return
3563 instead of via output parameter. Simplify.
3564 (frame_info): Adjust.
3565 * stack.h (get_last_displayed_sal): Return the sal via function
3566 return instead of via output parameter.
3567 * symtab.c (init_sal): Delete.
3568 (find_pc_sect_line): Remove init_sal references. Move
3569 declarations closer to initializations.
3570 (find_function_start_sal): Remove init_sal references. Move
3571 declarations closer to initializations.
3572 * symtab.h (struct symtab_and_line): In-class initialize all
3573 fields.
3574 * tracepoint.c (set_traceframe_context)
3575 (print_one_static_tracepoint_marker): Remove init_sal references.
3576 Move declarations closer to initializations.
3577 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
3578 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
3579 declarations closer to initializations.
3580 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
3581 init_sal references. Adjust.
3582
3583 2017-09-04 Pedro Alves <palves@redhat.com>
3584
3585 * ax-gdb.c (agent_command_1): Use range-for.
3586 * break-catch-throw.c (re_set_exception_catchpoint): Update.
3587 * breakpoint.c: Include "common/array-view.h".
3588 (init_breakpoint_sal, create_breakpoint_sal): Change sals
3589 parameter from struct symtabs_and_lines to
3590 array_view<symtab_and_line>. Adjust. Use range-for. Update.
3591 (breakpoint_sals_to_pc): Change sals parameter from struct
3592 symtabs_and_lines to std::vector reference.
3593 (check_fast_tracepoint_sals): Change sals parameter from struct
3594 symtabs_and_lines to std::array_view. Use range-for.
3595 (decode_static_tracepoint_spec): Return a std::vector instead of
3596 symtabs_and_lines. Update.
3597 (create_breakpoint): Update.
3598 (break_range_command, until_break_command, clear_command): Update.
3599 (base_breakpoint_decode_location, bkpt_decode_location)
3600 (bkpt_probe_create_sals_from_location)
3601 (bkpt_probe_decode_location, tracepoint_decode_location)
3602 (tracepoint_probe_decode_location)
3603 (strace_marker_create_sals_from_location): Return a std::vector
3604 instead of symtabs_and_lines.
3605 (strace_marker_create_breakpoints_sal): Update.
3606 (strace_marker_decode_location): Return a std::vector instead of
3607 symtabs_and_lines. Update.
3608 (update_breakpoint_locations): Change struct symtabs_and_lines
3609 parameters to gdb::array_view. Adjust.
3610 (location_to_sals): Return a std::vector instead of
3611 symtabs_and_lines. Update.
3612 (breakpoint_re_set_default): Use std::vector instead of struct
3613 symtabs_and_lines.
3614 (decode_location_default): Return a std::vector instead of
3615 symtabs_and_lines. Update.
3616 * breakpoint.h: Include "common/array-view.h".
3617 (struct breakpoint_ops) <decode_location>: Now returns a
3618 std::vector instead of returning a symtabs_and_lines via output
3619 parameter.
3620 (update_breakpoint_locations): Change sals parameters to use
3621 gdb::array_view.
3622 * cli/cli-cmds.c (edit_command, list_command): Update to use
3623 std::vector and gdb::array_view.
3624 (ambiguous_line_spec): Adjust to use gdb::array_view and
3625 range-for.
3626 (compare_symtabs): Rename to ...
3627 (cmp_symtabs): ... this. Change parameters to symtab_and_line
3628 const reference and adjust.
3629 (filter_sals): Rewrite using std::vector and standard algorithms.
3630 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
3631 (jump_command): Update to use std::vector.
3632 * linespec.c (struct linespec_state) <canonical_names>: Update
3633 comment.
3634 (add_sal_to_sals_basic): Delete.
3635 (add_sal_to_sals, filter_results, convert_results_to_lsals)
3636 (decode_line_2, create_sals_line_offset)
3637 (convert_address_location_to_sals, convert_linespec_to_sals)
3638 (convert_explicit_location_to_sals, parse_linespec)
3639 (event_location_to_sals, decode_line_full, decode_line_1)
3640 (decode_line_with_current_source)
3641 (decode_line_with_last_displayed, decode_objc)
3642 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
3643 (linespec_result::~linespec_result): Adjust to use std::vector
3644 instead of symtabs_and_lines.
3645 * linespec.h (linespec_sals::sals): Now a std::vector.
3646 (struct linespec_result): Use std::vector, bool, and in-class
3647 initialization.
3648 (decode_line_1, decode_line_with_current_source)
3649 (decode_line_with_last_displayed): Return std::vector.
3650 * macrocmd.c (info_macros_command): Use std::vector.
3651 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
3652 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
3653 std::vector.
3654 * probe.h (parse_probes): Return a std::vector.
3655 * python/python.c (gdbpy_decode_line): Use std::vector and
3656 gdb::array_view.
3657 * source.c (select_source_symtab, line_info): Use std::vector.
3658 * stack.c (func_command): Use std::vector.
3659 * symtab.h (struct symtabs_and_lines): Delete.
3660 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
3661
3662 2017-09-04 Pedro Alves <palves@redhat.com>
3663
3664 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3665 unittests/array-view-selftests.c.
3666 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
3667 * common/array-view.h: New file.
3668 * unittests/array-view-selftests.c: New file.
3669
3670 2017-09-04 Pedro Alves <palves@redhat.com>
3671
3672 * cli/cli-cmds.c (edit_command): Pass message to
3673 ambiguous_line_spec.
3674 (list_command): Pass message to ambiguous_line_spec. Say
3675 "first"/"last" instead of "start" and "end" to be consistent with
3676 the manual.
3677 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
3678 them to print formatted message.
3679
3680 2017-09-04 Pedro Alves <palves@redhat.com>
3681
3682 * btrace.c (ftrace_add_pt): Pass btrace_insn to
3683 ftrace_update_insns by reference instead of pointer.
3684
3685 2017-09-04 Yao Qi <yao.qi@linaro.org>
3686
3687 * i386-go32-tdep.c: Include x86-xstate.h.
3688 (i386_go32_init_abi): Call i386_target_description.
3689 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
3690 if xcr0 is X86_XSTATE_X87_MASK.
3691 * i386-tdep.h (tdesc_i386): Remove the declaration.
3692 (tdesc_i386_mmx): Likewise.
3693
3694 2017-09-04 Yao Qi <yao.qi@linaro.org>
3695
3696 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
3697 X86_XSTATE_SSE_MASK instead of 0.
3698
3699 2017-09-04 Yao Qi <yao.qi@linaro.org>
3700
3701 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
3702 i386_target_description.
3703 * i386-fbsd-nat.c (i386fbsd_read_description): Call
3704 i386_target_description.
3705 * i386-tdep.c (i386_gdbarch_init): Likewise.
3706
3707 2017-09-04 Yao Qi <yao.qi@linaro.org>
3708
3709 * amd64-darwin-tdep.c: Include "x86-xstate.h".
3710 (x86_darwin_init_abi_64): Call amd64_target_description.
3711 * amd64-dicos-tdep.c: Likewise.
3712 * amd64-fbsd-nat.c: Likewise.
3713 * amd64-fbsd-tdep.c: Likewise.
3714 * amd64-nbsd-tdep.c: Likewise.
3715 * amd64-obsd-tdep.c: Likewise.
3716 * amd64-sol2-tdep.c: Likewise.
3717 * amd64-windows-tdep.c: Likewise.
3718 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
3719
3720 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
3721
3722 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
3723 (btrace_function) <insn>: Change type to use std::vector.
3724 * btrace.c (ftrace_debug, ftrace_call_num_insn,
3725 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
3726 ftrace_update_insns, ftrace_compute_global_level_offset,
3727 btrace_stitch_bts, btrace_clear, btrace_insn_get,
3728 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
3729 change to std::vector.
3730 (ftrace_update_insns): Adjust to change to std::vector, change
3731 type of INSN parameter.
3732 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
3733 * record-btrace.c (btrace_call_history_insn_range,
3734 btrace_compute_src_line_range,
3735 record_btrace_frame_prev_register): Adjust to change to
3736 std::vector.
3737 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
3738 to change to std::vector.
3739
3740 2017-09-03 Tom Tromey <tom@tromey.com>
3741
3742 * corefile.c (reopen_exec_file): Use std::string.
3743
3744 2017-09-03 Tom Tromey <tom@tromey.com>
3745
3746 * compile/compile.c (compile_register_name_mangled): Return
3747 std::string.
3748 * compile/compile-loc2c.c (pushf_register_address): Update.
3749 (pushf_register): Update.
3750 * compile/compile-c-types.c (convert_array): Update.
3751 * compile/compile-c-symbols.c (generate_vla_size): Update.
3752 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
3753 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
3754 (convert_one_symbol): Update.
3755 (generate_c_for_for_one_variable): Update.
3756 * compile/compile-c-support.c (c_get_range_decl_name): Return a
3757 std::string.
3758 (generate_register_struct): Update.
3759 * compile/compile-internal.h (c_get_range_decl_name): Return a
3760 std::string.
3761 (compile_register_name_mangled): Return std::string.
3762
3763 2017-09-03 Tom Tromey <tom@tromey.com>
3764
3765 * utils.c (perror_string): Return a std::string.
3766 (throw_perror_with_name, perror_warning_with_name): Update.
3767
3768 2017-09-03 Tom Tromey <tom@tromey.com>
3769
3770 * demangle.c (demangle_command): Use std::string,
3771 unique_xmalloc_ptr.
3772
3773 2017-09-03 Tom Tromey <tom@tromey.com>
3774
3775 * cli/cli-setshow.c (do_set_command): Use std::string.
3776
3777 2017-09-03 Tom Tromey <tom@tromey.com>
3778
3779 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
3780
3781 2017-09-03 Tom Tromey <tom@tromey.com>
3782
3783 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
3784
3785 2017-09-03 Tom Tromey <tom@tromey.com>
3786
3787 * mi/mi-cmd-env.c (env_execute_cli_command): Use
3788 gdb::unique_xmalloc_ptr.
3789
3790 2017-09-03 Tom Tromey <tom@tromey.com>
3791
3792 * thread.c (print_thread_info_1): Use string_printf.
3793 (thread_apply_command, thread_apply_all_command): Use
3794 std::string.
3795
3796 2017-09-03 Tom Tromey <tom@tromey.com>
3797
3798 * valprint.c (val_print_string): Update.
3799 * gdbcore.h (memory_error_message): Return std::string.
3800 * corefile.c (memory_error_message): Return std::string.
3801 (memory_error): Update.
3802 * breakpoint.c (insert_bp_location): Update.
3803
3804 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
3805
3806 * target/waitstatus.h (target_waitstatus_to_string): Change
3807 return type to std::string.
3808 * target/waitstatus.c (target_waitstatus_to_string): Return
3809 std::string.
3810 * target.h (target_waitstatus_to_string): Remove declaration.
3811 * infrun.c (resume, clear_proceed_status_thread,
3812 print_target_wait_results, do_target_wait, save_waitstatus,
3813 stop_all_threads): Adjust.
3814 * record-btrace.c (record_btrace_wait): Adjust.
3815 * target-debug.h
3816 (target_debug_print_struct_target_waitstatus_p): Adjust.
3817
3818 2017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3819
3820 PR gdb/22046
3821 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
3822 detection.
3823
3824 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
3825
3826 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
3827 for setting/unsetting environment variables on the remote target.
3828 (New remote packets): Add entries for QEnvironmentHexEncoded,
3829 QEnvironmentUnset and QEnvironmentReset.
3830 * common/environ.c (gdb_environ::operator=): Extend method to
3831 handle m_user_set_env_list and m_user_unset_env_list.
3832 (gdb_environ::clear): Likewise.
3833 (match_var_in_string): Change type of first parameter from 'char
3834 *' to 'const char *'.
3835 (gdb_environ::set): Extend method to handle
3836 m_user_set_env_list and m_user_unset_env_list.
3837 (gdb_environ::unset): Likewise.
3838 (gdb_environ::clear_user_set_env): New method.
3839 (gdb_environ::user_set_envp): Likewise.
3840 (gdb_environ::user_unset_envp): Likewise.
3841 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
3842 m_user_unset_env_list on move constructor/assignment.
3843 (unset): Add new default parameter 'update_unset_list = true'.
3844 (clear_user_set_env): New method.
3845 (user_set_envp): Likewise.
3846 (user_unset_envp): Likewise.
3847 (m_user_set_env_list): New std::set.
3848 (m_user_unset_env_list): Likewise.
3849 * common/rsp-low.c (hex2str): New function.
3850 (bin2hex): New overload for bin2hex function.
3851 * common/rsp-low.c (hex2str): New prototype.
3852 (str2hex): New overload prototype.
3853 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
3854 QEnvironmentUnset and QEnvironmentReset.
3855 (remote_protocol_features): Add QEnvironmentHexEncoded,
3856 QEnvironmentUnset and QEnvironmentReset packets.
3857 (send_environment_packet): New function.
3858 (extended_remote_environment_support): Likewise.
3859 (extended_remote_create_inferior): Call
3860 extended_remote_environment_support.
3861 (_initialize_remote): Add QEnvironmentHexEncoded,
3862 QEnvironmentUnset and QEnvironmentReset packet configs.
3863 * unittests/environ-selftests.c (gdb_selftest_env_var):
3864 New variable.
3865 (test_vector_initialization): New function.
3866 (test_init_from_host_environ): Likewise.
3867 (test_reinit_from_host_environ): Likewise.
3868 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
3869 Likewise.
3870 (test_unset_set_empty_vector): Likewise.
3871 (test_vector_clear): Likewise.
3872 (test_std_move): Likewise.
3873 (test_move_constructor):
3874 (test_self_move): Likewise.
3875 (test_set_unset_reset): Likewise.
3876 (run_tests): Rewrite in terms of the functions above.
3877
3878 2017-08-31 Weimin Pan <weimin.pan@oracle.com>
3879
3880 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
3881 (adi_available): Use a temp variable of type CORE_ADDR as argument
3882 3 when calling target_auxv_search.
3883 (adi_normalize_address): Use masks and xor operators to calculate
3884 normalized address.
3885 (adi_read_versions, adi_write_versions, adi_print_versions)
3886 (do_examine, do_assign): Use paddress.
3887
3888 2017-08-29 John Baldwin <jhb@FreeBSD.org>
3889
3890 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
3891 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
3892 out of loop and add supply of FIR.
3893 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
3894 add collect of FIR.
3895
3896 2017-08-28 Simon Marchi <simon.marchi@ericsson.com>
3897
3898 PR gdb/21827
3899 * cli/cli-script.c (define_command): Don't convert command name
3900 to lower case.
3901
3902 2017-08-25 Joel Brobecker <brobecker@adacore.com>
3903
3904 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
3905 Update all callers accordingly. Remove all code blocks handling
3906 the case where DISPP is not NULL.
3907
3908 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3909
3910 PR symtab/22003
3911 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
3912 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
3913 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
3914
3915 2017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3916
3917 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
3918 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
3919 (read_comp_units_from_section): New parameter abbrev_section, use
3920 read_and_check_comp_unit_head, allocate signatured_type if needed.
3921 (create_all_comp_units): Update read_comp_units_from_section caller.
3922
3923 2017-08-23 Pedro Alves <palves@redhat.com>
3924
3925 PR remote/21852
3926 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
3927 to null_ptid and switch to thread without reading the registers
3928 after adding the inferior.
3929
3930 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3931
3932 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
3933 compile-gcc.
3934 * compile/compile.c (compile_gcc, show_compile_gcc): New.
3935 (compile_to_object): Implement compile_gcc.
3936 (_initialize_compile): Install "set compile-gcc". Initialize
3937 compile_gcc.
3938
3939 2017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3940
3941 * compile/compile.c (compile_to_object): Conditionally call
3942 set_verbose. Conditionally call compile or compile_v0.
3943
3944 2017-08-07 Weimin Pan <weimin.pan@oracle.com>
3945
3946 * sparc64-tdep.h: (adi_normalize_address): New export.
3947 * sparc-nat.h: (open_adi_tag_fd): New export.
3948 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
3949 * sparc64-linux-tdep.c:
3950 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
3951 (sparc64_linux_handle_segmentation_fault): New function.
3952 (sparc64_linux_init_abi): Register
3953 sparc64_linux_handle_segmentation_fault
3954 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
3955 (sparc64_addr_bits_remove): New function.
3956 (sparc64_init_abi): Register sparc64_addr_bits_remove.
3957 (MAX_PROC_NAME_SIZE): New macro.
3958 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
3959 (sparc64adilist): New variable.
3960 (adi_proc_list): New variable.
3961 (find_adi_info): New function.
3962 (add_adi_info): New function.
3963 (get_adi_info_proc): New function.
3964 (get_adi_info): New function.
3965 (info_adi_command): New function.
3966 (read_maps_entry): New function.
3967 (adi_available): New function.
3968 (adi_normalize_address): New function.
3969 (adi_align_address): New function.
3970 (adi_convert_byte_count): New function.
3971 (adi_tag_fd): New function.
3972 (adi_is_addr_mapped): New function.
3973 (adi_read_versions): New function.
3974 (adi_write_versions): New function.
3975 (adi_print_versions): New function.
3976 (do_examine): New function.
3977 (do_assign): New function.
3978 (adi_examine_command): New function.
3979 (adi_assign_command): New function.
3980 (_initialize_sparc64_adi_tdep): New function.
3981
3982 2017-08-22 Simon Marchi <simon.marchi@ericsson.com>
3983
3984 * breakpoint.c (breakpoints_info): Rename to ...
3985 (info_breakpoints_command): ... this.
3986 (watchpoints_info): Rename to ...
3987 (info_watchpoints_command): ... this.
3988 (tracepoints_info): Rename to ...
3989 (info_tracepoints_command): ... this.
3990 (_initialize_breakpoint): Adjust.
3991 * dcache.c (dcache_info): Rename to ...
3992 (info_display_command): ... this.
3993 (_initialize_dcache): Adjust.
3994 * frame.h (args_info): Rename to ...
3995 (info_args_command): ... this.
3996 (locals_info): Rename to ...
3997 (info_locals_command): ... this.
3998 * infcmd.c (nofp_registers_info): Rename to ...
3999 (info_registers_command): ... this.
4000 (float_info): Rename to ...
4001 (info_float_command): ... this.
4002 (program_info): Rename to ...
4003 (info_program_command): ... this.
4004 (all_registers_info): Rename to ...
4005 (info_all_registers_command): ... this.
4006 (vector_info): Rename to ...
4007 (info_vector_command): ... this.
4008 (float_info): Rename to ...
4009 (info_float_command): ... this.
4010 (_initialize_infcmd): Adjust.
4011 * inferior.h (term_info): Rename to ...
4012 (info_terminal_command): ... this.
4013 * inflow.c (term_info): Rename to ...
4014 (info_terminal_command): ... this.
4015 (_initialize_inflow): Adjust.
4016 * infrun.c (signals_info): Rename to ...
4017 (info_signals_command): ... this.
4018 (_initialize_infrun): Adjust.
4019 * objc-lang.c (classes_info): Rename to ...
4020 (info_classes_command): ... this.
4021 (selectors_info): Rename to ...
4022 (info_selectors_command): ... this.
4023 (_initialize_objc_language): Adjust.
4024 * printcmd.c (sym_info): Rename to ...
4025 (info_symbol_command): ... this.
4026 (address_info): Rename to ...
4027 (info_address_command): ... this.
4028 (display_info): Rename to ...
4029 (info_display_command): ... this.
4030 (_initialize_printcmd): Adjust.
4031 * reverse.c (bookmarks_info): Rename to ...
4032 (info_breakpoints_command): ... this.
4033 (_initialize_reverse): Adjust.
4034 * ser-go32.c (dos_info): Rename to ...
4035 (info_serial_command): ... this.
4036 (_initialize_ser_dos): Adjust.
4037 * skip.c (skip_info): Rename to ...
4038 (info_skip_command): ... this.
4039 (_initialize_step_skip): Adjust.
4040 * source.c (line_info): Rename to ...
4041 (info_line_command): ... this.
4042 (source_info): Rename to ...
4043 (info_source_command)
4044 * stack.c (frame_info): Rename to ...
4045 (info_frame_command): ... this.
4046 (locals_info): Rename to ...
4047 (info_locals_command): ... this.
4048 (args_info): Rename to ...
4049 (info_args_command): ... this.
4050 (_initialize_stack): Adjust.
4051 * symtab.c (sources_info): Rename to ...
4052 (info_sources_command): ... this.
4053 (variables_info): Rename to ...
4054 (info_variables_command): ... this.
4055 (functions_info): Rename to ...
4056 (info_functions_command): ... this.
4057 (types_info): Rename to ...
4058 (info_types_command): ... this.
4059 (_initialize_symtab): Adjust.
4060 * target.c (target_info): Rename to ...
4061 (info_target_command): ... this.
4062 (initialize_targets): Adjust.
4063 * tracepoint.c (tvariables_info): Rename to ...
4064 (info_tvariables_command): ... this.
4065 (scope_info): Rename to ...
4066 (info_scope_command): ... this.
4067 (trace_dump_actions): Adjust.
4068 (_initialize_tracepoint): Adjust.
4069
4070 2017-08-22 Tom Tromey <tom@tromey.com>
4071
4072 * breakpoint.h (install_breakpoint): Update.
4073 * breakpoint.c (add_solib_catchpoint): Update.
4074 (install_breakpoint): Change argument to a std::unique_ptr.
4075 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
4076 (create_breakpoint_sal, create_breakpoint): Update.
4077 (watch_command_1, catch_exec_command_1)
4078 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
4079 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
4080 Return the breakpoint.
4081 (set_raw_breakpoint_without_location, set_raw_breakpoint)
4082 (new_single_step_breakpoint): Update.
4083 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
4084 std::unique_ptr.
4085 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
4086 std::unique_ptr.
4087 * break-catch-sig.c (create_signal_catchpoint): Use
4088 std::unique_ptr.
4089 * ada-lang.c (create_ada_exception_catchpoint): Use
4090 std::unique_ptr.
4091
4092 2017-08-22 Tom Tromey <tom@tromey.com>
4093
4094 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
4095
4096 2017-08-22 Tom Tromey <tom@tromey.com>
4097
4098 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
4099 (lookup_partial_symbol): Update.
4100
4101 2017-08-22 Tom Tromey <tom@tromey.com>
4102
4103 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
4104 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
4105 (find_and_open_source, symtab_to_fullname): Update.
4106 * psymtab.c (psymtab_to_fullname): Update.
4107
4108 2017-08-22 Tom Tromey <tom@tromey.com>
4109
4110 * exec.c (exec_file_attach): Update.
4111 * linux-thread-db.c (try_thread_db_load): Update.
4112 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
4113 * utils.c (gdb_realpath): Change return type.
4114 (gdb_realpath_keepfile): Update.
4115 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
4116 (_initialize_utils): Register the new self test.
4117 * source.c (openp): Update.
4118 (find_and_open_source): Update.
4119 * nto-tdep.c (nto_find_and_open_solib): Update.
4120 * main.c (set_gdb_data_directory): Update.
4121 (captured_main_1): Update.
4122 * dwarf2read.c (dwarf2_get_dwz_file): Update
4123 (dw2_map_symbol_filenames): Update.
4124 * auto-load.c (auto_load_safe_path_vec_update): Update.
4125 (filename_is_in_auto_load_safe_path_vec): Change type of
4126 "filename_realp".
4127 (auto_load_objfile_script): Update.
4128 (file_is_auto_load_safe): Update. Use std::string.
4129 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
4130
4131 2017-08-22 Tom Tromey <tom@tromey.com>
4132
4133 * utils.c (gdb_realpath_keepfile): Return a
4134 gdb::unique_xmalloc_ptr.
4135 * exec.c (exec_file_attach): Update.
4136 * utils.h (gdb_realpath_keepfile): Return a
4137 gdb::unique_xmalloc_ptr.
4138
4139 2017-08-22 Tom Tromey <tom@tromey.com>
4140
4141 * compile/compile.c (compile_file_command): Use
4142 gdb::unique_xmalloc_ptr, std::string.
4143 * utils.c (gdb_abspath): Change return type.
4144 * source.c (openp): Update.
4145 * objfiles.c (allocate_objfile): Update.
4146 * main.c (set_gdb_data_directory): Update.
4147 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
4148
4149 2017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
4150
4151 * cli-cmds.c (list_commands): List actual code around more than
4152 one location.
4153
4154 2017-08-21 John Baldwin <jhb@FreeBSD.org>
4155
4156 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
4157
4158 2017-08-21 Pedro Alves <palves@redhat.com>
4159
4160 PR gdb/19487
4161 * c-exp.y (variable production): Handle function aliases.
4162 * minsyms.c (msymbol_is_text): New function.
4163 * minsyms.h (msymbol_is_text): Declare.
4164 * symtab.c (find_function_alias_target): New function.
4165 * symtab.h (find_function_alias_target): Declare.
4166
4167 2017-08-21 Pedro Alves <palves@redhat.com>
4168
4169 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
4170 typedefs.
4171 * typeprint.c (whatis_exp): If handling "whatis", and expression
4172 is OP_TYPE, strip one typedef level. Otherwise don't strip
4173 typedefs here.
4174 * valops.c (value_cast): Save "to" type before resolving
4175 stubs/typedefs. Use that type as resulting value's type.
4176
4177 2017-08-18 Tom Tromey <tom@tromey.com>
4178 Pedro Alves <palves@redhat.com>
4179
4180 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
4181 * sol-thread.c (sol_thread_resume, sol_thread_wait)
4182 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
4183 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
4184 * proc-service.c (ps_xfer_memory): Use scoped_restore.
4185 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
4186 (linux_get_siginfo_data): Add "thread" argument. Use
4187 scoped_restore.
4188 * linux-nat.c (linux_child_follow_fork)
4189 (check_stopped_by_watchpoint): Use scoped_restore.
4190 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
4191 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
4192 (restore_inferior_ptid, save_inferior_ptid): Remove.
4193 * btrace.c (btrace_fetch): Use scoped_restore.
4194 * bsd-uthread.c (bsd_uthread_fetch_registers)
4195 (bsd_uthread_store_registers): Use scoped_restore.
4196 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
4197 scoped_restore.
4198 * aix-thread.c (aix_thread_resume, aix_thread_wait)
4199 (aix_thread_xfer_partial): Use scoped_restore.
4200 * inferior.h (save_inferior_ptid): Remove.
4201
4202 2017-08-18 Yao Qi <yao.qi@linaro.org>
4203
4204 PR tdep/21818
4205 * arm-tdep.c (gdb_print_insn_arm): Mark
4206 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
4207
4208 2017-08-18 Yao Qi <yao.qi@linaro.org>
4209
4210 * NEWS: Mention GDBserver's new option "--selftest".
4211 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
4212 * selftest.c: Move it to common/selftest.c.
4213 * selftest.h: Move it to common/selftest.h.
4214 * selftest-arch.c (reset): New function.
4215 (tests_with_arch): Call reset.
4216
4217 2017-08-18 Yao Qi <yao.qi@linaro.org>
4218
4219 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
4220 instead of exception_fprintf and printf_filtered.
4221
4222 2017-08-18 Yao Qi <yao.qi@linaro.org>
4223
4224 * selftest.c (register_self_test): Rename it to
4225 selftests::register_test.
4226 (run_self_tests): selftest::run_tests.
4227 * selftest.h: Update declarations.
4228 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
4229 selftests::register_test_foreach_arch.
4230 * selftest-arch.h: Update declaration.
4231 * aarch64-tdep.c: Update.
4232 * arm-tdep.c: Likewise.
4233 * disasm-selftests.c: Likewise.
4234 * dwarf2loc.c: Likewise.
4235 * dwarf2-frame.c: Likewise.
4236 * findvar.c: Likewise.
4237 * gdbarch-selftests.c: Likewise.
4238 * maint.c (maintenance_selftest): Likewise.
4239 * regcache.c: Likewise.
4240 * rust-exp.y: Likewise.
4241 * selftest-arch.c: Likewise.
4242 * unittests/environ-selftests.c: Likewise.
4243 * unittests/function-view-selftests.c: Likewise.
4244 * unittests/offset-type-selftests.c: Likewise.
4245 * unittests/optional-selftests.c: Likewise.
4246 * unittests/scoped_restore-selftests.c: Likewise.
4247 * utils-selftests.c: Likewise.
4248
4249 2017-08-17 Pedro Alves <palves@redhat.com>
4250
4251 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
4252 local.
4253
4254 2017-08-17 Pedro Alves <palves@redhat.com>
4255
4256 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
4257 field.
4258 (reset_die_in_process): Delete, replaced by ...
4259 (process_die_scope): ... this new class. Make it responsible for
4260 freeing cu->line_header too.
4261 (process_die): Use process_die_scope.
4262 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
4263 cu->line_header_die_owner. Don't release the line header if it's
4264 owned by the CU.
4265 (setup_type_unit_groups): Make the CU/DIE own the line header.
4266 Don't release the line header here.
4267
4268 2017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
4269
4270 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
4271
4272 2017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
4273
4274 * NEWS: Mention new shortcuts for nexti and stepi in TUI
4275 Single-Key mode
4276
4277 2017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
4278
4279 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
4280 mode command list.
4281
4282 2017-08-15 Stafford Horne <shorne@gmail.com>
4283
4284 * MAINTAINERS (Write After Approval): Add Stafford Horne.
4285
4286 2017-08-15 Stafford Horne <shorne@gmail.com>
4287
4288 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
4289
4290 2017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
4291
4292 PR gdb/21954
4293 * infcmd.c (unset_environment_command): Use the 'clear' method on
4294 the environment instead of resetting it.
4295
4296 2017-08-15 John Baldwin <jhb@FreeBSD.org>
4297
4298 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
4299 platforms.
4300
4301 2017-08-14 Tom Tromey <tom@tromey.com>
4302
4303 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
4304 (print_binary_chars): Likewise.
4305 (BITS_IN_BYTES): Remove.
4306
4307 2017-08-14 Tom Tromey <tom@tromey.com>
4308
4309 PR gdb/21675
4310 * valprint.c (LOW_ZERO): Change value to 034.
4311 (print_octal_chars): Add static_asserts for octal constants.
4312 * printcmd.c (print_scalar_formatted): Add 'd' case.
4313
4314 2017-08-11 Tom Tromey <tom@tromey.com>
4315
4316 * symfile.c (add_symbol_file_command): Use std::vector.
4317
4318 2017-08-14 Tom Tromey <tom@tromey.com>
4319
4320 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
4321 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
4322 std::move.
4323 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
4324
4325 2017-08-11 Pedro Alves <palves@redhat.com>
4326
4327 * infrun.c (process_event_stop_test): Adjust
4328 function_name_is_marked_for_skip call.
4329 * skip.c: Include <list>.
4330 (skiplist_entry): Make it a class with private fields, and
4331 getters/setters.
4332 (skiplist_entry_chain): Delete.
4333 (skiplist_entries): New.
4334 (skiplist_entry_count): Delete.
4335 (highest_skiplist_entry_num): New.
4336 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
4337 (add_skiplist_entry): Delete.
4338 (skiplist_entry::skiplist_entry): New.
4339 (skiplist_entry::add_entry): New.
4340 (skip_file_command, skip_function): Adjust.
4341 (compile_skip_regexp): Delete.
4342 (skip_command): Don't compile regexp here. Adjust to use
4343 skiplist_entry::add_entry.
4344 (skip_info): Adjust to use range-for and getters.
4345 (skip_enable_command, skip_disable_command): Adjust to use
4346 range-for and setters.
4347 (skip_delete_command): Adjust to use std::list.
4348 (add_skiplist_entry): Delete.
4349 (skip_file_p): Delete, refactored as ...
4350 (skiplist_entry::do_skip_file_p): ... this new method.
4351 (skip_gfile_p): Delete, refactored as ...
4352 (skiplist_entry::do_gskip_file_p): ... this new method.
4353 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
4354 (skiplist_entry::skip_function_p): ... this new method.
4355 (function_name_is_marked_for_skip): Now returns bool, and takes
4356 the function sal by const reference. Adjust to use range-for and
4357 skiplist_entry methods.
4358 (_initialize_step_skip): Remove references to
4359 skiplist_entry_chain, skiplist_entry_count.
4360 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
4361 takes the function sal by const reference.
4362
4363 2017-08-11 Yao Qi <yao.qi@linaro.org>
4364
4365 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
4366 (dwarf2_frame_cache): Remove reset_cache_cleanup.
4367 (dwarf2_frame_cache):
4368 * frame-unwind.c (frame_unwind_try_unwinder): Catch
4369 RETURN_MASK_ALL and set *this_case to NULL.
4370 * frame-unwind.h: Update comments.
4371
4372 2017-08-11 Yao Qi <yao.qi@linaro.org>
4373
4374 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
4375 (dwarf2_frame_state_copy_regs): Remove.
4376 (dwarf2_frame_state_free_regs): Remove.
4377 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
4378 (dwarf2_restore_rule): Call method .alloc_regs instead of
4379 dwarf2_frame_state_alloc_regs.
4380 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
4381 constructor. Call std::move.
4382 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
4383 (dwarf2_frame_cache): Likewise.
4384
4385 [GDB_SELF_TEST]: Include selftest.h and
4386 selftest-arch.h.
4387 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
4388 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
4389 execute_cfa_program_test.
4390
4391 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
4392 copy ctor, assignment operator, move assignment.
4393 <alloc_regs>: New method.
4394 <swap>: New method.
4395 (struct dwarf2_frame_state): Delete dtor.
4396 (dwarf2_frame_state_alloc_regs): Remove declaration.
4397 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
4398 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
4399
4400 2017-08-11 Yao Qi <yao.qi@linaro.org>
4401
4402 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
4403 (dwarf2_frame_state::dwarf2_frame_state): New.
4404 (dwarf2_frame_state::~dwarf2_frame_state): New.
4405 (dwarf2_fetch_cfa_info): Update.
4406 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
4407 rather than a pointer. Update code.
4408 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
4409 dtor.
4410 <data_align, code_align, retaddr_column>: Change them to const.
4411 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
4412 to bool.
4413
4414 2017-08-11 Yao Qi <yao.qi@linaro.org>
4415
4416 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
4417 <loc.exp>: New field.
4418 * dwarf2-frame.c (execute_cfa_program): Update.
4419 (dwarf2_frame_prev_register): Update.
4420
4421 2017-08-10 Pedro Alves <palves@redhat.com>
4422
4423 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
4424
4425 2017-08-09 John Baldwin <jhb@FreeBSD.org>
4426
4427 * fbsd-nat.c (struct fbsd_fork_info): Remove.
4428 (fbsd_pending_children): Use std::list.
4429 (fbsd_remember_child): Likewise.
4430 (fbsd_is_child_pending): Likewise.
4431 (fbsd_pending_vfork_done): Use std::forward_list.
4432 (fbsd_add_vfork_done): Likewise.
4433 (fbsd_is_vfork_done_pending): Likewise.
4434 (fbsd_next_vfork_done): Likewise.
4435
4436 2017-08-09 John Baldwin <jhb@FreeBSD.org>
4437
4438 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
4439 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
4440 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
4441 for `mapfilename'.
4442 (fbsd_xfer_partial): Use gdb::byte_vector.
4443 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
4444
4445 2017-08-09 John Baldwin <jhb@FreeBSD.org>
4446
4447 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
4448 "filestuff.h".
4449 (fbsd_find_memory_regions): Fix `mapfile' initialization.
4450
4451 2017-08-09 Tom Tromey <tom@tromey.com>
4452
4453 * skip.c (skiplist_entry): New constructor.
4454 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
4455 (skiplist_entry::file_is_glob): Now bool.
4456 (skiplist_entry::file, skiplist_entry::function): Now
4457 std::string.
4458 (make_skip_entry): Return a unique_ptr. Use new.
4459 (free_skiplist_entry, free_skiplist_entry_cleanup)
4460 (make_free_skiplist_entry_cleanup): Remove.
4461 (skip_command, skip_disable_command, add_skiplist_entry)
4462 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
4463 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
4464 (function_name_is_marked_for_skip): Update.
4465 (skip_delete_command): Update. Use delete.
4466
4467 2017-08-09 Jiong Wang <jiong.wang@arm.com>
4468
4469 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
4470 (aarch64_linux_core_read_description): New function.
4471 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
4472
4473 2017-08-09 Pedro Alves <palves@redhat.com>
4474
4475 * cp-name-parser.y (cp_comp_to_string): Return a
4476 gdb::unique_xmalloc_ptr<char>.
4477 * cp-support.c (replace_typedefs_qualified_name)
4478 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
4479 (cp_canonicalize_string_full): Use op= instead of explicit
4480 convertion.
4481 (cp_class_name_from_physname, method_name_from_physname)
4482 (cp_func_name, cp_remove_params): Adjust to use
4483 gdb::unique_xmalloc_ptr<char>.
4484 * cp-support.h (cp_comp_to_string): Return a
4485 gdb::unique_xmalloc_ptr<char>.
4486 * python/py-type.c (typy_lookup_type): Adjust to use
4487 gdb::unique_xmalloc_ptr<char>.
4488
4489 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
4490
4491 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
4492
4493 2017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
4494 Yao Qi <yao.qi@linaro.org>
4495
4496 * cp-support.c (cp_canonicalize_string_full): Use
4497 gdb::unique_xmalloc_ptr<char>.
4498 (cp_canonicalize_string): Likewise.
4499
4500 2017-08-09 Yao Qi <yao.qi@linaro.org>
4501
4502 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
4503 * regformats/i386/amd64-avx-avx512.dat: Remove.
4504 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
4505 * regformats/i386/amd64-avx-mpx.dat:Remove.
4506 * regformats/i386/amd64-avx.dat: Remove.
4507 * regformats/i386/amd64-mpx.dat: Remove.
4508 * regformats/i386/i386-avx-avx512.dat: Remove.
4509 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
4510 * regformats/i386/i386-avx-mpx.dat: Remove.
4511 * regformats/i386/i386-mmx.dat: Remove.
4512 * regformats/i386/i386-mpx.dat: Remove.
4513
4514 2017-08-09 Yao Qi <yao.qi@linaro.org>
4515
4516 * amd64-tdep.h (tdesc_x32): Remove the declaration.
4517 * amd64-tdep.c: Don't include features/i386/x32*.c.
4518 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
4519 functions.
4520 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
4521 and i386/x32-avx-avx512.
4522 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
4523 and i386/x32.xml.
4524 * features/i386/x32-avx-avx512.c: Removed.
4525 * features/i386/x32-avx-avx512.xml: Removed.
4526 * features/i386/x32-avx.c: Removed.
4527 * features/i386/x32-avx.xml: Removed.
4528 * features/i386/x32.c: Removed.
4529 * features/i386/x32.xml: Removed.
4530 * regformats/i386/x32-avx-avx512.dat: Removed.
4531 * regformats/i386/x32-avx.dat: Removed.
4532 * regformats/i386/x32.dat: Removed.
4533
4534 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
4535
4536 PR breakpoints/21886
4537 * mem-break.c (default_memory_insert_breakpoint): Use
4538 `->placed_address' rather than `->reqstd_address' for the
4539 breakpoint location.
4540
4541 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
4542
4543 * arch-utils.c (default_print_insn): Remove arch/mach/endian
4544 assertions.
4545
4546 2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
4547
4548 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
4549 a union of `tdep_info', `tdesc_data' and `id'.
4550 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
4551 rather than `info.tdep_info'.
4552 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
4553 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
4554 * i386-tdep.c (i386_gdbarch_init): Likewise.
4555 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
4556 * mips-tdep.c (mips_gdbarch_init): Likewise.
4557 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
4558 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
4559 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
4560 `info.tdep_info'.
4561 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
4562 `info.tdep_info'.
4563 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
4564 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
4565 `info.tdep_info'.
4566 * spu-tdep.c (spu_gdbarch_init): Likewise.
4567 * gdbarch.h: Regenerate.
4568
4569 2017-08-07 Leszek Swirski <leszeks@google.com>
4570
4571 PR symtab/20899
4572 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
4573
4574 2017-08-07 Simon Marchi <simon.marchi@ericsson.com>
4575
4576 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
4577 (gdbsim_open): Rename gdb_argv args object to argv.
4578
4579 2017-08-05 Tom Tromey <tom@tromey.com>
4580
4581 * compile/compile-object-load.c (compile_object_load): Use
4582 gdb::unique_xmalloc_ptr.
4583 * cli/cli-dump.c (scan_filename): Rename from
4584 scan_filename_with_cleanup. Change return type.
4585 (scan_expression): Rename from scan_expression_with_cleanup.
4586 Change return type.
4587 (dump_memory_to_file, dump_value_to_file, restore_command):
4588 Use gdb::unique_xmalloc_ptr. Update.
4589 * cli/cli-cmds.c (find_and_open_script): Use
4590 gdb::unique_xmalloc_ptr.
4591 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
4592 * symmisc.c (maintenance_print_symbols)
4593 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
4594 * symfile.c (symfile_bfd_open, generic_load)
4595 (add_symbol_file_command, remove_symbol_file_command): Use
4596 gdb::unique_xmalloc_ptr.
4597 * source.c (openp): Use gdb::unique_xmalloc_ptr.
4598 * psymtab.c (maintenance_print_psymbols): Use
4599 gdb::unique_xmalloc_ptr.
4600 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
4601 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
4602 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
4603 (reload_shared_libraries_1): Likewise.
4604
4605 2017-08-05 Tom Tromey <tom@tromey.com>
4606
4607 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
4608 (rust_op_vector, rust_set_vector): New typedefs.
4609 (current_parser): New global.
4610 (work_obstack): Change to pointer type. Update all users.
4611 (rust_ast, pstate): Remove globals.
4612 (struct rust_parser): New.
4613 (%union) <params, field_inits>: Change type.
4614 (start, tuple_expr, unit_expr, struct_expr_list, literal)
4615 (field_expr, expr_list, maybe_expr_list, type_list): Update.
4616 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
4617 (convert_params_to_types, convert_params_to_expression): Change
4618 type of "params".
4619 (ast_string): Change type of "fields".
4620 (rust_parse): Make a rust_parser. Remove cleanups.
4621 (rust_lex_tests): Make and install an auto_obstack.
4622
4623 2017-08-04 Yao Qi <yao.qi@linaro.org>
4624
4625 * configure.srv (ipa_x32_linux_regobj): New.
4626 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
4627 instead of X86_TDESC_AVX512.
4628 (initialize_low_tracepoint): Call
4629 init_registers_x32_avx_avx512_linux.
4630
4631 2017-08-04 Yao Qi <yao.qi@linaro.org>
4632
4633 * utils.h (gdb_argv): Add namespace std for nullptr_t.
4634
4635 2017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
4636
4637 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
4638
4639 2017-08-03 Tom Tromey <tom@tromey.com>
4640
4641 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
4642 Remove.
4643 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
4644
4645 2017-08-03 Tom Tromey <tom@tromey.com>
4646
4647 * python/py-param.c (compute_enum_values): Use gdb_argv.
4648
4649 2017-08-03 Tom Tromey <tom@tromey.com>
4650
4651 * utils.h (struct gdb_argv_deleter): New.
4652 (gdb_argv): New class.
4653 * utils.c (gdb_argv::reset): New method.
4654 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
4655 * tracefile.c (tsave_command): Use gdb_argv.
4656 * top.c (new_ui_command): Use gdb_argv.
4657 * symmisc.c (maintenance_print_symbols)
4658 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
4659 * symfile.c (symbol_file_command, generic_load)
4660 (remove_symbol_file_command): Use gdb_argv.
4661 * stack.c (backtrace_command): Use gdb_argv.
4662 * source.c (add_path, show_substitute_path_command)
4663 (unset_substitute_path_command, set_substitute_path_command):
4664 Use gdb_argv.
4665 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
4666 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
4667 * remote.c (extended_remote_run, remote_put_command)
4668 (remote_get_command, remote_delete_command): Use gdb_argv.
4669 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
4670 (gdbsim_open): Use gdb_argv.
4671 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
4672 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
4673 * procfs.c (procfs_info_proc): Use gdb_argv.
4674 * interps.c (interpreter_exec_cmd): Use gdb_argv.
4675 * infrun.c (handle_command): Use gdb_argv.
4676 * inferior.c (add_inferior_command, clone_inferior_command):
4677 Use gdb_argv.
4678 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
4679 * exec.c (exec_file_command): Use gdb_argv.
4680 * cli/cli-cmds.c (alias_command): Use gdb_argv.
4681 * compile/compile.c (build_argc_argv): Use gdb_argv.
4682
4683 2017-08-03 Tom Tromey <tom@tromey.com>
4684
4685 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
4686
4687 2017-08-03 Tom Tromey <tom@tromey.com>
4688
4689 * python/python.c (compute_python_string): Return std::string.
4690 (gdbpy_eval_from_control_command): Update.
4691 (do_start_initialization): Use std::string.
4692 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
4693 xstrprintf.
4694 * python/py-breakpoint.c (local_setattro): Use string_printf, not
4695 xstrprintf.
4696
4697 2017-08-03 Tom Tromey <tom@tromey.com>
4698
4699 * top.h (do_restore_instream_cleanup): Remove.
4700 * top.c (do_restore_instream_cleanup): Remove.
4701 (read_command_file): Use scoped_restore.
4702 * cli/cli-script.c (execute_user_command): Use scoped_restore.
4703
4704 2017-08-03 Tom Tromey <tom@tromey.com>
4705
4706 * cli/cli-script.c (execute_user_command)
4707 (execute_control_command): Use scoped_restore.
4708
4709 2017-08-03 Tom Tromey <tom@tromey.com>
4710
4711 * cli/cli-script.c (do_restore_user_call_depth): Remove.
4712 (execute_user_command): Remove user_call_depth; use
4713 user_args_stack's size instead.
4714
4715 2017-08-03 Tom Tromey <tom@tromey.com>
4716
4717 * top.h (in_user_command): Remove.
4718 * top.c (in_user_command): Remove.
4719 * cli/cli-script.c (do_restore_user_call_depth)
4720 (execute_user_command): Update.
4721
4722 2017-08-03 Tom Tromey <tom@tromey.com>
4723
4724 * valops.c (search_struct_method): Use gdb::byte_vector.
4725 * valarith.c (value_concat): Use std::vector.
4726 * target.c (memory_xfer_partial): Use gdb::byte_vector.
4727 (simple_search_memory): Likewise.
4728 * printcmd.c (find_string_backward): Use gdb::byte_vector.
4729 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
4730 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
4731 * elfread.c (elf_rel_plt_read): Use std::string.
4732 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
4733 * cli/cli-dump.c (restore_section_callback): Use
4734 gdb::byte_vector.
4735
4736 2017-08-03 Tom Tromey <tom@tromey.com>
4737
4738 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
4739
4740 2017-08-03 Tom Tromey <tom@tromey.com>
4741
4742 * tui/tui-regs.c (tui_restore_gdbout): Remove.
4743 (tui_register_format): Use scoped_restore.
4744
4745 2017-08-03 Tom Tromey <tom@tromey.com>
4746
4747 * reverse.c (exec_direction_default): Remove.
4748 (exec_reverse_once): Use scoped_restore.
4749 * remote.c (restore_remote_timeout): Remove.
4750 (remote_flash_erase, remote_flash_write, remote_flash_done)
4751 (readchar, remote_serial_write): Use scoped_restore.
4752 * cli/cli-script.c (struct source_cleanup_lines_args)
4753 (source_cleanup_lines): Remove.
4754 (script_from_file): Use scoped_restore.
4755 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
4756 (source_command): Use scoped_restore.
4757
4758 2017-08-03 Tom Tromey <tom@tromey.com>
4759
4760 * utils.h (make_cleanup_free_so): Remove.
4761 * utils.c (do_free_so, make_cleanup_free_so): Remove.
4762 * solist.h (struct so_deleter): New.
4763 (so_list_up): New typedef.
4764 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
4765
4766 2017-08-03 Tom Tromey <tom@tromey.com>
4767
4768 * utils.h (make_cleanup_restore_current_language): Remove.
4769 * utils.c (do_restore_current_language)
4770 (make_cleanup_restore_current_language): Remove.
4771 * parse.c (parse_exp_in_context_1)
4772 (parse_expression_with_language): Use
4773 scoped_restore_current_language.
4774 * mi/mi-main.c (mi_cmd_execute): Use
4775 scoped_restore_current_language.
4776 * language.h (scoped_restore_current_language): New class.
4777
4778 2017-08-03 Tom Tromey <tom@tromey.com>
4779
4780 * compile/compile.c (cleanup_unlink_file): Remove.
4781 (compile_to_object): Use gdb::unlinker.
4782 (eval_compile_command): Likewise.
4783
4784 2017-08-03 Tom Tromey <tom@tromey.com>
4785
4786 * utils.h (make_cleanup_fclose): Remove.
4787 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
4788
4789 2017-08-03 Tom Tromey <tom@tromey.com>
4790
4791 * top.c (open_terminal_stream): Return gdb_file_up.
4792 (new_ui_command): Update.
4793
4794 2017-08-03 Tom Tromey <tom@tromey.com>
4795
4796 * source.c (print_source_lines_base, forward_search_command)
4797 (reverse_search_command): Use gdb_file_up.
4798
4799 2017-08-03 Tom Tromey <tom@tromey.com>
4800
4801 * fbsd-nat.c (fbsd_find_memory_regions): Update.
4802
4803 2017-08-03 Tom Tromey <tom@tromey.com>
4804
4805 * cli/cli-cmds.c (find_and_open_script): Change return type.
4806 Remove "streamp" and "full_path" parameters.
4807 (source_script_with_search): Update.
4808 * auto-load.c (source_script_file): Update.
4809 * cli/cli-cmds.h (find_and_open_script): Change type.
4810 (open_script): New struct.
4811
4812 2017-08-03 Tom Tromey <tom@tromey.com>
4813
4814 * xml-support.c (xml_fetch_content_from_file): Update.
4815 * ui-file.c (stdio_file::open): Update.
4816 * tracefile-tfile.c (tfile_start): Update.
4817 * remote.c (remote_file_put, remote_file_get): Update.
4818 * nat/linux-procfs.c (linux_proc_get_int)
4819 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
4820 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
4821 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
4822 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
4823 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
4824 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
4825 * linux-nat.c (linux_proc_pending_signals): Update.
4826 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
4827 (file_closer): Remove.
4828 * compile/compile.c (compile_to_object): Update.
4829 * common/filestuff.h (struct gdb_file_deleter): New.
4830 (gdb_file_up): New typedef.
4831 (gdb_fopen_cloexec): Change return type.
4832 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
4833 * cli/cli-dump.c (fopen_with_cleanup): Remove.
4834 (dump_binary_file, restore_binary_file): Update.
4835 * auto-load.c (auto_load_objfile_script_1): Update.
4836
4837 2017-08-03 Tom Tromey <tom@tromey.com>
4838
4839 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
4840 (info_static_tracepoint_markers_command): Likewise.
4841 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
4842 * skip.c (skip_info): Use ui_out_emit_table.
4843 * progspace.c (print_program_space): Use ui_out_emit_table.
4844 * osdata.c (info_osdata): Use ui_out_emit_table.
4845 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
4846 ui_out_emit_table.
4847 * linux-thread-db.c (info_auto_load_libthread_db): Use
4848 ui_out_emit_table.
4849 * inferior.c (print_inferior): Use ui_out_emit_table.
4850 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
4851 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
4852 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
4853 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
4854 * ui-out.h (class ui_out_emit_table): New.
4855
4856 2017-08-02 Maciej W. Rozycki <macro@imgtec.com>
4857
4858 * mips-tdep.c (mips_fpu_type_str): New function.
4859 (mips_dump_tdep): Call it.
4860
4861 2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
4862
4863 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
4864 `->mips_fpu_type'.
4865
4866 2017-07-31 Xavier Roirand <roirand@adacore.com>
4867
4868 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4869
4870 2017-07-27 Xavier Roirand <roirand@adacore.com>
4871
4872 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
4873
4874 2017-07-26 Yao Qi <yao.qi@linaro.org>
4875
4876 * cli/cli-cmds.c (maintenancechecklist): New variable.
4877 * gdbcmd.h (maintenancechecklist): Declare it.
4878 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
4879 Call i386_linux_read_description with different masks.
4880 * maint.c (maintenance_check_command): New function.
4881 (_initialize_maint_cmds): Call add_prefix_cmd.
4882 * target-descriptions.c (tdesc_reg): override operator != and ==.
4883 (tdesc_type): Likewise.
4884 (tdesc_feature): Likewise.
4885 (target_desc): Likewise.
4886 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
4887 (maintenance_check_xml_descriptions): New function.
4888 (_initialize_target_descriptions) Add command "xml-descriptions".
4889 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
4890
4891 2017-07-26 Yao Qi <yao.qi@linaro.org>
4892
4893 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
4894 Include features/i386/32bit-*.c.
4895 (i386_linux_read_description): Generate target description if it
4896 doesn't exist.
4897 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
4898 functions.
4899 * features/i386/32bit-linux.c: Re-generated.
4900 * features/i386/32bit-sse.c: Likewise.
4901 * target-descriptions.c (print_c_feature::visit): Print code to
4902 set register number if needed.
4903 (print_c_feature) <m_next_regnum>: New field.
4904
4905 2017-07-26 Yao Qi <yao.qi@linaro.org>
4906
4907 * features/Makefile (CFILES): Rename with TDESC_CFILES.
4908 (FEATURE_XMLFILES): New.
4909 (FEATURE_CFILES): New.
4910 New rules.
4911 (clean-cfiles): Remove generated c files.
4912 * features/i386/32bit-avx.c: Generated.
4913 * features/i386/32bit-avx512.c: Generated.
4914 * features/i386/32bit-core.c: Generated.
4915 * features/i386/32bit-linux.c: Generated.
4916 * features/i386/32bit-mpx.c: Generated.
4917 * features/i386/32bit-pkeys.c: Generated.
4918 * features/i386/32bit-sse.c: Generated.
4919 * target-descriptions.c: Include algorithm.
4920 (tdesc_element_visitor): Add method visit_end.
4921 (print_c_tdesc): Implement visit_end.
4922 (print_c_tdesc:: m_filename_after_features): Move it to
4923 protected.
4924 (print_c_feature): New class.
4925 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
4926 name starts with "i386/32bit-".
4927
4928 2017-07-26 Yao Qi <yao.qi@linaro.org>
4929
4930 * target-descriptions.c (tdesc_element_visitor): New class.
4931 (tdesc_element): New class.
4932 (tdesc_reg): Inherit from tdesc_element.
4933 (tdesc_reg::accept): New function.
4934 (tdesc_type): Inherit from tdesc_element.
4935 (tdesc_type::accept): New function.
4936 (tdesc_feature): Inherit from tdesc_element.
4937 (tdesc_feature::accept): New function.
4938 (target_desc): Inherit from tdesc_element.
4939 (target_desc::target_desc): New.
4940 (target_desc::~target_desc): New.
4941 (target_desc::accept): New.
4942 (allocate_target_description): Use new.
4943 (free_target_description): Use delete.
4944 (print_c_tdesc): New class.
4945 (maint_print_c_tdesc_cmd): Adjust.
4946
4947 * features/aarch64.c: Re-generated.
4948 * features/arc-arcompact.c: Re-generated.
4949 * features/arc-v2.c: Re-generated.
4950 * features/arm/arm-with-iwmmxt.c: Re-generated.
4951 * features/arm/arm-with-m.c: Re-generated.
4952 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
4953 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
4954 * features/arm/arm-with-neon.c: Re-generated.
4955 * features/arm/arm-with-vfpv2.c: Re-generated.
4956 * features/arm/arm-with-vfpv3.c: Re-generated.
4957 * features/i386/amd64-avx-avx512.c: Re-generated.
4958 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
4959 * features/i386/amd64-avx.c: Re-generated.
4960 * features/i386/amd64-avx-linux.c: Re-generated.
4961 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
4962 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
4963 * features/i386/amd64-avx-mpx.c: Re-generated.
4964 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
4965 * features/i386/amd64.c: Re-generated.
4966 * features/i386/amd64-linux.c: Re-generated.
4967 * features/i386/amd64-mpx.c: Re-generated.
4968 * features/i386/amd64-mpx-linux.c: Re-generated.
4969 * features/i386/i386-avx-avx512.c: Re-generated.
4970 * features/i386/i386-avx-avx512-linux.c: Re-generated.
4971 * features/i386/i386-avx.c: Re-generated.
4972 * features/i386/i386-avx-linux.c: Re-generated.
4973 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
4974 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
4975 * features/i386/i386-avx-mpx.c: Re-generated.
4976 * features/i386/i386-avx-mpx-linux.c: Re-generated.
4977 * features/i386/i386.c: Re-generated.
4978 * features/i386/i386-linux.c: Re-generated.
4979 * features/i386/i386-mmx.c: Re-generated.
4980 * features/i386/i386-mmx-linux.c: Re-generated.
4981 * features/i386/i386-mpx.c: Re-generated.
4982 * features/i386/i386-mpx-linux.c: Re-generated.
4983 * features/i386/x32-avx-avx512.c: Re-generated.
4984 * features/i386/x32-avx-avx512-linux.c: Re-generated.
4985 * features/i386/x32-avx.c: Re-generated.
4986 * features/i386/x32-avx-linux.c: Re-generated.
4987 * features/i386/x32.c: Re-generated.
4988 * features/i386/x32-linux.c: Re-generated.
4989 * features/microblaze.c: Re-generated.
4990 * features/microblaze-with-stack-protect.c: Re-generated.
4991 * features/mips64-dsp-linux.c: Re-generated.
4992 * features/mips64-linux.c: Re-generated.
4993 * features/mips-dsp-linux.c: Re-generated.
4994 * features/mips-linux.c: Re-generated.
4995 * features/nds32.c: Re-generated.
4996 * features/nios2.c: Re-generated.
4997 * features/nios2-linux.c: Re-generated.
4998 * features/rs6000/powerpc-32.c: Re-generated.
4999 * features/rs6000/powerpc-32l.c: Re-generated.
5000 * features/rs6000/powerpc-403.c: Re-generated.
5001 * features/rs6000/powerpc-403gc.c : Re-generated.
5002 * features/rs6000/powerpc-405.c: Re-generated.
5003 * features/rs6000/powerpc-505.c: Re-generated.
5004 * features/rs6000/powerpc-601.c: Re-generated.
5005 * features/rs6000/powerpc-602.c: Re-generated.
5006 * features/rs6000/powerpc-603.c: Re-generated.
5007 * features/rs6000/powerpc-604.c: Re-generated.
5008 * features/rs6000/powerpc-64.c: Re-generated.
5009 * features/rs6000/powerpc-64l.c: Re-generated.
5010 * features/rs6000/powerpc-7400.c: Re-generated.
5011 * features/rs6000/powerpc-750.c: Re-generated.
5012 * features/rs6000/powerpc-860.c: Re-generated.
5013 * features/rs6000/powerpc-altivec32.c: Re-generated.
5014 * features/rs6000/powerpc-altivec32l.c: Re-generated.
5015 * features/rs6000/powerpc-altivec64.c: Re-generated.
5016 * features/rs6000/powerpc-altivec64l.c: Re-generated.
5017 * features/rs6000/powerpc-cell32l.c: Re-generated.
5018 * features/rs6000/powerpc-cell64l.c: Re-generated.
5019 * features/rs6000/powerpc-e500.c: Re-generated.
5020 * features/rs6000/powerpc-e500l.c: Re-generated.
5021 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
5022 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
5023 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
5024 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
5025 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
5026 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
5027 * features/rs6000/powerpc-vsx32.c: Re-generated.
5028 * features/rs6000/powerpc-vsx32l.c: Re-generated.
5029 * features/rs6000/powerpc-vsx64.c: Re-generated.
5030 * features/rs6000/powerpc-vsx64l.c: Re-generated.
5031 * features/rs6000/rs6000.c: Re-generated.
5032 * features/s390-linux32.c: Re-generated.
5033 * features/s390-linux32v1.c: Re-generated.
5034 * features/s390-linux32v2.c: Re-generated.
5035 * features/s390-linux64.c: Re-generated.
5036 * features/s390-linux64v1.c: Re-generated.
5037 * features/s390-linux64v2.c: Re-generated.
5038 * features/s390-te-linux64.c: Re-generated.
5039 * features/s390-tevx-linux64.c: Re-generated.
5040 * features/s390-vx-linux64.c: Re-generated.
5041 * features/s390x-linux64.c: Re-generated.
5042 * features/s390x-linux64v1.c: Re-generated.
5043 * features/s390x-linux64v2.c: Re-generated.
5044 * features/s390x-te-linux64.c: Re-generated.
5045 * features/s390x-tevx-linux64.c: Re-generated.
5046 * features/s390x-vx-linux64.c: Re-generated.
5047 * features/sparc/sparc32-solaris.c: Re-generated.
5048 * features/sparc/sparc64-solaris.c: Re-generated.
5049 * features/tic6x-c62x.c: Re-generated.
5050 * features/tic6x-c62x-linux.c: Re-generated.
5051 * features/tic6x-c64x.c: Re-generated.
5052 * features/tic6x-c64x-linux.c: Re-generated.
5053 * features/tic6x-c64xp.c: Re-generated.
5054 * features/tic6x-c64xp-linux.c: Re-generated.
5055
5056 2017-07-26 Yao Qi <yao.qi@linaro.org>
5057
5058 * i386-linux-tdep.c (i386_linux_read_description): New function.
5059 (i386_linux_core_read_description): Call
5060 i386_linux_read_description.
5061 * i386-linux-tdep.h (i386_linux_read_description): Declare.
5062 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
5063 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
5064 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
5065 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
5066 * x86-linux-nat.c (x86_linux_read_description): Call
5067 i386_linux_read_description.
5068
5069 2017-07-26 Yao Qi <yao.qi@linaro.org>
5070
5071 * NEWS: Mention it.
5072 * features/Makefile (%.c: %.xml): Pass the xml file name to
5073 command "maint print c-tdesc".
5074 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
5075 name from 'arg'.
5076
5077 2017-07-26 Yao Qi <yao.qi@linaro.org>
5078
5079 * target-descriptions.c (target_desc): Add ctor and dtor. Do
5080 in-class initialization.
5081 (tdesc_create_feature): Call new instead of XCNEW.
5082 (free_target_description): Ue delete.
5083
5084 2017-07-25 John Baldwin <jhb@FreeBSD.org>
5085
5086 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
5087
5088 2017-07-25 Yao Qi <yao.qi@linaro.org>
5089
5090 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
5091 constant.
5092 (amd64_x32_init_abi): Likewise.
5093 * amd64-tdep.h (amd64_init_abi): Update declaration.
5094 (amd64_x32_init_abi): Likewise.
5095
5096 2017-07-25 Yao Qi <yao.qi@linaro.org>
5097
5098 PR tdep/21717
5099 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
5100 condition for FPSCR.
5101 (arm_linux_store_inferior_registers): Likewise.
5102
5103 2017-07-22 Tom Tromey <tom@tromey.com>
5104
5105 * break-catch-syscall.c (struct catch_syscall_inferior_data)
5106 <syscalls_counts>: Now a std::vector.
5107 (get_catch_syscall_inferior_data): Use "new".
5108 (catch_syscall_inferior_data_cleanup): Use "delete".
5109 (insert_catch_syscall, remove_catch_syscall)
5110 (clear_syscall_counts): Update.
5111
5112 2017-07-22 Tom Tromey <tom@tromey.com>
5113
5114 * break-catch-syscall.c (syscall_catchpoint)
5115 <syscalls_to_be_caught>: Now a std::vector<int>
5116 (~syscall_catchpoint): Remove.
5117 (insert_catch_syscall, remove_catch_syscall)
5118 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5119 (print_mention_catch_syscall, print_recreate_catch_syscall):
5120 Update.
5121 (create_syscall_event_catchpoint): Change type of "filter"
5122 parameter.
5123 (catch_syscall_split_args): Return a std::vector.
5124 (catch_syscall_command_1, catching_syscall_number_1): Update.
5125
5126 2017-07-22 Tom Tromey <tom@tromey.com>
5127
5128 * break-catch-throw.c (struct exception_catchpoint)
5129 <exception_rx>: Now a std::string.
5130 (~exception_catchpoint): Remove.
5131 (print_one_detail_exception_catchpoint): Update.
5132 (handle_gnu_v3_exceptions): Change type of except_rx.
5133 (extract_exception_regexp): Return a std::string.
5134 (catch_exception_command_1): Update.
5135
5136 2017-07-22 Tom Tromey <tom@tromey.com>
5137
5138 * break-catch-sig.c (gdb_signal_type): Remove typedef.
5139 (struct signal_catchpoint) <signals_to_be_caught>: Now a
5140 std::vector.
5141 <catch_all>: Now a bool.
5142 (~signal_catchpoint): Remove.
5143 (signal_catchpoint_insert_location)
5144 (signal_catchpoint_remove_location)
5145 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
5146 (signal_catchpoint_print_mention)
5147 (signal_catchpoint_print_recreate)
5148 (signal_catchpoint_explains_signal): Update.
5149 (create_signal_catchpoint): Change type of "filter" and
5150 "catch_all".
5151 (catch_signal_split_args): Return a std::vector. Change type of
5152 "catch_all".
5153 (catch_signal_command): Update.
5154
5155 2017-07-20 Pedro Alves <palves@redhat.com>
5156
5157 * ada-lang.c (ada_language_defn): Make extern.
5158 (_initialize_ada_language): Remove add_language call.
5159 * c-lang.c (c_language_defn, cplus_language_defn)
5160 (asm_language_defn, minimal_language_defn): Make extern.
5161 (_initialize_c_language): Delete.
5162 * completer.c (compare_cstrings): Delete, moved to utils.h.
5163 * d-lang.c (d_language_defn): Make extern.
5164 (_initialize_d_language): Remove add_language calls.
5165 * defs.h (enum language): Add comment.
5166 * f-lang.c (f_language_defn): Make extern.
5167 (_initialize_f_language): Remove add_language call.
5168 * go-lang.c (go_language_defn): Make extern.
5169 (_initialize_go_language): Remove add_language call.
5170 * language.c: Include <algorithm>.
5171 (languages): Redefine as const array.
5172 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
5173 (set_language_command): Handle "local". Use for-range loop.
5174 (set_language): Remove loop.
5175 (language_enum): Rewrite.
5176 (language_def, language_str): Remove loops.
5177 (add_language): Delete.
5178 (add_set_language_command): New, based on add_languages.
5179 (skip_language_trampoline): Adjust.
5180 (local_language_defn): Delete.
5181 (language_gdbarch_post_init): Adjust.
5182 (_initialize_language): Remove add_language calls. Call
5183 add_set_language_command.
5184 * language.h (add_language): Delete.
5185 (auto_language_defn)
5186 (unknown_language_defn, minimal_language_defn, ada_language_defn)
5187 (asm_language_defn, c_language_defn, cplus_language_defn)
5188 (d_language_defn, f_language_defn, go_language_defn)
5189 (m2_language_defn, objc_language_defn, opencl_language_defn)
5190 (pascal_language_defn, rust_language_defn): Declare.
5191 * m2-lang.c (m2_language_defn): Make extern.
5192 (_initialize_m2_language): Remove add_language call.
5193 * objc-lang.c (objc_language_defn): Make extern.
5194 (_initialize_objc_language): Remove add_language call.
5195 * opencl-lang.c (opencl_language_defn): Make extern.
5196 (_initialize_opencl_language): Remove add_language call.
5197 * p-lang.c (pascal_language_defn): Make extern.
5198 (_initialize_pascal_language): Delete.
5199 * rust-lang.c (rust_language_defn): Make extern.
5200 (_initialize_rust_language): Delete.
5201 * utils.h (compare_cstrings): New static inline function.
5202
5203 2017-07-20 Pedro Alves <palves@redhat.com>
5204
5205 * ada-lang.c (ada_to_fixed_type_1): Adjust.
5206 (get_var_value): Constify parameters.
5207 (get_int_var_value): Change prototype.
5208 (to_fixed_range_type): Adjust.
5209 * ada-lang.h (get_int_var_value): Change prototype.
5210
5211 2017-07-20 Pedro Alves <palves@redhat.com>
5212
5213 * dwarf2read.c (dw2_lookup_symbol): Use
5214 SYMBOL_MATCHES_SEARCH_NAME.
5215 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
5216
5217 2017-07-20 Pedro Alves <palves@redhat.com>
5218
5219 * block.c (block_iter_name_step, block_iter_name_first)
5220 (block_iter_name_next): Delete.
5221 (block_lookup_symbol_primary): Adjust to use
5222 dict_iter_match_first/dict_iter_match_next.
5223 * block.h (block_iter_name_first, block_iter_name_next): Delete
5224 declarations.
5225 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
5226 dict_iter_match_first/dict_iter_match_next.
5227
5228 2017-07-20 Pedro Alves <palves@redhat.com>
5229
5230 * cp-support.c (cp_find_first_component_aux): Add missing case for
5231 end of string.
5232
5233 2017-07-18 David Blaikie <dblaikie@gmail.com>
5234
5235 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
5236 of dwo_cu's dwo_file.
5237
5238 2017-07-18 Yao Qi <yao.qi@linaro.org>
5239
5240 * remote.c (store_registers_using_G): Remove one line comment.
5241
5242 2017-07-18 Yao Qi <yao.qi@linaro.org>
5243
5244 * regcache.c (regcache_cpy): Simplify it.
5245 (regcache::cpy_no_passthrough): Remove it.
5246 * regcache.h (cpy_no_passthrough): Remove it.
5247 (regcache_dup, regcache_cpy): Update comments.
5248
5249 2017-07-18 Pedro Alves <palves@redhat.com>
5250
5251 * remote-sim.c (sim_command_completer): Adjust to work with a
5252 completion_tracker instead of a VEC.
5253
5254 2017-07-17 Pedro Alves <palves@redhat.com>
5255
5256 * completer.c (complete_source_filenames): New function.
5257 (complete_address_and_linespec_locations): New function.
5258 (location_completer): Use complete_address_and_linespec_locations.
5259 (completion_tracker::build_completion_result): Honor the tracker's
5260 request to suppress append.
5261 * completer.h (completion_tracker::suppress_append_ws)
5262 (completion_tracker::set_suppress_append_ws): New methods.
5263 (completion_tracker::m_suppress_append_ws): New field.
5264 (complete_source_filenames): New declaration.
5265 * linespec.c (linespec_complete_what): New.
5266 (struct ls_parser) <complete_what, completion_word,
5267 completion_quote_char, completion_quote_end, completion_tracker>:
5268 New fields.
5269 (string_find_incomplete_keyword_at_end): New.
5270 (linespec_lexer_lex_string): Record quote char. If in completion
5271 mode, don't throw.
5272 (linespec_lexer_consume_token): Advance the completion word point.
5273 (linespec_lexer_peek_token): Save/restore completion info.
5274 (save_stream_and_consume_token): New.
5275 (set_completion_after_number): New.
5276 (linespec_parse_basic): Set what to complete next depending on
5277 token. Handle function and label completions specially.
5278 (parse_linespec): Disable objc shortcut in completion mode. Set
5279 what to complete next depending on token type. Skip keyword if in
5280 completion mode.
5281 (complete_linespec_component, linespec_complete): New.
5282 * linespec.h (linespec_complete): Declare.
5283
5284 2017-07-17 Pedro Alves <palves@redhat.com>
5285
5286 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
5287 Handle 'operator<' / 'operator<<'.
5288
5289 2017-07-17 Pedro Alves <palves@redhat.com>
5290
5291 * completer.c (collect_explicit_location_matches): Handle
5292 MATCH_LABEL.
5293 (convert_explicit_location_to_linespec): New, factored out from
5294 ...
5295 (convert_explicit_location_to_sals): ... this.
5296 (complete_label): New.
5297 (linespec_complete_label, find_label_symbols_in_block): New.
5298 (find_label_symbols): Add completion_mode parameter and adjust to
5299 call find_label_symbols_in_block.
5300 * linespec.h (linespec_complete_label): Declare.
5301
5302 2017-07-17 Pedro Alves <palves@redhat.com>
5303
5304 * ada-lang.c (ada_collect_symbol_completion_matches): Add
5305 complete_symbol_mode parameter.
5306 * cli/cli-cmds.c (complete_command): Get the completion result out
5307 of the handle_brkchars tracker if used a custom word point.
5308 * completer.c: Include "linespec.h".
5309 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
5310 (advance_to_expression_complete_word_point): New.
5311 (completion_tracker::completes_to_completion_word): New.
5312 (complete_files_symbols): Pass down
5313 complete_symbol_mode::EXPRESSION.
5314 (explicit_options, probe_options): New.
5315 (collect_explicit_location_matches): Complete on the
5316 explictit_loc->foo instead of word. Use
5317 linespec_complete_function. Handle MATCH_LINE. Handle offering
5318 keyword and options completions.
5319 (backup_text_ptr): Delete.
5320 (skip_keyword): New.
5321 (complete_explicit_location): Remove 'word' parameter. Add
5322 language, quoted_arg_start and quoted_arg_end parameters.
5323 Rewrite, parsing left to right.
5324 (location_completer): Rewrite.
5325 (location_completer_handle_brkchars): New function.
5326 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
5327 (enum complete_line_internal_reason): Adjust comments.
5328 (completion_tracker::discard_completions): New.
5329 (completer_handle_brkchars_func_for_completer): Handle
5330 location_completer.
5331 (gdb_custom_word_point_brkchars)
5332 (gdb_org_rl_basic_quote_characters): New.
5333 (gdb_completion_word_break_characters_throw)
5334 (completion_find_completion_word): Handle trackers that use a
5335 custom word point.
5336 (completion_tracker::advance_custom_word_point_by): New.
5337 (completion_tracker::build_completion_result): Don't rely on
5338 readline appending the quote char.
5339 (gdb_rl_attempted_completion_function_throw): Handle trackers that
5340 use a custom word point.
5341 (gdb_rl_attempted_completion_function): Restore
5342 rl_basic_quote_characters.
5343 * completer.h (class completion_tracker): Extend intro comment.
5344 (completion_tracker::set_quote_char)
5345 (completion_tracker::quote_char)
5346 (completion_tracker::set_use_custom_word_point)
5347 (completion_tracker::use_custom_word_point)
5348 (completion_tracker::custom_word_point)
5349 (completion_tracker::set_custom_word_point)
5350 (completion_tracker::advance_custom_word_point_by)
5351 (completion_tracker::completes_to_completion_word)
5352 (completion_tracker::discard_completions): New methods.
5353 (completion_tracker::m_quote_char)
5354 (completion_tracker::m_use_custom_word_point)
5355 (completion_tracker::m_custom_word_point): New fields.
5356 (advance_to_expression_complete_word_point): Declare.
5357 * f-lang.c (f_collect_symbol_completion_matches): Add
5358 complete_symbol_mode parameter.
5359 * language.h (struct language_defn)
5360 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
5361 parameter.
5362 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
5363 (linespec_complete_function): New function.
5364 (linespec_lexer_lex_keyword): Adjust.
5365 * linespec.h (linespec_keywords, linespec_complete_function): New
5366 declarations.
5367 * location.c (find_end_quote): New function.
5368 (explicit_location_lex_one): Add explicit_completion_info
5369 parameter. Save quoting info. Don't throw if being called for
5370 completion. Don't handle Ada operators here.
5371 (is_cp_operator, skip_op_false_positives, first_of)
5372 (explicit_location_lex_one_function): New function.
5373 (string_to_explicit_location): Replace 'dont_throw' parameter with
5374 an explicit_completion_info pointer parameter. Handle it. Don't
5375 use explicit_location_lex_one to lex function names. Use
5376 explicit_location_lex_one_function instead.
5377 * location.h (struct explicit_completion_info): New.
5378 (string_to_explicit_location): Replace 'dont_throw' parameter with
5379 an explicit_completion_info pointer parameter.
5380 * symtab.c (default_collect_symbol_completion_matches_break_on):
5381 Add complete_symbol_mode parameter. Handle LINESPEC mode.
5382 (default_collect_symbol_completion_matches)
5383 (collect_symbol_completion_matches): Add complete_symbol_mode
5384 parameter.
5385 (collect_symbol_completion_matches_type): Pass down
5386 complete_symbol_mode::EXPRESSION.
5387 (collect_file_symbol_completion_matches): Add complete_symbol_mode
5388 parameter. Handle LINESPEC mode.
5389 * symtab.h (complete_symbol_mode): New.
5390 (default_collect_symbol_completion_matches_break_on)
5391 (default_collect_symbol_completion_matches)
5392 (collect_symbol_completion_matches)
5393 (collect_file_symbol_completion_matches): Add complete_symbol_mode
5394 parameter.
5395
5396 2017-07-17 Pedro Alves <palves@redhat.com>
5397
5398 * utils.c (enum class strncmp_iw_mode): New.
5399 (strcmp_iw): Rename to ...
5400 (strncmp_iw_with_mode): ... this. Add string2_len and mode
5401 parameters. Handle them.
5402 (strncmp_iw): New.
5403 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
5404 * utils.h (strncmp_iw): Declare.
5405 (strcmp_iw): Move describing comments here.
5406
5407 2017-07-17 Pedro Alves <palves@redhat.com>
5408
5409 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
5410 CP_OPERATOR_STR.
5411 * c-typeprint.c (is_type_conversion_operator): Use
5412 CP_OPERATOR_STR.
5413 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
5414 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
5415 CP_OPERATOR_LEN.
5416 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
5417 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
5418 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
5419 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
5420 CP_OPERATOR_STR.
5421 * location.c: Include "cp-support.h".
5422 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
5423 CP_OPERATOR_STR.
5424 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
5425 CP_OPERATOR_LEN.
5426
5427 2017-07-17 Pedro Alves <palves@redhat.com>
5428
5429 * cli/cli-cmds.c (complete_command): Use a completion tracker
5430 along with completion_find_completion_word for handle_brkchars
5431 phase.
5432 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
5433 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
5434 (struct gdb_rl_completion_word_info): New.
5435 (gdb_rl_find_completion_word): New.
5436 (completion_find_completion_word): New.
5437 * completer.h (completion_find_completion_word): Declare.
5438
5439 2017-07-17 Pedro Alves <palves@redhat.com>
5440
5441 * ada-lang.c (symbol_completion_match): Adjust comments.
5442 (symbol_completion_add): Replace vector parameter with
5443 completion_tracker parameter. Use it.
5444 (ada_make_symbol_completion_list): Rename to...
5445 (ada_collect_symbol_completion_matches): ... this. Add
5446 completion_tracker parameter and use it.
5447 (ada_language_defn): Adjust.
5448 * break-catch-syscall.c (catch_syscall_completer): Adjust
5449 prototype and work with completion_tracker instead of VEC.
5450 * breakpoint.c (condition_completer): Adjust prototype and work
5451 with completion_tracker instead of VEC.
5452 * c-lang.c (c_language_defn, cplus_language_defn)
5453 (asm_language_defn, minimal_language_defn): Adjust to renames.
5454 * cli/cli-cmds.c (complete_command): Rework using
5455 completion_tracker. Catch exceptions when completing.
5456 * cli/cli-decode.c (integer_unlimited_completer)
5457 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
5458 with completion_tracker instead of VEC.
5459 * command.h (struct completion_tracker): Forward declare.
5460 (completer_ftype, completer_handle_brkchars_ftype): Change
5461 types.
5462 (complete_on_cmdlist, complete_on_enum): Adjust.
5463 * completer.c: Include <algorithm>.
5464 (struct gdb_completer_state): New.
5465 (current_completion): New global.
5466 (readline_line_completion_function): Delete.
5467 (noop_completer, filename_completer)
5468 (filename_completer_handle_brkchars, complete_files_symbols)
5469 (linespec_location_completer): Adjust to work with a
5470 completion_tracker instead of a VEC.
5471 (string_or_empty): New.
5472 (collect_explicit_location_matches): Adjust to work with a
5473 completion_tracker instead of a VEC.
5474 (explicit_location_completer): Rename to ...
5475 (complete_explicit_location): ... this and adjust to work with a
5476 completion_tracker instead of a VEC.
5477 (location_completer): Adjust to work with a completion_tracker
5478 instead of a VEC.
5479 (add_struct_fields): Adjust to work with a completion_list instead
5480 of VEC.
5481 (expression_completer): Rename to ...
5482 (complete_expression): ... this and adjust to work with a
5483 completion_tracker instead of a VEC. Use complete_files_symbols.
5484 (expression_completer): Reimplement on top of complete_expression.
5485 (symbol_completer): Adjust to work with a completion_tracker
5486 instead of a VEC.
5487 (enum complete_line_internal_reason): Add describing comments.
5488 (complete_line_internal_normal_command): Adjust to work with a
5489 completion_tracker instead of a VEC.
5490 (complete_line_internal): Rename to ...
5491 (complete_line_internal_1): ... this and adjust to work with a
5492 completion_tracker instead of a VEC. Assert TEXT is NULL in the
5493 handle_brkchars phase.
5494 (new_completion_tracker): Delete.
5495 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
5496 complete_line_internal_1.
5497 (free_completion_tracker): Delete.
5498 (INITIAL_COMPLETION_HTAB_SIZE): New.
5499 (completion_tracker::completion_tracker)
5500 (completion_tracker::~completion_tracker): New.
5501 (maybe_add_completion): Delete.
5502 (completion_tracker::maybe_add_completion)
5503 (completion_tracker::add_completion)
5504 (completion_tracker::add_completions): New.
5505 (throw_max_completions_reached_error): Delete.
5506 (complete_line): Adjust to work with a completion_tracker instead
5507 of a VEC. Don't create a completion_tracker_t or check for max
5508 completions here.
5509 (command_completer, command_completer_handle_brkchars)
5510 (signal_completer, reg_or_group_completer_1)
5511 (reg_or_group_completer, default_completer_handle_brkchars):
5512 Adjust to work with a completion_tracker.
5513 (gdb_completion_word_break_characters_throw): New.
5514 (gdb_completion_word_break_characters): Reimplement.
5515 (line_completion_function): Delete.
5516 (completion_tracker::recompute_lowest_common_denominator)
5517 (expand_preserving_ws)
5518 (completion_tracker::build_completion_result)
5519 (completion_result::completion_result)
5520 (completion_result::completion_result)
5521 (completion_result::~completion_result)
5522 (completion_result::completion_result)
5523 (completion_result::release_match_list, compare_cstrings)
5524 (completion_result::sort_match_list)
5525 (completion_result::reset_match_list)
5526 (gdb_rl_attempted_completion_function_throw)
5527 (gdb_rl_attempted_completion_function): New.
5528 * completer.h (completion_list, struct completion_result)
5529 (class completion_tracker): New.
5530 (complete_line): Add completion_tracker parameter.
5531 (readline_line_completion_function): Delete.
5532 (gdb_rl_attempted_completion_function): New.
5533 (noop_completer, filename_completer, expression_completer)
5534 (location_completer, symbol_completer, command_completer)
5535 (signal_completer, reg_or_group_completer): Update prototypes.
5536 (completion_tracker_t, new_completion_tracker)
5537 (make_cleanup_free_completion_tracker): Delete.
5538 (enum maybe_add_completion_enum): Delete.
5539 (maybe_add_completion): Delete.
5540 (throw_max_completions_reached_error): Delete.
5541 * corefile.c (complete_set_gnutarget): Adjust to work with a
5542 completion_tracker instead of a VEC.
5543 * cp-abi.c (cp_abi_completer): Adjust to work with a
5544 completion_tracker instead of a VEC.
5545 * d-lang.c (d_language_defn): Adjust.
5546 * disasm.c (disassembler_options_completer): Adjust to work with a
5547 completion_tracker instead of a VEC.
5548 * f-lang.c (f_make_symbol_completion_list): Rename to ...
5549 (f_collect_symbol_completion_matches): ... this. Adjust to work
5550 with a completion_tracker instead of a VEC.
5551 (f_language_defn): Adjust.
5552 * go-lang.c (go_language_defn): Adjust.
5553 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
5554 Adjust to work with a completion_tracker instead of a VEC.
5555 * infrun.c (handle_completer): Likewise.
5556 * interps.c (interpreter_completer): Likewise.
5557 * interps.h (interpreter_completer): Likewise.
5558 * language.c (unknown_language_defn, auto_language_defn)
5559 (local_language_defn): Adjust.
5560 * language.h (language_defn::la_make_symbol_completion_list):
5561 Rename to ...
5562 (language_defn::la_collect_symbol_completion_matches): ... this
5563 and adjust to work with a completion_tracker instead of a VEC.
5564 * m2-lang.c (m2_language_defn): Adjust.
5565 * objc-lang.c (objc_language_defn): Adjust.
5566 * opencl-lang.c (opencl_language_defn): Adjust.
5567 * p-lang.c (pascal_language_defn): Adjust.
5568 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
5569 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
5570 with a completion_tracker.
5571 * rust-lang.c (rust_language_defn): Adjust.
5572 * symtab.c (free_completion_list, do_free_completion_list)
5573 (return_val, completion_tracker): Delete.
5574 (completion_list_add_name, completion_list_add_symbol)
5575 (completion_list_add_msymbol, completion_list_objc_symbol)
5576 (completion_list_add_fields, add_symtab_completions): Add
5577 completion_tracker parameter and use it.
5578 (default_make_symbol_completion_list_break_on_1): Rename to...
5579 (default_collect_symbol_completion_matches_break_on): ... this.
5580 Add completion_tracker parameter and use it instead of allocating
5581 a completion tracker here.
5582 (default_make_symbol_completion_list_break_on): Delete old
5583 implementation.
5584 (default_make_symbol_completion_list): Delete.
5585 (default_collect_symbol_completion_matches): New.
5586 (make_symbol_completion_list): Delete.
5587 (collect_symbol_completion_matches): New.
5588 (make_symbol_completion_type): Rename to ...
5589 (collect_symbol_completion_matches_type): ... this. Add
5590 completion_tracker parameter and use it instead of VEC.
5591 (make_file_symbol_completion_list_1): Rename to...
5592 (collect_file_symbol_completion_matches): ... this. Add
5593 completion_tracker parameter and use it instead of VEC.
5594 (make_file_symbol_completion_list): Delete.
5595 (add_filename_to_list): Use completion_list instead of a VEC.
5596 (add_partial_filename_data::list): Now a completion_list.
5597 (make_source_files_completion_list): Work with a completion_list
5598 instead of a VEC.
5599 * symtab.h: Include "completer.h".
5600 (default_make_symbol_completion_list_break_on)
5601 (default_make_symbol_completion_list, make_symbol_completion_list)
5602 (make_symbol_completion_type, make_file_symbol_completion_list)
5603 (make_source_files_completion_list): Delete.
5604 (default_collect_symbol_completion_matches_break_on)
5605 (default_collect_symbol_completion_matches)
5606 (collect_symbol_completion_matches)
5607 (collect_symbol_completion_matches_type)
5608 (collect_file_symbol_completion_matches)
5609 (make_source_files_completion_list): New.
5610 * top.c (init_main): Don't install a rl_completion_entry_function
5611 hook. Install a rl_attempted_completion_function hook instead.
5612 * tui/tui-layout.c (layout_completer): Adjust to work with a
5613 completion_tracker.
5614 * tui/tui-regs.c (tui_reggroup_completer):
5615 * tui/tui-win.c (window_name_completer, focus_completer)
5616 (winheight_completer): Adjust to work with a completion_tracker.
5617 * value.c: Include "completer.h".
5618 (complete_internalvar): Adjust to work with a completion_tracker.
5619 * value.h (complete_internalvar): Likewise.
5620
5621 2017-07-17 Pedro Alves <palves@redhat.com>
5622
5623 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
5624 renames.
5625 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
5626 comments to completer_ftype's declaration.
5627 <completer_handle_brkchars>: Change type to
5628 completer_handle_brkchars_ftype.
5629 * command.h (completer_ftype): Add describing comment and give
5630 names to parameters.
5631 (completer_ftype_void): Rename to ...
5632 (completer_handle_brkchars_ftype) ... this. Add describing comment.
5633 (set_cmd_completer_handle_brkchars): Adjust.
5634 * completer.c (filename_completer_handle_brkchars): New function.
5635 (complete_line_internal_normal_command): New function, factored
5636 out from ...
5637 (complete_line_internal): ... here.
5638 (command_completer_handle_brkchars)
5639 (default_completer_handle_brkchars)
5640 (completer_handle_brkchars_func_for_completer): New functions.
5641 * completer.h (set_gdb_completion_word_break_characters): Delete
5642 declaration.
5643 (completer_handle_brkchars_func_for_completer): New declaration.
5644 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
5645 completer_handle_brkchars_func_for_completer.
5646
5647 2017-07-17 Pedro Alves <palves@redhat.com>
5648
5649 * completer.c (symbol_completer): New function, based on
5650 make_symbol_completion_list_fn.
5651 * completer.h (symbol_completer): New declaration.
5652 * guile/scm-cmd.c (cmdscm_completers): Adjust.
5653 * python/py-cmd.c (completers): Adjust.
5654 * symtab.c (make_symbol_completion_list_fn): Delete.
5655 * symtab.h (make_symbol_completion_list_fn): Delete.
5656 * cli/cli-decode.c (add_cmd): Adjust.
5657
5658 2017-07-17 Pedro Alves <palves@redhat.com>
5659
5660 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
5661 * dwarf2read.c: Include "filename-seen-cache.h".
5662 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
5663 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
5664 * filename-seen-cache.c: New file.
5665 * filename-seen-cache.h: New file.
5666 * symtab.c: Include "filename-seen-cache.h".
5667 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
5668 (create_filename_seen_cache, clear_filename_seen_cache)
5669 (delete_filename_seen_cache, filename_seen): Delete, parts moved
5670 to filename-seen-cache.h/filename-seen-cache.c.
5671 (output_source_filename, sources_info)
5672 (maybe_add_partial_symtab_filename)
5673 (make_source_files_completion_list): Adjust to use
5674 filename_seen_cache.
5675
5676 2017-07-17 Pedro Alves <palves@redhat.com>
5677
5678 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
5679 fields.
5680 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
5681 dwarf2_debug_sections*)): New.
5682 (dwarf2_per_objfile::dwarf2_per_objfile(const
5683 dwarf2_per_objfile&)): Declare as deleted.
5684 (dwarf2_per_objfile::operator=): Declare as deleted.
5685 (dwarf2_per_objfile::dwarf2_per_objfile)
5686 (dwarf2_per_objfile::~dwarf2_per_objfile)
5687 (dwarf2_per_objfile::free_cached_comp_units): New.
5688 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
5689 ctor. Call dwarf2_per_objfile's ctor manually.
5690 (dwarf2_locate_sections): Deleted/refactored as ...
5691 (dwarf2_per_objfile::locate_sections): ... this new method.
5692 (free_cached_comp_units): Defer to
5693 dwarf2_per_objfile::free_cached_comp_units.
5694 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
5695
5696 2017-07-14 Tom Tromey <tom@tromey.com>
5697
5698 PR rust/21764:
5699 * rust-exp.y (convert_ast_to_expression): Add "want_type"
5700 parameter.
5701 <UNOP_SIZEOF>: Split into separate case.
5702 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
5703
5704 2017-07-14 Tom Tromey <tom@tromey.com>
5705
5706 PR rust/21763:
5707 * symtab.c (symbol_matches_domain): Add language_rust to special
5708 case.
5709 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
5710 treat LOC_TYPEDEF symbols as variables.
5711
5712 2017-07-14 Pedro Alves <palves@redhat.com>
5713
5714 * symtab.c (make_file_symbol_completion_list_1): Iterate over
5715 symtabs matching all symtabs with SRCFILE as file name instead of
5716 only considering the first hit, with lookup_symtab.
5717
5718 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5719
5720 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
5721 operator_name parameters.
5722 (gen_expr): Update function call.
5723
5724 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5725
5726 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
5727 parameter.
5728 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
5729 Likewise.
5730 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
5731 parameter, use agent_expr::gdbarch instead, update function
5732 calls.
5733 (locexpr_tracepoint_var_ref): Likewise.
5734 (loclist_tracepoint_var_ref): Likewise.
5735 * ax-gdb.c (gen_trace_static_fields): Likewise.
5736 (gen_traced_pop): Likewise.
5737 (gen_frame_args_address): Likewise.
5738 (gen_frame_locals_address): Likewise.
5739 (gen_var_ref): Likewise.
5740 (gen_struct_ref_recursive): Likewise.
5741 (gen_static_field): Likewise.
5742 (gen_maybe_namespace_elt): Likewise.
5743 (gen_expr): Likewise.
5744 (gen_trace_for_var): Likewise.
5745 (gen_trace_for_expr): Likewise.
5746 (gen_trace_for_return_address): Likewise.
5747
5748 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5749
5750 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
5751 parameter.
5752 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
5753
5754 2017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5755
5756 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
5757 from ax, update calls.
5758 (gen_usual_arithmetic): Likewise.
5759 (gen_integral_promotions): Likewise.
5760 (gen_bitfield_ref): Likewise.
5761 (gen_primitive_field): Likewise.
5762 (gen_struct_ref_recursive): Likewise.
5763 (gen_struct_ref): Likewise.
5764 (gen_maybe_namespace_elt): Likewise.
5765 (gen_struct_elt_for_reference): Likewise.
5766 (gen_namespace_elt): Likewise.
5767 (gen_aggregate_elt_ref): Likewise.
5768 (gen_expr): Get gdbarch from ax, update calls.
5769 (gen_expr_binop_rest): Likewise.
5770
5771 2017-07-13 Pedro Alves <palves@redhat.com>
5772
5773 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
5774 as default tdesc.
5775 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
5776 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
5777 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
5778 tdesc_amd64_linux as default tdesc. Get final tdesc from the
5779 tdep.
5780 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
5781 Get final tdesc from the tdep.
5782 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
5783 default tdesc.
5784 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
5785 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
5786 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
5787 Use it as default tdesc.
5788 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
5789 down to amd_init_abi. No longer handle fallback tdesc here.
5790 * amd64-tdep.h (tdesc_x32): Declare.
5791 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
5792 parameter.
5793 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
5794 as default tdesc.
5795
5796 2017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5797
5798 * s390-linux-tdep.c (s390_process_record): Add support for
5799 instructions new in arch12.
5800
5801 2017-07-11 John Baldwin <jhb@FreeBSD.org>
5802
5803 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
5804 PT_GETFSBASE and PT_GETGSBASE.
5805 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
5806 PT_SETGSBASE.
5807
5808 2017-07-11 John Baldwin <jhb@FreeBSD.org>
5809
5810 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
5811 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
5812 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
5813 those rules.
5814 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
5815 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
5816 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
5817 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
5818 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
5819 * features/i386/amd64.xml: Add 64bit-segments.xml.
5820 * features/i386/amd64-avx-avx512.c: Regenerated.
5821 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
5822 * features/i386/amd64-avx-mpx.c: Regenerated.
5823 * features/i386/amd64-avx.c: Regenerated.
5824 * features/i386/amd64-mpx.c: Regenerated.
5825 * features/i386/amd64.c: Regenerated.
5826 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
5827 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
5828 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
5829 * regformats/i386/amd64-avx.dat: Regenerated.
5830 * regformats/i386/amd64-mpx.dat: Regenerated.
5831 * regformats/i386/amd64.dat: Regenerated.
5832
5833 2017-07-10 Yao Qi <yao.qi@linaro.org>
5834
5835 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
5836 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
5837
5838 2017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
5839
5840 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
5841 unsetenv.
5842 * gnulib/aclocal.m4: Regenerate.
5843 * gnulib/config.in: Regenerate.
5844 * gnulib/configure: Regenerate.
5845 * gnulib/import/Makefile.am: Regenerate.
5846 * gnulib/import/Makefile.in: Regenerate.
5847 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5848 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5849 * gnulib/import/m4/environ.m4: New file.
5850 * gnulib/import/m4/setenv.m4: New file.
5851 * gnulib/import/setenv.c: New file.
5852 * gnulib/import/unsetenv.c: New file.
5853
5854 2017-07-09 Simon Marchi <simon.marchi@ericsson.com>
5855
5856 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
5857 address when op is DW_OP_addr.
5858
5859 2017-07-09 Tom Tromey <tom@tromey.com>
5860
5861 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
5862 check and apply to outer type.
5863
5864 2017-07-07 John Baldwin <jhb@FreeBSD.org>
5865
5866 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
5867 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
5868 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
5869 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
5870
5871 2017-07-07 John Baldwin <jhb@FreeBSD.org>
5872
5873 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
5874
5875 2017-07-07 John Baldwin <jhb@FreeBSD.org>
5876
5877 * corelow.c (get_core_siginfo): Remove.
5878 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
5879 instead of get_core_siginfo.
5880 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
5881 * gdbarch.h: Re-generate.
5882 * gdbarch.c: Re-generate.
5883 * linux-tdep.c (linux_core_xfer_siginfo): New.
5884 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
5885
5886 2017-07-07 John Baldwin <jhb@FreeBSD.org>
5887
5888 * corelow.c (thread_section_name): Move to ...
5889 * gdbcore.h (thread_section_name): ... here.
5890
5891 2017-07-07 John Baldwin <jhb@FreeBSD.org>
5892
5893 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
5894 (struct siginfo32): New.
5895 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
5896 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
5897 via ptrace(PT_LWPINFO).
5898
5899 2017-07-07 John Baldwin <jhb@FreeBSD.org>
5900
5901 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
5902 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
5903 (fbsd_get_siginfo_type): New.
5904 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5905 (_initialize_fbsd_tdep): New.
5906
5907 2017-07-06 David Blaikie <dblaikie@gmail.com>
5908
5909 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
5910 a singular dwo_unit*) to support multiple CUs in the same way that
5911 multiple TUs are supported.
5912 (create_cus_hash_table): Replace create_dwo_cu with a function for
5913 parsing multiple CUs from a DWO file.
5914 (open_and_init_dwo_file): Use create_cus_hash_table rather than
5915 create_dwo_cu.
5916 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
5917 htab_find, rather than comparing the signature to a singleton CU in
5918 the dwo_file.
5919
5920 2017-07-06 Pedro Alves <palves@redhat.com>
5921
5922 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
5923
5924 2017-07-04 Pedro Alves <palves@redhat.com>
5925
5926 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
5927 * gdbtypes.h (TYPE_STATIC): Delete.
5928 (struct fn_field) <is_public, is_abstract, is_static, is_final,
5929 is_synchronized, is_native>: Delete.
5930 <dummy>: Bump.
5931 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
5932 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
5933 (TYPE_FN_FIELD_ABSTRACT): Delete.
5934
5935 2017-07-03 Simon Marchi <simon.marchi@ericsson.com>
5936
5937 * buffer.h (buffer_finish): Fix spelling mistakes.
5938
5939 2017-07-01 Eli Zaretskii <eliz@gnu.org>
5940
5941 * .dir-locals.el: Automatically switch to C-style comments in
5942 versions of Emacs that support the feature.
5943
5944 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
5945 Pedro Alves <palves@redhat.com>
5946
5947 PR cli/21688
5948 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
5949 (process_next_line): New variable 'inline_cmd'.
5950 Adjust 'if' clauses for "python", "compile" and "guile" to use
5951 'command_name_equals' and check for '!inline_cmd'.
5952
5953 2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
5954
5955 PR cli/21688
5956 * cli/cli-script.c (command_name_equals_not_inline): New function.
5957 (process_next_line): Adjust 'if' clauses for "python", "compile"
5958 and "guile" to use command_name_equals_not_inline.
5959
5960 2017-06-29 Pedro Alves <palves@redhat.com>
5961
5962 * completer.c (expression_completer): Call
5963 linespec_location_completer instead of location_completer.
5964
5965 2017-06-29 Pedro Alves <palves@redhat.com>
5966
5967 * completer.c (expression_completer): Remove code that recomputes
5968 'text' from 'word'.
5969
5970 2017-06-29 Yao Qi <yao.qi@linaro.org>
5971
5972 * regformats/regdat.sh: Generate code with
5973 "ifndef IN_PROCESS_AGENT".
5974
5975 2017-06-28 Pedro Alves <palves@redhat.com>
5976
5977 * command.h: Include "common/scoped_restore.h".
5978
5979 2017-06-28 Yao Qi <yao.qi@linaro.org>
5980
5981 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
5982 instead of obstack_grow.
5983
5984 2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
5985
5986 PR gdb/21337
5987 * symfile.c (reread_symbols): Call objfiles_changed just before
5988 read_symbols.
5989
5990 2017-06-27 Pedro Alves <palves@redhat.com>
5991
5992 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
5993 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
5994 (completion_list_add_symbol, completion_list_add_msymbol):
5995 ... these new functions.
5996 (add_symtab_completions)
5997 (default_make_symbol_completion_list_break_on_1): Adjust.
5998
5999 2017-06-27 Pedro Alves <palves@redhat.com>
6000
6001 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
6002 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
6003 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
6004 dtor.
6005 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
6006 'storage_obstack' field an auto_obstack. In-class initialize all
6007 non-bitfield fields. Make minsyms_read bool.
6008 * symfile.c (read_symbols): Adjust.
6009
6010 2017-06-27 Alan Hayward <alan.hayward@arm.com>
6011
6012 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
6013 (gdbsim_store_register): Likewise.
6014
6015 2017-06-27 Pedro Alves <palves@redhat.com>
6016
6017 * c-exp.y (name_obstack): Now an auto_obstack.
6018 (yylex): Use auto_obstack::clear.
6019 (c_parse): Use auto_obstack::clear instead of reinitializing and
6020 freeing the obstack.
6021 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
6022 * d-exp.y (name_obstack): Now an auto_obstack.
6023 (yylex): Use auto_obstack::clear.
6024 (d_parse): Use auto_obstack::clear instead of reinitializing and
6025 freeing the obstack.
6026 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
6027 auto_obstack.
6028 * dwarf2read.c (create_addrmap_from_index)
6029 (dwarf2_build_psymtabs_hard)
6030 (update_enumeration_type_from_children): Likewise.
6031 * gdb_obstack.h (auto_obstack): New type.
6032 * go-exp.y (name_obstack): Now an auto_obstack.
6033 (build_packaged_name): Use auto_obstack::clear.
6034 (go_parse): Use auto_obstack::clear instead of reinitializing and
6035 freeing the obstack.
6036 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
6037 auto_obstack.
6038 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
6039 * rust-exp.y (work_obstack): Now an auto_obstack.
6040 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
6041 reinitializing and freeing the obstack.
6042 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
6043 (host_char_to_target): Use auto_obstack.
6044 * utils.h (make_cleanup_obstack_free): Delete declaration.
6045 * valprint.c (generic_emit_char, generic_printstr): Use
6046 auto_obstack.
6047
6048 2017-06-27 Simon Marchi <simon.marchi@ericsson.com>
6049
6050 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
6051 thread.
6052 (darwin_init_thread_list): Don't update dummy thread.
6053 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
6054
6055 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
6056
6057 * record-full.c (netorder16): Remove.
6058
6059 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
6060
6061 * common/diagnostics.h: Define macros for GCC.
6062 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
6063 * common/vec.h: Include diagnostics.h.
6064 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
6065 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
6066 warning.
6067
6068 2017-06-26 Simon Marchi <simon.marchi@ericsson.com>
6069
6070 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
6071 New macro.
6072 * ada-lex.l: Ignore deprecated register warnings.
6073
6074 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
6075
6076 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
6077 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
6078
6079 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
6080
6081 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
6082 its own line.
6083
6084 2017-06-25 Simon Marchi <simon.marchi@ericsson.com>
6085
6086 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
6087
6088 2017-06-23 Alan Hayward <alan.hayward@arm.com>
6089
6090 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
6091 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
6092 (xtensa_register_read_masked): Likewise.
6093
6094 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
6095
6096 * common/environ.c (gdb_environ::unset): Update comment.
6097
6098 2017-06-22 Alan Hayward <alan.hayward@arm.com>
6099
6100 * python/py-unwind.c (pyuw_sniffer): Allocate space for
6101 registers.
6102
6103 2017-06-22 Alan Hayward <alan.hayward@arm.com>
6104
6105 * record-full.c (record_full_exec_insn): Use byte_vector.
6106
6107 2017-06-22 Yao Qi <yao.qi@linaro.org>
6108
6109 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
6110 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
6111
6112 2017-06-22 Alan Hayward <alan.hayward@arm.com>
6113
6114 * remote.c (cached_reg): Move from here...
6115 * regcache.h (cached_reg): ...to here.
6116 * python/py-unwind.c (struct reg_info): Remove.
6117 (cached_frame_info): Use cached_reg_t.
6118 (pyuw_prev_register): Likewise.
6119 (pyuw_sniffer): Use cached_reg_t and allocate registers.
6120 (pyuw_dealloc_cache): Free all registers.
6121
6122 2017-06-22 Pedro Alves <palves@redhat.com>
6123 Simon Marchi <simon.marchi@ericsson.com>
6124
6125 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
6126 warning.
6127 * common/diagnostics.h: New file.
6128
6129 2017-06-22 Pedro Alves <palves@redhat.com>
6130
6131 * common/agent.h: Add include guards.
6132
6133 2017-06-21 Simon Marchi <simon.marchi@ericsson.com>
6134
6135 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
6136 talk about addressable units instead of bytes.
6137
6138 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
6139
6140 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
6141 of '::const_iterator'.
6142
6143 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
6144
6145 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6146 'unittests/environ-selftests.c'.
6147 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
6148 * charset.c (find_charset_names): Declare object 'iconv_env'.
6149 Update code to use 'iconv_env' object. Remove call to
6150 'free_environ'.
6151 * common/environ.c: Include <utility>.
6152 (make_environ): Delete function.
6153 (free_environ): Delete function.
6154 (gdb_environ::clear): New function.
6155 (gdb_environ::operator=): New function.
6156 (gdb_environ::get): Likewise.
6157 (environ_vector): Delete function.
6158 (set_in_environ): Delete function.
6159 (gdb_environ::set): New function.
6160 (unset_in_environ): Delete function.
6161 (gdb_environ::unset): New function.
6162 (gdb_environ::envp): Likewise.
6163 * common/environ.h: Include <vector>.
6164 (struct gdb_environ): Delete; transform into...
6165 (class gdb_environ): ... this class.
6166 (free_environ): Delete prototype.
6167 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
6168 environ_vector): Likewise.
6169 * infcmd.c (run_command_1): Update code to call
6170 'envp' from 'gdb_environ' class.
6171 (environment_info): Update code to call methods from 'gdb_environ'
6172 class.
6173 (unset_environment_command): Likewise.
6174 (path_info): Likewise.
6175 (path_command): Likewise.
6176 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
6177 (inferior::inferior): Initialize 'environment' using the host's
6178 information.
6179 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
6180 Include "environ.h".
6181 (class inferior) <environment>: Change type from 'struct
6182 gdb_environ' to 'gdb_environ'.
6183 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
6184 methods from 'gdb_environ' class.
6185 * solib.c (solib_find_1): Likewise
6186 * unittests/environ-selftests.c: New file.
6187
6188 2017-06-20 Yao Qi <yao.qi@linaro.org>
6189
6190 * features/i386/i386-linux.xml: Exchange the order of including
6191 32bit-linux.xml and 32bit-sse.xml.
6192 * features/i386/i386-linux.c: Regenerated.
6193
6194 2017-06-20 Yao Qi <yao.qi@linaro.org>
6195
6196 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
6197 Delete copy ctor and assignment operator.
6198 (tdesc_type): Likewise.
6199 (tdesc_feature): Likewise.
6200 (tdesc_free_reg): Remove.
6201 (tdesc_create_reg): Use new.
6202 (tdesc_free_type): Remove.
6203 (tdesc_create_vector): Use new.
6204 (tdesc_create_union): Likewise.
6205 (tdesc_create_flags): Likewise.
6206 (tdesc_create_enum): Likewise.
6207 (tdesc_free_feature): Delete.
6208 (free_target_description): Use delete.
6209
6210 2017-06-19 John Baldwin <jhb@FreeBSD.org>
6211
6212 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
6213 registers.
6214
6215 2017-06-19 Pedro Alves <palves@redhat.com>
6216
6217 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
6218 after gdb::unlinker.
6219
6220 2017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
6221
6222 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
6223 gdb_environ to access an environment variable.
6224
6225 2017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
6226
6227 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
6228 gdb_byte*.
6229
6230 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6231
6232 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
6233
6234 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6235
6236 * configure: Re-generate.
6237 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
6238
6239 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6240
6241 * configure: Re-generate.
6242 * warning.m4: Pass -Werror to compiler when checking for
6243 supported warning flags.
6244
6245 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6246
6247 * Makefile.in (COMPILE.pre): Add "-x c++".
6248
6249 2017-06-16 Alan Hayward <alan.hayward@arm.com>
6250 Pedro Alves <palves@redhat.com>
6251 Yao Qi <yao.qi@linaro.org>
6252
6253 * defs.h (RequireLongest): New.
6254 (extract_integer): Declare function template.
6255 (extract_signed_integer): Remove the declaration, but define it
6256 static inline.
6257 (extract_unsigned_integer): Likewise.
6258 (store_integer): Declare function template.
6259 (store_signed_integer): Remove the declaration, but define it
6260 static inline.
6261 (store_unsigned_integer): Likewise.
6262 * findvar.c (extract_integer): New function template.
6263 (extract_signed_integer): Remove.
6264 (extract_unsigned_integer): Remove.
6265 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
6266 instantiations.
6267 (store_integer): New function template.
6268 (store_signed_integer): Remove.
6269 (store_unsigned_integer): Remove.
6270 (store_integer): Explicit instantiations.
6271 * regcache.c (regcache_raw_read_signed): Update.
6272 (regcache::raw_read): New function.
6273 (regcache::raw_read_signed): Remove.
6274 (regcache::raw_read_unsigned): Remove.
6275 (regcache_raw_read_unsigned): Update.
6276 (regcache_raw_write_unsigned): Update.
6277 (regcache::raw_write_signed): Remove.
6278 (regcache::raw_write): New function.
6279 (regcache_cooked_read_signed): Update.
6280 (regcache::raw_write_unsigned): Remove.
6281 (regcache::cooked_read_signed): Remove.
6282 (regcache_cooked_read_unsigned): Update.
6283 (regcache::cooked_read_unsigned): Remove.
6284 (regcache_cooked_write_signed): Update.
6285 (regcache_cooked_write_unsigned): Update.
6286 * regcache.h (regcache) <raw_read_signed>: Remove.
6287 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
6288 <raw_read, raw_write>: New.
6289 <cooked_read_signed, cooked_write_signed>: Remove.
6290 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
6291 <cooked_read, cooked_write>: New.
6292 * sh64-tdep.c (sh64_pseudo_register_read): Update.
6293 (sh64_pseudo_register_write): Update.
6294
6295 2017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
6296
6297 * arc-tdep.c (arc_disassembler_options): New variable.
6298 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
6299 of default_print_insn.
6300 (arc_delayed_print_insn): Set info->section when needed,
6301 use default_print_insn to retrieve a disassembler.
6302
6303 2017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
6304
6305 PR gdb/21574
6306 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
6307 to mention $SHELL and startup-with-shell.
6308
6309 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
6310
6311 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
6312
6313 2017-06-14 Yao Qi <yao.qi@linaro.org>
6314
6315 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
6316 default_print_insn instead of print_insn_aarch64.
6317 * arm-tdep.c (gdb_print_insn_arm): Call
6318 default_print_insn instead of print_insn_big_arm
6319 and print_insn_little_arm.
6320 * i386-tdep.c (i386_print_insn): Call default_print_insn
6321 instead of print_insn_i386.
6322 * ia64-tdep.c (ia64_print_insn): Call
6323 default_print_insn instead of print_insn_ia64.
6324 * mips-tdep.c (gdb_print_insn_mips): Call
6325 default_print_insn instead of print_insn_big_mips
6326 and print_insn_little_mips.
6327 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
6328 instead of print_insn_spu.
6329
6330 2017-06-14 Pedro Alves <palves@redhat.com>
6331
6332 * ada-lang.c: Include "common/byte-vector.h".
6333 (ada_value_primitive_packed_val): Use gdb::byte_vector.
6334 * charset.c (wchar_iterator::iterate): Resize the vector instead
6335 of reserving it.
6336 * common/byte-vector.h: Include "common/def-vector.h".
6337 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
6338 * cli/cli-dump.c: Include "common/byte-vector.h".
6339 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
6340 * common/byte-vector.h: New file.
6341 * common/def-vector.h: New file.
6342 * common/default-init-alloc.h: New file.
6343 * dwarf2loc.c: Include "common/byte-vector.h".
6344 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
6345 instead of reserving it.
6346 * dwarf2read.c: Include "common/byte-vector.h".
6347 (data_buf::m_vec): Now a gdb::byte_vector.
6348 * gdb_regex.c: Include "common/def-vector.h".
6349 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
6350 * mi/mi-main.c: Include "common/byte-vector.h".
6351 (mi_cmd_data_read_memory): Use gdb::byte_vector.
6352 * printcmd.c: Include "common/byte-vector.h".
6353 (print_scalar_formatted): Use gdb::byte_vector.
6354 * valprint.c: Include "common/byte-vector.h".
6355 (maybe_negate_by_bytes, print_decimal_chars): Use
6356 gdb::byte_vector.
6357
6358 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
6359
6360 * darwin-nat.c: Include "nat/fork-inferior.h".
6361
6362 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
6363
6364 * configure.nat: Factor out Darwin bits that are not
6365 architecture-specific. Add fork-inferior.o.
6366
6367 2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
6368
6369 * configure.nat: Factor out AIX bits that are not
6370 architecture-specific. Add fork-inferior.o.
6371
6372 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6373
6374 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
6375 (read_pieced_value, write_pieced_value): ...here. Reduce to
6376 wrappers that just call rw_pieced_value.
6377
6378 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6379
6380 * dwarf2loc.c (write_pieced_value): When writing the data for a
6381 memory piece, use write_memory_with_notification instead of
6382 write_memory.
6383
6384 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6385
6386 * valops.c (read_value_memory): Change embedded_offset to
6387 represent a bit offset instead of a byte offset.
6388 * value.h (read_value_memory): Adjust comment.
6389
6390 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6391
6392 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
6393 dest_offset_bits and source_offset_bits.
6394 (write_pieced_value): Likewise.
6395
6396 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6397
6398 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
6399 given by DW_OP_bit_piece.
6400 (write_pieced_value): Likewise.
6401
6402 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6403
6404 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
6405 some other preparations to the places where sufficient information
6406 is available.
6407 (write_pieced_value): Likewise.
6408
6409 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6410
6411 * dwarf2loc.c (bits_to_bytes): New function.
6412 (read_pieced_value): Fix offset calculations for register pieces
6413 on big-endian targets.
6414 (write_pieced_value): Likewise.
6415
6416 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6417
6418 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
6419 (write_pieced_value): Likewise.
6420
6421 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6422
6423 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
6424 transfer the source value's least significant bits, instead of its
6425 lowest-addressed ones. Rename type_len to max_offset.
6426 (read_pieced_value): Mirror above changes to write_pieced_value as
6427 applicable.
6428
6429 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6430
6431 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
6432 truncate full bytes from dest_offset_bits before using it as an
6433 offset into the buffer.
6434
6435 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6436
6437 * dwarf2loc.c (write_pieced_value): Include transfer size in
6438 byte-wise check.
6439
6440 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6441
6442 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
6443 calculation of this_size.
6444
6445 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6446
6447 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
6448 when targeting a bit-field.
6449 (write_pieced_value): Likewise.
6450
6451 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6452
6453 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
6454 (allocate_piece_closure): Drop addr_size parameter.
6455 (dwarf2_evaluate_loc_desc_full): Adjust call to
6456 allocate_piece_closure.
6457
6458 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6459
6460 PR gdb/21226
6461 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
6462 the LSB end, independent of endianness.
6463
6464 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6465
6466 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
6467 size capping.
6468
6469 2017-06-13 Yao Qi <yao.qi@linaro.org>
6470
6471 * mips-linux-nat.c: Move include features/mips*-linux.c to
6472 mips-linux-tdep.c.
6473 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
6474 to mips-linux-tdep.c.
6475 * mips-linux-tdep.c: Include features/mips*-linux.c
6476 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
6477 functions.
6478 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
6479 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
6480 (tdesc_mips64_dsp_linux): Declare.
6481
6482 2017-06-12 Tom Tromey <tom@tromey.com>
6483
6484 * valprint.h (val_print_type_code_int): Remove.
6485 * valprint.c (generic_val_print_int): Always call
6486 val_print_scalar_formatted.
6487 (val_print_type_code_int): Remove.
6488 * printcmd.c (print_scalar_formatted): Handle options->format==0.
6489 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
6490 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
6491 * ada-valprint.c (ada_val_print_num): Use
6492 val_print_scalar_formatted.
6493
6494 2017-06-12 Tom Tromey <tom@tromey.com>
6495
6496 * printcmd.c (print_scalar_formatted): Unify the two switches.
6497 Don't convert scalars to LONGEST.
6498
6499 2017-06-12 Tom Tromey <tom@tromey.com>
6500
6501 PR exp/16225:
6502 * valprint.h (print_decimal_chars): Update.
6503 * valprint.c (maybe_negate_by_bytes): New function.
6504 (print_decimal_chars): Add "is_signed" argument.
6505 * printcmd.c (print_scalar_formatted): Update.
6506
6507 2017-06-12 Tom Tromey <tom@tromey.com>
6508
6509 PR exp/16225:
6510 * valprint.h (print_binary_chars, print_hex_chars): Update.
6511 * valprint.c (val_print_type_code_int): Update.
6512 (print_binary_chars): Add "zero_pad" argument.
6513 (emit_octal_digit): New function.
6514 (print_octal_chars): Don't zero-pad.
6515 (print_decimal_chars): Likewise.
6516 (print_hex_chars): Add "zero_pad" argument.
6517 * sh64-tdep.c (sh64_do_fp_register): Update.
6518 * regcache.c (regcache::dump): Update.
6519 * printcmd.c (print_scalar_formatted): Update.
6520 * infcmd.c (default_print_one_register_info): Update.
6521
6522 2017-06-12 Pedro Alves <palves@redhat.com>
6523 Alan Hayward <alan.hayward@arm.com>
6524
6525 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
6526 (mips_eabi_push_dummy_call): Rename local 'regsize' to
6527 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
6528 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
6529 Assert that abi_regsize bytes fit in 'ref_valbuf'.
6530
6531 2017-06-12 Pedro Alves <palves@redhat.com>
6532
6533 * dwarf2read.c (mapped_symtab::data): Now a vector of
6534 symtab_index_entry instead of vector of
6535 std::unique_ptr<symtab_index_entry>. All users adjusted to check
6536 whether an element's name is NULL instead of checking whether the
6537 element itself is NULL.
6538 (find_slot): Change return type. Adjust.
6539 (hash_expand, , add_index_entry, uniquify_cu_indices)
6540 (write_hash_table): Adjust.
6541
6542 2017-06-12 Pedro Alves <palves@redhat.com>
6543
6544 * dwarf2read.c (recursively_count_psymbols): New function.
6545 (write_psymtabs_to_index): Call it to compute number of psyms and
6546 pass estimate size of psyms_seen to unordered_set's ctor.
6547
6548 2017-06-12 Pedro Alves <palves@redhat.com>
6549
6550 * dwarf2read.c (write_hash_table): Check if key already exists
6551 before emplacing.
6552
6553 2017-06-12 Pedro Alves <palves@redhat.com>
6554
6555 * dwarf2read.c (data_buf::append_space): Rename to...
6556 (data_buf::grow): ... this, and make private. Adjust all callers.
6557 (data_buf::append_uint): New method.
6558 (add_address_entry, write_one_signatured_type)
6559 (write_psymtabs_to_index): Use it.
6560
6561 2017-06-12 Pedro Alves <palves@redhat.com>
6562
6563 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
6564 (file_write (FILE *, const std::vector<Elem>&)): Delete.
6565 (data_buf::file_write): Call ::fwrite directly.
6566
6567 2017-06-12 Pedro Alves <palves@redhat.com>
6568
6569 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
6570 std::vector::erase.
6571
6572 2017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6573
6574 Code cleanup: C++ify .gdb_index producer.
6575 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
6576 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
6577 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
6578 (create_strtab, add_string): Remove.
6579 (file_write, data_buf): New.
6580 (struct symtab_index_entry): Use std::vector for cu_indices.
6581 (struct mapped_symtab): Use std::vector for data.
6582 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
6583 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
6584 Remove.
6585 (find_slot): Change return type. Update it to the new data structures.
6586 (hash_expand, add_index_entry): Update it to the new data structures.
6587 (offset_type_compare): Remove.
6588 (uniquify_cu_indices): Update it to the new data structures.
6589 (c_str_view, c_str_view_hasher, vector_hasher): New.
6590 (add_indices_to_cpool): Remove.
6591 (write_hash_table): Update it to the new data structures.
6592 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
6593 (eq_psymtab_cu_index): Remove.
6594 (psym_index_map): New typedef.
6595 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
6596 reference and std::unordered_map for cu_index_htab.
6597 (add_address_entry, add_address_entry_worker, write_address_map)
6598 (write_psymbols): Update it to the new data structures.
6599 (write_obstack): Remove.
6600 (struct signatured_type_index_data): Change types_list to a data_buf
6601 reference and psyms_seen to a std::unordered_set reference.
6602 (write_one_signatured_type, recursively_write_psymbols)
6603 (write_psymtabs_to_index): Update it to the new data structures.
6604
6605 2017-06-11 Simon Marchi <simon.marchi@ericsson.com>
6606
6607 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
6608 separate-debug-file commands.
6609 * symfile.h (separate_debug_file_debug): New global.
6610 * symfile.c (separate_debug_file_debug): New global.
6611 (separate_debug_file_exists, find_separate_debug_file): Add
6612 debug output.
6613 (_initialize_symfile): Add "set debug separate-debug-file"
6614 command.
6615 * build-id.c (build_id_to_debug_bfd,
6616 find_separate_debug_file_by_buildid): Add debug output.
6617
6618 2017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
6619
6620 * gdbarch.sh (displaced_step_free_closure): Remove.
6621 * gdbarch.h, gdbarch.c: Re-generate.
6622 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
6623 displaced_step_free_closure.
6624 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6625 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6626 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6627 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
6628 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
6629 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6630 * arch-utils.h (simple_displaced_step_free_closure): Remove.
6631 * arch-utils.c (simple_displaced_step_free_closure): Remove.
6632 * infrun.c (displaced_step_clear): Call xfree instead of
6633 gdbarch_displaced_step_free_closure.
6634
6635 2017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
6636
6637 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
6638 NULL".
6639
6640 2017-06-08 Alan Hayward <alan.hayward@arm.com>
6641
6642 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
6643 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
6644 (mn10300_push_dummy_call): Likewise.
6645
6646 2017-06-08 Alan Hayward <alan.hayward@arm.com>
6647
6648 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
6649
6650 2017-06-08 Alan Hayward <alan.hayward@arm.com>
6651
6652 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
6653
6654 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6655
6656 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
6657 able to start inferiors using a shell.
6658 (New remote packets): Announce new packet "QStartupWithShell".
6659 * remote.c: Add PACKET_QStartupWithShell.
6660 (extended_remote_create_inferior): Handle new
6661 PACKET_QStartupWithShell.
6662 (remote_protocol_features) <QStartupWithShell>: New entry for
6663 PACKET_QStartupWithShell.
6664 (_initialize_remote): Call "add_packet_config_cmd" for
6665 QStartupShell.
6666
6667 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6668 Pedro Alves <palves@redhat.com>
6669
6670 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
6671 and "nat/fork-inferior.h".
6672 * common/common-inferior.h: New file, with contents from
6673 "gdb/inferior.h".
6674 * commom/common-utils.c: Include "common-utils.h".
6675 (stringify_argv): New function.
6676 * common/common-utils.h (stringify_argv): New prototype.
6677 * configure.nat: Add "fork-inferior.o" as a dependency for
6678 "*linux*", "fbsd*" and "nbsd*" hosts.
6679 * corefile.c (get_exec_file): Update comment.
6680 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
6681 instead of "startup_inferior".
6682 (darwin_create_inferior): Call "add_thread_silent" after
6683 "fork_inferior".
6684 * fork-child.c: Cleanup unnecessary includes.
6685 (SHELL_FILE): Move to "common/common-fork-child.c".
6686 (environ): Likewise.
6687 (exec_wrapper): Initialize.
6688 (get_exec_wrapper): New function.
6689 (breakup_args): Move to "common/common-fork-child.c"; rename to
6690 "breakup_args_for_exec".
6691 (escape_bang_in_quoted_argument): Move to
6692 "common/common-fork-child.c".
6693 (saved_ui): New variable.
6694 (prefork_hook): New function.
6695 (postfork_hook): Likewise.
6696 (postfork_child_hook): Likewise.
6697 (gdb_startup_inferior): Likewise.
6698 (fork_inferior): Move to "common/common-fork-child.c". Update
6699 function to support gdbserver.
6700 (startup_inferior): Likewise.
6701 * gdbcore.h (get_exec_file): Remove declaration.
6702 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
6703 instead of "startup_inferior". Call "add_thread_silent" after
6704 "fork_inferior".
6705 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
6706 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
6707 instead of "startup_inferior". Call "add_thread_silent" after
6708 "fork_inferior".
6709 * inferior.h: Include "common-inferior.h".
6710 (trace_start_error): Move to "common/common-utils.h".
6711 (trace_start_error_with_name): Likewise.
6712 (fork_inferior): Move prototype to "nat/fork-inferior.h".
6713 (startup_inferior): Likewise.
6714 (gdb_startup_inferior): New prototype.
6715 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
6716 * nat/fork-inferior.h: New file.
6717 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
6718 instead of "startup_inferior". Call "add_thread_silent" after
6719 "fork_inferior".
6720 * target.h (target_terminal_init): Move prototype to
6721 "target/target.h".
6722 (target_terminal_inferior): Likewise.
6723 (target_terminal_ours): Likewise.
6724 * target/target.h (target_terminal_init): New prototype, moved
6725 from "target.h".
6726 (target_terminal_inferior): Likewise.
6727 (target_terminal_ours): Likewise.
6728 * utils.c (gdb_flush_out_err): New function.
6729
6730 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6731
6732 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
6733 * common/common-gdbthread.h: New file, with parts from
6734 "gdb/gdbthread.h".
6735 * gdbthread.h: Include "common-gdbthread.h".
6736 (switch_to_thread): Moved to "common/common-gdbthread.h".
6737
6738 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6739
6740 * Makefile.in (SFILES): Add "common/job-control.c".
6741 (HFILES_NO_SRCDIR): Add "common/job-control.h".
6742 (COMMON_OBS): Add "job-control.o".
6743 * common/job-control.c: New file, with contents from
6744 "gdb/inflow.c".
6745 * common/job-control.h: New file, with contents from "terminal.h".
6746 * fork-child.c: Include "job-control.h".
6747 * inflow.c: Include "job-control.h".
6748 (gdb_setpgid): Move to "common/common-inflow.c".
6749 (_initialize_inflow): Move setting of "job_control" to
6750 "handle_job_control".
6751 * terminal.h (job_control): Moved to "common/common-terminal.h".
6752 (gdb_setpgid): Likewise.
6753 * top.c: Include "job_control.h".
6754 * utils.c: Likewise.
6755 (job_control): Moved to "job-control.c".
6756
6757 2017-06-07 Pedro Alves <palves@redhat.com>
6758
6759 * Makefile.in (SFILES): Add gdb_regex.c.
6760 (COMMON_OBS): Add gdb_regex.o.
6761 * ada-lang.c (ada_add_standard_exceptions)
6762 (ada_add_exceptions_from_frame, name_matches_regex)
6763 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
6764 parameter type to compiled_regex. Adjust.
6765 (ada_exceptions_list): Use compiled_regex.
6766 * break-catch-throw.c (exception_catchpoint::pattern): Now a
6767 std::unique_ptr<compiled_regex>.
6768 (exception_catchpoint::~exception_catchpoint): Remove regfree
6769 call.
6770 (check_status_exception_catchpoint): Adjust to use compiled_regex.
6771 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
6772 * breakpoint.c (solib_catchpoint::compiled): Now a
6773 std::unique_ptr<compiled_regex>.
6774 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
6775 (check_status_catch_solib): Adjust to use compiled_regex.
6776 (add_solib_catchpoint): Adjust to use compiled_regex.
6777 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
6778 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
6779 compiled_regex reference. Adjust to use it.
6780 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
6781 declaration. Include "gdb_regex.h".
6782 (apropos_cmd): Change regex parameter to compiled_regex reference.
6783 * gdb_regex.c: New file.
6784 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
6785 declarations.
6786 (class compiled_regex): New.
6787 * linux-tdep.c: Include "common/gdb_optional.h".
6788 (struct mapping_regexes): New, factored out from
6789 mapping_is_anonymous_p, and adjusted to use compiled_regex.
6790 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
6791 gdb::optional and remove cleanups. Adjust to compiled_regex.
6792 * probe.c: Include "common/gdb_optional.h".
6793 (collect_probes): Use compiled_regex and gdb::optional and remove
6794 cleanups.
6795 * skip.c: Include "common/gdb_optional.h".
6796 (skiplist_entry::compiled_function_regexp): Now a
6797 gdb::optional<compiled_regex>.
6798 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
6799 (free_skiplist_entry): Remove regfree call.
6800 (compile_skip_regexp, skip_rfunction_p): Adjust to use
6801 compiled_regex and gdb::optional.
6802 * symtab.c: Include "common/gdb_optional.h".
6803 (search_symbols): Use compiled_regex and gdb::optional.
6804 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
6805 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
6806 to gdb_regex.c.
6807
6808 2017-06-07 Alan Hayward <alan.hayward@arm.com>
6809
6810 * regcache.c (regcache::save): Avoid buffer use.
6811 (regcache::dump): Likewise.
6812
6813 2017-06-07 Alan Hayward <alan.hayward@arm.com>
6814
6815 * sh-tdep.c (sh_pseudo_register_read): Remove
6816 MAX_REGISTER_SIZE.
6817 (sh_pseudo_register_write): Likewise.
6818 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
6819 (sh64_pseudo_register_write): Likewise
6820
6821 2017-06-07 Alan Hayward <alan.hayward@arm.com>
6822
6823 * aarch64-tdep.c (aarch64_store_return_value): Use
6824 V_REGISTER_SIZE.
6825 (aarch64_pseudo_read_value): Likewise.
6826 (aarch64_pseudo_write): Likewise.
6827
6828 2017-06-06 Yao Qi <yao.qi@linaro.org>
6829
6830 * regformats/regdef.h (set_register_cache): Remove the
6831 declaration.
6832
6833 2017-06-06 Alan Hayward <alan.hayward@arm.com>
6834
6835 * frame.c (frame_unwind_register_signed): Use
6836 frame_unwind_register_value.
6837
6838 2017-06-06 Pedro Alves <palves@redhat.com>
6839
6840 PR breakpoints/21553
6841 * breakpoint.c (create_breakpoints_sal_default)
6842 (init_breakpoint_sal, create_breakpoint_sal): Use
6843 gdb::unique_xmalloc_ptr for string parameters.
6844 (create_breakpoint): Constify 'extra_string' and 'cond_string'
6845 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
6846 (base_breakpoint_create_breakpoints_sal)
6847 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
6848 (strace_marker_create_breakpoints_sal)
6849 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
6850 string parameters.
6851 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
6852 gdb::unique_xmalloc_ptr for string parameters.
6853 (create_breakpoint): Constify 'extra_string' and 'cond_string'
6854 parameters.
6855
6856 2017-06-06 Alan Hayward <alan.hayward@arm.com>
6857
6858 * alpha-tdep.c (alpha_register_to_value): Use
6859 get_frame_register_value.
6860 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
6861
6862 2017-06-06 Alan Hayward <alan.hayward@arm.com>
6863
6864 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
6865 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
6866 (ia64_value_to_register): Likewise.
6867 (ia64_extract_return_value): Likewise.
6868 (ia64_store_return_value): Likewise.
6869 (ia64_push_dummy_call): Likewise.
6870
6871 2017-06-04 Joel Brobecker <brobecker@adacore.com>
6872
6873 GDB 8.0 released.
6874
6875 2017-06-03 Simon Marchi <simon.marchi@ericsson.com>
6876
6877 * x86-linux-nat.c (struct arch_lwp_info): Remove.
6878
6879 2017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
6880
6881 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
6882 parameter.
6883 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
6884
6885 2017-06-02 Simon Marchi <simon.marchi@ericsson.com>
6886
6887 * event-loop.c (poll_timers): Unallocate timer using delete
6888 instead of xfree.
6889
6890 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6891
6892 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
6893 (struct breakpoint) <~breakpoint>: New.
6894 (struct watchpoint): Inherit from breakpoint.
6895 <~watchpoint>: New.
6896 <base>: Remove.
6897 (struct tracepoint): Inherit from breakpoint.
6898 <base>: Remove.
6899 * breakpoint.c (longjmp_breakpoint_ops): Remove.
6900 (struct longjmp_breakpoint): Inherit from breakpoint.
6901 <~longjmp_breakpoint>: New.
6902 <base>: Remove.
6903 (new_breakpoint_from_type): Remove casts.
6904 (watchpoint_in_thread_scope): Remove reference to base field.
6905 (watchpoint_del_at_next_stop): Likewise.
6906 (update_watchpoint): Likewise.
6907 (watchpoint_check): Likewise.
6908 (bpstat_check_watchpoint): Likewise.
6909 (set_longjmp_breakpoint): Likewise.
6910 (struct fork_catchpoint): Inherit from breakpoint.
6911 <base>: Remove.
6912 (struct solib_catchpoint): Inherit from breakpoint.
6913 <~solib_catchpoint>: New.
6914 <base>: Remove.
6915 (dtor_catch_solib): Change to ...
6916 (solib_catchpoint::~solib_catchpoint): ... this.
6917 (breakpoint_hit_catch_solib): Remove reference to base field.
6918 (add_solib_catchpoint): Likewise.
6919 (create_fork_vfork_event_catchpoint): Likewise.
6920 (struct exec_catchpoint): Inherit from breakpoint.
6921 <~exec_catchpoint>: New.
6922 <base>: Remove.
6923 (dtor_catch_exec): Change to ...
6924 (exec_catchpoint::~exec_catchpoint): ... this.
6925 (dtor_watchpoint): Change to ...
6926 (watchpoint::~watchpoint): ... this.
6927 (watch_command_1): Remove reference to base field.
6928 (catch_exec_command_1): Likewise.
6929 (base_breakpoint_dtor): Change to ...
6930 (breakpoint::~breakpoint): ... this.
6931 (base_breakpoint_ops): Remove dtor field value.
6932 (longjmp_bkpt_dtor): Change to ...
6933 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
6934 (strace_marker_create_breakpoints_sal): Remove reference to base
6935 field.
6936 (delete_breakpoint): Don't manually call breakpoint destructor.
6937 (create_tracepoint_from_upload): Remove reference to base field.
6938 (trace_pass_set_count): Likewise.
6939 (initialize_breakpoint_ops): Don't initialize
6940 momentary_breakpoint_ops, don't set dtors.
6941 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
6942 <~ada_catchpoint>: New.
6943 <base>: Remove.
6944 (create_excep_cond_exprs): Remove reference to base field.
6945 (dtor_exception): Change to ...
6946 (ada_catchpoint::~ada_catchpoint): ... this.
6947 (dtor_catch_exception): Remove.
6948 (dtor_catch_exception_unhandled): Remove.
6949 (dtor_catch_assert): Remove.
6950 (create_ada_exception_catchpoint): Remove reference to base
6951 field.
6952 (initialize_ada_catchpoint_ops): Don't set dtors.
6953 * break-catch-sig.c (struct signal_catchpoint): Inherit from
6954 breakpoint.
6955 <~signal_catchpoint>: New.
6956 <base>: Remove.
6957 (signal_catchpoint_dtor): Change to ...
6958 (signal_catchpoint::~signal_catchpoint): ... this.
6959 (create_signal_catchpoint): Remove reference to base field.
6960 (initialize_signal_catchpoint_ops): Don't set dtor.
6961 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
6962 from breakpoint.
6963 <~syscall_catchpoint>: New.
6964 <base>: Remove.
6965 (dtor_catch_syscall): Change to ...
6966 (syscall_catchpoint::~syscall_catchpoint): ... this.
6967 (create_syscall_event_catchpoint): Remove reference to base
6968 field.
6969 (initialize_syscall_catchpoint_ops): Don't set dtor.
6970 * break-catch-throw.c (struct exception_catchpoint): Inherit
6971 from breakpoint.
6972 <~exception_catchpoint>: New.
6973 <base>: Remove.
6974 (dtor_exception_catchpoint): Change to ...
6975 (exception_catchpoint::~exception_catchpoint): ... this.
6976 (handle_gnu_v3_exceptions): Remove reference to base field.
6977 (initialize_throw_catchpoint_ops): Don't set dtor.
6978 * ctf.c (ctf_get_traceframe_address): Remove reference to base
6979 field.
6980 * remote.c (remote_get_tracepoint_status): Likewise.
6981 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
6982 * tracefile.c (tracefile_fetch_registers): Likewise.
6983 * tracepoint.c (actions_command): Likewise.
6984 (validate_actionline): Likewise.
6985 (tfind_1): Likewise.
6986 (get_traceframe_location): Likewise.
6987 (find_matching_tracepoint_location): Likewise.
6988 (parse_tracepoint_status): Likewise.
6989 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
6990
6991 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6992
6993 * breakpoint.c (struct longjmp_breakpoint): New struct.
6994 (is_tracepoint_type): Change return type to bool.
6995 (is_longjmp_type): New function.
6996 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
6997 (set_raw_breakpoint_without_location): Use
6998 new_breakpoint_from_type.
6999 (set_raw_breakpoint): Likewise.
7000
7001 2017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
7002
7003 * breakpoint.c (new_breakpoint_from_type): New function.
7004 (create_breakpoint_sal): Use new_breakpoint_from_type and
7005 unique_ptr.
7006 (create_breakpoint): Likewise.
7007
7008 2017-05-31 Simon Marchi <simon.marchi@ericsson.com>
7009
7010 * memattr.c (mem_info_command): Rename to ...
7011 (info_mem_command): ... this.
7012 (mem_enable_command): Rename to ...
7013 (enable_mem_command): ... this.
7014 (mem_disable_command): Rename to ...
7015 (disable_mem_command): ... this.
7016 (mem_delete_command): Rename to ...
7017 (delete_mem_command): ... this.
7018 (_initialize_mem): Adjust function names.
7019
7020 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
7021
7022 * btrace.c (handle_pt_insn_events): New.
7023 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
7024 STATUS. Split into this and ...
7025 (handle_pt_insn_event_flags): ... this.
7026
7027 2017-05-31 Markus Metzger <markus.t.metzger@intel.com>
7028
7029 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
7030 and struct pt_insn.resynced.
7031 * configure: Regenerated.
7032 * config.in: Regenerated.
7033
7034 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7035
7036 * btrace.c (ftrace_find_call_by_number): New function.
7037 (ftrace_new_function): Store objects, not pointers.
7038 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
7039 ftrace_new_gap, ftrace_update_function,
7040 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
7041 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
7042 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
7043 btrace_ends_with_single_insn, btrace_call_get): Account for
7044 btrace_thread_info::functions now storing objects.
7045 * btrace.h (struct btrace_thread_info): Add constructor.
7046 (struct btrace_thread_info) <functions>: Make std::vector.
7047 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
7048 Initialize with default values.
7049 * record-btrace.c (record_btrace_frame_sniffer): Account for
7050 btrace_thread_info::functions now storing objects.
7051
7052 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7053
7054 * btrace.c: Remove typedef bfun_s.
7055 (ftrace_new_gap): Directly add gaps to the list of gaps.
7056 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
7057 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
7058 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
7059 instead of gdb VEC.
7060
7061 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7062
7063 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
7064 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
7065 with btrace_thread_info::next_segment and
7066 btrace_thread_info::prev_segment.
7067 * btrace.h: Remove struct btrace_func_link.
7068 (struct btrace_function): Replace pair of function segment pointers
7069 with pair of indices.
7070 * python/py-record-btrace.c (btpy_call_prev_sibling,
7071 btpy_call_next_sibling): Replace references to
7072 btrace_thread_info::segment with btrace_thread_info::next_segment and
7073 btrace_thread_info::prev_segment.
7074 * record-btrace.c (record_btrace_frame_this_id): Use
7075 btrace_find_call_by_number.
7076
7077 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7078
7079 * btrace.c (ftrace_new_function, ftrace_fixup_level,
7080 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
7081 btrace_insn_next, btrace_insn_prev): Remove references to
7082 btrace_thread_info::flow.
7083 * btrace.h (struct btrace_function): Remove FLOW.
7084
7085 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7086
7087 * btrace.c (ftrace_find_call_by_number): New function.
7088 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
7089 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
7090 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
7091 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
7092 index.
7093 * btrace.h (struct btrace_function): Turn UP into an index.
7094 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
7095 as an index.
7096 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
7097 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
7098 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
7099
7100 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7101
7102 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
7103 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
7104 ftrace_update_function, ftrace_compute_global_level_offset,
7105 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
7106 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
7107 btrace_insn_end, btrace_is_empty): Remove references to
7108 btrace_thread_info::begin and btrace_thread_info::end.
7109 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
7110 (struct btrace_thread_info) <functions>: Adjust comment.
7111 * record-btrace.c (record_btrace_start_replaying): Remove reference to
7112 btrace_thread_info::begin.
7113
7114 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7115
7116 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
7117 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
7118 ftrace_update_function): Remove arguments that implicitly were always
7119 BTINFO->END.
7120 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
7121 Don't pass BTINFO->END.
7122
7123 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7124
7125 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
7126 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
7127 btrace_find_insn_by_number): Replace function segment pointer with
7128 index.
7129 (btrace_insn_cmp): Simplify.
7130 * btrace.h: (struct btrace_insn_iterator) Rename index to
7131 insn_index. Replace function segment pointer with index into function
7132 segment vector.
7133 * record-btrace.c (record_btrace_call_history): Replace function
7134 segment pointer use with index.
7135 (record_btrace_frame_sniffer): Retrieve function call segment through
7136 vector.
7137 (record_btrace_set_replay): Remove defunc't safety check.
7138
7139 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7140
7141 * btrace.c (btrace_ends_with_single_insn): New function.
7142 (btrace_call_get, btrace_call_number, btrace_call_begin,
7143 btrace_call_end, btrace_call_next, btrace_call_prev,
7144 btrace_find_call_by_number): Use index into call segment vector
7145 instead of pointer.
7146 (btrace_call_cmp): Simplify.
7147 * btrace.h (struct btrace_call_iterator): Replace function call segment
7148 pointer with index into vector.
7149 * record-btrace.c (record_btrace_call_history): Use index instead of
7150 pointer.
7151
7152 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7153
7154 * btrace.c (btrace_insn_begin, btrace_insn_end,
7155 btrace_find_insn_by_number): Add btinfo to iterator.
7156 * btrace.h (struct btrace_insn_iterator): Add btinfo.
7157
7158 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7159
7160 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
7161 and save pointers directly.
7162 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
7163 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
7164 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
7165 changed signature of functions.
7166 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
7167 (btrace_fetch): Remove code that adds btrace_function pointers to
7168 vector of btrace_functions.
7169 (btrace_clear): Simplify freeing vector of btrace_functions.
7170
7171 2017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7172
7173 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
7174 Replace VEC_* with std::vector functions.
7175 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
7176 (struct btrace_thread_info)<functions>: Change type to std::vector.
7177
7178 2017-05-30 Simon Marchi <simon.marchi@ericsson.com>
7179
7180 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
7181 "Removed targets and native configurations" up. Merge duplicate
7182 "New commands" sub-sections. Add "New options" sub-sections.
7183
7184 2017-05-26 Alan Hayward <alan.hayward@arm.com>
7185
7186 * defs.h (copy_integer_to_size): New declaration.
7187 * findvar.c (copy_integer_to_size): New function.
7188 (do_cint_test): New selftest function.
7189 (copy_integer_to_size_test): Likewise.
7190 (_initialize_findvar): Likewise.
7191 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
7192 (mips_fbsd_collect_reg): Use raw_collect_integer.
7193 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
7194 (mips64_fill_gregset): Use raw_collect_integer
7195 (mips64_fill_fpregset): Use raw_supply_integer.
7196 * regcache.c (regcache::raw_supply_integer): New function.
7197 (regcache::raw_collect_integer): Likewise.
7198 * regcache.h: (regcache::raw_supply_integer): New declaration.
7199 (regcache::raw_collect_integer): Likewise.
7200
7201 2017-05-24 Yao Qi <yao.qi@linaro.org>
7202
7203 * Makefile.in (SFILES): Add gdbarch-selftests.c.
7204 (COMMON_OBS): Add gdbarch-selftests.o.
7205 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
7206 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
7207 * gdbarch-selftests.c: New file.
7208 * regcache.h (regcache) <~regcache>: Mark it virtual if
7209 GDB_SELF_TEST.
7210 <raw_write>: Likewise.
7211
7212 2017-05-24 Yao Qi <yao.qi@linaro.org>
7213
7214 * regcache.c (current_regcache): Change it to
7215 regcache::current_regcache.
7216 (regcache_observer_target_changed): Update.
7217 (regcache_thread_ptid_changed): Make it a regcache static
7218 method.
7219 (regcache_thread_ptid_changed): Update.
7220 (class regcache_access): New.
7221 (current_regcache_test): Update.
7222 (_initialize_regcache): Update.
7223 * regcache.h: Include forward_list.
7224 (regcache): Declare regcache_thread_ptid_changed and declare
7225 registers_changed_ptid as friend.
7226
7227 2017-05-24 Yao Qi <yao.qi@linaro.org>
7228
7229 * i387-tdep.c (i387_register_to_value): Use register_size
7230 instead of TYPE_LENGTH.
7231 * m68k-tdep.c (m68k_register_to_value): Likewise.
7232
7233 2017-05-24 Yao Qi <yao.qi@linaro.org>
7234
7235 * i387-tdep.c (i387_convert_register_p): Return false if type
7236 code isn't TYPE_CODE_FLT.
7237
7238 2017-05-24 Yao Qi <yao.qi@linaro.org>
7239
7240 * alpha-tdep.c (alpha_convert_register_p): Return true if type
7241 length is 4.
7242 (alpha_register_to_value): Remove type length check.
7243 (alpha_value_to_register): Likewise.
7244
7245 2017-05-24 Yao Qi <yao.qi@linaro.org>
7246
7247 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
7248 TYPE_CODE_FLT.
7249
7250 2017-05-24 Yao Qi <yao.qi@linaro.org>
7251
7252 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
7253 TYPE_CODE_FLT or not.
7254
7255 2017-05-24 Yao Qi <yao.qi@linaro.org>
7256
7257 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
7258 * avr-tdep.c (avr_gdbarch_init): Likewise.
7259 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
7260 * cris-tdep.c (cris_gdbarch_init): Likewise.
7261 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
7262 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
7263 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7264 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
7265 * mep-tdep.c (mep_gdbarch_init): Likewise.
7266 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
7267 * mips-tdep.c (mips_gdbarch_init): Likewise.
7268 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
7269 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7270 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
7271 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
7272 * v850-tdep.c (v850_gdbarch_init): Likewise.
7273
7274 2017-05-24 Yao Qi <yao.qi@linaro.org>
7275
7276 * selftest-arch.c (tests_with_arch): Call registers_changed
7277 and reinit_frame_cache.
7278 * selftest.c (run_self_tests): Likewise.
7279
7280 2017-05-24 Yao Qi <yao.qi@linaro.org>
7281
7282 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
7283 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
7284
7285 2017-05-24 Yao Qi <yao.qi@linaro.org>
7286
7287 * rl78-tdep.c (rl78_gdbarch_init): Don't call
7288 set_gdbarch_print_insn.
7289
7290 2017-05-24 Yao Qi <yao.qi@linaro.org>
7291
7292 * h8300-tdep.c (h8300_gdbarch_init): Don't call
7293 set_gdbarch_print_insn.
7294
7295 2017-05-24 Yao Qi <yao.qi@linaro.org>
7296
7297 * alpha-tdep.c (alpha_gdbarch_init): Don't call
7298 set_gdbarch_print_insn.
7299 * arc-tdep.c (arc_gdbarch_init): Likewise.
7300 * arch-utils.c: include dis-asm.h.
7301 (default_print_insn): New function.
7302 * arch-utils.h (default_print_insn): Declare.
7303 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
7304 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
7305 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
7306 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
7307 * frv-tdep.c (frv_gdbarch_init): Likewise.
7308 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
7309 * gdbarch.sh (print_insn): Use default_print_insn.
7310 * gdbarch.c: Regenerated.
7311 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
7312 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
7313 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
7314 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
7315 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7316 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
7317 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
7318 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
7319 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
7320 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
7321 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
7322 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7323 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
7324 * mt-tdep.c (mt_gdbarch_init): Likewise.
7325 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
7326 * nios2-tdep.c (nios2_print_insn): Remove.
7327 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
7328 * rx-tdep.c (rx_gdbarch_init): Likewise.
7329 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7330 * score-tdep.c (score_print_insn): Remove.
7331 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
7332 * sh-tdep.c (sh_gdbarch_init): Likewise.
7333 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
7334 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7335 * tic6x-tdep.c (tic6x_print_insn): Remove.
7336 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
7337 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
7338 * v850-tdep.c (v850_gdbarch_init): Likewise.
7339 * vax-tdep.c (vax_gdbarch_init): Likewise.
7340 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
7341 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
7342
7343 2017-05-23 John Baldwin <jhb@FreeBSD.org>
7344
7345 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
7346 (MIPS_FP0_REGNUM): Remove.
7347 (MIPS_FSR_REGNUM): Remove.
7348 (mips_fbsd_supply_fpregs): Use mips_regnum.
7349 (mips_fbsd_supply_gregs): Likewise.
7350 (mips_fbsd_collect_fpregs): Likewise.
7351 (mips_fbsd_collect_gregs): Likewise.
7352
7353 2017-05-23 John Baldwin <jhb@FreeBSD.org>
7354
7355 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
7356 (getpfpregs_supplies): New function.
7357 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
7358 getfpregs_supplies.
7359 (mips_fbsd_store_inferior_registers): Likewise.
7360
7361 2017-05-22 Pedro Alves <palves@redhat.com>
7362
7363 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
7364 maintainer.
7365
7366 2017-05-22 Alan Hayward <alan.hayward@arm.com>
7367
7368 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
7369 (store_register): Likewise.
7370 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
7371 (get_decimal_float_return_value): Likewise.
7372 (do_ppc_sysv_return_value): Likewise.
7373 (ppc64_sysv_abi_push_integer): Likewise.
7374 (ppc64_sysv_abi_push_freg): Likewise.
7375 (ppc64_sysv_abi_return_value_base): Likewise.
7376 (ppc64_sysv_abi_return_value): Likewise.
7377 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
7378 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
7379 * rs6000-nat.c: Likewise.
7380 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
7381 (rs6000_value_to_register): Likewise.
7382 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
7383
7384 2017-05-21 Tom Tromey <tom@tromey.com>
7385
7386 PR rust/21466:
7387 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
7388 arrays as "[T]", not "[T; ]".
7389
7390 2017-05-19 Tom Tromey <tom@tromey.com>
7391
7392 PR rust/21484:
7393 * rust-lang.c (exp_descriptor_rust): New function.
7394 (rust_language_defn): Use it.
7395 * p-lang.c (pascal_language_defn): Update.
7396 * opencl-lang.c (opencl_language_defn): Update.
7397 * objc-lang.c (objc_language_defn): Update.
7398 * m2-lang.c (m2_language_defn): Update.
7399 * language.h (struct language_defn)
7400 <la_watch_location_expression>: New member.
7401 * language.c (unknown_language_defn, auto_language_defn)
7402 (local_language_defn): Update.
7403 * go-lang.c (go_language_defn): Update.
7404 * f-lang.c (f_language_defn): Update.
7405 * d-lang.c (d_language_defn): Update.
7406 * c-lang.h (c_watch_location_expression): Declare.
7407 * c-lang.c (c_watch_location_expression): New function.
7408 (c_language_defn, cplus_language_defn, asm_language_defn)
7409 (minimal_language_defn): Use it.
7410 * breakpoint.c (watch_command_1): Call
7411 la_watch_location_expression.
7412 * ada-lang.c (ada_language_defn): Update.
7413
7414 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7415
7416 PR tui/21482
7417 * gdb_curses.h (NOMACROS): Define.
7418 (NCURSES_NOMACROS): Define.
7419
7420 2017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7421
7422 PR tui/21482
7423 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
7424 arg to char *.
7425 * tui/tui-wingeneral.c (box_win): Likewise.
7426 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
7427 (tui_show_source_line): Likewise.
7428 (tui_show_exec_info_content): Likewise.
7429
7430 2017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
7431
7432 * sparc-tdep.c (sparc_structure_return_p)
7433 (sparc_arg_on_registers_p): New functions.
7434 (sparc32_store_arguments): Use them.
7435 * sparc64-tdep.c (sparc64_16_byte_align_p)
7436 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
7437 Handle TYPE_CODE_ARRAY.
7438
7439 2017-05-17 Yao Qi <yao.qi@linaro.org>
7440
7441 * cli/cli-decode.c (add_alias_cmd): New function.
7442 * command.h (add_alias_cmd): Declare.
7443 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
7444 instead call add_alias_cmd.
7445
7446 2017-05-17 Pedro Alves <palves@redhat.com>
7447
7448 * Makefile.in (nat_extra_makefile_frag): Rename to ...
7449 (nat_makefile_frag): ... this. All references updated.
7450 * configure.ac: Likewise.
7451 * configure.nat: Likewise. Enhance comments.
7452 * configure: Regenerate.
7453
7454 2017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7455
7456 * procfs.c (procfs_create_inferior): Change prototype to match
7457 definition.
7458
7459 2017-05-13 Eli Zaretskii <eliz@gnu.org>
7460
7461 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
7462 C++ compiler warning.
7463
7464 2017-05-12 Tom Tromey <tom@tromey.com>
7465
7466 PR rust/21483:
7467 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
7468 recurse, just call value_struct_elt directly.
7469
7470 2017-05-12 Tom Tromey <tom@tromey.com>
7471
7472 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
7473 OP_RUST_ARRAY>: Fix.
7474
7475 2017-05-12 Tom Tromey <tom@tromey.com>
7476
7477 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
7478
7479 2017-05-09 Yao Qi <yao.qi@linaro.org>
7480
7481 * regcache.c: Include <forward_list>.
7482 (struct regcache_list): Remove.
7483 (current_regcache): Update.
7484 (get_thread_arch_aspace_regcache): Update for std::forward_list.
7485 (regcache_thread_ptid_changed): Likewise.
7486 (registers_changed_ptid): Likewise.
7487 (current_regcache_size): Likewise.
7488
7489 2017-05-09 Yao Qi <yao.qi@linaro.org>
7490
7491 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
7492 (current_regcache_size): New function.
7493 (current_regcache_test): New function.
7494 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
7495
7496 2017-05-08 Alan Hayward <alan.hayward@arm.com>
7497
7498 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
7499 (print_gp_register_row): Use get_frame_register_value.
7500
7501 2017-05-08 Alan Hayward <alan.hayward@arm.com>
7502
7503 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
7504 (mips_supply_fpregset): Likewise.
7505 (mips64_supply_gregset): Likewise.
7506
7507 2017-05-08 Alan Hayward <alan.hayward@arm.com>
7508
7509 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
7510 regcache->raw_supply_zeroed.
7511
7512 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7513
7514 * configure.nat: Rearrange 'case' statements to match
7515 host before cpu.
7516
7517 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7518
7519 * Makefile.in: Remove "@host_makefile_frag@". Add variables
7520 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
7521 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
7522 "@nat_extra_makefile_frag@".
7523 (Makefile): Remove dependency on "@frags@".
7524 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
7525 (data-directory/Makefile): Likewise.
7526 * config/aarch64/linux.mh: Deleted; moved contents to
7527 "gdb/configure.nat".
7528 * config/alpha/alpha-linux.mh: Likewise.
7529 * config/alpha/nbsd.mh: Likewise.
7530 * config/arm/linux.mh: Likewise.
7531 * config/arm/nbsdelf.mh: Likewise.
7532 * config/i386/cygwin.mh: Likewise.
7533 * config/i386/cygwin64.mh: Likewise.
7534 * config/i386/darwin.mh: Likewise.
7535 * config/i386/fbsd.mh: Likewise.
7536 * config/i386/fbsd64.mh: Likewise.
7537 * config/i386/go32.mh: Likewise.
7538 * config/i386/i386gnu.mh: Likewise.
7539 * config/i386/i386sol2.mh: Likewise.
7540 * config/i386/linux.mh: Likewise.
7541 * config/i386/linux64.mh: Likewise.
7542 * config/i386/mingw.mh: Likewise.
7543 * config/i386/mingw64.mh: Likewise.
7544 * config/i386/nbsd64.mh: Likewise.
7545 * config/i386/nbsdelf.mh: Likewise.
7546 * config/i386/nto.mh: Likewise.
7547 * config/i386/obsd.mh: Likewise.
7548 * config/i386/obsd64.mh: Likewise.
7549 * config/i386/sol2-64.mh: Likewise.
7550 * config/ia64/linux.mh: Likewise.
7551 * config/m32r/linux.mh: Likewise.
7552 * config/m68k/linux.mh: Likewise.
7553 * config/m68k/nbsdelf.mh: Likewise.
7554 * config/m68k/obsd.mh: Likewise.
7555 * config/m88k/obsd.mh: Likewise.
7556 * config/mips/fbsd.mh: Likewise.
7557 * config/mips/linux.mh: Likewise.
7558 * config/mips/nbsd.mh: Likewise.
7559 * config/mips/obsd64.mh: Likewise.
7560 * config/pa/linux.mh: Likewise.
7561 * config/pa/nbsd.mh: Likewise.
7562 * config/pa/obsd.mh: Likewise.
7563 * config/powerpc/aix.mh: Likewise.
7564 * config/powerpc/fbsd.mh: Likewise.
7565 * config/powerpc/linux.mh: Likewise.
7566 * config/powerpc/nbsd.mh: Likewise.
7567 * config/powerpc/obsd.mh: Likewise.
7568 * config/powerpc/ppc64-linux.mh: Likewise.
7569 * config/powerpc/spu-linux.mh: Likewise.
7570 * config/s390/linux.mh: Likewise.
7571 * config/sh/nbsd.mh: Likewise.
7572 * config/sparc/fbsd.mh: Likewise.
7573 * config/sparc/linux.mh: Likewise.
7574 * config/sparc/linux64.mh: Likewise.
7575 * config/sparc/nbsd64.mh: Likewise.
7576 * config/sparc/nbsdelf.mh: Likewise.
7577 * config/sparc/obsd64.mh: Likewise.
7578 * config/sparc/sol2.mh: Likewise.
7579 * config/tilegx/linux.mh: Likewise.
7580 * config/vax/nbsdelf.mh: Likewise.
7581 * config/vax/obsd.mh: Likewise.
7582 * config/xtensa/linux.mh: Likewise.
7583 * config/i386/i386gnu.mn: New file, with excerpts from
7584 "config/i386/i386gnu.mh".
7585 * configure: Regenerate.
7586 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
7587 *.mh files under "gdb/config".
7588 * configure.nat: New file, with contents from the
7589 "gdb/config/*/*.mh" files.
7590
7591 2017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
7592
7593 * btrace.c (btrace_clear): Free insn vector.
7594
7595 2017-05-05 Pedro Alves <palves@redhat.com>
7596
7597 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
7598 * configure: Regenerate.
7599
7600 2017-05-04 Pedro Alves <palves@redhat.com>
7601
7602 * Makefile.in (SFILES): Add progspace-and-thread.c.
7603 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
7604 (COMMON_OBS): Add progspace-and-thread.o.
7605 * breakpoint.c: Include "progspace-and-thread.h".
7606 (update_inserted_breakpoint_locations)
7607 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
7608 Use scoped_restore_current_pspace_and_thread.
7609 (create_std_terminate_master_breakpoint): Use
7610 scoped_restore_current_program_space.
7611 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
7612 (print_breakpoint_location): Use
7613 scoped_restore_current_program_space.
7614 (bp_loc_is_permanent): Use
7615 scoped_restore_current_pspace_and_thread.
7616 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
7617 (download_tracepoint_locations): Use
7618 scoped_restore_current_pspace_and_thread.
7619 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
7620 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
7621 (enum step_over_calls_kind): Moved from inferior.h.
7622 (class scoped_restore_current_thread): New class.
7623 * gdbthread.h (make_cleanup_restore_current_thread): Delete
7624 declaration.
7625 (scoped_restore_current_thread): New class.
7626 * infcmd.c: Include "common/gdb_optional.h".
7627 (continue_1, proceed_after_attach): Use
7628 scoped_restore_current_thread.
7629 (notice_new_inferior): Use scoped_restore_current_thread.
7630 * inferior.c: Include "progspace-and-thread.h".
7631 (restore_inferior, save_current_inferior): Delete.
7632 (add_inferior_command, clone_inferior_command): Use
7633 scoped_restore_current_pspace_and_thread.
7634 * inferior.h (scoped_restore_current_inferior): New class.
7635 * infrun.c: Include "progspace-and-thread.h" and
7636 "common/gdb_optional.h".
7637 (follow_fork_inferior): Use
7638 scoped_restore_current_pspace_and_thread.
7639 (scoped_restore_exited_inferior): New class.
7640 (handle_vfork_child_exec_or_exit): Use
7641 scoped_restore_exited_inferior,
7642 scoped_restore_current_pspace_and_thread,
7643 scoped_restore_current_thread and scoped_restore.
7644 (fetch_inferior_event): Use scoped_restore_current_thread.
7645 * linespec.c (decode_line_full, decode_line_1): Use
7646 scoped_restore_current_program_space.
7647 * mi/mi-main.c: Include "progspace-and-thread.h".
7648 (exec_continue): Use scoped_restore_current_thread.
7649 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
7650 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
7651 * proc-service.c (ps_pglobal_lookup): Use
7652 scoped_restore_current_program_space.
7653 * progspace-and-thread.c: New file.
7654 * progspace-and-thread.h: New file.
7655 * progspace.c (release_program_space, clone_program_space): Use
7656 scoped_restore_current_program_space.
7657 (restore_program_space, save_current_program_space)
7658 (save_current_space_and_thread): Delete.
7659 (switch_to_program_space_and_thread): Moved to
7660 progspace-and-thread.c.
7661 * progspace.h (save_current_program_space)
7662 (save_current_space_and_thread): Delete declarations.
7663 (scoped_restore_current_program_space): New class.
7664 * remote.c (remote_btrace_maybe_reopen): Use
7665 scoped_restore_current_thread.
7666 * symtab.c: Include "progspace-and-thread.h".
7667 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
7668 * thread.c (print_thread_info_1): Use
7669 scoped_restore_current_thread.
7670 (struct current_thread_cleanup): Delete.
7671 (do_restore_current_thread_cleanup)
7672 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
7673 (scoped_restore_current_thread::~scoped_restore_current_thread):
7674 ... this new dtor.
7675 (make_cleanup_restore_current_thread): Rename/convert to ...
7676 (scoped_restore_current_thread::scoped_restore_current_thread):
7677 ... this new ctor.
7678 (thread_apply_all_command): Use scoped_restore_current_thread.
7679 (thread_apply_command): Use scoped_restore_current_thread.
7680 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
7681 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
7682
7683 2017-05-04 Pedro Alves <palves@redhat.com>
7684
7685 * thread.c (make_cleanup_restore_current_thread): Move
7686 find_thread_ptid call before the is_stopped call. Assert that the
7687 thread is found. Replace is_stopped call by checking the thread's
7688 state directly. Remove unnecessary NULL-thread check.
7689
7690 2017-05-04 Pedro Alves <palves@redhat.com>
7691
7692 * corelow.c (thread_section_name): New class.
7693 (get_core_register_section, get_core_siginfo): Use it.
7694
7695 2017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
7696
7697 * corelow.c (sniff_core_bfd): Remove extra semicolon.
7698 (get_core_register_section): Remove xfree of NULL pointer.
7699
7700 2017-05-03 Alan Hayward <alan.hayward@arm.com>
7701
7702 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
7703 * regcache.c (regcache::raw_supply_zeroed): New function.
7704 * regcache.h (regcache::raw_supply_zeroed): New declaration.
7705
7706 2017-05-03 Simon Marchi <simon.marchi@ericsson.com>
7707
7708 * gdbarch.sh: Remove commented out definition of
7709 TARGET_CHAR_BIT.
7710 * gdbarch.h: Re-generate.
7711
7712 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7713
7714 * configure: Regenerate.
7715
7716 2017-05-02 Simon Marchi <simon.marchi@ericsson.com>
7717
7718 * solib-target.c (solib_target_relocate_section_addresses):
7719 Remove num_section_bases, num_bases, segment_bases variables.
7720
7721 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7722
7723 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
7724
7725 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7726
7727 * solib-target.c: Include <vector>
7728 (struct lm_info_target) <~lm_info_target>: Remove.
7729 <segment_bases, section_bases>: Change type to
7730 std::vector<CORE_ADDR>.
7731 (library_list_start_segment, library_list_start_section,
7732 library_list_end_library,
7733 solib_target_relocate_section_addresses): Adjust.
7734
7735 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7736
7737 * gdbarch.sh (software_single_step): Change return type to
7738 std::vector<CORE_ADDR>.
7739 * gdbarch.c, gdbarch.h: Re-generate.
7740 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
7741 Adjust.
7742 (arm_deal_with_atomic_sequence_raw): Adjust.
7743 (thumb_get_next_pcs_raw): Adjust.
7744 (arm_get_next_pcs_raw): Adjust.
7745 (arm_get_next_pcs): Adjust.
7746 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
7747 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
7748 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
7749 (alpha_software_single_step): Adjust.
7750 * alpha-tdep.h (alpha_software_single_step): Adjust.
7751 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
7752 * arm-tdep.c (arm_software_single_step): Adjust.
7753 (arm_breakpoint_kind_from_current_state): Adjust.
7754 * arm-tdep.h (arm_software_single_step): Adjust.
7755 * breakpoint.c (insert_single_step_breakpoint): Adjust.
7756 * cris-tdep.c (cris_software_single_step): Adjust.
7757 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
7758 (micromips_deal_with_atomic_sequence): Adjust.
7759 (deal_with_atomic_sequence): Adjust.
7760 (mips_software_single_step): Adjust.
7761 * mips-tdep.h (mips_software_single_step): Adjust.
7762 * moxie-tdep.c (moxie_software_single_step): Adjust.
7763 * nios2-tdep.c (nios2_software_single_step): Adjust.
7764 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
7765 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
7766 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
7767 * s390-linux-tdep.c (s390_software_single_step): Adjust.
7768 * sparc-tdep.c (sparc_software_single_step): Adjust.
7769 * spu-tdep.c (spu_software_single_step): Adjust.
7770 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
7771
7772 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7773
7774 * gdbarch.sh: Use semi-colon as field separator instead of colon.
7775 * gdbarch.h: Re-generate.
7776
7777 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7778
7779 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
7780 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
7781 * python/py-instruction.c, python/py-instruction.h: New file.
7782 * python/py-record.c: Add py-instruction.h include.
7783 (gdbpy_initialize_record): Make gdb.Instruction a super class of
7784 gdb.RecordInstruction.
7785 * python/python-internal.h: Add gdbpy_initialize_instruction
7786 declaration.
7787 * python/python.c (do_start_initialization): Add
7788 gdbpy_initialize_instruction.
7789
7790 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7791
7792 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
7793 Remove.
7794 (btrace_func_from_recpy_func): New function.
7795 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
7796 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
7797 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
7798 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
7799 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
7800 Also, use new helper functions.
7801 (btpy_list_item): Use new helper functions.
7802 (recpy_bt_function_call_history): Use new type name.
7803 (btpy_call_getset): Remove.
7804 (gdbpy_initialize_btrace): Remove code to initialize
7805 gdb.BtraceFunctionCall.
7806 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
7807 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
7808 recpy_bt_func_prev, recpy_bt_func_next): New export.
7809 * python/py-record.c (recpy_func_type): New static object.
7810 (recpy_func_new, recpy_func_level, recpy_func_symbol,
7811 recpy_func_instructions, recpy_func_up, recpy_func_prev,
7812 recpy_func_next): New function.
7813 (recpy_element_hash, recpy_element_richcompare): Updated comment.
7814 (recpy_func_getset): New static object.
7815 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
7816 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
7817
7818 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7819
7820 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
7821 (btpy_object, btpy_insn_type, btpy_new): Remove.
7822 (btpy_list_object): Use gdb.RecordInstruction type instead of
7823 gdb.BtraceInstruction type.
7824 (btrace_insn_from_recpy_insn): New function.
7825 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
7826 btpy_new.
7827 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
7828 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
7829 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
7830 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
7831 instead of btpy_object.
7832 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
7833 btpy_insn_data, btpy_insn_decode): Rename to ...
7834 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
7835 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
7836 recpy_bt_insn_decode): This. Also, use new helper functions.
7837 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
7838 recpy_insn_type.
7839 (btpy_insn_getset): Remove.
7840 (gdbpy_initialize_btrace): Remove code to initialize
7841 gdb.BtraceInstruction. Use recpy_element_object.
7842 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
7843 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
7844 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
7845 * python/py-record.c (recpy_insn_type): New static object.
7846 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
7847 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
7848 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
7849 New function.
7850 (recpy_insn_getset): New static object.
7851 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
7852 * python/py-record.h (recpy_element_object): New typedef.
7853 (recpy_insn_type, recpy_insn_new): New export.
7854
7855 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7856
7857 * py-record-btrace.c (btpy_insn_new): Removed.
7858 (btpy_insn_or_gap_new): New function.
7859 (btpy_insn_error): Removed.
7860 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
7861 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
7862 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
7863 btpy_insn_or_gap_new instead of btpy_insn_new.
7864 (btpy_insn_getset): Remove btpy_insn_error.
7865 * py-record.c (recpy_gap_type): New static object.
7866 (recpy_gap_object): New typedef.
7867 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
7868 recpy_gap_reason_string): New function.
7869 (recpy_gap_getset): New static object.
7870 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
7871 * py-record.h (recpy_gap_new): New export.
7872
7873 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7874
7875 * python/py-record.c (recpy_ptid): Remove.
7876 (recpy_record_getset): Remove recpy_ptid.
7877
7878 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7879
7880 * btrace.c (btrace_fetch): Set inferior_ptid.
7881 * python/py-record-btrace.c: Add "py-record.h" include.
7882 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
7883 recpy_bt_end, recpy_bt_instruction_history,
7884 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
7885 in gdb.Record object instead of current ptid.
7886 * python/py-record.c: Include new "py-record.h" file.
7887 (recpy_record_object): Moved to py-record.h.
7888 * python/py-record.h: New file.
7889
7890 2017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7891
7892 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
7893 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
7894 indentation.
7895
7896 2017-05-01 Joel Brobecker <brobecker@adacore.com>
7897
7898 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
7899 the past maintainers section.
7900
7901 2017-04-28 Yao Qi <yao.qi@linaro.org>
7902
7903 * infcmd.c (get_return_value): Use regcache ctor, and remove
7904 cleanup.
7905
7906 2017-04-28 Yao Qi <yao.qi@linaro.org>
7907 Pedro Alves <palves@redhat.com>
7908
7909 * regcache.c (regcache::regcache): New tag dispatch ctor.
7910 (do_cooked_read): Moved above.
7911 (regcache_dup): Use the tag dispatch ctor..
7912 * regcache.h (regcache): Declare ctor, delete copy ctor and
7913 assignment operator, remove friend regcache_dup.
7914
7915 2017-04-28 Yao Qi <yao.qi@linaro.org>
7916
7917 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
7918 call method save instead of regcache_cpy.
7919 * regcache.h (struct regcache): Make regcache_dup a friend.
7920
7921 2017-04-28 Yao Qi <yao.qi@linaro.org>
7922
7923 * regcache.c (struct regcache): Move to regcache.h
7924 (regcache::arch): New method.
7925 (regcache_get_ptid): Update.
7926 (get_regcache_arch): Call arch method.
7927 (get_regcache_aspace): Call method aspace.
7928 (register_buffer): Change it to method.
7929 (regcache_save): Change it to regcache::save.
7930 (regcache_restore): Likewise.
7931 (regcache_cpy_no_passthrough): Remove the declaration.
7932 (regcache_cpy): Call methods restore and cpy_no_passthrough.
7933 (regcache_cpy_no_passthrough): Change it to method
7934 cpy_no_passthrough.
7935 (regcache_register_status): Change it to method
7936 get_register_status.
7937 (regcache_invalidate): Change it to method invalidate.
7938 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
7939 (regcache_raw_update): Change it to method raw_update.
7940 (regcache_raw_read): Likewise.
7941 (regcache_raw_read_signed): Likewise.
7942 (regcache_raw_read_unsigned): Likewise.
7943 (regcache_raw_write_signed): Likewise.
7944 (regcache_raw_write_unsigned): Likewise.
7945 (regcache_cooked_read): Likewise.
7946 (regcache_cooked_read_value): Likewise.
7947 (regcache_cooked_read_signed): Likewise.
7948 (regcache_cooked_read_unsigned): Likewise.
7949 (regcache_cooked_write_signed): Likewise.
7950 (regcache_cooked_write_unsigned): Likewise.
7951 (regcache_raw_set_cached_value): Likewise.
7952 (regcache_raw_write): Likewise.
7953 (regcache_cooked_write): Likewise.
7954 (regcache_xfer_part): Likewise.
7955 (regcache_raw_read_part): Likewise.
7956 (regcache_raw_write_part): Likewise.
7957 (regcache_cooked_read_part): Likewise.
7958 (regcache_cooked_write_part): Likewise.
7959 (regcache_raw_supply): Likewise.
7960 (regcache_raw_collect): Likewise.
7961 (regcache_transfer_regset): Likewise.
7962 (regcache_supply_regset): Likewise.
7963 (regcache_collect_regset): Likewise.
7964 (regcache_debug_print_register): Likewise.
7965 (enum regcache_dump_what): Move it to regcache.h.
7966 (regcache_dump): Change it to method dump.
7967 * regcache.h (enum regcache_dump_what): New.
7968 (class regcache): New.
7969 * target.c (target_fetch_registers): Call method
7970 debug_print_register.
7971 (target_store_registers): Likewise.
7972
7973 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7974
7975 * windows-nat.c (struct lm_info_windows): Initialize field.
7976 (windows_make_so): Allocate lm_info_windows with new.
7977 (windows_free_so): Free lm_info_windows with delete.
7978
7979 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7980
7981 * solib-darwin.c (struct lm_info_darwin): Initialize field.
7982 (darwin_current_sos): Allocate lm_info_darwin with new, remove
7983 cleanup.
7984 (darwin_free_so): Free lm_info_darwin with delete.
7985
7986 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7987
7988 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
7989 <l_addr_p>: Change type to bool.
7990 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
7991 (svr4_free_so): Free lm_info_svr4 with delete.
7992 (svr4_copy_library_list): Replace memcpy with call to copy
7993 constructor.
7994 (library_list_start_library, svr4_default_sos): Allocate
7995 lm_info_svr4 with new.
7996
7997 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
7998
7999 * solib-target.c (struct lm_info_target): Add destructor,
8000 initialize fields.
8001 <name>: Change type to std::string.
8002 (library_list_start_library): Allocate lm_info_target with new.
8003 (solib_target_free_library_list): Free lm_info_target with
8004 delete.
8005 (solib_target_current_sos): Adapt to std::string.
8006 (solib_target_free_so): Free lm_info_target with delete.
8007
8008 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
8009
8010 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
8011 fields.
8012 (frv_current_sos): Allocate lm_info_frv with new.
8013 (frv_relocate_main_executable): Free lm_info_frv with delete,
8014 allocate with new.
8015 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
8016
8017 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
8018
8019 * solib-frv.c (struct lm_info_frv): Fix indentation.
8020
8021 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
8022
8023 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
8024 map field.
8025 (dsbt_current_sos): Allocate lm_info_dsbt with new.
8026 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
8027 and allocate with new.
8028 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
8029
8030 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
8031
8032 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
8033 <filename, member_name>: Change type to std::string.
8034 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
8035 (library_list_start_library): Allocate lm_info_aix with new.
8036 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
8037 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
8038 with copy constructor.
8039
8040 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
8041
8042 * solist.h (struct lm_info): Remove.
8043 (struct lm_info_base): New class.
8044 (struct so_list) <lm_info>: Change type to lm_info_base *.
8045 * nto-tdep.c (struct lm_info): Remove.
8046 (lm_addr): Adjust.
8047 * solib-aix.c (struct lm_info): Rename to ...
8048 (struct lm_info_aix): ... this. Extend lm_info_base.
8049 (lm_info_p): Rename to ...
8050 (lm_info_aix_p): ... this, and adjust.
8051 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
8052 solib_aix_parse_libraries, library_list_start_library,
8053 solib_aix_free_library_list, solib_aix_parse_libraries,
8054 solib_aix_get_library_list,
8055 solib_aix_relocate_section_addresses, solib_aix_free_so,
8056 solib_aix_get_section_offsets,
8057 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
8058 Adjust.
8059 (struct solib_aix_inferior_data) <library_list>: Adjust.
8060 * solib-darwin.c (struct lm_info): Rename to ...
8061 (struct lm_info_darwin): ... this. Extend lm_info_base.
8062 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
8063 * solib-dsbt.c (struct lm_info): Rename to ...
8064 (struct lm_info_dsbt): ... this. Extend lm_info_base.
8065 (struct dsbt_info) <main_executable_lm_info): Adjust.
8066 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
8067 dsbt_relocate_section_addresses): Adjust.
8068 * solib-frv.c (struct lm_info): Rename to ...
8069 (struct lm_info_frv): ... this. Extend lm_info_base.
8070 (main_executable_lm_info): Adjust.
8071 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
8072 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
8073 find_canonical_descriptor_in_load_object,
8074 frv_fdpic_find_canonical_descriptor): Adjust.
8075 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
8076 to lm_info_svr4.
8077 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
8078 svr4_clear_so, svr4_copy_library_list,
8079 library_list_start_library, svr4_default_sos, svr4_read_so_list,
8080 svr4_current_sos, svr4_fetch_objfile_link_map,
8081 solist_update_incremental): Adjust.
8082 * solib-svr4.h (struct lm_info_svr4): Move here from
8083 solib-svr4.c.
8084 * solib-target.c (struct lm_info): Rename to ...
8085 (struct lm_info_target): ... this. Extend lm_info_base.
8086 (lm_info_p): Rename to ...
8087 (lm_info_target_p): ... this.
8088 (solib_target_parse_libraries, library_list_start_segment,
8089 library_list_start_section, library_list_start_library,
8090 library_list_end_library, solib_target_free_library_list,
8091 solib_target_current_sos, solib_target_free_so,
8092 solib_target_relocate_section_addresses): Adjust.
8093 * windows-nat.c (struct lm_info): Rename to ...
8094 (struct lm_info_windows): ... this. Extend lm_info_base.
8095 (windows_make_so, handle_load_dll, handle_unload_dll,
8096 windows_xfer_shared_libraries): Adjust.
8097
8098 2017-04-28 Simon Marchi <simon.marchi@ericsson.com>
8099
8100 * solib-darwin.c (struct darwin_so_list): Remove.
8101 (darwin_current_sos): Allocate an so_list object instead of a
8102 darwin_so_list, separately allocate an lm_info object.
8103 (darwin_free_so): Free lm_info.
8104
8105 2017-04-28 John Baldwin <jhb@FreeBSD.org>
8106
8107 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
8108 with fprintf_filtered.
8109
8110 2017-04-28 Yao Qi <yao.qi@linaro.org>
8111
8112 * regcache.c (regcache::regcache): New function.
8113 (regcache::~regcache): New function.
8114 (regcache_xmalloc_1): Remove.
8115 (regcache_xmalloc): Call new regcache.
8116 (regcache_xfree): Call delete regcache.
8117 (get_thread_arch_aspace_regcache): Call new regcache.
8118
8119 2017-04-28 Yao Qi <yao.qi@linaro.org>
8120
8121 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
8122 lwp instead of ptid_get_lwp.
8123
8124 2017-04-28 Yao Qi <yao.qi@linaro.org>
8125
8126 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
8127 lwp_info instead of getting from inferior_ptid.
8128
8129 2017-04-27 Keith Seitz <keiths@redhat.com>
8130
8131 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
8132 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
8133 (CV_CONVERSION_BADNESS): Define.
8134 (rank_one_type): Remove overly restrictive rvalue reference
8135 rank checks.
8136 Add cv-qualifier checks and subranks for type equality.
8137 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
8138 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
8139 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
8140
8141 2017-04-27 Simon Marchi <simon.marchi@ericsson.com>
8142
8143 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
8144 count when creating the object.
8145
8146 2017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
8147 Ulrich Weigand <uweigand@de.ibm.com>
8148
8149 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
8150 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
8151 is used in AIX.
8152 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
8153 (process_xcoff_symbol): Likewise.
8154 (scan_xcoff_symtab): Likewise.
8155
8156 2017-04-26 Alan Hayward <alan.hayward@arm.com>
8157
8158 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
8159 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
8160 (ia64_access_reg): Use get_frame_register_unsigned.
8161 (ia64_access_rse_reg): Likewise.
8162 (ia64_libunwind_frame_prev_register): Likewise.
8163
8164 2017-04-26 Jiong Wang <jiong.wang@arm.com>
8165
8166 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
8167 * gdbarch.c: Regenerated.
8168 * gdbarch.h: Regenerated.
8169 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
8170 visibility external.
8171 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
8172 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
8173 (enum cfa_how_kind): Move to ...
8174 (struct dwarf2_frame_state_reg_info): Likewise.
8175 (struct dwarf2_frame_state): Likewise.
8176 * dwarf2-frame.h: ... here.
8177 (dwarf2_frame_state_alloc_regs): New declaration.
8178 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
8179 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
8180
8181 2017-04-26 Alan Hayward <alan.hayward@arm.com>
8182
8183 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
8184 regcache_raw_read_unsigned.
8185 (xtensa_pseudo_register_write): Likewise.
8186
8187 2017-04-26 Alan Hayward <alan.hayward@arm.com>
8188
8189 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
8190 (nds32_pseudo_register_write): Likewise.
8191
8192 2017-04-25 Yao Qi <yao.qi@linaro.org>
8193
8194 * regcache.c (struct regcache) <readonly_p>: Change its type
8195 to bool.
8196 (regcache_xmalloc_1): Update parameter type and callers update.
8197
8198 2017-04-25 Yao Qi <yao.qi@linaro.org>
8199
8200 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
8201 set_gdbarch_wchar_bit.
8202 * arm-tdep.c (arm_gdbarch_init): Likewise.
8203
8204 2017-04-25 Pedro Alves <palves@redhat.com>
8205
8206 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
8207 (BothAreRelocatable, memcopy, memmove): Don't define.
8208 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
8209 macros.
8210
8211 2017-04-25 Pedro Alves <palves@redhat.com>
8212
8213 * common/common-defs.h: Include "common/poison.h".
8214 * common/function-view.h: (Not, Or, Requires): Move to traits.h
8215 and adjust.
8216 * common/poison.h: New file.
8217 * common/traits.h: Include <type_traits>.
8218 (Not, Or, Requires): New, moved from common/function-view.h.
8219
8220 2017-04-25 Pedro Alves <palves@redhat.com>
8221
8222 * breakpoint.h (struct breakpoint): In-class initialize all
8223 fields. Make boolean fields "bool".
8224 * breakpoint.c (init_raw_breakpoint_without_location): Remove
8225 memset call and initializations no longer necessary.
8226
8227 2017-04-25 Pedro Alves <palves@redhat.com>
8228
8229 * btrace.c (pt_btrace_insn_flags): Change parameter type to
8230 reference.
8231 (pt_btrace_insn): New function.
8232 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
8233
8234 2017-04-25 Pedro Alves <palves@redhat.com>
8235
8236 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
8237 "base" field and inherit from "bp_location" instead. Add
8238 non-default ctor.
8239 (allocate_location_exception): Use new non-default ctor.
8240 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
8241 (init_bp_location): Convert to ...
8242 (bp_location::bp_location): ... this new ctor, and remove memset
8243 call.
8244 (base_breakpoint_allocate_location): Use the new non-default ctor.
8245 * breakpoint.h (bp_location): Now a class. Declare default and
8246 non-default ctors. In-class initialize all members.
8247 (init_bp_location): Remove declaration.
8248
8249 2017-04-25 Pedro Alves <palves@redhat.com>
8250
8251 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
8252 assignment operator.
8253
8254 2017-04-24 Yao Qi <yao.qi@linaro.org>
8255
8256 * doublest.c (convert_doublest_to_floatformat): Call
8257 floatformat_totalsize_bytes.
8258
8259 2017-04-22 Tom Tromey <tom@tromey.com>
8260
8261 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
8262 ui_out_emit_list.
8263 * stack.c (print_frame): Use ui_out_emit_list.
8264 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
8265 ui_out_emit_list.
8266 * mi/mi-main.c (print_one_inferior)
8267 (mi_cmd_data_list_register_names)
8268 (mi_cmd_data_list_register_values, mi_cmd_list_features)
8269 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
8270 ui_out_emit_list.
8271 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
8272 (mi_output_solib_attribs): Use ui_out_emit_list,
8273 ui_out_emit_tuple.
8274 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
8275 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8276 (mi_cmd_stack_list_args, list_args_or_locals): Use
8277 ui_out_emit_list.
8278 * disasm.c (do_assembly_only): Use ui_out_emit_list.
8279 * breakpoint.c (print_solib_event, output_thread_groups): Use
8280 ui_out_emit_list.
8281
8282 2017-04-22 Tom Tromey <tom@tromey.com>
8283
8284 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
8285 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
8286 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
8287
8288 2017-04-22 Tom Tromey <tom@tromey.com>
8289
8290 * tracepoint.c (tvariables_info_1)
8291 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
8292
8293 2017-04-22 Tom Tromey <tom@tromey.com>
8294
8295 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
8296 annotate_arg_emitter.
8297 * breakpoint.c (print_mention_watchpoint)
8298 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
8299 * annotate.h (struct annotate_arg_emitter): New.
8300
8301 2017-04-22 Tom Tromey <tom@tromey.com>
8302
8303 * record-btrace.c (record_btrace_insn_history)
8304 (record_btrace_insn_history_range, record_btrace_call_history)
8305 (record_btrace_call_history_range): Use ui_out_emit_tuple.
8306 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
8307 ui_out_emit_tuple.
8308 * stack.c (print_frame_info): Use ui_out_emit_tuple.
8309 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
8310 * skip.c (skip_info): Use ui_out_emit_tuple.
8311 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
8312 * progspace.c (print_program_space): Use ui_out_emit_tuple.
8313 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
8314 * osdata.c (info_osdata): Use ui_out_emit_tuple.
8315 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
8316 ui_out_emit_tuple.
8317 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
8318 (output_register, mi_cmd_data_read_memory)
8319 (mi_cmd_data_read_memory_bytes, mi_load_progress)
8320 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
8321 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
8322 Use ui_out_emit_tuple.
8323 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
8324 ui_out_emit_tuple.
8325 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
8326 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
8327 * linux-thread-db.c (info_auto_load_libthread_db): Use
8328 ui_out_emit_tuple.
8329 * inferior.c (print_inferior): Use ui_out_emit_tuple.
8330 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
8331 * disasm.c (do_mixed_source_and_assembly_deprecated)
8332 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
8333 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
8334 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
8335 * breakpoint.c (print_one_breakpoint_location)
8336 (print_one_breakpoint): Use ui_out_emit_tuple.
8337 * auto-load.c (print_script, info_auto_load_cmd): Use
8338 ui_out_emit_tuple.
8339 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
8340
8341 2017-04-21 Simon Marchi <simon.marchi@ericsson.com>
8342
8343 * thread.c (print_thread_info_1): Remove dead code.
8344
8345 2017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8346
8347 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
8348 GDB_SELF_TEST.
8349 * arm-tdep.c (selftests::arm_record_test): Likewise.
8350
8351 2017-04-21 Yao Qi <yao.qi@linaro.org>
8352
8353 * regcache.c (regcache_restore): Remove argument 2. Replace
8354 argument 3 with regcache. Get register status from
8355 src->register_status and get register contents from
8356 register_buffer (src, regnum).
8357 (regcache_cpy): Update.
8358
8359 2017-04-19 Pedro Alves <palves@redhat.com>
8360
8361 * gdbthread.h (thread): Add missing closing parenthesis in
8362 comment.
8363
8364 2017-04-19 Pedro Alves <palves@redhat.com>
8365
8366 * common/refcounted-object.h: New file.
8367 * gdbthread.h: Include "common/refcounted-object.h".
8368 (thread_info): Inherit from refcounted_object and add comments.
8369 (thread_info::incref, thread_info::decref)
8370 (thread_info::m_refcount): Delete.
8371 (thread_info::deletable): Use the refcounted_object::refcount()
8372 method.
8373 * inferior.c (current_inferior_): Add comment.
8374 (set_current_inferior): Increment/decrement refcounts.
8375 (prune_inferiors, remove_inferior_command): Skip inferiors marked
8376 not-deletable instead of comparing with the current inferior.
8377 (initialize_inferiors): Increment the initial inferior's refcount.
8378 * inferior.h (struct inferior): Forward declare.
8379 Include "common/refcounted-object.h".
8380 (current_inferior, set_current_inferior): Move declaration to
8381 before struct inferior's definition, and fix comment.
8382 (inferior): Inherit from refcounted_object. Add comments.
8383 * thread.c (switch_to_thread_no_regs): Reference the thread's
8384 inferior pointer directly instead of doing a ptid lookup.
8385 (switch_to_no_thread): New function.
8386 (switch_to_thread(thread_info *)): New function, factored out
8387 from ...
8388 (switch_to_thread(ptid_t)): ... this.
8389 (restore_current_thread): Delete.
8390 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
8391 fields, and add 'inf' field.
8392 (do_restore_current_thread_cleanup): Check whether old->inf is
8393 alive instead of looking up an inferior by ptid. Use
8394 switch_to_thread and switch_to_no_thread.
8395 (restore_current_thread_cleanup_dtor): Use old->inf directly
8396 instead of lookup up an inferior by id. Decref the inferior.
8397 Don't restore 'removable'.
8398 (make_cleanup_restore_current_thread): Same the inferior pointer
8399 in old, instead of the inferior number. Incref the inferior.
8400 Don't save/clear 'removable'.
8401
8402 2017-04-19 Pedro Alves <palves@redhat.com>
8403
8404 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8405 unittests/scoped_restore-selftests.c.
8406 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
8407 * common/scoped_restore.h (scoped_restore_base): Make "class".
8408 (scoped_restore_base::release): New public method.
8409 (scoped_restore_base::scoped_restore_base): New protected ctor.
8410 (scoped_restore_base::m_saved_var): New protected field.
8411 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
8412 scoped_restore_base base class instead of m_saved_var directly.
8413 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
8414 (scoped_restore_tmpl::scoped_restore_tmpl(const
8415 scoped_restore_tmpl<T>&)): Likewise.
8416 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
8417 method.
8418 (scoped_restore_tmpl::saved_var): New method.
8419 (scoped_restore_tmpl::m_saved_var): Delete.
8420 * inferior.h (inferior::detaching): Now a bool.
8421 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
8422 cleanup.
8423 * unittests/scoped_restore-selftests.c: New file.
8424
8425 2017-04-19 Pedro Alves <palves@redhat.com>
8426
8427 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
8428 Re-sort in alphabetic order.
8429
8430 2017-04-18 Pedro Alves <palves@redhat.com>
8431
8432 * xml-support.c (obstack_xml_printf): Delete.
8433 * xml-support.h (obstack_xml_printf): Delete.
8434
8435 2017-04-18 Pedro Alves <palves@redhat.com>
8436
8437 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
8438 vdebug, verror, body_text, start_element, end_element, name,
8439 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
8440 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
8441 is_xinclude>: Make private and add m_ prefix.
8442 (gdb_xml_parser::body_text): New method, based on ...
8443 (gdb_xml_body_text): ... this. Adjust.
8444 (gdb_xml_parser::vdebug): New method, based on ...
8445 (gdb_xml_debug): ... this. Adjust.
8446 (gdb_xml_parser::verror): New method, based on ...
8447 (gdb_xml_error): ... this. Adjust.
8448 (gdb_xml_parser::start_element): New method, based on ...
8449 (gdb_xml_start_element): ... this. Adjust.
8450 (gdb_xml_start_element_wrapper): Defer to
8451 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
8452 (gdb_xml_parser::end_element): New method, based on ...
8453 (gdb_xml_end_element_wrapper): ... this. Adjust.
8454 (gdb_xml_parser::~gdb_xml_parser): Adjust.
8455 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
8456 (gdb_xml_parser::use_dtd): New method, based on ...
8457 (gdb_xml_use_dtd): ... this. Adjust.
8458 (gdb_xml_parser::parse): New method, based on ...
8459 (gdb_xml_parse): ... this. Adjust.
8460 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
8461 (xinclude_start_include): Adjust to call the parser's name method.
8462 (xml_xinclude_default, xml_xinclude_start_doctype)
8463 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
8464 method.
8465 (xml_process_xincludes): Adjust to call parser methods.
8466 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
8467 declarations.
8468
8469 2017-04-18 Pedro Alves <palves@redhat.com>
8470
8471 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
8472 gdb::optional<std::string>.
8473 * xml-support.c: Include <string>.
8474 (scope_level::scope_level(scope_level &&))
8475 (scope_level::~scope_level): Delete.
8476 (scope_level::body): Now a std::string.
8477 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
8478 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
8479 parameter.
8480 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
8481 (xinclude_parsing_data::output): Now a std::string reference.
8482 (xinclude_start_include): Adjust.
8483 (xml_xinclude_default): Adjust.
8484 (xml_process_xincludes): Add 'output' parameter, and return bool.
8485 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
8486 and return bool.
8487 * xml-tdesc.c: Include <unordered_map> and <string>.
8488 (tdesc_xml_cache): Delete.
8489 (tdesc_xml_cache_s): Delete.
8490 (xml_cache): Now an std::unordered_map.
8491 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
8492 (target_fetch_description_xml): Change return type to
8493 gdb::optional<std::string>, and adjust.
8494 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
8495 (target_fetch_description_xml): Change return type to
8496 gdb::optional<std::string>.
8497
8498 2017-04-18 Pedro Alves <palves@redhat.com>
8499
8500 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8501 unittests/optional-selftests.c.
8502 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
8503 * unittests/optional-selftests.c: New file.
8504 * unittests/optional/assignment/1.cc: New file.
8505 * unittests/optional/assignment/2.cc: New file.
8506 * unittests/optional/assignment/3.cc: New file.
8507 * unittests/optional/assignment/4.cc: New file.
8508 * unittests/optional/assignment/5.cc: New file.
8509 * unittests/optional/assignment/6.cc: New file.
8510 * unittests/optional/assignment/7.cc: New file.
8511 * unittests/optional/cons/copy.cc: New file.
8512 * unittests/optional/cons/default.cc: New file.
8513 * unittests/optional/cons/move.cc: New file.
8514 * unittests/optional/cons/value.cc: New file.
8515 * unittests/optional/in_place.cc: New file.
8516 * unittests/optional/observers/1.cc: New file.
8517 * unittests/optional/observers/2.cc: New file.
8518
8519 2017-04-18 Pedro Alves <palves@redhat.com>
8520
8521 * common/gdb_optional.h: Include common/traits.h.
8522 (in_place_t): New type.
8523 (in_place): New constexpr variable.
8524 (optional::optional): Remove member initialization of
8525 m_instantiated.
8526 (optional::optional(in_place_t...)): New constructor.
8527 (optional::~optional): Use reset.
8528 (optional::optional(const optional&)): New.
8529 (optional::optional(const optional&&)): New.
8530 (optional::optional(T &)): New.
8531 (optional::optional(T &&)): New.
8532 (operator::operator=(const optional &)): New.
8533 (operator::operator=(optional &&)): New.
8534 (operator::operator= (const T &))
8535 (operator::operator= (T &&))
8536 (operator::emplace (Args &&... args)): Return a T&. Use reset.
8537 (operator::reset): New.
8538 (operator::m_instantiated):: Add in-class initializer.
8539 * common/traits.h: Include <type_traits>.
8540 (struct And): New types.
8541
8542 2017-04-18 Pedro Alves <palves@redhat.com>
8543
8544 * xml-support.c: Include <vector>.
8545 (scope_level::scope_level(const gdb_xml_element *))
8546 (scope_level::scope_level(scope_level&&)): New.
8547 (scope_level::~scope_level): New.
8548 (scope_level_s): Delete.
8549 (gdb_xml_parser::scopes): Now a std::vector.
8550 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
8551 Use std::vector.
8552 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
8553 scope cleanup code.
8554 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
8555 of the scopes member. Use std::vector::emplace_back.
8556
8557 2017-04-18 Pedro Alves <palves@redhat.com>
8558
8559 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
8560 a bool.
8561 (gdb_xml_end_element): Change type of first parameter.
8562 (gdb_xml_cleanup): Rename to ...
8563 (gdb_xml_parser::~gdb_xml_parser): ... this.
8564 (gdb_xml_create_parser_and_cleanup): Delete with ...
8565 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
8566 to this new ctor.
8567 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
8568 using gdb_xml_create_parser_and_cleanup.
8569 (xinclude_parsing_data): Add ctor/dtor.
8570 (xml_xinclude_cleanup): Delete.
8571 (xml_process_xincludes): Create a local xinclude_parsing_data
8572 instead of heap-allocating one. Create a local gdb_xml_parser
8573 instead of heap-allocating one with
8574 gdb_xml_create_parser_and_cleanup.
8575
8576 2017-04-18 John Baldwin <jhb@FreeBSD.org>
8577
8578 PR threads/20743
8579 * fbsd-nat.c (resume_one_thread_cb): Remove.
8580 (resume_all_threads_cb): Remove.
8581 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
8582 iterate_over_threads.
8583
8584 2017-04-17 Joel Brobecker <brobecker@adacore.com>
8585
8586 * NEWS: Create a new section for the next release branch.
8587 Rename the section of the current branch, now that it has
8588 been cut.
8589
8590 2017-04-17 Joel Brobecker <brobecker@adacore.com>
8591
8592 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
8593 * version.in: Bump version to 8.0.50.DATE-git.
8594
8595 2017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
8596
8597 PR gdb/21385
8598 * windows-nat.c (windows_create_inferior): Declare 'allargs'
8599 independently of the host, and fix build breakage on Cygwin.
8600
8601 2017-04-13 Pedro Alves <palves@redhat.com>
8602
8603 * inferior.c (free_inferior): Convert to ...
8604 (inferior::~inferior): ... this dtor.
8605 (inferior::inferior): New ctor, factored out from ...
8606 (add_inferior_silent): ... here. Allocate the inferior with a new
8607 expression.
8608 (delete_inferior): Call delete instead of free_inferior.
8609 * inferior.h (gdb_environ, continuation): Forward declare.
8610 (inferior): Now a class. Add in-class initialization to all
8611 members. Make boolean fields bool, except 'detaching'.
8612 (inferior::inferior): New explicit ctor.
8613 (inferior::~inferior): New.
8614
8615 2017-04-13 Pedro Alves <palves@redhat.com>
8616
8617 * inferior.c (init_inferior_list): Delete.
8618 * inferior.h (init_inferior_list): Delete.
8619
8620 2017-04-13 Pedro Alves <palves@redhat.com>
8621
8622 PR threads/13217
8623 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
8624 (top level): Call it twice, with different thread sets.
8625
8626 2017-04-13 Pedro Alves <palves@redhat.com>
8627
8628 * thread.c: Include <algorithm>.
8629 (thread_array_cleanup): Delete.
8630 (scoped_inc_dec_ref): New class.
8631 (live_threads_count): New function.
8632 (set_thread_refcount): Delete.
8633 (tp_array_compar_ascending): Now a bool.
8634 (tp_array_compar): Convert to a std::sort comparison function.
8635 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
8636 and live_threads_count.
8637
8638 2017-04-13 Pedro Alves <palves@redhat.com>
8639
8640 * infrun.c (follow_fork_inferior): Also switch the current
8641 inferior.
8642
8643 2017-04-13 Pedro Alves <palves@redhat.com>
8644
8645 * breakpoint.c (watch_command_1): Save watchpoint-frame info
8646 before calling create_internal_breakpoint.
8647
8648 2017-04-13 Pedro Alves <palves@redhat.com>
8649
8650 * fork-child.c (execv_argv): New class.
8651 (breakup_args): Refactored as ...
8652 (execv_argv::init_for_no_shell): .. this method of execv_argv.
8653 Copy arguments to storage and replace separators with NULL
8654 terminators in place.
8655 (escape_bang_in_quoted_argument): Adjust to return bool.
8656 (execv_argv::execv_argv): New ctor.
8657 (execv_argv::init_for_shell): New method, factored out from
8658 fork_inferior. Don't strdup strings into the vector.
8659 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
8660 Remove free_vector_argv call.
8661
8662 2017-04-13 Yao Qi <yao.qi@linaro.org>
8663
8664 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
8665 tdep->rx_psw_type.
8666
8667 2017-04-13 Yao Qi <yao.qi@linaro.org>
8668
8669 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
8670 * rx-tdep.c (rx_gdbarch_init): Likewise.
8671
8672 2017-04-13 Pedro Alves <palves@redhat.com>
8673
8674 * breakpoint.h (struct breakpoint): Reindent.
8675
8676 2017-04-13 Pedro Alves <palves@redhat.com>
8677
8678 * breakpoint.c (bp_location): Rename to ...
8679 (bp_locations): ... this. All references updated.
8680 (bp_location_count): Rename to ...
8681 (bp_locations_count): ... this. All references updated.
8682 (bp_location_placed_address_before_address_max): Rename to ...
8683 (bp_locations_placed_address_before_address_max): ... this. All
8684 references updated.
8685 (bp_location_shadow_len_after_address_max): Rename to ...
8686 (bp_locations_shadow_len_after_address_max): ... this. All
8687 references updated.
8688 (bp_location_compare_addrs): Rename to ...
8689 (bp_locations_compare_addrs): ... this. All references updated.
8690 (bp_location_compare):Rename to ...
8691 (bp_locations_compare): ... this. All references updated.
8692 (bp_location_target_extensions_update): Rename to ...
8693 (bp_locations_target_extensions_update): ... this. All references
8694 updated.
8695
8696 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
8697
8698 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
8699 * common/common.m4: Check headers 'termios.h', 'termio.h' and
8700 'sgtty.h'.
8701 * common/gdb_termios.h: New file, with parts of "terminal.h".
8702 * inflow.c: Include "gdb_termios.h".
8703 * ser-unix.c: Include "gdb_termios.h".
8704 * terminal.h: Move terminal-related defines to
8705 "common/gdb_termios.h".
8706
8707 2017-04-12 Tom Tromey <tom@tromey.com>
8708
8709 * probe.c (parse_probes): Update.
8710 * location.h (delete_event_location): Don't declare.
8711 (event_location_deleter::operator()): Update.
8712 * location.c (event_location_deleter::operator()): Rename from
8713 delete_event_location.
8714 * linespec.h (linespec_result) <location>: Change type to
8715 event_location_up.
8716 * linespec.c (canonicalize_linespec, event_location_to_sals)
8717 (decode_objc): Update.
8718 (linespec_result): Don't call delete_event_location.
8719 * breakpoint.c (create_breakpoints_sal)
8720 (bkpt_probe_create_sals_from_location)
8721 (strace_marker_create_sals_from_location): Update.
8722
8723 2017-04-12 Tom Tromey <tom@tromey.com>
8724
8725 * linespec.h (struct linespec_result): Add constructor and
8726 destructor.
8727 (init_linespec_result, destroy_linespec_result)
8728 (make_cleanup_destroy_linespec_result): Don't declare.
8729 * linespec.c (init_linespec_result): Remove.
8730 (linespec_result::~linespec_result): Rename from
8731 destroy_linespec_result. Update.
8732 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
8733 Remove.
8734 * breakpoint.c (create_breakpoint, break_range_command)
8735 (decode_location_default): Update.
8736 * ax-gdb.c (agent_command_1): Update.
8737
8738 2017-04-12 Tom Tromey <tom@tromey.com>
8739
8740 * remote.c (remote_download_tracepoint): Update.
8741 * python/py-breakpoint.c (bppy_get_location): Update.
8742 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
8743 (gdbscm_breakpoint_location): Update.
8744 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
8745 * breakpoint.h (struct breakpoint) <location, location_range_end>:
8746 Change type to event_location_up.
8747 * breakpoint.c (create_overlay_event_breakpoint)
8748 (create_longjmp_master_breakpoint)
8749 (create_std_terminate_master_breakpoint)
8750 (create_exception_master_breakpoint)
8751 (breakpoint_event_location_empty_p, print_breakpoint_location)
8752 (print_one_breakpoint_location, create_thread_event_breakpoint)
8753 (init_breakpoint_sal, create_breakpoint)
8754 (print_recreate_ranged_breakpoint, break_range_command)
8755 (init_ada_exception_breakpoint, say_where): Update.
8756 (base_breakpoint_dtor): Don't call delete_event_location.
8757 (bkpt_print_recreate, tracepoint_print_recreate)
8758 (dprintf_print_recreate, update_static_tracepoint)
8759 (breakpoint_re_set_default): Update.
8760
8761 2017-04-12 Tom Tromey <tom@tromey.com>
8762
8763 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
8764 type of "to_do". Update.
8765 (compute_stack_depth): Use std::vector.
8766
8767 2017-04-12 Tom Tromey <tom@tromey.com>
8768
8769 * printcmd.c (find_instruction_backward): Use std::vector.
8770
8771 2017-04-12 Tom Tromey <tom@tromey.com>
8772
8773 * symfile.c (objfilep): Remove typedef.
8774 (reread_symbols): Use a std::vector.
8775
8776 2017-04-12 Tom Tromey <tom@tromey.com>
8777
8778 * mi/mi-main.c (exec_direction_forward): Remove.
8779 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
8780 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
8781 scoped_restore.
8782 * guile/guile.c (guile_repl_command, guile_command)
8783 (gdbscm_execute_gdb_command): Use scoped_restore.
8784 * go-exp.y (go_parse): Use scoped_restore.
8785 * d-exp.y (d_parse): Use scoped_restore.
8786 * cli/cli-decode.c (cmd_func): Use scoped_restore.
8787 * c-exp.y (c_parse): Use scoped_restore.
8788
8789 2017-04-12 Tom Tromey <tom@tromey.com>
8790
8791 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
8792 (mi_parse): Update return type.
8793 (mi_parse_free): Remove.
8794 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
8795 (mi_parse::~mi_parse): Rename from mi_parse_free.
8796 (mi_parse_cleanup): Remove.
8797 (mi_parse): Return a unique_ptr. Use new.
8798 * mi/mi-main.c (mi_execute_command): Update.
8799
8800 2017-04-12 Tom Tromey <tom@tromey.com>
8801
8802 * location.c (explicit_location_lex_one): Return a
8803 unique_xmalloc_ptr.
8804 (string_to_explicit_location): Update. Remove cleanups.
8805
8806 2017-04-12 Tom Tromey <tom@tromey.com>
8807
8808 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
8809 (compare_value_and_voffset): Change type. Update.
8810 (compute_vtable_size): Change type of "offset_vec".
8811 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
8812 (gnuv3_get_typeid): Remove extraneous declaration.
8813
8814 2017-04-12 Tom Tromey <tom@tromey.com>
8815
8816 * charset.h (wchar_iterator): Fix comment.
8817
8818 2017-04-12 Tom Tromey <tom@tromey.com>
8819
8820 * charset.c (iconv_wrapper): New class.
8821 (cleanup_iconv): Remove.
8822 (convert_between_encodings): Use it.
8823
8824 2017-04-12 Tom Tromey <tom@tromey.com>
8825
8826 * symfile.h (increment_reading_symtab): Update type.
8827 * symfile.c (decrement_reading_symtab): Remove.
8828 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
8829 * psymtab.c (psymtab_to_symtab): Update.
8830 * dwarf2read.c (dw2_instantiate_symtab): Update.
8831
8832 2017-04-12 Tom Tromey <tom@tromey.com>
8833
8834 * jit.c (struct jit_reader): Declare separately. Add constructor
8835 and destructor. Change type of "handle".
8836 (loaded_jit_reader): Define separately.
8837 (jit_reader_load): Update. New "new".
8838 (jit_reader_unload_command): Use "delete".
8839 * gdb-dlfcn.h (struct dlclose_deleter): New.
8840 (gdb_dlhandle_up): New typedef.
8841 (gdb_dlopen, gdb_dlsym): Update types.
8842 (gdb_dlclose): Remove.
8843 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
8844 (gdb_dlsym): Change type of "handle".
8845 (make_cleanup_dlclose): Remove.
8846 (dlclose_deleter::operator()): Rename from gdb_dlclose.
8847 * compile/compile-c-support.c (load_libcc): Update.
8848
8849 2017-04-12 Tom Tromey <tom@tromey.com>
8850
8851 * symtab.h (find_pcs_for_symtab_line): Change return type.
8852 * symtab.c (find_pcs_for_symtab_line): Change return type.
8853 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
8854 type of "vec". Update.
8855 (ltpy_get_pcs_for_line): Update.
8856 * linespec.c (decode_digits_ordinary): Update.
8857
8858 2017-04-12 Tom Tromey <tom@tromey.com>
8859
8860 * tracepoint.c (actions_command): Update.
8861 * python/python.c (python_command, python_interactive_command):
8862 Update.
8863 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
8864 * guile/guile.c (guile_command): Update.
8865 * defs.h (read_command_lines, read_command_lines_1): Return
8866 command_line_up.
8867 (command_lines_deleter): New struct.
8868 (command_line_up): New typedef.
8869 * compile/compile.c (compile_code_command)
8870 (compile_print_command): Update.
8871 * cli/cli-script.h (get_command_line, copy_command_lines): Return
8872 command_line_up.
8873 (make_cleanup_free_command_lines): Remove.
8874 * cli/cli-script.c (get_command_line, read_command_lines_1)
8875 (copy_command_lines): Return command_line_up.
8876 (while_command, if_command, read_command_lines, define_command)
8877 (document_command): Update.
8878 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
8879 Remove.
8880 * breakpoint.h (breakpoint_set_commands): Change type of
8881 "commands".
8882 * breakpoint.c (breakpoint_set_commands): Change type of
8883 "commands". Update.
8884 (do_map_commands_command, update_dprintf_command_list)
8885 (create_tracepoint_from_upload): Update.
8886
8887 2017-04-12 Tom Tromey <tom@tromey.com>
8888
8889 * tracepoint.c (scope_info): Update.
8890 * spu-tdep.c (spu_catch_start): Update.
8891 * python/python.c (gdbpy_decode_line): Update.
8892 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
8893 * python/py-breakpoint.c (bppy_init): Update.
8894 * probe.c (parse_probes): Update.
8895 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
8896 * location.h (event_location_deleter): New struct.
8897 (event_location_up): New typedef.
8898 (new_linespec_location, new_address_location, new_probe_location)
8899 (new_explicit_location, copy_event_location)
8900 (string_to_event_location, string_to_event_location_basic)
8901 (string_to_explicit_location): Update return type.
8902 (make_cleanup_delete_event_location): Remove.
8903 * location.c (new_linespec_location, new_address_location)
8904 (new_probe_location, new_explicit_location, copy_event_location):
8905 Return event_location_up.
8906 (delete_event_location_cleanup)
8907 (make_cleanup_delete_event_location): Remove.
8908 (string_to_explicit_location, string_to_event_location_basic)
8909 (string_to_event_location): Return event_location_up.
8910 * linespec.c (canonicalize_linespec, event_location_to_sals)
8911 (decode_line_with_current_source)
8912 (decode_line_with_last_displayed, decode_objc): Update.
8913 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8914 * completer.c (location_completer): Update.
8915 * cli/cli-cmds.c (edit_command, list_command): Update.
8916 * breakpoint.c (create_overlay_event_breakpoint)
8917 (create_longjmp_master_breakpoint)
8918 (create_std_terminate_master_breakpoint)
8919 (create_exception_master_breakpoint)
8920 (create_thread_event_breakpoint): Update.
8921 (init_breakpoint_sal): Update. Remove some dead code.
8922 (create_breakpoint_sal): Change type of "location". Update.
8923 (create_breakpoints_sal, create_breakpoint, break_command_1)
8924 (dprintf_command, break_range_command, until_break_command)
8925 (init_ada_exception_breakpoint)
8926 (strace_marker_create_sals_from_location)
8927 (update_static_tracepoint, trace_command, ftrace_command)
8928 (strace_command, create_tracepoint_from_upload): Update.
8929 * break-catch-throw.c (re_set_exception_catchpoint): Update.
8930 * ax-gdb.c (agent_command_1): Update.
8931
8932 2017-04-12 Pedro Alves <palves@redhat.com>
8933
8934 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
8935 * configure.tgt: Handle i[34567]86-*-go32* and
8936 i[34567]86-*-msdosdjgpp*.
8937 * i386-tdep.c (i386_svr4_reg_to_regnum):
8938 Make extern.
8939 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
8940 i386-go32-tdep.c.
8941 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
8942 * i386-go32-tdep.c: New file.
8943 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
8944 declarations.
8945
8946 2017-04-12 Simon Marchi <simon.marchi@ericsson.com>
8947
8948 * aix-thread.c (pd_status2str): Change return type to const char *.
8949
8950 2017-04-12 Pedro Alves <palves@redhat.com>
8951
8952 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
8953 calls to set_gdbarch_gnu_triplet_regexp.
8954
8955 2017-04-12 Pedro Alves <palves@redhat.com>
8956
8957 PR gdb/21323
8958 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
8959 New enum value.
8960 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
8961 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
8962 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
8963 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
8964 * gdbarch.h, gdbarch.c: Regenerate.
8965 * aarch64-tdep.c (aarch64_gdbarch_init): Override
8966 gdbarch_wchar_bit and gdbarch_wchar_signed.
8967 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
8968 * arm-tdep.c (arm_gdbarch_init): Likewise.
8969 * avr-tdep.c (avr_gdbarch_init): Likewise.
8970 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
8971 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
8972 * i386-tdep.c (i386_go32_init_abi): Likewise.
8973 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8974 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8975 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
8976 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
8977 * sh-tdep.c (sh_gdbarch_init): Likewise.
8978 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8979 * sparc64-tdep.c (sparc64_init_abi): Likewise.
8980 * windows-tdep.c (windows_init_abi): Likewise.
8981 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
8982
8983 2017-04-12 Pedro Alves <palves@redhat.com>
8984
8985 PR c++/21323
8986 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
8987 cplus_primitive_type_char32_t>: New enum values.
8988 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
8989 and cplus_primitive_type_char32_t.
8990 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
8991 32, use the archtecture's built-in type for char16_t and char32_t,
8992 respectively. Otherwise, fallback to init_integer_type as before,
8993 but make the type unsigned, and issue a complaint.
8994 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
8995
8996 2017-04-12 Alan Hayward <alan.hayward@arm.com>
8997
8998 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
8999 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
9000
9001 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
9002
9003 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
9004 'const char *'.
9005
9006 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
9007
9008 * common/common-utils.c (free_vector_argv): New function.
9009 * common/common-utils.h: Include <vector>.
9010 (free_vector_argv): New prototype.
9011 * darwin-nat.c (darwin_create_inferior): Rewrite function
9012 prototype in order to constify "exec_file" and accept a
9013 "std::string" for "allargs".
9014 * fork-child.c: Include <vector>.
9015 (breakup_args): Rewrite function, using C++.
9016 (fork_inferior): Rewrite function header, constify "exec_file_arg"
9017 and accept "std::string" for "allargs". Update the code to
9018 calculate "argv" based on "allargs". Update calls to "exec_fun"
9019 and "execvp".
9020 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
9021 order to constify "exec_file" and accept a "std::string" for
9022 "allargs".
9023 * go32-nat.c (go32_create_inferior): Likewise.
9024 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
9025 * infcmd.c (run_command_1): Constify "exec_file". Use
9026 "std::string" for inferior arguments.
9027 * inferior.h (fork_inferior): Update prototype.
9028 * linux-nat.c (linux_nat_create_inferior): Rewrite function
9029 prototype in order to constify "exec_file" and accept a
9030 "std::string" for "allargs".
9031 * nto-procfs.c (procfs_create_inferior): Likewise.
9032 * procfs.c (procfs_create_inferior): Likewise.
9033 * remote-sim.c (gdbsim_create_inferior): Likewise.
9034 * remote.c (extended_remote_run): Update code to accept
9035 "std::string" as argument.
9036 (extended_remote_create_inferior): Rewrite function prototype in
9037 order to constify "exec_file" and accept a "std::string" for
9038 "allargs".
9039 * rs6000-nat.c (super_create_inferior): Likewise.
9040 (rs6000_create_inferior): Likewise.
9041 * target.h (struct target_ops) <to_create_inferior>: Likewise.
9042 * windows-nat.c (windows_create_inferior): Likewise.
9043
9044 2017-04-11 Pedro Alves <palves@redhat.com>
9045
9046 * thread.c: Fix whitespace throughout.
9047
9048 2017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
9049
9050 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
9051
9052 2017-04-11 Alan Hayward <alan.hayward@arm.com>
9053
9054 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
9055
9056 2017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
9057
9058 PR gdb/21364
9059 * osdata.c (info_osdata): Check if 'type' is an empty string
9060 instead of NULL.
9061
9062 2017-04-10 Pedro Alves <palves@redhat.com>
9063
9064 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
9065 (ptid_to_global_thread_id, in_thread_list)
9066 (do_captured_list_thread_ids, set_resumed, set_running)
9067 (set_executing, set_stop_requested, finish_thread_state)
9068 (validate_registers_access, can_access_registers_ptid)
9069 (print_thread_info_1, switch_to_thread)
9070 (do_restore_current_thread_cleanup)
9071 (make_cleanup_restore_current_thread, thread_command)
9072 (thread_name_command): Use operator== instead of ptid_equal.
9073
9074 2017-04-10 Pedro Alves <palves@redhat.com>
9075
9076 * thread.c (struct current_thread_cleanup) <next>: Delete field.
9077 (current_thread_cleanup_chain): Delete.
9078 (restore_current_thread_cleanup_dtor)
9079 (make_cleanup_restore_current_thread): Remove references to
9080 current_thread_cleanup_chain.
9081
9082 2017-04-10 Alan Hayward <alan.hayward@arm.com>
9083
9084 * msp430-tdep.c (msp430_pseudo_register_read): Never return
9085 REG_UNKNOWN.
9086
9087 2017-04-10 Yao Qi <yao.qi@linaro.org>
9088
9089 PR gdb/19942
9090 * gdbthread.h (thread_info::deletable): New method.
9091 (thread_info::incref): New method.
9092 (thread_info::decref): New method.
9093 (thread_info::refcount): Move it to private.
9094 * infrun.c (save_stop_context): Call inc_refcount.
9095 (release_stop_context_cleanup): Likewise.
9096 * thread.c (set_thread_exited): New function.
9097 (init_thread_list): Delete "tp" only it is deletable, otherwise
9098 call set_thread_exited.
9099 (delete_thread_1): Call set_thread_exited.
9100 (current_thread_cleanup) <inferior_pid>: Remove.
9101 <thread>: New field.
9102 (restore_current_thread_ptid_changed): Removed.
9103 (do_restore_current_thread_cleanup): Adjust.
9104 (restore_current_thread_cleanup_dtor): Don't call
9105 find_thread_ptid.
9106 (set_thread_refcount): Use dec_refcount.
9107 (make_cleanup_restore_current_thread): Adjust.
9108 (thread_apply_all_command): Call inc_refcount.
9109 (_initialize_thread): Don't call
9110 observer_attach_thread_ptid_changed.
9111
9112 2017-04-10 Yao Qi <yao.qi@linaro.org>
9113
9114 * thread.c (delete_thread_1): Hoist code on marking thread as
9115 exited.
9116
9117 2017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9118
9119 * windows-nat.c (windows_detach): Initialize ptid with
9120 minus_one_ptid.
9121
9122 2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
9123
9124 * unittests/ptid-selftests.c: Fix erroneous assert messages.
9125
9126 2017-04-07 Alan Hayward <alan.hayward@arm.com>
9127
9128 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
9129 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
9130 (bfin_pseudo_register_write): Likewise
9131
9132 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
9133
9134 * common/ptid.h (struct ptid): Change to...
9135 (class ptid_t): ... this.
9136 <ptid_t>: New constructors.
9137 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
9138 matches>: New methods.
9139 <make_null, make_minus_one>: New static methods.
9140 <pid>: Rename to...
9141 <m_pid>: ...this.
9142 <lwp>: Rename to...
9143 <m_lwp>: ...this.
9144 <tid>: Rename to...
9145 <m_tid>: ...this.
9146 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
9147 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
9148 as references, move comment to class ptid_t.
9149 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
9150 ptid_t static methods.
9151 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
9152 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
9153 Take ptid arguments as references, implement using ptid_t methods.
9154 * unittests/ptid-selftests.c: New file.
9155 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9156 unittests/ptid-selftests.c.
9157 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
9158
9159 2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
9160
9161 * python/python.c (python_run_simple_file): Cast mode literal to
9162 non-const char pointer as expected by PyFile_FromString.
9163
9164 2017-04-05 Simon Marchi <simon.marchi@ericsson.com>
9165
9166 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
9167 minus_one_ptid and null_ptid.
9168
9169 2017-04-05 Pedro Alves <palves@redhat.com>
9170
9171 * warning.m4 (build_warnings): Remove -Wno-write-strings.
9172 * configure: Regenerate.
9173
9174 2017-04-05 Pedro Alves <palves@redhat.com>
9175
9176 * ada-exp.y (yyerror): Constify.
9177 * ada-lang.c (bound_name, get_selections)
9178 (ada_variant_discrim_type)
9179 (ada_variant_discrim_name, ada_value_struct_elt)
9180 (ada_lookup_struct_elt_type, is_unchecked_variant)
9181 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
9182 (catch_ada_exception_command_split)
9183 (catch_ada_assert_command_split, catch_assert_command)
9184 (ada_op_name): Constify.
9185 * ada-lang.h (ada_yyerror, get_selections)
9186 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
9187 * arc-tdep.c (arc_print_frame_cache): Constify.
9188 * arm-tdep.c (arm_skip_stub): Constify.
9189 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
9190 (gen_aggregate_elt_ref): Constify.
9191 * bcache.c (print_bcache_statistics): Constify.
9192 * bcache.h (print_bcache_statistics): Constify.
9193 * break-catch-throw.c (catch_exception_command_1):
9194 * breakpoint.c (struct ep_type_description::description):
9195 Constify.
9196 (add_solib_catchpoint): Constify.
9197 (catch_fork_command_1): Add cast.
9198 (add_catch_command): Constify.
9199 * breakpoint.h (add_catch_command, add_solib_catchpoint):
9200 Constify.
9201 * bsd-uthread.c (bsd_uthread_state): Constify.
9202 * buildsym.c (patch_subfile_names): Constify.
9203 * buildsym.h (next_symbol_text_func, patch_subfile_names):
9204 Constify.
9205 * c-exp.y (yyerror): Constify.
9206 (token::oper): Constify.
9207 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
9208 * c-varobj.c (cplus_describe_child): Constify.
9209 * charset.c (find_charset_names): Add cast.
9210 (find_charset_names): Constify array and add const_cast.
9211 * cli/cli-cmds.c (complete_command, cd_command): Constify.
9212 (edit_command): Constify.
9213 * cli/cli-decode.c (lookup_cmd): Constify.
9214 * cli/cli-dump.c (dump_memory_command, dump_value_command):
9215 Constify.
9216 (struct dump_context): Constify.
9217 (add_dump_command, restore_command): Constify.
9218 * cli/cli-script.c (get_command_line): Constify.
9219 * cli/cli-script.h (get_command_line): Constify.
9220 * cli/cli-utils.c (check_for_argument): Constify.
9221 * cli/cli-utils.h (check_for_argument): Constify.
9222 * coff-pe-read.c (struct read_pe_section_data): Constify.
9223 * command.h (lookup_cmd): Constify.
9224 * common/print-utils.c (decimal2str): Constify.
9225 * completer.c (gdb_print_filename): Constify.
9226 * corefile.c (set_gnutarget): Constify.
9227 * cp-name-parser.y (yyerror): Constify.
9228 * cp-valprint.c (cp_print_class_member): Constify.
9229 * cris-tdep.c (cris_register_name, crisv32_register_name):
9230 Constify.
9231 * d-exp.y (yyerror): Constify.
9232 (struct token::oper): Constify.
9233 * d-lang.h (d_yyerror): Constify.
9234 * dbxread.c (struct header_file_location::name): Constify.
9235 (add_old_header_file, add_new_header_file, last_function_name)
9236 (dbx_next_symbol_text, add_bincl_to_list)
9237 (find_corresponding_bincl_psymtab, set_namestring)
9238 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
9239 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
9240 * defs.h (command_line_input, print_address_symbolic)
9241 (deprecated_readline_begin_hook): Constify.
9242 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
9243 Constify.
9244 * event-top.c (handle_line_of_input): Constify and add cast.
9245 * exceptions.c (catch_errors): Constify.
9246 * exceptions.h (catch_errors): Constify.
9247 * expprint.c (print_subexp_standard, op_string, op_name)
9248 (op_name_standard, dump_raw_expression, dump_raw_expression):
9249 * expression.h (op_name, op_string, dump_raw_expression):
9250 Constify.
9251 * f-exp.y (yyerror): Constify.
9252 (struct token::oper): Constify.
9253 (struct f77_boolean_val::name): Constify.
9254 * f-lang.c (f_word_break_characters): Constify.
9255 * f-lang.h (f_yyerror): Constify.
9256 * fork-child.c (fork_inferior): Add cast.
9257 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
9258 (new_variant): Constify.
9259 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
9260 * gdbarch.c: Regenerate.
9261 * gdbcore.h (set_gnutarget): Constify.
9262 * go-exp.y (yyerror): Constify.
9263 (token::oper): Constify.
9264 * go-lang.h (go_yyerror): Constify.
9265 * go32-nat.c (go32_sysinfo): Constify.
9266 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
9267 * guile/scm-cmd.c (cmdscm_function): Constify.
9268 * guile/scm-param.c (pascm_param_value): Constify.
9269 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
9270 (h8300sx_register_name): Constify.
9271 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
9272 Constify.
9273 * ia64-tdep.c (ia64_register_names): Constify.
9274 * infcmd.c (construct_inferior_arguments): Constify.
9275 (path_command, attach_post_wait): Constify.
9276 * language.c (show_range_command, show_case_command)
9277 (unk_lang_error): Constify.
9278 * language.h (language_defn::la_error)
9279 (language_defn::la_name_of_this): Constify.
9280 * linespec.c (decode_line_2): Constify.
9281 * linux-thread-db.c (thread_db_err_str): Constify.
9282 * lm32-tdep.c (lm32_register_name): Constify.
9283 * m2-exp.y (yyerror): Constify.
9284 * m2-lang.h (m2_yyerror): Constify.
9285 * m32r-tdep.c (m32r_register_names): Constify and make static.
9286 * m68hc11-tdep.c (m68hc11_register_names): Constify.
9287 * m88k-tdep.c (m88k_register_name): Constify.
9288 * macroexp.c (appendmem): Constify.
9289 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
9290 (upgrade_type, parse_external, parse_partial_symbols)
9291 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
9292 (new_symbol): Constify.
9293 * memattr.c (mem_info_command): Constify.
9294 * mep-tdep.c (register_name_from_keyword): Constify.
9295 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
9296 Constify.
9297 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
9298 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
9299 * mi/mi-main.c (captured_mi_execute_command): Constify and add
9300 cast.
9301 (mi_execute_async_cli_command): Constify.
9302 * mips-tdep.c (mips_register_name): Constify.
9303 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
9304 (am33_register_name, am33_2_register_name)
9305 * moxie-tdep.c (moxie_register_names): Constify.
9306 * nat/linux-osdata.c (osdata_type): Constify fields.
9307 * nto-tdep.c (nto_parse_redirection): Constify.
9308 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
9309 (lookup_child_selector): Constify.
9310 (objc_methcall::name): Constify.
9311 * objc-lang.h (lookup_objc_class, lookup_child_selector)
9312 (lookup_struct_typedef): Constify.
9313 * objfiles.c (pc_in_section): Constify.
9314 * objfiles.h (pc_in_section): Constify.
9315 * p-exp.y (struct token::oper): Constify.
9316 (yyerror): Constify.
9317 * p-lang.h (pascal_yyerror): Constify.
9318 * parser-defs.h (op_name_standard): Constify.
9319 (op_print::string): Constify.
9320 (exp_descriptor::op_name): Constify.
9321 * printcmd.c (print_address_symbolic): Constify.
9322 * psymtab.c (print_partial_symbols): Constify.
9323 * python/py-breakpoint.c (stop_func): Constify.
9324 (bppy_get_expression): Constify.
9325 * python/py-cmd.c (cmdpy_completer::name): Constify.
9326 (cmdpy_function): Constify.
9327 * python/py-event.c (evpy_add_attribute)
9328 (gdbpy_initialize_event_generic): Constify.
9329 * python/py-event.h (evpy_add_attribute)
9330 (gdbpy_initialize_event_generic): Constify.
9331 * python/py-evts.c (add_new_registry): Constify.
9332 * python/py-finishbreakpoint.c (outofscope_func): Constify.
9333 * python/py-framefilter.c (get_py_iter_from_func): Constify.
9334 * python/py-inferior.c (get_buffer): Add cast.
9335 * python/py-param.c (parm_constant::name): Constify.
9336 * python/py-unwind.c (fprint_frame_id): Constify.
9337 * python/python.c (gdbpy_parameter_value): Constify.
9338 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
9339 * remote.c (memory_packet_config::name): Constify.
9340 (show_packet_config_cmd, remote_write_bytes)
9341 (remote_buffer_add_string):
9342 * reverse.c (exec_reverse_once): Constify.
9343 * rs6000-tdep.c (variant::name, variant::description): Constify.
9344 * rust-exp.y (rustyyerror): Constify.
9345 * rust-lang.c (rust_op_name): Constify.
9346 * rust-lang.h (rustyyerror): Constify.
9347 * serial.h (serial_ops::name): Constify.
9348 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
9349 (sh_sh3e_register_name, sh_sh2e_register_name)
9350 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
9351 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
9352 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
9353 (sh_sh4al_dsp_register_name): Constify.
9354 * sh64-tdep.c (sh64_register_name): Constify.
9355 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
9356 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
9357 * stabsread.c (patch_block_stabs, read_type_number)
9358 (ref_map::stabs, ref_add, process_reference)
9359 (symbol_reference_defined, define_symbol, define_symbol)
9360 (error_type, read_type, read_member_functions, read_cpp_abbrev)
9361 (read_one_struct_field, read_struct_fields, read_baseclasses)
9362 (read_tilde_fields, read_struct_type, read_array_type)
9363 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
9364 (read_huge_number, read_range_type, read_args, common_block_start)
9365 (find_name_end): Constify.
9366 * stabsread.h (common_block_start, define_symbol)
9367 (process_one_symbol, symbol_reference_defined, ref_add):
9368 * symfile.c (get_section_index, add_symbol_file_command):
9369 * symfile.h (get_section_index): Constify.
9370 * target-descriptions.c (tdesc_type::name): Constify.
9371 (tdesc_free_type): Add cast.
9372 * target.c (find_default_run_target):
9373 (add_deprecated_target_alias, find_default_run_target)
9374 (target_announce_detach): Constify.
9375 (do_option): Constify.
9376 * target.h (add_deprecated_target_alias): Constify.
9377 * thread.c (print_thread_info_1): Constify.
9378 * top.c (deprecated_readline_begin_hook, command_line_input):
9379 Constify.
9380 (init_main): Add casts.
9381 * top.h (handle_line_of_input): Constify.
9382 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
9383 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
9384 (tfind_command): Rename to ...
9385 (tfind_command_1): ... this and constify.
9386 (tfind_command): New function.
9387 (tfind_end_command, tfind_start_command): Adjust.
9388 (encode_source_string): Constify.
9389 * tracepoint.h (encode_source_string): Constify.
9390 * tui/tui-data.c (tui_partial_win_by_name): Constify.
9391 * tui/tui-data.h (tui_partial_win_by_name): Constify.
9392 * tui/tui-source.c (tui_set_source_content_nil): Constify.
9393 * tui/tui-source.h (tui_set_source_content_nil): Constify.
9394 * tui/tui-win.c (parse_scrolling_args): Constify.
9395 * tui/tui-windata.c (tui_erase_data_content): Constify.
9396 * tui/tui-windata.h (tui_erase_data_content): Constify.
9397 * tui/tui-winsource.c (tui_erase_source_content): Constify.
9398 * tui/tui.c (tui_enable): Add cast.
9399 * utils.c (defaulted_query): Constify.
9400 (init_page_info): Add cast.
9401 (puts_debug, subset_compare): Constify.
9402 * utils.h (subset_compare): Constify.
9403 * varobj.c (varobj_format_string): Constify.
9404 * varobj.h (varobj_format_string): Constify.
9405 * vax-tdep.c (vax_register_name): Constify.
9406 * windows-nat.c (windows_detach): Constify.
9407 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
9408 * xml-support.c (gdb_xml_end_element): Constify.
9409 * xml-tdesc.c (tdesc_start_reg): Constify.
9410 * xstormy16-tdep.c (xstormy16_register_name): Constify.
9411 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
9412 * xtensa-tdep.h (xtensa_register_t::name): Constify.
9413
9414 2017-04-05 Pedro Alves <palves@redhat.com>
9415
9416 * proc-api.c (struct trans): Constify.
9417 (procfs_note): Constify.
9418 * proc-events.c (struct trans, syscall_table):
9419 * proc-flags.c (struct trans): Constify.
9420 * proc-utils.h (procfs_note): Constify.
9421 * proc-why.c (struct trans): Constify.
9422 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
9423 (procfs_detach): Constify.
9424 * sol-thread.c (struct string_map): Constify.
9425 (td_err_string, td_state_string): Constify.
9426
9427 2017-04-05 Pedro Alves <palves@redhat.com>
9428
9429 * proc-api.c (procfs_filename): Don't initialize
9430 procfs_filename.
9431 (prepare_to_trace): Assume procfs_filename is non-NULL.
9432 (_initialize_proc_api): Give procfs_filename a default value here.
9433
9434 2017-04-05 Pedro Alves <palves@redhat.com>
9435
9436 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
9437 'cond_string' parameter.
9438 (extract_exception_regexp): Constify 'string' parameter.
9439 (catch_exception_command_1): Constify.
9440 * breakpoint.c (init_catchpoint)
9441 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
9442 parameter.
9443 (ep_parse_optional_if_clause, catch_fork_command_1)
9444 (catch_exec_command_1): Constify.
9445 * breakpoint.h (init_catchpoint): Constify 'cond_string'
9446 parameter.
9447 (ep_parse_optional_if_clause): Constify.
9448 * cli/cli-utils.c (remove_trailing_whitespace)
9449 (check_for_argument): Constify.
9450 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
9451 non-const overload.
9452 (check_for_argument): Likewise.
9453
9454 2017-04-05 Pedro Alves <palves@redhat.com>
9455
9456 * event-top.c (command_line_handler): Add cast to execute_command
9457 call.
9458 * record-btrace.c (cmd_record_btrace_bts_start)
9459 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
9460 (cmd_record_btrace_start): Add cast to execute_command call.
9461 * record-full.c (record_full_goto_insn):
9462 * record.c (record_start, record_stop): Add cast to
9463 execute_command_to_string calls.
9464 (cmd_record_start): Add cast to execute_command calls.
9465
9466 2017-04-05 Pedro Alves <palves@redhat.com>
9467
9468 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
9469 static inline function.
9470 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
9471 array and use gdb_PyArg_ParseTupleAndKeywords.
9472 * python/py-cmd.c (cmdpy_init): Likewise.
9473 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
9474 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
9475 (infpy_search_memory): Likewise.
9476 * python/py-objfile.c (objfpy_add_separate_debug_file)
9477 (gdbpy_lookup_objfile): Likewise.
9478 * python/py-symbol.c (gdbpy_lookup_symbol)
9479 (gdbpy_lookup_global_symbol): Likewise.
9480 * python/py-type.c (gdbpy_lookup_type): Likewise.
9481 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
9482 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
9483 Likewise.
9484
9485 2017-04-05 Pedro Alves <palves@redhat.com>
9486
9487 * python/python-internal.h (gdb_PyGetSetDef): New type.
9488 * python/py-block.c (block_object_getset)
9489 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
9490 * python/py-event.c (event_object_getset)
9491 (finish_breakpoint_object_getset): Likewise.
9492 * python/py-inferior.c (inferior_object_getset): Likewise.
9493 * python/py-infthread.c (thread_object_getset): Likewise.
9494 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
9495 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
9496 * python/py-objfile.c (objfile_getset): Likewise.
9497 * python/py-progspace.c (pspace_getset): Likewise.
9498 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
9499 Likewise.
9500 * python/py-record.c (recpy_record_getset): Likewise.
9501 * python/py-symbol.c (symbol_object_getset): Likewise.
9502 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
9503 Likewise.
9504 * python/py-type.c (type_object_getset, field_object_getset):
9505 Likewise.
9506 * python/py-value.c (value_object_getset): Likewise.
9507
9508 2017-04-05 Pedro Alves <palves@redhat.com>
9509
9510 * python/python-internal.h (gdb_PyObject_CallMethod)
9511 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
9512 New functions.
9513 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
9514 (PySys_GetObject, PySys_SetPath): New macros.
9515
9516 2017-04-05 Pedro Alves <palves@redhat.com>
9517
9518 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
9519 info_osdata_command.
9520 * osdata.c (info_osdata_command): Rename to ...
9521 (info_osdata): ... this. Constify 'type' parameter, and remove
9522 the 'from_tty' parameter. Accept NULL TYPE.
9523 (info_osdata_command): New function.
9524 * osdata.h (info_osdata_command): Remove declaration.
9525 (info_osdata): New declaration.
9526
9527 2017-04-05 Pedro Alves <palves@redhat.com>
9528
9529 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
9530 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
9531 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
9532 parameter.
9533 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
9534 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
9535 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
9536 parameter.
9537 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
9538 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
9539 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
9540 (mi_cmd_file_list_exec_source_files)
9541 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
9542 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
9543 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
9544 parameter.
9545 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
9546 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
9547 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9548 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
9549 (mi_cmd_stack_info_frame): Constify 'command' parameter.
9550 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
9551 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
9552 'command' parameter.
9553 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
9554 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
9555 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
9556 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
9557 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
9558 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
9559 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
9560 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
9561 (mi_cmd_var_set_update_range): Constify 'command' parameter.
9562 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
9563 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
9564 parameter.
9565 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
9566 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
9567 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
9568 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
9569 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
9570 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
9571 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
9572 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
9573 (mi_cmd_data_list_changed_registers)
9574 (mi_cmd_data_write_register_values)
9575 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
9576 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
9577 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
9578 (mi_cmd_list_features, mi_cmd_list_target_features)
9579 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
9580 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
9581 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
9582 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
9583 (mi_cmd_trace_frame_collected): Constify 'command'
9584 parameter.
9585 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
9586 'command' parameter.
9587
9588 2017-04-05 Pedro Alves <palves@redhat.com>
9589
9590 * ada-lang.c (ada_completer_word_break_characters): Now a const
9591 array.
9592 (ada_get_gdb_completer_word_break_characters): Constify.
9593 * completer.c (gdb_completer_command_word_break_characters)
9594 (gdb_completer_file_name_break_characters)
9595 (gdb_completer_quote_characters): Now const arrays.
9596 (get_gdb_completer_quote_characters): Constify.
9597 (set_rl_completer_word_break_characters): New function.
9598 (set_gdb_completion_word_break_characters)
9599 (complete_line_internal): Use it.
9600 * completer.h (get_gdb_completer_quote_characters): Constify.
9601 (set_rl_completer_word_break_characters): Declare.
9602 * f-lang.c (f_word_break_characters): Constify.
9603 * language.c (default_word_break_characters): Constify.
9604 * language.h (language_defn::la_word_break_characters): Constify.
9605 (default_word_break_characters): Constify.
9606 * top.c (init_main): Use set_rl_completer_word_break_characters.
9607
9608 2017-04-05 Pedro Alves <palves@redhat.com>
9609
9610 * aix-thread.c (aix_thread_pid_to_str)
9611 (aix_thread_extra_thread_info): Constify.
9612 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
9613 * bsd-uthread.c (bsd_uthread_extra_thread_info)
9614 (bsd_uthread_pid_to_str): Constify.
9615 * corelow.c (core_pid_to_str): Constify.
9616 * darwin-nat.c (darwin_pid_to_str): Constify.
9617 * fbsd-nat.c (fbsd_pid_to_str): Constify.
9618 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
9619 Constify.
9620 * gnu-nat.c (gnu_pid_to_str): Constify.
9621 * go32-nat.c (go32_pid_to_str): Constify.
9622 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
9623 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
9624 * inferior.c (inferior_pid_to_str): Constify.
9625 * linux-nat.c (linux_nat_pid_to_str): Constify.
9626 * linux-tdep.c (linux_core_pid_to_str): Constify.
9627 * linux-thread-db.c (thread_db_pid_to_str)
9628 (thread_db_extra_thread_info): Constify.
9629 * nto-tdep.c (nto_extra_thread_info): Constify.
9630 * nto-tdep.h (nto_extra_thread_info): Constify.
9631 * obsd-nat.c (obsd_pid_to_str): Constify.
9632 * procfs.c (procfs_pid_to_str): Constify.
9633 * ravenscar-thread.c (ravenscar_extra_thread_info)
9634 (ravenscar_pid_to_str): Constify.
9635 * remote-sim.c (gdbsim_pid_to_str): Constify.
9636 * remote.c (remote_threads_extra_info, remote_pid_to_str):
9637 Constify.
9638 * sol-thread.c (solaris_pid_to_str): Constify.
9639 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
9640 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
9641 * target.c (default_pid_to_str, target_pid_to_str)
9642 (normal_pid_to_str, default_pid_to_str): Constify.
9643 * target.h (target_ops::to_pid_to_str)
9644 (target_ops::to_extra_thread_info): Constify.
9645 (target_pid_to_str, normal_pid_to_str): Constify.
9646 * windows-nat.c (windows_pid_to_str): Constify.
9647 * gdbarch.sh (core_pid_to_str): Constify.
9648 * target-delegates.c: Regenerate.
9649 * gdbarch.h, gdbarch.c: Regenerate.
9650
9651 2017-04-05 Pedro Alves <palves@redhat.com>
9652
9653 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
9654 the memory of the temporary warning_pre_print override.
9655 * utils.c (warning_pre_print): Constify.
9656 * utils.h (warning_pre_print): Constify.
9657
9658 2017-04-05 Pedro Alves <palves@redhat.com>
9659
9660 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
9661 (shell_command): New function.
9662 (make_command): Use std::string.
9663 (init_cli_cmds): Register shell_command instead of shell_escape.
9664
9665 2017-04-05 Pedro Alves <palves@redhat.com>
9666
9667 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
9668 * tracepoint.c (default_collect): Don't initialize.
9669
9670 2017-04-05 Pedro Alves <palves@redhat.com>
9671
9672 * macroexp.c (macro_buffer::shared): Now a bool.
9673 (init_buffer): Update.
9674 (init_shared_buffer): Constify 'addr' parameter.
9675 (substitute_args, expand, macro_expand, macro_expand_next): Remove
9676 casts.
9677
9678 2017-04-05 Pedro Alves <palves@redhat.com>
9679
9680 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
9681 * disasm.c (set_disassembler_options): Constify local.
9682 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
9683
9684 2017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
9685
9686 PR gdb/21352
9687 * tracefile.c (tsave_command): Fix argument parsing for '-r'
9688 option.
9689
9690 2017-04-05 Yao Qi <yao.qi@linaro.org>
9691
9692 * frame.c (frame_unwind_register_unsigned): Call
9693 frame_unwind_register_value.
9694
9695 2017-04-05 Yao Qi <yao.qi@linaro.org>
9696
9697 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
9698 Use gdb_test_multiple, and don't match anchor.
9699
9700 2017-04-05 Pedro Alves <palves@redhat.com>
9701
9702 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
9703 (Write After Approval): Remove Simon Marchi.
9704
9705 2017-04-05 Pedro Alves <palves@redhat.com>
9706
9707 * common/gdb_optional.h (optional::optional): Make constexpr and
9708 initialize m_dummy.
9709
9710 2017-04-04 John Baldwin <jhb@FreeBSD.org>
9711
9712 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
9713 (amd64fbsd_jmp_buf_reg_offset): Remove.
9714 (amd64fbsd_supply_uthread): Remove function.
9715 (amd64fbsd_collect_uthread): Remove function.
9716 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
9717 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
9718 (x86_64-*-freebsd*): Remove bsd-uthread.o.
9719 (fbsd-nat.c): Update comment.
9720 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
9721 (i386fbsd_jmp_buf_reg_offset): Remove.
9722 (i386fbsd_supply_uthread): Remove function.
9723 (i386fbsd_collect_uthread): Remove function.
9724 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
9725
9726 2017-04-04 John Baldwin <jhb@FreeBSD.org>
9727
9728 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
9729 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
9730 * NEWS: Mention that support for FreeBSD/alpha was removed.
9731 * alpha-fbsd-tdep.c: Delete file.
9732 * config/alpha/fbsd.mh: Delete file.
9733 * configure.host: Delete alpha*-*-freebsd* and
9734 alpha*-*-kfreebsd*-gnu.
9735 * configure.tgt: Delete alpha*-*-freebsd* and
9736 alpha*-*-kfreebsd*-gnu.
9737
9738 2017-04-04 John Baldwin <jhb@FreeBSD.org>
9739
9740 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
9741 amd64bsd_store_inferior_registers): Use ptid from regcache.
9742
9743 2017-04-04 Pedro Alves <palves@redhat.com>
9744
9745 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
9746 data fields, make them private and add "m_" prefixes.
9747 (lnp_state_machine::lnp_state_machine): New ctor.
9748 (record_line, check_line_address, handle_set_discriminator)
9749 (handle_set_address, handle_advance_pc, handle_special_opcode)
9750 (handle_advance_line, handle_set_file, handle_negate_stmt)
9751 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
9752 (end_sequence, advance_line): New methods.
9753 (m_gdbarch, m_record_lines_p): New fields.
9754 (lnp_reader_state): Delete.
9755 (dwarf_record_line): Rename to ...
9756 (lnp_state_machine::record_line): ... adjust.
9757 (init_lnp_state_machine): Delete.
9758 (lnp_state_machine::lnp_state_machine): New.
9759 (check_line_address): Rename to ...
9760 (lnp_state_machine::check_line_address): This.
9761 (dwarf_decode_lines_1): Remove reference to "reader_state".
9762 Adjust lnp_state_machine having a non-default ctor. Use bool.
9763 State machine internal state manipulation moved to
9764 lnp_state_machine methods.
9765
9766 2017-04-04 Pedro Alves <palves@redhat.com>
9767
9768 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9769 unittests/offset-type-selftests.c.
9770 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
9771 * common/offset-type.h: New file.
9772 * common/preprocessor.h: New file.
9773 * common/traits.h: New file.
9774 * common/valid-expr.h: New file.
9775 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
9776 sect_offset and cu_offset strong typedefs throughout.
9777 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
9778 typedefs throughout.
9779 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
9780 sect_offset and cu_offset strong typedefs throughout.
9781 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
9782 typedefs throughout.
9783 * gdbtypes.h: Include "common/offset-type.h".
9784 (cu_offset): Now an offset type (strong typedef) instead of a
9785 struct.
9786 (sect_offset): Likewise.
9787 (union call_site_parameter_u): Rename "param_offset" field to
9788 "param_cu_off".
9789 * unittests/offset-type-selftests.c: New file.
9790
9791 2017-04-04 Pedro Alves <palves@redhat.com>
9792
9793 * common/underlying.h: New file.
9794 * dwarf2read.c: Include "common/gdb_optional.h" and
9795 "common/underlying.h".
9796 (dir_index, file_name_index): New types.
9797 (file_entry): Use them.
9798 (file_entry::include): Use to_underlying.
9799 (line_header::add_file_name): Use dir_index.
9800 (read_formatted_entries): Use gdb::optional. Read form before
9801 writting to file_entry.
9802 (dwarf_decode_line_header): Use dir_index.
9803 (lnp_state_machine::current_file): Use to_underlying.
9804 (lnp_state_machine::file): Change type to file_name_index.
9805 (dwarf_record_line): Use to_underlying.
9806 (init_lnp_state_machine): Use file_name_index.
9807 (dwarf_decode_lines_1): Use dir_index and file_name_index.
9808
9809 2017-04-04 Pedro Alves <palves@redhat.com>
9810
9811 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
9812 operator bool, has_value and get methods.
9813
9814 2017-04-04 Pedro Alves <palves@redhat.com>
9815
9816 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
9817 fields.
9818 (line_header): Initialize all data fields. Change type of
9819 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
9820 Change type of include_dirs to std::vector<const char *>. Remove
9821 num_include_dirs, include_dirs_size. Change type of file_names to
9822 std::vector<file_entry>. Remove num_file_names, file_names_size.
9823 (line_header::line_header): New.
9824 (line_header::add_include_dir, line_header::add_file_name): New
9825 methods.
9826 (line_header::include_dir_at): Remove NULL check.
9827 (line_header::file_name_at): Add const overload.
9828 (line_header_up): New unique_ptr typedef.
9829 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
9830 std::vector. Remove free_line_header call.
9831 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
9832 free_line_header call.
9833 (free_cu_line_header): Delete.
9834 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
9835 (setup_type_unit_groups): Use line_header_up instead of cleanups.
9836 Adjust to use std::vector.
9837 (free_line_header): Delete.
9838 (free_line_header_voidp): Use delete.
9839 (add_include_dir): Replace with ...
9840 (line_header::add_include_dir): ... this method. Use std::vector.
9841 (add_file_name): Replace with ...
9842 (line_header::add_file_name): ... this method. Use std::vector.
9843 (add_include_dir_stub): Delete.
9844 (read_formatted_entries): Remove memset.
9845 (dwarf_decode_line_header): Return a line_header_up instead of a
9846 raw pointer. Remove cleanup handling. Pass lambdas to
9847 read_formatted_entries. Adjust to use line_header methods.
9848 (dwarf_decode_lines_1): Adjust to use line_header methods.
9849 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
9850 use std::vector.
9851
9852 2017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
9853
9854 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
9855 instead of struct ptid.
9856
9857 2017-05-04 Alan Hayward <alan.hayward@arm.com>
9858
9859 * frame.c (get_frame_register_bytes): Unwind using value.
9860 (put_frame_register_bytes): Likewise.
9861
9862 2017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
9863
9864 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
9865 aggregate-like.
9866
9867 2017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9868
9869 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
9870
9871 2017-03-29 Yao Qi <yao.qi@linaro.org>
9872
9873 * gdbthread.h (struct thread_info): Declare constructor and
9874 destructor. Add some in-class member initializers.
9875 * thread.c (free_thread): Remove.
9876 (init_thread_list): Call delete instead of free_thread.
9877 (new_thread): Call thread_info constructor.
9878 (thread_info::thread_info): New function.
9879 (thread_info::~thread_info): New function.
9880 (delete_thread_1): Call delete instead of free_thread.
9881 (make_cleanup_restore_current_thread): Move tp and frame to
9882 inner block.
9883
9884 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9885
9886 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
9887 (arc_skip_prologue): Likewise.
9888 (arc_make_frame_cache): Likewise.
9889 (arc_pv_get_operand): New function.
9890 (arc_is_in_prologue): Likewise.
9891 (arc_analyze_prologue): Likewise.
9892 (arc_print_frame_cache): Likewise.
9893 (MAX_PROLOGUE_LENGTH): New constant.
9894
9895 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9896
9897 * configure.tgt: Add arc-insn.o.
9898 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
9899 (dump_arc_instruction_command): New function.
9900 (arc_fprintf_disasm): Likewise.
9901 (arc_disassemble_info): Likewise.
9902 (arc_insn_get_operand_value): Likewise.
9903 (arc_insn_get_operand_value_signed): Likewise.
9904 (arc_insn_get_memory_base_reg): Likewise.
9905 (arc_insn_get_memory_offset): Likewise.
9906 (arc_insn_get_branch_target): Likewise.
9907 (arc_insn_dump): Likewise.
9908 (arc_insn_get_linear_next_pc): Likewise.
9909 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
9910 (arc_disassemble_info): Likewise.
9911 (arc_insn_get_branch_target): Likewise.
9912 (arc_insn_get_linear_next_pc): Likewise.
9913 * NEWS: Mention new "maint print arc arc-instruction".
9914
9915 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9916
9917 * arc-tdep (maintenance_print_arc_list): New variable.
9918 (maintenance_print_arc_command): New function.
9919
9920 2017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9921
9922 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
9923 Add "limm" and "reserved".
9924 (arc_cannot_fetch_register, arc_cannot_store_register): Add
9925 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
9926 * arc-tdep.h (arc_regnum): Likewise.
9927
9928 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9929
9930 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
9931 for THREADPTR register.
9932 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
9933 register.
9934 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
9935 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
9936 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
9937
9938 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9939
9940 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
9941 registers above gdbarch_num_regs (gdbarch) as privileged in
9942 call0 ABI.
9943
9944 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9945
9946 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
9947 for a single specified register or for all registers in
9948 a0_base..a0_base + C0_NREGS range.
9949 (supply_gregset_reg): Call regcache_raw_supply for a single
9950 specified register or for all registers in a0_base..a0_base +
9951 C0_NREGS range.
9952
9953 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9954
9955 * arch/xtensa.h (C0_NREGS): Add definition.
9956 * xtensa-tdep.c (C0_NREGS): Remove definition.
9957
9958 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9959
9960 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
9961 Drop xtensa_default_isa initialization.
9962 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
9963
9964 2017-03-27 Pedro Alves <palves@redhat.com>
9965
9966 * dwarf2read.c (file_entry) <dir_index>: Add comment.
9967 (file_entry::include_dir): New method.
9968 (line_header::include_dir_at, line_header::file_name_at): New
9969 methods.
9970 (setup_type_unit_groups, setup_type_unit_groups)
9971 (psymtab_include_file_name): Simplify using the new methods.
9972 (lnp_state_machine) <the_line_header>: New field.
9973 <file>: Add comment.
9974 (lnp_state_machine::current_file): New method.
9975 (dwarf_record_line): Simplify using the new methods.
9976 (init_lnp_state_machine): Initialize the "the_line_header" field.
9977 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
9978 Simplify using the new methods.
9979
9980 2017-03-27 Pedro Alves <palves@redhat.com>
9981
9982 * cp-name-parser.y (make_empty): Delete.
9983 (demangler_special, nested_name, ptr_operator, array_indicator)
9984 (direct_declarator, declarator_1): Use fill_comp instead of
9985 make_empty.
9986
9987 2017-03-27 Pedro Alves <palves@redhat.com>
9988
9989 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
9990 to ATTRIBUTE_PRINTF.
9991 * solib-target.c (library_list_start_list): Print "string" not
9992 "version".
9993 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
9994 gdb_xml_error call.
9995
9996 2017-03-27 Pedro Alves <palves@redhat.com>
9997
9998 * dwarf2read.c (struct file_and_directory): New.
9999 (dwarf2_get_dwz_file): Adjust to use std::string.
10000 (dw2_get_file_names_reader): Adjust to use file_and_directory.
10001 (find_file_and_directory): Adjust to return a file_and_directory
10002 object.
10003 (read_file_scope): Adjust to use file_and_directory. Remove
10004 make_cleanup/do_cleanups calls.
10005 (open_and_init_dwp_file): Adjust to use std::string. Remove
10006 make_cleanup/do_cleanups calls.
10007 * python/python.c (do_start_initialization): Adjust to ldirname
10008 returning a std::string.
10009 * utils.c (ldirname): Now returns a std::string.
10010 * utils.h (ldirname): Change return type to std::string.
10011 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
10012 returning a std::string.
10013 * xml-tdesc.c (file_read_description_xml): Likewise.
10014
10015 2017-03-24 Alan Hayward <alan.hayward@arm.com>
10016
10017 * regcache.c (regcache_debug_print_register): New function.
10018 * regcache.h (regcache_debug_print_register): New declaration.
10019 * target.c (debug_print_register): Remove.
10020 (target_fetch_registers): Call regcache_debug_print_register.
10021 (target_store_registers): Likewise.
10022
10023 2017-03-24 Pádraig Brady <pbrady@fb.com>
10024
10025 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
10026 reference beyond the 'lh->include_dirs' array before accessing to
10027 it.
10028 (psymtab_include_file_name): Likewise.
10029 (dwarf_decode_lines_1): Likewise.
10030 (dwarf_decode_lines): Likewise.
10031 (file_file_name): Likewise.
10032
10033 2017-03-23 Simon Marchi <simon.marchi@ericsson.com>
10034
10035 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
10036 inferior_ptid.
10037 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
10038 ps_lsetfpregs): Likewise.
10039 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
10040 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
10041 ps_lsetfpregs): Likewise.
10042 * target.c (target_fetch_registers, target_store_registers):
10043 Remove asserts.
10044
10045 2017-03-23 Alan Hayward <alan.hayward@arm.com>
10046
10047 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
10048
10049 2017-03-23 Yao Qi <yao.qi@linaro.org>
10050
10051 * aarch64-tdep.c (aarch64_process_record_test): Declare.
10052 (_initialize_aarch64_tdep): Register it.
10053 (aarch64_record_load_store): Handle PRFM instruction.
10054 (aarch64_process_record_test): New function.
10055
10056 2017-03-23 Yao Qi <yao.qi@linaro.org>
10057
10058 * aarch64-tdep.c (aarch64_record_load_store): Fix code
10059 indentation.
10060
10061 2017-03-23 Yao Qi <yao.qi@linaro.org>
10062
10063 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
10064
10065 2017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10066
10067 python/python.c (do_start_initialization): Fix memory leak.
10068
10069 2017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10070
10071 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
10072 using get_ptrace_pid.
10073 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
10074 inferior_ptid.
10075 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
10076 inferior_ptid instead of pid.
10077
10078 2017-03-22 Yao Qi <yao.qi@linaro.org>
10079
10080 * aarch64-tdep.c: Wrap locally used classes in anonymous
10081 namespace.
10082 * arm-tdep.c: Likewise.
10083 * linespec.c: Likewise.
10084 * ui-out.c: Likewise.
10085
10086 2017-03-22 Jonah Graham <jonah@kichwacoders.com>
10087
10088 PR gdb/19637
10089 * python/lib/gdb/printer/bound_registers.py: Import sys.
10090
10091 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
10092
10093 * windows-nat.c (do_windows_fetch_inferior_registers): Add
10094 windows_thread_info parameter and use it instead of
10095 current_thread.
10096 (windows_fetch_inferior_registers): Don't set current_thread,
10097 pass the thread to do_windows_fetch_inferior_registers. Use
10098 ptid from regcache instead of inferior_ptid.
10099 (do_windows_store_inferior_registers): Add windows_thread_info
10100 parameter and use it instead of current_thread.
10101 (windows_store_inferior_registers): Don't set current_thread,
10102 pass the thread to do_windows_store_inferior_registers. Use
10103 ptid from regcache instead of inferior_ptid.
10104
10105 2017-03-21 Simon Marchi <simon.marchi@ericsson.com>
10106
10107 * ser-mingw.c (ser_windows_raw): Remove reference to
10108 struct serial::current_timeout.
10109
10110 2017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
10111
10112 PR tdep/20928
10113 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
10114 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
10115 (sparc64_fsr_type): Fix %fsr decoding.
10116
10117 2017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
10118
10119 * python/py-record-btrace.c (btpy_insn_data): Change return type
10120 for Python 2.
10121
10122 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
10123
10124 * spu-linux-nat.c (spu_fetch_inferior_registers,
10125 spu_store_inferior_registers): Use ptid from regcache, set and
10126 restore inferior_ptid.
10127 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
10128 Likewise.
10129
10130 2017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
10131
10132 * i386-linux-nat.c (fetch_register, store_register,
10133 i386_linux_fetch_inferior_registers,
10134 i386_linux_store_inferior_registers): Use ptid from regcache.
10135 * ia64-linux-nat.c (ia64_linux_fetch_register,
10136 ia64_linux_store_register): Likewise.
10137 * inf-ptrace.c (inf_ptrace_fetch_register,
10138 inf_ptrace_store_register): Likewise.
10139 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
10140 m32r_linux_store_inferior_registers): Likewise.
10141 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
10142 m68kbsd_store_inferior_registers): Likewise.
10143 * m68k-linux-nat.c (fetch_register, store_register,
10144 m68k_linux_fetch_inferior_registers,
10145 m68k_linux_store_inferior_registers): Likewise.
10146 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
10147 m88kbsd_store_inferior_registers): Likewise.
10148 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
10149 mips_fbsd_store_inferior_registers): Likewise.
10150 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
10151 mips64_linux_regsets_store_registers): Likewise.
10152 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
10153 mipsnbsd_store_inferior_registers): Likewise.
10154 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
10155 mips64obsd_store_inferior_registers): Likewise.
10156 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
10157 Likewise.
10158 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
10159 ppcfbsd_store_inferior_registers): Likewise.
10160 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
10161 ppc_linux_store_inferior_registers): Likewise.
10162 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
10163 ppcnbsd_store_inferior_registers): Likewise.
10164 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
10165 ppcobsd_store_registers): Likewise.
10166 * procfs.c (procfs_fetch_registers, procfs_store_registers):
10167 Likewise.
10168 * ravenscar-thread.c (ravenscar_fetch_registers,
10169 ravenscar_store_registers, ravenscar_prepare_to_store):
10170 Likewise.
10171 * record-btrace.c (record_btrace_fetch_registers,
10172 record_btrace_store_registers, record_btrace_prepare_to_store):
10173 Likewise.
10174 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
10175 Lookup inferior using ptid from regcache, instead of
10176 current_inferior.
10177 * remote.c (remote_fetch_registers, remote_store_registers): Use
10178 ptid from regcache.
10179 * rs6000-nat.c (fetch_register, store_register): Likewise.
10180 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
10181 s390_linux_store_inferior_registers): Likewise.
10182 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
10183 shnbsd_store_inferior_registers): Likewise.
10184 * sol-thread.c (sol_thread_fetch_registers,
10185 sol_thread_store_registers): Likewise.
10186 * sparc-nat.c (sparc_fetch_inferior_registers,
10187 sparc_store_inferior_registers): Likewise.
10188 * tilegx-linux-nat.c (fetch_inferior_registers,
10189 store_inferior_registers): Likewise.
10190 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
10191 vaxbsd_store_inferior_registers): Likewise.
10192 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
10193 store_xtregs): Likewise.
10194
10195 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
10196
10197 PR gdb/14441
10198 * NEWS: Mention support for rvalue references in GDB and python.
10199 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
10200 supports both lvalue and rvalue references.
10201
10202 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
10203
10204 PR gdb/14441
10205 * gdbtypes.c (rank_one_type): Implement overloading
10206 resolution rules regarding rvalue references.
10207
10208 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
10209
10210 PR gdb/14441
10211 * aarch64-tdep.c (aarch64_type_align)
10212 (aarch64_extract_return_value, aarch64_store_return_value): Change
10213 lvalue reference type checks to general reference type checks.
10214 * amd64-tdep.c (amd64_classify): Likewise.
10215 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
10216 Likewise.
10217 * arm-tdep.c (arm_type_align, arm_extract_return_value)
10218 (arm_store_return_value): Likewise.
10219 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
10220 * c-typeprint.c (c_print_type): Likewise.
10221 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
10222 (cplus_number_of_children, cplus_describe_child): Likewise.
10223 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
10224 * completer.c (expression_completer): Likewise.
10225 * cp-support.c (make_symbol_overload_list_adl_namespace):
10226 Likewise.
10227 * darwin-nat-info.c (info_mach_region_command): Likewise.
10228 * dwarf2loc.c (entry_data_value_coerce_ref)
10229 (value_of_dwarf_reg_entry): Likewise.
10230 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
10231 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
10232 Likewise.
10233 * findvar.c (extract_typed_address, store_typed_address):
10234 Likewise.
10235 * gdbtypes.c (rank_one_type): Likewise.
10236 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
10237 * infcall.c (value_arg_coerce): Likewise.
10238 * language.c (pointer_type): Likewise.
10239 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
10240 Likewise.
10241 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
10242 * mn10300-tdep.c (mn10300_type_align): Likewise.
10243 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
10244 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
10245 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
10246 Likewise.
10247 * printcmd.c (print_formatted, x_command): Likewise.
10248 * python/py-type.c (typy_get_composite, typy_template_argument):
10249 Likewise.
10250 * python/py-value.c (valpy_referenced_value)
10251 (valpy_get_dynamic_type, value_has_field): Likewise.
10252 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
10253 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
10254 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
10255 * spu-tdep.c (spu_scalar_value_p): Likewise.
10256 * symtab.c (lookup_symbol_aux): Likewise.
10257 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
10258 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
10259 Likewise.
10260 * valops.c (value_cast_pointers, value_cast)
10261 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
10262 (value_struct_elt, value_struct_elt_bitpos)
10263 (value_find_oload_method_list, find_overload_match)
10264 (value_rtti_indirect_type): Likewise.
10265 * valprint.c (val_print_scalar_type_p, generic_val_print):
10266 Likewise.
10267 * value.c (value_actual_type, value_as_address, unpack_long)
10268 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
10269 (coerce_ref): Likewise.
10270 * varobj.c (varobj_get_value_type): Likewise.
10271
10272 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
10273
10274 PR gdb/14441
10275 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
10276 table of constants.
10277 * python/lib/gdb/command/explore.py: Support exploring values
10278 of rvalue reference types.
10279 * python/lib/gdb/types.py: Implement get_basic_type() for
10280 rvalue reference types.
10281 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
10282 constant.
10283 * python/py-value.c (valpy_getitem): Add an rvalue reference
10284 check.
10285 (valpy_reference_value): Add new parameter "refcode".
10286 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
10287 New wrappers for valpy_reference_value().
10288 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
10289 (gdbpy_invoke_xmethod): Likewise.
10290
10291 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
10292
10293 PR gdb/14441
10294 * dwarf2read.c (process_die, read_type_die_1): Handle the
10295 DW_TAG_rvalue_reference_type DIE.
10296 (read_tag_reference_type): Add new parameter "refcode".
10297
10298 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
10299
10300 PR gdb/14441
10301 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
10302 (c_type_print_modifier, c_type_print_varspec_suffix)
10303 (c_type_print_base): Support printing rvalue reference types.
10304 * c-valprint.c (c_val_print, c_value_print): Support printing
10305 rvalue reference values.
10306
10307 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
10308
10309 PR gdb/14441
10310 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
10311 typename.
10312 * cp-support.c (replace_typedefs): Handle
10313 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
10314 * python/py-type.c (typy_lookup_type): Likewise.
10315
10316 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
10317
10318 PR gdb/14441
10319 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
10320 * parse.c (insert_type): Change assert statement.
10321 (follow_types): Handle rvalue reference types.
10322 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
10323 constant.
10324
10325 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
10326
10327 PR gdb/14441
10328 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
10329 value_ref() interface.
10330 * c-valprint.c (c_value_print): Likewise.
10331 * infcall.c (value_arg_coerce): Likewise.
10332 * python/py-value.c (valpy_reference_value): Likewise.
10333 * valops.c (value_cast, value_reinterpret_cast)
10334 (value_dynamic_cast, typecmp): Likewise.
10335 (value_ref): Parameterize by kind of return value reference type.
10336 * value.h (value_ref): Add new parameter "refcode".
10337
10338 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
10339
10340 PR gdb/14441
10341 * dwarf2read.c (read_tag_reference_type): Use
10342 lookup_lvalue_reference_type() instead of lookup_reference_type().
10343 * eval.c (evaluate_subexp_standard): Likewise.
10344 * f-exp.y: Likewise.
10345 * gdbtypes.c (make_reference_type, lookup_reference_type):
10346 Generalize with rvalue reference types.
10347 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
10348 convenience wrappers for lookup_reference_type().
10349 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
10350 reference kind parameter.
10351 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
10352 wrappers for lookup_reference_type().
10353 * guile/scm-type.c (gdbscm_type_reference): Use
10354 lookup_lvalue_reference_type() instead of lookup_reference_type().
10355 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
10356 * parse.c (follow_types): Likewise.
10357 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
10358 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
10359 Likewise.
10360 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
10361 (gdbpy_invoke_xmethod): Likewise.
10362 * stabsread.c: Provide extra argument to make_reference_type()
10363 call.
10364 * valops.c (value_ref, value_rtti_indirect_type): Use
10365 lookup_lvalue_reference_type() instead of lookup_reference_type().
10366
10367 2017-03-20 Artemiy Volkov <artemiyv@acm.org>
10368
10369 PR gdb/14441
10370 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
10371 (TYPE_IS_REFERENCE): New macro.
10372 (struct type): Add rvalue_reference_type field.
10373 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
10374
10375 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10376
10377 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
10378 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
10379 New function definition.
10380 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
10381 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
10382 New function declaration.
10383 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
10384 * mi/mi-interp.h: New file.
10385 * solib.c (info_sharedlibrary_command): Replace for loop with
10386 ALL_SO_LIBS macro
10387 * solib.h (update_solib_list): New function declaration.
10388 (so_list_head): Move macro.
10389 * solist.h (ALL_SO_LIBS): New macro.
10390
10391 2017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10392
10393 * infcmd.c (post_create_inferior): Remove unused argument in
10394 call to solib_add.
10395 * remote.c (remote_start_remote): Likewise.
10396 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
10397 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
10398 (enable_break): Likewise.
10399 * solib.c (update_solib_list): Remove unused target argument
10400 and its documentation.
10401 (solib_add): Remove unused target argument. Remove unused
10402 argument in call to update_solib_list.
10403 (info_sharedlibrary_command): Remove unused argument in call
10404 to update_solib_list.
10405 (sharedlibrary_command): Remove unused argument in call to
10406 solib_add.
10407 (handle_solib_event): Likewise.
10408 (reload_shared_libraries): Likewise.
10409 * solib.h (solib_add): Remove unused target argument.
10410
10411 2017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
10412
10413 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
10414 (s390_displaced_step_fixup): Cover relative branches with the
10415 default fixup handling. This fixes lack of support for some
10416 relative branch instructions.
10417
10418 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10419
10420 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
10421 ptid from regcache.
10422
10423 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10424
10425 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
10426 i386_darwin_store_inferior_registers): Use ptid from regcache.
10427
10428 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10429
10430 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
10431 i386bsd_store_inferior_registers): Use ptid from regcache.
10432
10433 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10434
10435 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
10436 hppaobsd_store_registers): Use ptid from regcache.
10437
10438 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10439
10440 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
10441 hppanbsd_store_registers): Use ptid from regcache.
10442
10443 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10444
10445 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
10446 from regcache. Use get_ptrace_pid.
10447
10448 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10449
10450 * corelow.c (get_core_register_section): Use ptid from regcache,
10451 update doc.
10452
10453 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10454
10455 * bsd-uthread.c (bsd_uthread_fetch_registers,
10456 bsd_uthread_store_registers): Use ptid from regcache, set and
10457 restore inferior_ptid.
10458
10459 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10460
10461 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
10462 fetch_fp_regs, store_register, store_regs, store_fp_register,
10463 store_fp_regs): Use ptid from regcache.
10464
10465 2017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10466
10467 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
10468 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
10469 store_vfp_regs): Use ptid from regcache.
10470
10471 2017-03-17 Pedro Alves <palves@redhat.com>
10472
10473 PR remote/21188
10474 * ser-base.c (ser_base_wait_for): Add comment.
10475 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
10476 version.
10477 * ser-unix.c (hardwire_raw): Remove reference to
10478 scb->current_timeout.
10479 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
10480 (hardwire_ops): Install ser_base_readchar instead of
10481 hardwire_readchar.
10482 * serial.h (struct serial) <current_timeout, timeout_remaining>:
10483 Remove fields.
10484
10485 2017-03-17 Jonah Graham <jonah@kichwacoders.com>
10486
10487 PR gdb/19637
10488 * python/lib/gdb/printer/bound_registers.py: Add support for
10489 Python 3.
10490
10491 2017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
10492
10493 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
10494 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
10495 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
10496 byte_offset to subobj_byte_offset. Fix the handling of
10497 DWARF_VALUE_STACK on big-endian targets when coming via an
10498 implicit pointer.
10499 (dwarf2_evaluate_loc_desc): Adjust call to
10500 dwarf2_evaluate_loc_desc_full.
10501 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
10502 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
10503
10504 2017-03-16 Yao Qi <yao.qi@linaro.org>
10505
10506 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
10507 and REVSH instructions.
10508
10509 2017-03-16 Yao Qi <yao.qi@linaro.org>
10510
10511 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
10512 (arm_record_test): Declare.
10513 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
10514 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
10515 align with the manual.
10516 (thumb_record_misc): Adjust the code order to align with the
10517 manual.
10518 (thumb2_record_decode_insn_handler): Fix instruction matching.
10519 (instruction_reader_thumb): New class.
10520 (arm_record_test): New function.
10521
10522 2017-03-16 Yao Qi <yao.qi@linaro.org>
10523
10524 * arm-tdep.c (abstract_memory_reader): New class.
10525 (instruction_reader): New class.
10526 (extract_arm_insn): Add argument 'reader'. Callers updated.
10527 (decode_insn): Likewise.
10528
10529 2017-03-16 Doug Evans <dje@google.com>
10530
10531 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
10532 member. Change type of TYPE member to SCM. All uses updated.
10533 (lsscm_make_lazy_string_smob): Add assert.
10534 (lsscm_make_lazy_string): Flag bad length values.
10535 (lsscm_elt_type): New function.
10536 (gdbscm_lazy_string_to_value): Rewrite to use
10537 lsscm_safe_lazy_string_to_value.
10538 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
10539 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
10540 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
10541 in incoming type.
10542 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
10543 * guile/scm-type.c (tyscm_scm_to_type): New function.
10544
10545 2017-03-15 Doug Evans <dje@google.com>
10546
10547 PR python/17728, python/18439, python/18779
10548 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
10549 member. Change type of TYPE member to PyObject *. All uses updated.
10550 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
10551 (gdbpy_create_lazy_string_object): Flag bad length values.
10552 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
10553 Handle typedefs in incoming type.
10554 (stpy_lazy_string_elt_type): New function.
10555 (gdbpy_extract_lazy_string): Call it.
10556 * python/py-value.c (valpy_lazy_string): Flag bad length values.
10557 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
10558 typedefs in incoming type.
10559
10560 2017-03-16 Doug Evans <dje@google.com>
10561
10562 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
10563 * guile/scm-type.c (tyscm_scm_to_type): New function.
10564
10565 2017-03-16 Jiong Wang <jiong.wang@arm.com>
10566
10567 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
10568 "ULONGEST" for "skip".
10569
10570 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
10571
10572 PR gdb/21220
10573 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
10574 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
10575 (inf_ptrace_peek_poke): ...here. New function. Now also loop
10576 over ptrace peek/poke until end of buffer or error.
10577
10578 2017-03-14 Simon Marchi <simon.marchi@ericsson.com>
10579
10580 * parse.c (length_of_subexp): Make static.
10581 * parser-defs.h (length_of_subexp): Remove.
10582
10583 2017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
10584
10585 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
10586 as well.
10587
10588 2017-03-14 Pedro Alves <palves@redhat.com>
10589
10590 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
10591 (main): Use std::unique_ptr. Remove calls to
10592 cp_demangled_name_parse_free.
10593
10594 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10595
10596 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
10597 alphabsd_store_inferior_registers): Use regcache->ptid instead
10598 of inferior_ptid.
10599
10600 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10601
10602 * aix-thread.c (aix_thread_fetch_registers,
10603 aix_thread_store_registers): Use regcache->ptid instead of
10604 inferior_ptid.
10605
10606 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10607
10608 * aarch64-linux-nat.c (fetch_gregs_from_thread,
10609 store_gregs_to_thread, fetch_fpregs_from_thread,
10610 store_fpregs_to_thread): Use regcache->ptid instead of
10611 inferior_ptid.
10612
10613 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10614
10615 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
10616 amd64_linux_fetch_inferior_registers): Use regcache->ptid
10617 instead of inferior_ptid.
10618
10619 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10620
10621 * target.c (target_fetch_registers, target_store_registers): Add
10622 assert.
10623
10624 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10625
10626 * regcache.h (regcache_get_ptid): New function.
10627 * regcache.c (regcache_get_ptid): New function.
10628
10629 2017-03-13 Mark Wielaard <mark@klomp.org>
10630
10631 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
10632
10633 2017-03-10 Keith Seitz <keiths@redhat.com>
10634
10635 PR c++/8218
10636 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
10637
10638 2017-03-08 Pedro Alves <palves@redhat.com>
10639
10640 PR gdb/18360
10641 * infrun.c (start_step_over, do_target_resume, resume)
10642 (restart_threads): Assert we're not resuming a thread that is
10643 meant to be stopped.
10644 (infrun_thread_stop_requested_callback): Delete.
10645 (infrun_thread_stop_requested): If the thread is internally
10646 stopped, queue a pending stop event and clear the thread's
10647 inline-frame state.
10648 (handle_stop_requested): New function.
10649 (handle_syscall_event, handle_inferior_event_1): Use
10650 handle_stop_requested.
10651 (handle_stop_requested): New function.
10652 (handle_signal_stop): Set the thread's stop_signal here instead of
10653 at caller.
10654 (finish_step_over): Clear step over info unconditionally.
10655 (handle_signal_stop): If the user had interrupted the event
10656 thread, consider the stop a random signal.
10657 (handle_signal_stop) <signal arrived while stepping over
10658 breakpoint>: Don't restart threads here.
10659 (stop_waiting): Don't clear step-over info here.
10660
10661 2017-03-08 Pedro Alves <palves@redhat.com>
10662
10663 PR 21206
10664 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
10665 goes to argument 2, not 1.
10666
10667 2017-03-08 Pedro Alves <palves@redhat.com>
10668
10669 PR cli/21218
10670 * top.c (gdb_readline_wrapper): Avoid passing NULL to
10671 display_gdb_prompt.
10672 (command_line_input): Add comment.
10673
10674 2017-03-08 Pedro Alves <palves@redhat.com>
10675
10676 PR tui/21216
10677 * tui/tui-file.c (tui_file::write): New.
10678 * tui/tui-file.h (tui_file): Override "write".
10679 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
10680 factored out from ...
10681 (tui_puts): ... here.
10682 (tui_putc): Use them.
10683 (tui_write): New function.
10684 * tui/tui-io.h (tui_write): Declare.
10685
10686 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
10687
10688 * Makefile.in (SFILES): Replace "environ.c" with
10689 "common/environ.c".
10690 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
10691 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
10692 to...
10693 * common/environ.c: ... here.
10694 * environ.h: Moved to...
10695 * common/environ.h: ... here.
10696
10697 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
10698
10699 * gdbarch.sh (pstring_ptr): New static function.
10700 (gdbarch_disassembler_options): Use it.
10701 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
10702 not valid_disassembler_option->name.
10703 * gdbarch.c: Regenerate.
10704
10705 2017-03-07 Peter Bergner <bergner@vnet.ibm.com>
10706
10707 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
10708
10709 2017-03-07 Pedro Alves <palves@redhat.com>
10710
10711 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
10712
10713 2017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
10714
10715 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
10716 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
10717 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
10718 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
10719
10720 2017-03-06 Simon Marchi <simon.marchi@ericsson.com>
10721
10722 * xtensa-linux-nat.c (fetch_gregs): Remove const.
10723
10724 2017-03-03 Simon Marchi <simon.marchi@ericsson.com>
10725
10726 * remote.c (remote_add_target_side_commands): Use range-based
10727 for loop.
10728
10729 2017-03-03 Yao Qi <yao.qi@linaro.org>
10730
10731 PR gdb/21165
10732 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
10733 value is lazy.
10734 * valprint.c (common_val_print): Likewise.
10735
10736 2017-02-28 Peter Bergner <bergner@vnet.ibm.com>
10737
10738 * NEWS: Mention new set/show disassembler-options commands.
10739 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
10740 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
10741 (prospective_options): New static variable.
10742 (gdb_disassembler::gdb_disassembler): Initialize
10743 m_di.disassembler_options.
10744 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
10745 (get_disassembler_options): New function.
10746 (set_disassembler_options): Likewise.
10747 (set_disassembler_options_sfunc): Likewise.
10748 (show_disassembler_options_sfunc): Likewise.
10749 (disassembler_options_completer): Likewise.
10750 (_initialize_disasm): Likewise.
10751 * disasm.h (get_disassembler_options): New prototype.
10752 (set_disassembler_options): Likewise.
10753 * gdbarch.sh (gdbarch_disassembler_options): New variable.
10754 (gdbarch_verify_disassembler_options): Likewise.
10755 * gdbarch.c: Regenerate.
10756 * gdbarch.h: Likewise.
10757 * arm-tdep.c (num_disassembly_options): Delete.
10758 (set_disassembly_style): Likewise.
10759 (arm_disassembler_options): New static variable.
10760 (set_disassembly_style_sfunc): Convert short style name into long
10761 option name. Call set_disassembler_options.
10762 (show_disassembly_style_sfunc): New function.
10763 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
10764 set_gdbarch_verify_disassembler_options.
10765 (_initialize_arm_tdep): Delete regnames variable and update callers.
10766 (arm_disassembler_options): Initialize.
10767 (disasm_options): New variable.
10768 (num_disassembly_options): Rename from this...
10769 (num_disassembly_styles): ...to this. Compute by scanning through
10770 disasm_options.
10771 (valid_disassembly_styles): Initialize using disasm_options.
10772 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
10773 set_arm_regname_option.
10774 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
10775 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
10776 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
10777 set_gdbarch_verify_disassembler_options.
10778 * s390-tdep.c (s390_disassembler_options): New static variable.
10779 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
10780 set_gdbarch_verify_disassembler_options.
10781
10782 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
10783
10784 * remote.c (remote_add_target_side_condition): Remove "struct"
10785 keyword from range-based for loop.
10786
10787 2017-02-27 Simon Marchi <simon.marchi@ericsson.com>
10788
10789 * remote.c (remote_add_target_side_condition): Use range-based
10790 for loop. Update comment.
10791
10792 2017-02-27 Yao Qi <yao.qi@linaro.org>
10793
10794 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
10795
10796 2017-02-26 Alan Hayward <alan.hayward@arm.com>
10797
10798 * regcache.c (regcache_raw_update): New function.
10799 (regcache_raw_read): Move code to regcache_raw_update.
10800 * regcache.h (regcache_raw_update): New declaration.
10801 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
10802
10803 2017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10804
10805 * dwarf2read.c (create_debug_type_hash_table): Initialize
10806 header.signature and header.type_offset_in_tu.
10807
10808 2017-02-24 Pedro Alves <palves@redhat.com>
10809
10810 * symtab.c (make_file_symbol_completion_list_1): Use
10811 add_symtab_completions.
10812
10813 2017-02-24 Alan Hayward <alan.hayward@arm.com>
10814
10815 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
10816
10817 2017-02-24 Alan Hayward <alan.hayward@arm.com>
10818
10819 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
10820 I386_MAX_REGISTER_SIZE.
10821 (i386_pseudo_register_write): Likewise.
10822 (i386_process_record): Likewise.
10823 * i387-tdep.c (i387_supply_xsave): Likewise.
10824 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
10825 (store_register): Likewise.
10826
10827 2017-02-23 Pedro Alves <palves@redhat.com>
10828
10829 * ada-lang.c: Include "common/function-view.h".
10830 (ada_iterate_over_symbols): Adjust to use function_view as
10831 callback type.
10832 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
10833 (ada_make_symbol_completion_list): Use a lambda.
10834 (ada_exc_search_name_matches): Delete.
10835 (name_matches_regex): New.
10836 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
10837 * compile/compile-c-support.c: Include "common/function-view.h".
10838 (print_one_macro): Change prototype to accept a ui_file pointer.
10839 (write_macro_definitions): Use a lambda.
10840 * dwarf2read.c: Include "common/function-view.h".
10841 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10842 (dw2_expand_symtabs_matching): Adjust to use function_view as
10843 callback type.
10844 * language.h: Include "common/function-view.h".
10845 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
10846 function_view as callback type.
10847 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
10848 * linespec.c: Include "common/function-view.h".
10849 (collect_info::add_symbol): New method.
10850 (struct symbol_and_data_callback, iterate_inline_only, struct
10851 symbol_matcher_data, iterate_name_matcher): Delete.
10852 (iterate_over_all_matching_symtabs): Adjust to use function_view
10853 as callback type and lambdas.
10854 (iterate_over_file_blocks): Adjust to use function_view as
10855 callback type.
10856 (decode_compound_collector): Now a class with private fields.
10857 (decode_compound_collector::release_symbols): New method.
10858 (collect_one_symbol): Rename to...
10859 (decode_compound_collector::operator()): ... this and adjust.
10860 (lookup_prefix_sym): decode_compound_collector construction bits
10861 move to decode_compound_collector ctor. Pass the
10862 decode_compound_collector object directly as callback. Remove
10863 cleanups and use decode_compound_collector::release_symbols
10864 instead.
10865 (symtab_collector): Now a class with private fields.
10866 (symtab_collector::release_symtabs): New method.
10867 (add_symtabs_to_list): Rename to...
10868 (symtab_collector::operator()): ... this and adjust.
10869 (collect_symtabs_from_filename): symtab_collector construction
10870 bits move to symtab_collector ctor. Pass the symtab_collector
10871 object directly as callback. Remove cleanups and use
10872 symtab_collector::release_symtabs instead.
10873 (collect_symbols): Delete.
10874 (add_matching_symbols_to_info): Use lambdas.
10875 * macrocmd.c (print_macro_callback): Delete.
10876 (info_macro_command): Use a lambda.
10877 (info_macros_command): Pass print_macro_definition as callable
10878 directly.
10879 (print_one_macro): Remove 'ignore' parameter.
10880 (macro_list_command): Adjust.
10881 * macrotab.c (macro_for_each_data::fn): Now a function_view.
10882 (macro_for_each_data::user_data): Delete field.
10883 (foreach_macro): Adjust to call the function_view.
10884 (macro_for_each): Adjust to use function_view as callback type.
10885 (foreach_macro_in_scope): Adjust to call the function_view.
10886 (macro_for_each_in_scope): Adjust to use function_view as callback
10887 type.
10888 * macrotab.h: Include "common/function-view.h".
10889 (macro_callback_fn): Declare a prototype instead of a pointer.
10890 Remove "user_data" parameter.
10891 (macro_for_each, macro_for_each_in_scope): Adjust to use
10892 function_view as callback type.
10893 * psymtab.c (partial_map_expand_apply)
10894 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
10895 Adjust to use function_view as callback type and to return bool.
10896 (psym_expand_symtabs_matching): Adjust to use function_view as
10897 callback types.
10898 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
10899 to use function_view as callback type and to return bool.
10900 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
10901 callback types.
10902 * symfile.c (expand_symtabs_matching): Adjust to use function_view
10903 as callback types.
10904 * symfile.h: Include "common/function-view.h".
10905 (expand_symtabs_file_matcher_ftype)
10906 (expand_symtabs_symbol_matcher_ftype)
10907 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
10908 return bool.
10909 (quick_symbol_functions::map_symtabs_matching_filename)
10910 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
10911 function_view as callback type and return bool.
10912 (expand_symtabs_matching): Adjust to use function_view as callback
10913 type.
10914 (maintenance_expand_name_matcher)
10915 (maintenance_expand_file_matcher): Delete.
10916 (maintenance_expand_symtabs): Use lambdas.
10917 * symtab.c (iterate_over_some_symtabs): Adjust to use
10918 function_view as callback types and return bool.
10919 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
10920 of a cleanup.
10921 (lookup_symtab_callback): Delete.
10922 (lookup_symtab): Use a lambda.
10923 (iterate_over_symbols): Adjust to use function_view as callback
10924 type.
10925 (struct search_symbols_data, search_symbols_file_matches)
10926 (search_symbols_name_matches): Delete.
10927 (search_symbols): Use a pair of lambdas.
10928 (struct add_name_data, add_macro_name, symbol_completion_matcher)
10929 (symtab_expansion_callback): Delete.
10930 (default_make_symbol_completion_list_break_on_1): Use lambdas.
10931 * symtab.h: Include "common/function-view.h".
10932 (iterate_over_some_symtabs): Adjust to use function_view as
10933 callback type and return bool.
10934 (iterate_over_symtabs): Adjust to use function_view as callback
10935 type.
10936 (symbol_found_callback_ftype): Remove 'data' parameter and return
10937 bool.
10938 (iterate_over_symbols): Adjust to use function_view as callback
10939 type.
10940
10941 2017-02-23 Pedro Alves <palves@redhat.com>
10942
10943 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
10944 (%.o) <unittests/%.c>: New pattern.
10945 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
10946 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
10947 * common/function-view.h: New file.
10948 * unittests/function-view-selftests.c: New file.
10949 * configure: Regenerate.
10950
10951 2017-02-23 Simon Marchi <simon.marchi@ericsson.com>
10952
10953 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
10954 inferior_ptid.
10955 * go32-nat.c (go32_thread_alive): Likewise.
10956
10957 2017-02-23 Yao Qi <yao.qi@linaro.org>
10958
10959 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
10960 delete.
10961
10962 2017-02-23 Yao Qi <yao.qi@linaro.org>
10963
10964 * varobj.c (varobj_clear_saved_item): Use delete instead of
10965 xfree.
10966 (update_dynamic_varobj_children): Likewise.
10967
10968 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10969
10970 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
10971
10972 2017-02-21 Simon Marchi <simon.marchi@ericsson.com>
10973
10974 * common/enum-flags.h (enum_flags::enum_flags): Initialize
10975 m_enum_value to 0 in default constructor.
10976
10977 2017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10978
10979 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
10980 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
10981 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
10982 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
10983 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
10984 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
10985 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
10986 IS_STORE_CONDITIONAL_INSN.
10987
10988 2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10989
10990 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
10991
10992 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10993
10994 * NEWS (Changes since GDB 7.12): Add DWARF-5.
10995
10996 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10997
10998 * dwarf2read.c (skip_one_die, read_attribute_value)
10999 (dwarf2_const_value_attr, dump_die_shallow)
11000 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
11001 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
11002
11003 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11004
11005 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
11006 (dwarf_parse_macro_header): Accept DWARF version 5.
11007 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
11008
11009 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11010
11011 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
11012 DW_AT_GNU_*.
11013 * common/common-exceptions.h (enum errors): Likewise.
11014 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
11015 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
11016 (dwarf_expr_context::execute_stack_op): Likewise.
11017 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
11018 Likewise.
11019 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
11020 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11021 (show_entry_values_debug, call_site_to_target_addr)
11022 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
11023 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
11024 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
11025 (value_of_dwarf_block_entry, indirect_pieced_value)
11026 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
11027 (disassemble_dwarf_expression): Likewise.
11028 * dwarf2read.c (process_die, inherit_abstract_dies)
11029 (read_call_site_scope): Likewise.
11030 * gdbtypes.h (struct func_type, struct call_site_parameter)
11031 (struct call_site): Likewise.
11032 * stack.c (read_frame_arg): Likewise.
11033 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
11034
11035 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11036
11037 * defs.h (read_unsigned_leb128): New declaration.
11038 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
11039 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
11040 (dwarf2_find_location_expression): Call also
11041 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
11042 * dwarf2loc.h (dwarf2_version): New declaration.
11043 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
11044 rnglists.
11045 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
11046 .debug_rnglists.
11047 (struct dwop_section_names): Add loclists_dwo.
11048 (dwop_section_names): Add .debug_loclists.dwo.
11049 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
11050 (struct dwarf2_per_cu_data): Add dwarf_version.
11051 (struct dwo_sections): Add loclists.
11052 (struct attr_abbrev): Add implicit_const.
11053 (read_indirect_line_string): New declaration.
11054 (read_unsigned_leb128): Delete declaration.
11055 (rcuh_kind): New definition.
11056 (read_and_check_comp_unit_head): Change parameter
11057 is_debug_types_section to section_kind.
11058 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
11059 (read_comp_unit_head): Change parameter abfd to section, add parameter
11060 section_kind. Handle DWARF-5.
11061 (error_check_comp_unit_head): Accept also DWARF version 5.
11062 (read_and_check_comp_unit_head): Change parameter
11063 is_debug_types_section to section_kind.
11064 (read_and_check_type_unit_head): Delete function.
11065 (read_abbrev_offset): Handle DWARF-5.
11066 (create_debug_type_hash_table): Add parameter section_kind. Process
11067 only DW_UT_type. Use signature and type_offset_in_tu from struct
11068 comp_unit_head.
11069 (create_debug_types_hash_table): Update create_debug_type_hash_table
11070 caller.
11071 (create_all_type_units): Call create_debug_type_hash_table.
11072 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
11073 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
11074 caller.
11075 (skip_one_die): Handle DW_FORM_implicit_const.
11076 (dwarf2_rnglists_process): New function.
11077 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
11078 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
11079 (read_attribute_value): Handle DW_FORM_implicit_const,
11080 DW_FORM_line_strp.
11081 (read_attribute): Handle DW_FORM_implicit_const.
11082 (read_indirect_string_at_offset_from): New function from
11083 read_indirect_string_at_offset.
11084 (read_indirect_string_at_offset): Call
11085 read_indirect_string_at_offset_from.
11086 (read_indirect_line_string_at_offset): New function.
11087 (read_indirect_string): New function comment.
11088 (read_indirect_line_string): New function.
11089 (read_unsigned_leb128): Make it global.
11090 (dwarf2_string_attr): Handle DWARF-5.
11091 (add_include_dir_stub, read_formatted_entries): New functions.
11092 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
11093 Handle DWARF-5.
11094 (per_cu_header_read_in): Update read_comp_unit_head caller.
11095 (dwarf2_version): New function.
11096 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
11097 rnglists.
11098 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
11099 fields.
11100
11101 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11102
11103 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
11104
11105 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11106
11107 * dwarf2read.c (dwarf2_ranges_process): New function from
11108 dwarf2_ranges_read.
11109 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
11110 dwarf2_ranges_process.
11111
11112 2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11113
11114 * dwarf2read.c (create_debug_type_hash_table): New function from
11115 create_debug_types_hash_table.
11116 (create_debug_types_hash_table): Call create_debug_type_hash_table.
11117 (create_all_type_units, open_and_init_dwo_file): Update
11118 create_debug_types_hash_table callers.
11119
11120 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11121
11122 PR gdb/16188
11123 * fork-child.c (trace_start_error): Fix thinko. va_end should
11124 refer to 'ap', not 'args'.
11125
11126 2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11127 Pedro Alves <palves@redhat.com>
11128
11129 PR gdb/16188
11130 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
11131 calls succeeded.
11132 * fork-child.c (trace_start_error): New function.
11133 (trace_start_error_with_name): Likewise.
11134 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
11135 * inf-ptrace.c (inf_ptrace_me): Likewise.
11136 * inferior.h (trace_start_error): New prototype.
11137 (trace_start_error_with_name): Likewise.
11138
11139 2017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
11140
11141 PR gdb/21164
11142 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
11143 NULL before using it.
11144 * symmisc.c (maintenance_print_symbols): Likewise.
11145 (maintenance_print_msymbols): Likewise.
11146
11147 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
11148
11149 * NEWS: Add record Python bindings entry.
11150
11151 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
11152
11153 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
11154 py-record-full.o.
11155 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
11156 * python/py-record-btrace.c, python/py-record-btrace.h,
11157 python/py-record-full.c, python/py-record-full.h: New file.
11158 * python/py-record.c: Add include for py-record-btrace.h and
11159 py-record-full.h.
11160 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
11161 recpy_instruction_history, recpy_function_call_history, recpy_begin,
11162 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
11163 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
11164 New definition.
11165 (gdbpy_initialize_btrace): New export.
11166 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
11167
11168 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
11169
11170 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
11171 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
11172 * python/py-record.c: New file.
11173 * python/python-internal.h (gdbpy_start_recording,
11174 gdbpy_current_recording, gdpy_stop_recording,
11175 gdbpy_initialize_record): New export.
11176 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
11177 (python_GdbMethods): Add gdbpy_start_recording,
11178 gdbpy_current_recording and gdbpy_stop_recording.
11179
11180 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
11181
11182 * record-btrace.c (record_btrace_record_method): New function.
11183 (init_record_btrace_ops): Initialize to_record_method.
11184 * record-full.c (record_full_record_method): New function.
11185 (init_record_full_ops, init_record_full_core_ops): Add
11186 record_full_record_method.
11187 * record.h (enum record_method): New enum.
11188 * target-debug.h (target_debug_print_enum_record_method: New define.
11189 * target-delegates.c: Regenerate.
11190 * target.c (target_record_method): New function.
11191 * target.h: Include record.h.
11192 (struct target_ops) <to_record_method>: New field.
11193 (target_record_method): New export.
11194
11195 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
11196
11197 * record.h (record_start, record_stop): New export.
11198 * record.c (record_start, record_stop): New function.
11199
11200 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
11201
11202 * btrace.c (btrace_fetch): Copy function call segments pointer
11203 into a vector.
11204 (btrace_clear): Clear the vector.
11205 (btrace_find_insn_by_number): Use binary search to find the correct
11206 function call segment.
11207 * btrace.h (brace_fun_p): New typedef.
11208 (struct btrace_thread_info) <functions>: New field.
11209
11210 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
11211
11212 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
11213 * btrace.c (btrace_decode_error): ... here. New function.
11214 * btrace.h (btrace_decode_error): New export.
11215
11216 2017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
11217
11218 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
11219 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
11220 btrace_find_insn_by_number): Remove special case for gaps.
11221 * btrace.h (btrace_insn_get_error): New export.
11222 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
11223 * record-btrace.c (btrace_insn_history): Print number for gaps.
11224 (record_btrace_info, record_btrace_goto): Handle gaps.
11225
11226 2017-02-14 Tom Tromey <tom@tromey.com>
11227
11228 PR python/13598:
11229 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
11230 event.
11231 * python/py-evts.c (gdbpy_initialize_py_events): Add
11232 before_prompt registry.
11233 * python/py-events.h (events_object) <before_prompt>: New field.
11234
11235 2017-02-14 Markus Metzger <markus.t.metzger@intel.com>
11236
11237 * btrace.c (ftrace_new_switch): Preserve up link and flags.
11238
11239 2017-02-13 Luis Machado <lgustavo@codesourcery.com>
11240
11241 * symfile (_initialize_symfile): Add usage text to the load command's
11242 help text.
11243
11244 2017-02-10 Simon Marchi <simon.marchi@ericsson.com>
11245
11246 * utils.c (defaulted_query): Don't query on secondary UIs.
11247
11248 2017-02-10 Tom Tromey <tom@tromey.com>
11249
11250 * rust-lang.c (rust_get_disr_info): Remove unused variable.
11251
11252 2017-02-10 Tom Tromey <tom@tromey.com>
11253
11254 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
11255 "cleanup" local.
11256 * python/py-type.c (typy_legacy_template_argument): Remove
11257 unnecessary "cleanup" local.
11258
11259 2017-02-10 Tom Tromey <tom@tromey.com>
11260
11261 * python/python.c (do_start_initialization): New function, from
11262 _initialize_python.
11263 (_initialize_python): Call do_start_initialization.
11264 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
11265 goto.
11266
11267 2017-02-10 Tom Tromey <tom@tromey.com>
11268
11269 * python/py-prettyprint.c (pretty_print_one_value): Use
11270 gdbpy_ref.
11271
11272 2017-02-10 Tom Tromey <tom@tromey.com>
11273
11274 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
11275 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
11276 gdbpy_ref.
11277 * python/py-type.c (field_new): Use gdbpy_ref.
11278 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
11279 gdbpy_ref.
11280 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
11281 (py_free_pspace): Likewise.
11282 (pspace_to_pspace_object): Likewise.
11283 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
11284 (py_free_objfile): Likewise.
11285 (objfile_to_objfile_object): Likewise.
11286 * python/py-inferior.c (delete_thread_object): Use
11287 gdbpy_ref.
11288 (infpy_read_memory): Likewise.
11289 (py_free_inferior): Likewise.
11290 * python/py-evtregistry.c (create_eventregistry_object): Use
11291 gdbpy_ref.
11292 * python/py-event.c (create_event_object): Use gdbpy_ref.
11293
11294 2017-02-10 Tom Tromey <tom@tromey.com>
11295
11296 * python/py-ref.h (gdbpy_ref_policy): Now a template.
11297 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
11298 used.
11299 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
11300 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
11301 python/py-exitedevent.c, python/py-finishbreakpoint.c,
11302 python/py-framefilter.c, python/py-function.c,
11303 python/py-inferior.c, python/py-infevents.c,
11304 python/py-linetable.c, python/py-newobjfileevent.c,
11305 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
11306 python/py-signalevent.c, python/py-stopevent.c,
11307 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
11308 python/py-unwind.c, python/py-utils.c, python/py-value.c,
11309 python/py-varobj.c, python/py-xmethods.c, python/python.c,
11310 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
11311
11312 2017-02-10 Tom Tromey <tom@tromey.com>
11313
11314 * ui-out.h (ui_out_emit_type): New class.
11315 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
11316 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
11317 and ui_out_emit_tuple.
11318 (enumerate_locals): Likewise.
11319 (py_mi_print_variables, py_print_locals, py_print_args): Use
11320 ui_out_emit_list.
11321 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
11322 ui_out_emit_list.
11323 * common/gdb_optional.h: New file.
11324
11325 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
11326
11327 * MAINTAINERS (Write After Approval): Update my e-mail address.
11328
11329 2017-02-10 Martin Galvan <martingalvan@sourceware.org>
11330
11331 PR gdb/21122
11332 * breakpoint.c (_initialize_breakpoint): Update the help description
11333 of the 'commands' command to indicate that it takes a list argument.
11334
11335 2017-02-09 Simon Marchi <simon.marchi@ericsson.com>
11336
11337 * interps.c (current_interp_set_logging): Remove "return".
11338
11339 2017-02-09 Gary Benson <gbenson@redhat.com>
11340
11341 * symtab.c (add_symtab_completions): Prevent NULL pointer
11342 dereference.
11343
11344 2017-02-08 Pedro Alves <palves@redhat.com>
11345
11346 * interps.c (interp::interp): Remove reference to quiet_p.
11347 (interp_set): Make static. Remove dead "Switching to" output
11348 code.
11349 (interp_quiet_p, interp_set_quiet): Delete.
11350 (interpreter_exec_cmd): Don't set the interpreter quiet.
11351 * interps.h (interp_quiet_p): Make static.
11352 (class interp) <quiet_p>: Remove field
11353
11354 2017-02-08 Jerome Guitton <guitton@adacore.com>
11355
11356 * cli/cli-decode.c (find_command_name_length): Make it extern.
11357 * cli/cli-decode.h (find_command_name_length): Declare.
11358 * cli/cli-script.c (command_name_equals, line_first_arg):
11359 New functions.
11360 (process_next_line): Use cli-decode to parse command names.
11361 (build_command_line): Make args a constant pointer.
11362
11363 2017-02-08 Jerome Guitton <guitton@adacore.com>
11364
11365 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
11366 Remove case-insensitive search.
11367
11368 2017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
11369
11370 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
11371 at the end of the line. Avoids an ARI warning.
11372
11373 2017-02-06 Luis Machado <lgustavo@codesourcery.com>
11374
11375 * NEWS: Mention support for record/replay of Intel 64 rdrand and
11376 rdseed instructions.
11377 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
11378
11379 2017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
11380
11381 PR tdep/20936
11382 Provide and use sparc32 and sparc64 target description XML files.
11383 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
11384 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
11385 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
11386 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
11387 * features/sparc/sparc32-solaris.xml: New file.
11388 * features/sparc/sparc64-solaris.xml: New file.
11389 * features/sparc/sparc32-solaris.c: Generated.
11390 * features/sparc/sparc64-solaris.c: Generated.
11391 * sparc-tdep.h: Account for differences in target descriptions.
11392 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
11393 (sparc32_register_type): Use target provided registers.
11394 (validate_tdesc_registers): New function.
11395 (sparc32_gdbarch_init): Use tdesc_has_registers.
11396 Set pseudoregister functions.
11397 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
11398 (sparc64_register_type): Use target provided registers.
11399 (sparc64_init_abi): Set pseudoregister functions.
11400
11401 2017-02-03 Tom Tromey <tom@tromey.com>
11402
11403 PR rust/21097:
11404 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
11405 with a single member.
11406
11407 2017-02-03 Pedro Alves <palves@redhat.com>
11408
11409 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
11410 (cli_interp_base::~cli_interp_base): New.
11411 (cli_interp): New struct.
11412 (as_cli_interp): Cast the interp itself to cli_interp.
11413 (cli_interpreter_pre_command_loop): Rename to ...
11414 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
11415 parameter.
11416 (cli_interpreter_init): Rename to ...
11417 (cli_interp::init): ... this. Remove 'self' parameter. Use
11418 boolean. Make extern.
11419 (cli_interpreter_resume): Rename to ...
11420 (cli_interp::resume): ... this. Remove 'data' parameter. Make
11421 extern.
11422 (cli_interpreter_suspend): Rename to ...
11423 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
11424 extern.
11425 (cli_interpreter_exec): Rename to ...
11426 (cli_interp::exec): ... this. Remove 'data' parameter. Make
11427 extern.
11428 (cli_interpreter_supports_command_editing): Rename to ...
11429 (cli_interp_base::supports_command_editing): ... this. Remove
11430 'interp' parameter. Make extern.
11431 (cli_ui_out): Rename to ...
11432 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
11433 Make extern.
11434 (cli_set_logging): Rename to ...
11435 (cli_interp_base::set_logging): ... this. Remove 'interp'
11436 parameter. Make extern.
11437 (cli_interp_procs): Delete.
11438 (cli_interp_factory): Adjust to use "new".
11439 * cli/cli-interp.h: Include "interps.h".
11440 (struct cli_interp_base): New struct.
11441 * interps.c (struct interp): Delete. Fields moved to interps.h.
11442 (interp_new): Delete.
11443 (interp::interp, interp::~interp): New.
11444 (interp_set): Use bool, and return void. Assume the interpreter
11445 has suspend, init and resume methods, and that the all return
11446 void.
11447 (set_top_level_interpreter): interp_set returns void.
11448 (interp_ui_out): Adapt.
11449 (current_interp_set_logging): Adapt.
11450 (interp_data): Delete.
11451 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
11452 (interp_exec): Adapt.
11453 (top_level_interpreter_data): Delete.
11454 * interps.h (interp_init_ftype, interp_resume_ftype)
11455 (interp_suspend_ftype, interp_exec_ftype)
11456 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
11457 (class interp): New.
11458 (interp_new): Delete.
11459 (interp_set): Now returns void. Use bool.
11460 (interp_data, top_level_interpreter_data): Delete.
11461 * mi/mi-common.h: Include interps.h.
11462 (class mi_interp): Inherit from interp. Define a ctor. Declare
11463 init, resume, suspect, exec, interp_ui_out, set_logging and
11464 pre_command_loop methods.
11465 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
11466 (mi_interpreter_init): Rename to ...
11467 (mi_interp::init): ... this. Remove the 'interp' parameter, use
11468 bool, return void and make extern. Adjust.
11469 (mi_interpreter_resume): ... Rename to ...
11470 (mi_interp::resume): ... this. Remove the 'data' parameter,
11471 return void and make extern. Adjust.
11472 (mi_interpreter_suspend): ... Rename to ...
11473 (mi_interp::suspend): ... this. Remove the 'data' parameter,
11474 return void and make extern. Adjust.
11475 (mi_interpreter_exec): ... Rename to ...
11476 (mi_interp::exec): ... this. Remove the 'data' parameter and make
11477 extern. Adjust.
11478 (mi_interpreter_pre_command_loop): ... Rename to ...
11479 (mi_interp::pre_command_loop): ... this. Remove the 'self'
11480 parameter and make extern.
11481 (mi_on_normal_stop_1): Adjust.
11482 (mi_ui_out): Rename to ...
11483 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
11484 parameter and make extern. Adjust.
11485 (mi_set_logging): Rename to ...
11486 (mi_interp::set_logging): ... this. Remove the 'interp'
11487 parameter and make extern. Adjust.
11488 (mi_interp_procs): Delete.
11489 (mi_interp_factory): Adjust to use 'new'.
11490 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
11491 (mi_print_exception, mi_execute_command, mi_load_progress):
11492 Adjust.
11493 * tui/tui-interp.c (tui_interp): New class.
11494 (as_tui_interp): Return a tui_interp pointer.
11495 (tui_on_normal_stop, tui_on_signal_received)
11496 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
11497 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
11498 to use interp::interp_ui_out.
11499 (tui_init): Rename to ...
11500 (tui_interp::init): ... this. Remove the 'self' parameter, use
11501 bool, return void and make extern. Adjust.
11502 (tui_resume): Rename to ...
11503 (tui_interp::resume): ... this. Remove the 'data' parameter,
11504 return void and make extern. Adjust.
11505 (tui_suspend): Rename to ...
11506 (tui_interp::suspend): ... this. Remove the 'data' parameter,
11507 return void and make extern. Adjust.
11508 (tui_ui_out): Rename to ...
11509 (tui_interp::interp_ui_out): ... this. Remove the 'self'
11510 parameter, and make extern. Adjust.
11511 (tui_exec): Rename to ...
11512 (tui_interp::exec): ... this. Remove the 'data' parameter and
11513 make extern.
11514 (tui_interp_procs): Delete.
11515 (tui_interp_factory): Use "new".
11516
11517 2017-02-02 Tom Tromey <tom@tromey.com>
11518
11519 * rust-exp.y (ends_raw_string, space_then_number)
11520 (rust_identifier_start_p): Return bool.
11521 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
11522 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
11523 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
11524 (rust_chartype_p): Return bool.
11525 (val_print_struct, rust_print_struct_def, rust_print_type):
11526 Update.
11527 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
11528 Return bool.
11529
11530 2017-02-02 Tom Tromey <tom@tromey.com>
11531
11532 * rust-lang.c: Reindent.
11533
11534 2017-02-02 Tom Tromey <tom@tromey.com>
11535
11536 * rust-lang.h (rust_crate_for_block): Update.
11537 * rust-lang.c (rust_crate_for_block): Return std::string.
11538 (rust_get_disr_info): Use std:;string, not
11539 gdb::unique_xmalloc_ptr.
11540 * rust-exp.y (crate_name): Update.
11541
11542 2017-02-02 Pedro Alves <palves@redhat.com>
11543
11544 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
11545 field out of gdb_disassembler_test and make it static.
11546
11547 2017-02-02 Pedro Alves <palves@redhat.com>
11548
11549 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
11550 mi1_interp and mi_interp fields.
11551
11552 2017-02-02 Pedro Alves <palves@redhat.com>
11553
11554 * cli/cli-interp.c (struct saved_output_files, saved_output):
11555 Moved from cli/cli-logging.c.
11556 (cli_set_logging): New function.
11557 (cli_interp_procs): Install cli_set_logging.
11558 * cli/cli-interp.h (make_logging_output, cli_set_logging):
11559 Declare.
11560 * cli/cli-logging.c (struct saved_output_files, saved_output):
11561 Moved to cli/cli-interp.c.
11562 (pop_output_files): Don't save outputs here.
11563 (make_logging_output): New function.
11564 (handle_redirections): Don't build tee nor save previous outputs
11565 here.
11566 * interps.c (current_interp_set_logging): Change prototype.
11567 Assume there's always a set_logging_proc method installed.
11568 * interps.h (interp_set_logging_ftype): Change prototype.
11569 (current_interp_set_logging): Change prototype and adjust comment.
11570 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
11571 use make_logging_output.
11572 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
11573 2017-02-02 Pedro Alves <palves@redhat.com>
11574
11575 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
11576 from ...
11577 (set_logging_overwrite): ... here.
11578 (logging_no_redirect_file): Delete.
11579 (set_logging_redirect): Don't handle redirection on the fly.
11580 Instead warn that "logging off" / "logging on" is necessary.
11581 (pop_output_files): Delete references to logging_no_redirect_file.
11582 (show_logging_command): Always speak in terms of what will happen
11583 once logging is reenabled.
11584
11585 2017-02-02 Pedro Alves <palves@redhat.com>
11586
11587 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
11588
11589 2017-02-02 Pedro Alves <palves@redhat.com>
11590
11591 * disasm.c (gdb_pretty_print_insn): Rename to ...
11592 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
11593 Remove gdbarch parameter. Adapt to clear the object's buffers
11594 instead of allocating new buffers, and to print using the object's
11595 gdb_disassembler instead of calling gdb_print_insn.
11596 (dump_insns): Use gdb_pretty_print_disassembler.
11597 * disasm.h (gdb_pretty_print_insn): Delete declaration.
11598 (gdb_pretty_print_disassembler): New class.
11599 * record-btrace.c (btrace_insn_history): Use
11600 gdb_pretty_print_disassembler.
11601
11602 2017-02-02 Pedro Alves <palves@redhat.com>
11603
11604 * ada-lang.c (type_as_string): Use string_file.
11605 * ada-valprint.c (ada_print_floating): Use string_file.
11606 * ada-varobj.c (ada_varobj_scalar_image)
11607 (ada_varobj_get_value_image): Use string_file.
11608 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
11609 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
11610 * breakpoint.c (update_inserted_breakpoint_locations)
11611 (insert_breakpoint_locations, reattach_breakpoints)
11612 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
11613 (print_it_watchpoint): Use string_file.
11614 (save_breakpoints): Use stdio_file.
11615 * c-exp.y (oper): Use string_file.
11616 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
11617 tee_file.
11618 (pop_output_files): Use delete.
11619 (handle_redirections): Use stdio_file and tee_file.
11620 * cli/cli-setshow.c (do_show_command): Use string_file.
11621 * compile/compile-c-support.c (c_compute_program): Use
11622 string_file.
11623 * compile/compile-c-symbols.c (generate_vla_size): Take a
11624 'string_file &' instead of a 'ui_file *'.
11625 (generate_c_for_for_one_variable): Take a 'string_file &' instead
11626 of a 'ui_file *'. Use string_file.
11627 (generate_c_for_variable_locations): Take a 'string_file &'
11628 instead of a 'ui_file *'.
11629 * compile/compile-internal.h (generate_c_for_for_one_variable):
11630 Take a 'string_file &' instead of a 'ui_file *'.
11631 * compile/compile-loc2c.c (push, pushf, unary, binary)
11632 (print_label, pushf_register_address, pushf_register)
11633 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
11634 'ui_file *'. Adjust.
11635 * compile/compile.c (compile_to_object): Use string_file.
11636 * compile/compile.h (compile_dwarf_expr_to_c)
11637 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
11638 'ui_file *'.
11639 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
11640 (replace_typedefs_qualified_name): Use string_file and
11641 obstack_copy0.
11642 * disasm.c (gdb_pretty_print_insn): Use string_file.
11643 (gdb_disassembly): Adjust reference the null_stream global.
11644 (do_ui_file_delete): Delete.
11645 (gdb_insn_length): Use null_stream.
11646 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
11647 * dwarf2loc.c (dwarf2_compile_property_to_c)
11648 (locexpr_generate_c_location, loclist_generate_c_location): Take a
11649 'string_file &' instead of a 'ui_file *'.
11650 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
11651 * dwarf2read.c (do_ui_file_peek_last): Delete.
11652 (dwarf2_compute_name): Use string_file.
11653 * event-top.c (gdb_setup_readline): Use stdio_file.
11654 * gdbarch.sh (verify_gdbarch): Use string_file.
11655 * gdbtypes.c (safe_parse_type): Use null_stream.
11656 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
11657 string_file.
11658 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
11659 'string_file *' instead of a 'ui_file *'.
11660 (gdbscm_arch_disassemble): Use string_file.
11661 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
11662 * guile/scm-ports.c (class ioscm_file_port): Now a class that
11663 inherits from ui_file.
11664 (ioscm_file_port_delete, ioscm_file_port_rewind)
11665 (ioscm_file_port_put): Delete.
11666 (ioscm_file_port_write): Rename to ...
11667 (ioscm_file_port::write): ... this. Remove file_port_magic
11668 checks.
11669 (ioscm_file_port_new): Delete.
11670 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
11671 ui_file_up.
11672 * guile/scm-type.c (tyscm_type_name): Use string_file.
11673 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
11674 Use string_file.
11675 * infcmd.c (print_return_value_1): Use string_file.
11676 * infrun.c (print_target_wait_results): Use string_file.
11677 * language.c (add_language): Use string_file.
11678 * location.c (explicit_to_string_internal): Use string_file.
11679 * main.c (captured_main_1): Use null_file.
11680 * maint.c (maintenance_print_architecture): Use stdio_file.
11681 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
11682 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
11683 event_channel>: Change type to mi_console_file pointer.
11684 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
11685 (mi_console_file_delete): Delete.
11686 (struct mi_console_file): Delete.
11687 (mi_console_file_magic): Delete.
11688 (mi_console_file_new): Delete.
11689 (mi_console_file::mi_console_file): New.
11690 (mi_console_file_delete): Delete.
11691 (mi_console_file_fputs): Delete.
11692 (mi_console_file::write): New.
11693 (mi_console_raw_packet): Delete.
11694 (mi_console_file::flush): New.
11695 (mi_console_file_flush): Delete.
11696 (mi_console_set_raw): Rename to ...
11697 (mi_console_file::set_raw): ... this.
11698 * mi/mi-console.h (class mi_console_file): New class.
11699 (mi_console_file_new, mi_console_set_raw): Delete.
11700 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
11701 (mi_set_logging): Use delete and tee_file. Adjust.
11702 * mi/mi-main.c (output_register): Use string_file.
11703 (mi_cmd_data_evaluate_expression): Use string_file.
11704 (mi_cmd_data_read_memory): Use string_file.
11705 (mi_cmd_execute, print_variable_or_computed): Use string_file.
11706 * mi/mi-out.c (mi_ui_out::main_stream): New.
11707 (mi_ui_out::rewind): Use main_stream and
11708 string_file.
11709 (mi_ui_out::put): Use main_stream and string_file.
11710 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
11711 Allocate a 'string_file' instead.
11712 (mi_out_new): Don't allocate a mem_fileopen stream here.
11713 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
11714 (mi_ui_out::main_stream): Declare method.
11715 * printcmd.c (eval_command): Use string_file.
11716 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
11717 * python/py-arch.c (archpy_disassemble): Use string_file.
11718 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
11719 * python/py-frame.c (frapy_str): Use string_file.
11720 * python/py-framefilter.c (py_print_type, py_print_single_arg):
11721 Use string_file.
11722 * python/py-type.c (typy_str): Use string_file.
11723 * python/py-unwind.c (unwind_infopy_str): Use string_file.
11724 * python/py-value.c (valpy_str): Use string_file.
11725 * record-btrace.c (btrace_insn_history): Use string_file.
11726 * regcache.c (regcache_print): Use stdio_file.
11727 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
11728 * remote.c (escape_buffer): Use string_file.
11729 * rust-lang.c (rust_get_disr_info): Use string_file.
11730 * serial.c (serial_open_ops_1): Use stdio_file.
11731 (do_serial_close): Use delete.
11732 * stack.c (print_frame_arg): Use string_file.
11733 (print_frame_args): Remove local mem_fileopen stream, not used.
11734 (print_frame): Use string_file.
11735 * symmisc.c (maintenance_print_symbols): Use stdio_file.
11736 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
11737 Take a 'string_file *' instead of a 'ui_file *'.
11738 * top.c (new_ui): Use stdio_file and stderr_file.
11739 (free_ui): Use delete.
11740 (execute_command_to_string): Use string_file.
11741 (quit_confirm): Use string_file.
11742 * tracepoint.c (collection_list::append_exp): Use string_file.
11743 * tui/tui-disasm.c (tui_disassemble): Use string_file.
11744 * tui/tui-file.c: Don't include "ui-file.h".
11745 (enum streamtype, struct tui_stream): Delete.
11746 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
11747 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
11748 (tui_file::tui_file): New method.
11749 (tui_file_fputs): Delete.
11750 (tui_file_get_strbuf): Delete.
11751 (tui_file::puts): New method.
11752 (tui_file_adjust_strbuf): Delete.
11753 (tui_file_flush): Delete.
11754 (tui_file::flush): New method.
11755 * tui/tui-file.h: Tweak intro comment.
11756 Include ui-file.h.
11757 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
11758 (tui_file_adjust_strbuf): Delete declarations.
11759 (class tui_file): New class.
11760 * tui/tui-io.c (tui_initialize_io): Use tui_file.
11761 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
11762 (tui_register_format): Use string_stream.
11763 * tui/tui-stack.c (tui_make_status_line): Use string_file.
11764 (tui_get_function_from_frame): Use string_file.
11765 * typeprint.c (type_to_string): Use string_file.
11766 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
11767 (null_stream): New global.
11768 (ui_file_delete): Delete.
11769 (ui_file::ui_file): New.
11770 (null_file_isatty): Delete.
11771 (ui_file::~ui_file): New.
11772 (null_file_rewind): Delete.
11773 (ui_file::printf): New.
11774 (null_file_put): Delete.
11775 (null_file_flush): Delete.
11776 (ui_file::putstr): New.
11777 (null_file_write): Delete.
11778 (ui_file::putstrn): New.
11779 (null_file_read): Delete.
11780 (ui_file::putc): New.
11781 (null_file_fputs): Delete.
11782 (null_file_write_async_safe): Delete.
11783 (ui_file::vprintf): New.
11784 (null_file_delete): Delete.
11785 (null_file::write): New.
11786 (null_file_fseek): Delete.
11787 (null_file::puts): New.
11788 (ui_file_data): Delete.
11789 (null_file::write_async_safe): New.
11790 (gdb_flush, ui_file_isatty): Adjust.
11791 (ui_file_put, ui_file_rewind): Delete.
11792 (ui_file_write): Adjust.
11793 (ui_file_write_for_put): Delete.
11794 (ui_file_write_async_safe, ui_file_read): Adjust.
11795 (ui_file_fseek): Delete.
11796 (fputs_unfiltered): Adjust.
11797 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
11798 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
11799 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
11800 (set_ui_file_data): Delete.
11801 (string_file::~string_file, string_file::write)
11802 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
11803 (do_ui_file_as_string, ui_file_as_string): Delete.
11804 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
11805 (struct mem_file): Delete.
11806 (mem_file_new): Delete.
11807 (stdio_file::stdio_file): New.
11808 (mem_file_delete): Delete.
11809 (stdio_file::stdio_file): New.
11810 (mem_fileopen): Delete.
11811 (stdio_file::~stdio_file): New.
11812 (mem_file_rewind): Delete.
11813 (stdio_file::set_stream): New.
11814 (mem_file_put): Delete.
11815 (stdio_file::open): New.
11816 (mem_file_write): Delete.
11817 (stdio_file_magic, struct stdio_file): Delete.
11818 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
11819 (stdio_file::flush): New.
11820 (stdio_file_read): Rename to ...
11821 (stdio_file::read): ... this. Adjust.
11822 (stdio_file_write): Rename to ...
11823 (stdio_file::write): ... this. Adjust.
11824 (stdio_file_write_async_safe): Rename to ...
11825 (stdio_file::write_async_safe) ... this. Adjust.
11826 (stdio_file_fputs): Rename to ...
11827 (stdio_file::puts) ... this. Adjust.
11828 (stdio_file_isatty): Delete.
11829 (stdio_file_fseek): Delete.
11830 (stdio_file::isatty): New.
11831 (stderr_file_write): Rename to ...
11832 (stderr_file::write) ... this. Adjust.
11833 (stderr_file_fputs): Rename to ...
11834 (stderr_file::puts) ... this. Adjust.
11835 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
11836 (stderr_file::stderr_file): New.
11837 (tee_file_magic): Delete.
11838 (struct tee_file): Delete.
11839 (tee_file::tee_file): New.
11840 (tee_file_new): Delete.
11841 (tee_file::~tee_file): New.
11842 (tee_file_delete): Delete.
11843 (tee_file_flush): Rename to ...
11844 (tee_file::flush): ... this. Adjust.
11845 (tee_file_write): Rename to ...
11846 (tee_file::write): ... this. Adjust.
11847 (tee_file::write_async_safe): New.
11848 (tee_file_fputs): Rename to ...
11849 (tee_file::puts): ... this. Adjust.
11850 (tee_file_isatty): Rename to ...
11851 (tee_file::isatty): ... this. Adjust.
11852 * ui-file.h (struct obstack, struct ui_file): Don't
11853 forward-declare.
11854 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
11855 (ui_file_write_ftype)
11856 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
11857 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
11858 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
11859 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
11860 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
11861 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
11862 (set_ui_file_fseek): Delete.
11863 (ui_file_data, ui_file_delete, ui_file_rewind)
11864 (struct ui_file): New.
11865 (ui_file_up): New.
11866 (class null_file): New.
11867 (null_stream): Declare.
11868 (ui_file_write_for_put, ui_file_put): Delete.
11869 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
11870 Delete.
11871 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
11872 (gdb_fopen, tee_file_new): Delete.
11873 (struct string_file): New.
11874 (struct stdio_file): New.
11875 (stdio_file_up): New.
11876 (struct stderr_file): New.
11877 (class tee_file): New.
11878 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
11879 of a 'ui_file *'. Adjust.
11880 * ui-out.h (class ui_out) <field_stream>: Likewise.
11881 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
11882 (null_stream): Delete.
11883 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
11884 Adjust.
11885 * utils.h (struct ui_file): Delete forward declaration..
11886 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
11887 (error_stream): Take a 'string_file &' instead of a
11888 'ui_file *'.
11889 * varobj.c (varobj_value_get_print_value): Use string_file.
11890 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
11891 * gdbarch.c: Regenerate.
11892
11893 2017-02-02 Pedro Alves <palves@redhat.com>
11894
11895 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
11896 (gdb_pretty_print_insn): ... this. Now a free function. Add back
11897 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
11898 Adjust to call gdb_print_insn instead of
11899 gdb_disassembler::print_insn.
11900 (dump_insns, do_mixed_source_and_assembly_deprecated)
11901 (do_mixed_source_and_assembly, do_assembly_only): Add back a
11902 'gdbarch' parameter. Remove gdb_disassembler parameter.
11903 (gdb_disassembly): Don't allocate a gdb_disassembler here.
11904 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
11905 declaration.
11906 (gdb_pretty_print_insn): Re-add declaration.
11907 * record-btrace.c (btrace_insn_history): Don't allocate a
11908 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
11909
11910 2017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
11911
11912 * disasm.h (gdb_disassembly): Remove file_string parameter.
11913 * disasm.c (gdb_disassembly): Likewise.
11914 * cli/cli-cmds.c (print_disassembly): Adapt.
11915 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
11916 * stack.c (do_gdb_disassembly): Likewise.
11917
11918 2017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
11919
11920 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
11921 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
11922 targets. And if the implicit value is longer than needed, extract
11923 the first bytes instead of the "least significant" ones.
11924
11925 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
11926
11927 * btrace.c (btrace_enable): Do not call btrace_add_pc for
11928 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
11929 (btrace_fetch): Assert can_access_registers_ptid.
11930 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
11931 validate_registers_access.
11932
11933 2017-02-01 Markus Metzger <markus.t.metzger@intel.com>
11934
11935 * gdbthread.h (can_access_registers_ptid): New.
11936 * thread.c (can_access_registers_ptid): New.
11937
11938 2017-02-01 Pedro Alves <palves@redhat.com>
11939
11940 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
11941
11942 2017-01-31 Pedro Alves <palves@redhat.com>
11943
11944 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
11945 Fix typos.
11946
11947 2017-01-31 Pedro Alves <palves@redhat.com>
11948
11949 * stack.c (print_frame_args): Remove local mem_fileopen stream,
11950 not used.
11951
11952 2017-01-31 Pedro Alves <palves@redhat.com>
11953
11954 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
11955
11956 2017-01-31 Pedro Alves <palves@redhat.com>
11957
11958 * common/scoped_restore.h
11959 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
11960 change the value's parameter type to T2.
11961 (make_scoped_restore): Likewise.
11962
11963 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11964 Richard Henderson <rth@redhat.com>
11965
11966 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
11967 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
11968 GS_BASE for older kernels.
11969 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
11970 GS_BASE for older kernels.
11971 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
11972 and GS_BASE to the offset table.
11973 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
11974 system register group.
11975 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
11976 for older kernels.
11977 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
11978 amd64 ABI.
11979 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
11980 AMD64_GSBASE_REGNUM.
11981 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
11982 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
11983 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
11984 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
11985 i386/64bit-segments.xml in those rules.
11986 * features/i386/64bit-segments.xml: New file.
11987 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
11988 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
11989 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
11990 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
11991 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
11992 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
11993 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
11994 * features/i386/amd64-avx-linux.c: Regenerated.
11995 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
11996 * features/i386/amd64-avx-mpx.c: Regenerated.
11997 * features/i386/amd64-avx512-linux.c: Regenerated.
11998 * features/i386/amd64-linux.c: Regenerated.
11999 * features/i386/amd64-mpx-linux.c: Regenerated.
12000 * features/i386/i386-avx-mpx-linux.c: Regenerated.
12001 * features/i386/i386-avx-mpx.c: Regenerated.
12002 * features/i386/x32-avx-linux.c: Regenerated.
12003 * features/i386/x32-avx512-linux.c: Regenerated.
12004 * regformats/i386/amd64-avx-linux.dat: Regenerated.
12005 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
12006 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
12007 * regformats/i386/amd64-linux.dat: Regenerated.
12008 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
12009 * regformats/i386/x32-avx-linux.dat: Regenerated.
12010 * regformats/i386/x32-avx512-linux.dat: Regenerated.
12011 * regformats/i386/x32-linux.dat: Regenerated.
12012
12013 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
12014
12015 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
12016 Set to AMD64_NUM_REGS.
12017
12018 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
12019
12020 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
12021 that checks validity of a register number.
12022
12023 2017-01-27 Kees Cook <keescook@google.com>
12024
12025 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
12026 fetch_fpregs if target has fpa registers.
12027 (arm_linux_store_inferior_registers): Call store_fpregs if target
12028 has fpa registers.
12029
12030 2017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
12031
12032 * cris-tdep.c (cris_gdbarch_init): Remove check for
12033 info.byte_order and force it to BFD_ENDIAN_LITTLE.
12034
12035 2017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
12036
12037 * corelow.c (get_core_register_section): Check for regset
12038 existence before checking for REGSET_VARIABLE_SIZE.
12039
12040 2017-01-26 Yao Qi <yao.qi@linaro.org>
12041 Pedro Alves <palves@redhat.com>
12042
12043 PR gdb/20939
12044 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
12045 call memory_error, save memaddr instead.
12046 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
12047 negative, cal memory_error.
12048 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
12049
12050 2017-01-26 Yao Qi <yao.qi@linaro.org>
12051
12052 * disasm-selftests.c (memory_error_test): New function.
12053 (_initialize_disasm_selftests): Register memory_error_test.
12054
12055 2017-01-26 Yao Qi <yao.qi@linaro.org>
12056
12057 * Makefile.in (SFILES): Add disasm-selftests.c and
12058 selftest-arch.c.
12059 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
12060 * disasm-selftests.c: New file.
12061 * selftest-arch.c: New file.
12062 * selftest-arch.h: New file.
12063
12064 2017-01-26 Yao Qi <yao.qi@linaro.org>
12065
12066 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
12067 to bfd_arch_mep. Don't return 0 if section is not
12068 found. Call print_insn_mep.
12069
12070 2017-01-26 Pedro Alves <palves@redhat.com>
12071 Yao Qi <yao.qi@linaro.org>
12072
12073 * arm-tdep.c: Include "disasm.h".
12074 (gdb_print_insn_arm): Update code to get gdbarch.
12075 * disasm.c (dis_asm_read_memory): Change it to
12076 gdb_disassembler::dis_asm_read_memory.
12077 (dis_asm_memory_error): Likewise.
12078 (dis_asm_print_address): Likewise.
12079 (gdb_pretty_print_insn): Change it to
12080 gdb_disassembler::pretty_print_insn.
12081 (dump_insns): Add one argument gdb_disassemlber. All
12082 callers updated.
12083 (do_mixed_source_and_assembly_deprecated): Likewise.
12084 (do_mixed_source_and_assembly): Likewise.
12085 (do_assembly_only): Likewise.
12086 (gdb_disassembler::gdb_disassembler): New.
12087 (gdb_disassembler::print_insn): New.
12088 * disasm.h (class gdb_disassembler): New.
12089 (gdb_pretty_print_insn): Remove declaration.
12090 (gdb_disassemble_info): Likewise.
12091 * guile/scm-disasm.c (class gdbscm_disassembler): New.
12092 (gdbscm_disasm_read_memory_worker): Update.
12093 (gdbscm_disasm_read_memory): Update.
12094 (gdbscm_disasm_memory_error): Remove.
12095 (gdbscm_disasm_print_address): Remove.
12096 (gdbscm_disassembler::gdbscm_disassembler): New.
12097 (gdbscm_print_insn_from_port): Update.
12098 * mips-tdep.c: Include disasm.h.
12099 (gdb_print_insn_mips): Update code to get gdbarch.
12100 * record-btrace.c (btrace_insn_history): Update.
12101 * spu-tdep.c: Include disasm.h.
12102 (struct spu_dis_asm_data): Remove.
12103 (struct spu_dis_asm_info): New.
12104 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
12105 SPU id.
12106 (gdb_print_insn_spu): Cast disassemble_info to
12107 spu_dis_asm_info.
12108
12109 2017-01-26 Yao Qi <yao.qi@linaro.org>
12110
12111 * disasm.c (do_ui_file_delete): Delete.
12112 (gdb_insn_length): Move code creating stream to ...
12113 * utils.c (null_stream): ... here. New function.
12114 * utils.h (null_stream): Declare.
12115
12116 2017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12117
12118 * python/py-inferior.c (find_thread_object): Return directly
12119 from the loop. Remove "found" variable.
12120
12121 2017-01-21 Joel Brobecker <brobecker@adacore.com>
12122
12123 GDB 7.12.1 released.
12124
12125 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
12126
12127 * python/py-function.c (fnpy_call): Reorder declarations to have
12128 the gdbpy_enter object declared first.
12129 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
12130
12131 2017-01-20 Simon Marchi <simon.marchi@ericsson.com>
12132
12133 PR python/21068
12134 * python/python-internal.h (PyMem_RawMalloc): Define for
12135 Python < 3.4.
12136 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
12137 PyMem_RawMalloc instead of PyMem_Malloc.
12138
12139 2017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
12140 Luis Machado <lgustavo@codesourcery.com>
12141
12142 * NEWS (New commands): Mention flash-erase.
12143 (New MI commands): Mention target-flash-erase.
12144 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
12145 command.
12146 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
12147 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
12148 * target.c (flash_erase_command): New function.
12149 (initialize_targets): Add new flash-erase command.
12150 * target.h (flash_erase_command): New declaration.
12151
12152 2017-01-20 Joel Brobecker <brobecker@adacore.com>
12153
12154 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
12155 HAVE_SYS_PROCFS_H is defined.
12156
12157 2017-01-18 Alan Hayward <alan.hayward@arm.com>
12158
12159 * remote.c (struct cached_reg): Change data into a pointer.
12160 * (stop_reply_dtr): Free data pointers before deleting vector.
12161 (process_stop_reply): Likewise.
12162 (remote_parse_stop_reply): Allocate space for data
12163
12164 2017-01-18 Alan Hayward <alan.hayward@arm.com>
12165
12166 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
12167 MAX_REGISTER_SIZE.
12168 (amd64_pseudo_register_read_value): Likewise.
12169 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
12170 (store_register_using_P): Likewise.
12171 * regcache.c (regcache_xfer_part): Likewise.
12172
12173 2017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
12174
12175 Split real and pseudo registers.
12176 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
12177 (sparc32_pseudo_regnum): New enum.
12178 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
12179 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
12180 (SPARC32_CP0_REGISTERS): New macro.
12181 (sparc32_pseudo_register_name): New function.
12182 (sparc32_register_name): Use sparc32_pseudo_register_name.
12183 (sparc32_pseudo_register_type): New function.
12184 (sparc32_register_type): Use sparc32_pseudo_register_type.
12185 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
12186 pseudo register numbers.
12187 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
12188 (SPARC64_CP0_REGISTERS): New macro.
12189 (sparc64_pseudo_register_name): New function.
12190 (sparc64_register_name): Use sparc64_pseudo_register_name.
12191 (sparc64_pseudo_register_type): New function.
12192 (sparc64_register_type): Use sparc64_pseudo_register_type.
12193 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
12194 pseudo register numbers.
12195 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
12196 sparc64_store_arguments): Handle pseudo register numbers.
12197
12198 2017-01-13 Yao Qi <yao.qi@linaro.org>
12199
12200 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
12201 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
12202 output.
12203 (getpkt_or_notif_sane_1): Likewise.
12204
12205 2017-01-13 Yao Qi <yao.qi@linaro.org>
12206
12207 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
12208 of CC. Pass "-x c++-header" instead of "-x c".
12209
12210 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
12211
12212 * remote.c (remote_can_async_p): Update comment.
12213
12214 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
12215
12216 * linux-nat.c (linux_nat_can_async_p): Update comment.
12217
12218 2017-01-12 Simon Marchi <simon.marchi@ericsson.com>
12219
12220 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
12221
12222 2017-01-11 Simon Marchi <simon.marchi@ericsson.com>
12223
12224 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
12225
12226 2017-01-10 Tom Tromey <tom@tromey.com>
12227
12228 * python/py-type.c (typy_legacy_template_argument): Update.
12229 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
12230 ~demangle_parse_info): Declare new members.
12231 (cp_demangled_name_to_comp): Return unique_ptr.
12232 (cp_demangled_name_parse_free)
12233 (make_cleanup_cp_demangled_name_parse_free)
12234 (cp_new_demangle_parse_info): Remove.
12235 * cp-support.c (do_demangled_name_parse_free_cleanup)
12236 (make_cleanup_cp_demangled_name_parse_free): Remove.
12237 (inspect_type, cp_canonicalize_string_full)
12238 (cp_canonicalize_string): Update.
12239 (mangled_name_to_comp): Change return type.
12240 (cp_class_name_from_physname, method_name_from_physname)
12241 (cp_func_name, cp_remove_params): Update.
12242 * cp-name-parser.y (demangle_parse_info): New constructor, from
12243 cp_new_demangle_parse_info.
12244 (~demangle_parse_info): New destructor, from
12245 cp_demangled_name_parse_free.
12246 (cp_merge_demangle_parse_infos): Update.
12247 (cp_demangled_name_to_comp): Change return type.
12248
12249 2017-01-10 Tom Tromey <tom@tromey.com>
12250
12251 * top.c (prevent_dont_repeat): Change return type.
12252 * python/python.c (execute_gdb_command): Use std::string.
12253 Update.
12254 * guile/guile.c (gdbscm_execute_gdb_command): Update.
12255 * command.h (prevent_dont_repeat): Change return type.
12256 * breakpoint.c (bpstat_do_actions_1): Update.
12257
12258 2017-01-10 Tom Tromey <tom@tromey.com>
12259
12260 * value.h (scoped_value_mark::~scoped_value_mark): Call
12261 free_to_mark.
12262 (scoped_value_mark::free_to_mark): New method.
12263 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
12264 scoped_value_mark.
12265
12266 2017-01-10 Tom Tromey <tom@tromey.com>
12267
12268 * python/py-value.c (valpy_dereference, valpy_referenced_value)
12269 (valpy_reference_value, valpy_const_value, valpy_get_address)
12270 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
12271 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
12272 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
12273 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
12274 scoped_value_mark.
12275 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
12276 * value.h (scoped_value_mark): New class.
12277
12278 2017-01-10 Tom Tromey <tom@tromey.com>
12279
12280 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
12281 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
12282 * psymtab.c (discard_psymtabs_upto): Remove.
12283 (make_cleanup_discard_psymtabs): Remove.
12284 (struct psymtab_state): Remove.
12285
12286 2017-01-10 Tom Tromey <tom@tromey.com>
12287
12288 * record-full.c (record_full_save_cleanups): Remove.
12289 (record_full_save): Use gdb::unlinker.
12290 * gcore.c (do_bfd_delete_cleanup): Remove.
12291 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
12292 cleanups.
12293 * dwarf2read.c (unlink_if_set): Remove.
12294 (write_psymtabs_to_index): Use gdb::unlinker.
12295 * common/gdb_unlinker.h: New file.
12296
12297 2017-01-10 Tom Tromey <tom@tromey.com>
12298
12299 * windows-tdep.c (windows_xfer_shared_library): Update.
12300 * windows-nat.c (windows_make_so): Update.
12301 * utils.h (make_cleanup_bfd_unref): Remove.
12302 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
12303 * symfile.h (symfile_bfd_open)
12304 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
12305 * symfile.c (read_symbols, symbol_file_add)
12306 (separate_debug_file_exists): Update.
12307 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
12308 (generic_load, reread_symbols): Update.
12309 * symfile-mem.c (symbol_file_add_from_memory): Update.
12310 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
12311 (spu_symbol_file_add_from_memory): Update.
12312 * solist.h (struct target_so_ops) <bfd_open>: Return
12313 gdb_bfd_ref_ptr.
12314 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
12315 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
12316 gdb_bfd_ref_ptr.
12317 (solib_map_sections, reload_shared_libraries_1): Update.
12318 * solib-svr4.c (enable_break): Update.
12319 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
12320 * solib-frv.c (enable_break2): Update.
12321 * solib-dsbt.c (enable_break): Update.
12322 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
12323 gdb_bfd_ref_ptr.
12324 (darwin_solib_get_all_image_info_addr_at_init): Update.
12325 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
12326 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
12327 * record-full.c (record_full_save): Update.
12328 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
12329 * procfs.c (insert_dbx_link_bpt_in_file): Update.
12330 * minidebug.c (find_separate_debug_file_in_section): Return
12331 gdb_bfd_ref_ptr.
12332 * machoread.c (macho_add_oso_symfile): Change abfd to
12333 gdb_bfd_ref_ptr.
12334 (macho_symfile_read_all_oso): Update.
12335 (macho_check_dsym): Return gdb_bfd_ref_ptr.
12336 (macho_symfile_read): Update.
12337 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
12338 (jit_bfd_try_read_symtab): Update.
12339 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
12340 (gdb_bfd_openw, gdb_bfd_openr_iovec)
12341 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
12342 gdb_bfd_ref_ptr.
12343 (gdb_bfd_ref_policy): New struct.
12344 (gdb_bfd_ref_ptr): New typedef.
12345 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
12346 (gdb_bfd_openw, gdb_bfd_openr_iovec)
12347 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
12348 gdb_bfd_ref_ptr.
12349 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
12350 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
12351 (gcore_command): Update.
12352 * exec.c (exec_file_attach): Update.
12353 * elfread.c (elf_symfile_read): Update.
12354 * dwarf2read.c (dwarf2_get_dwz_file): Update.
12355 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
12356 (open_and_init_dwo_file): Update.
12357 (open_dwp_file): Return gdb_bfd_ref_ptr.
12358 (open_and_init_dwp_file): Update.
12359 * corelow.c (core_open): Update.
12360 * compile/compile-object-load.c (compile_object_load): Update.
12361 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
12362 * coffread.c (coff_symfile_read): Update.
12363 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
12364 gdb_bfd_ref_ptr. Rename.
12365 (dump_bfd_file, restore_command): Update.
12366 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
12367 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
12368 (find_separate_debug_file_by_buildid): Update.
12369
12370 2017-01-10 Tom Tromey <tom@tromey.com>
12371
12372 * common/gdb_ref_ptr.h: New file.
12373 * python/py-ref.h (struct gdbpy_ref_policy): New.
12374 (gdbpy_ref): Now a typedef.
12375
12376 2017-01-10 Tom Tromey <tom@tromey.com>
12377
12378 * utils.h (make_cleanup_htab_delete): Don't declare.
12379 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
12380 Remove.
12381 * linespec.c (decode_compound_collector): Add constructor,
12382 destructor.
12383 (lookup_prefix_sym): Remove cleanup.
12384 (symtab_collector): Add constructor, destructor.
12385 (collect_symtabs_from_filename): Remove cleanup.
12386 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
12387 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
12388 Use htab_up.
12389 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
12390 * dwarf2read.c (dw2_expand_symtabs_matching)
12391 (dw2_map_symbol_filenames, dwarf_decode_macros)
12392 (write_psymtabs_to_index): Use htab_up.
12393 * dwarf2loc.c (func_verify_no_selftailcall)
12394 (call_site_find_chain_1, func_verify_no_selftailcall)
12395 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
12396 std::vector, gdb::unique_xmalloc_ptr.
12397 (call_sitep): Remove typedef.
12398 (dwarf2_locexpr_baton_eval): Remove unused variable.
12399
12400 2017-01-10 Tom Tromey <tom@tromey.com>
12401
12402 * python/python-internal.h (make_cleanup_py_decref)
12403 (make_cleanup_py_xdecref): Don't declare.
12404 * python/py-utils.c (py_decref, make_cleanup_py_decref)
12405 (py_xdecref, make_cleanup_py_xdecref): Remove.
12406
12407 2017-01-10 Tom Tromey <tom@tromey.com>
12408
12409 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
12410 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
12411
12412 2017-01-10 Tom Tromey <tom@tromey.com>
12413
12414 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
12415
12416 2017-01-10 Tom Tromey <tom@tromey.com>
12417
12418 * python/py-utils.c (unicode_to_encoded_string)
12419 (python_string_to_target_string)
12420 (python_string_to_target_python_string)
12421 (python_string_to_host_string, gdbpy_obj_to_string)
12422 (get_addr_from_python): Use gdbpy_ref.
12423
12424 2017-01-10 Tom Tromey <tom@tromey.com>
12425
12426 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
12427 gdbpy_ref.
12428
12429 2017-01-10 Tom Tromey <tom@tromey.com>
12430
12431 * python/python.c (eval_python_command, gdbpy_decode_line)
12432 (gdbpy_run_events, gdbpy_start_type_printers)
12433 (gdbpy_apply_type_printers): Use gdbpy_ref.
12434
12435 2017-01-10 Tom Tromey <tom@tromey.com>
12436
12437 * python/py-param.c (get_doc_string, compute_enum_values): Use
12438 gdbpy_ref.
12439
12440 2017-01-10 Tom Tromey <tom@tromey.com>
12441
12442 * python/py-inferior.c (find_thread_object, build_inferior_list):
12443 Use gdbpy_ref.
12444
12445 2017-01-10 Tom Tromey <tom@tromey.com>
12446
12447 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
12448
12449 2017-01-10 Tom Tromey <tom@tromey.com>
12450
12451 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
12452 gdbpy_ref.
12453
12454 2017-01-10 Tom Tromey <tom@tromey.com>
12455
12456 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
12457 extra incref.
12458 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
12459 Use gdbpy_ref.
12460
12461 2017-01-10 Tom Tromey <tom@tromey.com>
12462
12463 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
12464 gdbpy_ref.
12465
12466 2017-01-10 Tom Tromey <tom@tromey.com>
12467
12468 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
12469 decref results of PyArg_ParseTupleAndKeywords.
12470
12471 2017-01-10 Tom Tromey <tom@tromey.com>
12472
12473 * python/python.c (python_run_simple_file): Use
12474 unique_xmalloc_ptr, gdbpy_ref.
12475
12476 2017-01-10 Tom Tromey <tom@tromey.com>
12477
12478 * python/py-prettyprint.c (print_stack_unless_memory_error)
12479 (print_string_repr, print_children): Use gdbpy_ref.
12480 (dummy_python_frame): New class.
12481 (dummy_python_frame::dummy_python_frame): Rename from
12482 push_dummy_python_frame.
12483 (py_restore_tstate): Remove.
12484
12485 2017-01-10 Tom Tromey <tom@tromey.com>
12486
12487 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
12488
12489 2017-01-10 Tom Tromey <tom@tromey.com>
12490
12491 * python/python.c (ensure_python_env, restore_python_env):
12492 Remove.
12493 * python/python-internal.h (ensure_python_env): Don't declare.
12494 * varobj.h (varobj_ensure_python_env): Don't declare.
12495 * varobj.c (varobj_ensure_python_env): Remove.
12496
12497 2017-01-10 Tom Tromey <tom@tromey.com>
12498
12499 * varobj.c (varobj_value_get_print_value): Use
12500 gdbpy_enter_varobj.
12501
12502 2017-01-10 Tom Tromey <tom@tromey.com>
12503
12504 * python/py-prettyprint.c (print_string_repr, print_children):
12505 Update.
12506 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
12507 of "encoding".
12508 * varobj.c (varobj_value_get_print_value): Update.
12509 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
12510
12511 2017-01-10 Tom Tromey <tom@tromey.com>
12512
12513 * varobj.c (varobj_get_display_hint)
12514 (dynamic_varobj_has_child_method, install_new_value_visualizer)
12515 (varobj_set_visualizer, free_variable): Use
12516 gdbpy_enter_varobj.
12517
12518 2017-01-10 Tom Tromey <tom@tromey.com>
12519
12520 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
12521 (do_finish_initialization): New function. Use gdbpy_ref.
12522 (gdbpy_finish_initialization): Use gdbpy_enter. Call
12523 do_finish_initialization.
12524
12525 2017-01-10 Tom Tromey <tom@tromey.com>
12526
12527 * python/py-param.c (get_set_value, get_show_value): Use
12528 gdbpy_enter, gdbpy_ref.
12529
12530 2017-01-10 Tom Tromey <tom@tromey.com>
12531
12532 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
12533
12534 2017-01-10 Tom Tromey <tom@tromey.com>
12535
12536 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
12537
12538 2017-01-10 Tom Tromey <tom@tromey.com>
12539
12540 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
12541 Use gdbpy_enter_varobj.
12542
12543 2017-01-10 Tom Tromey <tom@tromey.com>
12544
12545 * varobj.c (gdbpy_enter_varobj): New constructor.
12546 * python/python-internal.h (gdbpy_enter_varobj): New class.
12547 * python/py-varobj.c (py_varobj_get_iterator): Use
12548 gdbpy_enter_varobj.
12549
12550 2017-01-10 Tom Tromey <tom@tromey.com>
12551
12552 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
12553 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
12554 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
12555 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
12556 unique_xmalloc_ptr.
12557 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
12558
12559 2017-01-10 Tom Tromey <tom@tromey.com>
12560
12561 * python/py-xmethods.c (invoke_match_method): Use
12562 gdbpy_ref.
12563
12564 2017-01-10 Tom Tromey <tom@tromey.com>
12565
12566 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
12567 gdbpy_enter, gdbpy_ref.
12568
12569 2017-01-10 Tom Tromey <tom@tromey.com>
12570
12571 * python/python.c (python_interactive_command): Use gdbpy_enter.
12572
12573 2017-01-10 Tom Tromey <tom@tromey.com>
12574
12575 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
12576 gdbpy_ref.
12577
12578 2017-01-10 Tom Tromey <tom@tromey.com>
12579
12580 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
12581 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
12582
12583 2017-01-10 Tom Tromey <tom@tromey.com>
12584
12585 * utils.h (htab_deleter): New struct.
12586 (htab_up): New typedef.
12587 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
12588 gdbpy_enter, gdbpy_ref, htab_up.
12589
12590 2017-01-10 Tom Tromey <tom@tromey.com>
12591
12592 * python/py-unwind.c (pending_frame_invalidate): Remove.
12593 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
12594
12595 2017-01-10 Tom Tromey <tom@tromey.com>
12596
12597 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
12598 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
12599
12600 2017-01-10 Tom Tromey <tom@tromey.com>
12601
12602 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
12603
12604 2017-01-10 Tom Tromey <tom@tromey.com>
12605
12606 * python/python.c (gdbpy_eval_from_control_command)
12607 (gdbpy_source_script, gdbpy_run_events)
12608 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
12609 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
12610 gdbpy_enter.
12611
12612 2017-01-10 Tom Tromey <tom@tromey.com>
12613
12614 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
12615
12616 2017-01-10 Tom Tromey <tom@tromey.com>
12617
12618 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
12619
12620 2017-01-10 Tom Tromey <tom@tromey.com>
12621
12622 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
12623 (python_on_inferior_call_pre, python_on_inferior_call_post)
12624 (python_on_memory_change, python_on_register_change)
12625 (python_inferior_exit, python_new_objfile, add_thread_object)
12626 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
12627
12628 2017-01-10 Tom Tromey <tom@tromey.com>
12629
12630 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
12631 (bpfinishpy_handle_exit): Use gdbpy_enter.
12632
12633 2017-01-10 Tom Tromey <tom@tromey.com>
12634
12635 * python/py-cmd.c (cmdpy_destroyer)
12636 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
12637 gdbpy_enter.
12638
12639 2017-01-10 Tom Tromey <tom@tromey.com>
12640
12641 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
12642 gdbpy_enter.
12643 (gdbpy_breakpoint_has_cond): Likewise.
12644
12645 2017-01-10 Tom Tromey <tom@tromey.com>
12646
12647 * python/python.c (gdbpy_enter): New constructor.
12648 (~gdbpy_enter): New destructor.
12649 (restore_python_env, ensure_python_env): Rewrite.
12650 * python/python-internal.h (gdbpy_enter): New class.
12651
12652 2017-01-10 Tom Tromey <tom@tromey.com>
12653
12654 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
12655
12656 2017-01-10 Tom Tromey <tom@tromey.com>
12657
12658 * python/py-value.c (value_has_field, get_field_flag)
12659 (get_field_type, valpy_getitem, convert_value_from_python): Use
12660 gdbpy_ref.
12661
12662 2017-01-10 Tom Tromey <tom@tromey.com>
12663
12664 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
12665 gdbpy_ref.
12666
12667 2017-01-10 Tom Tromey <tom@tromey.com>
12668
12669 * python/py-prettyprint.c (search_pp_list)
12670 (find_pretty_printer_from_objfiles)
12671 (find_pretty_printer_from_progspace)
12672 (find_pretty_printer_from_gdb, find_pretty_printer)
12673 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
12674 gdbpy_ref.
12675
12676 2017-01-10 Tom Tromey <tom@tromey.com>
12677
12678 * python/py-param.c (call_doc_function): Use gdbpy_ref.
12679
12680 2017-01-10 Tom Tromey <tom@tromey.com>
12681
12682 * python/py-linetable.c (build_line_table_tuple_from_pcs)
12683 (ltpy_get_all_source_lines): Use gdbpy_ref.
12684
12685 2017-01-10 Tom Tromey <tom@tromey.com>
12686
12687 * python/py-framefilter.c (extract_sym, extract_value)
12688 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
12689 gdbpy_ref.
12690
12691 2017-01-10 Tom Tromey <tom@tromey.com>
12692
12693 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
12694
12695 2017-01-10 Tom Tromey <tom@tromey.com>
12696
12697 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
12698
12699 2017-01-10 Tom Tromey <tom@tromey.com>
12700
12701 * python/py-function.c (convert_values_to_python, fnpy_init): Use
12702 gdbpy_ref.
12703
12704 2017-01-10 Tom Tromey <tom@tromey.com>
12705
12706 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
12707
12708 2017-01-10 Tom Tromey <tom@tromey.com>
12709
12710 * python/py-type.c (convert_field, make_fielditem, typy_fields)
12711 (typy_range): Use gdbpy_ref.
12712
12713 2017-01-10 Tom Tromey <tom@tromey.com>
12714
12715 * python/py-threadevent.c (create_thread_event_object): Use
12716 gdbpy_ref.
12717 * python/py-stopevent.c (create_stop_event_object): Simplify.
12718 (emit_stop_event): Use gdbpy_ref.
12719 * python/py-signalevent.c (create_signal_event_object): Use
12720 gdbpy_ref.
12721 * python/py-newobjfileevent.c (create_new_objfile_event_object)
12722 (emit_new_objfile_event, create_clear_objfiles_event_object)
12723 (emit_clear_objfiles_event): Use gdbpy_ref.
12724 * python/py-infevents.c (create_inferior_call_event_object)
12725 (create_register_changed_event_object)
12726 (create_memory_changed_event_object, emit_inferior_call_event)
12727 (emit_memory_changed_event, emit_register_changed_event): Use
12728 gdbpy_ref.
12729 * python/py-exitedevent.c (create_exited_event_object)
12730 (emit_exited_event): Use gdbpy_ref.
12731 * python/py-event.h (evpy_emit_event): Remove
12732 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
12733 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
12734 * python/py-continueevent.c (emit_continue_event): Use
12735 gdbpy_ref.
12736 * python/py-breakpoint.c (gdbpy_breakpoint_created)
12737 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
12738 gdbpy_ref.
12739 * python/py-bpevent.c (create_breakpoint_event_object): Use
12740 gdbpy_ref.
12741
12742 2017-01-10 Tom Tromey <tom@tromey.com>
12743
12744 * python/py-ref.h: New file.
12745
12746 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
12747
12748 * cli-out.c (cli_ui_out::do_redirect): Change return type to
12749 void.
12750 * cli-out.h (cli_ui_out::do_redirect): Likewise.
12751 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
12752 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
12753 * ui-out.c (ui_out::redirect): Likewise.
12754 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
12755 * cli/cli-logging.c (set_logging_redirect): Update call site of
12756 ui_out::redirect.
12757 (handle_redirections): Likewise.
12758 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
12759 * top.c (execute_command_to_string): Likewise.
12760 * utils.c (do_ui_out_redirect_pop): Likewise.
12761
12762 2017-01-10 Simon Marchi <simon.marchi@ericsson.com>
12763
12764 * stack.c (_initialize_stack): Update "frame" command help message.
12765
12766 2017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
12767
12768 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
12769
12770 2017-01-06 Yao Qi <yao.qi@linaro.org>
12771
12772 * x86-linux-nat.h: Include gdb_proc_service.h.
12773
12774 2017-01-06 Yao Qi <yao.qi@linaro.org>
12775
12776 * ser-base.h: Include serial.h.
12777
12778 2017-01-06 Yao Qi <yao.qi@linaro.org>
12779
12780 * ppc-linux-tdep.h: Include ppc-tdep.h.
12781
12782 2017-01-06 Yao Qi <yao.qi@linaro.org>
12783
12784 * nat/amd64-linux-siginfo.h: Include signal.h.
12785
12786 2017-01-06 Yao Qi <yao.qi@linaro.org>
12787
12788 * nat/aarch64-linux-hw-point.h: Include break-common.h.
12789
12790 2017-01-06 Yao Qi <yao.qi@linaro.org>
12791
12792 * mi/mi-parse.h: Include mi-cmds.h.
12793
12794 2017-01-06 Yao Qi <yao.qi@linaro.org>
12795
12796 * inf-loop.c: Don't include "target.h".
12797 * inf-loop.h: Include it here.
12798
12799 2017-01-06 Yao Qi <yao.qi@linaro.org>
12800
12801 * dfp.h: Include "dboulest.h" and "expression.h".
12802
12803 2017-01-06 Yao Qi <yao.qi@linaro.org>
12804
12805 * ax-gdb.h: Include "ax.h".
12806
12807 2017-01-06 Yao Qi <yao.qi@linaro.org>
12808
12809 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
12810 with nat/gdb_ptrace.h.
12811
12812 2017-01-05 Yao Qi <yao.qi@linaro.org>
12813
12814 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
12815 new line.
12816 (mips64_fbsd_sigframe_init): Likewise.
12817
12818 2017-01-04 John Baldwin <jhb@FreeBSD.org>
12819
12820 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
12821 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
12822
12823 2017-01-04 John Baldwin <jhb@FreeBSD.org>
12824
12825 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
12826 * NEWS: Mention new FreeBSD/mips native configuration.
12827 * config/mips/fbsd.mh: New file.
12828 * configure.host: Add mips*-*-freebsd*.
12829 * mips-fbsd-nat.c: New file.
12830
12831 2017-01-04 John Baldwin <jhb@FreeBSD.org>
12832
12833 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
12834 (ALLDEPFILES): Add mips-fbsd-tdep.c.
12835 * NEWS: Mention new FreeBSD/mips target.
12836 * configure.tgt: Add mips*-*-freebsd*.
12837 * mips-fbsd-tdep.c: New file.
12838 * mips-fbsd-tdep.h: New file.
12839
12840 2017-01-04 Yao Qi <yao.qi@linaro.org>
12841
12842 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
12843 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
12844
12845 2017-01-01 Joel Brobecker <brobecker@adacore.com>
12846
12847 Update copyright year range in all GDB files.
12848
12849 2017-01-01 Joel Brobecker <brobecker@adacore.com>
12850
12851 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
12852
12853 For older changes see ChangeLog-2016.
12854 \f
12855 Local Variables:
12856 mode: change-log
12857 left-margin: 8
12858 fill-column: 74
12859 version-control: never
12860 coding: utf-8
12861 End:
This page took 0.304824 seconds and 4 git commands to generate.