C++-ify prologue-value's pv_area
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f7b7ed97
TT
12017-10-12 Tom Tromey <tom@tromey.com>
2
3 * s390-linux-tdep.c (s390_store, s390_load)
4 (s390_check_for_saved, s390_analyze_prologue): Update.
5 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
6 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
7 * prologue-value.h (class pv_area): Move from prologue-value.c.
8 Change names of members. Add constructor, destructor, member
9 functions.
10 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
11 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
12 (pv_area_fetch, pv_area_scan): Don't declare.
13 * prologue-value.c (struct pv_area::area_entry): Now member of
14 pv_area.
15 (struct pv_area): Move to prologue-value.h.
16 (pv_area::pv_area): Rename from make_pv_area.
17 (pv_area::~pv_area): Rename from free_pv_area.
18 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
19 (clear_entries, find_entry, overlaps, store_would_trash, store)
20 (fetch, find_reg, scan): Now member of pv_area.
21 Remove "area" argument. Update.
22 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
23 Update.
24 * mn10300-tdep.c (push_reg, check_for_saved)
25 (mn10300_analyze_prologue): Update.
26 * mep-tdep.c (is_arg_spill, check_for_saved)
27 (mep_analyze_prologue): Update.
28 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
29 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
30 (m32c_is_struct_return, m32c_analyze_prologue): Update.
31 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
32 Update.
33 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
34 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
35
466eecee
SM
362017-10-12 Simon Marchi <simon.marchi@ericsson.com>
37
38 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
39 * linux-nat.c (linux_nat_delete_thread): New variable.
40 (lwp_free): Invoke linux_nat_delete_thread if set.
41 (linux_nat_set_delete_thread): New function.
42 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
43 thread delete callback.
44 * arm-linux-nat.c (arm_linux_delete_thread): New function.
45 (_initialize_arm_linux_nat): Assign thread delete callback.
46 * s390-linux-nat.c (s390_delete_thread): New function.
47 (_initialize_s390_nat): Assign thread delete callback.
48 * x86-linux-nat.c (x86_linux_add_target): Likewise.
49 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
50 function.
51 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
52 declaration.
53 * nat/x86-linux.c (x86_linux_delete_thread): New function.
54 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
55
f71c8822
TT
562017-10-09 Tom Tromey <tom@tromey.com>
57
58 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
59 std::string.
60 * tui/tui-layout.c (enum tui_status): Use std::string.
61
981a3fb3
TT
622017-10-11 Tom Tromey <tom@tromey.com>
63
64 * gdbthread.h (thread_command): Constify.
65 * inferior.h (detach_command): Constify.
66 * top.h (set_history, show_history): Constify.
67 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
68 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
69 * bsd-kvm.c (bsd_kvm_cmd): Constify.
70 * printcmd.c (set_command): Constify.
71 (non_const_set_command): New function.
72 * dcache.c (set_dcache_command, show_dcache_command): Constify.
73 * breakpoint.c (enable_command, disable_command, delete_command)
74 (catch_command, tcatch_command, set_breakpoint_cmd)
75 (show_breakpoint_cmd): Constify.
76 * macrocmd.c (macro_command): Constify.
77 * infcmd.c (unset_command, kill_command, detach_command)
78 (info_proc_cmd): Constify.
79 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
80 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
81 (info_auto_load_cmd): Constify.
82 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
83 (unset_tdesc_cmd): Constify.
84 * ada-lang.c (set_ada_command, show_ada_command)
85 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
86 * guile/guile.c (set_guile_command, show_guile_command)
87 (info_guile_command): Constify.
88 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
89 Constify.
90 * skip.c (skip_command): Constify.
91 * compile/compile.c (_initialize_compile): Constify.
92 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
93 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
94 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
95 (maint_btrace_pt_show_cmd): Constify.
96 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
97 Constify.
98 * python/python.c (user_show_python, user_set_python): Constify.
99 * mips-tdep.c (set_mips_command, show_mips_command)
100 (set_mipsfpu_command): Constify.
101 * record-btrace.c (cmd_record_btrace_start)
102 (cmd_set_record_btrace, cmd_show_record_btrace)
103 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
104 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
105 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
106 Constify.
107 * symfile.c (overlay_command): Constify.
108 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
109 * cli/cli-logging.c (set_logging_command, show_logging_command):
110 Constify.
111 * cli/cli-dump.c (dump_command, append_command)
112 (srec_dump_command, ihex_dump_command, verilog_dump_command)
113 (tekhex_dump_command, binary_dump_command)
114 (binary_append_command): Constify.
115 * cli/cli-decode.c (struct cmd_list_element): Change type of
116 "fun".
117 * cli/cli-cmds.c (info_command, show_command, set_debug)
118 (show_debug): Constify.
119 (show_command): Add non-const overload.
120 * top.c (set_history, show_history): Constify.
121 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
122 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
123 * target.c (target_command): Constify.
124 * sparc64-tdep.c (info_adi_command): Constify.
125 * record-full.c (cmd_record_full_start): Constify.
126 (set_record_full_command): Constify. Fix typo.
127 (show_record_full_command): Constify.
128 * thread.c (thread_command, thread_apply_command): Constify.
129 * memattr.c (dummy_cmd): Constify.
130 * value.c (function_command): Constify.
131 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
132 * probe.c (info_probes_command): Constify.
133 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
134 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
135 (show_thread_cmd, set_thread_default_cmd)
136 (show_thread_default_cmd): Constify.
137 (check_empty): Constify.
138 * tracepoint.c (tfind_command): Constify.
139 * cp-support.c (maint_cplus_command): Constify.
140 * windows-tdep.c (info_w32_command): Constify.
141 * record.c (cmd_record_start, set_record_command)
142 (show_record_command, info_record_command, cmd_record_goto):
143 Constify.
144 * ravenscar-thread.c (set_ravenscar_command)
145 (show_ravenscar_command): Constify.
146 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
147 Constify.
148 (add_internal_problem_command): Remove casts.
149 * arc-tdep.c (maintenance_print_arc_command): Constify.
150 * valprint.c (set_print, show_print, set_print_raw)
151 (show_print_raw): Constify.
152 * maint.c (maintenance_command, maintenance_info_command)
153 (maintenance_print_command, maintenance_set_cmd)
154 (maintenance_show_cmd, set_per_command_cmd)
155 (show_per_command_cmd, maintenance_check_command): Constify.
156 * language.c (set_check, show_check): Constify.
157 * typeprint.c (show_print_type, set_print_type): Constify.
158 * go32-nat.c (go32_info_dos_command): Constify.
159
fdf44873
TT
1602017-10-11 Tom Tromey <tom@tromey.com>
161
162 * breakpoint.c (prepare_re_set_context): Remove.
163 (breakpoint_re_set_one): Update. Don't use cleanups.
164 (breakpoint_re_set): Use scoped_restore, std::string, and
165 scoped_restore_current_language.
166
81b1e71c
TT
1672017-10-11 Tom Tromey <tom@tromey.com>
168
169 * breakpoint.c (commands_command_1): Use std::string.
170 (cleanup_executing_breakpoints): Remove.
171 (bpstat_do_actions_1): Use scoped_restore.
172 (bpstat_check_watchpoint): Use std::string.
173 (decode_static_tracepoint_spec): Likewise.
174 (break_range_command): Likewise.
175 (watch_command_1): Likewise.
176 (compare_breakpoints): Change argument types.
177 (clear_command): Use std::vector.
178 (cleanup_executing_breakpoints): Remove.
179 (update_global_location_list): Use unique_xmalloc_ptr.
180 (strace_command): Remove unused declaration.
181
4f9d9906
JB
1822017-10-11 John Baldwin <jhb@FreeBSD.org>
183
184 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
185 * NEWS: Mention new FreeBSD/arm native configuration.
186 * configure.host: Add arm*-*-freebsd*.
187 * configure.nat: Likewise.
188 * arm-fbsd-nat.c: New file.
189
7176dfd2
JB
1902017-10-11 John Baldwin <jhb@FreeBSD.org>
191
192 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
193 (ALLDEPFILES): Add arm-fbsd-tdep.c.
194 * NEWS: Mention new FreeBSD/arm target.
195 * configure.tgt: Add arm*-*-freebsd*.
196 * arm-fbsd-tdep.c: New file.
197 * arm-fbsd-tdep.h: New file.
198
fe220226
MR
1992017-10-11 Maciej W. Rozycki <macro@imgtec.com>
200
201 * linux-tdep.c (linux_make_corefile_notes): Remove call to
202 `gdbarch_elfcore_write_linux_prpsinfo'.
203 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
204 method.
205 (elf_internal_linux_prpsinfo): Remove declaration.
206 * gdbarch.h: Regenerate.
207 * gdbarch.c: Regenerate.
208
a2f63b2e
MR
2092017-10-11 Maciej W. Rozycki <macro@imgtec.com>
210
211 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
212 `set_gdbarch_elfcore_write_linux_prpsinfo'.
213
458ca1d0
PA
2142017-10-11 Pedro Alves <palves@redhat.com>
215
216 * breakpoint.c (reattach_breakpoints): Delete.
217 * breakpoint.h (reattach_breakpoints): Delete.
218
905014d7
SM
2192017-10-11 Simon Marchi <simon.marchi@ericsson.com>
220
221 * symfile.c (registered_sym_fns): Make struct, not typedef.
222 (DEF_VEC_O (registered_sym_fns)): Remove.
223 (symtab_fns): Change type to std::vector.
224 (add_symtab_fns): Adjust.
225 (find_sym_fns): Adjust.
226
56d704da
AK
2272017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
228
229 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
230 * arc-tdep.h (arc_arch_is_em): New function.
231 (arc_arch_is_hs): Likewise.
232
7fa29be9
EB
2332017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
234
235 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
236 parentheses in the declaration.
237 (macro_lookup_inclusion): Likewise.
238 (macro_lookup_definition): Likewise.
239 * p-lang.h (pascal_builtin_types): Likewise.
240 * tui/tui-data.c (tui_win_list): Likewise.
241 * tui/tui-data.h (tui_win_list): Likewise.
242 * utils.h (make_cleanup_free_section_addr_info): Likewise.
243
d9b477e3
KB
2442017-10-11 Mark Rages <markrages@gmail.com>
245
246 * target-memory.c (block_boundaries): Fix for block address not
247 aligned on block size.
248
65630365
PA
2492017-10-10 Pedro Alves <palves@redhat.com>
250 Tom Tromey <tom@tromey.com>
251
252 * breakpoint.c (struct captured_breakpoint_query_args)
253 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
254 (print_breakpoint): New.
255 * breakpoint.h (print_breakpoint): Declare.
256 * common/common-exceptions.h (enum return_reason): Remove
257 references to catch_exceptions.
258 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
259 Delete.
260 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
261 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
262 * gdb.h: Delete.
263 * gdbthread.h (thread_select): Declare.
264 * mi/mi-cmd-break.c: Don't include gdb.h.
265 (breakpoint_notify): Use print_breakpoint.
266 * mi/mi-cmd-catch.c: Don't include gdb.h.
267 * mi/mi-interp.c: Don't include gdb.h.
268 (mi_print_breakpoint_for_event): New.
269 (mi_breakpoint_created, mi_breakpoint_modified): Use
270 mi_print_breakpoint_for_event.
271 * mi/mi-main.c: Don't include gdb.h.
272 (mi_cmd_thread_select): Parse the global thread ID here. Use
273 thread_select instead of gdb_thread_select.
274 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
275 of using gdb_list_thread_ids.
276 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
277 FILEIO_ENOSYS here.
278 (remote_fileio_request): Use TRY/CATCH instead of
279 catch_exceptions.
280 * symfile-mem.c (struct symbol_file_add_from_memory_args)
281 (symbol_file_add_from_memory_wrapper): Delete.
282 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
283 * thread.c: Don't include gdb.h.
284 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
285 (thread_alive): Use thread_select.
286 (do_captured_thread_select): Delete, parts salvaged as ...
287 (thread_select): ... this new function.
288 (gdb_thread_select): Delete.
289
bf469271
PA
2902017-10-10 Pedro Alves <palves@redhat.com>
291 Tom Tromey <tom@tromey.com>
292
293 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
294 and reverse logic.
295 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
296 No longer macros. Instead ...
297 (enum wp_check_result): They're now values of this new
298 enumeration.
299 (watchpoint_check): Change return type to wp_check_result and
300 parameter type to bpstat.
301 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
302 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
303 catch_errors. Reverse logic of watchpoint_check call.
304 (breakpoint_re_set_one): Now returns void and takes a breakpoint
305 pointer as parameter.
306 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
307 * common/common-exceptions.c (throw_exception_sjlj): Update
308 comments to avoid mentioning catch_errors.
309 * exceptions.c (catch_errors): Delete.
310 * exceptions.h: Update comments to avoid mentioning catch_errors.
311 (catch_errors_ftype, catch_errors): Delete.
312 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
313 (hook_stop_stub): Delete.
314 (restore_selected_frame): Change return type to void, and
315 parameter type to const frame_id &.
316 (restore_infcall_control_state): Use TRY/CATCH instead of
317 catch_errors.
318 * main.c (captured_command_loop): Return void and remove
319 parameter. Remove references to catch_errors.
320 (captured_main): Use TRY/CATCH instead of catch_errors.
321 * objc-lang.c (objc_submethod_helper_data)
322 (find_objc_msgcall_submethod_helper): Delete.
323 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
324 catch_errors.
325 * record-full.c (record_full_message): Return void.
326 (record_full_message_args, record_full_message_wrapper): Delete.
327 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
328 instead of catch_errors.
329 * solib-aix.c (solib_aix_open_symbol_file_object): Change
330 parameter type to int.
331 * solib-darwin.c (open_symbol_file_object): Ditto.
332 * solib-dsbt.c (open_symbol_file_object): Ditto.
333 * solib-frv.c (open_symbol_file_object): Ditto.
334 * solib-svr4.c (open_symbol_file_object): Ditto.
335 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
336 * solib.c (update_solib_list): Use TRY/CATCH instead of
337 catch_errors.
338 * solist.h (struct target_so_ops) <open_symbol_file_object>:
339 Change type.
340 * symmisc.c (struct print_symbol_args): Remove.
341 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
342 (print_symbol): Change type.
343 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
344 and remove parameters.
345 (catch_errors): New.
346 (get_windows_debug_event): Adjust.
347
1a56bfa5
TT
3482017-10-09 Tom Tromey <tom@tromey.com>
349
350 * mi/mi-main.c (free_splay_tree): Remove.
351 (list_available_thread_groups): Use splay_tree_up.
352 * common/gdb_splay_tree.h: New file.
353
0c478e2d
TT
3542017-10-09 Tom Tromey <tom@tromey.com>
355
356 * mi/mi-main.c (do_nothing): Remove.
357 (list_available_thread_groups): Update.
358
cbd2b4e3
PA
3592017-10-09 Pedro Alves <palves@redhat.com>
360
361 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
362 reading registers when switching context.
363
a181c0bf
JB
3642017-10-09 John Baldwin <jhb@FreeBSD.org>
365
366 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
367 (fbsd_convert_siginfo): Likewise.
368 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
369
6e66f753
SM
3702017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
371
372 * configure.ac (try_guile_versions): Remove guile-2.2.
373 * configure: Regenerate.
374
890e9790
TT
3752017-10-09 Tom Tromey <tom@tromey.com>
376
377 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
378 (COMPILE.pre): Use $(CXX).
379
109483d9
PA
3802017-10-09 Pedro Alves <palves@redhat.com>
381
382 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
383 Use bool.
384 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
385 * cp-support.h (cp_remove_params): Now returns a
386 gdb::unique_xmalloc_ptr.
387 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
388 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
389 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
390 returning a gdb::unique_xmalloc_ptr.
391 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
392 * stack.c (find_frame_funname): Adjust to cp_remove_params
393 returning a gdb::unique_xmalloc_ptr.
394
791afaa2
TT
3952017-10-08 Tom Tromey <tom@tromey.com>
396
397 * dwarf2read.c (dwarf2_get_dwz_file): Use
398 gdb::unique_xmalloc_ptr.
399 (find_slot_in_mapped_hash): Likewise.
400 (dwarf2_physname): Likewise.
401 (create_dwo_unit_in_dwp_v1): Use std::string.
402 (create_dwo_unit_in_dwp_v2): Likewise.
403 (lookup_dwo_cutu): Likewise.
404 (inherit_abstract_dies): Use std::vector.
405 (read_array_type): Likewise.
406 (dwarf_decode_macros): Remove unused declaration.
407 (unsigned_int_compar): Remove.
408 (dwarf2_build_psymtabs_hard): Use scoped_restore.
409 (psymtabs_addrmap_cleanup): Remove.
410
30a9c02f
TT
4112017-10-08 Tom Tromey <tom@tromey.com>
412
413 * frame-unwind.c (frame_unwind_try_unwinder): Update.
414 * frame.h (frame_cleanup_after_sniffer): Declare.
415 (frame_prepare_for_sniffer): Return void.
416 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
417 type of argument.
418 (frame_prepare_for_sniffer): Return void.
419
757325a3
TT
4202017-10-08 Tom Tromey <tom@tromey.com>
421
422 * utils.h (make_cleanup_value_free): Remove.
423 * utils.c (do_value_free, struct cleanup): Remove.
424 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
425 Use gdb_value_up.
426 * value.h (struct value_deleter): New.
427 (gdb_value_up): New typedef.
428
b9c04fb2
TT
4292017-10-08 Tom Tromey <tom@tromey.com>
430
431 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
432 (make_cleanup_free_search_symbols): Remove.
433 (search_symbols): Return std::vector.
434 (symbol_search::compare_search_syms): Now member of
435 symbol_search. Change arguments.
436 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
437 (symtab_symbol_info, rbreak_command): Update.
438 * symtab.h (struct symbol_search) <next>: Remove.
439 Add constructors.
440 (symbol_search::operator<): New function.
441 (symbol_search::operator==): New function.
442 (search_symbols): Remove std::vector.
443 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
444 (symbol_search::compare_search_syms): Declare.
445
0d28b0a5
YQ
4462017-10-06 Yao Qi <yao.qi@linaro.org>
447
448 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
449 arch/aarch64-insn.o.
450 Remove one rule.
451 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
452
71917808
YQ
4532017-10-06 Yao Qi <yao.qi@linaro.org>
454
455 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
456 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
457 arch/arm-linux.o respectively.
458 * configure.tgt: Likewise.
459
2081b2b2
YQ
4602017-10-06 Yao Qi <yao.qi@linaro.org>
461
462 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
463 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
464
a1b85d28
PA
4652017-10-06 Pedro Alves <palves@redhat.com>
466
467 * windows-nat.c: Include <algorithm>.
468
d97987e2
YQ
4692017-10-06 Yao Qi <yao.qi@linaro.org>
470
471 * configure.tgt (i386_tobjs): New variable.
472 (amd64_tobjs): New variable.
473 Set $cpu_obs and $os_obs.
474
f38307f5
YQ
4752017-10-06 Yao Qi <yao.qi@linaro.org>
476
477 * Makefile.in (CONFIG_SRC_SUBDIR): New.
478 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
479 (clean): Remove object files and dependency files.
480 (distclean): Remove the directory.
481 * configure.ac: Invoke AC_CONFIG_COMMANDS.
482 * configure: Re-generated.
483 * configure.tgt: Replace amd64.o with arch/amd64.o.
484
2f924de6
JM
4852017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
486
487 PR build/22188
488 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
489 and SETEND.
490
2fd9d7ca
PA
4912017-10-05 Pedro Alves <palves@redhat.com>
492
493 * linux-nat.c (linux_child_follow_fork): When following the parent
494 and detaching the child, consult the parent thread's architecture
495 instead of the child's.
496
d13b8493
UW
4972017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
498
499 * ax.h: Do not include "doublest.h".
500 (union agent_val): Remove.
501
3b4b2f16
UW
5022017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
503
504 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
505 (decimal_to_string): Return std::string object.
506 (decimal_from_string): Accept std::string object. Return bool.
507 (decimal_from_integral, decimal_from_doublest): Remove.
508 (decimal_from_longest): Add prototype.
509 (decimal_from_ulongest): Likewise.
510 (decimal_to_longest): Likewise.
511 (decimal_from_doublest): Likewise.
512 * dfp.c: Do not include "gdbtypes.h" or "value.h".
513 (MAX_DECIMAL_STRING): Move here.
514 (decimal_to_string): Return std::string object.
515 (decimal_from_string): Accept std::string object. Return bool.
516 (decimal_from_integral): Remove, replace by ...
517 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
518 (decimal_to_longest): New function.
519 (decimal_from_floating): Remove, replace by ...
520 (decimal_from_doublest): ... this new function.
521 (decimal_to_doublest): Update to new decimal_to_string interface.
522
523 * value.c (unpack_long): Use decimal_to_longest.
524 * valops.c (value_cast): Use decimal_from_doublest instead of
525 decimal_from_floating. Use decimal_from_[u]longest isntead of
526 decimal_from_integral.
527 * valarith.c (value_args_as_decimal): Likewise.
528 * valprint.c (print_decimal_floating): Update to new
529 decimal_to_string interface.
530 * printcmd.c (printf_decfloat): Likewise.
531 * c-exp.y (parse_number): Update to new decimal_from_string interface.
532
1841ee5d
UW
5332017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
534
535 * doublest.h: Do not include "floatformat.h". Remove stale comments.
536 * gdbtypes.c: Include "floatformat.h".
537 * value.c: Likewise.
538 * m68k-tdep.c: Likewise.
539
540 * findvar.c: Do not include "floatformat.h".
541 * amd64-darwin-tdep.c: Likewise.
542 * arm-linux-tdep.c: Likewise.
543 * i386-darwin-tdep.c: Likewise.
544 * i387-tdep.c: Likewise.
545 * m68k-linux-tdep.c: Likewise.
546 * mep-tdep.c: Likewise.
547 * mips-tdep.c: Likewise.
548 * nios2-tdep.c: Likewise.
549 * s390-linux-tdep.c: Likewise.
550 * sparc-obsd-tdep.c: Likewise.
551 * sparc-tdep.c: Likewise.
552 * sparc64-tdep.c: Likewise.
553 * spu-tdep.c: Likewise.
554 * tic6x-tdep.c: Likewise.
555 * tilegx-tdep.c: Likewise.
556 * vax-tdep.c: Likewise.
557 * xstormy16-tdep.c: Likewise.
558 * xtensa-tdep.c: Likewise.
559
560 * top.c: Do not include "doublest.h".
561 * aarch64-tdep.c: Likewise.
562 * alpha-tdep.c: Likewise.
563 * arm-linux-tdep.c: Likewise.
564 * m68k-linux-tdep.c: Likewise.
565 * tilegx-tdep.c: Likewise.
566 * xstormy16-tdep.c: Likewise.
567
a80a6471
JB
5682017-10-05 John Baldwin <jhb@FreeBSD.org>
569
570 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
571 (mipsn32_fbsd_sigframe): Define.
572 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
573 for FreeBSD/mipsn32.
574
12c4bd7f
JB
5752017-10-05 John Baldwin <jhb@FreeBSD.org>
576
577 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
578 AT_HWCAP.
579
c91933e9
TG
5802017-10-05 Tristan Gingold <tgingold@free.fr>
581
582 * MAINTAINERS (Misc): Update my email address.
583
5cd63fda
PA
5842017-10-04 Pedro Alves <palves@redhat.com>
585
586 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
587 it instead of target_gdbarch.
588 (get_remote_state, get_remote_packet_size): Adjust
589 get_remote_arch_state calls, passing down target_gdbarch
590 explicitly.
591 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
592 'gdbarch' and use it instead of target_gdbarch.
593 (get_memory_packet_size): Adjust get_remote_arch_state calls,
594 passing down target_gdbarch explicitly.
595 (struct stop_reply) <arch>: New field.
596 (remote_parse_stop_reply): Use the stopped thread's architecture,
597 not the current inferior's. Save the architecture in the
598 stop_reply.
599 (process_stop_reply): Use the stop reply's architecture.
600 (process_g_packet, remote_fetch_registers)
601 (remote_prepare_to_store, store_registers_using_G)
602 (remote_store_registers): Adjust get_remote_arch_state calls,
603 using the regcache's architecture.
604 (remote_get_trace_status): Adjust get_remote_arch_state calls,
605 passing down target_gdbarch explicitly.
606 * spu-multiarch.c (spu_thread_architecture): Defer to the target
607 beneath instead of calling target_gdbarch.
608 * target.c (default_thread_architecture): Use the specified
609 inferior's architecture, instead of the current inferior's
610 architecture (via target_gdbarch).
611
ed4227b7
PA
6122017-10-04 Pedro Alves <palves@redhat.com>
613
614 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
615 case.
616 (regcache_print): Handle !target_has_registers here instead.
617
55b11ddf
PA
6182017-10-04 Pedro Alves <palves@redhat.com>
619
620 * frame.c (create_test_frame): Delete.
621 * frame.h (create_test_frame): Delete.
622 * gdbarch-selftests.c: Include gdbthread.h and target.h.
623 (class regcache_test): Delete.
624 (test_target_has_registers, test_target_has_stack)
625 (test_target_has_memory, test_target_prepare_to_store)
626 (test_target_store_registers): New functions.
627 (test_target_ops): New class.
628 (register_to_value_test): Error out if there's already a
629 process_stratum (or higher) target pushed. Create a fuller mock
630 environment, with mock target_ops, inferior, address space, thread
631 and inferior_ptid.
632 * progspace.c (struct address_space): Move to ...
633 * progspace.h (struct address_space): ... here.
634 * regcache.h (regcache::~regcache, regcache::raw_write)
635 [GDB_SELF_TEST]: No longer virtual.
636
4c71c105
SM
6372017-10-04 Simon Marchi <simon.marchi@ericsson.com>
638
639 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
640
73dcd72d
PA
6412017-10-04 Pedro Alves <palves@redhat.com>
642
643 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
644 out of 'between TRY and CATCH'.
645
44704526
PA
6462017-10-04 Pedro Alves <palves@redhat.com>
647
648 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
649 * common/common-exceptions.h (TRY): Open an outermost scope.
650 Expand intro comment.
651 (CATCH): Reindent.
652 (END_CATCH): Close the outermost scope.
653 * completer.c (complete_line_internal): Add missing END_CATCH.
654
bc3b087d
SDJ
6552017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
656
657 * NEWS (Changes since GDB 8.0): Add entry about new
658 'set-cwd-on-gdbserver' feature.
659 (New remote packets): Add entry for QSetWorkingDir.
660 * common/common-inferior.h (set_inferior_cwd): New prototype.
661 * infcmd.c (set_inferior_cwd): Remove "static".
662 (show_cwd_command): Expand text to include remote debugging.
663 * remote.c: Add PACKET_QSetWorkingDir.
664 (remote_protocol_features) <QSetWorkingDir>: New entry for
665 PACKET_QSetWorkingDir.
666 (extended_remote_set_inferior_cwd): New function.
667 (extended_remote_create_inferior): Call
668 "extended_remote_set_inferior_cwd".
669 (_initialize_remote): Call "add_packet_config_cmd" for
670 QSetWorkingDir.
671
d092c5a2
SDJ
6722017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
673
674 * NEWS (New commands): Mention "set/show cwd".
675 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
676 "cd" command's help text.
677 * common/common-inferior.h (get_inferior_cwd): New prototype.
678 * infcmd.c (inferior_cwd_scratch): New global variable.
679 (set_inferior_cwd): New function.
680 (get_inferior_cwd): Likewise.
681 (set_cwd_command): Likewise.
682 (show_cwd_command): Likewise.
683 (_initialize_infcmd): Add "set/show cwd" commands.
684 * inferior.h (class inferior) <cwd>: New field.
685 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
686 (fork_inferior): Change inferior's cwd before its execution.
687 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
688 to CreateProcess.
689
7da0a886
SDJ
6902017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
691
692 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
693 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
694 (COMMON_OBS): Add gdb_tilde_expand.o.
695 * common/gdb_tilde_expand.c: New file.
696 * common/gdb_tilde_expand.h: Likewise.
697
db8dd160
MR
6982017-10-03 Maciej W. Rozycki <macro@imgtec.com>
699
700 * gdbarch.sh (objfile): Remove duplicate declaration.
701 * gdbarch.h: Regenerate.
702
f8bfbf22
TT
7032017-10-03 Tom Tromey <tom@tromey.com>
704
705 * utils.c (internal_vproblem): Use string_vprintf.
706
5178ed48
TT
7072017-10-03 Tom Tromey <tom@tromey.com>
708
709 * printcmd.c (info_symbol_command): Use std::string.
710
8cff8730
TT
7112017-10-03 Tom Tromey <tom@tromey.com>
712
713 * top.c (gdb_safe_append_history): Use std::string.
714
895b8f30
TT
7152017-10-03 Tom Tromey <tom@tromey.com>
716
717 * event-top.c (stdin_event_handler): Update.
718 * main.c (captured_main_1): Update.
719 * top.h (make_delete_ui_cleanup): Remove.
720 (struct ui): Add constructor and destructor.
721 (new_ui, delete_ui): Remove.
722 * top.c (make_delete_ui_cleanup): Remove.
723 (new_ui_command): Use std::unique_ptr.
724 (delete_ui_cleanup): Remove.
725 (ui::ui): Rename from new_ui. Update.
726 (free_ui): Remove.
727 (ui::~ui): Rename from delete_ui. Update.
728
0efef640
TT
7292017-10-03 Tom Tromey <tom@tromey.com>
730
731 * symfile.c (load_progress): Use gdb::byte_vector.
732
245ad7d3
TT
7332017-10-03 Tom Tromey <tom@tromey.com>
734
735 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
736 declaration.
737 * printcmd.c (x_command): Remove unused declaration.
738 * symfile.c (symbol_file_command): Remove unused declaration.
739
e05550d7
TT
7402017-10-03 Tom Tromey <tom@tromey.com>
741
742 * utils.c (internal_vproblem): Use std::string.
743 (defaulted_query): Likewise.
744
b95de2b7
TT
7452017-10-03 Tom Tromey <tom@tromey.com>
746
747 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
748 * top.c (execute_command_to_string): Update.
749 * utils.c (make_cleanup_restore_page_info): Remove.
750 (do_restore_page_info_cleanup): Remove.
751 (set_batch_flag_and_restore_page_info):
752 New.
753 (make_cleanup_restore_page_info): Remove.
754 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
755 (~set_batch_flag_and_restore_page_info): New
756 (make_cleanup_restore_uinteger): Remove.
757 (make_cleanup_restore_integer): Remove.
758 (struct restore_integer_closure): Remove.
759 (restore_integer): Remove.
760 * utils.h (struct set_batch_flag_and_restore_page_info): New
761 class.
762 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
763 (make_cleanup_restore_page_info): Remove.
764 (make_cleanup_restore_uinteger) Remove.
765 (make_cleanup_restore_integer) Remove.
766
07036511
TT
7672017-10-03 Tom Tromey <tom@tromey.com>
768
769 * record-full.h (record_full_gdb_operation_disable_set): Return
770 scoped_restore_tmpl<int>.
771 * infrun.c (adjust_pc_after_break): Update.
772 (handle_signal_stop): Update.
773 * record-full.c (record_full_gdb_operation_disable_set): Return
774 scoped_restore_tmpl<int>.
775 (record_full_wait_1, record_full_insert_breakpoint)
776 (record_full_remove_breakpoint, record_full_save)
777 (record_full_goto_insn): Update.
778
45320ffa
TT
7792017-10-02 Tom Tromey <tom@tromey.com>
780
781 PR rust/22236:
782 * rust-lang.c (rust_val_print_str): New function.
783 (val_print_struct): Call it.
784 (rust_subscript): Preserve name of slice type.
785
b3e3859b
TT
7862017-10-02 Tom Tromey <tom@tromey.com>
787
788 * rust-lang.c (rust_subscript): Handle slices in
789 EVAL_AVOID_SIDE_EFFECTS case.
790
01af5e0d
TT
7912017-10-02 Tom Tromey <tom@tromey.com>
792
793 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
794
888e3ddb
TT
7952017-10-02 Tom Tromey <tom@tromey.com>
796
797 * rust-lang.h (rust_slice_type): Add "extern".
798
cc536b21
PA
7992017-10-02 Tom Tromey <tom@tromey.com>
800 Pedro Alves <palves@redhat.com>
801
802 * ada-lang.h (ada_exc_info::operator<): Make const.
803 (ada_exc_info::operator==): Make const.
804 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
805 Make const.
806
386c8614
TT
8072017-09-29 Tom Tromey <tom@tromey.com>
808
809 * target.c (read_whatever_is_readable): Change type of "result".
810 Update.
811 (free_memory_read_result_vector): Remove.
812 (read_memory_robust): Change return type. Update.
813 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
814 bin2hex, std::string.
815 * target.h (memory_read_result_s): Remove typedef.
816 (free_memory_read_result_vector): Remove.
817 (read_memory_robust): Return std::vector.
818
789c4b5e
TT
8192017-09-29 Tom Tromey <tom@tromey.com>
820
821 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
822
ab816a27
TT
8232017-09-29 Tom Tromey <tom@tromey.com>
824
825 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
826 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
827 operator< and operator==.
828 (ada_exceptions_list): Return a std::vector.
829 * ada-lang.c (ada_exc_info::operator<): Rename from
830 compare_ada_exception_info.
831 (ada_exc_info::operator==): New.
832 (sort_remove_dups_ada_exceptions_list): Change type of
833 "exceptions".
834 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
835 (ada_add_global_exceptions): Likewise.
836 (ada_exceptions_list_1): Return a std::vector.
837 (ada_exceptions_list): Likewise.
838
52f9abe4
TT
8392017-09-29 Tom Tromey <tom@tromey.com>
840
841 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
842 'std::set *'.
843 (print_one_inferior): Update.
844 (free_vector_of_ints): Remove.
845 (list_available_thread_groups): Change "ids" to std::set.
846 (mi_cmd_list_thread_groups): Update.
847 (struct collect_cores_data) <core>: Now a std::set.
848 (collect_cores): Update.
849 (unique): Remove.
850 (print_one_inferior): Update.
851
dcd5ddcc
TT
8522017-09-29 Tom Tromey <tom@tromey.com>
853
854 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
855 (mi_execute_async_cli_command): Likewise.
856 (mi_cmd_trace_frame_collected): Use field_fmt.
857
45d288cc
TT
8582017-09-29 Tom Tromey <tom@tromey.com>
859
860 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
861 gdb::byte_vector.
862
6afe2f4a
TT
8632017-09-29 Tom Tromey <tom@tromey.com>
864
865 * mi/mi-parse.c (mi_parse): Remove unused declaration.
866
9813429a
TT
8672017-09-29 Tom Tromey <tom@tromey.com>
868
869 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
870
2d6960b4
TT
8712017-09-29 Tom Tromey <tom@tromey.com>
872
873 * varobj.h (varobj_gen_name): Return std::string.
874 * varobj.c (varobj_gen_name): Return std::string.
875 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
876 (mi_cmd_var_delete): Don't copy "name".
877
784c453a
TT
8782017-09-29 Tom Tromey <tom@tromey.com>
879
880 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
881 (mi_cmd_break_insert_1): Update.
882
a9bc57b9
TT
8832017-09-29 Tom Tromey <tom@tromey.com>
884
885 * target.h (make_scoped_defer_target_commit_resume): Update.
886 * target.c (make_scoped_defer_target_commit_resume): Rename from
887 make_cleanup_defer_target_commit_resume. Return a
888 scoped_restore.
889 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
890
9754d8c4
TT
8912017-09-29 Tom Tromey <tom@tromey.com>
892
893 * main.c (captured_main_1): Remove unused declaration.
894 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
895
99ef965c
TT
8962017-09-29 Tom Tromey <tom@tromey.com>
897
898 * symtab.c (search_symbols): Remove unused outer cleanup.
899 (make_source_files_completion_list): Remove unused declaration.
900
42518ba7
TT
9012017-09-29 Tom Tromey <tom@tromey.com>
902
903 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
904
726b2169
TT
9052017-09-29 Tom Tromey <tom@tromey.com>
906
907 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
908 gdb::byte_vector.
909
55b06432
TT
9102017-09-29 Tom Tromey <tom@tromey.com>
911
912 * complaints.c (vcomplaint): Use std::string.
913
8abcee91
TT
9142017-09-29 Tom Tromey <tom@tromey.com>
915
916 * tracepoint.c (trace_variable_command): Use std::string.
917 (encode_actions_1): Remove unused declarations.
918 (create_tsv_from_upload): Use std::string.
919
6ad94bc7
TT
9202017-09-29 Tom Tromey <tom@tromey.com>
921
922 * cp-support.c (gdb_demangle): Use std::string.
923
2003f3d8
TT
9242017-09-29 Tom Tromey <tom@tromey.com>
925
926 * stack.c (parse_frame_specification): Use std::string
927 (info_frame_command): Use gdb::unique_xmalloc_ptr.
928
8f8accb5
TT
9292017-09-29 Tom Tromey <tom@tromey.com>
930
931 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
932
200aa7b1
TT
9332017-09-29 Tom Tromey <tom@tromey.com>
934
935 * utils.c (vfprintf_maybe_filtered): Use std::string.
936 (vfprintf_unfiltered): Likewise.
937
606aae8a
TT
9382017-09-29 Tom Tromey <tom@tromey.com>
939
940 * event-top.c (top_level_prompt): Return std::string.
941 (display_gdb_prompt): Update.
942
bd413795
TT
9432017-09-29 Tom Tromey <tom@tromey.com>
944
945 * unittests/common-utils-selftests.c (format): New function.
946 (string_vprintf_tests): New function.
947 (_initialize_common_utils_selftests): Register new tests.
948 * common/common-utils.c (string_vprintf): New function.
949 * common/common-utils.h (string_vprintf): Declare.
950
256642e8
PA
9512017-09-29 Pedro Alves <palves@redhat.com>
952
953 * common/rsp-low.c (unpack_varlen_hex): Constify.
954 * common/rsp-low.h (unpack_varlen_hex): Constify.
955 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
956 Constify.
957 * remote.c (remote_set_permissions, read_ptid)
958 (remote_current_thread, remote_get_threads_with_qthreadinfo)
959 (remote_static_tracepoint_marker_at)
960 (remote_static_tracepoint_markers_by_strid)
961 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
962 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
963 (parse_tracepoint_definition, parse_tsv_definition)
964 (parse_static_tracepoint_marker_definition): Constify.
965 * tracepoint.h (parse_static_tracepoint_marker_definition)
966 (parse_trace_status, parse_tracepoint_status)
967 (parse_tracepoint_definition, parse_tsv_definition): Constify.
968
b6bb3468
PA
9692017-09-29 Pedro Alves <palves@redhat.com>
970
971 * remote.c (target_buf, target_buf_size): Delete.
972 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
973 Use the connection's packet buffer instead.
974 All callers adjusted.
975 (_initialize_remote): Remove references to target_buf and
976 target_buf_size.
977
b2f8eb7a
PA
9782017-09-28 Pedro Alves <palves@redhat.com>
979
980 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
981 unittests/common-utils-selftests.c.
982 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
983 (COMMON_OBS): Remove utils-selftests.o.
984 * utils-selftests.c: Move to ...
985 * unittests/common-utils-selftests.c: ... here and rename self
986 test to "string_printf".
987
08302ed2
DE
9882017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
989
990 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
991 having NULL cus or tus.
992
96a5a1d3
UW
9932017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
994
995 * arm-tdep.c: (convert_from_extended): Remove.
996 (convert_to_extended): Likewise.
997 (arm_extract_return_value): Use convert_typed_floating.
998 (arm_store_return_value): Likewise.
999
1000 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
1001 * sh-tdep.c: Do not include "floatformat.h".
1002 (sh_littlebyte_bigword_type): New function.
1003 (sh_register_convert_to_virtual): Use convert_typed_floating.
1004 (sh_register_convert_to_raw): Likewise.
1005 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
1006 (sh64_littlebyte_bigword_type): New function.
1007 (sh64_extract_return_value): Use convert_typed_floating.
1008 (sh64_register_convert_to_virtual): Likewise.
1009 (sh64_register_convert_to_raw): Likewise.
1010
0db7851f
UW
10112017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
1012
1013 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
1014 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
1015
1016 * gdbtypes.h (union type_specific): Make field floatformat hold
1017 just a single struct floatformat, not an array.
1018 (floatformat_from_type): Move here.
1019 * gdbtypes.c (floatformat_from_type): Move here. Update to
1020 changed TYPE_FLOATFORMAT definition.
1021 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
1022 (recursive_dump_type): Likewise.
1023 (init_float_type): Install correct floatformat for byte order.
1024 (arch_float_type): Likewise.
1025
77b7c781
UW
10262017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
1027
1028 * gdbtypes.c (init_type): Change incoming argument from
1029 length-in-bytes to length-in-bits. Assert length is a
1030 multiple of TARGET_CHAR_BITS.
1031 (arch_type, arch_flags_type): Likewise.
1032 (init_integer_type): Update call to init_type.
1033 (init_character_type): Likewise.
1034 (init_boolean_type): Likewise.
1035 (init_float_type): Likewise.
1036 (init_decfloat_type): Likewise.
1037 (init_complex_type): Likewise.
1038 (init_pointer_type): Likewise.
1039 (objfile_type): Likewise.
1040 (arch_integer_type): Update call to arch_type.
1041 (arch_character_type): Likewise.
1042 (arch_boolean_type): Likewise.
1043 (arch_float_type): Likewise.
1044 (arch_decfloat_type): Likewise.
1045 (arch_complex_type): Likewise.
1046 (arch_pointer_type): Likewise.
1047 (gdbtypes_post_init): Likewise.
1048
1049 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
1050 (read_base_type): Likewise.
1051 * mdebugread.c (basic_type): Likewise.
1052 * stabsread.c (dbx_init_float_type): Likewise.
1053 (rs6000_builtin_type): Likewise.
1054 (read_range_type): Likewise. Also, fix call to init_integer_type
1055 with erroneous length argument.
1056
1057 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
1058 * d-lang.c (build_d_types): Likewise.
1059 * f-lang.c (build_fortran_types): Likewise.
1060 * go-lang.c (build_go_types): Likewise.
1061 * opencl-lang.c (build_opencl_types): Likewise.
1062 * jit.c (finalize_symtab): Likewise.
1063 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
1064 (build_std_type_info_type): Likewise.
1065 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
1066 update call to arch_flags_type.
1067
1068 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
1069 arch_type.
1070 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
1071 * windows-tdep.c (windows_get_tlb_type): Likewise.
1072
1073 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
1074 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
1075 * m32c-tdep.c (make_types): Likewise.
1076 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
1077 (rl78_psw_type): Update call to arch_flags_type.
1078 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
1079 * rx-tdep.c (rx_psw_type): Likewise.
1080 (rx_fpsw_type): Likewise.
1081 * sparc-tdep.c (sparc_psr_type): Likewise.
1082 (sparc_fsr_type): Likewise.
1083 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
1084 (sparc64_ccr_type): Likewise.
1085 (sparc64_fsr_type): Likewise.
1086 (sparc64_fprs_type): Likewise.
1087
f21b4d5c
TT
10882017-09-27 Tom Tromey <tom@tromey.com>
1089
1090 * findcmd.c (find_command): Constify.
1091
643c2ffa
TT
10922017-09-27 Tom Tromey <tom@tromey.com>
1093
1094 * ada-tasks.c (task_command_1, task_command): Constify.
1095
510e5e56
TT
10962017-09-27 Tom Tromey <tom@tromey.com>
1097
1098 * symtab.c (maintenance_print_symbol_cache)
1099 (maintenance_flush_symbol_cache)
1100 (maintenance_print_symbol_cache_statistics): Constify.
1101
e503b191
TT
11022017-09-27 Tom Tromey <tom@tromey.com>
1103
1104 * inferior.c (detach_inferior_command, kill_inferior_command)
1105 (inferior_command): Constify.
1106
4e001312
TT
11072017-09-27 Tom Tromey <tom@tromey.com>
1108
1109 * regcache.c (regcache_print, maintenance_print_registers)
1110 (maintenance_print_raw_registers)
1111 (maintenance_print_cooked_registers)
1112 (maintenance_print_register_groups)
1113 (maintenance_print_remote_registers): Constify.
1114
77763700
TT
11152017-09-27 Tom Tromey <tom@tromey.com>
1116
1117 * printcmd.c (map_display_numbers, undisplay_command)
1118 (enable_disable_display_command, enable_display_command)
1119 (disable_display_command): Constify.
1120
4495129a
TT
11212017-09-27 Tom Tromey <tom@tromey.com>
1122
1123 * breakpoint.h (delete_command): Don't declare.
1124 * breakpoint.c (delete_command, enable_once_command)
1125 (enable_count_command, enable_delete_command, breakpoint_1)
1126 (maintenance_info_breakpoints, stopin_command, stopat_command)
1127 (delete_command, delete_trace_command, save_breakpoints)
1128 (save_breakpoints_command, save_tracepoints_command): Constify.
1129
3088cf40
TT
11302017-09-27 Tom Tromey <tom@tromey.com>
1131
1132 * macrocmd.c (macro_expand_command, macro_expand_once_command)
1133 (skip_ws, extract_identifier, macro_define_command)
1134 (macro_undef_command, macro_list_command): Constify.
1135
69f476a3
TT
11362017-09-27 Tom Tromey <tom@tromey.com>
1137
1138 * infcmd.c (environment_info, set_environment_command)
1139 (unset_environment_command, path_info, info_proc_cmd_1)
1140 (info_proc_cmd_mappings, info_proc_cmd_stat)
1141 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
1142 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
1143
c4a3e68e
TT
11442017-09-27 Tom Tromey <tom@tromey.com>
1145
1146 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
1147 Constify.
1148
c9d31bd6
TT
11492017-09-27 Tom Tromey <tom@tromey.com>
1150
1151 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
1152
1f3f85eb
TT
11532017-09-27 Tom Tromey <tom@tromey.com>
1154
1155 * demangle.c (demangle_command): Constify.
1156
9c504b5d
TT
11572017-09-27 Tom Tromey <tom@tromey.com>
1158
1159 * progspace.c (maintenance_info_program_spaces_command):
1160 Constify.
1161
6663cf91
TT
11622017-09-27 Tom Tromey <tom@tromey.com>
1163
1164 * compile/compile.c (check_raw_argument, compile_file_command)
1165 (compile_code_command, compile_print_command): Constify.
1166
34e5fa26
TT
11672017-09-27 Tom Tromey <tom@tromey.com>
1168
1169 * reggroups.c (maintenance_print_reggroups): Constify.
1170
8384c356
TT
11712017-09-27 Tom Tromey <tom@tromey.com>
1172
1173 * dwarf2read.c (save_gdb_index_command): Constify.
1174
884beb0c
TT
11752017-09-27 Tom Tromey <tom@tromey.com>
1176
1177 * stap-probe.c (info_probes_stap_command): Constify.
1178
e0b2930c
TT
11792017-09-27 Tom Tromey <tom@tromey.com>
1180
1181 * fork-child.c (unset_exec_wrapper_command): Constify.
1182
f938677d
TT
11832017-09-27 Tom Tromey <tom@tromey.com>
1184
1185 * btrace.c (get_uint, get_context_size, no_chunk)
1186 (maint_btrace_packet_history_cmd)
1187 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
1188 (maint_info_btrace_cmd): Constify.
1189
8949cb87
TT
11902017-09-27 Tom Tromey <tom@tromey.com>
1191
1192 * reverse.c (delete_bookmark_command): Constify.
1193
ac88e2de
TT
11942017-09-27 Tom Tromey <tom@tromey.com>
1195
1196 * remote.c (set_memory_packet_size)
1197 (set_memory_write_packet_size, show_memory_write_packet_size)
1198 (set_memory_read_packet_size, show_memory_read_packet_size)
1199 (compare_sections_command, packet_command, remote_put_command)
1200 (remote_get_command, remote_delete_command): Constify.
1201
bd4c9dfe
TT
12022017-09-27 Tom Tromey <tom@tromey.com>
1203
1204 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
1205 (set_mipsfpu_double_command, set_mipsfpu_none_command)
1206 (set_mipsfpu_auto_command): Constify.
1207
5e93d4c6
TT
12082017-09-27 Tom Tromey <tom@tromey.com>
1209
1210 * cli/cli-cmds.h (cd_command): Constify.
1211 * cli/cli-cmds.c (cd_command): Constify.
1212
fc41a75b
TT
12132017-09-27 Tom Tromey <tom@tromey.com>
1214
1215 * thread.c (thread_name_command, thread_find_command): Constify.
1216
67810076
TT
12172017-09-27 Tom Tromey <tom@tromey.com>
1218
1219 * probe.c (enable_probes_command, disable_probes_command):
1220 Constify.
1221
1d8b34a7
TT
12222017-09-27 Tom Tromey <tom@tromey.com>
1223
1224 * symfile.c (symbol_file_command): Constify.
1225 * gdbcore.h (deprecated_file_changed_hook): Constify.
1226 * exec.c (deprecated_file_changed_hook, exec_file_command)
1227 (file_command): Constify.
1228 * defs.h (symbol_file_command): Constify.
1229
442019e1
TT
12302017-09-27 Tom Tromey <tom@tromey.com>
1231
1232 * remote-fileio.c (set_system_call_allowed)
1233 (show_system_call_allowed): Constify.
1234
2983f7cb
TT
12352017-09-27 Tom Tromey <tom@tromey.com>
1236
1237 * tracepoint.c (delete_trace_variable_command)
1238 (tfind_end_command, tfind_start_command, tfind_pc_command)
1239 (tfind_tracepoint_command, tfind_line_command)
1240 (tfind_range_command, tfind_outside_command): Constify.
1241
4fd41b24
TT
12422017-09-27 Tom Tromey <tom@tromey.com>
1243
1244 * ax-gdb.c (maint_agent_printf_command, agent_command)
1245 (agent_eval_command): Constify.
1246
f2fc3015
TT
12472017-09-27 Tom Tromey <tom@tromey.com>
1248
1249 * tracepoint.c (info_scope_command): Constify.
1250 * python/python.c (gdbpy_decode_line): Constify.
1251 * python/py-breakpoint.c (bppy_init): Constify.
1252 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
1253 * location.h: (new_linespec_location)
1254 (string_to_event_location_basic, string_to_event_location):
1255 Constify.
1256 * location.c (new_linespec_location)
1257 (string_to_event_location_basic, string_to_event_location):
1258 Constify.
1259 * linespec.h (decode_line_with_current_source)
1260 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
1261 * linespec.c (linespec_lex_to_end)
1262 (decode_line_with_current_source)
1263 (decode_line_with_last_displayed): Constify.
1264 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
1265 Constify.
1266 * cli/cli-cmds.c (edit_command, list_command): Constify.
1267 * breakpoint.h (until_break_command, watch_command_wrapper)
1268 (awatch_command_wrapper, rwatch_command_wrapper)
1269 (init_ada_exception_breakpoint): Constify.
1270 * breakpoint.c (break_command_1, dprintf_command)
1271 (break_range_command, watch_command_wrapper)
1272 (rwatch_command_wrapper, awatch_command_wrapper)
1273 (until_break_command, init_ada_exception_breakpoint)
1274 (strace_marker_create_sals_from_location, trace_command)
1275 (ftrace_command, strace_command, struct tracepoint): Constify.
1276 * ax-gdb.c (agent_command_1): Constify.
1277 * ada-lang.c (ada_exception_sal): Constify.
1278
8c2f95f4
TT
12792017-09-27 Tom Tromey <tom@tromey.com>
1280
1281 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
1282 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
1283 (get_context_size, no_chunk, get_insn_history_modifiers)
1284 (cmd_record_insn_history, get_call_history_modifiers)
1285 (cmd_record_call_history): Constify.
1286
a0d65762
TT
12872017-09-27 Tom Tromey <tom@tromey.com>
1288
1289 * source.c (show_substitute_path_command)
1290 (unset_substitute_path_command, set_substitute_path_command):
1291 Constify.
1292
58971144
TT
12932017-09-27 Tom Tromey <tom@tromey.com>
1294
1295 * typeprint.c (maintenance_print_type): Constify.
1296 * maint.c (maintenance_dump_me, maintenance_demangle)
1297 (maintenance_time_display, maintenance_info_sections)
1298 (maintenance_print_statistics, maintenance_deprecate)
1299 (maintenance_undeprecate): Constify.
1300 (maintenance_do_deprecate): Constify. Use std::string.
1301 (maintenance_selftest): Constify.
1302 * gdbtypes.h (maintenance_print_type): Constify.
1303
c482f52c
TT
13042017-09-27 Tom Tromey <tom@tromey.com>
1305
1306 * hppa-tdep.c (unwind_command): Constify.
1307
e100df1a
TT
13082017-09-27 Tom Tromey <tom@tromey.com>
1309
1310 * target-descriptions.c (unset_tdesc_filename_cmd)
1311 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
1312 Constify.
1313
31d56ade
TT
13142017-09-27 Tom Tromey <tom@tromey.com>
1315
1316 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
1317
b961da0b
TT
13182017-09-27 Tom Tromey <tom@tromey.com>
1319
1320 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
1321
e2d8ae16
TT
13222017-09-27 Tom Tromey <tom@tromey.com>
1323
1324 * tui/tui-regs.c (tui_reg_command): Constify.
1325
863779b0
TT
13262017-09-27 Tom Tromey <tom@tromey.com>
1327
1328 * skip.c (skip_file_command, skip_function_command)
1329 (skip_enable_command, skip_disable_command, skip_delete_command):
1330 Constify.
1331
cdb34d4a
TT
13322017-09-27 Tom Tromey <tom@tromey.com>
1333
1334 * record-btrace.c (cmd_record_btrace_bts_start)
1335 (cmd_record_btrace_pt_start): Constify.
1336
e99c83e7
TT
13372017-09-27 Tom Tromey <tom@tromey.com>
1338
1339 * symmisc.c (maintenance_print_symbols)
1340 (maintenance_print_msymbols, maintenance_print_objfiles)
1341 (maintenance_info_symtabs, maintenance_check_symtabs)
1342 (maintenance_expand_symtabs, maintenance_info_line_tables):
1343 Constify.
1344
32faf971
TT
13452017-09-27 Tom Tromey <tom@tromey.com>
1346
1347 * top.c (new_ui_command): Constify.
1348
2cf311eb
TT
13492017-09-27 Tom Tromey <tom@tromey.com>
1350
1351 * symfile.c (add_symbol_file_command)
1352 (remove_symbol_file_command, list_overlays_command)
1353 (map_overlay_command, unmap_overlay_command)
1354 (overlay_auto_command, overlay_manual_command)
1355 (overlay_off_command, overlay_load_command): Constify.
1356
e6738699
TT
13572017-09-27 Tom Tromey <tom@tromey.com>
1358
1359 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
1360 (info_spu_mailbox_command, info_spu_dma_command)
1361 (info_spu_proxydma_command): Constify.
1362
aa360cd5
TT
13632017-09-27 Tom Tromey <tom@tromey.com>
1364
1365 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
1366
898241a5
TT
13672017-09-27 Tom Tromey <tom@tromey.com>
1368
1369 * cli/cli-script.c (user_defined_command): Constify.
1370
2d0ac106
TT
13712017-09-27 Tom Tromey <tom@tromey.com>
1372
1373 * cli/cli-dump.c (dump_memory_command, dump_value_command)
1374 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
1375 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
1376 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
1377 (dump_binary_value, append_binary_memory, append_binary_value):
1378 Constify.
1379 (struct dump_context) <func>: Constify.
1380 (add_dump_command): Update.
1381
dede02ce
TT
13822017-09-27 Tom Tromey <tom@tromey.com>
1383
1384 * cli/cli-cmds.c (show_version, show_configuration)
1385 (source_command, show_user): Constify.
1386
d3cb6b99
TT
13872017-09-27 Tom Tromey <tom@tromey.com>
1388
1389 * target.c (maintenance_print_target_stack): Constify.
1390
1970a12f
TT
13912017-09-27 Tom Tromey <tom@tromey.com>
1392
1393 * interps.c (interpreter_exec_cmd): Constify.
1394
41243651
TT
13952017-09-27 Tom Tromey <tom@tromey.com>
1396
1397 * record-full.c (cmd_record_full_restore): Constify.
1398
4465d9db
TT
13992017-09-27 Tom Tromey <tom@tromey.com>
1400
1401 * memattr.c (enable_mem_command, disable_mem_command)
1402 (delete_mem_command): Constify.
1403
ad25e423
TT
14042017-09-27 Tom Tromey <tom@tromey.com>
1405
1406 * value.c (show_convenience): Constify.
1407
d64097b1
TT
14082017-09-27 Tom Tromey <tom@tromey.com>
1409
1410 * gdbcore.h (core_file_command): Update.
1411 * corefile.c (core_file_command): Constify.
1412
4d4589ef
TT
14132017-09-27 Tom Tromey <tom@tromey.com>
1414
1415 * user-regs.c (maintenance_print_user_registers): Constify.
1416
32a7bf17
TT
14172017-09-27 Tom Tromey <tom@tromey.com>
1418
1419 * cp-namespace.c (maintenance_cplus_namespace): Constify.
1420
4a475551
TT
14212017-09-27 Tom Tromey <tom@tromey.com>
1422
1423 * cp-support.c (first_component_command): Constify.
1424
990b9f9f
TT
14252017-09-27 Tom Tromey <tom@tromey.com>
1426
1427 * psymtab.c (maintenance_print_psymbols)
1428 (maintenance_info_psymtabs, maintenance_check_psymtabs):
1429 Constify.
1430
c281872e
TT
14312017-09-27 Tom Tromey <tom@tromey.com>
1432
1433 * windows-tdep.c (display_tib): Constify.
1434
5b64bf74
TT
14352017-09-27 Tom Tromey <tom@tromey.com>
1436
1437 * linux-fork.c (delete_checkpoint_command)
1438 (detach_checkpoint_command): Constify.
1439
4ada038f
TT
14402017-09-27 Tom Tromey <tom@tromey.com>
1441
1442 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
1443
57f5a81b
TT
14442017-09-27 Tom Tromey <tom@tromey.com>
1445
1446 * arc-tdep.c (dump_arc_instruction_command): Constify.
1447
b0a8e6c4
TT
14482017-09-27 Tom Tromey <tom@tromey.com>
1449
1450 * valprint.c (set_radix, show_radix): Constify.
1451
8d97dc1c
TT
14522017-09-27 Tom Tromey <tom@tromey.com>
1453
1454 * dtrace-probe.c (info_probes_dtrace_command): Constify.
1455
eb7c454d
TT
14562017-09-27 Tom Tromey <tom@tromey.com>
1457
1458 * command.h (not_just_help_class_command): Update.
1459 * cli/cli-decode.h (not_just_help_class_command): Update.
1460 * cli/cli-decode.c (not_just_help_class_command): Constify.
1461
e4e33335
TT
14622017-09-27 Tom Tromey <tom@tromey.com>
1463
1464 * gdb_bfd.c (maintenance_info_bfds): Constify.
1465
0450cc4c
TT
14662017-09-27 Tom Tromey <tom@tromey.com>
1467
1468 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
1469 overloads.
1470 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
1471 (do_const_cfunc): New function.
1472 (cmd_cfunc_eq): New overload.
1473 (cli_user_command_p): Check do_const_cfunc.
1474 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
1475 const_cfunc.
1476 * command.h (add_cmd): Add const overload and no-function
1477 overload.
1478 (set_cmd_cfunc): Add const overload.
1479 (cmd_const_cfunc_ftype): Declare.
1480 (cmd_cfunc_eq): Add const overload.
1481 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
1482 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
1483 overload.
1484
a9bbfbd8
TT
14852017-09-27 Tom Tromey <tom@tromey.com>
1486
1487 * macroexp.c (get_next_token_for_substitution): New function.
1488 (substitute_args): Call it. Check for __VA_OPT__.
1489
5230b05a
WT
14902017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
1491 Pedro Alves <palves@redhat.com>
1492
1493 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
1494 producer_is_icc_lt_14.
1495 (producer_is_icc_lt_14): New function.
1496 (check_producer): Add code for checking version of ICC.
1497 (producer_is_icc): Move to producer.c.
1498 (read_structure_type): Restrict ICC workaround to ICC<14.
1499 * producer.c: Include selftest.h.
1500 (producer_is_icc, producer_parsing_tests, _initialize_producer):
1501 New functions.
1502 * producer.h (producer_is_icc): New declaration.
1503
b32b108a
WT
15042017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
1505
1506 * Makefile.in (SFILES): Add producer.c.
1507 (COMMON_OBS): Add producer.o
1508 * amd64-tdep.c (producer.h): Add new include.
1509 * dwarf2read.c (producer.h): Add new include.
1510 * producer.c: New file.
1511 * producer.h: New file.
1512 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
1513 producer.c.
1514 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
1515 producer.h.
1516
5007d765
MK
15172017-09-26 Matthias Klose <doko@ubuntu.com>
1518
1519 * configure.ac: Search ncursesw before ncurses.
1520 Check ncursesw/ncurses.h before ncurses/ncurses.h.
1521 * gdb_curses.h: Include <ncursesw/ncurses.h>
1522 * config.in, configure: Regenerate.
1523
281c4447
RO
15242017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1525
1526 PR gdb/22185
1527 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
1528 obsolete.
1529 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
1530 Remove i386sol2 support.
1531 * configure.nat <i386sol2>: Remove.
1532 <sol2-64>: Fold into ...
1533 <sol2>: ... this.
1534 Move common settings to default section.
1535 Add sol-thread.o.
1536 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
1537 x86_64-*-solaris2.1[0-9]*>: Rename to ...
1538 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
1539 <i[34567]86-*-solaris*>: Remove.
1540 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
1541
1542 * configure.ac: Remove wctype in libw check.
1543 (_MSE_INT_H): Don't define on Solaris 7-9.
1544 <solaris*>: Remove libthread_db.so.1 check.
1545 * configure: Regenerate.
1546 * config.in: Regenerate.
1547
1548 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
1549 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
1550 (gdb_ps_size_t): Remove.
1551 Use base types in users.
1552 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
1553
1554 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
1555
39b06c20
RO
15562017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1557
1558 PR build/22206
1559 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
1560 (adi_is_addr_mapped): Likewise.
1561 (PSR_ICC): Don't redefine.
1562 (PSR_IMPL): Likewise.
1563
6c3e20f1
TT
15642017-09-25 Tom Tromey <tom@tromey.com>
1565
1566 * regcache.c (regcache::dump): Use string_printf.
1567
b292235f
TT
15682017-09-25 Tom Tromey <tom@tromey.com>
1569
1570 * regcache.c (class regcache_invalidator): New.
1571 (struct register_to_invalidate): Remove.
1572 (make_cleanup_regcache_invalidate): Remove.
1573 (regcache::raw_write): Use regcache_invalidator.
1574
9ac86b52
TT
15752017-09-25 Tom Tromey <tom@tromey.com>
1576
1577 * spu-tdep.c (spu2ppu_sniffer): Update.
1578 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
1579 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
1580 Remove.
1581 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
1582 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
1583 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
1584 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
1585 (frame_pop): Update.
1586
c0e383c6
TT
15872017-09-25 Tom Tromey <tom@tromey.com>
1588
1589 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
1590 * regcache.h (regcache_xfree): Don't declare.
1591 * regcache.c (regcache_xfree): Remove.
1592 (do_regcache_xfree): Use delete.
1593 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
1594 * linux-fork.c (free_fork): Use delete.
1595 (fork_save_infrun_state): Likewise.
1596 * jit.c (jit_dealloc_cache): Use delete.
1597 * infrun.c (discard_infcall_suspend_state): Use delete.
1598
791199cc
TT
15992017-09-25 Tom Tromey <tom@tromey.com>
1600
1601 * regcache.h (regcache_xmalloc): Don't declare.
1602 (regcache_raw_set_cached_value): Update comment.
1603 * regcache.c (regcache_xmalloc): Remove.
1604 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
1605 * jit.c (jit_frame_sniffer): Use new.
1606 * frame.c (frame_save_as_regcache): Use new.
1607
289e23aa
AA
16082017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1609
1610 * NEWS: Advertise support for guarded-storage registers on IBM z.
1611
1b63490c
AA
16122017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1613
1614 * s390-linux-nat.c (have_regset_gs): New static variable.
1615 (s390_linux_fetch_inferior_registers): Handle guarded-storage
1616 control block and guarded-storage broadcast control regsets.
1617 (s390_read_description): Detect whether the target has
1618 guarded-storage support, return appropriate tdesc.
1619 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
1620 (features/s390x-gs-linux64.c): Likewise.
1621 (struct gdbarch_tdep) <have_gs>: New field.
1622 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
1623 (s390_gsbc_regset): New variables.
1624 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
1625 and s390_gsbc_regset, if applicable.
1626 (s390_core_read_description): Check whether core file was from a
1627 target with guarded-storage support; include appropriate regsets.
1628 (s390_gdbarch_init): Add registers for guarded-storage support.
1629 (_initialize_s390_tdep): Initialize new target descriptions that
1630 include registers for guarded-storage support.
1631 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
1632 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
1633 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
1634 (S390_NUM_REGS): Adjust macro definition.
1635 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
1636 (tdesc_s390x_gs_linux64): New declarations.
1637
96235dc1
AA
16382017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1639
1640 * features/s390-gs-linux64.xml: New file.
1641 * features/s390-gs.xml: New file.
1642 * features/s390-gsbc.xml: New file.
1643 * features/s390x-gs-linux64.xml: New file.
1644 * features/Makefile (WHICH): Add s390-gs-linux64 and
1645 s390x-gs-linux64.
1646 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
1647 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
1648 * features/s390-gs-linux64.c: New generated file.
1649 * features/s390x-gs-linux64.c: New file.
1650 * regformats/s390-gs-linux64.dat: New file.
1651 * regformats/s390x-gs-linux64.dat: New file.
1652
b4a7c699
TT
16532017-09-23 Tom Tromey <tom@tromey.com>
1654
1655 * defs.h (make_cleanup_override_quit_handler): Don't declare.
1656
c2f97536
TT
16572017-09-22 Tom Tromey <tom@tromey.com>
1658
1659 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
1660 type to scoped_restore_tmpl.
1661 <scoped_input_handler>: Initialize m_quit_handler directly.
1662
43573013
SDJ
16632017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
1664
1665 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
1666 (cd_command): Likewise. Free "current_directory" before
1667 assigning to it.
1668 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
1669 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
1670 * top.c (gdb_dirbuf): Remove global declaration.
1671 * top.h (gdb_dirbuf): Likewise.
1672
6ec2e0f5
SDJ
16732017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
1674
1675 * gnulib/aclocal.m4: Regenerate.
1676 * gnulib/config.in: Regenerate.
1677 * gnulib/configure: Regenerate.
1678 * gnulib/import/Makefile.am: Regenerate.
1679 * gnulib/import/Makefile.in: Regenerate.
1680 * gnulib/import/assure.h: New file.
1681 * gnulib/import/at-func.c: Likewise
1682 * gnulib/import/chdir-long.c: New file.
1683 * gnulib/import/chdir-long.h: New file.
1684 * gnulib/import/cloexec.c: New file.
1685 * gnulib/import/cloexec.h: New file.
1686 * gnulib/import/close.c: New file.
1687 * gnulib/import/closedir.c: New file.
1688 * gnulib/import/dirent-private.h: New file.
1689 * gnulib/import/dup-safer.c: New file.
1690 * gnulib/import/dup.c: New file.
1691 * gnulib/import/dup2.c: New file.
1692 * gnulib/import/error.c: New file.
1693 * gnulib/import/error.h: New file.
1694 * gnulib/import/exitfail.c: New file.
1695 * gnulib/import/exitfail.h: New file.
1696 * gnulib/import/fchdir.c: New file.
1697 * gnulib/import/fcntl.c: New file.
1698 * gnulib/import/fcntl.in.h: New file.
1699 * gnulib/import/fd-hook.c: New file.
1700 * gnulib/import/fd-hook.h: New file.
1701 * gnulib/import/fd-safer.c: New file.
1702 * gnulib/import/fdopendir.c: New file.
1703 * gnulib/import/filename.h: New file.
1704 * gnulib/import/filenamecat-lgpl.c: New file.
1705 * gnulib/import/filenamecat.h: New file.
1706 * gnulib/import/fstat.c: New file.
1707 * gnulib/import/fstatat.c: New file.
1708 * gnulib/import/getcwd-lgpl.c: New file.
1709 * gnulib/import/getcwd.c: New file.
1710 * gnulib/import/getdtablesize.c: New file.
1711 * gnulib/import/getlogin_r.c: New file.
1712 * gnulib/import/getprogname.c: New file.
1713 * gnulib/import/getprogname.h: New file.
1714 * gnulib/import/gettext.h: New file.
1715 * gnulib/import/glob-libc.h: New file.
1716 * gnulib/import/glob.c: New file.
1717 * gnulib/import/glob.in.h: New file.
1718 * gnulib/import/intprops.h: New file.
1719 * gnulib/import/m4/chdir-long.m4: New file.
1720 * gnulib/import/m4/close.m4: New file.
1721 * gnulib/import/m4/closedir.m4: New file.
1722 * gnulib/import/m4/d-ino.m4: New file.
1723 * gnulib/import/m4/d-type.m4: New file.
1724 * gnulib/import/m4/dup.m4: New file.
1725 * gnulib/import/m4/dup2.m4: New file.
1726 * gnulib/import/m4/error.m4: New file.
1727 * gnulib/import/m4/fchdir.m4: New file.
1728 * gnulib/import/m4/fcntl.m4: New file.
1729 * gnulib/import/m4/fcntl_h.m4: New file.
1730 * gnulib/import/m4/fdopendir.m4: New file.
1731 * gnulib/import/m4/filenamecat.m4: New file.
1732 * gnulib/import/m4/fstat.m4: New file.
1733 * gnulib/import/m4/fstatat.m4: New file.
1734 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
1735 * gnulib/import/m4/getcwd-path-max.m4: New file.
1736 * gnulib/import/m4/getcwd.m4: New file.
1737 * gnulib/import/m4/getdtablesize.m4: New file.
1738 * gnulib/import/m4/getlogin_r.m4: New file.
1739 * gnulib/import/m4/getprogname.m4: New file.
1740 * gnulib/import/m4/glob.m4: New file.
1741 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
1742 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
1743 * gnulib/import/m4/mempcpy.m4: New file.
1744 * gnulib/import/m4/memrchr.m4: New file.
1745 * gnulib/import/m4/mode_t.m4: New file.
1746 * gnulib/import/m4/msvc-inval.m4: New file.
1747 * gnulib/import/m4/msvc-nothrow.m4: New file.
1748 * gnulib/import/m4/open.m4: New file.
1749 * gnulib/import/m4/openat.m4: New file.
1750 * gnulib/import/m4/opendir.m4: New file.
1751 * gnulib/import/m4/readdir.m4: New file.
1752 * gnulib/import/m4/realloc.m4: New file.
1753 * gnulib/import/m4/rewinddir.m4: New file.
1754 * gnulib/import/m4/save-cwd.m4: New file.
1755 * gnulib/import/m4/strdup.m4: New file.
1756 * gnulib/import/m4/strerror.m4: New file.
1757 * gnulib/import/m4/unistd-safer.m4: New file.
1758 * gnulib/import/mempcpy.c: New file.
1759 * gnulib/import/memrchr.c: New file.
1760 * gnulib/import/msvc-inval.c: New file.
1761 * gnulib/import/msvc-inval.h: New file.
1762 * gnulib/import/msvc-nothrow.c: New file.
1763 * gnulib/import/msvc-nothrow.h: New file.
1764 * gnulib/import/open.c: New file.
1765 * gnulib/import/openat-die.c: New file.
1766 * gnulib/import/openat-priv.h: New file.
1767 * gnulib/import/openat-proc.c: New file.
1768 * gnulib/import/openat.c: New file.
1769 * gnulib/import/openat.h: New file.
1770 * gnulib/import/opendir.c: New file.
1771 * gnulib/import/pipe-safer.c: New file.
1772 * gnulib/import/readdir.c: New file.
1773 * gnulib/import/realloc.c: New file.
1774 * gnulib/import/rewinddir.c: New file.
1775 * gnulib/import/save-cwd.c: New file.
1776 * gnulib/import/save-cwd.h: New file.
1777 * gnulib/import/strdup.c: New file.
1778 * gnulib/import/strerror-override.c: New file.
1779 * gnulib/import/strerror-override.h: New file.
1780 * gnulib/import/strerror.c: New file.
1781 * gnulib/import/unistd--.h: New file.
1782 * gnulib/import/unistd-safer.h: New file.
1783 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1784 "getcwd" and "glob".
1785 * ser-tcp.c: Undefine "close" before redefining it.
1786
432ae719
SM
17872017-09-21 Simon Marchi <simon.marchi@ericsson.com>
1788
1789 * guile/scm-value.c (gdbscm_value_address): Initialize address,
1790 get rid of res_val.
1791
4fa7574e
RO
17922017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1793
1794 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
1795 <sol2,sparc>: Likewise.
1796 <sol2-64,i386>: Likewise.
1797
1798 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
1799 -Wdeprecated-declarations on *-*-solaris*.
1800 * configure: Regenerate.
1801
1802 * procfs.c: Include "nat/inferior.h".
1803 (procfs_info_proc): Fix typo.
1804
f6327dcb
KB
18052017-09-21 Kevin Buettner <kevinb@redhat.com>
1806
1807 * remote.c (vector): Include.
1808 (struct private_thread_info): Add field, thread_handle.
1809 (free_private_thread_info): Deallocate storage associated with
1810 thread handle.
1811 (get_private_info_thread): Initialize `thread_handle' field.
1812 (struct thread_item): Add field, thread_handle.
1813 (clear_threads_listing_context): Deallocate storage associated
1814 with thread handle.
1815 (start_thread): Add support for "handle" attribute.
1816 (thread_attributes): Add "handle".
1817 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
1818 field.
1819 (remote_update_thread_list): Update thread_handle.
1820 (remote_thread_handle_to_thread_info): New function.
1821 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
1822
fbbe5337
KB
18232017-09-21 Kevin Buettner <kevinb@redhat.com>
1824
1825 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
1826 function.
1827 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
1828 * python/python-internal.h (thread_object_type): Declare.
1829
e04ee09e
KB
18302017-09-21 Kevin Buettner <kevinb@redhat.com>
1831
1832 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
1833 (target_thread_handle_to_thread_info): Declare.
1834 * target.c (target_thread_handle_to_thread_info): New function.
1835 * target-delegates.c: Regenerate.
1836 * gdbthread.h (find_thread_by_handle): Declare.
1837 * thread.c (find_thread_by_handle): New function.
1838 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
1839 function.
1840 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
1841
1e5b66ed
SM
18422017-09-21 Simon Marchi <simon.marchi@ericsson.com>
1843
1844 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
1845
ebe48ba0
SM
18462017-09-21 Simon Marchi <simon.marchi@ericsson.com>
1847
1848 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
1849
0a0bf5dc
YQ
18502017-09-21 Yao Qi <yao.qi@linaro.org>
1851
1852 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
1853 to gdb_target_obs.
1854
d1b0a7bf
TT
18552017-09-20 Tom Tromey <tom@tromey.com>
1856
1857 * breakpoint.c (struct counted_command_line): Remove.
1858 (breakpoint_commands): Update.
1859 (alloc_counted_command_line, incref_counted_command_line)
1860 (decref_counted_command_line, do_cleanup_counted_command_line)
1861 (make_cleanup_decref_counted_command_line): Remove.
1862 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
1863 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
1864 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
1865 (save_breakpoints): Update.
1866 * breakpoint.h (counted_command_line): Now a typedef to
1867 shared_ptr.
1868 (struct breakpoint) <commands>: Now a counted_command_line.
1869 (struct bpstats) <command>: Likewise.
1870
48649e1b
TT
18712017-09-20 Tom Tromey <tom@tromey.com>
1872
1873 * breakpoint.c (struct commands_info, do_map_commands_command):
1874 Remove.
1875 (commands_command_1): Update.
1876 (iterate_over_related_breakpoints): Take a function_view.
1877 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
1878 (delete_command): Update.
1879 (map_breakpoint_numbers): Take a function_view.
1880 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
1881 (disable_command): Update.
1882 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
1883 (enable_command): Update.
1884 (struct disp_data, do_enable_breakpoint_disp)
1885 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
1886 (do_map_enable_delete_breakpoint): Remove.
1887 (enable_once_command, enable_count_command, enable_delete_command)
1888 (delete_trace_variable_command): Update.
1889
04afa70c
TT
18902017-09-20 Tom Tromey <tom@tromey.com>
1891
1892 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
1893 (bpstat_clear): Use delete.
1894 (bpstats): New constructors.
1895 (bpstat_copy, bpstat_stop_status): Use new.
1896 (dprintf_after_condition_true): Update.
1897 * breakpoint.h (bpstats::bpstats): Add constructors.
1898 (bpstats::~bpstats): Add destructor.
1899
c83833f4
PA
19002017-09-20 Pedro Alves <palves@redhat.com>
1901
1902 * eval.c (make_params): Delete, refactored as ...
1903 (class fake_method): ... this new type's ctor.
1904 (fake_method::~fake_method): New.
1905 (evaluate_subexp_standard): Use 'fake_method'.
1906
223ffa71
TT
19072017-09-20 Tom Tromey <tom@tromey.com>
1908
1909 * windows-nat.c (get_windows_debug_event, windows_wait)
1910 (do_initial_windows_stuff, windows_attach): Update.
1911 * utils.c (vwarning, internal_vproblem): Update.
1912 (ui_unregister_input_event_handler_cleanup)
1913 (prepare_to_handle_input): Remove.
1914 (class scoped_input_handler): New.
1915 (defaulted_query, prompt_for_continue): Update.
1916 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
1917 Update.
1918 * top.c (undo_terminal_modifications_before_exit): Update.
1919 * target/target.h (target_terminal_init, target_terminal_inferior)
1920 (target_terminal_ours): Don't declare.
1921 (class target_terminal): New.
1922 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
1923 (target_terminal_ours_for_output)
1924 (make_cleanup_restore_target_terminal): Don't declare.
1925 (target_terminal_info): Remove.
1926 * target.c (enum terminal_state, terminal_state): Remove.
1927 (target_terminal::terminal_state): Define.
1928 (target_terminal::init): Rename from target_terminal_init.
1929 (target_terminal::inferior): Rename from
1930 target_terminal_inferior.
1931 (target_terminal::ours): Rename from target_terminal_ours.
1932 (target_terminal::ours_for_output): Rename from
1933 target_terminal_ours_for_output.
1934 (target_terminal::info): New method.
1935 (cleanup_restore_target_terminal)
1936 (make_cleanup_restore_target_terminal): Remove.
1937 * solib.c (handle_solib_event): Update.
1938 * remote.c (remote_serial_quit_handler): Update.
1939 (remote_terminal_inferior, remote_wait_as): Update.
1940 * record-full.c (record_full_wait_1): Update.
1941 * nto-procfs.c (procfs_create_inferior): Update.
1942 * nat/fork-inferior.c (startup_inferior): Update.
1943 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
1944 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
1945 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
1946 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
1947 (mi_breakpoint_created, mi_breakpoint_deleted)
1948 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
1949 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
1950 (mi_user_selected_context_changed, report_initial_inferior):
1951 Update.
1952 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
1953 (linux_nat_terminal_inferior): Update.
1954 * infrun.c (follow_fork_inferior)
1955 (handle_vfork_child_exec_or_exit, do_target_resume)
1956 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
1957 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
1958 Update.
1959 * inflow.c (child_terminal_init, info_terminal_command): Update.
1960 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
1961 (attach_command): Update.
1962 * infcall.c (call_thread_fsm_should_stop): Update.
1963 * gnu-nat.c (gnu_attach): Update.
1964 * extension.c (struct active_ext_lang_state)
1965 (restore_active_ext_lang): Update.
1966 * exceptions.c (print_flush): Update.
1967 * event-top.c (async_enable_stdin, default_quit_handler): Update.
1968 (struct quit_handler_cleanup_data, restore_quit_handler)
1969 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
1970 Remove.
1971 * cp-support.c (gdb_demangle): Update.
1972 * breakpoint.c (update_inserted_breakpoint_locations)
1973 (insert_breakpoint_locations, handle_jit_event)
1974 (disable_breakpoints_in_unloaded_shlib): Update.
1975 * annotate.c (annotate_breakpoints_invalid)
1976 (annotate_frames_invalid): Update.
1977
013af3fc
TT
19782017-09-20 Tom Tromey <tom@tromey.com>
1979
1980 * main.c (catch_command_errors): Rename from
1981 catch_command_errors_const.
1982 (captured_main_1): Update.
1983
06871ae8
PA
19842017-09-20 Pedro Alves <palves@redhat.com>
1985
1986 * cli/cli-cmds.c (list_command): Use print_sal_location.
1987 (print_sal_location): New function.
1988 (ambiguous_line_spec): Use print_sal_location.
1989 * linespec.c (symbol_to_sal): Record the symbol in the sal.
1990 * symtab.c (find_function_start_sal): Likewise.
1991 * symtab.h (symtab_and_line::symbol): New field.
1992
e5f25bc5
PA
19932017-09-20 Pedro Alves <palves@redhat.com>
1994
1995 * linespec.c (minsym_found): Handle non-text minsyms.
1996 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
1997
1b7fa39e
WT
19982017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
1999
2000 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
2001 backslash.
2002
37dd0825
WT
20032017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
2004
2005 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
2006 vmovups instead vmovaps.
2007 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
2008
4e5a4f58
JB
20092017-09-19 John Baldwin <jhb@FreeBSD.org>
2010
2011 * NEWS (Changes since GDB 8.0): Add starti.
2012 * infcmd.c (enum run_break): New.
2013 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
2014 case.
2015 (run_command): Use enum run_how.
2016 (start_command): Likewise.
2017 (starti_command): New function.
2018 (RUN_ARGS_HELP): New macro.
2019 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
2020 commands. Add starti command.
2021
aa70c9f1
YQ
20222017-09-19 Yao Qi <yao.qi@linaro.org>
2023
2024 * Makefile.in (monitor.o): Remove the rule.
2025
d6541620
YQ
20262017-09-19 Yao Qi <yao.qi@linaro.org>
2027
2028 * annotate.h (struct annotate_arg_emitter): Use
2029 DISABLE_COPY_AND_ASSIGN.
2030 * common/refcounted-object.h (refcounted_object): Likewise.
2031 * completer.h (struct completion_result): Likewise.
2032 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
2033 * filename-seen-cache.h (filename_seen_cache): Likewise.
2034 * gdbcore.h (thread_section_name): Likewise.
2035 * gdb_regex.h (compiled_regex): Likewise.
2036 * gdbthread.h (scoped_restore_current_thread): Likewise.
2037 * inferior.h (scoped_restore_current_inferior): Likewise.
2038 * jit.c (jit_reader): Likewise.
2039 * linespec.h (struct linespec_result): Likewise.
2040 * mi/mi-parse.h (struct mi_parse): Likewise.
2041 * nat/fork-inferior.c (execv_argv): Likewise.
2042 * progspace.h (scoped_restore_current_program_space): Likewise.
2043 * python/python-internal.h (class gdbpy_enter): Likewise.
2044 * regcache.h (regcache): Likewise.
2045 * target-descriptions.c (struct tdesc_reg): Likewise.
2046 (struct tdesc_type): Likewise.
2047 (struct tdesc_feature): Likewise.
2048 * ui-out.h (ui_out_emit_type): Likewise.
2049
0615127c
SM
20502017-09-18 Simon Marchi <simon.marchi@ericsson.com>
2051
2052 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
2053 label abort_expression.
2054
5e187554
SM
20552017-09-16 Simon Marchi <simon.marchi@ericsson.com>
2056
2057 * common/buffer.c (buffer_xml_printf): Adjust.
2058 * common/xml-utils.c (xml_escape_text): Change return type to
2059 std::string, update code accordingly.
2060 * common/xml-utils.h (xml_escape_text): Change return type to
2061 std::string.
2062 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
2063 * windows-tdep.c (windows_xfer_shared_library): Adjust.
2064 * unittests/xml-utils-selftests.c (test_xml_escape_text):
2065 Adjust.
2066
c3d7b541
SM
20672017-09-16 Simon Marchi <simon.marchi@ericsson.com>
2068
2069 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
2070 (SUBDIR_UNITTESTS_OBS): Add new object file.
2071 * unittests/xml-utils-selftests.c: New file.
2072
1526853e
SM
20732017-09-16 Simon Marchi <simon.marchi@ericsson.com>
2074
2075 * common/selftest.h (selftest): New struct/interface.
2076 (register_test): Add name parameter, add new overload.
2077 (run_tests): Add filter parameter.
2078 (for_each_selftest_ftype): New typedef.
2079 (for_each_selftest): New declaration.
2080 * common/selftest.c (tests): Change type to
2081 map<string, unique_ptr<selftest>>.
2082 (simple_selftest): New struct.
2083 (register_test): New function.
2084 (register_test): Add name parameter and use it.
2085 (run_tests): Add filter parameter and use it. Add prints.
2086 Adjust to vector -> map change.
2087 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
2088 registering selftests.
2089 * arm-tdep.c (_initialize_arm_tdep): Likewise.
2090 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
2091 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
2092 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
2093 * findvar.c (_initialize_findvar): Likewise.
2094 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
2095 * maint.c (maintenance_selftest): Update call to run_tests.
2096 (maintenance_info_selftests): New function.
2097 (_initialize_maint_cmds): Register "maintenance info selftests"
2098 command. Update "maintenance selftest" doc.
2099 * regcache.c (_initialize_regcache): Add names when registering
2100 selftests.
2101 * rust-exp.y (_initialize_rust_exp): Likewise.
2102 * selftest-arch.c (gdbarch_selftest): New struct.
2103 (gdbarch_tests): Remove.
2104 (register_test_foreach_arch): Add name parameter. Call
2105 register_test.
2106 (tests_with_arch): Remove, move most content to
2107 gdbarch_selftest::operator().
2108 (_initialize_selftests_foreach_arch): Remove.
2109 * selftest-arch.h (register_test_foreach_arch): Add name
2110 parameter.
2111 (run_tests_with_arch): New declaration.
2112 * utils-selftests.c (_initialize_utils_selftests): Add names
2113 when registering selftests.
2114 * utils.c (_initialize_utils): Likewise.
2115 * unittests/array-view-selftests.c
2116 (_initialize_array_view_selftests): Likewise.
2117 * unittests/environ-selftests.c (_initialize_environ_selftests):
2118 Likewise.
2119 * unittests/function-view-selftests.c
2120 (_initialize_function_view_selftests): Likewise.
2121 * unittests/offset-type-selftests.c
2122 (_initialize_offset_type_selftests): Likewise.
2123 * unittests/optional-selftests.c
2124 (_initialize_optional_selftests): Likewise.
2125 * unittests/scoped_restore-selftests.c
2126 (_initialize_scoped_restore_selftests): Likewise.
2127 * NEWS: Document "maintenance selftest" and "maint info
2128 selftests".
2129
5846367a
SM
21302017-09-16 Simon Marchi <simon.marchi@ericsson.com>
2131
2132 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
2133 scoped_restore.
2134
bd77e8ff
SM
21352017-09-16 Simon Marchi <simon.marchi@ericsson.com>
2136
2137 * mi/mi-main.c (mi_load_progress): Make uiout variable
2138 a unique_ptr.
2139
26a67918
PA
21402017-09-15 Pedro Alves <palves@redhat.com>
2141
2142 * compile/compile-c-types.c (convert_enum, convert_int)
2143 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
2144
3f8a7804
SM
21452017-09-15 Simon Marchi <simon.marchi@ericsson.com>
2146
2147 * dwarf2read.c (copy_string): Remove.
2148 (parse_macro_definition): Replace copy_string with savestring.
2149
8d200706
YQ
21502017-09-15 Yao Qi <yao.qi@linaro.org>
2151
2152 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
2153 gdb_target_obs.
2154 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
2155 Likewise.
2156 (i[34567]86-*-linux*): Likewise.
2157
d185219d
SM
21582017-09-14 Simon Marchi <simon.marchi@ericsson.com>
2159
2160 * dwarf2expr.h (dwarf_stack_value): Add constructor.
2161 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
2162 <stack>: Change type to std::vector.
2163 <stack_len, stack_allocated>: Remove.
2164 <grow_stack>: Remove.
2165 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
2166 (dwarf_expr_context::~dwarf_expr_context): Remove.
2167 (dwarf_expr_context::grow_stack): Remove.
2168 (dwarf_expr_context::push): Adjust.
2169 (dwarf_expr_context::pop): Adjust.
2170 (dwarf_expr_context::fetch): Adjust.
2171 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
2172 (dwarf_expr_context::stack_empty_p): Adjust.
2173 (dwarf_expr_context::execute_stack_op): Adjust.
2174
eccd80d6
SM
21752017-09-14 Simon Marchi <simon.marchi@ericsson.com>
2176
2177 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
2178 return type to bool.
2179 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
2180
69009882
SM
21812017-09-14 Simon Marchi <simon.marchi@ericsson.com>
2182
2183 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
2184 Change type to bool.
2185 (dwarf_stack_value) <in_stack_memory>: Likewise.
2186 (dwarf_expr_context) <push_address>: Change parameter type to
2187 bool.
2188 <fetch_in_stack_memory>: Change return type to bool.
2189 <push>: Change parameter type to bool.
2190 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
2191 to bool.
2192 (dwarf_expr_context::push_address): Likewise.
2193 (dwarf_expr_context::fetch_in_stack_memory): Change return type
2194 to bool.
2195 (dwarf_expr_context::execute_stack_op): Adjust.
2196 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
2197
1e467161
SM
21982017-09-14 Simon Marchi <simon.marchi@ericsson.com>
2199
2200 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
2201 (struct dwarf_expr_context) <n_pieces>: Remove.
2202 <pieces>: Change type to std::vector.
2203 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
2204 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
2205 pieces.
2206 (dwarf_expr_context::add_piece): Adjust.
2207 * dwarf2loc.c (struct piece_closure): Initialize fields.
2208 <n_pieces>: Remove.
2209 <pieces>: Change type to std::vector.
2210 (allocate_piece_closure): Adjust, change parameter to
2211 std::vector rvalue and std::move it to piece_closure.
2212 (rw_pieced_value): Adjust.
2213 (check_pieced_synthetic_pointer): Adjust.
2214 (indirect_synthetic_pointer): Adjust.
2215 (coerce_pieced_ref): Adjust.
2216 (free_pieced_value_closure): Adjust. Use delete to free
2217 piece_closure.
2218 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
2219 to allocate_piece_closure.
2220 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
2221
0782db84
SM
22222017-09-12 Simon Marchi <simon.marchi@ericsson.com>
2223
2224 * probe.h (probe_ops_cp): Remove typedef.
2225 (DEF_VEC_P (probe_ops_cp)): Remove.
2226 (all_probe_ops): Change type to std::vector.
2227 * probe.c (info_probes_for_ops): Adjust to vector change.
2228 (probe_linespec_to_ops): Likewise.
2229 (all_probe_ops): Change type to std::vector.
2230 (_initialize_probe): Adjust to vector change.
2231 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
2232 * elfread.c (elf_get_probes): Likewise.
2233 * stap-probe.c (_initialize_stap_probe): Likewise.
2234
1eac6bea
SM
22352017-09-12 Simon Marchi <simon.marchi@ericsson.com>
2236
2237 * probe.h (struct bound_probe): Define constructors.
2238 * probe.c (bound_probe_s): Remove typedef.
2239 (DEF_VEC_O (bound_probe_s)): Remove VEC.
2240 (collect_probes): Change return type to std::vector, remove
2241 cleanup.
2242 (compare_probes): Return bool, change parameter type. Change
2243 semantic to "less than".
2244 (gen_ui_out_table_header_info): Change parameter to std::vector
2245 and update.
2246 (exists_probe_with_pops): Likewise.
2247 (info_probes_for_ops): Update to std::vector change.
2248 (enable_probes_command): Likewise.
2249 (disable_probes_command): Likewise.
2250
aaa63a31
SM
22512017-09-12 Simon Marchi <simon.marchi@ericsson.com>
2252
2253 * probe.h (struct probe_ops) <get_probes>: Change parameter from
2254 vec to std::vector.
2255 * probe.c (parse_probes_in_pspace): Update.
2256 (find_probes_in_objfile): Update.
2257 (find_probe_by_pc): Update.
2258 (collect_probes): Update.
2259 (probe_any_get_probes): Update.
2260 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
2261 return type to reference to std::vector.
2262 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
2263 std::vector and update.
2264 (dtrace_process_dof): Likewise.
2265 (dtrace_get_probes): Likewise.
2266 * elfread.c (elf_get_probes): Change return type to std::vector,
2267 store an std::vector in bfd_data.
2268 (probe_key_free): Update to std::vector.
2269 * stap-probe.c (handle_stap_probe): Change parameter to
2270 std::vector and update.
2271 (stap_get_probes): Likewise.
2272 * symfile-debug.c (debug_sym_get_probes): Change return type to
2273 std::vector and update.
2274
cb85b21b
TT
22752017-09-11 Tom Tromey <tom@tromey.com>
2276
2277 * breakpoint.c (program_breakpoint_here_p): Update.
2278 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
2279 from make_show_memory_breakpoints_cleanup. Return a
2280 scoped_restore_tmpl<int>.
2281 (restore_show_memory_breakpoints): Remove.
2282 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
2283 * mem-break.c (memory_validate_breakpoint): Update.
2284 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
2285 (ia64_memory_remove_breakpoint): Update.
2286 (ia64_breakpoint_from_pc): Update.
2287 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
2288 from make_show_memory_breakpoints_cleanup.
2289
8fbc99ef
TT
22902017-09-11 Tom Tromey <tom@tromey.com>
2291
2292 * d-namespace.c (d_lookup_symbol): Use std::string.
2293 (find_symbol_in_baseclass): Likewise.
2294
50feb4bd
TT
22952017-09-11 Tom Tromey <tom@tromey.com>
2296
2297 * ctf.c (ctf_start): Use std::string.
2298
c6dc63a1
TT
22992017-09-11 Tom Tromey <tom@tromey.com>
2300
2301 * ada-lang.c (is_known_support_routine): Update.
2302 (ada_unhandled_exception_name_addr_from_raise): Update.
2303 * guile/scm-frame.c (gdbscm_frame_name): Update.
2304 * python/py-frame.c (frapy_name): Update.
2305 (frapy_function): Update.
2306 * stack.h (find_frame_funname): Update.
2307 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
2308 (print_frame): Update.
2309
d6b9b80f
TT
23102017-09-11 Tom Tromey <tom@tromey.com>
2311
2312 * findcmd.c (put_bits): Take a gdb::byte_vector.
2313 (parse_find_args): Return gdb::byte_vector. "args" now const.
2314 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
2315 cleanups.
2316 (find_command): Update.
2317
a9921622
TT
23182017-09-11 Tom Tromey <tom@tromey.com>
2319
2320 * cli/cli-script.c (class scoped_restore_hook_in): New.
2321 (clear_hook_in_cleanup): Remove.
2322 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
2323 scoped_restore_hook_in.
2324
be0d7abb
TT
23252017-09-11 Tom Tromey <tom@tromey.com>
2326
2327 * cli/cli-script.c (restore_interp): Remove.
2328 (read_command_lines): Use scoped_restore_interp.
2329 * interps.c (scoped_restore_interp::set_temp): Rename from
2330 interp_set_temp.
2331 * interps.h (class scoped_restore_interp): New.
2332 (interp_set_temp): Remove.
2333
00f675ff
TT
23342017-09-11 Tom Tromey <tom@tromey.com>
2335
2336 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
2337 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
2338 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
2339 scoped_restore.
2340 (mi_cmd_break_insert_1): Update.
2341 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
2342 scoped_restore.
2343
cb791d59
TT
23442017-09-11 Tom Tromey <tom@tromey.com>
2345
2346 * demangle.c (demangle_command): Update.
2347 * breakpoint.c (disable_command): Update.
2348 (enable_command): Update.
2349 (find_location_by_number): Make "number" const. Use
2350 get_number_trailer.
2351 * cli/cli-utils.c (extract_arg): Return std::string.
2352 * probe.c (parse_probe_linespec): Update. Change types.
2353 (collect_probes): Take string arguments.
2354 (parse_probe_linespec): Likewise.
2355 (info_probes_for_ops): Update.
2356 (enable_probes_command): Update.
2357 (disable_probes_command): Update.
2358 * break-catch-sig.c (catch_signal_split_args): Update.
2359 * mi/mi-parse.c (mi_parse): Update.
2360
2039bd9f
TT
23612017-09-11 Tom Tromey <tom@tromey.com>
2362
2363 * language.h (language_enum): Make argument const.
2364 * language.c (language_enum): Make argument const.
2365
f1735a53
TT
23662017-09-11 Tom Tromey <tom@tromey.com>
2367
2368 * common/common-utils.h (skip_to_space): Remove macro, redeclare
2369 as function.
2370 (skip_to_space): Rename from skip_to_space_const.
2371 * common/common-utils.c (skip_to_space): New function.
2372 (skip_to_space): Rename from skip_to_space_const.
2373 * cli/cli-utils.h (get_number): Rename from get_number_const.
2374 (extract_arg): Rename from extract_arg_const.
2375 * cli/cli-utils.c (get_number): Rename from get_number_const.
2376 (extract_arg): Rename from extract_arg_const.
2377 (number_or_range_parser::get_number): Use ::get_number.
2378 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
2379 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
2380 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
2381 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
2382 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
2383 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
2384 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
2385 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
2386
7d221d74
TT
23872017-09-11 Tom Tromey <tom@tromey.com>
2388
2389 * python/python.c (do_start_initialization): Use
2390 py-event-types.def to initialize types.
2391 Define all object type structures.
2392 * python/python-internal.h: Don't declare event initialization
2393 functions.
2394 * python/py-threadevent.c (thread_event_object_type): Don't
2395 define.
2396 * python/py-stopevent.c (stop_event_object_type): Don't define.
2397 * python/py-signalevent.c (signal_event_object_type): Don't
2398 declare or define.
2399 * python/py-newobjfileevent.c (new_objfile_event_object_type)
2400 (clear_objfiles_event_object_type): Don't declare or define.
2401 * python/py-infevents.c (inferior_call_pre_event_object_type)
2402 (inferior_call_post_event_object_type)
2403 (register_changed_event_object_type)
2404 (memory_changed_event_object_type): Don't declare or define.
2405 * python/py-inferior.c (new_thread_event_object_type)
2406 (new_inferior_event_object_type)
2407 (inferior_deleted_event_object_type): Don't declare or define.
2408 * python/py-exitedevent.c (exited_event_object_type): Don't
2409 declare or define.
2410 * python/py-evts.c (gdbpy_initialize_py_events): Use
2411 py-all-events.def.
2412 * python/py-events.h (thread_event_object_type): Don't declare.
2413 (events_object): Use py-all-events.def.
2414 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
2415 py-event-types.def.
2416 * python/py-event-types.def: New file.
2417 * python/py-continueevent.c (create_continue_event_object): Don't
2418 declare or define.
2419 * python/py-bpevent.c (breakpoint_event_object_type): Don't
2420 declare or define.
2421 * python/py-all-events.def: New file.
2422
35c61a1d
TT
24232017-09-11 Tom Tromey <tom@tromey.com>
2424
2425 * python/py-threadevent.c (create_thread_event_object): Return
2426 gdbpy_ref.
2427 * python/py-stopevent.h (create_stop_event_object)
2428 (create_breakpoint_event_object, create_signal_event_object):
2429 Update.
2430 * python/py-stopevent.c (create_stop_event_object): Return
2431 gdbpy_ref.
2432 (emit_stop_event): Update.
2433 * python/py-signalevent.c (create_signal_event_object): Return
2434 gdbpy_ref.
2435 * python/py-infevents.c (create_inferior_call_event_object):
2436 Update.
2437 * python/py-event.h (create_event_object)
2438 (create_thread_event_object): Update.
2439 * python/py-event.c (create_event_object): Return gdbpy_ref.
2440 * python/py-continueevent.c: Return gdbpy_ref.
2441 * python/py-bpevent.c (create_breakpoint_event_object): Return
2442 gdbpy_ref.
2443
7c96f8c1
TT
24442017-09-11 Tom Tromey <tom@tromey.com>
2445
2446 PR python/15622:
2447 * NEWS: Add entry.
2448 * python/python.c (do_start_initialization): Initialize new event
2449 types.
2450 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
2451 (gdbpy_initialize_inferior_deleted_event)
2452 (gdbpy_initialize_new_thread_event): Declare.
2453 * python/py-threadevent.c (create_thread_event_object): Add option
2454 "thread" parameter.
2455 * python/py-inferior.c (new_thread_event_object_type)
2456 (new_inferior_event_object_type)
2457 (inferior_deleted_event_object_type): Declare.
2458 (python_new_inferior, python_inferior_deleted): New functions.
2459 (add_thread_object): Emit new_thread event.
2460 (gdbpy_initialize_inferior): Attach new functions to corresponding
2461 observers.
2462 (new_thread, new_inferior, inferior_deleted): Define new event
2463 types.
2464 * python/py-evts.c (gdbpy_initialize_py_events): Add new
2465 registries.
2466 * python/py-events.h (events_object) <new_inferior,
2467 inferior_deleted, new_thread>: New fields.
2468 * python/py-event.h (create_thread_event_breakpoint): Add optional
2469 "thread" parameter.
2470
72542b8e
AB
24712017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
2472
2473 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
2474 check current_ui instead.
2475 (internal_vproblem): Likewise.
2476
0d64823e
SM
24772017-09-09 Simon Marchi <simon.marchi@ericsson.com>
2478
2479 * thread.c (print_thread_info_1): Remove unnecessary calls to
2480 uiout->is_mi_like_p.
2481
eb1e02fd
TT
24822017-09-09 Tom Tromey <tom@tromey.com>
2483
2484 * namespace.h (add_using_directive): Update.
2485 * namespace.c (add_using_directive): Change type of excludes to
2486 std::vector.
2487 * dwarf2read.c (read_import_statement): Use std::vector.
2488 (read_namespace): Update.
2489 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
2490
0fc21fd8
TT
24912017-09-09 Tom Tromey <tom@tromey.com>
2492
2493 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
2494
49663d05
TT
24952017-09-09 Tom Tromey <tom@tromey.com>
2496
2497 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
2498
0b868b60
TT
24992017-09-09 Tom Tromey <tom@tromey.com>
2500
2501 * stack.c (func_command): Use gdb::def_vector.
2502
c0470d48
TT
25032017-09-09 Tom Tromey <tom@tromey.com>
2504
2505 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
2506 ui_out_emit_list, ui_out_emit_tuple.
2507 (mi_cmd_var_update): Likewise.
2508
ca5909c7
TT
25092017-09-09 Tom Tromey <tom@tromey.com>
2510
2511 * mi/mi-interp.c (mi_user_selected_context_changed): Use
2512 ui_out_redirect_pop.
2513 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
2514 ui_out_redirect_pop.
2515 * utils.c (do_ui_out_redirect_pop)
2516 (make_cleanup_ui_out_redirect_pop): Remove.
2517 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
2518 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
2519 * ui-out.h (ui_out_redirect_pop): New class.
2520
e6a2252a
TT
25212017-09-09 Tom Tromey <tom@tromey.com>
2522
2523 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
2524 (list_available_thread_groups, mi_cmd_list_thread_groups)
2525 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
2526 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
2527 Likewise.
2528
393702cd
TT
25292017-09-09 Tom Tromey <tom@tromey.com>
2530
2531 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
2532 ui_out_emit_tuple.
2533
76f9c9cf
TT
25342017-09-09 Tom Tromey <tom@tromey.com>
2535
2536 * target.c (flash_erase_command): Use ui_out_emit_tuple.
2537 * stack.c (print_frame): Use ui_out_emit_tuple.
2538 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
2539 (info_spu_mailbox_command, info_spu_dma_command)
2540 (info_spu_proxydma_command): Likewise.
2541 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
2542 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
2543 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
2544 ui_out_emit_tuple.
2545 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
2546
dc9fe180
TT
25472017-09-09 Tom Tromey <tom@tromey.com>
2548
2549 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
2550 (class ui_out_emit_table): Update comment.
2551 * ui-out.c (do_cleanup_table_end)
2552 (make_cleanup_ui_out_table_begin_end): Remove.
2553 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
2554 (info_spu_dma_cmdlist): Likewise.
2555 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
2556 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
2557 ui_out_emit_table.
2558
f8cc3da6
TT
25592017-09-09 Tom Tromey <tom@tromey.com>
2560
2561 * thread.c (print_thread_info_1): Use ui_out_emit_table,
2562 ui_out_emit_list, gdb::optional.
2563
481695ed
JB
25642017-09-09 John Baldwin <jhb@FreeBSD.org>
2565
2566 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
2567 prototype.
2568 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
2569 prototype.
2570 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
2571 prototype.
2572 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
2573 * ada-exp.y: Remove _initialize_ada_exp prototype.
2574 * ada-lang.c: Remove _initialize_ada_language prototype.
2575 * ada-tasks.c: Remove _initialize_tasks prototype.
2576 * addrmap.c: Remove _initialize_addrmap prototype.
2577 * agent.c: Remove _initialize_agent prototype.
2578 * aix-thread.c: Remove _initialize_aix_thread prototype.
2579 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
2580 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
2581 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
2582 prototype.
2583 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
2584 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
2585 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
2586 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
2587 prototype.
2588 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
2589 prototype.
2590 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
2591 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
2592 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
2593 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
2594 prototype.
2595 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
2596 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
2597 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
2598 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
2599 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
2600 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
2601 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
2602 prototype.
2603 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
2604 prototype.
2605 * annotate.c: Remove _initialize_annotate prototype.
2606 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
2607 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
2608 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
2609 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
2610 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
2611 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
2612 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
2613 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
2614 prototype.
2615 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
2616 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
2617 * auto-load.c: Remove _initialize_auto_load prototype.
2618 * auxv.c: Remove _initialize_auxv prototype.
2619 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
2620 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
2621 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
2622 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
2623 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
2624 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
2625 prototype.
2626 * break-catch-throw.c: Remove _initialize_break_catch_throw
2627 prototype.
2628 * breakpoint.c: Remove _initialize_breakpoint prototype.
2629 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
2630 * btrace.c: Remove _initialize_btrace prototype.
2631 * charset.c: Remove _initialize_charset prototype.
2632 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
2633 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
2634 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
2635 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
2636 * cli/cli-script.c: Remove _initialize_cli_script prototype.
2637 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
2638 * coffread.c: Remove _initialize_coffread prototype.
2639 * compile/compile.c: Remove _initialize_compile prototype.
2640 * complaints.c: Remove _initialize_complaints prototype.
2641 * completer.c: Remove _initialize_completer prototype.
2642 * copying.awk: Remove _initialize_copying prototype.
2643 * copying.c: Regenerate.
2644 * core-regset.c: Remove _initialize_core_regset prototype.
2645 * corefile.c: Remove _initialize_core prototype.
2646 * corelow.c: Remove _initialize_corelow prototype.
2647 * cp-abi.c: Remove _initialize_cp_abi prototype.
2648 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
2649 * cp-support.c: Remove _initialize_cp_support prototype.
2650 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
2651 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
2652 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
2653 * ctf.c: Remove _initialize_ctf prototype.
2654 * d-lang.c: Remove _initialize_d_language prototype.
2655 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
2656 prototype.
2657 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
2658 * dbxread.c: Remove _initialize_dbxread prototype.
2659 * dcache.c: Remove _initialize_dcache prototype.
2660 * demangle.c: Remove _initialize_demangler prototype.
2661 * disasm-selftests.c: Remove _initialize_disasm_selftests
2662 prototype.
2663 * disasm.c: Remove _initialize_disasm prototype.
2664 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
2665 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
2666 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
2667 prototype.
2668 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
2669 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
2670 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
2671 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
2672 * elfread.c: Remove _initialize_elfread prototype.
2673 * exec.c: Remove _initialize_exec prototype.
2674 * extension.c: Remove _initialize_extension prototype.
2675 * f-lang.c: Remove _initialize_f_language prototype.
2676 * f-valprint.c: Remove _initialize_f_valprint prototype.
2677 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
2678 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
2679 * filesystem.c: Remove _initialize_filesystem prototype.
2680 * findcmd.c: Remove _initialize_mem_search prototype.
2681 * fork-child.c: Remove _initialize_fork_child prototype.
2682 * frame-base.c: Remove _initialize_frame_base prototype.
2683 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
2684 * frame.c: Remove _initialize_frame prototype.
2685 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
2686 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
2687 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
2688 * gcore.c: Remove _initialize_gcore prototype.
2689 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
2690 * gdbarch.c: Regenerate.
2691 * gdbarch.sh: Remove _initialize_gdbarch prototype.
2692 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
2693 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
2694 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
2695 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
2696 * go-lang.c: Remove _initialize_go_language prototype.
2697 * go32-nat.c: Remove _initialize_go32_nat prototype.
2698 * guile/guile.c: Remove _initialize_guile prototype.
2699 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
2700 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
2701 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
2702 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
2703 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
2704 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
2705 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
2706 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
2707 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
2708 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
2709 prototype.
2710 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
2711 prototype.
2712 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
2713 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
2714 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
2715 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
2716 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
2717 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
2718 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
2719 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
2720 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
2721 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
2722 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
2723 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
2724 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
2725 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
2726 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
2727 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
2728 prototype.
2729 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
2730 prototype.
2731 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
2732 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
2733 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
2734 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
2735 * infcall.c: Remove _initialize_infcall prototype.
2736 * infcmd.c: Remove _initialize_infcmd prototype.
2737 * inferior.c: Remove _initialize_inferiors prototype.
2738 * inflow.c: Remove _initialize_inflow prototype.
2739 * infrun.c: Remove _initialize_infrun prototype.
2740 * interps.c: Remove _initialize_interpreter prototype.
2741 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
2742 * jit.c: Remove _initialize_jit prototype.
2743 * language.c: Remove _initialize_language prototype.
2744 * linux-fork.c: Remove _initialize_linux_fork prototype.
2745 * linux-nat.c: Remove _initialize_linux_nat prototype.
2746 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
2747 * linux-thread-db.c: Remove _initialize_thread_db prototype.
2748 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
2749 * m2-lang.c: Remove _initialize_m2_language prototype.
2750 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
2751 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
2752 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
2753 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
2754 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
2755 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
2756 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
2757 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
2758 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
2759 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
2760 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
2761 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
2762 * machoread.c: Remove _initialize_machoread prototype.
2763 * macrocmd.c: Remove _initialize_macrocmd prototype.
2764 * macroscope.c: Remove _initialize_macroscope prototype.
2765 * maint.c: Remove _initialize_maint_cmds prototype.
2766 * mdebugread.c: Remove _initialize_mdebugread prototype.
2767 * memattr.c: Remove _initialize_mem prototype.
2768 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
2769 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
2770 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
2771 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
2772 * mi/mi-main.c: Remove _initialize_mi_main prototype.
2773 * microblaze-linux-tdep.c: Remove
2774 _initialize_microblaze_linux_tdep prototype.
2775 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
2776 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
2777 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
2778 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
2779 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
2780 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
2781 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
2782 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
2783 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
2784 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
2785 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
2786 prototype.
2787 * mipsread.c: Remove _initialize_mipsread prototype.
2788 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
2789 prototype.
2790 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
2791 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
2792 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
2793 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
2794 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
2795 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
2796 prototype.
2797 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
2798 * nto-procfs.c: Remove _initialize_procfs prototype.
2799 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
2800 * objc-lang.c: Remove _initialize_objc_language prototype.
2801 * objfiles.c: Remove _initialize_objfiles prototype.
2802 * observer.c: Remove observer_test_first_notification_function,
2803 observer_test_second_notification_function,
2804 observer_test_third_notification_function, and
2805 _initialize_observer prototypes.
2806 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
2807 * osabi.c: Remove _initialize_gdb_osabi prototype.
2808 * osdata.c: Remove _initialize_osdata prototype.
2809 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
2810 * parse.c: Remove _initialize_parse prototype.
2811 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
2812 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
2813 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
2814 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
2815 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
2816 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
2817 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
2818 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
2819 * printcmd.c: Remove _initialize_printcmd prototype.
2820 * probe.c: Remove _initialize_probe prototype.
2821 * proc-api.c: Remove _initialize_proc_api prototype.
2822 * proc-events.c: Remove _initialize_proc_events prototype.
2823 * proc-service.c: Remove _initialize_proc_service prototype.
2824 * procfs.c: Remove _initialize_procfs prototype.
2825 * psymtab.c: Remove _initialize_psymtab prototype.
2826 * python/python.c: Remove _initialize_python prototype.
2827 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
2828 * record-btrace.c: Remove _initialize_record_btrace prototype.
2829 * record-full.c: Remove _initialize_record_full prototype.
2830 * record.c: Remove _initialize_record prototype.
2831 * regcache.c: Remove _initialize_regcache prototype.
2832 * reggroups.c: Remove _initialize_reggroup prototype.
2833 * remote-notif.c: Remove _initialize_notif prototype.
2834 * remote-sim.c: Remove _initialize_remote_sim prototype.
2835 * remote.c: Remove _initialize_remote prototype.
2836 * reverse.c: Remove _initialize_reverse prototype.
2837 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
2838 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
2839 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
2840 prototype.
2841 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
2842 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
2843 * rust-exp.y: Remove _initialize_rust_exp prototype.
2844 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
2845 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
2846 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
2847 * score-tdep.c: Remove _initialize_score_tdep prototype.
2848 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
2849 prototype.
2850 * ser-go32.c: Remove _initialize_ser_dos prototype.
2851 * ser-mingw.c: Remove _initialize_ser_windows prototype.
2852 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
2853 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
2854 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
2855 * serial.c: Remove _initialize_serial prototype.
2856 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
2857 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
2858 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
2859 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
2860 * skip.c: Remove _initialize_step_skip prototype.
2861 * sol-thread.c: Remove _initialize_sol_thread prototype.
2862 * solib-aix.c: Remove _initialize_solib_aix prototype.
2863 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
2864 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
2865 * solib-frv.c: Remove _initialize_frv_solib prototype.
2866 * solib-spu.c: Remove _initialize_spu_solib prototype.
2867 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
2868 * solib-target.c: Remove _initialize_solib_target prototype.
2869 * solib.c: Remove _initialize_solib prototype.
2870 * source.c: Remove _initialize_source prototype.
2871 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
2872 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
2873 prototype.
2874 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
2875 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
2876 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
2877 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
2878 prototype.
2879 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
2880 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
2881 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
2882 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
2883 prototype.
2884 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
2885 prototype.
2886 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
2887 prototype.
2888 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
2889 prototype.
2890 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
2891 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
2892 prototype.
2893 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
2894 prototype.
2895 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
2896 prototype.
2897 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
2898 prototype.
2899 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
2900 prototype.
2901 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
2902 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
2903 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
2904 * stabsread.c: Remove _initialize_stabsread prototype.
2905 * stack.c: Remove _initialize_stack prototype.
2906 * stap-probe.c: Remove _initialize_stap_probe prototype.
2907 * std-regs.c: Remove _initialize_frame_reg prototype.
2908 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
2909 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
2910 * symfile.c: Remove _initialize_symfile prototype.
2911 * symmisc.c: Remove _initialize_symmisc prototype.
2912 * symtab.c: Remove _initialize_symtab prototype.
2913 * target-dcache.c: Remove _initialize_target_dcache prototype.
2914 * target-descriptions.c: Remove _initialize_target_descriptions
2915 prototype.
2916 * thread.c: Remove _initialize_thread prototype.
2917 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
2918 prototype.
2919 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
2920 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
2921 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
2922 prototype.
2923 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
2924 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
2925 * tracefile.c: Remove _initialize_tracefile prototype.
2926 * tracepoint.c: Remove _initialize_tracepoint prototype.
2927 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
2928 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
2929 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
2930 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
2931 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
2932 * tui/tui-win.c: Remove _initialize_tui_win prototype.
2933 * tui/tui.c: Remove _initialize_tui prototype.
2934 * typeprint.c: Remove _initialize_typeprint prototype.
2935 * user-regs.c: Remove _initialize_user_regs prototype.
2936 * utils.c: Remove _initialize_utils prototype.
2937 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
2938 * valarith.c: Remove _initialize_valarith prototype.
2939 * valops.c: Remove _initialize_valops prototype.
2940 * valprint.c: Remove _initialize_valprint prototype.
2941 * value.c: Remove _initialize_values prototype.
2942 * varobj.c: Remove _initialize_varobj prototype.
2943 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
2944 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
2945 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
2946 * windows-nat.c: Remove _initialize_windows_nat,
2947 _initialize_check_for_gdb_ini, and _initialize_loadable
2948 prototypes.
2949 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
2950 * xcoffread.c: Remove _initialize_xcoffread prototype.
2951 * xml-support.c: Remove _initialize_xml_support prototype.
2952 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
2953 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
2954 prototype.
2955 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
2956 prototype.
2957 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
2958
a611b5cb
KS
29592017-09-08 Keith Seitz <keiths@redhat.com>
2960
2961 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
2962 field.
2963
469412dd
CW
29642017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
2965
2966 * f-valprint.c (f_val_print): Remove check for one byte
2967 sized integers. Remove printing of character type.
2968
a5ad232b
FP
29692017-09-08 Frank Penczek <frank.penczek@intel.com>
2970 Christoph Weinmann <christoph.t.weinmann@intel.com>
2971 Bernhard Heckel <bernhard.heckel@intel.com>
2972
2973 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
2974 to maintain proper indentation when printing pointers/refs.
2975
e5014227
JB
29762017-09-07 Joel Brobecker <brobecker@adacore.com>
2977
2978 GDB 8.0.1 released.
2979
63c99141
JB
29802017-09-07 Joel Brobecker <brobecker@adacore.com>
2981
2982 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
2983
69c1e056
TT
29842017-09-05 Tom Tromey <tom@tromey.com>
2985
2986 * parse.c (funcall_chain): Now a std::vector.
2987 (start_arglist, end_arglist): Simplify.
2988 (free_funcalls): Remove.
2989 (parse_exp_in_context_1): Remove cleanup.
2990
fef704bf
TT
29912017-09-05 Tom Tromey <tom@tromey.com>
2992
2993 * go-exp.y (go_parse): Don't create a cleanup.
2994
5613c585
TT
29952017-09-05 Tom Tromey <tom@tromey.com>
2996
2997 * d-exp.y (PrimaryExpression): Use std::string.
2998 (d_parse): Don't create a cleanup.
2999
eae49211
TT
30002017-09-05 Tom Tromey <tom@tromey.com>
3001
3002 * utils.c (do_clear_parser_state): Remove.
3003 (make_cleanup_clear_parser_state): Remove.
3004 * p-exp.y (pascal_parse): Use scoped_restore.
3005 * m2-exp.y (m2_parse): Use scoped_restore.
3006 * f-exp.y (f_parse): Use scoped_restore.
3007 * d-exp.y (d_parse): Use scoped_restore.
3008 * c-exp.y (c_parse): Use scoped_restore.
3009 * ada-exp.y (ada_parse): Use scoped_restore.
3010 * utils.h (make_cleanup_clear_parser_state): Remove.
3011
73b9be8b
KS
30122017-09-06 Keith Seitz <keiths@redhat.com>
3013
3014 * dwarf2read.c (dw2_linkage_name_attr): New function.
3015 (dw2_linkage_name): New function.
3016 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
3017 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
3018 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
3019
a102602b
KR
30202017-09-06 Kamil Rytarowski <n54@gmx.com>
3021
3022 * config/djgpp/djconfig.sh: Correct shell portability issue.
3023
28ad437d
KR
30242017-09-06 Kamil Rytarowski <n54@gmx.com>
3025
3026 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
3027
351787dd
JB
30282017-09-06 John Baldwin <jhb@FreeBSD.org>
3029
3030 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
3031 * NEWS: Mention new FreeBSD/mips native configuration.
3032 * configure.host: Add aarch64*-*-freebsd*.
3033 * configure.nat: Likewise.
3034 * aarch64-fbsd-nat.c: New file.
3035
c0f84956
JB
30362017-09-06 John Baldwin <jhb@FreeBSD.org>
3037
3038 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
3039 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
3040 * NEWS: Mention new FreeBSD/aarch64 target.
3041 * configure.tgt: Add aarch64*-*-freebsd*.
3042 * aarch64-fbsd-tdep.c: New file.
3043 * aarch64-fbsd-tdep.h: New file.
3044
7610297a
KR
30452017-09-06 Kamil Rytarowski <n54@gmx.com>
3046
3047 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
3048
fbd1b771
JK
30492017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3050
3051 * parse.c (find_minsym_type_and_address): Don't relocate addresses
3052 of TLS symbols.
3053
5ca79eae
PW
30542017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3055
3056 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
3057 call.
3058
bf93d7ba
SM
30592017-09-05 Simon Marchi <simon.marchi@ericsson.com>
3060
3061 * infrun.c (follow_exec): Call add_thread after
3062 target_find_description.
3063
1bb7c059
SM
30642017-09-05 Simon Marchi <simon.marchi@ericsson.com>
3065
3066 * infrun.c (handle_inferior_event_1): When exec'ing, read
3067 stop_pc after follow_exec.
3068
fc809827
SM
30692017-09-05 Simon Marchi <simon.marchi@ericsson.com>
3070
3071 * remote.c (process_g_packet): Update error message.
3072
d2fcdd85
YQ
30732017-09-05 Yao Qi <yao.qi@linaro.org>
3074
3075 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
3076 targets.
3077
e69570ee
PA
30782017-09-05 Pedro Alves <palves@redhat.com>
3079
3080 * eval.c (eval_call, evaluate_funcall): New functions, factored
3081 out from ...
3082 (evaluate_subexp_standard): ... this.
3083
22916b07
YQ
30842017-09-05 Yao Qi <yao.qi@linaro.org>
3085
3086 * amd64-tdep.c (amd64_target_description): Create target
3087 descriptions.
3088 (_initialize_amd64_tdep): Don't call functions
3089 initialize_tdesc_amd64_*. Add self tests.
3090 * arch/amd64.c (amd64_create_target_description): Add parameter
3091 is_linux. Call set_tdesc_osabi if is_linux is true.
3092 * arch/amd64.h (amd64_create_target_description): Update the
3093 declaration.
3094 * arch/i386.c (i386_create_target_description): Add parameter
3095 is_linux. Call set_tdesc_osabi if is_linux is true.
3096 * arch/i386.h (i386_create_target_description): Update
3097 declaration.
3098 * configure.tgt: Add i386.o to gdb_target_obs.
3099 * features/Makefile (XMLTOC): Remove i386/*.xml.
3100 * features/i386/amd64-avx-avx512.c: Remove.
3101 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
3102 * features/i386/amd64-avx-mpx.c: Remove.
3103 * features/i386/amd64-avx.c: Remove.
3104 * features/i386/amd64-mpx.c: Remove.
3105 * features/i386/amd64.c: Remove.
3106 * features/i386/i386-avx-avx512.c: Remove.
3107 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
3108 * features/i386/i386-avx-mpx.c: Remove.
3109 * features/i386/i386-avx.c: Remove.
3110 * features/i386/i386-mmx.c: Remove.
3111 * features/i386/i386-mpx.c: Remove.
3112 * features/i386/i386.c: Remove.
3113 * i386-tdep.c: Don't include features/i386/i386*.c., include
3114 target-descriptions.h and arch/i386.h.
3115 (i386_target_description): Create target descriptions.
3116 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
3117 functions. Do self tests.
3118
0854b7b1
YQ
31192017-09-05 Yao Qi <yao.qi@linaro.org>
3120
3121 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
3122 * features/i386/amd64-avx-avx512-linux.c: Removed.
3123 * features/i386/amd64-avx-linux.c: Removed.
3124 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
3125 * features/i386/amd64-avx-mpx-linux.c: Removed.
3126 * features/i386/amd64-linux.c: Removed.
3127 * features/i386/amd64-mpx-linux.c: Removed.
3128 * features/i386/x32-avx-avx512-linux.c: Removed.
3129 * features/i386/x32-avx-linux.c: Removed.
3130 * features/i386/x32-linux.c: Removed.
3131
b4570e4b
YQ
31322017-09-05 Yao Qi <yao.qi@linaro.org>
3133
3134 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
3135 features/i386/*.c.
3136 (amd64_linux_read_description): Call
3137 amd64_create_target_description.
3138 * arch/amd64.c: New file.
3139 * arch/amd64.h: New file.
3140 * configure.tgt (x86_64-*-linux*): Append amd64.o.
3141 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
3142
6c73f67f
YQ
31432017-09-05 Yao Qi <yao.qi@linaro.org>
3144
3145 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
3146 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
3147 (amd64_linux_read_description): Create target descriptions.
3148 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
3149 functions. Add unit tests.
3150 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
3151 x32-core.xml.
3152 * features/i386/64bit-avx.c: Generated.
3153 * features/i386/64bit-avx512.c: Generated.
3154 * features/i386/64bit-core.c: Generated.
3155 * features/i386/64bit-linux.c: Generated.
3156 * features/i386/64bit-mpx.c: Generated.
3157 * features/i386/64bit-pkeys.c: Generated.
3158 * features/i386/64bit-segments.c: Generated.
3159 * features/i386/64bit-sse.c: Generated.
3160 * features/i386/x32-core.c: Generated.
3161 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
3162 c files for amd64-linux and x32-linux.
3163
9d3d478b
YQ
31642017-09-05 Yao Qi <yao.qi@linaro.org>
3165
3166 * amd64-linux-tdep.c (amd64_linux_read_description): New
3167 function.
3168 (amd64_linux_core_read_description): Call
3169 amd64_linux_read_description.
3170 (amd64_linux_init_abi): Likewise.
3171 (amd64_x32_linux_init_abi): Likewise.
3172 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
3173 * x86-linux-nat.c (x86_linux_read_description): Call
3174 amd64_linux_read_description.
3175
b9f1d50f
YQ
31762017-09-05 Yao Qi <yao.qi@linaro.org>
3177
3178 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
3179 comments.
3180
188c9e6d
YQ
31812017-09-05 Yao Qi <yao.qi@linaro.org>
3182
3183 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
3184 * features/i386/i386-avx-avx512-linux.c: Remove.
3185 * features/i386/i386-avx-linux.c: Remove.
3186 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
3187 * features/i386/i386-avx-mpx-linux.c: Remove.
3188 * features/i386/i386-linux.c: Remove.
3189 * features/i386/i386-mmx-linux.c: Remove.
3190 * features/i386/i386-mpx-linux.c: Remove.
3191
5f035c07
YQ
31922017-09-05 Yao Qi <yao.qi@linaro.org>
3193
3194 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
3195 (SFILES): Add arch/i386.c.
3196 (HFILES_NO_SRCDIR): Add arch/i386.h.
3197 * arch/i386.c: New file.
3198 * arch/i386.h: New file.
3199 * arch/tdesc.h (allocate_target_description): Declare.
3200 (set_tdesc_architecture): Declare.
3201 (set_tdesc_osabi): Declare.
3202 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
3203 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
3204 include arch/i386.h.
3205 (i386_linux_read_description): Remove code and call
3206 i386_create_target_description.
3207 (set_tdesc_architecture): New function.
3208 (set_tdesc_osabi): New function.
3209 * target-descriptions.h (allocate_target_description): Remove.
3210
0abe8a89
YQ
32112017-09-05 Yao Qi <yao.qi@linaro.org>
3212
3213 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
3214 * target-descriptions.c (tdesc_create_feature): Likewise, and
3215 adjust code.
3216 * features/i386/32bit-avx.c: Re-generated.
3217 * features/i386/32bit-avx512.c: Re-generated.
3218 * features/i386/32bit-core.c: Re-generated.
3219 * features/i386/32bit-linux.c: Re-generated.
3220 * features/i386/32bit-mpx.c: Re-generated.
3221 * features/i386/32bit-pkeys.c: Re-generated.
3222 * features/i386/32bit-sse.c: Re-generated.
3223
0a188386
YQ
32242017-09-05 Yao Qi <yao.qi@linaro.org>
3225
3226 * regformats/regdef.h (struct reg): Override operator == and !=.
3227
f49ff000
YQ
32282017-09-05 Yao Qi <yao.qi@linaro.org>
3229
3230 * arch/tdesc.h: New file.
3231 * regformats/regdat.sh: Generate code using tdesc_create_reg.
3232 * target-descriptions.c: Update comments.
3233 * target-descriptions.h: Include "arch/tdesc.h". Remove the
3234 declarations.
3235 * features/i386/32bit-avx.c: Re-generated.
3236 * features/i386/32bit-avx512.c: Re-generated.
3237 * features/i386/32bit-core.c: Re-generated.
3238 * features/i386/32bit-linux.c: Re-generated.
3239 * features/i386/32bit-mpx.c: Re-generated.
3240 * features/i386/32bit-pkeys.c: Re-generated.
3241 * features/i386/32bit-sse.c: Re-generated.
3242
f7000548
YQ
32432017-09-05 Yao Qi <yao.qi@linaro.org>
3244
3245 * regformats/regdat.sh: Update generated code.
3246
c9a5e2a5
YQ
32472017-09-05 Yao Qi <yao.qi@linaro.org>
3248
3249 * regformats/regdat.sh: Adjust code order.
3250
d6b687ac
SM
32512017-09-05 Simon Marchi <simon.marchi@ericsson.com>
3252
3253 * expprint.c (dump_subexp_body_standard): Use constant format
3254 string in fprintf_filtered call.
3255
a379bfd0
JB
32562017-09-04 John Baldwin <jhb@FreeBSD.org>
3257
3258 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
3259 NetBSD/i386.
3260 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
3261
f7efc967
JB
32622017-09-04 John Baldwin <jhb@FreeBSD.org>
3263
3264 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
3265
c49fbc6c
JB
32662017-09-04 John Baldwin <jhb@FreeBSD.org>
3267
3268 * bsd-kvm.o: Define _KMEMUSER.
3269 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
3270 * configure: Regenerate.
3271
26562e73
JB
32722017-09-04 John Baldwin <jhb@FreeBSD.org>
3273
3274 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
3275 * i386-fbsd-nat.c: Likewise.
3276
31cf1487
JB
32772017-09-04 John Baldwin <jhb@FreeBSD.org>
3278
3279 * unittests/array-view-selftests.c: Add include of <array>.
3280
5b9f8a7c
JB
32812017-09-04 John Baldwin <jhb@FreeBSD.org>
3282
3283 * spu-tdep.c (flush_ea_cache): Add missing argument to
3284 call_function_by_hand.
3285
d69cf9b2
PA
32862017-09-04 Pedro Alves <palves@redhat.com>
3287
3288 * NEWS (Safer support for debugging with no debug info): New.
3289
3693fdb3
PA
32902017-09-04 Pedro Alves <palves@redhat.com>
3291
3292 * c-exp.y (function_method, function_method_void): Add current
3293 instance flags to TYPE_INSTANCE.
3294 * dwarf2read.c (check_modifier): New.
3295 (compute_delayed_physnames): Assert that only C++ adds delayed
3296 physnames. Mark fn_fields as const/volatile depending on
3297 physname.
3298 * eval.c (make_params): New type_instance_flags parameter. Use
3299 it as the new type's instance flags.
3300 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
3301 flags element and pass it to make_params.
3302 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
3303 instance flags element.
3304 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
3305 * gdbtypes.h: Include "enum-flags.h".
3306 (type_instance_flags): New enum-flags type.
3307 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
3308 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
3309 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
3310 (follow_type_instance_flags): New function.
3311 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
3312 * parser-defs.h (follow_type_instance_flags): Declare.
3313 * valops.c (value_struct_elt_for_reference): const/volatile must
3314 match too.
3315
e68cb8e0
PA
33162017-09-04 Pedro Alves <palves@redhat.com>
3317
3318 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
3319 function/method scopes; lookup the nested name as a function local
3320 static variable.
3321
858be34c
PA
33222017-09-04 Pedro Alves <palves@redhat.com>
3323
3324 (%type <voidval>): Add function_method.
3325 * c-exp.y (exp): New production for calls with no arguments.
3326 (function_method, function_method_void_or_typelist): New
3327 productions.
3328 (exp): New production for "method()::static_var".
3329 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
3330 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
3331 Handle OP_FUNC_STATIC_VAR.
3332 * parse.c (operator_length_standard):
3333 Handle OP_FUNC_STATIC_VAR.
3334
dd5901a6
PA
33352017-09-04 Pedro Alves <palves@redhat.com>
3336
3337 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
3338 handling.
3339 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
3340 Ditto.
3341 * parse.c (operator_length_standard, operator_check_standard):
3342 Ditto.
3343 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
3344
46a4882b
PA
33452017-09-04 Pedro Alves <palves@redhat.com>
3346
3347 * ax-gdb.c: Include "typeprint.h".
3348 (gen_expr_for_cast): New function.
3349 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
3350 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
3351 type is unknown.
3352 * dwarf2read.c (new_symbol_full): Fallback to int instead of
3353 nodebug_data_symbol.
3354 * eval.c: Include "typeprint.h".
3355 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
3356 Error out if symbol has unknown type.
3357 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
3358 evaluate_subexp_for_cast.
3359 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
3360 OP_VAR_MSYM_VALUE.
3361 (evaluate_subexp_for_cast): New function.
3362 * gdbtypes.c (init_nodebug_var_type): New function.
3363 (objfile_type): Use it to initialize types of variables with no
3364 debug info.
3365 * typeprint.c (error_unknown_type): New.
3366 * typeprint.h (error_unknown_type): New declaration.
3367 * compile/compile-c-types.c (convert_type_basic): Handle
3368 TYPE_CODE_ERROR; warn and fallback to int for variables with
3369 unknown type.
3370
fe13dfec
PA
33712017-09-04 Pedro Alves <palves@redhat.com>
3372
3373 * eval.c (evaluate_var_value): New function, factored out from ...
3374 (evaluate_subexp_standard): ... here.
3375
d008ee21
PA
33762017-09-04 Pedro Alves <palves@redhat.com>
3377
3378 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
3379 Remove useless assignments to 'op'.
3380
827d0c51
PA
33812017-09-04 Pedro Alves <palves@redhat.com>
3382
3383 * eval.c (eval_skip_value): New function.
3384 (evaluate_subexp_standard): Use it.
3385
2c5a2be1
PA
33862017-09-04 Pedro Alves <palves@redhat.com>
3387
3388 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
3389 function name from symbol/minsym and pass it to
3390 error_call_unknown_return_type.
3391
74ea4be4
PA
33922017-09-04 Pedro Alves <palves@redhat.com>
3393
3394 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
3395 * ax-gdb.c (gen_msym_var_ref): New function.
3396 (gen_expr): Handle OP_VAR_MSYM_VALUE.
3397 * eval.c (evaluate_var_msym_value): New function.
3398 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
3399 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
3400 to call_function_by_hand.
3401 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
3402 Handle OP_VAR_MSYM_VALUE.
3403 (union exp_element) <msymbol>: New field.
3404 * minsyms.h (struct type): Forward declare.
3405 (find_minsym_type_and_address): Declare.
3406 * parse.c (write_exp_elt_msym): New function.
3407 (write_exp_msymbol): Delete, refactored as ...
3408 (find_minsym_type_and_address): ... this new function.
3409 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
3410 (operator_length_standard, operator_check_standard): Handle
3411 OP_VAR_MSYM_VALUE.
3412 * std-operator.def (OP_VAR_MSYM_VALUE): New.
3413
7022349d
PA
34142017-09-04 Pedro Alves <palves@redhat.com>
3415
3416 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
3417 TYPE_GNU_IFUNC specially here. Throw error if return type is
3418 unknown.
3419 * ada-typeprint.c (print_func_type): Handle functions with unknown
3420 return type.
3421 * c-typeprint.c (c_type_print_base): Handle functions and methods
3422 with unknown return type.
3423 * compile/compile-c-symbols.c (convert_symbol_bmsym)
3424 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
3425 * compile/compile-c-types.c: Include "objfiles.h".
3426 (convert_func): For functions with unknown return type, warn and
3427 default to int.
3428 * compile/compile-object-run.c (compile_object_run): Adjust call
3429 to call_function_by_hand_dummy.
3430 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
3431 call_function_by_hand.
3432 * eval.c (evaluate_subexp_standard): Adjust calls to
3433 call_function_by_hand. Handle functions and methods with unknown
3434 return type. Pass expect_type to call_function_by_hand.
3435 * f-typeprint.c (f_type_print_base): Handle functions with unknown
3436 return type.
3437 * gcore.c (call_target_sbrk): Adjust call to
3438 call_function_by_hand.
3439 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
3440 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
3441 an integer address type instead of nodebug.
3442 * guile/scm-value.c (gdbscm_value_call): Adjust call to
3443 call_function_by_hand.
3444 * infcall.c (error_call_unknown_return_type): New function.
3445 (call_function_by_hand): New "default_return_type" parameter.
3446 Pass it down.
3447 (call_function_by_hand_dummy): New "default_return_type"
3448 parameter. Use it instead of defaulting to int. If there's no
3449 default and the return type is unknown, throw an error. If
3450 there's a default return type, and the called function has no
3451 debug info, then assume the function is prototyped.
3452 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
3453 New "default_return_type" parameter.
3454 (error_call_unknown_return_type): New declaration.
3455 * linux-fork.c (call_lseek): Cast return type of lseek.
3456 (inferior_call_waitpid, checkpoint_command): Adjust calls to
3457 call_function_by_hand.
3458 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
3459 calls to call_function_by_hand.
3460 * m2-typeprint.c (m2_procedure): Handle functions with unknown
3461 return type.
3462 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3463 (value_nsstring, print_object_command): Adjust calls to
3464 call_function_by_hand.
3465 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
3466 functions with unknown return type.
3467 (pascal_type_print_func_varspec_suffix): New function.
3468 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
3469 TYPE_CODE_METHOD>: Use it.
3470 * python/py-value.c (valpy_call): Adjust call to
3471 call_function_by_hand.
3472 * rust-lang.c (rust_evaluate_funcall): Adjust call to
3473 call_function_by_hand.
3474 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
3475 call_function_by_hand.
3476 * valops.c (value_allocate_space_in_inferior): Adjust call to
3477 call_function_by_hand.
3478 * typeprint.c (type_print_unknown_return_type): New function.
3479 * typeprint.h (type_print_unknown_return_type): New declaration.
3480
54990598
PA
34812017-09-04 Pedro Alves <palves@redhat.com>
3482
3483 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
3484 types with more than one parameter as prototyped.
3485
9a24775b
PA
34862017-09-04 Pedro Alves <palves@redhat.com>
3487
3488 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
3489 (disassemble_command): Use gdb_disassembly_flags instead of bare
3490 int.
3491 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
3492 (dump_insns, do_mixed_source_and_assembly_deprecated)
3493 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
3494 Use gdb_disassembly_flags instead of bare int.
3495 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
3496 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
3497 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
3498 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
3499 (enum gdb_disassembly_flag): ... values of this new enumeration.
3500 (gdb_disassembly_flags): Define.
3501 (gdb_disassembly)
3502 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
3503 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
3504 gdb_disassembly_flags instead of bare int.
3505 * record-btrace.c (btrace_insn_history)
3506 (record_btrace_insn_history, record_btrace_insn_history_range)
3507 (record_btrace_insn_history_from): Use gdb_disassembly_flags
3508 instead of bare int.
3509 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
3510 Use gdb_disassembly_flags instead of bare int.
3511 * target-debug.h (target_debug_print_gdb_disassembly_flags):
3512 Define.
3513 * target-delegates.c: Regenerate.
3514 * target.c (target_insn_history, target_insn_history_from)
3515 (target_insn_history_range): Use gdb_disassembly_flags instead of
3516 bare int.
3517 * target.h: Include "disasm.h".
3518 (struct target_ops) <to_insn_history, to_insn_history_from,
3519 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
3520 int.
3521 (target_insn_history, target_insn_history_from)
3522 (target_insn_history_range): Use gdb_disassembly_flags instead of
3523 bare int.
3524
80a65e9b
SM
35252017-09-04 Simon Marchi <simon.marchi@ericsson.com>
3526
3527 * cli/cli-script.c (build_command_line): For if/while commands,
3528 check whether args is empty.
3529
6b66338c
SM
35302017-09-04 Simon Marchi <simon.marchi@ericsson.com>
3531
3532 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
3533 (enum command_control_type): Likewise.
3534 (struct command_line): Likewise.
3535 (free_command_lines): Likewise.
3536 (struct command_lines_deleter): Likewise.
3537 (command_line_up): Likewise.
3538 (read_command_lines): Likewise.
3539 (read_command_lines_1): Likewise.
3540 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
3541 (enum command_control_type): Likewise.
3542 (struct command_line): Likewise.
3543 (free_command_lines): Likewise.
3544 (struct command_lines_deleter): Likewise.
3545 (command_line_up): Likewise.
3546 (read_command_lines): Likewise.
3547 (read_command_lines_1): Likewise.
3548 * breakpoint.h: Include cli/cli-script.h.
3549 * extension-priv.h: Likewise.
3550 * gdbcmd.h: Likewise.
3551
51abb421
PA
35522017-09-04 Pedro Alves <palves@redhat.com>
3553
3554 * ada-lang.c (is_known_support_routine): Move sal declaration to
3555 where it is initialized.
3556 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
3557 (parse_breakpoint_sals, decode_static_tracepoint_spec)
3558 (clear_command, update_static_tracepoint): Remove init_sal
3559 references. Move declarations closer to initializations.
3560 * cli/cli-cmds.c (list_command): Move sal declarations closer to
3561 initializations.
3562 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
3563 references. Move sal declarations closer to initializations.
3564 * frame.c (find_frame_sal): Return a symtab_and_line via function
3565 return instead of output parameter. Remove init_sal references.
3566 * frame.h (find_frame_sal): Return a symtab_and_line via function
3567 return instead of output parameter.
3568 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
3569 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
3570 instead of memset.
3571 (gdbscm_find_pc_line): Remove init_sal reference.
3572 * infcall.c (call_function_by_hand_dummy): Remove init_sal
3573 references. Move declarations closer to initializations.
3574 * infcmd.c (set_step_frame): Update. Move declarations closer to
3575 initializations.
3576 (finish_backward): Remove init_sal references. Move declarations
3577 closer to initializations.
3578 * infrun.c (process_event_stop_test, handle_step_into_function)
3579 (insert_hp_step_resume_breakpoint_at_frame)
3580 (insert_step_resume_breakpoint_at_caller): Likewise.
3581 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
3582 (symbol_to_sal): Likewise.
3583 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
3584 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
3585 to its initialization.
3586 * reverse.c (save_bookmark_command): Use new/delete. Remove
3587 init_sal references. Move declarations closer to initializations.
3588 * source.c (get_current_source_symtab_and_line): Remove brace
3589 initialization.
3590 (set_current_source_symtab_and_line): Now takes the sal by const
3591 reference. Remove brace initialization.
3592 (line_info): Remove init_sal reference.
3593 * source.h (set_current_source_symtab_and_line): Now takes a
3594 symtab_and_line via const reference.
3595 * stack.c (set_current_sal_from_frame): Adjust.
3596 (print_frame_info): Adjust.
3597 (get_last_displayed_sal): Return the sal via function return
3598 instead of via output parameter. Simplify.
3599 (frame_info): Adjust.
3600 * stack.h (get_last_displayed_sal): Return the sal via function
3601 return instead of via output parameter.
3602 * symtab.c (init_sal): Delete.
3603 (find_pc_sect_line): Remove init_sal references. Move
3604 declarations closer to initializations.
3605 (find_function_start_sal): Remove init_sal references. Move
3606 declarations closer to initializations.
3607 * symtab.h (struct symtab_and_line): In-class initialize all
3608 fields.
3609 * tracepoint.c (set_traceframe_context)
3610 (print_one_static_tracepoint_marker): Remove init_sal references.
3611 Move declarations closer to initializations.
3612 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
3613 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
3614 declarations closer to initializations.
3615 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
3616 init_sal references. Adjust.
3617
6c5b2ebe
PA
36182017-09-04 Pedro Alves <palves@redhat.com>
3619
3620 * ax-gdb.c (agent_command_1): Use range-for.
3621 * break-catch-throw.c (re_set_exception_catchpoint): Update.
3622 * breakpoint.c: Include "common/array-view.h".
3623 (init_breakpoint_sal, create_breakpoint_sal): Change sals
3624 parameter from struct symtabs_and_lines to
3625 array_view<symtab_and_line>. Adjust. Use range-for. Update.
3626 (breakpoint_sals_to_pc): Change sals parameter from struct
3627 symtabs_and_lines to std::vector reference.
3628 (check_fast_tracepoint_sals): Change sals parameter from struct
3629 symtabs_and_lines to std::array_view. Use range-for.
3630 (decode_static_tracepoint_spec): Return a std::vector instead of
3631 symtabs_and_lines. Update.
3632 (create_breakpoint): Update.
3633 (break_range_command, until_break_command, clear_command): Update.
3634 (base_breakpoint_decode_location, bkpt_decode_location)
3635 (bkpt_probe_create_sals_from_location)
3636 (bkpt_probe_decode_location, tracepoint_decode_location)
3637 (tracepoint_probe_decode_location)
3638 (strace_marker_create_sals_from_location): Return a std::vector
3639 instead of symtabs_and_lines.
3640 (strace_marker_create_breakpoints_sal): Update.
3641 (strace_marker_decode_location): Return a std::vector instead of
3642 symtabs_and_lines. Update.
3643 (update_breakpoint_locations): Change struct symtabs_and_lines
3644 parameters to gdb::array_view. Adjust.
3645 (location_to_sals): Return a std::vector instead of
3646 symtabs_and_lines. Update.
3647 (breakpoint_re_set_default): Use std::vector instead of struct
3648 symtabs_and_lines.
3649 (decode_location_default): Return a std::vector instead of
3650 symtabs_and_lines. Update.
3651 * breakpoint.h: Include "common/array-view.h".
3652 (struct breakpoint_ops) <decode_location>: Now returns a
3653 std::vector instead of returning a symtabs_and_lines via output
3654 parameter.
3655 (update_breakpoint_locations): Change sals parameters to use
3656 gdb::array_view.
3657 * cli/cli-cmds.c (edit_command, list_command): Update to use
3658 std::vector and gdb::array_view.
3659 (ambiguous_line_spec): Adjust to use gdb::array_view and
3660 range-for.
3661 (compare_symtabs): Rename to ...
3662 (cmp_symtabs): ... this. Change parameters to symtab_and_line
3663 const reference and adjust.
3664 (filter_sals): Rewrite using std::vector and standard algorithms.
3665 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
3666 (jump_command): Update to use std::vector.
3667 * linespec.c (struct linespec_state) <canonical_names>: Update
3668 comment.
3669 (add_sal_to_sals_basic): Delete.
3670 (add_sal_to_sals, filter_results, convert_results_to_lsals)
3671 (decode_line_2, create_sals_line_offset)
3672 (convert_address_location_to_sals, convert_linespec_to_sals)
3673 (convert_explicit_location_to_sals, parse_linespec)
3674 (event_location_to_sals, decode_line_full, decode_line_1)
3675 (decode_line_with_current_source)
3676 (decode_line_with_last_displayed, decode_objc)
3677 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
3678 (linespec_result::~linespec_result): Adjust to use std::vector
3679 instead of symtabs_and_lines.
3680 * linespec.h (linespec_sals::sals): Now a std::vector.
3681 (struct linespec_result): Use std::vector, bool, and in-class
3682 initialization.
3683 (decode_line_1, decode_line_with_current_source)
3684 (decode_line_with_last_displayed): Return std::vector.
3685 * macrocmd.c (info_macros_command): Use std::vector.
3686 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
3687 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
3688 std::vector.
3689 * probe.h (parse_probes): Return a std::vector.
3690 * python/python.c (gdbpy_decode_line): Use std::vector and
3691 gdb::array_view.
3692 * source.c (select_source_symtab, line_info): Use std::vector.
3693 * stack.c (func_command): Use std::vector.
3694 * symtab.h (struct symtabs_and_lines): Delete.
3695 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
3696
7c44b49c
PA
36972017-09-04 Pedro Alves <palves@redhat.com>
3698
3699 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3700 unittests/array-view-selftests.c.
3701 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
3702 * common/array-view.h: New file.
3703 * unittests/array-view-selftests.c: New file.
3704
e439fa14
PA
37052017-09-04 Pedro Alves <palves@redhat.com>
3706
3707 * cli/cli-cmds.c (edit_command): Pass message to
3708 ambiguous_line_spec.
3709 (list_command): Pass message to ambiguous_line_spec. Say
3710 "first"/"last" instead of "start" and "end" to be consistent with
3711 the manual.
3712 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
3713 them to print formatted message.
3714
7525b645
PA
37152017-09-04 Pedro Alves <palves@redhat.com>
3716
3717 * btrace.c (ftrace_add_pt): Pass btrace_insn to
3718 ftrace_update_insns by reference instead of pointer.
3719
badc0020
YQ
37202017-09-04 Yao Qi <yao.qi@linaro.org>
3721
3722 * i386-go32-tdep.c: Include x86-xstate.h.
3723 (i386_go32_init_abi): Call i386_target_description.
3724 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
3725 if xcr0 is X86_XSTATE_X87_MASK.
3726 * i386-tdep.h (tdesc_i386): Remove the declaration.
3727 (tdesc_i386_mmx): Likewise.
3728
d78bdb54
YQ
37292017-09-04 Yao Qi <yao.qi@linaro.org>
3730
3731 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
3732 X86_XSTATE_SSE_MASK instead of 0.
3733
ca1fa5ee
YQ
37342017-09-04 Yao Qi <yao.qi@linaro.org>
3735
3736 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
3737 i386_target_description.
3738 * i386-fbsd-nat.c (i386fbsd_read_description): Call
3739 i386_target_description.
3740 * i386-tdep.c (i386_gdbarch_init): Likewise.
3741
2434b019
YQ
37422017-09-04 Yao Qi <yao.qi@linaro.org>
3743
3744 * amd64-darwin-tdep.c: Include "x86-xstate.h".
3745 (x86_darwin_init_abi_64): Call amd64_target_description.
3746 * amd64-dicos-tdep.c: Likewise.
3747 * amd64-fbsd-nat.c: Likewise.
3748 * amd64-fbsd-tdep.c: Likewise.
3749 * amd64-nbsd-tdep.c: Likewise.
3750 * amd64-obsd-tdep.c: Likewise.
3751 * amd64-sol2-tdep.c: Likewise.
3752 * amd64-windows-tdep.c: Likewise.
3753 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
3754
0860c437
SM
37552017-09-04 Simon Marchi <simon.marchi@ericsson.com>
3756
3757 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
3758 (btrace_function) <insn>: Change type to use std::vector.
3759 * btrace.c (ftrace_debug, ftrace_call_num_insn,
3760 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
3761 ftrace_update_insns, ftrace_compute_global_level_offset,
3762 btrace_stitch_bts, btrace_clear, btrace_insn_get,
3763 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
3764 change to std::vector.
3765 (ftrace_update_insns): Adjust to change to std::vector, change
3766 type of INSN parameter.
3767 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
3768 * record-btrace.c (btrace_call_history_insn_range,
3769 btrace_compute_src_line_range,
3770 record_btrace_frame_prev_register): Adjust to change to
3771 std::vector.
3772 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
3773 to change to std::vector.
3774
0638b7f9
TT
37752017-09-03 Tom Tromey <tom@tromey.com>
3776
3777 * corefile.c (reopen_exec_file): Use std::string.
3778
8f84fb0e
TT
37792017-09-03 Tom Tromey <tom@tromey.com>
3780
3781 * compile/compile.c (compile_register_name_mangled): Return
3782 std::string.
3783 * compile/compile-loc2c.c (pushf_register_address): Update.
3784 (pushf_register): Update.
3785 * compile/compile-c-types.c (convert_array): Update.
3786 * compile/compile-c-symbols.c (generate_vla_size): Update.
3787 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
3788 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
3789 (convert_one_symbol): Update.
3790 (generate_c_for_for_one_variable): Update.
3791 * compile/compile-c-support.c (c_get_range_decl_name): Return a
3792 std::string.
3793 (generate_register_struct): Update.
3794 * compile/compile-internal.h (c_get_range_decl_name): Return a
3795 std::string.
3796 (compile_register_name_mangled): Return std::string.
3797
18e9961f
TT
37982017-09-03 Tom Tromey <tom@tromey.com>
3799
3800 * utils.c (perror_string): Return a std::string.
3801 (throw_perror_with_name, perror_warning_with_name): Update.
3802
45343786
TT
38032017-09-03 Tom Tromey <tom@tromey.com>
3804
3805 * demangle.c (demangle_command): Use std::string,
3806 unique_xmalloc_ptr.
3807
b57af503
TT
38082017-09-03 Tom Tromey <tom@tromey.com>
3809
3810 * cli/cli-setshow.c (do_set_command): Use std::string.
3811
6eecf35f
TT
38122017-09-03 Tom Tromey <tom@tromey.com>
3813
3814 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
3815
56496dd4
TT
38162017-09-03 Tom Tromey <tom@tromey.com>
3817
3818 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
3819
e91a1fa7
TT
38202017-09-03 Tom Tromey <tom@tromey.com>
3821
3822 * mi/mi-cmd-env.c (env_execute_cli_command): Use
3823 gdb::unique_xmalloc_ptr.
3824
7ffd83d7
TT
38252017-09-03 Tom Tromey <tom@tromey.com>
3826
3827 * thread.c (print_thread_info_1): Use string_printf.
3828 (thread_apply_command, thread_apply_all_command): Use
3829 std::string.
3830
1ccbe998
TT
38312017-09-03 Tom Tromey <tom@tromey.com>
3832
3833 * valprint.c (val_print_string): Update.
3834 * gdbcore.h (memory_error_message): Return std::string.
3835 * corefile.c (memory_error_message): Return std::string.
3836 (memory_error): Update.
3837 * breakpoint.c (insert_bp_location): Update.
3838
23fdd69e
SM
38392017-09-03 Simon Marchi <simon.marchi@ericsson.com>
3840
3841 * target/waitstatus.h (target_waitstatus_to_string): Change
3842 return type to std::string.
3843 * target/waitstatus.c (target_waitstatus_to_string): Return
3844 std::string.
3845 * target.h (target_waitstatus_to_string): Remove declaration.
3846 * infrun.c (resume, clear_proceed_status_thread,
3847 print_target_wait_results, do_target_wait, save_waitstatus,
3848 stop_all_threads): Adjust.
3849 * record-btrace.c (record_btrace_wait): Adjust.
3850 * target-debug.h
3851 (target_debug_print_struct_target_waitstatus_p): Adjust.
3852
5c811d30
JK
38532017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3854
3855 PR gdb/22046
3856 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
3857 detection.
3858
0a2dde4a
SDJ
38592017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
3860
3861 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
3862 for setting/unsetting environment variables on the remote target.
3863 (New remote packets): Add entries for QEnvironmentHexEncoded,
3864 QEnvironmentUnset and QEnvironmentReset.
3865 * common/environ.c (gdb_environ::operator=): Extend method to
3866 handle m_user_set_env_list and m_user_unset_env_list.
3867 (gdb_environ::clear): Likewise.
3868 (match_var_in_string): Change type of first parameter from 'char
3869 *' to 'const char *'.
3870 (gdb_environ::set): Extend method to handle
3871 m_user_set_env_list and m_user_unset_env_list.
3872 (gdb_environ::unset): Likewise.
3873 (gdb_environ::clear_user_set_env): New method.
3874 (gdb_environ::user_set_envp): Likewise.
3875 (gdb_environ::user_unset_envp): Likewise.
3876 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
3877 m_user_unset_env_list on move constructor/assignment.
3878 (unset): Add new default parameter 'update_unset_list = true'.
3879 (clear_user_set_env): New method.
3880 (user_set_envp): Likewise.
3881 (user_unset_envp): Likewise.
3882 (m_user_set_env_list): New std::set.
3883 (m_user_unset_env_list): Likewise.
3884 * common/rsp-low.c (hex2str): New function.
3885 (bin2hex): New overload for bin2hex function.
3886 * common/rsp-low.c (hex2str): New prototype.
3887 (str2hex): New overload prototype.
3888 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
3889 QEnvironmentUnset and QEnvironmentReset.
3890 (remote_protocol_features): Add QEnvironmentHexEncoded,
3891 QEnvironmentUnset and QEnvironmentReset packets.
3892 (send_environment_packet): New function.
3893 (extended_remote_environment_support): Likewise.
3894 (extended_remote_create_inferior): Call
3895 extended_remote_environment_support.
3896 (_initialize_remote): Add QEnvironmentHexEncoded,
3897 QEnvironmentUnset and QEnvironmentReset packet configs.
3898 * unittests/environ-selftests.c (gdb_selftest_env_var):
3899 New variable.
3900 (test_vector_initialization): New function.
3901 (test_init_from_host_environ): Likewise.
3902 (test_reinit_from_host_environ): Likewise.
3903 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
3904 Likewise.
3905 (test_unset_set_empty_vector): Likewise.
3906 (test_vector_clear): Likewise.
3907 (test_std_move): Likewise.
3908 (test_move_constructor):
3909 (test_self_move): Likewise.
3910 (test_set_unset_reset): Likewise.
3911 (run_tests): Rewrite in terms of the functions above.
3912
654670a4
WP
39132017-08-31 Weimin Pan <weimin.pan@oracle.com>
3914
3915 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
3916 (adi_available): Use a temp variable of type CORE_ADDR as argument
3917 3 when calling target_auxv_search.
3918 (adi_normalize_address): Use masks and xor operators to calculate
3919 normalized address.
3920 (adi_read_versions, adi_write_versions, adi_print_versions)
3921 (do_examine, do_assign): Use paddress.
3922
7755ddb7
JB
39232017-08-29 John Baldwin <jhb@FreeBSD.org>
3924
3925 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
3926 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
3927 out of loop and add supply of FIR.
3928 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
3929 add collect of FIR.
3930
fd437cbc
SM
39312017-08-28 Simon Marchi <simon.marchi@ericsson.com>
3932
3804a343 3933 PR gdb/21827
fd437cbc
SM
3934 * cli/cli-script.c (define_command): Don't convert command name
3935 to lower case.
3936
988f6b3d
JB
39372017-08-25 Joel Brobecker <brobecker@adacore.com>
3938
3939 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
3940 Update all callers accordingly. Remove all code blocks handling
3941 the case where DISPP is not NULL.
3942
663c44ac
JK
39432017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3944
3945 PR symtab/22003
3946 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
3947 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
3948 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
3949
f1902523
JK
39502017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3951
3952 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
3953 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
3954 (read_comp_units_from_section): New parameter abbrev_section, use
3955 read_and_check_comp_unit_head, allocate signatured_type if needed.
3956 (create_all_comp_units): Update read_comp_units_from_section caller.
3957
87215ad1
SDJ
39582017-08-23 Pedro Alves <palves@redhat.com>
3959
3960 PR remote/21852
3961 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
3962 to null_ptid and switch to thread without reading the registers
3963 after adding the inferior.
3964
6e41ddec
JK
39652017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3966
3967 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
3968 compile-gcc.
3969 * compile/compile.c (compile_gcc, show_compile_gcc): New.
3970 (compile_to_object): Implement compile_gcc.
3971 (_initialize_compile): Install "set compile-gcc". Initialize
3972 compile_gcc.
3973
e68c32d5
JK
39742017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3975
3976 * compile/compile.c (compile_to_object): Conditionally call
3977 set_verbose. Conditionally call compile or compile_v0.
3978
58afddc6
WP
39792017-08-07 Weimin Pan <weimin.pan@oracle.com>
3980
3981 * sparc64-tdep.h: (adi_normalize_address): New export.
3982 * sparc-nat.h: (open_adi_tag_fd): New export.
3983 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
3984 * sparc64-linux-tdep.c:
3985 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
3986 (sparc64_linux_handle_segmentation_fault): New function.
3987 (sparc64_linux_init_abi): Register
3988 sparc64_linux_handle_segmentation_fault
3989 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
3990 (sparc64_addr_bits_remove): New function.
3991 (sparc64_init_abi): Register sparc64_addr_bits_remove.
3992 (MAX_PROC_NAME_SIZE): New macro.
3993 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
3994 (sparc64adilist): New variable.
3995 (adi_proc_list): New variable.
3996 (find_adi_info): New function.
3997 (add_adi_info): New function.
3998 (get_adi_info_proc): New function.
3999 (get_adi_info): New function.
4000 (info_adi_command): New function.
4001 (read_maps_entry): New function.
4002 (adi_available): New function.
4003 (adi_normalize_address): New function.
4004 (adi_align_address): New function.
4005 (adi_convert_byte_count): New function.
4006 (adi_tag_fd): New function.
4007 (adi_is_addr_mapped): New function.
4008 (adi_read_versions): New function.
4009 (adi_write_versions): New function.
4010 (adi_print_versions): New function.
4011 (do_examine): New function.
4012 (do_assign): New function.
4013 (adi_examine_command): New function.
4014 (adi_assign_command): New function.
4015 (_initialize_sparc64_adi_tdep): New function.
4016
11db9430
SM
40172017-08-22 Simon Marchi <simon.marchi@ericsson.com>
4018
4019 * breakpoint.c (breakpoints_info): Rename to ...
4020 (info_breakpoints_command): ... this.
4021 (watchpoints_info): Rename to ...
4022 (info_watchpoints_command): ... this.
4023 (tracepoints_info): Rename to ...
4024 (info_tracepoints_command): ... this.
4025 (_initialize_breakpoint): Adjust.
4026 * dcache.c (dcache_info): Rename to ...
4027 (info_display_command): ... this.
4028 (_initialize_dcache): Adjust.
4029 * frame.h (args_info): Rename to ...
4030 (info_args_command): ... this.
4031 (locals_info): Rename to ...
4032 (info_locals_command): ... this.
4033 * infcmd.c (nofp_registers_info): Rename to ...
4034 (info_registers_command): ... this.
4035 (float_info): Rename to ...
4036 (info_float_command): ... this.
4037 (program_info): Rename to ...
4038 (info_program_command): ... this.
4039 (all_registers_info): Rename to ...
4040 (info_all_registers_command): ... this.
4041 (vector_info): Rename to ...
4042 (info_vector_command): ... this.
4043 (float_info): Rename to ...
4044 (info_float_command): ... this.
4045 (_initialize_infcmd): Adjust.
4046 * inferior.h (term_info): Rename to ...
4047 (info_terminal_command): ... this.
4048 * inflow.c (term_info): Rename to ...
4049 (info_terminal_command): ... this.
4050 (_initialize_inflow): Adjust.
4051 * infrun.c (signals_info): Rename to ...
4052 (info_signals_command): ... this.
4053 (_initialize_infrun): Adjust.
4054 * objc-lang.c (classes_info): Rename to ...
4055 (info_classes_command): ... this.
4056 (selectors_info): Rename to ...
4057 (info_selectors_command): ... this.
4058 (_initialize_objc_language): Adjust.
4059 * printcmd.c (sym_info): Rename to ...
4060 (info_symbol_command): ... this.
4061 (address_info): Rename to ...
4062 (info_address_command): ... this.
4063 (display_info): Rename to ...
4064 (info_display_command): ... this.
4065 (_initialize_printcmd): Adjust.
4066 * reverse.c (bookmarks_info): Rename to ...
4067 (info_breakpoints_command): ... this.
4068 (_initialize_reverse): Adjust.
4069 * ser-go32.c (dos_info): Rename to ...
4070 (info_serial_command): ... this.
4071 (_initialize_ser_dos): Adjust.
4072 * skip.c (skip_info): Rename to ...
4073 (info_skip_command): ... this.
4074 (_initialize_step_skip): Adjust.
4075 * source.c (line_info): Rename to ...
4076 (info_line_command): ... this.
4077 (source_info): Rename to ...
4078 (info_source_command)
4079 * stack.c (frame_info): Rename to ...
4080 (info_frame_command): ... this.
4081 (locals_info): Rename to ...
4082 (info_locals_command): ... this.
4083 (args_info): Rename to ...
4084 (info_args_command): ... this.
4085 (_initialize_stack): Adjust.
4086 * symtab.c (sources_info): Rename to ...
4087 (info_sources_command): ... this.
4088 (variables_info): Rename to ...
4089 (info_variables_command): ... this.
4090 (functions_info): Rename to ...
4091 (info_functions_command): ... this.
4092 (types_info): Rename to ...
4093 (info_types_command): ... this.
4094 (_initialize_symtab): Adjust.
4095 * target.c (target_info): Rename to ...
4096 (info_target_command): ... this.
4097 (initialize_targets): Adjust.
4098 * tracepoint.c (tvariables_info): Rename to ...
4099 (info_tvariables_command): ... this.
4100 (scope_info): Rename to ...
4101 (info_scope_command): ... this.
4102 (trace_dump_actions): Adjust.
4103 (_initialize_tracepoint): Adjust.
4104
b270e6f9
TT
41052017-08-22 Tom Tromey <tom@tromey.com>
4106
4107 * breakpoint.h (install_breakpoint): Update.
4108 * breakpoint.c (add_solib_catchpoint): Update.
4109 (install_breakpoint): Change argument to a std::unique_ptr.
4110 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
4111 (create_breakpoint_sal, create_breakpoint): Update.
4112 (watch_command_1, catch_exec_command_1)
4113 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
4114 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
4115 Return the breakpoint.
4116 (set_raw_breakpoint_without_location, set_raw_breakpoint)
4117 (new_single_step_breakpoint): Update.
4118 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
4119 std::unique_ptr.
4120 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
4121 std::unique_ptr.
4122 * break-catch-sig.c (create_signal_catchpoint): Use
4123 std::unique_ptr.
4124 * ada-lang.c (create_ada_exception_catchpoint): Use
4125 std::unique_ptr.
4126
36bd8eaa
TT
41272017-08-22 Tom Tromey <tom@tromey.com>
4128
4129 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
4130
56f37645
TT
41312017-08-22 Tom Tromey <tom@tromey.com>
4132
4133 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
4134 (lookup_partial_symbol): Update.
4135
0b581c69
TT
41362017-08-22 Tom Tromey <tom@tromey.com>
4137
4138 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
4139 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
4140 (find_and_open_source, symtab_to_fullname): Update.
4141 * psymtab.c (psymtab_to_fullname): Update.
4142
14278e1f
TT
41432017-08-22 Tom Tromey <tom@tromey.com>
4144
4145 * exec.c (exec_file_attach): Update.
4146 * linux-thread-db.c (try_thread_db_load): Update.
4147 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
4148 * utils.c (gdb_realpath): Change return type.
4149 (gdb_realpath_keepfile): Update.
4150 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
4151 (_initialize_utils): Register the new self test.
4152 * source.c (openp): Update.
4153 (find_and_open_source): Update.
4154 * nto-tdep.c (nto_find_and_open_solib): Update.
4155 * main.c (set_gdb_data_directory): Update.
4156 (captured_main_1): Update.
4157 * dwarf2read.c (dwarf2_get_dwz_file): Update
4158 (dw2_map_symbol_filenames): Update.
4159 * auto-load.c (auto_load_safe_path_vec_update): Update.
4160 (filename_is_in_auto_load_safe_path_vec): Change type of
4161 "filename_realp".
4162 (auto_load_objfile_script): Update.
4163 (file_is_auto_load_safe): Update. Use std::string.
4164 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
4165
4971c9a7
TT
41662017-08-22 Tom Tromey <tom@tromey.com>
4167
4168 * utils.c (gdb_realpath_keepfile): Return a
4169 gdb::unique_xmalloc_ptr.
4170 * exec.c (exec_file_attach): Update.
4171 * utils.h (gdb_realpath_keepfile): Return a
4172 gdb::unique_xmalloc_ptr.
4173
e3e41d58
TT
41742017-08-22 Tom Tromey <tom@tromey.com>
4175
4176 * compile/compile.c (compile_file_command): Use
4177 gdb::unique_xmalloc_ptr, std::string.
4178 * utils.c (gdb_abspath): Change return type.
4179 * source.c (openp): Update.
4180 * objfiles.c (allocate_objfile): Update.
4181 * main.c (set_gdb_data_directory): Update.
4182 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
4183
0d999a6e
ZZ
41842017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
4185
4186 * cli-cmds.c (list_commands): List actual code around more than
4187 one location.
4188
329d5e7e
JB
41892017-08-21 John Baldwin <jhb@FreeBSD.org>
4190
4191 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
4192
bf223d3e
PA
41932017-08-21 Pedro Alves <palves@redhat.com>
4194
4195 PR gdb/19487
4196 * c-exp.y (variable production): Handle function aliases.
4197 * minsyms.c (msymbol_is_text): New function.
4198 * minsyms.h (msymbol_is_text): Declare.
4199 * symtab.c (find_function_alias_target): New function.
4200 * symtab.h (find_function_alias_target): Declare.
4201
c973d0aa
PA
42022017-08-21 Pedro Alves <palves@redhat.com>
4203
4204 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
4205 typedefs.
4206 * typeprint.c (whatis_exp): If handling "whatis", and expression
4207 is OP_TYPE, strip one typedef level. Otherwise don't strip
4208 typedefs here.
4209 * valops.c (value_cast): Save "to" type before resolving
4210 stubs/typedefs. Use that type as resulting value's type.
4211
2989a365
TT
42122017-08-18 Tom Tromey <tom@tromey.com>
4213 Pedro Alves <palves@redhat.com>
4214
4215 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
4216 * sol-thread.c (sol_thread_resume, sol_thread_wait)
4217 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
4218 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
4219 * proc-service.c (ps_xfer_memory): Use scoped_restore.
4220 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
4221 (linux_get_siginfo_data): Add "thread" argument. Use
4222 scoped_restore.
4223 * linux-nat.c (linux_child_follow_fork)
4224 (check_stopped_by_watchpoint): Use scoped_restore.
4225 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
4226 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
4227 (restore_inferior_ptid, save_inferior_ptid): Remove.
4228 * btrace.c (btrace_fetch): Use scoped_restore.
4229 * bsd-uthread.c (bsd_uthread_fetch_registers)
4230 (bsd_uthread_store_registers): Use scoped_restore.
4231 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
4232 scoped_restore.
4233 * aix-thread.c (aix_thread_resume, aix_thread_wait)
4234 (aix_thread_xfer_partial): Use scoped_restore.
4235 * inferior.h (save_inferior_ptid): Remove.
4236
e60eb288
YQ
42372017-08-18 Yao Qi <yao.qi@linaro.org>
4238
4239 PR tdep/21818
4240 * arm-tdep.c (gdb_print_insn_arm): Mark
4241 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
4242
6d580b63
YQ
42432017-08-18 Yao Qi <yao.qi@linaro.org>
4244
4245 * NEWS: Mention GDBserver's new option "--selftest".
4246 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
4247 * selftest.c: Move it to common/selftest.c.
4248 * selftest.h: Move it to common/selftest.h.
4249 * selftest-arch.c (reset): New function.
4250 (tests_with_arch): Call reset.
4251
86dcbf50
YQ
42522017-08-18 Yao Qi <yao.qi@linaro.org>
4253
4254 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
4255 instead of exception_fprintf and printf_filtered.
4256
7649770c
YQ
42572017-08-18 Yao Qi <yao.qi@linaro.org>
4258
4259 * selftest.c (register_self_test): Rename it to
4260 selftests::register_test.
4261 (run_self_tests): selftest::run_tests.
4262 * selftest.h: Update declarations.
4263 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
4264 selftests::register_test_foreach_arch.
4265 * selftest-arch.h: Update declaration.
4266 * aarch64-tdep.c: Update.
4267 * arm-tdep.c: Likewise.
4268 * disasm-selftests.c: Likewise.
4269 * dwarf2loc.c: Likewise.
4270 * dwarf2-frame.c: Likewise.
4271 * findvar.c: Likewise.
4272 * gdbarch-selftests.c: Likewise.
4273 * maint.c (maintenance_selftest): Likewise.
4274 * regcache.c: Likewise.
4275 * rust-exp.y: Likewise.
4276 * selftest-arch.c: Likewise.
4277 * unittests/environ-selftests.c: Likewise.
4278 * unittests/function-view-selftests.c: Likewise.
4279 * unittests/offset-type-selftests.c: Likewise.
4280 * unittests/optional-selftests.c: Likewise.
4281 * unittests/scoped_restore-selftests.c: Likewise.
4282 * utils-selftests.c: Likewise.
4283
b0cba12e
PA
42842017-08-17 Pedro Alves <palves@redhat.com>
4285
4286 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
4287 local.
4288
4c8aa72d
PA
42892017-08-17 Pedro Alves <palves@redhat.com>
4290
4291 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
4292 field.
4293 (reset_die_in_process): Delete, replaced by ...
4294 (process_die_scope): ... this new class. Make it responsible for
4295 freeing cu->line_header too.
4296 (process_die): Use process_die_scope.
4297 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
4298 cu->line_header_die_owner. Don't release the line header if it's
4299 owned by the CU.
4300 (setup_type_unit_groups): Make the CU/DIE own the line header.
4301 Don't release the line header here.
4302
ba713918
AL
43032017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
4304
4305 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
4306
44d0fb3a
RK
43072017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
4308
4309 * NEWS: Mention new shortcuts for nexti and stepi in TUI
4310 Single-Key mode
4311
a5afdb16
RK
43122017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
4313
4314 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
4315 mode command list.
4316
47613aeb
SH
43172017-08-15 Stafford Horne <shorne@gmail.com>
4318
4319 * MAINTAINERS (Write After Approval): Add Stafford Horne.
4320
9c3cc999
SH
43212017-08-15 Stafford Horne <shorne@gmail.com>
4322
4323 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
4324
206726fb
SDJ
43252017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
4326
4327 PR gdb/21954
4328 * infcmd.c (unset_environment_command): Use the 'clear' method on
4329 the environment instead of resetting it.
4330
0335ac6d
JB
43312017-08-15 John Baldwin <jhb@FreeBSD.org>
4332
4333 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
4334 platforms.
4335
d3abe1c8
TT
43362017-08-14 Tom Tromey <tom@tromey.com>
4337
4338 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
4339 (print_binary_chars): Likewise.
4340 (BITS_IN_BYTES): Remove.
4341
d6382fff
TT
43422017-08-14 Tom Tromey <tom@tromey.com>
4343
4344 PR gdb/21675
4345 * valprint.c (LOW_ZERO): Change value to 034.
4346 (print_octal_chars): Add static_asserts for octal constants.
4347 * printcmd.c (print_scalar_formatted): Add 'd' case.
4348
f978cb06
TT
43492017-08-11 Tom Tromey <tom@tromey.com>
4350
4351 * symfile.c (add_symbol_file_command): Use std::vector.
4352
2f5404b3
TT
43532017-08-14 Tom Tromey <tom@tromey.com>
4354
4355 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
4356 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
4357 std::move.
4358 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
4359
de7985c3
PA
43602017-08-11 Pedro Alves <palves@redhat.com>
4361
4362 * infrun.c (process_event_stop_test): Adjust
4363 function_name_is_marked_for_skip call.
4364 * skip.c: Include <list>.
4365 (skiplist_entry): Make it a class with private fields, and
4366 getters/setters.
4367 (skiplist_entry_chain): Delete.
4368 (skiplist_entries): New.
4369 (skiplist_entry_count): Delete.
4370 (highest_skiplist_entry_num): New.
4371 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
4372 (add_skiplist_entry): Delete.
4373 (skiplist_entry::skiplist_entry): New.
4374 (skiplist_entry::add_entry): New.
4375 (skip_file_command, skip_function): Adjust.
4376 (compile_skip_regexp): Delete.
4377 (skip_command): Don't compile regexp here. Adjust to use
4378 skiplist_entry::add_entry.
4379 (skip_info): Adjust to use range-for and getters.
4380 (skip_enable_command, skip_disable_command): Adjust to use
4381 range-for and setters.
4382 (skip_delete_command): Adjust to use std::list.
4383 (add_skiplist_entry): Delete.
4384 (skip_file_p): Delete, refactored as ...
4385 (skiplist_entry::do_skip_file_p): ... this new method.
4386 (skip_gfile_p): Delete, refactored as ...
4387 (skiplist_entry::do_gskip_file_p): ... this new method.
4388 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
4389 (skiplist_entry::skip_function_p): ... this new method.
4390 (function_name_is_marked_for_skip): Now returns bool, and takes
4391 the function sal by const reference. Adjust to use range-for and
4392 skiplist_entry methods.
4393 (_initialize_step_skip): Remove references to
4394 skiplist_entry_chain, skiplist_entry_count.
4395 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
4396 takes the function sal by const reference.
4397
be7d3cd5
YQ
43982017-08-11 Yao Qi <yao.qi@linaro.org>
4399
4400 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
4401 (dwarf2_frame_cache): Remove reset_cache_cleanup.
4402 (dwarf2_frame_cache):
4403 * frame-unwind.c (frame_unwind_try_unwinder): Catch
4404 RETURN_MASK_ALL and set *this_case to NULL.
4405 * frame-unwind.h: Update comments.
4406
1c90d9f0
YQ
44072017-08-11 Yao Qi <yao.qi@linaro.org>
4408
4409 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
4410 (dwarf2_frame_state_copy_regs): Remove.
4411 (dwarf2_frame_state_free_regs): Remove.
4412 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
4413 (dwarf2_restore_rule): Call method .alloc_regs instead of
4414 dwarf2_frame_state_alloc_regs.
4415 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
4416 constructor. Call std::move.
4417 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
4418 (dwarf2_frame_cache): Likewise.
4419
4420 [GDB_SELF_TEST]: Include selftest.h and
4421 selftest-arch.h.
4422 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
4423 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
4424 execute_cfa_program_test.
4425
4426 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
4427 copy ctor, assignment operator, move assignment.
4428 <alloc_regs>: New method.
4429 <swap>: New method.
4430 (struct dwarf2_frame_state): Delete dtor.
4431 (dwarf2_frame_state_alloc_regs): Remove declaration.
4432 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
4433 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
4434
afe37d6b
YQ
44352017-08-11 Yao Qi <yao.qi@linaro.org>
4436
4437 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
4438 (dwarf2_frame_state::dwarf2_frame_state): New.
4439 (dwarf2_frame_state::~dwarf2_frame_state): New.
4440 (dwarf2_fetch_cfa_info): Update.
4441 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
4442 rather than a pointer. Update code.
4443 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
4444 dtor.
4445 <data_align, code_align, retaddr_column>: Change them to const.
4446 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
4447 to bool.
4448
b348037f
YQ
44492017-08-11 Yao Qi <yao.qi@linaro.org>
4450
4451 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
4452 <loc.exp>: New field.
4453 * dwarf2-frame.c (execute_cfa_program): Update.
4454 (dwarf2_frame_prev_register): Update.
4455
e7c9de26
PA
44562017-08-10 Pedro Alves <palves@redhat.com>
4457
4458 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
4459
e8c6b620
JB
44602017-08-09 John Baldwin <jhb@FreeBSD.org>
4461
4462 * fbsd-nat.c (struct fbsd_fork_info): Remove.
4463 (fbsd_pending_children): Use std::list.
4464 (fbsd_remember_child): Likewise.
4465 (fbsd_is_child_pending): Likewise.
4466 (fbsd_pending_vfork_done): Use std::forward_list.
4467 (fbsd_add_vfork_done): Likewise.
4468 (fbsd_is_vfork_done_pending): Likewise.
4469 (fbsd_next_vfork_done): Likewise.
4470
e4a26669
JB
44712017-08-09 John Baldwin <jhb@FreeBSD.org>
4472
4473 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
4474 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
4475 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
4476 for `mapfilename'.
4477 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 4478 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 4479
142311d3
JB
44802017-08-09 John Baldwin <jhb@FreeBSD.org>
4481
4482 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
4483 "filestuff.h".
4484 (fbsd_find_memory_regions): Fix `mapfile' initialization.
4485
42fa2e0e
TT
44862017-08-09 Tom Tromey <tom@tromey.com>
4487
4488 * skip.c (skiplist_entry): New constructor.
4489 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
4490 (skiplist_entry::file_is_glob): Now bool.
4491 (skiplist_entry::file, skiplist_entry::function): Now
4492 std::string.
4493 (make_skip_entry): Return a unique_ptr. Use new.
4494 (free_skiplist_entry, free_skiplist_entry_cleanup)
4495 (make_free_skiplist_entry_cleanup): Remove.
4496 (skip_command, skip_disable_command, add_skiplist_entry)
4497 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
4498 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
4499 (function_name_is_marked_for_skip): Update.
4500 (skip_delete_command): Update. Use delete.
4501
cd3af38d
JW
45022017-08-09 Jiong Wang <jiong.wang@arm.com>
4503
4504 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
4505 (aarch64_linux_core_read_description): New function.
4506 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
4507
29592bde
PA
45082017-08-09 Pedro Alves <palves@redhat.com>
4509
4510 * cp-name-parser.y (cp_comp_to_string): Return a
4511 gdb::unique_xmalloc_ptr<char>.
4512 * cp-support.c (replace_typedefs_qualified_name)
4513 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
4514 (cp_canonicalize_string_full): Use op= instead of explicit
4515 convertion.
4516 (cp_class_name_from_physname, method_name_from_physname)
4517 (cp_func_name, cp_remove_params): Adjust to use
4518 gdb::unique_xmalloc_ptr<char>.
4519 * cp-support.h (cp_comp_to_string): Return a
4520 gdb::unique_xmalloc_ptr<char>.
4521 * python/py-type.c (typy_lookup_type): Adjust to use
4522 gdb::unique_xmalloc_ptr<char>.
4523
b3340438
L
45242017-08-09 H.J. Lu <hongjiu.lu@intel.com>
4525
4526 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
4527
e88e8651
YQ
45282017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
4529 Yao Qi <yao.qi@linaro.org>
4530
4531 * cp-support.c (cp_canonicalize_string_full): Use
4532 gdb::unique_xmalloc_ptr<char>.
4533 (cp_canonicalize_string): Likewise.
4534
f5a29eb0
YQ
45352017-08-09 Yao Qi <yao.qi@linaro.org>
4536
4537 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
4538 * regformats/i386/amd64-avx-avx512.dat: Remove.
4539 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
4540 * regformats/i386/amd64-avx-mpx.dat:Remove.
4541 * regformats/i386/amd64-avx.dat: Remove.
4542 * regformats/i386/amd64-mpx.dat: Remove.
4543 * regformats/i386/i386-avx-avx512.dat: Remove.
4544 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
4545 * regformats/i386/i386-avx-mpx.dat: Remove.
4546 * regformats/i386/i386-mmx.dat: Remove.
4547 * regformats/i386/i386-mpx.dat: Remove.
4548
57757c2f
YQ
45492017-08-09 Yao Qi <yao.qi@linaro.org>
4550
4551 * amd64-tdep.h (tdesc_x32): Remove the declaration.
4552 * amd64-tdep.c: Don't include features/i386/x32*.c.
4553 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
4554 functions.
4555 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
4556 and i386/x32-avx-avx512.
4557 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
4558 and i386/x32.xml.
4559 * features/i386/x32-avx-avx512.c: Removed.
4560 * features/i386/x32-avx-avx512.xml: Removed.
4561 * features/i386/x32-avx.c: Removed.
4562 * features/i386/x32-avx.xml: Removed.
4563 * features/i386/x32.c: Removed.
4564 * features/i386/x32.xml: Removed.
4565 * regformats/i386/x32-avx-avx512.dat: Removed.
4566 * regformats/i386/x32-avx.dat: Removed.
4567 * regformats/i386/x32.dat: Removed.
4568
ba7b109b
MR
45692017-08-07 Maciej W. Rozycki <macro@imgtec.com>
4570
4571 PR breakpoints/21886
4572 * mem-break.c (default_memory_insert_breakpoint): Use
4573 `->placed_address' rather than `->reqstd_address' for the
4574 breakpoint location.
4575
e347efc3
MR
45762017-08-07 Maciej W. Rozycki <macro@imgtec.com>
4577
4578 * arch-utils.c (default_print_insn): Remove arch/mach/endian
4579 assertions.
4580
0dba2a6c
MR
45812017-08-07 Maciej W. Rozycki <macro@imgtec.com>
4582
4583 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
4584 a union of `tdep_info', `tdesc_data' and `id'.
4585 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
4586 rather than `info.tdep_info'.
4587 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
4588 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
4589 * i386-tdep.c (i386_gdbarch_init): Likewise.
4590 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
4591 * mips-tdep.c (mips_gdbarch_init): Likewise.
4592 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
4593 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
4594 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
4595 `info.tdep_info'.
4596 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
4597 `info.tdep_info'.
4598 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
4599 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
4600 `info.tdep_info'.
4601 * spu-tdep.c (spu_gdbarch_init): Likewise.
4602 * gdbarch.h: Regenerate.
4603
16eb6b2d
LS
46042017-08-07 Leszek Swirski <leszeks@google.com>
4605
7b005726 4606 PR symtab/20899
16eb6b2d
LS
4607 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
4608
74cbb09e
SM
46092017-08-07 Simon Marchi <simon.marchi@ericsson.com>
4610
4611 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
4612 (gdbsim_open): Rename gdb_argv args object to argv.
4613
ee0c3293
TT
46142017-08-05 Tom Tromey <tom@tromey.com>
4615
4616 * compile/compile-object-load.c (compile_object_load): Use
4617 gdb::unique_xmalloc_ptr.
4618 * cli/cli-dump.c (scan_filename): Rename from
4619 scan_filename_with_cleanup. Change return type.
4620 (scan_expression): Rename from scan_expression_with_cleanup.
4621 Change return type.
4622 (dump_memory_to_file, dump_value_to_file, restore_command):
4623 Use gdb::unique_xmalloc_ptr. Update.
4624 * cli/cli-cmds.c (find_and_open_script): Use
4625 gdb::unique_xmalloc_ptr.
4626 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
4627 * symmisc.c (maintenance_print_symbols)
4628 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
4629 * symfile.c (symfile_bfd_open, generic_load)
4630 (add_symbol_file_command, remove_symbol_file_command): Use
4631 gdb::unique_xmalloc_ptr.
4632 * source.c (openp): Use gdb::unique_xmalloc_ptr.
4633 * psymtab.c (maintenance_print_psymbols): Use
4634 gdb::unique_xmalloc_ptr.
4635 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
4636 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
4637 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
4638 (reload_shared_libraries_1): Likewise.
4639
3232fabd
TT
46402017-08-05 Tom Tromey <tom@tromey.com>
4641
4642 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
4643 (rust_op_vector, rust_set_vector): New typedefs.
4644 (current_parser): New global.
4645 (work_obstack): Change to pointer type. Update all users.
4646 (rust_ast, pstate): Remove globals.
4647 (struct rust_parser): New.
4648 (%union) <params, field_inits>: Change type.
4649 (start, tuple_expr, unit_expr, struct_expr_list, literal)
4650 (field_expr, expr_list, maybe_expr_list, type_list): Update.
4651 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
4652 (convert_params_to_types, convert_params_to_expression): Change
4653 type of "params".
4654 (ast_string): Change type of "fields".
4655 (rust_parse): Make a rust_parser. Remove cleanups.
4656 (rust_lex_tests): Make and install an auto_obstack.
4657
f02fd774
YQ
46582017-08-04 Yao Qi <yao.qi@linaro.org>
4659
4660 * configure.srv (ipa_x32_linux_regobj): New.
4661 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
4662 instead of X86_TDESC_AVX512.
4663 (initialize_low_tracepoint): Call
4664 init_registers_x32_avx_avx512_linux.
4665
91975afd
YQ
46662017-08-04 Yao Qi <yao.qi@linaro.org>
4667
4668 * utils.h (gdb_argv): Add namespace std for nullptr_t.
4669
2331fa3a
RK
46702017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
4671
4672 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
4673
744e4fe1
TT
46742017-08-03 Tom Tromey <tom@tromey.com>
4675
4676 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
4677 Remove.
4678 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
4679
1c034b67
TT
46802017-08-03 Tom Tromey <tom@tromey.com>
4681
4682 * python/py-param.c (compute_enum_values): Use gdb_argv.
4683
773a1edc
TT
46842017-08-03 Tom Tromey <tom@tromey.com>
4685
4686 * utils.h (struct gdb_argv_deleter): New.
4687 (gdb_argv): New class.
4688 * utils.c (gdb_argv::reset): New method.
4689 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
4690 * tracefile.c (tsave_command): Use gdb_argv.
4691 * top.c (new_ui_command): Use gdb_argv.
4692 * symmisc.c (maintenance_print_symbols)
4693 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
4694 * symfile.c (symbol_file_command, generic_load)
4695 (remove_symbol_file_command): Use gdb_argv.
4696 * stack.c (backtrace_command): Use gdb_argv.
4697 * source.c (add_path, show_substitute_path_command)
4698 (unset_substitute_path_command, set_substitute_path_command):
4699 Use gdb_argv.
4700 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
4701 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
4702 * remote.c (extended_remote_run, remote_put_command)
4703 (remote_get_command, remote_delete_command): Use gdb_argv.
4704 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
4705 (gdbsim_open): Use gdb_argv.
4706 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
4707 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
4708 * procfs.c (procfs_info_proc): Use gdb_argv.
4709 * interps.c (interpreter_exec_cmd): Use gdb_argv.
4710 * infrun.c (handle_command): Use gdb_argv.
4711 * inferior.c (add_inferior_command, clone_inferior_command):
4712 Use gdb_argv.
4713 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
4714 * exec.c (exec_file_command): Use gdb_argv.
4715 * cli/cli-cmds.c (alias_command): Use gdb_argv.
4716 * compile/compile.c (build_argc_argv): Use gdb_argv.
4717
0d50bde3
TT
47182017-08-03 Tom Tromey <tom@tromey.com>
4719
4720 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
4721
7f968c89
TT
47222017-08-03 Tom Tromey <tom@tromey.com>
4723
4724 * python/python.c (compute_python_string): Return std::string.
4725 (gdbpy_eval_from_control_command): Update.
4726 (do_start_initialization): Use std::string.
4727 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
4728 xstrprintf.
4729 * python/py-breakpoint.c (local_setattro): Use string_printf, not
4730 xstrprintf.
4731
3c9ebddd
TT
47322017-08-03 Tom Tromey <tom@tromey.com>
4733
4734 * top.h (do_restore_instream_cleanup): Remove.
4735 * top.c (do_restore_instream_cleanup): Remove.
4736 (read_command_file): Use scoped_restore.
4737 * cli/cli-script.c (execute_user_command): Use scoped_restore.
4738
b51b225e
TT
47392017-08-03 Tom Tromey <tom@tromey.com>
4740
4741 * cli/cli-script.c (execute_user_command)
4742 (execute_control_command): Use scoped_restore.
4743
ac991630
TT
47442017-08-03 Tom Tromey <tom@tromey.com>
4745
4746 * cli/cli-script.c (do_restore_user_call_depth): Remove.
4747 (execute_user_command): Remove user_call_depth; use
4748 user_args_stack's size instead.
4749
898e0c8e
TT
47502017-08-03 Tom Tromey <tom@tromey.com>
4751
4752 * top.h (in_user_command): Remove.
4753 * top.c (in_user_command): Remove.
4754 * cli/cli-script.c (do_restore_user_call_depth)
4755 (execute_user_command): Update.
4756
26fcd5d7
TT
47572017-08-03 Tom Tromey <tom@tromey.com>
4758
4759 * valops.c (search_struct_method): Use gdb::byte_vector.
4760 * valarith.c (value_concat): Use std::vector.
4761 * target.c (memory_xfer_partial): Use gdb::byte_vector.
4762 (simple_search_memory): Likewise.
4763 * printcmd.c (find_string_backward): Use gdb::byte_vector.
4764 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
4765 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
4766 * elfread.c (elf_rel_plt_read): Use std::string.
4767 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
4768 * cli/cli-dump.c (restore_section_callback): Use
4769 gdb::byte_vector.
4770
7c218e6c
TT
47712017-08-03 Tom Tromey <tom@tromey.com>
4772
4773 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
4774
31b68d4a
TT
47752017-08-03 Tom Tromey <tom@tromey.com>
4776
4777 * tui/tui-regs.c (tui_restore_gdbout): Remove.
4778 (tui_register_format): Use scoped_restore.
4779
2ec845e7
TT
47802017-08-03 Tom Tromey <tom@tromey.com>
4781
4782 * reverse.c (exec_direction_default): Remove.
4783 (exec_reverse_once): Use scoped_restore.
4784 * remote.c (restore_remote_timeout): Remove.
4785 (remote_flash_erase, remote_flash_write, remote_flash_done)
4786 (readchar, remote_serial_write): Use scoped_restore.
4787 * cli/cli-script.c (struct source_cleanup_lines_args)
4788 (source_cleanup_lines): Remove.
4789 (script_from_file): Use scoped_restore.
4790 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
4791 (source_command): Use scoped_restore.
4792
b3bc8453
TT
47932017-08-03 Tom Tromey <tom@tromey.com>
4794
4795 * utils.h (make_cleanup_free_so): Remove.
4796 * utils.c (do_free_so, make_cleanup_free_so): Remove.
4797 * solist.h (struct so_deleter): New.
4798 (so_list_up): New typedef.
4799 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
4800
e3ad2841
TT
48012017-08-03 Tom Tromey <tom@tromey.com>
4802
4803 * utils.h (make_cleanup_restore_current_language): Remove.
4804 * utils.c (do_restore_current_language)
4805 (make_cleanup_restore_current_language): Remove.
4806 * parse.c (parse_exp_in_context_1)
4807 (parse_expression_with_language): Use
4808 scoped_restore_current_language.
4809 * mi/mi-main.c (mi_cmd_execute): Use
4810 scoped_restore_current_language.
4811 * language.h (scoped_restore_current_language): New class.
4812
b80cf838
TT
48132017-08-03 Tom Tromey <tom@tromey.com>
4814
4815 * compile/compile.c (cleanup_unlink_file): Remove.
4816 (compile_to_object): Use gdb::unlinker.
4817 (eval_compile_command): Likewise.
4818
fad0444a
TT
48192017-08-03 Tom Tromey <tom@tromey.com>
4820
4821 * utils.h (make_cleanup_fclose): Remove.
4822 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
4823
6e7bc05c
TT
48242017-08-03 Tom Tromey <tom@tromey.com>
4825
4826 * top.c (open_terminal_stream): Return gdb_file_up.
4827 (new_ui_command): Update.
4828
4a45905b
TT
48292017-08-03 Tom Tromey <tom@tromey.com>
4830
4831 * source.c (print_source_lines_base, forward_search_command)
4832 (reverse_search_command): Use gdb_file_up.
4833
7cd06d6e
TT
48342017-08-03 Tom Tromey <tom@tromey.com>
4835
4836 * fbsd-nat.c (fbsd_find_memory_regions): Update.
4837
ed166945
TT
48382017-08-03 Tom Tromey <tom@tromey.com>
4839
4840 * cli/cli-cmds.c (find_and_open_script): Change return type.
4841 Remove "streamp" and "full_path" parameters.
4842 (source_script_with_search): Update.
4843 * auto-load.c (source_script_file): Update.
4844 * cli/cli-cmds.h (find_and_open_script): Change type.
4845 (open_script): New struct.
4846
d419f42d
TT
48472017-08-03 Tom Tromey <tom@tromey.com>
4848
4849 * xml-support.c (xml_fetch_content_from_file): Update.
4850 * ui-file.c (stdio_file::open): Update.
4851 * tracefile-tfile.c (tfile_start): Update.
4852 * remote.c (remote_file_put, remote_file_get): Update.
4853 * nat/linux-procfs.c (linux_proc_get_int)
4854 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
4855 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
4856 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
4857 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
4858 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
4859 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
4860 * linux-nat.c (linux_proc_pending_signals): Update.
4861 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
4862 (file_closer): Remove.
4863 * compile/compile.c (compile_to_object): Update.
4864 * common/filestuff.h (struct gdb_file_deleter): New.
4865 (gdb_file_up): New typedef.
4866 (gdb_fopen_cloexec): Change return type.
4867 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
4868 * cli/cli-dump.c (fopen_with_cleanup): Remove.
4869 (dump_binary_file, restore_binary_file): Update.
4870 * auto-load.c (auto_load_objfile_script_1): Update.
4871
4a2b031d
TT
48722017-08-03 Tom Tromey <tom@tromey.com>
4873
4874 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
4875 (info_static_tracepoint_markers_command): Likewise.
4876 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
4877 * skip.c (skip_info): Use ui_out_emit_table.
4878 * progspace.c (print_program_space): Use ui_out_emit_table.
4879 * osdata.c (info_osdata): Use ui_out_emit_table.
4880 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
4881 ui_out_emit_table.
4882 * linux-thread-db.c (info_auto_load_libthread_db): Use
4883 ui_out_emit_table.
4884 * inferior.c (print_inferior): Use ui_out_emit_table.
4885 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
4886 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
4887 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
4888 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
4889 * ui-out.h (class ui_out_emit_table): New.
4890
a4f320fd
MR
48912017-08-02 Maciej W. Rozycki <macro@imgtec.com>
4892
4893 * mips-tdep.c (mips_fpu_type_str): New function.
4894 (mips_dump_tdep): Call it.
4895
a2f1f308
MR
48962017-08-01 Maciej W. Rozycki <macro@imgtec.com>
4897
4898 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
4899 `->mips_fpu_type'.
4900
7e5ed83b
XR
49012017-07-31 Xavier Roirand <roirand@adacore.com>
4902
4903 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4904
4c9dc811
XR
49052017-07-27 Xavier Roirand <roirand@adacore.com>
4906
4907 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
4908
27d41eac
YQ
49092017-07-26 Yao Qi <yao.qi@linaro.org>
4910
4911 * cli/cli-cmds.c (maintenancechecklist): New variable.
4912 * gdbcmd.h (maintenancechecklist): Declare it.
4913 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
4914 Call i386_linux_read_description with different masks.
4915 * maint.c (maintenance_check_command): New function.
4916 (_initialize_maint_cmds): Call add_prefix_cmd.
4917 * target-descriptions.c (tdesc_reg): override operator != and ==.
4918 (tdesc_type): Likewise.
4919 (tdesc_feature): Likewise.
4920 (target_desc): Likewise.
4921 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
4922 (maintenance_check_xml_descriptions): New function.
4923 (_initialize_target_descriptions) Add command "xml-descriptions".
4924 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
4925
ea03d0d3
YQ
49262017-07-26 Yao Qi <yao.qi@linaro.org>
4927
4928 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
4929 Include features/i386/32bit-*.c.
4930 (i386_linux_read_description): Generate target description if it
4931 doesn't exist.
4932 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
4933 functions.
4934 * features/i386/32bit-linux.c: Re-generated.
4935 * features/i386/32bit-sse.c: Likewise.
4936 * target-descriptions.c (print_c_feature::visit): Print code to
4937 set register number if needed.
4938 (print_c_feature) <m_next_regnum>: New field.
4939
25aa13e5
YQ
49402017-07-26 Yao Qi <yao.qi@linaro.org>
4941
4942 * features/Makefile (CFILES): Rename with TDESC_CFILES.
4943 (FEATURE_XMLFILES): New.
4944 (FEATURE_CFILES): New.
4945 New rules.
4946 (clean-cfiles): Remove generated c files.
4947 * features/i386/32bit-avx.c: Generated.
4948 * features/i386/32bit-avx512.c: Generated.
4949 * features/i386/32bit-core.c: Generated.
4950 * features/i386/32bit-linux.c: Generated.
4951 * features/i386/32bit-mpx.c: Generated.
4952 * features/i386/32bit-pkeys.c: Generated.
4953 * features/i386/32bit-sse.c: Generated.
4954 * target-descriptions.c: Include algorithm.
4955 (tdesc_element_visitor): Add method visit_end.
4956 (print_c_tdesc): Implement visit_end.
4957 (print_c_tdesc:: m_filename_after_features): Move it to
4958 protected.
4959 (print_c_feature): New class.
4960 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
4961 name starts with "i386/32bit-".
4962
6eb1e6a8
YQ
49632017-07-26 Yao Qi <yao.qi@linaro.org>
4964
4965 * target-descriptions.c (tdesc_element_visitor): New class.
4966 (tdesc_element): New class.
4967 (tdesc_reg): Inherit from tdesc_element.
4968 (tdesc_reg::accept): New function.
4969 (tdesc_type): Inherit from tdesc_element.
4970 (tdesc_type::accept): New function.
4971 (tdesc_feature): Inherit from tdesc_element.
4972 (tdesc_feature::accept): New function.
4973 (target_desc): Inherit from tdesc_element.
4974 (target_desc::target_desc): New.
4975 (target_desc::~target_desc): New.
4976 (target_desc::accept): New.
4977 (allocate_target_description): Use new.
4978 (free_target_description): Use delete.
4979 (print_c_tdesc): New class.
4980 (maint_print_c_tdesc_cmd): Adjust.
4981
4982 * features/aarch64.c: Re-generated.
4983 * features/arc-arcompact.c: Re-generated.
4984 * features/arc-v2.c: Re-generated.
4985 * features/arm/arm-with-iwmmxt.c: Re-generated.
4986 * features/arm/arm-with-m.c: Re-generated.
4987 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
4988 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
4989 * features/arm/arm-with-neon.c: Re-generated.
4990 * features/arm/arm-with-vfpv2.c: Re-generated.
4991 * features/arm/arm-with-vfpv3.c: Re-generated.
4992 * features/i386/amd64-avx-avx512.c: Re-generated.
4993 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
4994 * features/i386/amd64-avx.c: Re-generated.
4995 * features/i386/amd64-avx-linux.c: Re-generated.
4996 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
4997 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
4998 * features/i386/amd64-avx-mpx.c: Re-generated.
4999 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
5000 * features/i386/amd64.c: Re-generated.
5001 * features/i386/amd64-linux.c: Re-generated.
5002 * features/i386/amd64-mpx.c: Re-generated.
5003 * features/i386/amd64-mpx-linux.c: Re-generated.
5004 * features/i386/i386-avx-avx512.c: Re-generated.
5005 * features/i386/i386-avx-avx512-linux.c: Re-generated.
5006 * features/i386/i386-avx.c: Re-generated.
5007 * features/i386/i386-avx-linux.c: Re-generated.
5008 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
5009 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
5010 * features/i386/i386-avx-mpx.c: Re-generated.
5011 * features/i386/i386-avx-mpx-linux.c: Re-generated.
5012 * features/i386/i386.c: Re-generated.
5013 * features/i386/i386-linux.c: Re-generated.
5014 * features/i386/i386-mmx.c: Re-generated.
5015 * features/i386/i386-mmx-linux.c: Re-generated.
5016 * features/i386/i386-mpx.c: Re-generated.
5017 * features/i386/i386-mpx-linux.c: Re-generated.
5018 * features/i386/x32-avx-avx512.c: Re-generated.
5019 * features/i386/x32-avx-avx512-linux.c: Re-generated.
5020 * features/i386/x32-avx.c: Re-generated.
5021 * features/i386/x32-avx-linux.c: Re-generated.
5022 * features/i386/x32.c: Re-generated.
5023 * features/i386/x32-linux.c: Re-generated.
5024 * features/microblaze.c: Re-generated.
5025 * features/microblaze-with-stack-protect.c: Re-generated.
5026 * features/mips64-dsp-linux.c: Re-generated.
5027 * features/mips64-linux.c: Re-generated.
5028 * features/mips-dsp-linux.c: Re-generated.
5029 * features/mips-linux.c: Re-generated.
5030 * features/nds32.c: Re-generated.
5031 * features/nios2.c: Re-generated.
5032 * features/nios2-linux.c: Re-generated.
5033 * features/rs6000/powerpc-32.c: Re-generated.
5034 * features/rs6000/powerpc-32l.c: Re-generated.
5035 * features/rs6000/powerpc-403.c: Re-generated.
5036 * features/rs6000/powerpc-403gc.c : Re-generated.
5037 * features/rs6000/powerpc-405.c: Re-generated.
5038 * features/rs6000/powerpc-505.c: Re-generated.
5039 * features/rs6000/powerpc-601.c: Re-generated.
5040 * features/rs6000/powerpc-602.c: Re-generated.
5041 * features/rs6000/powerpc-603.c: Re-generated.
5042 * features/rs6000/powerpc-604.c: Re-generated.
5043 * features/rs6000/powerpc-64.c: Re-generated.
5044 * features/rs6000/powerpc-64l.c: Re-generated.
5045 * features/rs6000/powerpc-7400.c: Re-generated.
5046 * features/rs6000/powerpc-750.c: Re-generated.
5047 * features/rs6000/powerpc-860.c: Re-generated.
5048 * features/rs6000/powerpc-altivec32.c: Re-generated.
5049 * features/rs6000/powerpc-altivec32l.c: Re-generated.
5050 * features/rs6000/powerpc-altivec64.c: Re-generated.
5051 * features/rs6000/powerpc-altivec64l.c: Re-generated.
5052 * features/rs6000/powerpc-cell32l.c: Re-generated.
5053 * features/rs6000/powerpc-cell64l.c: Re-generated.
5054 * features/rs6000/powerpc-e500.c: Re-generated.
5055 * features/rs6000/powerpc-e500l.c: Re-generated.
5056 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
5057 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
5058 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
5059 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
5060 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
5061 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
5062 * features/rs6000/powerpc-vsx32.c: Re-generated.
5063 * features/rs6000/powerpc-vsx32l.c: Re-generated.
5064 * features/rs6000/powerpc-vsx64.c: Re-generated.
5065 * features/rs6000/powerpc-vsx64l.c: Re-generated.
5066 * features/rs6000/rs6000.c: Re-generated.
5067 * features/s390-linux32.c: Re-generated.
5068 * features/s390-linux32v1.c: Re-generated.
5069 * features/s390-linux32v2.c: Re-generated.
5070 * features/s390-linux64.c: Re-generated.
5071 * features/s390-linux64v1.c: Re-generated.
5072 * features/s390-linux64v2.c: Re-generated.
5073 * features/s390-te-linux64.c: Re-generated.
5074 * features/s390-tevx-linux64.c: Re-generated.
5075 * features/s390-vx-linux64.c: Re-generated.
5076 * features/s390x-linux64.c: Re-generated.
5077 * features/s390x-linux64v1.c: Re-generated.
5078 * features/s390x-linux64v2.c: Re-generated.
5079 * features/s390x-te-linux64.c: Re-generated.
5080 * features/s390x-tevx-linux64.c: Re-generated.
5081 * features/s390x-vx-linux64.c: Re-generated.
5082 * features/sparc/sparc32-solaris.c: Re-generated.
5083 * features/sparc/sparc64-solaris.c: Re-generated.
5084 * features/tic6x-c62x.c: Re-generated.
5085 * features/tic6x-c62x-linux.c: Re-generated.
5086 * features/tic6x-c64x.c: Re-generated.
5087 * features/tic6x-c64x-linux.c: Re-generated.
5088 * features/tic6x-c64xp.c: Re-generated.
5089 * features/tic6x-c64xp-linux.c: Re-generated.
5090
35b4818d
YQ
50912017-07-26 Yao Qi <yao.qi@linaro.org>
5092
5093 * i386-linux-tdep.c (i386_linux_read_description): New function.
5094 (i386_linux_core_read_description): Call
5095 i386_linux_read_description.
5096 * i386-linux-tdep.h (i386_linux_read_description): Declare.
5097 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
5098 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
5099 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
5100 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
5101 * x86-linux-nat.c (x86_linux_read_description): Call
5102 i386_linux_read_description.
5103
8e2141c6
YQ
51042017-07-26 Yao Qi <yao.qi@linaro.org>
5105
5106 * NEWS: Mention it.
5107 * features/Makefile (%.c: %.xml): Pass the xml file name to
5108 command "maint print c-tdesc".
5109 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
5110 name from 'arg'.
5111
b468ff4c
YQ
51122017-07-26 Yao Qi <yao.qi@linaro.org>
5113
5114 * target-descriptions.c (target_desc): Add ctor and dtor. Do
5115 in-class initialization.
5116 (tdesc_create_feature): Call new instead of XCNEW.
5117 (free_target_description): Ue delete.
5118
b9c0e1b4
JB
51192017-07-25 John Baldwin <jhb@FreeBSD.org>
5120
5121 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
5122
a04b5337
YQ
51232017-07-25 Yao Qi <yao.qi@linaro.org>
5124
5125 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
5126 constant.
5127 (amd64_x32_init_abi): Likewise.
5128 * amd64-tdep.h (amd64_init_abi): Update declaration.
5129 (amd64_x32_init_abi): Likewise.
5130
02ad7fc2
YQ
51312017-07-25 Yao Qi <yao.qi@linaro.org>
5132
5133 PR tdep/21717
5134 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
5135 condition for FPSCR.
5136 (arm_linux_store_inferior_registers): Likewise.
5137
b6f48cb0
TT
51382017-07-22 Tom Tromey <tom@tromey.com>
5139
5140 * break-catch-syscall.c (struct catch_syscall_inferior_data)
5141 <syscalls_counts>: Now a std::vector.
5142 (get_catch_syscall_inferior_data): Use "new".
5143 (catch_syscall_inferior_data_cleanup): Use "delete".
5144 (insert_catch_syscall, remove_catch_syscall)
5145 (clear_syscall_counts): Update.
5146
e12c9b7a
TT
51472017-07-22 Tom Tromey <tom@tromey.com>
5148
5149 * break-catch-syscall.c (syscall_catchpoint)
5150 <syscalls_to_be_caught>: Now a std::vector<int>
5151 (~syscall_catchpoint): Remove.
5152 (insert_catch_syscall, remove_catch_syscall)
5153 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5154 (print_mention_catch_syscall, print_recreate_catch_syscall):
5155 Update.
5156 (create_syscall_event_catchpoint): Change type of "filter"
5157 parameter.
5158 (catch_syscall_split_args): Return a std::vector.
5159 (catch_syscall_command_1, catching_syscall_number_1): Update.
5160
4fa8aeac
TT
51612017-07-22 Tom Tromey <tom@tromey.com>
5162
5163 * break-catch-throw.c (struct exception_catchpoint)
5164 <exception_rx>: Now a std::string.
5165 (~exception_catchpoint): Remove.
5166 (print_one_detail_exception_catchpoint): Update.
5167 (handle_gnu_v3_exceptions): Change type of except_rx.
5168 (extract_exception_regexp): Return a std::string.
5169 (catch_exception_command_1): Update.
5170
f746a154
TT
51712017-07-22 Tom Tromey <tom@tromey.com>
5172
5173 * break-catch-sig.c (gdb_signal_type): Remove typedef.
5174 (struct signal_catchpoint) <signals_to_be_caught>: Now a
5175 std::vector.
5176 <catch_all>: Now a bool.
5177 (~signal_catchpoint): Remove.
5178 (signal_catchpoint_insert_location)
5179 (signal_catchpoint_remove_location)
5180 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
5181 (signal_catchpoint_print_mention)
5182 (signal_catchpoint_print_recreate)
5183 (signal_catchpoint_explains_signal): Update.
5184 (create_signal_catchpoint): Change type of "filter" and
5185 "catch_all".
5186 (catch_signal_split_args): Return a std::vector. Change type of
5187 "catch_all".
5188 (catch_signal_command): Update.
5189
47e77640
PA
51902017-07-20 Pedro Alves <palves@redhat.com>
5191
5192 * ada-lang.c (ada_language_defn): Make extern.
5193 (_initialize_ada_language): Remove add_language call.
5194 * c-lang.c (c_language_defn, cplus_language_defn)
5195 (asm_language_defn, minimal_language_defn): Make extern.
5196 (_initialize_c_language): Delete.
5197 * completer.c (compare_cstrings): Delete, moved to utils.h.
5198 * d-lang.c (d_language_defn): Make extern.
5199 (_initialize_d_language): Remove add_language calls.
5200 * defs.h (enum language): Add comment.
5201 * f-lang.c (f_language_defn): Make extern.
5202 (_initialize_f_language): Remove add_language call.
5203 * go-lang.c (go_language_defn): Make extern.
5204 (_initialize_go_language): Remove add_language call.
5205 * language.c: Include <algorithm>.
5206 (languages): Redefine as const array.
5207 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
5208 (set_language_command): Handle "local". Use for-range loop.
5209 (set_language): Remove loop.
5210 (language_enum): Rewrite.
5211 (language_def, language_str): Remove loops.
5212 (add_language): Delete.
5213 (add_set_language_command): New, based on add_languages.
5214 (skip_language_trampoline): Adjust.
5215 (local_language_defn): Delete.
5216 (language_gdbarch_post_init): Adjust.
5217 (_initialize_language): Remove add_language calls. Call
5218 add_set_language_command.
5219 * language.h (add_language): Delete.
5220 (auto_language_defn)
5221 (unknown_language_defn, minimal_language_defn, ada_language_defn)
5222 (asm_language_defn, c_language_defn, cplus_language_defn)
5223 (d_language_defn, f_language_defn, go_language_defn)
5224 (m2_language_defn, objc_language_defn, opencl_language_defn)
5225 (pascal_language_defn, rust_language_defn): Declare.
5226 * m2-lang.c (m2_language_defn): Make extern.
5227 (_initialize_m2_language): Remove add_language call.
5228 * objc-lang.c (objc_language_defn): Make extern.
5229 (_initialize_objc_language): Remove add_language call.
5230 * opencl-lang.c (opencl_language_defn): Make extern.
5231 (_initialize_opencl_language): Remove add_language call.
5232 * p-lang.c (pascal_language_defn): Make extern.
5233 (_initialize_pascal_language): Delete.
5234 * rust-lang.c (rust_language_defn): Make extern.
5235 (_initialize_rust_language): Delete.
5236 * utils.h (compare_cstrings): New static inline function.
5237
edb0c9cb
PA
52382017-07-20 Pedro Alves <palves@redhat.com>
5239
5240 * ada-lang.c (ada_to_fixed_type_1): Adjust.
5241 (get_var_value): Constify parameters.
5242 (get_int_var_value): Change prototype.
5243 (to_fixed_range_type): Adjust.
5244 * ada-lang.h (get_int_var_value): Change prototype.
5245
a778f165
PA
52462017-07-20 Pedro Alves <palves@redhat.com>
5247
5248 * dwarf2read.c (dw2_lookup_symbol): Use
5249 SYMBOL_MATCHES_SEARCH_NAME.
5250 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
5251
42edd901
PA
52522017-07-20 Pedro Alves <palves@redhat.com>
5253
5254 * block.c (block_iter_name_step, block_iter_name_first)
5255 (block_iter_name_next): Delete.
5256 (block_lookup_symbol_primary): Adjust to use
5257 dict_iter_match_first/dict_iter_match_next.
5258 * block.h (block_iter_name_first, block_iter_name_next): Delete
5259 declarations.
5260 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
5261 dict_iter_match_first/dict_iter_match_next.
5262
cf325299
PA
52632017-07-20 Pedro Alves <palves@redhat.com>
5264
5265 * cp-support.c (cp_find_first_component_aux): Add missing case for
5266 end of string.
5267
c5ed0576
DB
52682017-07-18 David Blaikie <dblaikie@gmail.com>
5269
5270 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
5271 of dwo_cu's dwo_file.
5272
27841e76
YQ
52732017-07-18 Yao Qi <yao.qi@linaro.org>
5274
5275 * remote.c (store_registers_using_G): Remove one line comment.
5276
cfb7e58b
YQ
52772017-07-18 Yao Qi <yao.qi@linaro.org>
5278
5279 * regcache.c (regcache_cpy): Simplify it.
5280 (regcache::cpy_no_passthrough): Remove it.
5281 * regcache.h (cpy_no_passthrough): Remove it.
5282 (regcache_dup, regcache_cpy): Update comments.
5283
386535dd
PA
52842017-07-18 Pedro Alves <palves@redhat.com>
5285
5286 * remote-sim.c (sim_command_completer): Adjust to work with a
5287 completion_tracker instead of a VEC.
5288
c45ec17c
PA
52892017-07-17 Pedro Alves <palves@redhat.com>
5290
5291 * completer.c (complete_source_filenames): New function.
5292 (complete_address_and_linespec_locations): New function.
5293 (location_completer): Use complete_address_and_linespec_locations.
5294 (completion_tracker::build_completion_result): Honor the tracker's
5295 request to suppress append.
5296 * completer.h (completion_tracker::suppress_append_ws)
5297 (completion_tracker::set_suppress_append_ws): New methods.
5298 (completion_tracker::m_suppress_append_ws): New field.
5299 (complete_source_filenames): New declaration.
5300 * linespec.c (linespec_complete_what): New.
5301 (struct ls_parser) <complete_what, completion_word,
5302 completion_quote_char, completion_quote_end, completion_tracker>:
5303 New fields.
5304 (string_find_incomplete_keyword_at_end): New.
5305 (linespec_lexer_lex_string): Record quote char. If in completion
5306 mode, don't throw.
5307 (linespec_lexer_consume_token): Advance the completion word point.
5308 (linespec_lexer_peek_token): Save/restore completion info.
5309 (save_stream_and_consume_token): New.
5310 (set_completion_after_number): New.
5311 (linespec_parse_basic): Set what to complete next depending on
5312 token. Handle function and label completions specially.
5313 (parse_linespec): Disable objc shortcut in completion mode. Set
5314 what to complete next depending on token type. Skip keyword if in
5315 completion mode.
5316 (complete_linespec_component, linespec_complete): New.
5317 * linespec.h (linespec_complete): Declare.
5318
be966d42
PA
53192017-07-17 Pedro Alves <palves@redhat.com>
5320
5321 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
5322 Handle 'operator<' / 'operator<<'.
5323
a2459270
PA
53242017-07-17 Pedro Alves <palves@redhat.com>
5325
5326 * completer.c (collect_explicit_location_matches): Handle
5327 MATCH_LABEL.
5328 (convert_explicit_location_to_linespec): New, factored out from
5329 ...
5330 (convert_explicit_location_to_sals): ... this.
5331 (complete_label): New.
5332 (linespec_complete_label, find_label_symbols_in_block): New.
5333 (find_label_symbols): Add completion_mode parameter and adjust to
5334 call find_label_symbols_in_block.
5335 * linespec.h (linespec_complete_label): Declare.
5336
c6756f62
PA
53372017-07-17 Pedro Alves <palves@redhat.com>
5338
5339 * ada-lang.c (ada_collect_symbol_completion_matches): Add
5340 complete_symbol_mode parameter.
5341 * cli/cli-cmds.c (complete_command): Get the completion result out
5342 of the handle_brkchars tracker if used a custom word point.
5343 * completer.c: Include "linespec.h".
5344 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
5345 (advance_to_expression_complete_word_point): New.
5346 (completion_tracker::completes_to_completion_word): New.
5347 (complete_files_symbols): Pass down
5348 complete_symbol_mode::EXPRESSION.
5349 (explicit_options, probe_options): New.
5350 (collect_explicit_location_matches): Complete on the
5351 explictit_loc->foo instead of word. Use
5352 linespec_complete_function. Handle MATCH_LINE. Handle offering
5353 keyword and options completions.
5354 (backup_text_ptr): Delete.
5355 (skip_keyword): New.
5356 (complete_explicit_location): Remove 'word' parameter. Add
5357 language, quoted_arg_start and quoted_arg_end parameters.
5358 Rewrite, parsing left to right.
5359 (location_completer): Rewrite.
5360 (location_completer_handle_brkchars): New function.
5361 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
5362 (enum complete_line_internal_reason): Adjust comments.
5363 (completion_tracker::discard_completions): New.
5364 (completer_handle_brkchars_func_for_completer): Handle
5365 location_completer.
5366 (gdb_custom_word_point_brkchars)
5367 (gdb_org_rl_basic_quote_characters): New.
5368 (gdb_completion_word_break_characters_throw)
5369 (completion_find_completion_word): Handle trackers that use a
5370 custom word point.
5371 (completion_tracker::advance_custom_word_point_by): New.
5372 (completion_tracker::build_completion_result): Don't rely on
5373 readline appending the quote char.
5374 (gdb_rl_attempted_completion_function_throw): Handle trackers that
5375 use a custom word point.
5376 (gdb_rl_attempted_completion_function): Restore
5377 rl_basic_quote_characters.
5378 * completer.h (class completion_tracker): Extend intro comment.
5379 (completion_tracker::set_quote_char)
5380 (completion_tracker::quote_char)
5381 (completion_tracker::set_use_custom_word_point)
5382 (completion_tracker::use_custom_word_point)
5383 (completion_tracker::custom_word_point)
5384 (completion_tracker::set_custom_word_point)
5385 (completion_tracker::advance_custom_word_point_by)
5386 (completion_tracker::completes_to_completion_word)
5387 (completion_tracker::discard_completions): New methods.
5388 (completion_tracker::m_quote_char)
5389 (completion_tracker::m_use_custom_word_point)
5390 (completion_tracker::m_custom_word_point): New fields.
5391 (advance_to_expression_complete_word_point): Declare.
5392 * f-lang.c (f_collect_symbol_completion_matches): Add
5393 complete_symbol_mode parameter.
5394 * language.h (struct language_defn)
5395 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
5396 parameter.
5397 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
5398 (linespec_complete_function): New function.
5399 (linespec_lexer_lex_keyword): Adjust.
5400 * linespec.h (linespec_keywords, linespec_complete_function): New
5401 declarations.
5402 * location.c (find_end_quote): New function.
5403 (explicit_location_lex_one): Add explicit_completion_info
5404 parameter. Save quoting info. Don't throw if being called for
5405 completion. Don't handle Ada operators here.
5406 (is_cp_operator, skip_op_false_positives, first_of)
5407 (explicit_location_lex_one_function): New function.
5408 (string_to_explicit_location): Replace 'dont_throw' parameter with
5409 an explicit_completion_info pointer parameter. Handle it. Don't
5410 use explicit_location_lex_one to lex function names. Use
5411 explicit_location_lex_one_function instead.
5412 * location.h (struct explicit_completion_info): New.
5413 (string_to_explicit_location): Replace 'dont_throw' parameter with
5414 an explicit_completion_info pointer parameter.
5415 * symtab.c (default_collect_symbol_completion_matches_break_on):
5416 Add complete_symbol_mode parameter. Handle LINESPEC mode.
5417 (default_collect_symbol_completion_matches)
5418 (collect_symbol_completion_matches): Add complete_symbol_mode
5419 parameter.
5420 (collect_symbol_completion_matches_type): Pass down
5421 complete_symbol_mode::EXPRESSION.
5422 (collect_file_symbol_completion_matches): Add complete_symbol_mode
5423 parameter. Handle LINESPEC mode.
5424 * symtab.h (complete_symbol_mode): New.
5425 (default_collect_symbol_completion_matches_break_on)
5426 (default_collect_symbol_completion_matches)
5427 (collect_symbol_completion_matches)
5428 (collect_file_symbol_completion_matches): Add complete_symbol_mode
5429 parameter.
5430
1d550c82
PA
54312017-07-17 Pedro Alves <palves@redhat.com>
5432
5433 * utils.c (enum class strncmp_iw_mode): New.
5434 (strcmp_iw): Rename to ...
5435 (strncmp_iw_with_mode): ... this. Add string2_len and mode
5436 parameters. Handle them.
5437 (strncmp_iw): New.
5438 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
5439 * utils.h (strncmp_iw): Declare.
5440 (strcmp_iw): Move describing comments here.
5441
8090b426
PA
54422017-07-17 Pedro Alves <palves@redhat.com>
5443
5444 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
5445 CP_OPERATOR_STR.
5446 * c-typeprint.c (is_type_conversion_operator): Use
5447 CP_OPERATOR_STR.
5448 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
5449 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
5450 CP_OPERATOR_LEN.
5451 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
5452 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
5453 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
5454 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
5455 CP_OPERATOR_STR.
5456 * location.c: Include "cp-support.h".
5457 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
5458 CP_OPERATOR_STR.
5459 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
5460 CP_OPERATOR_LEN.
5461
6a2c1b87
PA
54622017-07-17 Pedro Alves <palves@redhat.com>
5463
5464 * cli/cli-cmds.c (complete_command): Use a completion tracker
5465 along with completion_find_completion_word for handle_brkchars
5466 phase.
5467 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
5468 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
5469 (struct gdb_rl_completion_word_info): New.
5470 (gdb_rl_find_completion_word): New.
5471 (completion_find_completion_word): New.
5472 * completer.h (completion_find_completion_word): Declare.
5473
eb3ff9a5
PA
54742017-07-17 Pedro Alves <palves@redhat.com>
5475
5476 * ada-lang.c (symbol_completion_match): Adjust comments.
5477 (symbol_completion_add): Replace vector parameter with
5478 completion_tracker parameter. Use it.
5479 (ada_make_symbol_completion_list): Rename to...
5480 (ada_collect_symbol_completion_matches): ... this. Add
5481 completion_tracker parameter and use it.
5482 (ada_language_defn): Adjust.
5483 * break-catch-syscall.c (catch_syscall_completer): Adjust
5484 prototype and work with completion_tracker instead of VEC.
5485 * breakpoint.c (condition_completer): Adjust prototype and work
5486 with completion_tracker instead of VEC.
5487 * c-lang.c (c_language_defn, cplus_language_defn)
5488 (asm_language_defn, minimal_language_defn): Adjust to renames.
5489 * cli/cli-cmds.c (complete_command): Rework using
5490 completion_tracker. Catch exceptions when completing.
5491 * cli/cli-decode.c (integer_unlimited_completer)
5492 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
5493 with completion_tracker instead of VEC.
5494 * command.h (struct completion_tracker): Forward declare.
5495 (completer_ftype, completer_handle_brkchars_ftype): Change
5496 types.
5497 (complete_on_cmdlist, complete_on_enum): Adjust.
5498 * completer.c: Include <algorithm>.
5499 (struct gdb_completer_state): New.
5500 (current_completion): New global.
5501 (readline_line_completion_function): Delete.
5502 (noop_completer, filename_completer)
5503 (filename_completer_handle_brkchars, complete_files_symbols)
5504 (linespec_location_completer): Adjust to work with a
5505 completion_tracker instead of a VEC.
5506 (string_or_empty): New.
5507 (collect_explicit_location_matches): Adjust to work with a
5508 completion_tracker instead of a VEC.
5509 (explicit_location_completer): Rename to ...
5510 (complete_explicit_location): ... this and adjust to work with a
5511 completion_tracker instead of a VEC.
5512 (location_completer): Adjust to work with a completion_tracker
5513 instead of a VEC.
5514 (add_struct_fields): Adjust to work with a completion_list instead
5515 of VEC.
5516 (expression_completer): Rename to ...
5517 (complete_expression): ... this and adjust to work with a
5518 completion_tracker instead of a VEC. Use complete_files_symbols.
5519 (expression_completer): Reimplement on top of complete_expression.
5520 (symbol_completer): Adjust to work with a completion_tracker
5521 instead of a VEC.
5522 (enum complete_line_internal_reason): Add describing comments.
5523 (complete_line_internal_normal_command): Adjust to work with a
5524 completion_tracker instead of a VEC.
5525 (complete_line_internal): Rename to ...
5526 (complete_line_internal_1): ... this and adjust to work with a
5527 completion_tracker instead of a VEC. Assert TEXT is NULL in the
5528 handle_brkchars phase.
5529 (new_completion_tracker): Delete.
5530 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
5531 complete_line_internal_1.
5532 (free_completion_tracker): Delete.
5533 (INITIAL_COMPLETION_HTAB_SIZE): New.
5534 (completion_tracker::completion_tracker)
5535 (completion_tracker::~completion_tracker): New.
5536 (maybe_add_completion): Delete.
5537 (completion_tracker::maybe_add_completion)
5538 (completion_tracker::add_completion)
5539 (completion_tracker::add_completions): New.
5540 (throw_max_completions_reached_error): Delete.
5541 (complete_line): Adjust to work with a completion_tracker instead
5542 of a VEC. Don't create a completion_tracker_t or check for max
5543 completions here.
5544 (command_completer, command_completer_handle_brkchars)
5545 (signal_completer, reg_or_group_completer_1)
5546 (reg_or_group_completer, default_completer_handle_brkchars):
5547 Adjust to work with a completion_tracker.
5548 (gdb_completion_word_break_characters_throw): New.
5549 (gdb_completion_word_break_characters): Reimplement.
5550 (line_completion_function): Delete.
5551 (completion_tracker::recompute_lowest_common_denominator)
5552 (expand_preserving_ws)
5553 (completion_tracker::build_completion_result)
5554 (completion_result::completion_result)
5555 (completion_result::completion_result)
5556 (completion_result::~completion_result)
5557 (completion_result::completion_result)
5558 (completion_result::release_match_list, compare_cstrings)
5559 (completion_result::sort_match_list)
5560 (completion_result::reset_match_list)
5561 (gdb_rl_attempted_completion_function_throw)
5562 (gdb_rl_attempted_completion_function): New.
5563 * completer.h (completion_list, struct completion_result)
5564 (class completion_tracker): New.
5565 (complete_line): Add completion_tracker parameter.
5566 (readline_line_completion_function): Delete.
5567 (gdb_rl_attempted_completion_function): New.
5568 (noop_completer, filename_completer, expression_completer)
5569 (location_completer, symbol_completer, command_completer)
5570 (signal_completer, reg_or_group_completer): Update prototypes.
5571 (completion_tracker_t, new_completion_tracker)
5572 (make_cleanup_free_completion_tracker): Delete.
5573 (enum maybe_add_completion_enum): Delete.
5574 (maybe_add_completion): Delete.
5575 (throw_max_completions_reached_error): Delete.
5576 * corefile.c (complete_set_gnutarget): Adjust to work with a
5577 completion_tracker instead of a VEC.
5578 * cp-abi.c (cp_abi_completer): Adjust to work with a
5579 completion_tracker instead of a VEC.
5580 * d-lang.c (d_language_defn): Adjust.
5581 * disasm.c (disassembler_options_completer): Adjust to work with a
5582 completion_tracker instead of a VEC.
5583 * f-lang.c (f_make_symbol_completion_list): Rename to ...
5584 (f_collect_symbol_completion_matches): ... this. Adjust to work
5585 with a completion_tracker instead of a VEC.
5586 (f_language_defn): Adjust.
5587 * go-lang.c (go_language_defn): Adjust.
5588 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
5589 Adjust to work with a completion_tracker instead of a VEC.
5590 * infrun.c (handle_completer): Likewise.
5591 * interps.c (interpreter_completer): Likewise.
5592 * interps.h (interpreter_completer): Likewise.
5593 * language.c (unknown_language_defn, auto_language_defn)
5594 (local_language_defn): Adjust.
5595 * language.h (language_defn::la_make_symbol_completion_list):
5596 Rename to ...
5597 (language_defn::la_collect_symbol_completion_matches): ... this
5598 and adjust to work with a completion_tracker instead of a VEC.
5599 * m2-lang.c (m2_language_defn): Adjust.
5600 * objc-lang.c (objc_language_defn): Adjust.
5601 * opencl-lang.c (opencl_language_defn): Adjust.
5602 * p-lang.c (pascal_language_defn): Adjust.
5603 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
5604 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
5605 with a completion_tracker.
5606 * rust-lang.c (rust_language_defn): Adjust.
5607 * symtab.c (free_completion_list, do_free_completion_list)
5608 (return_val, completion_tracker): Delete.
5609 (completion_list_add_name, completion_list_add_symbol)
5610 (completion_list_add_msymbol, completion_list_objc_symbol)
5611 (completion_list_add_fields, add_symtab_completions): Add
5612 completion_tracker parameter and use it.
5613 (default_make_symbol_completion_list_break_on_1): Rename to...
5614 (default_collect_symbol_completion_matches_break_on): ... this.
5615 Add completion_tracker parameter and use it instead of allocating
5616 a completion tracker here.
5617 (default_make_symbol_completion_list_break_on): Delete old
5618 implementation.
5619 (default_make_symbol_completion_list): Delete.
5620 (default_collect_symbol_completion_matches): New.
5621 (make_symbol_completion_list): Delete.
5622 (collect_symbol_completion_matches): New.
5623 (make_symbol_completion_type): Rename to ...
5624 (collect_symbol_completion_matches_type): ... this. Add
5625 completion_tracker parameter and use it instead of VEC.
5626 (make_file_symbol_completion_list_1): Rename to...
5627 (collect_file_symbol_completion_matches): ... this. Add
5628 completion_tracker parameter and use it instead of VEC.
5629 (make_file_symbol_completion_list): Delete.
5630 (add_filename_to_list): Use completion_list instead of a VEC.
5631 (add_partial_filename_data::list): Now a completion_list.
5632 (make_source_files_completion_list): Work with a completion_list
5633 instead of a VEC.
5634 * symtab.h: Include "completer.h".
5635 (default_make_symbol_completion_list_break_on)
5636 (default_make_symbol_completion_list, make_symbol_completion_list)
5637 (make_symbol_completion_type, make_file_symbol_completion_list)
5638 (make_source_files_completion_list): Delete.
5639 (default_collect_symbol_completion_matches_break_on)
5640 (default_collect_symbol_completion_matches)
5641 (collect_symbol_completion_matches)
5642 (collect_symbol_completion_matches_type)
5643 (collect_file_symbol_completion_matches)
5644 (make_source_files_completion_list): New.
5645 * top.c (init_main): Don't install a rl_completion_entry_function
5646 hook. Install a rl_attempted_completion_function hook instead.
5647 * tui/tui-layout.c (layout_completer): Adjust to work with a
5648 completion_tracker.
5649 * tui/tui-regs.c (tui_reggroup_completer):
5650 * tui/tui-win.c (window_name_completer, focus_completer)
5651 (winheight_completer): Adjust to work with a completion_tracker.
5652 * value.c: Include "completer.h".
5653 (complete_internalvar): Adjust to work with a completion_tracker.
5654 * value.h (complete_internalvar): Likewise.
5655
6e1dbf8c
PA
56562017-07-17 Pedro Alves <palves@redhat.com>
5657
5658 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
5659 renames.
5660 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
5661 comments to completer_ftype's declaration.
5662 <completer_handle_brkchars>: Change type to
5663 completer_handle_brkchars_ftype.
5664 * command.h (completer_ftype): Add describing comment and give
5665 names to parameters.
5666 (completer_ftype_void): Rename to ...
5667 (completer_handle_brkchars_ftype) ... this. Add describing comment.
5668 (set_cmd_completer_handle_brkchars): Adjust.
5669 * completer.c (filename_completer_handle_brkchars): New function.
5670 (complete_line_internal_normal_command): New function, factored
5671 out from ...
5672 (complete_line_internal): ... here.
5673 (command_completer_handle_brkchars)
5674 (default_completer_handle_brkchars)
5675 (completer_handle_brkchars_func_for_completer): New functions.
5676 * completer.h (set_gdb_completion_word_break_characters): Delete
5677 declaration.
5678 (completer_handle_brkchars_func_for_completer): New declaration.
5679 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
5680 completer_handle_brkchars_func_for_completer.
5681
78b13106
PA
56822017-07-17 Pedro Alves <palves@redhat.com>
5683
5684 * completer.c (symbol_completer): New function, based on
5685 make_symbol_completion_list_fn.
5686 * completer.h (symbol_completer): New declaration.
5687 * guile/scm-cmd.c (cmdscm_completers): Adjust.
5688 * python/py-cmd.c (completers): Adjust.
5689 * symtab.c (make_symbol_completion_list_fn): Delete.
5690 * symtab.h (make_symbol_completion_list_fn): Delete.
5691 * cli/cli-decode.c (add_cmd): Adjust.
5692
bbf2f4df
PA
56932017-07-17 Pedro Alves <palves@redhat.com>
5694
5695 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
5696 * dwarf2read.c: Include "filename-seen-cache.h".
5697 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
5698 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
5699 * filename-seen-cache.c: New file.
5700 * filename-seen-cache.h: New file.
5701 * symtab.c: Include "filename-seen-cache.h".
5702 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
5703 (create_filename_seen_cache, clear_filename_seen_cache)
5704 (delete_filename_seen_cache, filename_seen): Delete, parts moved
5705 to filename-seen-cache.h/filename-seen-cache.c.
5706 (output_source_filename, sources_info)
5707 (maybe_add_partial_symtab_filename)
5708 (make_source_files_completion_list): Adjust to use
5709 filename_seen_cache.
5710
330cdd98
PA
57112017-07-17 Pedro Alves <palves@redhat.com>
5712
5713 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
5714 fields.
5715 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
5716 dwarf2_debug_sections*)): New.
5717 (dwarf2_per_objfile::dwarf2_per_objfile(const
5718 dwarf2_per_objfile&)): Declare as deleted.
5719 (dwarf2_per_objfile::operator=): Declare as deleted.
5720 (dwarf2_per_objfile::dwarf2_per_objfile)
5721 (dwarf2_per_objfile::~dwarf2_per_objfile)
5722 (dwarf2_per_objfile::free_cached_comp_units): New.
5723 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
5724 ctor. Call dwarf2_per_objfile's ctor manually.
5725 (dwarf2_locate_sections): Deleted/refactored as ...
5726 (dwarf2_per_objfile::locate_sections): ... this new method.
5727 (free_cached_comp_units): Defer to
5728 dwarf2_per_objfile::free_cached_comp_units.
5729 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
5730
8880f2a9
TT
57312017-07-14 Tom Tromey <tom@tromey.com>
5732
5733 PR rust/21764:
5734 * rust-exp.y (convert_ast_to_expression): Add "want_type"
5735 parameter.
5736 <UNOP_SIZEOF>: Split into separate case.
5737 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
5738
65547233
TT
57392017-07-14 Tom Tromey <tom@tromey.com>
5740
5741 PR rust/21763:
5742 * symtab.c (symbol_matches_domain): Add language_rust to special
5743 case.
5744 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
5745 treat LOC_TYPEDEF symbols as variables.
5746
8f14146e
PA
57472017-07-14 Pedro Alves <palves@redhat.com>
5748
5749 * symtab.c (make_file_symbol_completion_list_1): Iterate over
5750 symtabs matching all symtabs with SRCFILE as file name instead of
5751 only considering the first hit, with lookup_symtab.
5752
2347965c
SM
57532017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5754
5755 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
5756 operator_name parameters.
5757 (gen_expr): Update function call.
5758
40f4af28
SM
57592017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5760
5761 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
5762 parameter.
5763 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
5764 Likewise.
5765 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
5766 parameter, use agent_expr::gdbarch instead, update function
5767 calls.
5768 (locexpr_tracepoint_var_ref): Likewise.
5769 (loclist_tracepoint_var_ref): Likewise.
5770 * ax-gdb.c (gen_trace_static_fields): Likewise.
5771 (gen_traced_pop): Likewise.
5772 (gen_frame_args_address): Likewise.
5773 (gen_frame_locals_address): Likewise.
5774 (gen_var_ref): Likewise.
5775 (gen_struct_ref_recursive): Likewise.
5776 (gen_static_field): Likewise.
5777 (gen_maybe_namespace_elt): Likewise.
5778 (gen_expr): Likewise.
5779 (gen_trace_for_var): Likewise.
5780 (gen_trace_for_expr): Likewise.
5781 (gen_trace_for_return_address): Likewise.
5782
053f8057
SM
57832017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5784
5785 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
5786 parameter.
5787 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
5788
6661ad48
SM
57892017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5790
5791 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
5792 from ax, update calls.
5793 (gen_usual_arithmetic): Likewise.
5794 (gen_integral_promotions): Likewise.
5795 (gen_bitfield_ref): Likewise.
5796 (gen_primitive_field): Likewise.
5797 (gen_struct_ref_recursive): Likewise.
5798 (gen_struct_ref): Likewise.
5799 (gen_maybe_namespace_elt): Likewise.
5800 (gen_struct_elt_for_reference): Likewise.
5801 (gen_namespace_elt): Likewise.
5802 (gen_aggregate_elt_ref): Likewise.
5803 (gen_expr): Get gdbarch from ax, update calls.
5804 (gen_expr_binop_rest): Likewise.
5805
c55a47e7
PA
58062017-07-13 Pedro Alves <palves@redhat.com>
5807
5808 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
5809 as default tdesc.
5810 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
5811 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
5812 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
5813 tdesc_amd64_linux as default tdesc. Get final tdesc from the
5814 tdep.
5815 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
5816 Get final tdesc from the tdep.
5817 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
5818 default tdesc.
5819 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
5820 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
5821 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
5822 Use it as default tdesc.
5823 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
5824 down to amd_init_abi. No longer handle fallback tdesc here.
5825 * amd64-tdep.h (tdesc_x32): Declare.
5826 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
5827 parameter.
5828 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
5829 as default tdesc.
5830
55efceab
AA
58312017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5832
5833 * s390-linux-tdep.c (s390_process_record): Add support for
5834 instructions new in arch12.
5835
0aa37b65
JB
58362017-07-11 John Baldwin <jhb@FreeBSD.org>
5837
5838 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
5839 PT_GETFSBASE and PT_GETGSBASE.
5840 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
5841 PT_SETGSBASE.
5842
48aeef91
JB
58432017-07-11 John Baldwin <jhb@FreeBSD.org>
5844
5845 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
5846 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
5847 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
5848 those rules.
5849 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
5850 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
5851 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
5852 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
5853 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
5854 * features/i386/amd64.xml: Add 64bit-segments.xml.
5855 * features/i386/amd64-avx-avx512.c: Regenerated.
5856 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
5857 * features/i386/amd64-avx-mpx.c: Regenerated.
5858 * features/i386/amd64-avx.c: Regenerated.
5859 * features/i386/amd64-mpx.c: Regenerated.
5860 * features/i386/amd64.c: Regenerated.
5861 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
5862 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
5863 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
5864 * regformats/i386/amd64-avx.dat: Regenerated.
5865 * regformats/i386/amd64-mpx.dat: Regenerated.
5866 * regformats/i386/amd64.dat: Regenerated.
5867
77c501bc
YQ
58682017-07-10 Yao Qi <yao.qi@linaro.org>
5869
5870 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
5871 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
5872
6dc8d757
AK
58732017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
5874
5875 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
5876 unsetenv.
5877 * gnulib/aclocal.m4: Regenerate.
5878 * gnulib/config.in: Regenerate.
5879 * gnulib/configure: Regenerate.
5880 * gnulib/import/Makefile.am: Regenerate.
5881 * gnulib/import/Makefile.in: Regenerate.
5882 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5883 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5884 * gnulib/import/m4/environ.m4: New file.
5885 * gnulib/import/m4/setenv.m4: New file.
5886 * gnulib/import/setenv.c: New file.
5887 * gnulib/import/unsetenv.c: New file.
5888
266934d1
SM
58892017-07-09 Simon Marchi <simon.marchi@ericsson.com>
5890
5891 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
5892 address when op is DW_OP_addr.
5893
03278692
TT
58942017-07-09 Tom Tromey <tom@tromey.com>
5895
5896 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
5897 check and apply to outer type.
5898
4b654465
JB
58992017-07-07 John Baldwin <jhb@FreeBSD.org>
5900
5901 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
5902 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
5903 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
5904 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
5905
2af9fc44
JB
59062017-07-07 John Baldwin <jhb@FreeBSD.org>
5907
5908 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
5909
382b69bb
JB
59102017-07-07 John Baldwin <jhb@FreeBSD.org>
5911
5912 * corelow.c (get_core_siginfo): Remove.
5913 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
5914 instead of get_core_siginfo.
5915 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
5916 * gdbarch.h: Re-generate.
5917 * gdbarch.c: Re-generate.
5918 * linux-tdep.c (linux_core_xfer_siginfo): New.
5919 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
5920
6e5eab33
JB
59212017-07-07 John Baldwin <jhb@FreeBSD.org>
5922
5923 * corelow.c (thread_section_name): Move to ...
5924 * gdbcore.h (thread_section_name): ... here.
5925
929edea9
JB
59262017-07-07 John Baldwin <jhb@FreeBSD.org>
5927
5928 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
5929 (struct siginfo32): New.
5930 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
5931 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
5932 via ptrace(PT_LWPINFO).
5933
762c974a
JB
59342017-07-07 John Baldwin <jhb@FreeBSD.org>
5935
5936 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
5937 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
5938 (fbsd_get_siginfo_type): New.
5939 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5940 (_initialize_fbsd_tdep): New.
5941
33c5cd75
DB
59422017-07-06 David Blaikie <dblaikie@gmail.com>
5943
5944 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
5945 a singular dwo_unit*) to support multiple CUs in the same way that
5946 multiple TUs are supported.
5947 (create_cus_hash_table): Replace create_dwo_cu with a function for
5948 parsing multiple CUs from a DWO file.
5949 (open_and_init_dwo_file): Use create_cus_hash_table rather than
5950 create_dwo_cu.
5951 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
5952 htab_find, rather than comparing the signature to a singleton CU in
5953 the dwo_file.
5954
8455d262
PA
59552017-07-06 Pedro Alves <palves@redhat.com>
5956
5957 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
5958
4da3eb35
PA
59592017-07-04 Pedro Alves <palves@redhat.com>
5960
5961 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
5962 * gdbtypes.h (TYPE_STATIC): Delete.
5963 (struct fn_field) <is_public, is_abstract, is_static, is_final,
5964 is_synchronized, is_native>: Delete.
5965 <dummy>: Bump.
5966 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
5967 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
5968 (TYPE_FN_FIELD_ABSTRACT): Delete.
5969
5bfd255c
SM
59702017-07-03 Simon Marchi <simon.marchi@ericsson.com>
5971
5972 * buffer.h (buffer_finish): Fix spelling mistakes.
5973
25c54127
EZ
59742017-07-01 Eli Zaretskii <eliz@gnu.org>
5975
5976 * .dir-locals.el: Automatically switch to C-style comments in
5977 versions of Emacs that support the feature.
5978
dc4bde35
SDJ
59792017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
5980 Pedro Alves <palves@redhat.com>
5981
5982 PR cli/21688
5983 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
5984 (process_next_line): New variable 'inline_cmd'.
5985 Adjust 'if' clauses for "python", "compile" and "guile" to use
5986 'command_name_equals' and check for '!inline_cmd'.
5987
51ed89aa
SDJ
59882017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
5989
5990 PR cli/21688
5991 * cli/cli-script.c (command_name_equals_not_inline): New function.
5992 (process_next_line): Adjust 'if' clauses for "python", "compile"
5993 and "guile" to use command_name_equals_not_inline.
5994
eb17d413
PA
59952017-06-29 Pedro Alves <palves@redhat.com>
5996
5997 * completer.c (expression_completer): Call
5998 linespec_location_completer instead of location_completer.
5999
195bcdd5
PA
60002017-06-29 Pedro Alves <palves@redhat.com>
6001
6002 * completer.c (expression_completer): Remove code that recomputes
6003 'text' from 'word'.
6004
adc764e7
YQ
60052017-06-29 Yao Qi <yao.qi@linaro.org>
6006
6007 * regformats/regdat.sh: Generate code with
6008 "ifndef IN_PROCESS_AGENT".
6009
6e75794e
PA
60102017-06-28 Pedro Alves <palves@redhat.com>
6011
6012 * command.h: Include "common/scoped_restore.h".
6013
bc491f2e
YQ
60142017-06-28 Yao Qi <yao.qi@linaro.org>
6015
6016 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
6017 instead of obstack_grow.
6018
41664b45
DG
60192017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
6020
6021 PR gdb/21337
6022 * symfile.c (reread_symbols): Call objfiles_changed just before
6023 read_symbols.
6024
6da67eb1
PA
60252017-06-27 Pedro Alves <palves@redhat.com>
6026
6027 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
6028 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
6029 (completion_list_add_symbol, completion_list_add_msymbol):
6030 ... these new functions.
6031 (add_symtab_completions)
6032 (default_make_symbol_completion_list_break_on_1): Adjust.
6033
23732b1e
PA
60342017-06-27 Pedro Alves <palves@redhat.com>
6035
6036 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
6037 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
6038 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
6039 dtor.
6040 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
6041 'storage_obstack' field an auto_obstack. In-class initialize all
6042 non-bitfield fields. Make minsyms_read bool.
6043 * symfile.c (read_symbols): Adjust.
6044
a4d1e79a
AH
60452017-06-27 Alan Hayward <alan.hayward@arm.com>
6046
6047 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
6048 (gdbsim_store_register): Likewise.
6049
8268c778
PA
60502017-06-27 Pedro Alves <palves@redhat.com>
6051
6052 * c-exp.y (name_obstack): Now an auto_obstack.
6053 (yylex): Use auto_obstack::clear.
6054 (c_parse): Use auto_obstack::clear instead of reinitializing and
6055 freeing the obstack.
6056 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
6057 * d-exp.y (name_obstack): Now an auto_obstack.
6058 (yylex): Use auto_obstack::clear.
6059 (d_parse): Use auto_obstack::clear instead of reinitializing and
6060 freeing the obstack.
6061 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
6062 auto_obstack.
6063 * dwarf2read.c (create_addrmap_from_index)
6064 (dwarf2_build_psymtabs_hard)
6065 (update_enumeration_type_from_children): Likewise.
6066 * gdb_obstack.h (auto_obstack): New type.
6067 * go-exp.y (name_obstack): Now an auto_obstack.
6068 (build_packaged_name): Use auto_obstack::clear.
6069 (go_parse): Use auto_obstack::clear instead of reinitializing and
6070 freeing the obstack.
6071 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
6072 auto_obstack.
6073 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
6074 * rust-exp.y (work_obstack): Now an auto_obstack.
6075 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
6076 reinitializing and freeing the obstack.
6077 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
6078 (host_char_to_target): Use auto_obstack.
6079 * utils.h (make_cleanup_obstack_free): Delete declaration.
6080 * valprint.c (generic_emit_char, generic_printstr): Use
6081 auto_obstack.
6082
db665f42
SM
60832017-06-27 Simon Marchi <simon.marchi@ericsson.com>
6084
6085 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
6086 thread.
6087 (darwin_init_thread_list): Don't update dummy thread.
6088 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
6089
873c0814
SM
60902017-06-26 Simon Marchi <simon.marchi@ericsson.com>
6091
6092 * record-full.c (netorder16): Remove.
6093
8b5a7a6e
SM
60942017-06-26 Simon Marchi <simon.marchi@ericsson.com>
6095
6096 * common/diagnostics.h: Define macros for GCC.
6097 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
6098 * common/vec.h: Include diagnostics.h.
6099 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
6100 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
6101 warning.
6102
d1435379
SM
61032017-06-26 Simon Marchi <simon.marchi@ericsson.com>
6104
6105 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
6106 New macro.
6107 * ada-lex.l: Ignore deprecated register warnings.
6108
cc75e0fd
SM
61092017-06-25 Simon Marchi <simon.marchi@ericsson.com>
6110
6111 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
6112 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
6113
07809eaf
SM
61142017-06-25 Simon Marchi <simon.marchi@ericsson.com>
6115
6116 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
6117 its own line.
6118
f076f034
SM
61192017-06-25 Simon Marchi <simon.marchi@ericsson.com>
6120
6121 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
6122
0dd5cbc5
AH
61232017-06-23 Alan Hayward <alan.hayward@arm.com>
6124
6125 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
6126 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
6127 (xtensa_register_read_masked): Likewise.
6128
d4c6ce5b
SDJ
61292017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
6130
6131 * common/environ.c (gdb_environ::unset): Update comment.
6132
16892a03
AH
61332017-06-22 Alan Hayward <alan.hayward@arm.com>
6134
6135 * python/py-unwind.c (pyuw_sniffer): Allocate space for
6136 registers.
6137
d7dcbefc
AH
61382017-06-22 Alan Hayward <alan.hayward@arm.com>
6139
6140 * record-full.c (record_full_exec_insn): Use byte_vector.
6141
b30ff123
YQ
61422017-06-22 Yao Qi <yao.qi@linaro.org>
6143
6144 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
6145 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
6146
4fa847d7
AH
61472017-06-22 Alan Hayward <alan.hayward@arm.com>
6148
6149 * remote.c (cached_reg): Move from here...
6150 * regcache.h (cached_reg): ...to here.
6151 * python/py-unwind.c (struct reg_info): Remove.
6152 (cached_frame_info): Use cached_reg_t.
6153 (pyuw_prev_register): Likewise.
6154 (pyuw_sniffer): Use cached_reg_t and allocate registers.
6155 (pyuw_dealloc_cache): Free all registers.
6156
f4906a9a
PA
61572017-06-22 Pedro Alves <palves@redhat.com>
6158 Simon Marchi <simon.marchi@ericsson.com>
6159
6160 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
6161 warning.
6162 * common/diagnostics.h: New file.
6163
b45a1208
PA
61642017-06-22 Pedro Alves <palves@redhat.com>
6165
6166 * common/agent.h: Add include guards.
6167
e4da2c61
SM
61682017-06-21 Simon Marchi <simon.marchi@ericsson.com>
6169
6170 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
6171 talk about addressable units instead of bytes.
6172
96160d60
SDJ
61732017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
6174
6175 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
6176 of '::const_iterator'.
6177
9a6c7d9c
SDJ
61782017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
6179
6180 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6181 'unittests/environ-selftests.c'.
6182 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
6183 * charset.c (find_charset_names): Declare object 'iconv_env'.
6184 Update code to use 'iconv_env' object. Remove call to
6185 'free_environ'.
6186 * common/environ.c: Include <utility>.
6187 (make_environ): Delete function.
6188 (free_environ): Delete function.
6189 (gdb_environ::clear): New function.
6190 (gdb_environ::operator=): New function.
6191 (gdb_environ::get): Likewise.
6192 (environ_vector): Delete function.
6193 (set_in_environ): Delete function.
6194 (gdb_environ::set): New function.
6195 (unset_in_environ): Delete function.
6196 (gdb_environ::unset): New function.
6197 (gdb_environ::envp): Likewise.
6198 * common/environ.h: Include <vector>.
6199 (struct gdb_environ): Delete; transform into...
6200 (class gdb_environ): ... this class.
6201 (free_environ): Delete prototype.
6202 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
6203 environ_vector): Likewise.
6204 * infcmd.c (run_command_1): Update code to call
6205 'envp' from 'gdb_environ' class.
6206 (environment_info): Update code to call methods from 'gdb_environ'
6207 class.
6208 (unset_environment_command): Likewise.
6209 (path_info): Likewise.
6210 (path_command): Likewise.
6211 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
6212 (inferior::inferior): Initialize 'environment' using the host's
6213 information.
6214 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
6215 Include "environ.h".
6216 (class inferior) <environment>: Change type from 'struct
6217 gdb_environ' to 'gdb_environ'.
6218 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
6219 methods from 'gdb_environ' class.
6220 * solib.c (solib_find_1): Likewise
6221 * unittests/environ-selftests.c: New file.
6222
75c554cf
YQ
62232017-06-20 Yao Qi <yao.qi@linaro.org>
6224
6225 * features/i386/i386-linux.xml: Exchange the order of including
6226 32bit-linux.xml and 32bit-sse.xml.
6227 * features/i386/i386-linux.c: Regenerated.
6228
72ddacb7
YQ
62292017-06-20 Yao Qi <yao.qi@linaro.org>
6230
6231 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
6232 Delete copy ctor and assignment operator.
6233 (tdesc_type): Likewise.
6234 (tdesc_feature): Likewise.
6235 (tdesc_free_reg): Remove.
6236 (tdesc_create_reg): Use new.
6237 (tdesc_free_type): Remove.
6238 (tdesc_create_vector): Use new.
6239 (tdesc_create_union): Likewise.
6240 (tdesc_create_flags): Likewise.
6241 (tdesc_create_enum): Likewise.
6242 (tdesc_free_feature): Delete.
6243 (free_target_description): Use delete.
6244
325c9fd4
JB
62452017-06-19 John Baldwin <jhb@FreeBSD.org>
6246
6247 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
6248 registers.
6249
16b7a719
PA
62502017-06-19 Pedro Alves <palves@redhat.com>
6251
6252 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
6253 after gdb::unlinker.
6254
1c8e01c9
SDJ
62552017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
6256
6257 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
6258 gdb_environ to access an environment variable.
6259
ffce45d2
TP
62602017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
6261
6262 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
6263 gdb_byte*.
6264
1d4fbac9
SM
62652017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6266
6267 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
6268
8465943a
SM
62692017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6270
6271 * configure: Re-generate.
6272 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
6273
3e019bdc
SM
62742017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6275
6276 * configure: Re-generate.
6277 * warning.m4: Pass -Werror to compiler when checking for
6278 supported warning flags.
6279
cf0dd6f0
SM
62802017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6281
6282 * Makefile.in (COMPILE.pre): Add "-x c++".
6283
6f98355c
YQ
62842017-06-16 Alan Hayward <alan.hayward@arm.com>
6285 Pedro Alves <palves@redhat.com>
6286 Yao Qi <yao.qi@linaro.org>
6287
6288 * defs.h (RequireLongest): New.
6289 (extract_integer): Declare function template.
6290 (extract_signed_integer): Remove the declaration, but define it
6291 static inline.
6292 (extract_unsigned_integer): Likewise.
6293 (store_integer): Declare function template.
6294 (store_signed_integer): Remove the declaration, but define it
6295 static inline.
6296 (store_unsigned_integer): Likewise.
6297 * findvar.c (extract_integer): New function template.
6298 (extract_signed_integer): Remove.
6299 (extract_unsigned_integer): Remove.
6300 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
6301 instantiations.
6302 (store_integer): New function template.
6303 (store_signed_integer): Remove.
6304 (store_unsigned_integer): Remove.
6305 (store_integer): Explicit instantiations.
6306 * regcache.c (regcache_raw_read_signed): Update.
6307 (regcache::raw_read): New function.
6308 (regcache::raw_read_signed): Remove.
6309 (regcache::raw_read_unsigned): Remove.
6310 (regcache_raw_read_unsigned): Update.
6311 (regcache_raw_write_unsigned): Update.
6312 (regcache::raw_write_signed): Remove.
6313 (regcache::raw_write): New function.
6314 (regcache_cooked_read_signed): Update.
6315 (regcache::raw_write_unsigned): Remove.
6316 (regcache::cooked_read_signed): Remove.
6317 (regcache_cooked_read_unsigned): Update.
6318 (regcache::cooked_read_unsigned): Remove.
6319 (regcache_cooked_write_signed): Update.
6320 (regcache_cooked_write_unsigned): Update.
6321 * regcache.h (regcache) <raw_read_signed>: Remove.
6322 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
6323 <raw_read, raw_write>: New.
6324 <cooked_read_signed, cooked_write_signed>: Remove.
6325 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
6326 <cooked_read, cooked_write>: New.
6327 * sh64-tdep.c (sh64_pseudo_register_read): Update.
6328 (sh64_pseudo_register_write): Update.
6329
a87dc45a
AK
63302017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
6331
6332 * arc-tdep.c (arc_disassembler_options): New variable.
6333 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
6334 of default_print_insn.
6335 (arc_delayed_print_insn): Set info->section when needed,
6336 use default_print_insn to retrieve a disassembler.
6337
45159d6a
SDJ
63382017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
6339
6340 PR gdb/21574
6341 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
6342 to mention $SHELL and startup-with-shell.
6343
b46c4cf0
MF
63442017-06-14 Max Filippov <jcmvbkbc@gmail.com>
6345
6346 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
6347
6394c606
YQ
63482017-06-14 Yao Qi <yao.qi@linaro.org>
6349
6350 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
6351 default_print_insn instead of print_insn_aarch64.
6352 * arm-tdep.c (gdb_print_insn_arm): Call
6353 default_print_insn instead of print_insn_big_arm
6354 and print_insn_little_arm.
6355 * i386-tdep.c (i386_print_insn): Call default_print_insn
6356 instead of print_insn_i386.
6357 * ia64-tdep.c (ia64_print_insn): Call
6358 default_print_insn instead of print_insn_ia64.
6359 * mips-tdep.c (gdb_print_insn_mips): Call
6360 default_print_insn instead of print_insn_big_mips
6361 and print_insn_little_mips.
6362 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
6363 instead of print_insn_spu.
6364
d5722aa2
PA
63652017-06-14 Pedro Alves <palves@redhat.com>
6366
6367 * ada-lang.c: Include "common/byte-vector.h".
6368 (ada_value_primitive_packed_val): Use gdb::byte_vector.
6369 * charset.c (wchar_iterator::iterate): Resize the vector instead
6370 of reserving it.
6371 * common/byte-vector.h: Include "common/def-vector.h".
6372 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
6373 * cli/cli-dump.c: Include "common/byte-vector.h".
6374 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
6375 * common/byte-vector.h: New file.
6376 * common/def-vector.h: New file.
6377 * common/default-init-alloc.h: New file.
6378 * dwarf2loc.c: Include "common/byte-vector.h".
6379 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
6380 instead of reserving it.
6381 * dwarf2read.c: Include "common/byte-vector.h".
6382 (data_buf::m_vec): Now a gdb::byte_vector.
6383 * gdb_regex.c: Include "common/def-vector.h".
6384 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
6385 * mi/mi-main.c: Include "common/byte-vector.h".
6386 (mi_cmd_data_read_memory): Use gdb::byte_vector.
6387 * printcmd.c: Include "common/byte-vector.h".
6388 (print_scalar_formatted): Use gdb::byte_vector.
6389 * valprint.c: Include "common/byte-vector.h".
6390 (maybe_negate_by_bytes, print_decimal_chars): Use
6391 gdb::byte_vector.
6392
01ec7a27
SM
63932017-06-13 Simon Marchi <simon.marchi@ericsson.com>
6394
6395 * darwin-nat.c: Include "nat/fork-inferior.h".
6396
848d9074
SM
63972017-06-13 Simon Marchi <simon.marchi@ericsson.com>
6398
6399 * configure.nat: Factor out Darwin bits that are not
6400 architecture-specific. Add fork-inferior.o.
6401
3b912944
SM
64022017-06-13 Simon Marchi <simon.marchi@ericsson.com>
6403
6404 * configure.nat: Factor out AIX bits that are not
6405 architecture-specific. Add fork-inferior.o.
6406
55acdf22
AA
64072017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6408
6409 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
6410 (read_pieced_value, write_pieced_value): ...here. Reduce to
6411 wrappers that just call rw_pieced_value.
6412
f65e2044
AA
64132017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6414
6415 * dwarf2loc.c (write_pieced_value): When writing the data for a
6416 memory piece, use write_memory_with_notification instead of
6417 write_memory.
6418
23f945bf
AA
64192017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6420
6421 * valops.c (read_value_memory): Change embedded_offset to
6422 represent a bit offset instead of a byte offset.
6423 * value.h (read_value_memory): Adjust comment.
6424
f236533e
AA
64252017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6426
6427 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
6428 dest_offset_bits and source_offset_bits.
6429 (write_pieced_value): Likewise.
6430
65d84b76
AA
64312017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6432
6433 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
6434 given by DW_OP_bit_piece.
6435 (write_pieced_value): Likewise.
6436
242d31ab
AA
64372017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6438
6439 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
6440 some other preparations to the places where sufficient information
6441 is available.
6442 (write_pieced_value): Likewise.
6443
03c8af18
AA
64442017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6445
6446 * dwarf2loc.c (bits_to_bytes): New function.
6447 (read_pieced_value): Fix offset calculations for register pieces
6448 on big-endian targets.
6449 (write_pieced_value): Likewise.
6450
840989c1
AA
64512017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6452
6453 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
6454 (write_pieced_value): Likewise.
6455
359b19bb
AA
64562017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6457
6458 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
6459 transfer the source value's least significant bits, instead of its
6460 lowest-addressed ones. Rename type_len to max_offset.
6461 (read_pieced_value): Mirror above changes to write_pieced_value as
6462 applicable.
6463
07c9ca3b
AA
64642017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6465
6466 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
6467 truncate full bytes from dest_offset_bits before using it as an
6468 offset into the buffer.
6469
f1cc9874
AA
64702017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6471
6472 * dwarf2loc.c (write_pieced_value): Include transfer size in
6473 byte-wise check.
6474
cdaac320
AA
64752017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6476
6477 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
6478 calculation of this_size.
6479
af547a96
AA
64802017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6481
6482 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
6483 when targeting a bit-field.
6484 (write_pieced_value): Likewise.
6485
ddd7882a
AA
64862017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6487
6488 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
6489 (allocate_piece_closure): Drop addr_size parameter.
6490 (dwarf2_evaluate_loc_desc_full): Adjust call to
6491 allocate_piece_closure.
6492
e9352324
AA
64932017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6494
6495 PR gdb/21226
6496 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
6497 the LSB end, independent of endianness.
6498
d5d1163e
AA
64992017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6500
6501 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
6502 size capping.
6503
032bb6ea
YQ
65042017-06-13 Yao Qi <yao.qi@linaro.org>
6505
6506 * mips-linux-nat.c: Move include features/mips*-linux.c to
6507 mips-linux-tdep.c.
6508 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
6509 to mips-linux-tdep.c.
6510 * mips-linux-tdep.c: Include features/mips*-linux.c
6511 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
6512 functions.
6513 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
6514 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
6515 (tdesc_mips64_dsp_linux): Declare.
6516
f12f6bad
TT
65172017-06-12 Tom Tromey <tom@tromey.com>
6518
6519 * valprint.h (val_print_type_code_int): Remove.
6520 * valprint.c (generic_val_print_int): Always call
6521 val_print_scalar_formatted.
6522 (val_print_type_code_int): Remove.
6523 * printcmd.c (print_scalar_formatted): Handle options->format==0.
6524 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
6525 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
6526 * ada-valprint.c (ada_val_print_num): Use
6527 val_print_scalar_formatted.
6528
d9109c80
TT
65292017-06-12 Tom Tromey <tom@tromey.com>
6530
6531 * printcmd.c (print_scalar_formatted): Unify the two switches.
6532 Don't convert scalars to LONGEST.
6533
4ac0cb1c
TT
65342017-06-12 Tom Tromey <tom@tromey.com>
6535
6536 PR exp/16225:
6537 * valprint.h (print_decimal_chars): Update.
6538 * valprint.c (maybe_negate_by_bytes): New function.
6539 (print_decimal_chars): Add "is_signed" argument.
6540 * printcmd.c (print_scalar_formatted): Update.
6541
30a25466
TT
65422017-06-12 Tom Tromey <tom@tromey.com>
6543
6544 PR exp/16225:
6545 * valprint.h (print_binary_chars, print_hex_chars): Update.
6546 * valprint.c (val_print_type_code_int): Update.
6547 (print_binary_chars): Add "zero_pad" argument.
6548 (emit_octal_digit): New function.
6549 (print_octal_chars): Don't zero-pad.
6550 (print_decimal_chars): Likewise.
6551 (print_hex_chars): Add "zero_pad" argument.
6552 * sh64-tdep.c (sh64_do_fp_register): Update.
6553 * regcache.c (regcache::dump): Update.
6554 * printcmd.c (print_scalar_formatted): Update.
6555 * infcmd.c (default_print_one_register_info): Update.
6556
b3464d03
PA
65572017-06-12 Pedro Alves <palves@redhat.com>
6558 Alan Hayward <alan.hayward@arm.com>
6559
6560 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
6561 (mips_eabi_push_dummy_call): Rename local 'regsize' to
6562 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
6563 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
6564 Assert that abi_regsize bytes fit in 'ref_valbuf'.
6565
4b76cda9
PA
65662017-06-12 Pedro Alves <palves@redhat.com>
6567
6568 * dwarf2read.c (mapped_symtab::data): Now a vector of
6569 symtab_index_entry instead of vector of
6570 std::unique_ptr<symtab_index_entry>. All users adjusted to check
6571 whether an element's name is NULL instead of checking whether the
6572 element itself is NULL.
6573 (find_slot): Change return type. Adjust.
6574 (hash_expand, , add_index_entry, uniquify_cu_indices)
6575 (write_hash_table): Adjust.
6576
e8f8bcb3
PA
65772017-06-12 Pedro Alves <palves@redhat.com>
6578
6579 * dwarf2read.c (recursively_count_psymbols): New function.
6580 (write_psymtabs_to_index): Call it to compute number of psyms and
6581 pass estimate size of psyms_seen to unordered_set's ctor.
6582
70a1152b
PA
65832017-06-12 Pedro Alves <palves@redhat.com>
6584
6585 * dwarf2read.c (write_hash_table): Check if key already exists
6586 before emplacing.
6587
c2f134ac
PA
65882017-06-12 Pedro Alves <palves@redhat.com>
6589
6590 * dwarf2read.c (data_buf::append_space): Rename to...
6591 (data_buf::grow): ... this, and make private. Adjust all callers.
6592 (data_buf::append_uint): New method.
6593 (add_address_entry, write_one_signatured_type)
6594 (write_psymtabs_to_index): Use it.
6595
a81e6d4d
PA
65962017-06-12 Pedro Alves <palves@redhat.com>
6597
6598 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
6599 (file_write (FILE *, const std::vector<Elem>&)): Delete.
6600 (data_buf::file_write): Call ::fwrite directly.
6601
6fd931f2
PA
66022017-06-12 Pedro Alves <palves@redhat.com>
6603
6604 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
6605 std::vector::erase.
6606
bc8f2430
JK
66072017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6608
6609 Code cleanup: C++ify .gdb_index producer.
6610 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
6611 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
6612 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
6613 (create_strtab, add_string): Remove.
6614 (file_write, data_buf): New.
6615 (struct symtab_index_entry): Use std::vector for cu_indices.
6616 (struct mapped_symtab): Use std::vector for data.
6617 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
6618 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
6619 Remove.
6620 (find_slot): Change return type. Update it to the new data structures.
6621 (hash_expand, add_index_entry): Update it to the new data structures.
6622 (offset_type_compare): Remove.
6623 (uniquify_cu_indices): Update it to the new data structures.
6624 (c_str_view, c_str_view_hasher, vector_hasher): New.
6625 (add_indices_to_cpool): Remove.
6626 (write_hash_table): Update it to the new data structures.
6627 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
6628 (eq_psymtab_cu_index): Remove.
6629 (psym_index_map): New typedef.
6630 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
6631 reference and std::unordered_map for cu_index_htab.
6632 (add_address_entry, add_address_entry_worker, write_address_map)
6633 (write_psymbols): Update it to the new data structures.
6634 (write_obstack): Remove.
6635 (struct signatured_type_index_data): Change types_list to a data_buf
6636 reference and psyms_seen to a std::unordered_set reference.
6637 (write_one_signatured_type, recursively_write_psymbols)
6638 (write_psymtabs_to_index): Update it to the new data structures.
6639
c4dcb155
SM
66402017-06-11 Simon Marchi <simon.marchi@ericsson.com>
6641
6642 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
6643 separate-debug-file commands.
6644 * symfile.h (separate_debug_file_debug): New global.
6645 * symfile.c (separate_debug_file_debug): New global.
6646 (separate_debug_file_exists, find_separate_debug_file): Add
6647 debug output.
6648 (_initialize_symfile): Add "set debug separate-debug-file"
6649 command.
6650 * build-id.c (build_id_to_debug_bfd,
6651 find_separate_debug_file_by_buildid): Add debug output.
6652
6d45d4b4
SM
66532017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
6654
6655 * gdbarch.sh (displaced_step_free_closure): Remove.
6656 * gdbarch.h, gdbarch.c: Re-generate.
6657 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
6658 displaced_step_free_closure.
6659 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6660 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6661 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6662 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
6663 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
6664 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6665 * arch-utils.h (simple_displaced_step_free_closure): Remove.
6666 * arch-utils.c (simple_displaced_step_free_closure): Remove.
6667 * infrun.c (displaced_step_clear): Call xfree instead of
6668 gdbarch_displaced_step_free_closure.
6669
2f91880f
SDJ
66702017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
6671
6672 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
6673 NULL".
6674
b8b6e72f
AH
66752017-06-08 Alan Hayward <alan.hayward@arm.com>
6676
6677 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
6678 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
6679 (mn10300_push_dummy_call): Likewise.
6680
5369082e
AH
66812017-06-08 Alan Hayward <alan.hayward@arm.com>
6682
6683 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
6684
ff4ca5ac
AH
66852017-06-08 Alan Hayward <alan.hayward@arm.com>
6686
6687 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
6688
aefd8b33
SDJ
66892017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6690
6691 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
6692 able to start inferiors using a shell.
6693 (New remote packets): Announce new packet "QStartupWithShell".
6694 * remote.c: Add PACKET_QStartupWithShell.
6695 (extended_remote_create_inferior): Handle new
6696 PACKET_QStartupWithShell.
6697 (remote_protocol_features) <QStartupWithShell>: New entry for
6698 PACKET_QStartupWithShell.
6699 (_initialize_remote): Call "add_packet_config_cmd" for
6700 QStartupShell.
6701
2090129c
SDJ
67022017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6703 Pedro Alves <palves@redhat.com>
6704
6705 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
6706 and "nat/fork-inferior.h".
6707 * common/common-inferior.h: New file, with contents from
6708 "gdb/inferior.h".
6709 * commom/common-utils.c: Include "common-utils.h".
6710 (stringify_argv): New function.
6711 * common/common-utils.h (stringify_argv): New prototype.
6712 * configure.nat: Add "fork-inferior.o" as a dependency for
6713 "*linux*", "fbsd*" and "nbsd*" hosts.
6714 * corefile.c (get_exec_file): Update comment.
6715 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
6716 instead of "startup_inferior".
6717 (darwin_create_inferior): Call "add_thread_silent" after
6718 "fork_inferior".
6719 * fork-child.c: Cleanup unnecessary includes.
6720 (SHELL_FILE): Move to "common/common-fork-child.c".
6721 (environ): Likewise.
6722 (exec_wrapper): Initialize.
6723 (get_exec_wrapper): New function.
6724 (breakup_args): Move to "common/common-fork-child.c"; rename to
6725 "breakup_args_for_exec".
6726 (escape_bang_in_quoted_argument): Move to
6727 "common/common-fork-child.c".
6728 (saved_ui): New variable.
6729 (prefork_hook): New function.
6730 (postfork_hook): Likewise.
6731 (postfork_child_hook): Likewise.
6732 (gdb_startup_inferior): Likewise.
6733 (fork_inferior): Move to "common/common-fork-child.c". Update
6734 function to support gdbserver.
6735 (startup_inferior): Likewise.
6736 * gdbcore.h (get_exec_file): Remove declaration.
6737 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
6738 instead of "startup_inferior". Call "add_thread_silent" after
6739 "fork_inferior".
6740 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
6741 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
6742 instead of "startup_inferior". Call "add_thread_silent" after
6743 "fork_inferior".
6744 * inferior.h: Include "common-inferior.h".
6745 (trace_start_error): Move to "common/common-utils.h".
6746 (trace_start_error_with_name): Likewise.
6747 (fork_inferior): Move prototype to "nat/fork-inferior.h".
6748 (startup_inferior): Likewise.
6749 (gdb_startup_inferior): New prototype.
6750 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
6751 * nat/fork-inferior.h: New file.
6752 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
6753 instead of "startup_inferior". Call "add_thread_silent" after
6754 "fork_inferior".
6755 * target.h (target_terminal_init): Move prototype to
6756 "target/target.h".
6757 (target_terminal_inferior): Likewise.
6758 (target_terminal_ours): Likewise.
6759 * target/target.h (target_terminal_init): New prototype, moved
6760 from "target.h".
6761 (target_terminal_inferior): Likewise.
6762 (target_terminal_ours): Likewise.
6763 * utils.c (gdb_flush_out_err): New function.
6764
043a4934
SDJ
67652017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6766
6767 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
6768 * common/common-gdbthread.h: New file, with parts from
6769 "gdb/gdbthread.h".
6770 * gdbthread.h: Include "common-gdbthread.h".
6771 (switch_to_thread): Moved to "common/common-gdbthread.h".
6772
15652511
SDJ
67732017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6774
6775 * Makefile.in (SFILES): Add "common/job-control.c".
6776 (HFILES_NO_SRCDIR): Add "common/job-control.h".
6777 (COMMON_OBS): Add "job-control.o".
6778 * common/job-control.c: New file, with contents from
6779 "gdb/inflow.c".
6780 * common/job-control.h: New file, with contents from "terminal.h".
6781 * fork-child.c: Include "job-control.h".
6782 * inflow.c: Include "job-control.h".
6783 (gdb_setpgid): Move to "common/common-inflow.c".
6784 (_initialize_inflow): Move setting of "job_control" to
6785 "handle_job_control".
6786 * terminal.h (job_control): Moved to "common/common-terminal.h".
6787 (gdb_setpgid): Likewise.
6788 * top.c: Include "job_control.h".
6789 * utils.c: Likewise.
6790 (job_control): Moved to "job-control.c".
6791
2d7cc5c7
PA
67922017-06-07 Pedro Alves <palves@redhat.com>
6793
6794 * Makefile.in (SFILES): Add gdb_regex.c.
6795 (COMMON_OBS): Add gdb_regex.o.
6796 * ada-lang.c (ada_add_standard_exceptions)
6797 (ada_add_exceptions_from_frame, name_matches_regex)
6798 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
6799 parameter type to compiled_regex. Adjust.
6800 (ada_exceptions_list): Use compiled_regex.
6801 * break-catch-throw.c (exception_catchpoint::pattern): Now a
6802 std::unique_ptr<compiled_regex>.
6803 (exception_catchpoint::~exception_catchpoint): Remove regfree
6804 call.
6805 (check_status_exception_catchpoint): Adjust to use compiled_regex.
6806 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
6807 * breakpoint.c (solib_catchpoint::compiled): Now a
6808 std::unique_ptr<compiled_regex>.
6809 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
6810 (check_status_catch_solib): Adjust to use compiled_regex.
6811 (add_solib_catchpoint): Adjust to use compiled_regex.
6812 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
6813 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
6814 compiled_regex reference. Adjust to use it.
6815 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
6816 declaration. Include "gdb_regex.h".
6817 (apropos_cmd): Change regex parameter to compiled_regex reference.
6818 * gdb_regex.c: New file.
6819 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
6820 declarations.
6821 (class compiled_regex): New.
6822 * linux-tdep.c: Include "common/gdb_optional.h".
6823 (struct mapping_regexes): New, factored out from
6824 mapping_is_anonymous_p, and adjusted to use compiled_regex.
6825 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
6826 gdb::optional and remove cleanups. Adjust to compiled_regex.
6827 * probe.c: Include "common/gdb_optional.h".
6828 (collect_probes): Use compiled_regex and gdb::optional and remove
6829 cleanups.
6830 * skip.c: Include "common/gdb_optional.h".
6831 (skiplist_entry::compiled_function_regexp): Now a
6832 gdb::optional<compiled_regex>.
6833 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
6834 (free_skiplist_entry): Remove regfree call.
6835 (compile_skip_regexp, skip_rfunction_p): Adjust to use
6836 compiled_regex and gdb::optional.
6837 * symtab.c: Include "common/gdb_optional.h".
6838 (search_symbols): Use compiled_regex and gdb::optional.
6839 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
6840 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
6841 to gdb_regex.c.
6842
50d6adef
AH
68432017-06-07 Alan Hayward <alan.hayward@arm.com>
6844
6845 * regcache.c (regcache::save): Avoid buffer use.
6846 (regcache::dump): Likewise.
6847
4a8a33c8
AH
68482017-06-07 Alan Hayward <alan.hayward@arm.com>
6849
6850 * sh-tdep.c (sh_pseudo_register_read): Remove
6851 MAX_REGISTER_SIZE.
6852 (sh_pseudo_register_write): Likewise.
6853 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
6854 (sh64_pseudo_register_write): Likewise
6855
d1be909e
AH
68562017-06-07 Alan Hayward <alan.hayward@arm.com>
6857
6858 * aarch64-tdep.c (aarch64_store_return_value): Use
6859 V_REGISTER_SIZE.
6860 (aarch64_pseudo_read_value): Likewise.
6861 (aarch64_pseudo_write): Likewise.
6862
f4a65042
YQ
68632017-06-06 Yao Qi <yao.qi@linaro.org>
6864
6865 * regformats/regdef.h (set_register_cache): Remove the
6866 declaration.
6867
9f7fb0aa
AH
68682017-06-06 Alan Hayward <alan.hayward@arm.com>
6869
6870 * frame.c (frame_unwind_register_signed): Use
6871 frame_unwind_register_value.
6872
e1e01040
PA
68732017-06-06 Pedro Alves <palves@redhat.com>
6874
6875 PR breakpoints/21553
6876 * breakpoint.c (create_breakpoints_sal_default)
6877 (init_breakpoint_sal, create_breakpoint_sal): Use
6878 gdb::unique_xmalloc_ptr for string parameters.
6879 (create_breakpoint): Constify 'extra_string' and 'cond_string'
6880 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
6881 (base_breakpoint_create_breakpoints_sal)
6882 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
6883 (strace_marker_create_breakpoints_sal)
6884 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
6885 string parameters.
6886 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
6887 gdb::unique_xmalloc_ptr for string parameters.
6888 (create_breakpoint): Constify 'extra_string' and 'cond_string'
6889 parameters.
6890
fbe654c8
AH
68912017-06-06 Alan Hayward <alan.hayward@arm.com>
6892
6893 * alpha-tdep.c (alpha_register_to_value): Use
6894 get_frame_register_value.
6895 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
6896
ae0d01d6
AH
68972017-06-06 Alan Hayward <alan.hayward@arm.com>
6898
6899 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
6900 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
6901 (ia64_value_to_register): Likewise.
6902 (ia64_extract_return_value): Likewise.
6903 (ia64_store_return_value): Likewise.
6904 (ia64_push_dummy_call): Likewise.
6905
49cf576c
JB
69062017-06-04 Joel Brobecker <brobecker@adacore.com>
6907
6908 GDB 8.0 released.
6909
26b6a6ab
SM
69102017-06-03 Simon Marchi <simon.marchi@ericsson.com>
6911
6912 * x86-linux-nat.c (struct arch_lwp_info): Remove.
6913
22827c51
SM
69142017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
6915
6916 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
6917 parameter.
6918 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
6919
0e05cf3a
SM
69202017-06-02 Simon Marchi <simon.marchi@ericsson.com>
6921
6922 * event-loop.c (poll_timers): Unallocate timer using delete
6923 instead of xfree.
6924
c1fc2657
SM
69252017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6926
6927 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
6928 (struct breakpoint) <~breakpoint>: New.
6929 (struct watchpoint): Inherit from breakpoint.
6930 <~watchpoint>: New.
6931 <base>: Remove.
6932 (struct tracepoint): Inherit from breakpoint.
6933 <base>: Remove.
6934 * breakpoint.c (longjmp_breakpoint_ops): Remove.
6935 (struct longjmp_breakpoint): Inherit from breakpoint.
6936 <~longjmp_breakpoint>: New.
6937 <base>: Remove.
6938 (new_breakpoint_from_type): Remove casts.
6939 (watchpoint_in_thread_scope): Remove reference to base field.
6940 (watchpoint_del_at_next_stop): Likewise.
6941 (update_watchpoint): Likewise.
6942 (watchpoint_check): Likewise.
6943 (bpstat_check_watchpoint): Likewise.
6944 (set_longjmp_breakpoint): Likewise.
6945 (struct fork_catchpoint): Inherit from breakpoint.
6946 <base>: Remove.
6947 (struct solib_catchpoint): Inherit from breakpoint.
6948 <~solib_catchpoint>: New.
6949 <base>: Remove.
6950 (dtor_catch_solib): Change to ...
6951 (solib_catchpoint::~solib_catchpoint): ... this.
6952 (breakpoint_hit_catch_solib): Remove reference to base field.
6953 (add_solib_catchpoint): Likewise.
6954 (create_fork_vfork_event_catchpoint): Likewise.
6955 (struct exec_catchpoint): Inherit from breakpoint.
6956 <~exec_catchpoint>: New.
6957 <base>: Remove.
6958 (dtor_catch_exec): Change to ...
6959 (exec_catchpoint::~exec_catchpoint): ... this.
6960 (dtor_watchpoint): Change to ...
6961 (watchpoint::~watchpoint): ... this.
6962 (watch_command_1): Remove reference to base field.
6963 (catch_exec_command_1): Likewise.
6964 (base_breakpoint_dtor): Change to ...
6965 (breakpoint::~breakpoint): ... this.
6966 (base_breakpoint_ops): Remove dtor field value.
6967 (longjmp_bkpt_dtor): Change to ...
6968 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
6969 (strace_marker_create_breakpoints_sal): Remove reference to base
6970 field.
6971 (delete_breakpoint): Don't manually call breakpoint destructor.
6972 (create_tracepoint_from_upload): Remove reference to base field.
6973 (trace_pass_set_count): Likewise.
6974 (initialize_breakpoint_ops): Don't initialize
6975 momentary_breakpoint_ops, don't set dtors.
6976 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
6977 <~ada_catchpoint>: New.
6978 <base>: Remove.
6979 (create_excep_cond_exprs): Remove reference to base field.
6980 (dtor_exception): Change to ...
6981 (ada_catchpoint::~ada_catchpoint): ... this.
6982 (dtor_catch_exception): Remove.
6983 (dtor_catch_exception_unhandled): Remove.
6984 (dtor_catch_assert): Remove.
6985 (create_ada_exception_catchpoint): Remove reference to base
6986 field.
6987 (initialize_ada_catchpoint_ops): Don't set dtors.
6988 * break-catch-sig.c (struct signal_catchpoint): Inherit from
6989 breakpoint.
6990 <~signal_catchpoint>: New.
6991 <base>: Remove.
6992 (signal_catchpoint_dtor): Change to ...
6993 (signal_catchpoint::~signal_catchpoint): ... this.
6994 (create_signal_catchpoint): Remove reference to base field.
6995 (initialize_signal_catchpoint_ops): Don't set dtor.
6996 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
6997 from breakpoint.
6998 <~syscall_catchpoint>: New.
6999 <base>: Remove.
7000 (dtor_catch_syscall): Change to ...
7001 (syscall_catchpoint::~syscall_catchpoint): ... this.
7002 (create_syscall_event_catchpoint): Remove reference to base
7003 field.
7004 (initialize_syscall_catchpoint_ops): Don't set dtor.
7005 * break-catch-throw.c (struct exception_catchpoint): Inherit
7006 from breakpoint.
7007 <~exception_catchpoint>: New.
7008 <base>: Remove.
7009 (dtor_exception_catchpoint): Change to ...
7010 (exception_catchpoint::~exception_catchpoint): ... this.
7011 (handle_gnu_v3_exceptions): Remove reference to base field.
7012 (initialize_throw_catchpoint_ops): Don't set dtor.
7013 * ctf.c (ctf_get_traceframe_address): Remove reference to base
7014 field.
7015 * remote.c (remote_get_tracepoint_status): Likewise.
7016 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
7017 * tracefile.c (tracefile_fetch_registers): Likewise.
7018 * tracepoint.c (actions_command): Likewise.
7019 (validate_actionline): Likewise.
7020 (tfind_1): Likewise.
7021 (get_traceframe_location): Likewise.
7022 (find_matching_tracepoint_location): Likewise.
7023 (parse_tracepoint_status): Likewise.
7024 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
7025
3b0871f4
SM
70262017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
7027
7028 * breakpoint.c (struct longjmp_breakpoint): New struct.
7029 (is_tracepoint_type): Change return type to bool.
7030 (is_longjmp_type): New function.
7031 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
7032 (set_raw_breakpoint_without_location): Use
7033 new_breakpoint_from_type.
7034 (set_raw_breakpoint): Likewise.
7035
a5e364af
SM
70362017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
7037
7038 * breakpoint.c (new_breakpoint_from_type): New function.
7039 (create_breakpoint_sal): Use new_breakpoint_from_type and
7040 unique_ptr.
7041 (create_breakpoint): Likewise.
7042
ae3b3f34
SM
70432017-05-31 Simon Marchi <simon.marchi@ericsson.com>
7044
7045 * memattr.c (mem_info_command): Rename to ...
7046 (info_mem_command): ... this.
7047 (mem_enable_command): Rename to ...
7048 (enable_mem_command): ... this.
7049 (mem_disable_command): Rename to ...
7050 (disable_mem_command): ... this.
7051 (mem_delete_command): Rename to ...
7052 (delete_mem_command): ... this.
7053 (_initialize_mem): Adjust function names.
7054
13ace077
MM
70552017-05-31 Markus Metzger <markus.t.metzger@intel.com>
7056
7057 * btrace.c (handle_pt_insn_events): New.
7058 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
7059 STATUS. Split into this and ...
7060 (handle_pt_insn_event_flags): ... this.
7061
c56ccc05
MM
70622017-05-31 Markus Metzger <markus.t.metzger@intel.com>
7063
7064 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
7065 and struct pt_insn.resynced.
7066 * configure: Regenerated.
7067 * config.in: Regenerated.
7068
08c3f6d2
TW
70692017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7070
7071 * btrace.c (ftrace_find_call_by_number): New function.
7072 (ftrace_new_function): Store objects, not pointers.
7073 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
7074 ftrace_new_gap, ftrace_update_function,
7075 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
7076 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
7077 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
7078 btrace_ends_with_single_insn, btrace_call_get): Account for
7079 btrace_thread_info::functions now storing objects.
7080 * btrace.h (struct btrace_thread_info): Add constructor.
7081 (struct btrace_thread_info) <functions>: Make std::vector.
7082 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
7083 Initialize with default values.
7084 * record-btrace.c (record_btrace_frame_sniffer): Account for
7085 btrace_thread_info::functions now storing objects.
7086
8ffd39f2
TW
70872017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7088
7089 * btrace.c: Remove typedef bfun_s.
7090 (ftrace_new_gap): Directly add gaps to the list of gaps.
7091 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
7092 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
7093 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
7094 instead of gdb VEC.
7095
4aeb0dfc
TW
70962017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7097
7098 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
7099 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
7100 with btrace_thread_info::next_segment and
7101 btrace_thread_info::prev_segment.
7102 * btrace.h: Remove struct btrace_func_link.
7103 (struct btrace_function): Replace pair of function segment pointers
7104 with pair of indices.
7105 * python/py-record-btrace.c (btpy_call_prev_sibling,
7106 btpy_call_next_sibling): Replace references to
7107 btrace_thread_info::segment with btrace_thread_info::next_segment and
7108 btrace_thread_info::prev_segment.
7109 * record-btrace.c (record_btrace_frame_this_id): Use
7110 btrace_find_call_by_number.
7111
eb8f2b9c
TW
71122017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7113
7114 * btrace.c (ftrace_new_function, ftrace_fixup_level,
7115 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
7116 btrace_insn_next, btrace_insn_prev): Remove references to
7117 btrace_thread_info::flow.
7118 * btrace.h (struct btrace_function): Remove FLOW.
7119
42bfe59e
TW
71202017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7121
7122 * btrace.c (ftrace_find_call_by_number): New function.
7123 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
7124 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
7125 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
7126 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
7127 index.
7128 * btrace.h (struct btrace_function): Turn UP into an index.
7129 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
7130 as an index.
7131 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
7132 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
7133 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
7134
b54b03bd
TW
71352017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7136
7137 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
7138 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
7139 ftrace_update_function, ftrace_compute_global_level_offset,
7140 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
7141 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
7142 btrace_insn_end, btrace_is_empty): Remove references to
7143 btrace_thread_info::begin and btrace_thread_info::end.
7144 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
7145 (struct btrace_thread_info) <functions>: Adjust comment.
7146 * record-btrace.c (record_btrace_start_replaying): Remove reference to
7147 btrace_thread_info::begin.
7148
8286623c
TW
71492017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7150
7151 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
7152 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
7153 ftrace_update_function): Remove arguments that implicitly were always
7154 BTINFO->END.
7155 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
7156 Don't pass BTINFO->END.
7157
a0f1b963
TW
71582017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7159
7160 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
7161 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
7162 btrace_find_insn_by_number): Replace function segment pointer with
7163 index.
7164 (btrace_insn_cmp): Simplify.
7165 * btrace.h: (struct btrace_insn_iterator) Rename index to
7166 insn_index. Replace function segment pointer with index into function
7167 segment vector.
7168 * record-btrace.c (record_btrace_call_history): Replace function
7169 segment pointer use with index.
7170 (record_btrace_frame_sniffer): Retrieve function call segment through
7171 vector.
7172 (record_btrace_set_replay): Remove defunc't safety check.
7173
f158f208
TW
71742017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7175
7176 * btrace.c (btrace_ends_with_single_insn): New function.
7177 (btrace_call_get, btrace_call_number, btrace_call_begin,
7178 btrace_call_end, btrace_call_next, btrace_call_prev,
7179 btrace_find_call_by_number): Use index into call segment vector
7180 instead of pointer.
7181 (btrace_call_cmp): Simplify.
7182 * btrace.h (struct btrace_call_iterator): Replace function call segment
7183 pointer with index into vector.
7184 * record-btrace.c (record_btrace_call_history): Use index instead of
7185 pointer.
7186
521103fd
TW
71872017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7188
7189 * btrace.c (btrace_insn_begin, btrace_insn_end,
7190 btrace_find_insn_by_number): Add btinfo to iterator.
7191 * btrace.h (struct btrace_insn_iterator): Add btinfo.
7192
17b89b34
TW
71932017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7194
7195 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
7196 and save pointers directly.
7197 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
7198 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
7199 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
7200 changed signature of functions.
7201 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
7202 (btrace_fetch): Remove code that adds btrace_function pointers to
7203 vector of btrace_functions.
7204 (btrace_clear): Simplify freeing vector of btrace_functions.
7205
2b51eddc
TW
72062017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7207
7208 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
7209 Replace VEC_* with std::vector functions.
7210 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
7211 (struct btrace_thread_info)<functions>: Change type to std::vector.
7212
db6be0d5
SM
72132017-05-30 Simon Marchi <simon.marchi@ericsson.com>
7214
7215 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
7216 "Removed targets and native configurations" up. Merge duplicate
7217 "New commands" sub-sections. Add "New options" sub-sections.
7218
b057297a
AH
72192017-05-26 Alan Hayward <alan.hayward@arm.com>
7220
7221 * defs.h (copy_integer_to_size): New declaration.
7222 * findvar.c (copy_integer_to_size): New function.
7223 (do_cint_test): New selftest function.
7224 (copy_integer_to_size_test): Likewise.
7225 (_initialize_findvar): Likewise.
7226 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
7227 (mips_fbsd_collect_reg): Use raw_collect_integer.
7228 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
7229 (mips64_fill_gregset): Use raw_collect_integer
7230 (mips64_fill_fpregset): Use raw_supply_integer.
7231 * regcache.c (regcache::raw_supply_integer): New function.
7232 (regcache::raw_collect_integer): Likewise.
7233 * regcache.h: (regcache::raw_supply_integer): New declaration.
7234 (regcache::raw_collect_integer): Likewise.
7235
b77b02a5
YQ
72362017-05-24 Yao Qi <yao.qi@linaro.org>
7237
7238 * Makefile.in (SFILES): Add gdbarch-selftests.c.
7239 (COMMON_OBS): Add gdbarch-selftests.o.
7240 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
7241 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
7242 * gdbarch-selftests.c: New file.
7243 * regcache.h (regcache) <~regcache>: Mark it virtual if
7244 GDB_SELF_TEST.
7245 <raw_write>: Likewise.
7246
e521e87e
YQ
72472017-05-24 Yao Qi <yao.qi@linaro.org>
7248
7249 * regcache.c (current_regcache): Change it to
7250 regcache::current_regcache.
7251 (regcache_observer_target_changed): Update.
7252 (regcache_thread_ptid_changed): Make it a regcache static
7253 method.
7254 (regcache_thread_ptid_changed): Update.
7255 (class regcache_access): New.
7256 (current_regcache_test): Update.
7257 (_initialize_regcache): Update.
7258 * regcache.h: Include forward_list.
7259 (regcache): Declare regcache_thread_ptid_changed and declare
7260 registers_changed_ptid as friend.
7261
d8e07dda
YQ
72622017-05-24 Yao Qi <yao.qi@linaro.org>
7263
7264 * i387-tdep.c (i387_register_to_value): Use register_size
7265 instead of TYPE_LENGTH.
7266 * m68k-tdep.c (m68k_register_to_value): Likewise.
7267
8c8f9122
YQ
72682017-05-24 Yao Qi <yao.qi@linaro.org>
7269
7270 * i387-tdep.c (i387_convert_register_p): Return false if type
7271 code isn't TYPE_CODE_FLT.
7272
68fce50f
YQ
72732017-05-24 Yao Qi <yao.qi@linaro.org>
7274
7275 * alpha-tdep.c (alpha_convert_register_p): Return true if type
7276 length is 4.
7277 (alpha_register_to_value): Remove type length check.
7278 (alpha_value_to_register): Likewise.
7279
88954b49
YQ
72802017-05-24 Yao Qi <yao.qi@linaro.org>
7281
7282 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
7283 TYPE_CODE_FLT.
7284
e3ec9b69
YQ
72852017-05-24 Yao Qi <yao.qi@linaro.org>
7286
7287 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
7288 TYPE_CODE_FLT or not.
7289
cdd238da
YQ
72902017-05-24 Yao Qi <yao.qi@linaro.org>
7291
7292 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
7293 * avr-tdep.c (avr_gdbarch_init): Likewise.
7294 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
7295 * cris-tdep.c (cris_gdbarch_init): Likewise.
7296 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
7297 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
7298 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7299 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
7300 * mep-tdep.c (mep_gdbarch_init): Likewise.
7301 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
7302 * mips-tdep.c (mips_gdbarch_init): Likewise.
7303 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
7304 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7305 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
7306 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
7307 * v850-tdep.c (v850_gdbarch_init): Likewise.
7308
7a3929c4
YQ
73092017-05-24 Yao Qi <yao.qi@linaro.org>
7310
7311 * selftest-arch.c (tests_with_arch): Call registers_changed
7312 and reinit_frame_cache.
7313 * selftest.c (run_self_tests): Likewise.
7314
f4985dba
YQ
73152017-05-24 Yao Qi <yao.qi@linaro.org>
7316
7317 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
7318 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
7319
ab20fa4a
YQ
73202017-05-24 Yao Qi <yao.qi@linaro.org>
7321
7322 * rl78-tdep.c (rl78_gdbarch_init): Don't call
7323 set_gdbarch_print_insn.
7324
f532ab94
YQ
73252017-05-24 Yao Qi <yao.qi@linaro.org>
7326
7327 * h8300-tdep.c (h8300_gdbarch_init): Don't call
7328 set_gdbarch_print_insn.
7329
39503f82
YQ
73302017-05-24 Yao Qi <yao.qi@linaro.org>
7331
7332 * alpha-tdep.c (alpha_gdbarch_init): Don't call
7333 set_gdbarch_print_insn.
7334 * arc-tdep.c (arc_gdbarch_init): Likewise.
7335 * arch-utils.c: include dis-asm.h.
7336 (default_print_insn): New function.
7337 * arch-utils.h (default_print_insn): Declare.
7338 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
7339 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
7340 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
7341 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
7342 * frv-tdep.c (frv_gdbarch_init): Likewise.
7343 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
7344 * gdbarch.sh (print_insn): Use default_print_insn.
7345 * gdbarch.c: Regenerated.
7346 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
7347 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
7348 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
7349 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
7350 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7351 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
7352 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
7353 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
7354 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
7355 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
7356 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
7357 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7358 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
7359 * mt-tdep.c (mt_gdbarch_init): Likewise.
7360 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
7361 * nios2-tdep.c (nios2_print_insn): Remove.
7362 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
7363 * rx-tdep.c (rx_gdbarch_init): Likewise.
7364 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7365 * score-tdep.c (score_print_insn): Remove.
7366 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
7367 * sh-tdep.c (sh_gdbarch_init): Likewise.
7368 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
7369 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7370 * tic6x-tdep.c (tic6x_print_insn): Remove.
7371 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
7372 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
7373 * v850-tdep.c (v850_gdbarch_init): Likewise.
7374 * vax-tdep.c (vax_gdbarch_init): Likewise.
7375 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
7376 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
7377
f7241d4f
JB
73782017-05-23 John Baldwin <jhb@FreeBSD.org>
7379
7380 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
7381 (MIPS_FP0_REGNUM): Remove.
7382 (MIPS_FSR_REGNUM): Remove.
7383 (mips_fbsd_supply_fpregs): Use mips_regnum.
7384 (mips_fbsd_supply_gregs): Likewise.
7385 (mips_fbsd_collect_fpregs): Likewise.
7386 (mips_fbsd_collect_gregs): Likewise.
7387
d489d81d
JB
73882017-05-23 John Baldwin <jhb@FreeBSD.org>
7389
7390 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
7391 (getpfpregs_supplies): New function.
7392 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
7393 getfpregs_supplies.
7394 (mips_fbsd_store_inferior_registers): Likewise.
7395
e11b3cdc
PA
73962017-05-22 Pedro Alves <palves@redhat.com>
7397
7398 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
7399 maintainer.
7400
0f068fb5
AH
74012017-05-22 Alan Hayward <alan.hayward@arm.com>
7402
7403 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
7404 (store_register): Likewise.
7405 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
7406 (get_decimal_float_return_value): Likewise.
7407 (do_ppc_sysv_return_value): Likewise.
7408 (ppc64_sysv_abi_push_integer): Likewise.
7409 (ppc64_sysv_abi_push_freg): Likewise.
7410 (ppc64_sysv_abi_return_value_base): Likewise.
7411 (ppc64_sysv_abi_return_value): Likewise.
7412 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
7413 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
7414 * rs6000-nat.c: Likewise.
7415 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
7416 (rs6000_value_to_register): Likewise.
7417 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
7418
e6cf65f2
TT
74192017-05-21 Tom Tromey <tom@tromey.com>
7420
7421 PR rust/21466:
7422 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
7423 arrays as "[T]", not "[T; ]".
7424
43cc5389
TT
74252017-05-19 Tom Tromey <tom@tromey.com>
7426
7427 PR rust/21484:
7428 * rust-lang.c (exp_descriptor_rust): New function.
7429 (rust_language_defn): Use it.
7430 * p-lang.c (pascal_language_defn): Update.
7431 * opencl-lang.c (opencl_language_defn): Update.
7432 * objc-lang.c (objc_language_defn): Update.
7433 * m2-lang.c (m2_language_defn): Update.
7434 * language.h (struct language_defn)
7435 <la_watch_location_expression>: New member.
7436 * language.c (unknown_language_defn, auto_language_defn)
7437 (local_language_defn): Update.
7438 * go-lang.c (go_language_defn): Update.
7439 * f-lang.c (f_language_defn): Update.
7440 * d-lang.c (d_language_defn): Update.
7441 * c-lang.h (c_watch_location_expression): Declare.
7442 * c-lang.c (c_watch_location_expression): New function.
7443 (c_language_defn, cplus_language_defn, asm_language_defn)
7444 (minimal_language_defn): Use it.
7445 * breakpoint.c (watch_command_1): Call
7446 la_watch_location_expression.
7447 * ada-lang.c (ada_language_defn): Update.
7448
7a6e7fcc
RO
74492017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7450
6e7e1744
RO
7451 PR tui/21482
7452 * gdb_curses.h (NOMACROS): Define.
7453 (NCURSES_NOMACROS): Define.
7454
74552017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7456
7457 PR tui/21482
7a6e7fcc
RO
7458 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
7459 arg to char *.
7460 * tui/tui-wingeneral.c (box_win): Likewise.
7461 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
7462 (tui_show_source_line): Likewise.
7463 (tui_show_exec_info_content): Likewise.
7464
1933fd8e
VM
74652017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
7466
7467 * sparc-tdep.c (sparc_structure_return_p)
7468 (sparc_arg_on_registers_p): New functions.
7469 (sparc32_store_arguments): Use them.
7470 * sparc64-tdep.c (sparc64_16_byte_align_p)
7471 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
7472 Handle TYPE_CODE_ARRAY.
7473
21873064
YQ
74742017-05-17 Yao Qi <yao.qi@linaro.org>
7475
7476 * cli/cli-decode.c (add_alias_cmd): New function.
7477 * command.h (add_alias_cmd): Declare.
7478 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
7479 instead call add_alias_cmd.
7480
2b351b19
PA
74812017-05-17 Pedro Alves <palves@redhat.com>
7482
7483 * Makefile.in (nat_extra_makefile_frag): Rename to ...
7484 (nat_makefile_frag): ... this. All references updated.
7485 * configure.ac: Likewise.
7486 * configure.nat: Likewise. Enhance comments.
7487 * configure: Regenerate.
7488
5f2ad7a3
RO
74892017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7490
7491 * procfs.c (procfs_create_inferior): Change prototype to match
7492 definition.
7493
adf3dde5
EZ
74942017-05-13 Eli Zaretskii <eliz@gnu.org>
7495
7496 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
7497 C++ compiler warning.
7498
6830f270
TT
74992017-05-12 Tom Tromey <tom@tromey.com>
7500
7501 PR rust/21483:
7502 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
7503 recurse, just call value_struct_elt directly.
7504
68f2f2e3
TT
75052017-05-12 Tom Tromey <tom@tromey.com>
7506
7507 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
7508 OP_RUST_ARRAY>: Fix.
7509
256afbc2
TT
75102017-05-12 Tom Tromey <tom@tromey.com>
7511
7512 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
7513
94bb8dfe
YQ
75142017-05-09 Yao Qi <yao.qi@linaro.org>
7515
7516 * regcache.c: Include <forward_list>.
7517 (struct regcache_list): Remove.
7518 (current_regcache): Update.
7519 (get_thread_arch_aspace_regcache): Update for std::forward_list.
7520 (regcache_thread_ptid_changed): Likewise.
7521 (registers_changed_ptid): Likewise.
7522 (current_regcache_size): Likewise.
7523
8248946c
YQ
75242017-05-09 Yao Qi <yao.qi@linaro.org>
7525
7526 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
7527 (current_regcache_size): New function.
7528 (current_regcache_test): New function.
7529 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
7530
313c5961
AH
75312017-05-08 Alan Hayward <alan.hayward@arm.com>
7532
7533 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
7534 (print_gp_register_row): Use get_frame_register_value.
7535
27bfc1d1
AH
75362017-05-08 Alan Hayward <alan.hayward@arm.com>
7537
7538 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
7539 (mips_supply_fpregset): Likewise.
7540 (mips64_supply_gregset): Likewise.
7541
146e6c5c
AH
75422017-05-08 Alan Hayward <alan.hayward@arm.com>
7543
7544 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
7545 regcache->raw_supply_zeroed.
7546
e50f25ec
SDJ
75472017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7548
7549 * configure.nat: Rearrange 'case' statements to match
7550 host before cpu.
7551
21ea5acd
SDJ
75522017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7553
7554 * Makefile.in: Remove "@host_makefile_frag@". Add variables
7555 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
7556 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
7557 "@nat_extra_makefile_frag@".
7558 (Makefile): Remove dependency on "@frags@".
7559 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
7560 (data-directory/Makefile): Likewise.
7561 * config/aarch64/linux.mh: Deleted; moved contents to
7562 "gdb/configure.nat".
7563 * config/alpha/alpha-linux.mh: Likewise.
7564 * config/alpha/nbsd.mh: Likewise.
7565 * config/arm/linux.mh: Likewise.
7566 * config/arm/nbsdelf.mh: Likewise.
7567 * config/i386/cygwin.mh: Likewise.
7568 * config/i386/cygwin64.mh: Likewise.
7569 * config/i386/darwin.mh: Likewise.
7570 * config/i386/fbsd.mh: Likewise.
7571 * config/i386/fbsd64.mh: Likewise.
7572 * config/i386/go32.mh: Likewise.
7573 * config/i386/i386gnu.mh: Likewise.
7574 * config/i386/i386sol2.mh: Likewise.
7575 * config/i386/linux.mh: Likewise.
7576 * config/i386/linux64.mh: Likewise.
7577 * config/i386/mingw.mh: Likewise.
7578 * config/i386/mingw64.mh: Likewise.
7579 * config/i386/nbsd64.mh: Likewise.
7580 * config/i386/nbsdelf.mh: Likewise.
7581 * config/i386/nto.mh: Likewise.
7582 * config/i386/obsd.mh: Likewise.
7583 * config/i386/obsd64.mh: Likewise.
7584 * config/i386/sol2-64.mh: Likewise.
7585 * config/ia64/linux.mh: Likewise.
7586 * config/m32r/linux.mh: Likewise.
7587 * config/m68k/linux.mh: Likewise.
7588 * config/m68k/nbsdelf.mh: Likewise.
7589 * config/m68k/obsd.mh: Likewise.
7590 * config/m88k/obsd.mh: Likewise.
7591 * config/mips/fbsd.mh: Likewise.
7592 * config/mips/linux.mh: Likewise.
7593 * config/mips/nbsd.mh: Likewise.
7594 * config/mips/obsd64.mh: Likewise.
7595 * config/pa/linux.mh: Likewise.
7596 * config/pa/nbsd.mh: Likewise.
7597 * config/pa/obsd.mh: Likewise.
7598 * config/powerpc/aix.mh: Likewise.
7599 * config/powerpc/fbsd.mh: Likewise.
7600 * config/powerpc/linux.mh: Likewise.
7601 * config/powerpc/nbsd.mh: Likewise.
7602 * config/powerpc/obsd.mh: Likewise.
7603 * config/powerpc/ppc64-linux.mh: Likewise.
7604 * config/powerpc/spu-linux.mh: Likewise.
7605 * config/s390/linux.mh: Likewise.
7606 * config/sh/nbsd.mh: Likewise.
7607 * config/sparc/fbsd.mh: Likewise.
7608 * config/sparc/linux.mh: Likewise.
7609 * config/sparc/linux64.mh: Likewise.
7610 * config/sparc/nbsd64.mh: Likewise.
7611 * config/sparc/nbsdelf.mh: Likewise.
7612 * config/sparc/obsd64.mh: Likewise.
7613 * config/sparc/sol2.mh: Likewise.
7614 * config/tilegx/linux.mh: Likewise.
7615 * config/vax/nbsdelf.mh: Likewise.
7616 * config/vax/obsd.mh: Likewise.
7617 * config/xtensa/linux.mh: Likewise.
7618 * config/i386/i386gnu.mn: New file, with excerpts from
7619 "config/i386/i386gnu.mh".
7620 * configure: Regenerate.
7621 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
7622 *.mh files under "gdb/config".
7623 * configure.nat: New file, with contents from the
7624 "gdb/config/*/*.mh" files.
7625
7ed1acaf
TW
76262017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
7627
7628 * btrace.c (btrace_clear): Free insn vector.
7629
e13cb306
PA
76302017-05-05 Pedro Alves <palves@redhat.com>
7631
7632 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
7633 * configure: Regenerate.
7634
5ed8105e
PA
76352017-05-04 Pedro Alves <palves@redhat.com>
7636
7637 * Makefile.in (SFILES): Add progspace-and-thread.c.
7638 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
7639 (COMMON_OBS): Add progspace-and-thread.o.
7640 * breakpoint.c: Include "progspace-and-thread.h".
7641 (update_inserted_breakpoint_locations)
7642 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
7643 Use scoped_restore_current_pspace_and_thread.
7644 (create_std_terminate_master_breakpoint): Use
7645 scoped_restore_current_program_space.
7646 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
7647 (print_breakpoint_location): Use
7648 scoped_restore_current_program_space.
7649 (bp_loc_is_permanent): Use
7650 scoped_restore_current_pspace_and_thread.
7651 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
7652 (download_tracepoint_locations): Use
7653 scoped_restore_current_pspace_and_thread.
7654 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
7655 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
7656 (enum step_over_calls_kind): Moved from inferior.h.
7657 (class scoped_restore_current_thread): New class.
7658 * gdbthread.h (make_cleanup_restore_current_thread): Delete
7659 declaration.
7660 (scoped_restore_current_thread): New class.
7661 * infcmd.c: Include "common/gdb_optional.h".
7662 (continue_1, proceed_after_attach): Use
7663 scoped_restore_current_thread.
7664 (notice_new_inferior): Use scoped_restore_current_thread.
7665 * inferior.c: Include "progspace-and-thread.h".
7666 (restore_inferior, save_current_inferior): Delete.
7667 (add_inferior_command, clone_inferior_command): Use
7668 scoped_restore_current_pspace_and_thread.
7669 * inferior.h (scoped_restore_current_inferior): New class.
7670 * infrun.c: Include "progspace-and-thread.h" and
7671 "common/gdb_optional.h".
7672 (follow_fork_inferior): Use
7673 scoped_restore_current_pspace_and_thread.
7674 (scoped_restore_exited_inferior): New class.
7675 (handle_vfork_child_exec_or_exit): Use
7676 scoped_restore_exited_inferior,
7677 scoped_restore_current_pspace_and_thread,
7678 scoped_restore_current_thread and scoped_restore.
7679 (fetch_inferior_event): Use scoped_restore_current_thread.
7680 * linespec.c (decode_line_full, decode_line_1): Use
7681 scoped_restore_current_program_space.
7682 * mi/mi-main.c: Include "progspace-and-thread.h".
7683 (exec_continue): Use scoped_restore_current_thread.
7684 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
7685 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
7686 * proc-service.c (ps_pglobal_lookup): Use
7687 scoped_restore_current_program_space.
7688 * progspace-and-thread.c: New file.
7689 * progspace-and-thread.h: New file.
7690 * progspace.c (release_program_space, clone_program_space): Use
7691 scoped_restore_current_program_space.
7692 (restore_program_space, save_current_program_space)
7693 (save_current_space_and_thread): Delete.
7694 (switch_to_program_space_and_thread): Moved to
7695 progspace-and-thread.c.
7696 * progspace.h (save_current_program_space)
7697 (save_current_space_and_thread): Delete declarations.
7698 (scoped_restore_current_program_space): New class.
7699 * remote.c (remote_btrace_maybe_reopen): Use
7700 scoped_restore_current_thread.
7701 * symtab.c: Include "progspace-and-thread.h".
7702 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
7703 * thread.c (print_thread_info_1): Use
7704 scoped_restore_current_thread.
7705 (struct current_thread_cleanup): Delete.
7706 (do_restore_current_thread_cleanup)
7707 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
7708 (scoped_restore_current_thread::~scoped_restore_current_thread):
7709 ... this new dtor.
7710 (make_cleanup_restore_current_thread): Rename/convert to ...
7711 (scoped_restore_current_thread::scoped_restore_current_thread):
7712 ... this new ctor.
7713 (thread_apply_all_command): Use scoped_restore_current_thread.
7714 (thread_apply_command): Use scoped_restore_current_thread.
7715 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
7716 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
7717
f6223dbb
PA
77182017-05-04 Pedro Alves <palves@redhat.com>
7719
7720 * thread.c (make_cleanup_restore_current_thread): Move
7721 find_thread_ptid call before the is_stopped call. Assert that the
7722 thread is found. Replace is_stopped call by checking the thread's
7723 state directly. Remove unnecessary NULL-thread check.
7724
3c3ae77e
PA
77252017-05-04 Pedro Alves <palves@redhat.com>
7726
7727 * corelow.c (thread_section_name): New class.
7728 (get_core_register_section, get_core_siginfo): Use it.
7729
45eba0ab
AA
77302017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
7731
7732 * corelow.c (sniff_core_bfd): Remove extra semicolon.
7733 (get_core_register_section): Remove xfree of NULL pointer.
7734
f81fdd35
AH
77352017-05-03 Alan Hayward <alan.hayward@arm.com>
7736
7737 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
7738 * regcache.c (regcache::raw_supply_zeroed): New function.
7739 * regcache.h (regcache::raw_supply_zeroed): New declaration.
7740
35837774
SM
77412017-05-03 Simon Marchi <simon.marchi@ericsson.com>
7742
7743 * gdbarch.sh: Remove commented out definition of
7744 TARGET_CHAR_BIT.
7745 * gdbarch.h: Re-generate.
7746
c94fee56
SDJ
77472017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7748
7749 * configure: Regenerate.
7750
d17f7b36
SM
77512017-05-02 Simon Marchi <simon.marchi@ericsson.com>
7752
7753 * solib-target.c (solib_target_relocate_section_addresses):
7754 Remove num_section_bases, num_bases, segment_bases variables.
7755
b560ebd6
SM
77562017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7757
7758 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
7759
f2f46dfc
SM
77602017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7761
7762 * solib-target.c: Include <vector>
7763 (struct lm_info_target) <~lm_info_target>: Remove.
7764 <segment_bases, section_bases>: Change type to
7765 std::vector<CORE_ADDR>.
7766 (library_list_start_segment, library_list_start_section,
7767 library_list_end_library,
7768 solib_target_relocate_section_addresses): Adjust.
7769
a0ff9e1a
SM
77702017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7771
7772 * gdbarch.sh (software_single_step): Change return type to
7773 std::vector<CORE_ADDR>.
7774 * gdbarch.c, gdbarch.h: Re-generate.
7775 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
7776 Adjust.
7777 (arm_deal_with_atomic_sequence_raw): Adjust.
7778 (thumb_get_next_pcs_raw): Adjust.
7779 (arm_get_next_pcs_raw): Adjust.
7780 (arm_get_next_pcs): Adjust.
7781 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
7782 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
7783 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
7784 (alpha_software_single_step): Adjust.
7785 * alpha-tdep.h (alpha_software_single_step): Adjust.
7786 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
7787 * arm-tdep.c (arm_software_single_step): Adjust.
7788 (arm_breakpoint_kind_from_current_state): Adjust.
7789 * arm-tdep.h (arm_software_single_step): Adjust.
7790 * breakpoint.c (insert_single_step_breakpoint): Adjust.
7791 * cris-tdep.c (cris_software_single_step): Adjust.
7792 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
7793 (micromips_deal_with_atomic_sequence): Adjust.
7794 (deal_with_atomic_sequence): Adjust.
7795 (mips_software_single_step): Adjust.
7796 * mips-tdep.h (mips_software_single_step): Adjust.
7797 * moxie-tdep.c (moxie_software_single_step): Adjust.
7798 * nios2-tdep.c (nios2_software_single_step): Adjust.
7799 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
7800 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
7801 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
7802 * s390-linux-tdep.c (s390_software_single_step): Adjust.
7803 * sparc-tdep.c (sparc_software_single_step): Adjust.
7804 * spu-tdep.c (spu_software_single_step): Adjust.
7805 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
7806
ea480a30
SM
78072017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7808
7809 * gdbarch.sh: Use semi-colon as field separator instead of colon.
7810 * gdbarch.h: Re-generate.
7811
d050f7d7
TW
78122017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7813
7814 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
7815 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
7816 * python/py-instruction.c, python/py-instruction.h: New file.
7817 * python/py-record.c: Add py-instruction.h include.
7818 (gdbpy_initialize_record): Make gdb.Instruction a super class of
7819 gdb.RecordInstruction.
7820 * python/python-internal.h: Add gdbpy_initialize_instruction
7821 declaration.
7822 * python/python.c (do_start_initialization): Add
7823 gdbpy_initialize_instruction.
7824
14f819c8
TW
78252017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7826
7827 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
7828 Remove.
7829 (btrace_func_from_recpy_func): New function.
7830 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
7831 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
7832 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
7833 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
7834 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
7835 Also, use new helper functions.
7836 (btpy_list_item): Use new helper functions.
7837 (recpy_bt_function_call_history): Use new type name.
7838 (btpy_call_getset): Remove.
7839 (gdbpy_initialize_btrace): Remove code to initialize
7840 gdb.BtraceFunctionCall.
7841 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
7842 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
7843 recpy_bt_func_prev, recpy_bt_func_next): New export.
7844 * python/py-record.c (recpy_func_type): New static object.
7845 (recpy_func_new, recpy_func_level, recpy_func_symbol,
7846 recpy_func_instructions, recpy_func_up, recpy_func_prev,
7847 recpy_func_next): New function.
7848 (recpy_element_hash, recpy_element_richcompare): Updated comment.
7849 (recpy_func_getset): New static object.
7850 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
7851 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
7852
0ed5da75
TW
78532017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7854
7855 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
7856 (btpy_object, btpy_insn_type, btpy_new): Remove.
7857 (btpy_list_object): Use gdb.RecordInstruction type instead of
7858 gdb.BtraceInstruction type.
7859 (btrace_insn_from_recpy_insn): New function.
7860 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
7861 btpy_new.
7862 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
7863 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
7864 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
7865 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
7866 instead of btpy_object.
7867 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
7868 btpy_insn_data, btpy_insn_decode): Rename to ...
7869 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
7870 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
7871 recpy_bt_insn_decode): This. Also, use new helper functions.
7872 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
7873 recpy_insn_type.
7874 (btpy_insn_getset): Remove.
7875 (gdbpy_initialize_btrace): Remove code to initialize
7876 gdb.BtraceInstruction. Use recpy_element_object.
7877 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
7878 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
7879 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
7880 * python/py-record.c (recpy_insn_type): New static object.
7881 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
7882 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
7883 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
7884 New function.
7885 (recpy_insn_getset): New static object.
7886 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
7887 * python/py-record.h (recpy_element_object): New typedef.
7888 (recpy_insn_type, recpy_insn_new): New export.
7889
913aeadd
TW
78902017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7891
7892 * py-record-btrace.c (btpy_insn_new): Removed.
7893 (btpy_insn_or_gap_new): New function.
7894 (btpy_insn_error): Removed.
7895 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
7896 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
7897 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
7898 btpy_insn_or_gap_new instead of btpy_insn_new.
7899 (btpy_insn_getset): Remove btpy_insn_error.
7900 * py-record.c (recpy_gap_type): New static object.
7901 (recpy_gap_object): New typedef.
7902 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
7903 recpy_gap_reason_string): New function.
7904 (recpy_gap_getset): New static object.
7905 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
7906 * py-record.h (recpy_gap_new): New export.
7907
a3be24ad
TW
79082017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7909
7910 * python/py-record.c (recpy_ptid): Remove.
7911 (recpy_record_getset): Remove recpy_ptid.
7912
ae20e79a
TW
79132017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7914
7915 * btrace.c (btrace_fetch): Set inferior_ptid.
7916 * python/py-record-btrace.c: Add "py-record.h" include.
7917 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
7918 recpy_bt_end, recpy_bt_instruction_history,
7919 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
7920 in gdb.Record object instead of current ptid.
7921 * python/py-record.c: Include new "py-record.h" file.
7922 (recpy_record_object): Moved to py-record.h.
7923 * python/py-record.h: New file.
7924
8d0050ea
TW
79252017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7926
7927 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
7928 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
7929 indentation.
7930
3f380b50
JB
79312017-05-01 Joel Brobecker <brobecker@adacore.com>
7932
7933 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
7934 the past maintainers section.
7935
07495424
YQ
79362017-04-28 Yao Qi <yao.qi@linaro.org>
7937
7938 * infcmd.c (get_return_value): Use regcache ctor, and remove
7939 cleanup.
7940
deb1fa3e
YQ
79412017-04-28 Yao Qi <yao.qi@linaro.org>
7942 Pedro Alves <palves@redhat.com>
7943
7944 * regcache.c (regcache::regcache): New tag dispatch ctor.
7945 (do_cooked_read): Moved above.
7946 (regcache_dup): Use the tag dispatch ctor..
7947 * regcache.h (regcache): Declare ctor, delete copy ctor and
7948 assignment operator, remove friend regcache_dup.
7949
b421c83c
YQ
79502017-04-28 Yao Qi <yao.qi@linaro.org>
7951
7952 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
7953 call method save instead of regcache_cpy.
7954 * regcache.h (struct regcache): Make regcache_dup a friend.
7955
ef79d9a3
YQ
79562017-04-28 Yao Qi <yao.qi@linaro.org>
7957
7958 * regcache.c (struct regcache): Move to regcache.h
7959 (regcache::arch): New method.
7960 (regcache_get_ptid): Update.
7961 (get_regcache_arch): Call arch method.
7962 (get_regcache_aspace): Call method aspace.
7963 (register_buffer): Change it to method.
7964 (regcache_save): Change it to regcache::save.
7965 (regcache_restore): Likewise.
7966 (regcache_cpy_no_passthrough): Remove the declaration.
7967 (regcache_cpy): Call methods restore and cpy_no_passthrough.
7968 (regcache_cpy_no_passthrough): Change it to method
7969 cpy_no_passthrough.
7970 (regcache_register_status): Change it to method
7971 get_register_status.
7972 (regcache_invalidate): Change it to method invalidate.
7973 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
7974 (regcache_raw_update): Change it to method raw_update.
7975 (regcache_raw_read): Likewise.
7976 (regcache_raw_read_signed): Likewise.
7977 (regcache_raw_read_unsigned): Likewise.
7978 (regcache_raw_write_signed): Likewise.
7979 (regcache_raw_write_unsigned): Likewise.
7980 (regcache_cooked_read): Likewise.
7981 (regcache_cooked_read_value): Likewise.
7982 (regcache_cooked_read_signed): Likewise.
7983 (regcache_cooked_read_unsigned): Likewise.
7984 (regcache_cooked_write_signed): Likewise.
7985 (regcache_cooked_write_unsigned): Likewise.
7986 (regcache_raw_set_cached_value): Likewise.
7987 (regcache_raw_write): Likewise.
7988 (regcache_cooked_write): Likewise.
7989 (regcache_xfer_part): Likewise.
7990 (regcache_raw_read_part): Likewise.
7991 (regcache_raw_write_part): Likewise.
7992 (regcache_cooked_read_part): Likewise.
7993 (regcache_cooked_write_part): Likewise.
7994 (regcache_raw_supply): Likewise.
7995 (regcache_raw_collect): Likewise.
7996 (regcache_transfer_regset): Likewise.
7997 (regcache_supply_regset): Likewise.
7998 (regcache_collect_regset): Likewise.
7999 (regcache_debug_print_register): Likewise.
8000 (enum regcache_dump_what): Move it to regcache.h.
8001 (regcache_dump): Change it to method dump.
8002 * regcache.h (enum regcache_dump_what): New.
8003 (class regcache): New.
8004 * target.c (target_fetch_registers): Call method
8005 debug_print_register.
8006 (target_store_registers): Likewise.
8007
f8fdb78e
SM
80082017-04-28 Simon Marchi <simon.marchi@ericsson.com>
8009
8010 * windows-nat.c (struct lm_info_windows): Initialize field.
8011 (windows_make_so): Allocate lm_info_windows with new.
8012 (windows_free_so): Free lm_info_windows with delete.
8013
9ccbfd7b
SM
80142017-04-28 Simon Marchi <simon.marchi@ericsson.com>
8015
8016 * solib-darwin.c (struct lm_info_darwin): Initialize field.
8017 (darwin_current_sos): Allocate lm_info_darwin with new, remove
8018 cleanup.
8019 (darwin_free_so): Free lm_info_darwin with delete.
8020
76e75227
SM
80212017-04-28 Simon Marchi <simon.marchi@ericsson.com>
8022
8023 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
8024 <l_addr_p>: Change type to bool.
8025 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
8026 (svr4_free_so): Free lm_info_svr4 with delete.
8027 (svr4_copy_library_list): Replace memcpy with call to copy
8028 constructor.
8029 (library_list_start_library, svr4_default_sos): Allocate
8030 lm_info_svr4 with new.
8031
51046d9e
SM
80322017-04-28 Simon Marchi <simon.marchi@ericsson.com>
8033
8034 * solib-target.c (struct lm_info_target): Add destructor,
8035 initialize fields.
8036 <name>: Change type to std::string.
8037 (library_list_start_library): Allocate lm_info_target with new.
8038 (solib_target_free_library_list): Free lm_info_target with
8039 delete.
8040 (solib_target_current_sos): Adapt to std::string.
8041 (solib_target_free_so): Free lm_info_target with delete.
8042
4023ae76
SM
80432017-04-28 Simon Marchi <simon.marchi@ericsson.com>
8044
8045 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
8046 fields.
8047 (frv_current_sos): Allocate lm_info_frv with new.
8048 (frv_relocate_main_executable): Free lm_info_frv with delete,
8049 allocate with new.
8050 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
8051
af43057b
SM
80522017-04-28 Simon Marchi <simon.marchi@ericsson.com>
8053
8054 * solib-frv.c (struct lm_info_frv): Fix indentation.
8055
b0911207
SM
80562017-04-28 Simon Marchi <simon.marchi@ericsson.com>
8057
8058 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
8059 map field.
8060 (dsbt_current_sos): Allocate lm_info_dsbt with new.
8061 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
8062 and allocate with new.
8063 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
8064
6c401f72
SM
80652017-04-28 Simon Marchi <simon.marchi@ericsson.com>
8066
8067 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
8068 <filename, member_name>: Change type to std::string.
8069 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
8070 (library_list_start_library): Allocate lm_info_aix with new.
8071 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
8072 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
8073 with copy constructor.
8074
d0e449a1
SM
80752017-04-28 Simon Marchi <simon.marchi@ericsson.com>
8076
8077 * solist.h (struct lm_info): Remove.
8078 (struct lm_info_base): New class.
8079 (struct so_list) <lm_info>: Change type to lm_info_base *.
8080 * nto-tdep.c (struct lm_info): Remove.
8081 (lm_addr): Adjust.
8082 * solib-aix.c (struct lm_info): Rename to ...
8083 (struct lm_info_aix): ... this. Extend lm_info_base.
8084 (lm_info_p): Rename to ...
8085 (lm_info_aix_p): ... this, and adjust.
8086 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
8087 solib_aix_parse_libraries, library_list_start_library,
8088 solib_aix_free_library_list, solib_aix_parse_libraries,
8089 solib_aix_get_library_list,
8090 solib_aix_relocate_section_addresses, solib_aix_free_so,
8091 solib_aix_get_section_offsets,
8092 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
8093 Adjust.
8094 (struct solib_aix_inferior_data) <library_list>: Adjust.
8095 * solib-darwin.c (struct lm_info): Rename to ...
8096 (struct lm_info_darwin): ... this. Extend lm_info_base.
8097 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
8098 * solib-dsbt.c (struct lm_info): Rename to ...
8099 (struct lm_info_dsbt): ... this. Extend lm_info_base.
8100 (struct dsbt_info) <main_executable_lm_info): Adjust.
8101 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
8102 dsbt_relocate_section_addresses): Adjust.
8103 * solib-frv.c (struct lm_info): Rename to ...
8104 (struct lm_info_frv): ... this. Extend lm_info_base.
8105 (main_executable_lm_info): Adjust.
8106 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
8107 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
8108 find_canonical_descriptor_in_load_object,
8109 frv_fdpic_find_canonical_descriptor): Adjust.
8110 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
8111 to lm_info_svr4.
8112 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
8113 svr4_clear_so, svr4_copy_library_list,
8114 library_list_start_library, svr4_default_sos, svr4_read_so_list,
8115 svr4_current_sos, svr4_fetch_objfile_link_map,
8116 solist_update_incremental): Adjust.
8117 * solib-svr4.h (struct lm_info_svr4): Move here from
8118 solib-svr4.c.
8119 * solib-target.c (struct lm_info): Rename to ...
8120 (struct lm_info_target): ... this. Extend lm_info_base.
8121 (lm_info_p): Rename to ...
8122 (lm_info_target_p): ... this.
8123 (solib_target_parse_libraries, library_list_start_segment,
8124 library_list_start_section, library_list_start_library,
8125 library_list_end_library, solib_target_free_library_list,
8126 solib_target_current_sos, solib_target_free_so,
8127 solib_target_relocate_section_addresses): Adjust.
8128 * windows-nat.c (struct lm_info): Rename to ...
8129 (struct lm_info_windows): ... this. Extend lm_info_base.
8130 (windows_make_so, handle_load_dll, handle_unload_dll,
8131 windows_xfer_shared_libraries): Adjust.
8132
434a4023
SM
81332017-04-28 Simon Marchi <simon.marchi@ericsson.com>
8134
8135 * solib-darwin.c (struct darwin_so_list): Remove.
8136 (darwin_current_sos): Allocate an so_list object instead of a
8137 darwin_so_list, separately allocate an lm_info object.
8138 (darwin_free_so): Free lm_info.
8139
428544e8
JB
81402017-04-28 John Baldwin <jhb@FreeBSD.org>
8141
8142 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
8143 with fprintf_filtered.
8144
4621115f
YQ
81452017-04-28 Yao Qi <yao.qi@linaro.org>
8146
8147 * regcache.c (regcache::regcache): New function.
8148 (regcache::~regcache): New function.
8149 (regcache_xmalloc_1): Remove.
8150 (regcache_xmalloc): Call new regcache.
8151 (regcache_xfree): Call delete regcache.
8152 (get_thread_arch_aspace_regcache): Call new regcache.
8153
339053c2
YQ
81542017-04-28 Yao Qi <yao.qi@linaro.org>
8155
8156 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
8157 lwp instead of ptid_get_lwp.
8158
7974a605
YQ
81592017-04-28 Yao Qi <yao.qi@linaro.org>
8160
8161 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
8162 lwp_info instead of getting from inferior_ptid.
8163
e15c3eb4
KS
81642017-04-27 Keith Seitz <keiths@redhat.com>
8165
8166 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
8167 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
8168 (CV_CONVERSION_BADNESS): Define.
8169 (rank_one_type): Remove overly restrictive rvalue reference
8170 rank checks.
8171 Add cv-qualifier checks and subranks for type equality.
8172 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
8173 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
8174 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
8175
72bc1d24
SM
81762017-04-27 Simon Marchi <simon.marchi@ericsson.com>
8177
8178 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
8179 count when creating the object.
8180
55bcecda
UW
81812017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
8182 Ulrich Weigand <uweigand@de.ibm.com>
8183
8184 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
8185 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
8186 is used in AIX.
8187 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
8188 (process_xcoff_symbol): Likewise.
8189 (scan_xcoff_symtab): Likewise.
8190
5c99fcf8
AH
81912017-04-26 Alan Hayward <alan.hayward@arm.com>
8192
8193 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
8194 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
8195 (ia64_access_reg): Use get_frame_register_unsigned.
8196 (ia64_access_rse_reg): Likewise.
8197 (ia64_libunwind_frame_prev_register): Likewise.
8198
b41c5a85
JW
81992017-04-26 Jiong Wang <jiong.wang@arm.com>
8200
8201 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
8202 * gdbarch.c: Regenerated.
8203 * gdbarch.h: Regenerated.
8204 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
8205 visibility external.
8206 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
8207 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
8208 (enum cfa_how_kind): Move to ...
8209 (struct dwarf2_frame_state_reg_info): Likewise.
8210 (struct dwarf2_frame_state): Likewise.
8211 * dwarf2-frame.h: ... here.
8212 (dwarf2_frame_state_alloc_regs): New declaration.
8213 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
8214 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
8215
c185f580
AH
82162017-04-26 Alan Hayward <alan.hayward@arm.com>
8217
8218 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
8219 regcache_raw_read_unsigned.
8220 (xtensa_pseudo_register_write): Likewise.
8221
19c45594
AH
82222017-04-26 Alan Hayward <alan.hayward@arm.com>
8223
8224 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
8225 (nds32_pseudo_register_write): Likewise.
8226
4658f12e
YQ
82272017-04-25 Yao Qi <yao.qi@linaro.org>
8228
8229 * regcache.c (struct regcache) <readonly_p>: Change its type
8230 to bool.
8231 (regcache_xmalloc_1): Update parameter type and callers update.
8232
d581dda8
YQ
82332017-04-25 Yao Qi <yao.qi@linaro.org>
8234
8235 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
8236 set_gdbarch_wchar_bit.
8237 * arm-tdep.c (arm_gdbarch_init): Likewise.
8238
debed3db
PA
82392017-04-25 Pedro Alves <palves@redhat.com>
8240
8241 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
8242 (BothAreRelocatable, memcopy, memmove): Don't define.
8243 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
8244 macros.
8245
b0b92aeb
PA
82462017-04-25 Pedro Alves <palves@redhat.com>
8247
8248 * common/common-defs.h: Include "common/poison.h".
8249 * common/function-view.h: (Not, Or, Requires): Move to traits.h
8250 and adjust.
8251 * common/poison.h: New file.
8252 * common/traits.h: Include <type_traits>.
8253 (Not, Or, Requires): New, moved from common/function-view.h.
8254
16c4d54a
PA
82552017-04-25 Pedro Alves <palves@redhat.com>
8256
8257 * breakpoint.h (struct breakpoint): In-class initialize all
8258 fields. Make boolean fields "bool".
8259 * breakpoint.c (init_raw_breakpoint_without_location): Remove
8260 memset call and initializations no longer necessary.
8261
b5c36682
PA
82622017-04-25 Pedro Alves <palves@redhat.com>
8263
8264 * btrace.c (pt_btrace_insn_flags): Change parameter type to
8265 reference.
8266 (pt_btrace_insn): New function.
8267 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
8268
5625a286
PA
82692017-04-25 Pedro Alves <palves@redhat.com>
8270
8271 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
8272 "base" field and inherit from "bp_location" instead. Add
8273 non-default ctor.
8274 (allocate_location_exception): Use new non-default ctor.
8275 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
8276 (init_bp_location): Convert to ...
8277 (bp_location::bp_location): ... this new ctor, and remove memset
8278 call.
8279 (base_breakpoint_allocate_location): Use the new non-default ctor.
8280 * breakpoint.h (bp_location): Now a class. Declare default and
8281 non-default ctors. In-class initialize all members.
8282 (init_bp_location): Remove declaration.
8283
23bcc18f
PA
82842017-04-25 Pedro Alves <palves@redhat.com>
8285
8286 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
8287 assignment operator.
8288
e1ba3053
YQ
82892017-04-24 Yao Qi <yao.qi@linaro.org>
8290
8291 * doublest.c (convert_doublest_to_floatformat): Call
8292 floatformat_totalsize_bytes.
8293
10f489e5
TT
82942017-04-22 Tom Tromey <tom@tromey.com>
8295
8296 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
8297 ui_out_emit_list.
8298 * stack.c (print_frame): Use ui_out_emit_list.
8299 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
8300 ui_out_emit_list.
8301 * mi/mi-main.c (print_one_inferior)
8302 (mi_cmd_data_list_register_names)
8303 (mi_cmd_data_list_register_values, mi_cmd_list_features)
8304 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
8305 ui_out_emit_list.
8306 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
8307 (mi_output_solib_attribs): Use ui_out_emit_list,
8308 ui_out_emit_tuple.
8309 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
8310 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8311 (mi_cmd_stack_list_args, list_args_or_locals): Use
8312 ui_out_emit_list.
8313 * disasm.c (do_assembly_only): Use ui_out_emit_list.
8314 * breakpoint.c (print_solib_event, output_thread_groups): Use
8315 ui_out_emit_list.
8316
0092b74d
TT
83172017-04-22 Tom Tromey <tom@tromey.com>
8318
8319 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
8320 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
8321 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
8322
a14a62dd
TT
83232017-04-22 Tom Tromey <tom@tromey.com>
8324
8325 * tracepoint.c (tvariables_info_1)
8326 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
8327
46b9c129
TT
83282017-04-22 Tom Tromey <tom@tromey.com>
8329
8330 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
8331 annotate_arg_emitter.
8332 * breakpoint.c (print_mention_watchpoint)
8333 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
8334 * annotate.h (struct annotate_arg_emitter): New.
8335
2e783024
TT
83362017-04-22 Tom Tromey <tom@tromey.com>
8337
8338 * record-btrace.c (record_btrace_insn_history)
8339 (record_btrace_insn_history_range, record_btrace_call_history)
8340 (record_btrace_call_history_range): Use ui_out_emit_tuple.
8341 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
8342 ui_out_emit_tuple.
8343 * stack.c (print_frame_info): Use ui_out_emit_tuple.
8344 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
8345 * skip.c (skip_info): Use ui_out_emit_tuple.
8346 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
8347 * progspace.c (print_program_space): Use ui_out_emit_tuple.
8348 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
8349 * osdata.c (info_osdata): Use ui_out_emit_tuple.
8350 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
8351 ui_out_emit_tuple.
8352 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
8353 (output_register, mi_cmd_data_read_memory)
8354 (mi_cmd_data_read_memory_bytes, mi_load_progress)
8355 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
8356 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
8357 Use ui_out_emit_tuple.
8358 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
8359 ui_out_emit_tuple.
8360 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
8361 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
8362 * linux-thread-db.c (info_auto_load_libthread_db): Use
8363 ui_out_emit_tuple.
8364 * inferior.c (print_inferior): Use ui_out_emit_tuple.
8365 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
8366 * disasm.c (do_mixed_source_and_assembly_deprecated)
8367 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
8368 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
8369 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
8370 * breakpoint.c (print_one_breakpoint_location)
8371 (print_one_breakpoint): Use ui_out_emit_tuple.
8372 * auto-load.c (print_script, info_auto_load_cmd): Use
8373 ui_out_emit_tuple.
8374 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
8375
9be21bb4
SM
83762017-04-21 Simon Marchi <simon.marchi@ericsson.com>
8377
8378 * thread.c (print_thread_info_1): Remove dead code.
8379
0d4c07af
JK
83802017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8381
8382 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
8383 GDB_SELF_TEST.
8384 * arm-tdep.c (selftests::arm_record_test): Likewise.
8385
4daf993d
YQ
83862017-04-21 Yao Qi <yao.qi@linaro.org>
8387
8388 * regcache.c (regcache_restore): Remove argument 2. Replace
8389 argument 3 with regcache. Get register status from
8390 src->register_status and get register contents from
8391 register_buffer (src, regnum).
8392 (regcache_cpy): Update.
8393
a6c21d4a
PA
83942017-04-19 Pedro Alves <palves@redhat.com>
8395
8396 * gdbthread.h (thread): Add missing closing parenthesis in
8397 comment.
8398
3a3fd0fd
PA
83992017-04-19 Pedro Alves <palves@redhat.com>
8400
8401 * common/refcounted-object.h: New file.
8402 * gdbthread.h: Include "common/refcounted-object.h".
8403 (thread_info): Inherit from refcounted_object and add comments.
8404 (thread_info::incref, thread_info::decref)
8405 (thread_info::m_refcount): Delete.
8406 (thread_info::deletable): Use the refcounted_object::refcount()
8407 method.
8408 * inferior.c (current_inferior_): Add comment.
8409 (set_current_inferior): Increment/decrement refcounts.
8410 (prune_inferiors, remove_inferior_command): Skip inferiors marked
8411 not-deletable instead of comparing with the current inferior.
8412 (initialize_inferiors): Increment the initial inferior's refcount.
8413 * inferior.h (struct inferior): Forward declare.
8414 Include "common/refcounted-object.h".
8415 (current_inferior, set_current_inferior): Move declaration to
8416 before struct inferior's definition, and fix comment.
8417 (inferior): Inherit from refcounted_object. Add comments.
8418 * thread.c (switch_to_thread_no_regs): Reference the thread's
8419 inferior pointer directly instead of doing a ptid lookup.
8420 (switch_to_no_thread): New function.
8421 (switch_to_thread(thread_info *)): New function, factored out
8422 from ...
8423 (switch_to_thread(ptid_t)): ... this.
8424 (restore_current_thread): Delete.
8425 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
8426 fields, and add 'inf' field.
8427 (do_restore_current_thread_cleanup): Check whether old->inf is
8428 alive instead of looking up an inferior by ptid. Use
8429 switch_to_thread and switch_to_no_thread.
8430 (restore_current_thread_cleanup_dtor): Use old->inf directly
8431 instead of lookup up an inferior by id. Decref the inferior.
8432 Don't restore 'removable'.
8433 (make_cleanup_restore_current_thread): Same the inferior pointer
8434 in old, instead of the inferior number. Incref the inferior.
8435 Don't save/clear 'removable'.
8436
9bcb1f16
PA
84372017-04-19 Pedro Alves <palves@redhat.com>
8438
8439 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8440 unittests/scoped_restore-selftests.c.
8441 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
8442 * common/scoped_restore.h (scoped_restore_base): Make "class".
8443 (scoped_restore_base::release): New public method.
8444 (scoped_restore_base::scoped_restore_base): New protected ctor.
8445 (scoped_restore_base::m_saved_var): New protected field.
8446 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
8447 scoped_restore_base base class instead of m_saved_var directly.
8448 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
8449 (scoped_restore_tmpl::scoped_restore_tmpl(const
8450 scoped_restore_tmpl<T>&)): Likewise.
8451 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
8452 method.
8453 (scoped_restore_tmpl::saved_var): New method.
8454 (scoped_restore_tmpl::m_saved_var): Delete.
8455 * inferior.h (inferior::detaching): Now a bool.
8456 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
8457 cleanup.
8458 * unittests/scoped_restore-selftests.c: New file.
8459
26fcd539
PA
84602017-04-19 Pedro Alves <palves@redhat.com>
8461
8462 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
8463 Re-sort in alphabetic order.
8464
fdd243b0
PA
84652017-04-18 Pedro Alves <palves@redhat.com>
8466
8467 * xml-support.c (obstack_xml_printf): Delete.
8468 * xml-support.h (obstack_xml_printf): Delete.
8469
4895cde2
PA
84702017-04-18 Pedro Alves <palves@redhat.com>
8471
8472 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
8473 vdebug, verror, body_text, start_element, end_element, name,
8474 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
8475 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
8476 is_xinclude>: Make private and add m_ prefix.
8477 (gdb_xml_parser::body_text): New method, based on ...
8478 (gdb_xml_body_text): ... this. Adjust.
8479 (gdb_xml_parser::vdebug): New method, based on ...
8480 (gdb_xml_debug): ... this. Adjust.
8481 (gdb_xml_parser::verror): New method, based on ...
8482 (gdb_xml_error): ... this. Adjust.
8483 (gdb_xml_parser::start_element): New method, based on ...
8484 (gdb_xml_start_element): ... this. Adjust.
8485 (gdb_xml_start_element_wrapper): Defer to
8486 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
8487 (gdb_xml_parser::end_element): New method, based on ...
8488 (gdb_xml_end_element_wrapper): ... this. Adjust.
8489 (gdb_xml_parser::~gdb_xml_parser): Adjust.
8490 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
8491 (gdb_xml_parser::use_dtd): New method, based on ...
8492 (gdb_xml_use_dtd): ... this. Adjust.
8493 (gdb_xml_parser::parse): New method, based on ...
8494 (gdb_xml_parse): ... this. Adjust.
8495 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
8496 (xinclude_start_include): Adjust to call the parser's name method.
8497 (xml_xinclude_default, xml_xinclude_start_doctype)
8498 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
8499 method.
8500 (xml_process_xincludes): Adjust to call parser methods.
8501 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
8502 declarations.
8503
bd8a901f
PA
85042017-04-18 Pedro Alves <palves@redhat.com>
8505
8506 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
8507 gdb::optional<std::string>.
8508 * xml-support.c: Include <string>.
8509 (scope_level::scope_level(scope_level &&))
8510 (scope_level::~scope_level): Delete.
8511 (scope_level::body): Now a std::string.
8512 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
8513 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
8514 parameter.
8515 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
8516 (xinclude_parsing_data::output): Now a std::string reference.
8517 (xinclude_start_include): Adjust.
8518 (xml_xinclude_default): Adjust.
8519 (xml_process_xincludes): Add 'output' parameter, and return bool.
8520 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
8521 and return bool.
8522 * xml-tdesc.c: Include <unordered_map> and <string>.
8523 (tdesc_xml_cache): Delete.
8524 (tdesc_xml_cache_s): Delete.
8525 (xml_cache): Now an std::unordered_map.
8526 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
8527 (target_fetch_description_xml): Change return type to
8528 gdb::optional<std::string>, and adjust.
8529 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
8530 (target_fetch_description_xml): Change return type to
8531 gdb::optional<std::string>.
8532
d35d1958
PA
85332017-04-18 Pedro Alves <palves@redhat.com>
8534
8535 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8536 unittests/optional-selftests.c.
8537 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
8538 * unittests/optional-selftests.c: New file.
8539 * unittests/optional/assignment/1.cc: New file.
8540 * unittests/optional/assignment/2.cc: New file.
8541 * unittests/optional/assignment/3.cc: New file.
8542 * unittests/optional/assignment/4.cc: New file.
8543 * unittests/optional/assignment/5.cc: New file.
8544 * unittests/optional/assignment/6.cc: New file.
8545 * unittests/optional/assignment/7.cc: New file.
8546 * unittests/optional/cons/copy.cc: New file.
8547 * unittests/optional/cons/default.cc: New file.
8548 * unittests/optional/cons/move.cc: New file.
8549 * unittests/optional/cons/value.cc: New file.
8550 * unittests/optional/in_place.cc: New file.
8551 * unittests/optional/observers/1.cc: New file.
8552 * unittests/optional/observers/2.cc: New file.
8553
22796e97
PA
85542017-04-18 Pedro Alves <palves@redhat.com>
8555
8556 * common/gdb_optional.h: Include common/traits.h.
8557 (in_place_t): New type.
8558 (in_place): New constexpr variable.
8559 (optional::optional): Remove member initialization of
8560 m_instantiated.
8561 (optional::optional(in_place_t...)): New constructor.
8562 (optional::~optional): Use reset.
8563 (optional::optional(const optional&)): New.
8564 (optional::optional(const optional&&)): New.
8565 (optional::optional(T &)): New.
8566 (optional::optional(T &&)): New.
8567 (operator::operator=(const optional &)): New.
8568 (operator::operator=(optional &&)): New.
8569 (operator::operator= (const T &))
8570 (operator::operator= (T &&))
8571 (operator::emplace (Args &&... args)): Return a T&. Use reset.
8572 (operator::reset): New.
8573 (operator::m_instantiated):: Add in-class initializer.
8574 * common/traits.h: Include <type_traits>.
8575 (struct And): New types.
8576
a7fc9b61
PA
85772017-04-18 Pedro Alves <palves@redhat.com>
8578
8579 * xml-support.c: Include <vector>.
8580 (scope_level::scope_level(const gdb_xml_element *))
8581 (scope_level::scope_level(scope_level&&)): New.
8582 (scope_level::~scope_level): New.
8583 (scope_level_s): Delete.
8584 (gdb_xml_parser::scopes): Now a std::vector.
8585 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
8586 Use std::vector.
8587 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
8588 scope cleanup code.
8589 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
8590 of the scopes member. Use std::vector::emplace_back.
8591
010151c9
PA
85922017-04-18 Pedro Alves <palves@redhat.com>
8593
8594 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
8595 a bool.
8596 (gdb_xml_end_element): Change type of first parameter.
8597 (gdb_xml_cleanup): Rename to ...
8598 (gdb_xml_parser::~gdb_xml_parser): ... this.
8599 (gdb_xml_create_parser_and_cleanup): Delete with ...
8600 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
8601 to this new ctor.
8602 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
8603 using gdb_xml_create_parser_and_cleanup.
8604 (xinclude_parsing_data): Add ctor/dtor.
8605 (xml_xinclude_cleanup): Delete.
8606 (xml_process_xincludes): Create a local xinclude_parsing_data
8607 instead of heap-allocating one. Create a local gdb_xml_parser
8608 instead of heap-allocating one with
8609 gdb_xml_create_parser_and_cleanup.
8610
d56060f0
JB
86112017-04-18 John Baldwin <jhb@FreeBSD.org>
8612
8613 PR threads/20743
8614 * fbsd-nat.c (resume_one_thread_cb): Remove.
8615 (resume_all_threads_cb): Remove.
8616 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
8617 iterate_over_threads.
8618
305d16a9
JB
86192017-04-17 Joel Brobecker <brobecker@adacore.com>
8620
8621 * NEWS: Create a new section for the next release branch.
8622 Rename the section of the current branch, now that it has
8623 been cut.
8624
8bb57231
JB
86252017-04-17 Joel Brobecker <brobecker@adacore.com>
8626
8627 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
8628 * version.in: Bump version to 8.0.50.DATE-git.
8629
096c92dd
SDJ
86302017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
8631
8632 PR gdb/21385
8633 * windows-nat.c (windows_create_inferior): Declare 'allargs'
8634 independently of the host, and fix build breakage on Cygwin.
8635
0550c955
PA
86362017-04-13 Pedro Alves <palves@redhat.com>
8637
8638 * inferior.c (free_inferior): Convert to ...
8639 (inferior::~inferior): ... this dtor.
8640 (inferior::inferior): New ctor, factored out from ...
8641 (add_inferior_silent): ... here. Allocate the inferior with a new
8642 expression.
8643 (delete_inferior): Call delete instead of free_inferior.
8644 * inferior.h (gdb_environ, continuation): Forward declare.
8645 (inferior): Now a class. Add in-class initialization to all
8646 members. Make boolean fields bool, except 'detaching'.
8647 (inferior::inferior): New explicit ctor.
8648 (inferior::~inferior): New.
8649
e3d60dfc
PA
86502017-04-13 Pedro Alves <palves@redhat.com>
8651
8652 * inferior.c (init_inferior_list): Delete.
8653 * inferior.h (init_inferior_list): Delete.
8654
5fd69d0a
PA
86552017-04-13 Pedro Alves <palves@redhat.com>
8656
8657 PR threads/13217
8658 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
8659 (top level): Call it twice, with different thread sets.
8660
c6609450
PA
86612017-04-13 Pedro Alves <palves@redhat.com>
8662
8663 * thread.c: Include <algorithm>.
8664 (thread_array_cleanup): Delete.
8665 (scoped_inc_dec_ref): New class.
8666 (live_threads_count): New function.
8667 (set_thread_refcount): Delete.
8668 (tp_array_compar_ascending): Now a bool.
8669 (tp_array_compar): Convert to a std::sort comparison function.
8670 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
8671 and live_threads_count.
8672
2a00d7ce
PA
86732017-04-13 Pedro Alves <palves@redhat.com>
8674
8675 * infrun.c (follow_fork_inferior): Also switch the current
8676 inferior.
8677
441d7c93
PA
86782017-04-13 Pedro Alves <palves@redhat.com>
8679
8680 * breakpoint.c (watch_command_1): Save watchpoint-frame info
8681 before calling create_internal_breakpoint.
8682
808480f6
PA
86832017-04-13 Pedro Alves <palves@redhat.com>
8684
8685 * fork-child.c (execv_argv): New class.
8686 (breakup_args): Refactored as ...
8687 (execv_argv::init_for_no_shell): .. this method of execv_argv.
8688 Copy arguments to storage and replace separators with NULL
8689 terminators in place.
8690 (escape_bang_in_quoted_argument): Adjust to return bool.
8691 (execv_argv::execv_argv): New ctor.
8692 (execv_argv::init_for_shell): New method, factored out from
8693 fork_inferior. Don't strdup strings into the vector.
8694 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
8695 Remove free_vector_argv call.
8696
ad3d022a
YQ
86972017-04-13 Yao Qi <yao.qi@linaro.org>
8698
8699 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
8700 tdep->rx_psw_type.
8701
e6ddc3bf
YQ
87022017-04-13 Yao Qi <yao.qi@linaro.org>
8703
8704 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
8705 * rx-tdep.c (rx_gdbarch_init): Likewise.
8706
bfb8cf90
PA
87072017-04-13 Pedro Alves <palves@redhat.com>
8708
8709 * breakpoint.h (struct breakpoint): Reindent.
8710
f5336ca5
PA
87112017-04-13 Pedro Alves <palves@redhat.com>
8712
8713 * breakpoint.c (bp_location): Rename to ...
8714 (bp_locations): ... this. All references updated.
8715 (bp_location_count): Rename to ...
8716 (bp_locations_count): ... this. All references updated.
8717 (bp_location_placed_address_before_address_max): Rename to ...
8718 (bp_locations_placed_address_before_address_max): ... this. All
8719 references updated.
8720 (bp_location_shadow_len_after_address_max): Rename to ...
8721 (bp_locations_shadow_len_after_address_max): ... this. All
8722 references updated.
8723 (bp_location_compare_addrs): Rename to ...
8724 (bp_locations_compare_addrs): ... this. All references updated.
8725 (bp_location_compare):Rename to ...
8726 (bp_locations_compare): ... this. All references updated.
8727 (bp_location_target_extensions_update): Rename to ...
8728 (bp_locations_target_extensions_update): ... this. All references
8729 updated.
8730
be628ab8
SDJ
87312017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
8732
8733 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
8734 * common/common.m4: Check headers 'termios.h', 'termio.h' and
8735 'sgtty.h'.
8736 * common/gdb_termios.h: New file, with parts of "terminal.h".
8737 * inflow.c: Include "gdb_termios.h".
8738 * ser-unix.c: Include "gdb_termios.h".
8739 * terminal.h: Move terminal-related defines to
8740 "common/gdb_termios.h".
8741
8e9e35b1
TT
87422017-04-12 Tom Tromey <tom@tromey.com>
8743
8744 * probe.c (parse_probes): Update.
8745 * location.h (delete_event_location): Don't declare.
8746 (event_location_deleter::operator()): Update.
8747 * location.c (event_location_deleter::operator()): Rename from
8748 delete_event_location.
8749 * linespec.h (linespec_result) <location>: Change type to
8750 event_location_up.
8751 * linespec.c (canonicalize_linespec, event_location_to_sals)
8752 (decode_objc): Update.
8753 (linespec_result): Don't call delete_event_location.
8754 * breakpoint.c (create_breakpoints_sal)
8755 (bkpt_probe_create_sals_from_location)
8756 (strace_marker_create_sals_from_location): Update.
8757
16e802b9
TT
87582017-04-12 Tom Tromey <tom@tromey.com>
8759
8760 * linespec.h (struct linespec_result): Add constructor and
8761 destructor.
8762 (init_linespec_result, destroy_linespec_result)
8763 (make_cleanup_destroy_linespec_result): Don't declare.
8764 * linespec.c (init_linespec_result): Remove.
8765 (linespec_result::~linespec_result): Rename from
8766 destroy_linespec_result. Update.
8767 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
8768 Remove.
8769 * breakpoint.c (create_breakpoint, break_range_command)
8770 (decode_location_default): Update.
8771 * ax-gdb.c (agent_command_1): Update.
8772
d28cd78a
TT
87732017-04-12 Tom Tromey <tom@tromey.com>
8774
8775 * remote.c (remote_download_tracepoint): Update.
8776 * python/py-breakpoint.c (bppy_get_location): Update.
8777 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
8778 (gdbscm_breakpoint_location): Update.
8779 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
8780 * breakpoint.h (struct breakpoint) <location, location_range_end>:
8781 Change type to event_location_up.
8782 * breakpoint.c (create_overlay_event_breakpoint)
8783 (create_longjmp_master_breakpoint)
8784 (create_std_terminate_master_breakpoint)
8785 (create_exception_master_breakpoint)
8786 (breakpoint_event_location_empty_p, print_breakpoint_location)
8787 (print_one_breakpoint_location, create_thread_event_breakpoint)
8788 (init_breakpoint_sal, create_breakpoint)
8789 (print_recreate_ranged_breakpoint, break_range_command)
8790 (init_ada_exception_breakpoint, say_where): Update.
8791 (base_breakpoint_dtor): Don't call delete_event_location.
8792 (bkpt_print_recreate, tracepoint_print_recreate)
8793 (dprintf_print_recreate, update_static_tracepoint)
8794 (breakpoint_re_set_default): Update.
8795
711799d5
TT
87962017-04-12 Tom Tromey <tom@tromey.com>
8797
8798 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
8799 type of "to_do". Update.
8800 (compute_stack_depth): Use std::vector.
8801
52d214d3
TT
88022017-04-12 Tom Tromey <tom@tromey.com>
8803
8804 * printcmd.c (find_instruction_backward): Use std::vector.
8805
4c404b8b
TT
88062017-04-12 Tom Tromey <tom@tromey.com>
8807
8808 * symfile.c (objfilep): Remove typedef.
8809 (reread_symbols): Use a std::vector.
8810
156d9eab
TT
88112017-04-12 Tom Tromey <tom@tromey.com>
8812
8813 * mi/mi-main.c (exec_direction_forward): Remove.
8814 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
8815 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
8816 scoped_restore.
8817 * guile/guile.c (guile_repl_command, guile_command)
8818 (gdbscm_execute_gdb_command): Use scoped_restore.
8819 * go-exp.y (go_parse): Use scoped_restore.
8820 * d-exp.y (d_parse): Use scoped_restore.
8821 * cli/cli-decode.c (cmd_func): Use scoped_restore.
8822 * c-exp.y (c_parse): Use scoped_restore.
8823
4d89769a
TT
88242017-04-12 Tom Tromey <tom@tromey.com>
8825
8826 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
8827 (mi_parse): Update return type.
8828 (mi_parse_free): Remove.
8829 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
8830 (mi_parse::~mi_parse): Rename from mi_parse_free.
8831 (mi_parse_cleanup): Remove.
8832 (mi_parse): Return a unique_ptr. Use new.
8833 * mi/mi-main.c (mi_execute_command): Update.
8834
4b217cc7
TT
88352017-04-12 Tom Tromey <tom@tromey.com>
8836
8837 * location.c (explicit_location_lex_one): Return a
8838 unique_xmalloc_ptr.
8839 (string_to_explicit_location): Update. Remove cleanups.
8840
59d3651b
TT
88412017-04-12 Tom Tromey <tom@tromey.com>
8842
8843 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
8844 (compare_value_and_voffset): Change type. Update.
8845 (compute_vtable_size): Change type of "offset_vec".
8846 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
8847 (gnuv3_get_typeid): Remove extraneous declaration.
8848
b24b0d6c
TT
88492017-04-12 Tom Tromey <tom@tromey.com>
8850
8851 * charset.h (wchar_iterator): Fix comment.
8852
80a3b8c5
TT
88532017-04-12 Tom Tromey <tom@tromey.com>
8854
8855 * charset.c (iconv_wrapper): New class.
8856 (cleanup_iconv): Remove.
8857 (convert_between_encodings): Use it.
8858
c83dd867
TT
88592017-04-12 Tom Tromey <tom@tromey.com>
8860
8861 * symfile.h (increment_reading_symtab): Update type.
8862 * symfile.c (decrement_reading_symtab): Remove.
8863 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
8864 * psymtab.c (psymtab_to_symtab): Update.
8865 * dwarf2read.c (dw2_instantiate_symtab): Update.
8866
0e8621a0
TT
88672017-04-12 Tom Tromey <tom@tromey.com>
8868
8869 * jit.c (struct jit_reader): Declare separately. Add constructor
8870 and destructor. Change type of "handle".
8871 (loaded_jit_reader): Define separately.
8872 (jit_reader_load): Update. New "new".
8873 (jit_reader_unload_command): Use "delete".
8874 * gdb-dlfcn.h (struct dlclose_deleter): New.
8875 (gdb_dlhandle_up): New typedef.
8876 (gdb_dlopen, gdb_dlsym): Update types.
8877 (gdb_dlclose): Remove.
8878 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
8879 (gdb_dlsym): Change type of "handle".
8880 (make_cleanup_dlclose): Remove.
8881 (dlclose_deleter::operator()): Rename from gdb_dlclose.
8882 * compile/compile-c-support.c (load_libcc): Update.
8883
67d89901
TT
88842017-04-12 Tom Tromey <tom@tromey.com>
8885
8886 * symtab.h (find_pcs_for_symtab_line): Change return type.
8887 * symtab.c (find_pcs_for_symtab_line): Change return type.
8888 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
8889 type of "vec". Update.
8890 (ltpy_get_pcs_for_line): Update.
8891 * linespec.c (decode_digits_ordinary): Update.
8892
93921405
TT
88932017-04-12 Tom Tromey <tom@tromey.com>
8894
8895 * tracepoint.c (actions_command): Update.
8896 * python/python.c (python_command, python_interactive_command):
8897 Update.
8898 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
8899 * guile/guile.c (guile_command): Update.
8900 * defs.h (read_command_lines, read_command_lines_1): Return
8901 command_line_up.
8902 (command_lines_deleter): New struct.
8903 (command_line_up): New typedef.
8904 * compile/compile.c (compile_code_command)
8905 (compile_print_command): Update.
8906 * cli/cli-script.h (get_command_line, copy_command_lines): Return
8907 command_line_up.
8908 (make_cleanup_free_command_lines): Remove.
8909 * cli/cli-script.c (get_command_line, read_command_lines_1)
8910 (copy_command_lines): Return command_line_up.
8911 (while_command, if_command, read_command_lines, define_command)
8912 (document_command): Update.
8913 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
8914 Remove.
8915 * breakpoint.h (breakpoint_set_commands): Change type of
8916 "commands".
8917 * breakpoint.c (breakpoint_set_commands): Change type of
8918 "commands". Update.
8919 (do_map_commands_command, update_dprintf_command_list)
8920 (create_tracepoint_from_upload): Update.
8921
ffc2605c
TT
89222017-04-12 Tom Tromey <tom@tromey.com>
8923
8924 * tracepoint.c (scope_info): Update.
8925 * spu-tdep.c (spu_catch_start): Update.
8926 * python/python.c (gdbpy_decode_line): Update.
8927 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
8928 * python/py-breakpoint.c (bppy_init): Update.
8929 * probe.c (parse_probes): Update.
8930 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
8931 * location.h (event_location_deleter): New struct.
8932 (event_location_up): New typedef.
8933 (new_linespec_location, new_address_location, new_probe_location)
8934 (new_explicit_location, copy_event_location)
8935 (string_to_event_location, string_to_event_location_basic)
8936 (string_to_explicit_location): Update return type.
8937 (make_cleanup_delete_event_location): Remove.
8938 * location.c (new_linespec_location, new_address_location)
8939 (new_probe_location, new_explicit_location, copy_event_location):
8940 Return event_location_up.
8941 (delete_event_location_cleanup)
8942 (make_cleanup_delete_event_location): Remove.
8943 (string_to_explicit_location, string_to_event_location_basic)
8944 (string_to_event_location): Return event_location_up.
8945 * linespec.c (canonicalize_linespec, event_location_to_sals)
8946 (decode_line_with_current_source)
8947 (decode_line_with_last_displayed, decode_objc): Update.
8948 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8949 * completer.c (location_completer): Update.
8950 * cli/cli-cmds.c (edit_command, list_command): Update.
8951 * breakpoint.c (create_overlay_event_breakpoint)
8952 (create_longjmp_master_breakpoint)
8953 (create_std_terminate_master_breakpoint)
8954 (create_exception_master_breakpoint)
8955 (create_thread_event_breakpoint): Update.
8956 (init_breakpoint_sal): Update. Remove some dead code.
8957 (create_breakpoint_sal): Change type of "location". Update.
8958 (create_breakpoints_sal, create_breakpoint, break_command_1)
8959 (dprintf_command, break_range_command, until_break_command)
8960 (init_ada_exception_breakpoint)
8961 (strace_marker_create_sals_from_location)
8962 (update_static_tracepoint, trace_command, ftrace_command)
8963 (strace_command, create_tracepoint_from_upload): Update.
8964 * break-catch-throw.c (re_set_exception_catchpoint): Update.
8965 * ax-gdb.c (agent_command_1): Update.
8966
8f10c932
PA
89672017-04-12 Pedro Alves <palves@redhat.com>
8968
8969 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
8970 * configure.tgt: Handle i[34567]86-*-go32* and
8971 i[34567]86-*-msdosdjgpp*.
8972 * i386-tdep.c (i386_svr4_reg_to_regnum):
8973 Make extern.
8974 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
8975 i386-go32-tdep.c.
8976 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
8977 * i386-go32-tdep.c: New file.
8978 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
8979 declarations.
8980
0a31ccfb
SM
89812017-04-12 Simon Marchi <simon.marchi@ericsson.com>
8982
8983 * aix-thread.c (pd_status2str): Change return type to const char *.
8984
e9bb3fbb
PA
89852017-04-12 Pedro Alves <palves@redhat.com>
8986
8987 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
8988 calls to set_gdbarch_gnu_triplet_regexp.
8989
53375380
PA
89902017-04-12 Pedro Alves <palves@redhat.com>
8991
8992 PR gdb/21323
8993 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
8994 New enum value.
8995 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
8996 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
8997 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
8998 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
8999 * gdbarch.h, gdbarch.c: Regenerate.
9000 * aarch64-tdep.c (aarch64_gdbarch_init): Override
9001 gdbarch_wchar_bit and gdbarch_wchar_signed.
9002 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
9003 * arm-tdep.c (arm_gdbarch_init): Likewise.
9004 * avr-tdep.c (avr_gdbarch_init): Likewise.
9005 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
9006 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
9007 * i386-tdep.c (i386_go32_init_abi): Likewise.
9008 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9009 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9010 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
9011 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
9012 * sh-tdep.c (sh_gdbarch_init): Likewise.
9013 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9014 * sparc64-tdep.c (sparc64_init_abi): Likewise.
9015 * windows-tdep.c (windows_init_abi): Likewise.
9016 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
9017
53e710ac
PA
90182017-04-12 Pedro Alves <palves@redhat.com>
9019
9020 PR c++/21323
9021 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
9022 cplus_primitive_type_char32_t>: New enum values.
9023 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
9024 and cplus_primitive_type_char32_t.
9025 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
9026 32, use the archtecture's built-in type for char16_t and char32_t,
9027 respectively. Otherwise, fallback to init_integer_type as before,
9028 but make the type unsigned, and issue a complaint.
9029 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
9030
ab0538b8
AH
90312017-04-12 Alan Hayward <alan.hayward@arm.com>
9032
5e0e0422 9033 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
9034 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
9035
5430098f
SDJ
90362017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
9037
9038 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
9039 'const char *'.
9040
7c5ded6a
SDJ
90412017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
9042
9043 * common/common-utils.c (free_vector_argv): New function.
9044 * common/common-utils.h: Include <vector>.
9045 (free_vector_argv): New prototype.
9046 * darwin-nat.c (darwin_create_inferior): Rewrite function
9047 prototype in order to constify "exec_file" and accept a
9048 "std::string" for "allargs".
9049 * fork-child.c: Include <vector>.
9050 (breakup_args): Rewrite function, using C++.
9051 (fork_inferior): Rewrite function header, constify "exec_file_arg"
9052 and accept "std::string" for "allargs". Update the code to
9053 calculate "argv" based on "allargs". Update calls to "exec_fun"
9054 and "execvp".
9055 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
9056 order to constify "exec_file" and accept a "std::string" for
9057 "allargs".
9058 * go32-nat.c (go32_create_inferior): Likewise.
9059 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
9060 * infcmd.c (run_command_1): Constify "exec_file". Use
9061 "std::string" for inferior arguments.
9062 * inferior.h (fork_inferior): Update prototype.
9063 * linux-nat.c (linux_nat_create_inferior): Rewrite function
9064 prototype in order to constify "exec_file" and accept a
9065 "std::string" for "allargs".
9066 * nto-procfs.c (procfs_create_inferior): Likewise.
9067 * procfs.c (procfs_create_inferior): Likewise.
9068 * remote-sim.c (gdbsim_create_inferior): Likewise.
9069 * remote.c (extended_remote_run): Update code to accept
9070 "std::string" as argument.
9071 (extended_remote_create_inferior): Rewrite function prototype in
9072 order to constify "exec_file" and accept a "std::string" for
9073 "allargs".
9074 * rs6000-nat.c (super_create_inferior): Likewise.
9075 (rs6000_create_inferior): Likewise.
9076 * target.h (struct target_ops) <to_create_inferior>: Likewise.
9077 * windows-nat.c (windows_create_inferior): Likewise.
9078
ae0eee42
PA
90792017-04-11 Pedro Alves <palves@redhat.com>
9080
9081 * thread.c: Fix whitespace throughout.
9082
a6acac06
PR
90832017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
9084
9085 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
9086
64403bd1
AH
90872017-04-11 Alan Hayward <alan.hayward@arm.com>
9088
9089 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
9090
a5bef50f
SDJ
90912017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
9092
9093 PR gdb/21364
9094 * osdata.c (info_osdata): Check if 'type' is an empty string
9095 instead of NULL.
9096
9295a5a9
PA
90972017-04-10 Pedro Alves <palves@redhat.com>
9098
9099 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
9100 (ptid_to_global_thread_id, in_thread_list)
9101 (do_captured_list_thread_ids, set_resumed, set_running)
9102 (set_executing, set_stop_requested, finish_thread_state)
9103 (validate_registers_access, can_access_registers_ptid)
9104 (print_thread_info_1, switch_to_thread)
9105 (do_restore_current_thread_cleanup)
9106 (make_cleanup_restore_current_thread, thread_command)
9107 (thread_name_command): Use operator== instead of ptid_equal.
9108
996812e3
PA
91092017-04-10 Pedro Alves <palves@redhat.com>
9110
9111 * thread.c (struct current_thread_cleanup) <next>: Delete field.
9112 (current_thread_cleanup_chain): Delete.
9113 (restore_current_thread_cleanup_dtor)
9114 (make_cleanup_restore_current_thread): Remove references to
9115 current_thread_cleanup_chain.
9116
845b344f
AH
91172017-04-10 Alan Hayward <alan.hayward@arm.com>
9118
9119 * msp430-tdep.c (msp430_pseudo_register_read): Never return
9120 REG_UNKNOWN.
9121
803bdfe4
YQ
91222017-04-10 Yao Qi <yao.qi@linaro.org>
9123
9124 PR gdb/19942
9125 * gdbthread.h (thread_info::deletable): New method.
9126 (thread_info::incref): New method.
9127 (thread_info::decref): New method.
9128 (thread_info::refcount): Move it to private.
9129 * infrun.c (save_stop_context): Call inc_refcount.
9130 (release_stop_context_cleanup): Likewise.
9131 * thread.c (set_thread_exited): New function.
9132 (init_thread_list): Delete "tp" only it is deletable, otherwise
9133 call set_thread_exited.
9134 (delete_thread_1): Call set_thread_exited.
9135 (current_thread_cleanup) <inferior_pid>: Remove.
9136 <thread>: New field.
9137 (restore_current_thread_ptid_changed): Removed.
9138 (do_restore_current_thread_cleanup): Adjust.
9139 (restore_current_thread_cleanup_dtor): Don't call
9140 find_thread_ptid.
9141 (set_thread_refcount): Use dec_refcount.
9142 (make_cleanup_restore_current_thread): Adjust.
9143 (thread_apply_all_command): Call inc_refcount.
9144 (_initialize_thread): Don't call
9145 observer_attach_thread_ptid_changed.
9146
8c25b497
YQ
91472017-04-10 Yao Qi <yao.qi@linaro.org>
9148
9149 * thread.c (delete_thread_1): Hoist code on marking thread as
9150 exited.
9151
8473b447
SM
91522017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9153
9154 * windows-nat.c (windows_detach): Initialize ptid with
9155 minus_one_ptid.
9156
6670ec13
SM
91572017-04-07 Simon Marchi <simon.marchi@ericsson.com>
9158
9159 * unittests/ptid-selftests.c: Fix erroneous assert messages.
9160
ba2f91bb
AH
91612017-04-07 Alan Hayward <alan.hayward@arm.com>
9162
9163 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
9164 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
9165 (bfin_pseudo_register_write): Likewise
9166
436252de
SM
91672017-04-06 Simon Marchi <simon.marchi@ericsson.com>
9168
9169 * common/ptid.h (struct ptid): Change to...
9170 (class ptid_t): ... this.
9171 <ptid_t>: New constructors.
9172 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
9173 matches>: New methods.
9174 <make_null, make_minus_one>: New static methods.
9175 <pid>: Rename to...
9176 <m_pid>: ...this.
9177 <lwp>: Rename to...
9178 <m_lwp>: ...this.
9179 <tid>: Rename to...
9180 <m_tid>: ...this.
9181 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
9182 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
9183 as references, move comment to class ptid_t.
9184 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
9185 ptid_t static methods.
9186 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
9187 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
9188 Take ptid arguments as references, implement using ptid_t methods.
9189 * unittests/ptid-selftests.c: New file.
9190 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9191 unittests/ptid-selftests.c.
9192 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
9193
0dedf377
TP
91942017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
9195
9196 * python/python.c (python_run_simple_file): Cast mode literal to
9197 non-const char pointer as expected by PyFile_FromString.
9198
4e9868d4
SM
91992017-04-05 Simon Marchi <simon.marchi@ericsson.com>
9200
9201 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
9202 minus_one_ptid and null_ptid.
9203
9bf2a700
PA
92042017-04-05 Pedro Alves <palves@redhat.com>
9205
9206 * warning.m4 (build_warnings): Remove -Wno-write-strings.
9207 * configure: Regenerate.
9208
a121b7c1
PA
92092017-04-05 Pedro Alves <palves@redhat.com>
9210
9211 * ada-exp.y (yyerror): Constify.
9212 * ada-lang.c (bound_name, get_selections)
9213 (ada_variant_discrim_type)
9214 (ada_variant_discrim_name, ada_value_struct_elt)
9215 (ada_lookup_struct_elt_type, is_unchecked_variant)
9216 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
9217 (catch_ada_exception_command_split)
9218 (catch_ada_assert_command_split, catch_assert_command)
9219 (ada_op_name): Constify.
9220 * ada-lang.h (ada_yyerror, get_selections)
9221 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
9222 * arc-tdep.c (arc_print_frame_cache): Constify.
9223 * arm-tdep.c (arm_skip_stub): Constify.
9224 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
9225 (gen_aggregate_elt_ref): Constify.
9226 * bcache.c (print_bcache_statistics): Constify.
9227 * bcache.h (print_bcache_statistics): Constify.
9228 * break-catch-throw.c (catch_exception_command_1):
9229 * breakpoint.c (struct ep_type_description::description):
9230 Constify.
9231 (add_solib_catchpoint): Constify.
9232 (catch_fork_command_1): Add cast.
9233 (add_catch_command): Constify.
9234 * breakpoint.h (add_catch_command, add_solib_catchpoint):
9235 Constify.
9236 * bsd-uthread.c (bsd_uthread_state): Constify.
9237 * buildsym.c (patch_subfile_names): Constify.
9238 * buildsym.h (next_symbol_text_func, patch_subfile_names):
9239 Constify.
9240 * c-exp.y (yyerror): Constify.
9241 (token::oper): Constify.
9242 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
9243 * c-varobj.c (cplus_describe_child): Constify.
9244 * charset.c (find_charset_names): Add cast.
9245 (find_charset_names): Constify array and add const_cast.
9246 * cli/cli-cmds.c (complete_command, cd_command): Constify.
9247 (edit_command): Constify.
9248 * cli/cli-decode.c (lookup_cmd): Constify.
9249 * cli/cli-dump.c (dump_memory_command, dump_value_command):
9250 Constify.
9251 (struct dump_context): Constify.
9252 (add_dump_command, restore_command): Constify.
9253 * cli/cli-script.c (get_command_line): Constify.
9254 * cli/cli-script.h (get_command_line): Constify.
9255 * cli/cli-utils.c (check_for_argument): Constify.
9256 * cli/cli-utils.h (check_for_argument): Constify.
9257 * coff-pe-read.c (struct read_pe_section_data): Constify.
9258 * command.h (lookup_cmd): Constify.
9259 * common/print-utils.c (decimal2str): Constify.
9260 * completer.c (gdb_print_filename): Constify.
9261 * corefile.c (set_gnutarget): Constify.
9262 * cp-name-parser.y (yyerror): Constify.
9263 * cp-valprint.c (cp_print_class_member): Constify.
9264 * cris-tdep.c (cris_register_name, crisv32_register_name):
9265 Constify.
9266 * d-exp.y (yyerror): Constify.
9267 (struct token::oper): Constify.
9268 * d-lang.h (d_yyerror): Constify.
9269 * dbxread.c (struct header_file_location::name): Constify.
9270 (add_old_header_file, add_new_header_file, last_function_name)
9271 (dbx_next_symbol_text, add_bincl_to_list)
9272 (find_corresponding_bincl_psymtab, set_namestring)
9273 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
9274 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
9275 * defs.h (command_line_input, print_address_symbolic)
9276 (deprecated_readline_begin_hook): Constify.
9277 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
9278 Constify.
9279 * event-top.c (handle_line_of_input): Constify and add cast.
9280 * exceptions.c (catch_errors): Constify.
9281 * exceptions.h (catch_errors): Constify.
9282 * expprint.c (print_subexp_standard, op_string, op_name)
9283 (op_name_standard, dump_raw_expression, dump_raw_expression):
9284 * expression.h (op_name, op_string, dump_raw_expression):
9285 Constify.
9286 * f-exp.y (yyerror): Constify.
9287 (struct token::oper): Constify.
9288 (struct f77_boolean_val::name): Constify.
9289 * f-lang.c (f_word_break_characters): Constify.
9290 * f-lang.h (f_yyerror): Constify.
9291 * fork-child.c (fork_inferior): Add cast.
9292 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
9293 (new_variant): Constify.
9294 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
9295 * gdbarch.c: Regenerate.
9296 * gdbcore.h (set_gnutarget): Constify.
9297 * go-exp.y (yyerror): Constify.
9298 (token::oper): Constify.
9299 * go-lang.h (go_yyerror): Constify.
9300 * go32-nat.c (go32_sysinfo): Constify.
9301 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
9302 * guile/scm-cmd.c (cmdscm_function): Constify.
9303 * guile/scm-param.c (pascm_param_value): Constify.
9304 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
9305 (h8300sx_register_name): Constify.
9306 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
9307 Constify.
9308 * ia64-tdep.c (ia64_register_names): Constify.
9309 * infcmd.c (construct_inferior_arguments): Constify.
9310 (path_command, attach_post_wait): Constify.
9311 * language.c (show_range_command, show_case_command)
9312 (unk_lang_error): Constify.
9313 * language.h (language_defn::la_error)
9314 (language_defn::la_name_of_this): Constify.
9315 * linespec.c (decode_line_2): Constify.
9316 * linux-thread-db.c (thread_db_err_str): Constify.
9317 * lm32-tdep.c (lm32_register_name): Constify.
9318 * m2-exp.y (yyerror): Constify.
9319 * m2-lang.h (m2_yyerror): Constify.
9320 * m32r-tdep.c (m32r_register_names): Constify and make static.
9321 * m68hc11-tdep.c (m68hc11_register_names): Constify.
9322 * m88k-tdep.c (m88k_register_name): Constify.
9323 * macroexp.c (appendmem): Constify.
9324 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
9325 (upgrade_type, parse_external, parse_partial_symbols)
9326 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
9327 (new_symbol): Constify.
9328 * memattr.c (mem_info_command): Constify.
9329 * mep-tdep.c (register_name_from_keyword): Constify.
9330 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
9331 Constify.
9332 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
9333 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
9334 * mi/mi-main.c (captured_mi_execute_command): Constify and add
9335 cast.
9336 (mi_execute_async_cli_command): Constify.
9337 * mips-tdep.c (mips_register_name): Constify.
9338 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
9339 (am33_register_name, am33_2_register_name)
9340 * moxie-tdep.c (moxie_register_names): Constify.
9341 * nat/linux-osdata.c (osdata_type): Constify fields.
9342 * nto-tdep.c (nto_parse_redirection): Constify.
9343 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
9344 (lookup_child_selector): Constify.
9345 (objc_methcall::name): Constify.
9346 * objc-lang.h (lookup_objc_class, lookup_child_selector)
9347 (lookup_struct_typedef): Constify.
9348 * objfiles.c (pc_in_section): Constify.
9349 * objfiles.h (pc_in_section): Constify.
9350 * p-exp.y (struct token::oper): Constify.
9351 (yyerror): Constify.
9352 * p-lang.h (pascal_yyerror): Constify.
9353 * parser-defs.h (op_name_standard): Constify.
9354 (op_print::string): Constify.
9355 (exp_descriptor::op_name): Constify.
9356 * printcmd.c (print_address_symbolic): Constify.
9357 * psymtab.c (print_partial_symbols): Constify.
9358 * python/py-breakpoint.c (stop_func): Constify.
9359 (bppy_get_expression): Constify.
9360 * python/py-cmd.c (cmdpy_completer::name): Constify.
9361 (cmdpy_function): Constify.
9362 * python/py-event.c (evpy_add_attribute)
9363 (gdbpy_initialize_event_generic): Constify.
9364 * python/py-event.h (evpy_add_attribute)
9365 (gdbpy_initialize_event_generic): Constify.
9366 * python/py-evts.c (add_new_registry): Constify.
9367 * python/py-finishbreakpoint.c (outofscope_func): Constify.
9368 * python/py-framefilter.c (get_py_iter_from_func): Constify.
9369 * python/py-inferior.c (get_buffer): Add cast.
9370 * python/py-param.c (parm_constant::name): Constify.
9371 * python/py-unwind.c (fprint_frame_id): Constify.
9372 * python/python.c (gdbpy_parameter_value): Constify.
9373 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
9374 * remote.c (memory_packet_config::name): Constify.
9375 (show_packet_config_cmd, remote_write_bytes)
9376 (remote_buffer_add_string):
9377 * reverse.c (exec_reverse_once): Constify.
9378 * rs6000-tdep.c (variant::name, variant::description): Constify.
9379 * rust-exp.y (rustyyerror): Constify.
9380 * rust-lang.c (rust_op_name): Constify.
9381 * rust-lang.h (rustyyerror): Constify.
9382 * serial.h (serial_ops::name): Constify.
9383 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
9384 (sh_sh3e_register_name, sh_sh2e_register_name)
9385 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
9386 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
9387 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
9388 (sh_sh4al_dsp_register_name): Constify.
9389 * sh64-tdep.c (sh64_register_name): Constify.
9390 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
9391 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
9392 * stabsread.c (patch_block_stabs, read_type_number)
9393 (ref_map::stabs, ref_add, process_reference)
9394 (symbol_reference_defined, define_symbol, define_symbol)
9395 (error_type, read_type, read_member_functions, read_cpp_abbrev)
9396 (read_one_struct_field, read_struct_fields, read_baseclasses)
9397 (read_tilde_fields, read_struct_type, read_array_type)
9398 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
9399 (read_huge_number, read_range_type, read_args, common_block_start)
9400 (find_name_end): Constify.
9401 * stabsread.h (common_block_start, define_symbol)
9402 (process_one_symbol, symbol_reference_defined, ref_add):
9403 * symfile.c (get_section_index, add_symbol_file_command):
9404 * symfile.h (get_section_index): Constify.
9405 * target-descriptions.c (tdesc_type::name): Constify.
9406 (tdesc_free_type): Add cast.
9407 * target.c (find_default_run_target):
9408 (add_deprecated_target_alias, find_default_run_target)
9409 (target_announce_detach): Constify.
9410 (do_option): Constify.
9411 * target.h (add_deprecated_target_alias): Constify.
9412 * thread.c (print_thread_info_1): Constify.
9413 * top.c (deprecated_readline_begin_hook, command_line_input):
9414 Constify.
9415 (init_main): Add casts.
9416 * top.h (handle_line_of_input): Constify.
9417 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
9418 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
9419 (tfind_command): Rename to ...
9420 (tfind_command_1): ... this and constify.
9421 (tfind_command): New function.
9422 (tfind_end_command, tfind_start_command): Adjust.
9423 (encode_source_string): Constify.
9424 * tracepoint.h (encode_source_string): Constify.
9425 * tui/tui-data.c (tui_partial_win_by_name): Constify.
9426 * tui/tui-data.h (tui_partial_win_by_name): Constify.
9427 * tui/tui-source.c (tui_set_source_content_nil): Constify.
9428 * tui/tui-source.h (tui_set_source_content_nil): Constify.
9429 * tui/tui-win.c (parse_scrolling_args): Constify.
9430 * tui/tui-windata.c (tui_erase_data_content): Constify.
9431 * tui/tui-windata.h (tui_erase_data_content): Constify.
9432 * tui/tui-winsource.c (tui_erase_source_content): Constify.
9433 * tui/tui.c (tui_enable): Add cast.
9434 * utils.c (defaulted_query): Constify.
9435 (init_page_info): Add cast.
9436 (puts_debug, subset_compare): Constify.
9437 * utils.h (subset_compare): Constify.
9438 * varobj.c (varobj_format_string): Constify.
9439 * varobj.h (varobj_format_string): Constify.
9440 * vax-tdep.c (vax_register_name): Constify.
9441 * windows-nat.c (windows_detach): Constify.
9442 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
9443 * xml-support.c (gdb_xml_end_element): Constify.
9444 * xml-tdesc.c (tdesc_start_reg): Constify.
9445 * xstormy16-tdep.c (xstormy16_register_name): Constify.
9446 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
9447 * xtensa-tdep.h (xtensa_register_t::name): Constify.
9448
995816ba
PA
94492017-04-05 Pedro Alves <palves@redhat.com>
9450
9451 * proc-api.c (struct trans): Constify.
9452 (procfs_note): Constify.
9453 * proc-events.c (struct trans, syscall_table):
9454 * proc-flags.c (struct trans): Constify.
9455 * proc-utils.h (procfs_note): Constify.
9456 * proc-why.c (struct trans): Constify.
9457 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
9458 (procfs_detach): Constify.
9459 * sol-thread.c (struct string_map): Constify.
9460 (td_err_string, td_state_string): Constify.
9461
3e83a920
PA
94622017-04-05 Pedro Alves <palves@redhat.com>
9463
9464 * proc-api.c (procfs_filename): Don't initialize
9465 procfs_filename.
9466 (prepare_to_trace): Assume procfs_filename is non-NULL.
9467 (_initialize_proc_api): Give procfs_filename a default value here.
9468
63160a43
PA
94692017-04-05 Pedro Alves <palves@redhat.com>
9470
9471 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
9472 'cond_string' parameter.
9473 (extract_exception_regexp): Constify 'string' parameter.
9474 (catch_exception_command_1): Constify.
9475 * breakpoint.c (init_catchpoint)
9476 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
9477 parameter.
9478 (ep_parse_optional_if_clause, catch_fork_command_1)
9479 (catch_exec_command_1): Constify.
9480 * breakpoint.h (init_catchpoint): Constify 'cond_string'
9481 parameter.
9482 (ep_parse_optional_if_clause): Constify.
9483 * cli/cli-utils.c (remove_trailing_whitespace)
9484 (check_for_argument): Constify.
9485 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
9486 non-const overload.
9487 (check_for_argument): Likewise.
9488
9b2eba3d
PA
94892017-04-05 Pedro Alves <palves@redhat.com>
9490
9491 * event-top.c (command_line_handler): Add cast to execute_command
9492 call.
9493 * record-btrace.c (cmd_record_btrace_bts_start)
9494 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
9495 (cmd_record_btrace_start): Add cast to execute_command call.
9496 * record-full.c (record_full_goto_insn):
9497 * record.c (record_start, record_stop): Add cast to
9498 execute_command_to_string calls.
9499 (cmd_record_start): Add cast to execute_command calls.
9500
2adadf51
PA
95012017-04-05 Pedro Alves <palves@redhat.com>
9502
9503 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
9504 static inline function.
9505 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
9506 array and use gdb_PyArg_ParseTupleAndKeywords.
9507 * python/py-cmd.c (cmdpy_init): Likewise.
9508 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
9509 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
9510 (infpy_search_memory): Likewise.
9511 * python/py-objfile.c (objfpy_add_separate_debug_file)
9512 (gdbpy_lookup_objfile): Likewise.
9513 * python/py-symbol.c (gdbpy_lookup_symbol)
9514 (gdbpy_lookup_global_symbol): Likewise.
9515 * python/py-type.c (gdbpy_lookup_type): Likewise.
9516 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
9517 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
9518 Likewise.
9519
0d1f4ceb
PA
95202017-04-05 Pedro Alves <palves@redhat.com>
9521
9522 * python/python-internal.h (gdb_PyGetSetDef): New type.
9523 * python/py-block.c (block_object_getset)
9524 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
9525 * python/py-event.c (event_object_getset)
9526 (finish_breakpoint_object_getset): Likewise.
9527 * python/py-inferior.c (inferior_object_getset): Likewise.
9528 * python/py-infthread.c (thread_object_getset): Likewise.
9529 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
9530 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
9531 * python/py-objfile.c (objfile_getset): Likewise.
9532 * python/py-progspace.c (pspace_getset): Likewise.
9533 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
9534 Likewise.
9535 * python/py-record.c (recpy_record_getset): Likewise.
9536 * python/py-symbol.c (symbol_object_getset): Likewise.
9537 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
9538 Likewise.
9539 * python/py-type.c (type_object_getset, field_object_getset):
9540 Likewise.
9541 * python/py-value.c (value_object_getset): Likewise.
9542
4d759979
PA
95432017-04-05 Pedro Alves <palves@redhat.com>
9544
9545 * python/python-internal.h (gdb_PyObject_CallMethod)
9546 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
9547 New functions.
9548 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
9549 (PySys_GetObject, PySys_SetPath): New macros.
9550
fdf9e36f
PA
95512017-04-05 Pedro Alves <palves@redhat.com>
9552
9553 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
9554 info_osdata_command.
9555 * osdata.c (info_osdata_command): Rename to ...
9556 (info_osdata): ... this. Constify 'type' parameter, and remove
9557 the 'from_tty' parameter. Accept NULL TYPE.
9558 (info_osdata_command): New function.
9559 * osdata.h (info_osdata_command): Remove declaration.
9560 (info_osdata): New declaration.
9561
9f33b8b7
PA
95622017-04-05 Pedro Alves <palves@redhat.com>
9563
9564 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
9565 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
9566 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
9567 parameter.
9568 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
9569 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
9570 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
9571 parameter.
9572 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
9573 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
9574 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
9575 (mi_cmd_file_list_exec_source_files)
9576 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
9577 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
9578 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
9579 parameter.
9580 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
9581 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
9582 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9583 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
9584 (mi_cmd_stack_info_frame): Constify 'command' parameter.
9585 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
9586 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
9587 'command' parameter.
9588 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
9589 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
9590 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
9591 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
9592 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
9593 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
9594 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
9595 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
9596 (mi_cmd_var_set_update_range): Constify 'command' parameter.
9597 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
9598 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
9599 parameter.
9600 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
9601 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
9602 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
9603 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
9604 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
9605 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
9606 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
9607 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
9608 (mi_cmd_data_list_changed_registers)
9609 (mi_cmd_data_write_register_values)
9610 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
9611 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
9612 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
9613 (mi_cmd_list_features, mi_cmd_list_target_features)
9614 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
9615 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
9616 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
9617 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
9618 (mi_cmd_trace_frame_collected): Constify 'command'
9619 parameter.
9620 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
9621 'command' parameter.
9622
67cb5b2d
PA
96232017-04-05 Pedro Alves <palves@redhat.com>
9624
9625 * ada-lang.c (ada_completer_word_break_characters): Now a const
9626 array.
9627 (ada_get_gdb_completer_word_break_characters): Constify.
9628 * completer.c (gdb_completer_command_word_break_characters)
9629 (gdb_completer_file_name_break_characters)
9630 (gdb_completer_quote_characters): Now const arrays.
9631 (get_gdb_completer_quote_characters): Constify.
9632 (set_rl_completer_word_break_characters): New function.
9633 (set_gdb_completion_word_break_characters)
9634 (complete_line_internal): Use it.
9635 * completer.h (get_gdb_completer_quote_characters): Constify.
9636 (set_rl_completer_word_break_characters): Declare.
9637 * f-lang.c (f_word_break_characters): Constify.
9638 * language.c (default_word_break_characters): Constify.
9639 * language.h (language_defn::la_word_break_characters): Constify.
9640 (default_word_break_characters): Constify.
9641 * top.c (init_main): Use set_rl_completer_word_break_characters.
9642
7a114964
PA
96432017-04-05 Pedro Alves <palves@redhat.com>
9644
9645 * aix-thread.c (aix_thread_pid_to_str)
9646 (aix_thread_extra_thread_info): Constify.
9647 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
9648 * bsd-uthread.c (bsd_uthread_extra_thread_info)
9649 (bsd_uthread_pid_to_str): Constify.
9650 * corelow.c (core_pid_to_str): Constify.
9651 * darwin-nat.c (darwin_pid_to_str): Constify.
9652 * fbsd-nat.c (fbsd_pid_to_str): Constify.
9653 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
9654 Constify.
9655 * gnu-nat.c (gnu_pid_to_str): Constify.
9656 * go32-nat.c (go32_pid_to_str): Constify.
9657 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
9658 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
9659 * inferior.c (inferior_pid_to_str): Constify.
9660 * linux-nat.c (linux_nat_pid_to_str): Constify.
9661 * linux-tdep.c (linux_core_pid_to_str): Constify.
9662 * linux-thread-db.c (thread_db_pid_to_str)
9663 (thread_db_extra_thread_info): Constify.
9664 * nto-tdep.c (nto_extra_thread_info): Constify.
9665 * nto-tdep.h (nto_extra_thread_info): Constify.
9666 * obsd-nat.c (obsd_pid_to_str): Constify.
9667 * procfs.c (procfs_pid_to_str): Constify.
9668 * ravenscar-thread.c (ravenscar_extra_thread_info)
9669 (ravenscar_pid_to_str): Constify.
9670 * remote-sim.c (gdbsim_pid_to_str): Constify.
9671 * remote.c (remote_threads_extra_info, remote_pid_to_str):
9672 Constify.
9673 * sol-thread.c (solaris_pid_to_str): Constify.
9674 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
9675 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
9676 * target.c (default_pid_to_str, target_pid_to_str)
9677 (normal_pid_to_str, default_pid_to_str): Constify.
9678 * target.h (target_ops::to_pid_to_str)
9679 (target_ops::to_extra_thread_info): Constify.
9680 (target_pid_to_str, normal_pid_to_str): Constify.
9681 * windows-nat.c (windows_pid_to_str): Constify.
9682 * gdbarch.sh (core_pid_to_str): Constify.
9683 * target-delegates.c: Regenerate.
9684 * gdbarch.h, gdbarch.c: Regenerate.
9685
69bbf465
PA
96862017-04-05 Pedro Alves <palves@redhat.com>
9687
9688 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
9689 the memory of the temporary warning_pre_print override.
9690 * utils.c (warning_pre_print): Constify.
9691 * utils.h (warning_pre_print): Constify.
9692
be47f9e8
PA
96932017-04-05 Pedro Alves <palves@redhat.com>
9694
9695 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
9696 (shell_command): New function.
9697 (make_command): Use std::string.
9698 (init_cli_cmds): Register shell_command instead of shell_escape.
9699
bde6261a
PA
97002017-04-05 Pedro Alves <palves@redhat.com>
9701
9702 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
9703 * tracepoint.c (default_collect): Don't initialize.
9704
b38ef47f
PA
97052017-04-05 Pedro Alves <palves@redhat.com>
9706
9707 * macroexp.c (macro_buffer::shared): Now a bool.
9708 (init_buffer): Update.
9709 (init_shared_buffer): Constify 'addr' parameter.
9710 (substitute_args, expand, macro_expand, macro_expand_next): Remove
9711 casts.
9712
f995bbe8
PA
97132017-04-05 Pedro Alves <palves@redhat.com>
9714
9715 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
9716 * disasm.c (set_disassembler_options): Constify local.
9717 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
9718
4a596fe2
SDJ
97192017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
9720
9721 PR gdb/21352
9722 * tracefile.c (tsave_command): Fix argument parsing for '-r'
9723 option.
9724
2cad08ea
YQ
97252017-04-05 Yao Qi <yao.qi@linaro.org>
9726
9727 * frame.c (frame_unwind_register_unsigned): Call
9728 frame_unwind_register_value.
9729
55a98976
YQ
97302017-04-05 Yao Qi <yao.qi@linaro.org>
9731
9732 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
9733 Use gdb_test_multiple, and don't match anchor.
9734
4ac40124
PA
97352017-04-05 Pedro Alves <palves@redhat.com>
9736
9737 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
9738 (Write After Approval): Remove Simon Marchi.
9739
c053b654
PA
97402017-04-05 Pedro Alves <palves@redhat.com>
9741
9742 * common/gdb_optional.h (optional::optional): Make constexpr and
9743 initialize m_dummy.
9744
4c7bf4f9
JB
97452017-04-04 John Baldwin <jhb@FreeBSD.org>
9746
9747 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
9748 (amd64fbsd_jmp_buf_reg_offset): Remove.
9749 (amd64fbsd_supply_uthread): Remove function.
9750 (amd64fbsd_collect_uthread): Remove function.
9751 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
9752 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
9753 (x86_64-*-freebsd*): Remove bsd-uthread.o.
9754 (fbsd-nat.c): Update comment.
9755 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
9756 (i386fbsd_jmp_buf_reg_offset): Remove.
9757 (i386fbsd_supply_uthread): Remove function.
9758 (i386fbsd_collect_uthread): Remove function.
9759 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
9760
1e1a8bef
JB
97612017-04-04 John Baldwin <jhb@FreeBSD.org>
9762
9763 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
9764 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
9765 * NEWS: Mention that support for FreeBSD/alpha was removed.
9766 * alpha-fbsd-tdep.c: Delete file.
9767 * config/alpha/fbsd.mh: Delete file.
9768 * configure.host: Delete alpha*-*-freebsd* and
9769 alpha*-*-kfreebsd*-gnu.
9770 * configure.tgt: Delete alpha*-*-freebsd* and
9771 alpha*-*-kfreebsd*-gnu.
9772
49907934
JB
97732017-04-04 John Baldwin <jhb@FreeBSD.org>
9774
9775 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
9776 amd64bsd_store_inferior_registers): Use ptid from regcache.
9777
6f77053d
PA
97782017-04-04 Pedro Alves <palves@redhat.com>
9779
9780 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
9781 data fields, make them private and add "m_" prefixes.
9782 (lnp_state_machine::lnp_state_machine): New ctor.
9783 (record_line, check_line_address, handle_set_discriminator)
9784 (handle_set_address, handle_advance_pc, handle_special_opcode)
9785 (handle_advance_line, handle_set_file, handle_negate_stmt)
9786 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
9787 (end_sequence, advance_line): New methods.
9788 (m_gdbarch, m_record_lines_p): New fields.
9789 (lnp_reader_state): Delete.
9790 (dwarf_record_line): Rename to ...
9791 (lnp_state_machine::record_line): ... adjust.
9792 (init_lnp_state_machine): Delete.
9793 (lnp_state_machine::lnp_state_machine): New.
9794 (check_line_address): Rename to ...
9795 (lnp_state_machine::check_line_address): This.
9796 (dwarf_decode_lines_1): Remove reference to "reader_state".
9797 Adjust lnp_state_machine having a non-default ctor. Use bool.
9798 State machine internal state manipulation moved to
9799 lnp_state_machine methods.
9800
9c541725
PA
98012017-04-04 Pedro Alves <palves@redhat.com>
9802
9803 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9804 unittests/offset-type-selftests.c.
9805 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
9806 * common/offset-type.h: New file.
9807 * common/preprocessor.h: New file.
9808 * common/traits.h: New file.
9809 * common/valid-expr.h: New file.
9810 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
9811 sect_offset and cu_offset strong typedefs throughout.
9812 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
9813 typedefs throughout.
9814 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
9815 sect_offset and cu_offset strong typedefs throughout.
9816 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
9817 typedefs throughout.
9818 * gdbtypes.h: Include "common/offset-type.h".
9819 (cu_offset): Now an offset type (strong typedef) instead of a
9820 struct.
9821 (sect_offset): Likewise.
9822 (union call_site_parameter_u): Rename "param_offset" field to
9823 "param_cu_off".
9824 * unittests/offset-type-selftests.c: New file.
9825
ecfb656c
PA
98262017-04-04 Pedro Alves <palves@redhat.com>
9827
9828 * common/underlying.h: New file.
9829 * dwarf2read.c: Include "common/gdb_optional.h" and
9830 "common/underlying.h".
9831 (dir_index, file_name_index): New types.
9832 (file_entry): Use them.
9833 (file_entry::include): Use to_underlying.
9834 (line_header::add_file_name): Use dir_index.
9835 (read_formatted_entries): Use gdb::optional. Read form before
9836 writting to file_entry.
9837 (dwarf_decode_line_header): Use dir_index.
9838 (lnp_state_machine::current_file): Use to_underlying.
9839 (lnp_state_machine::file): Change type to file_name_index.
9840 (dwarf_record_line): Use to_underlying.
9841 (init_lnp_state_machine): Use file_name_index.
9842 (dwarf_decode_lines_1): Use dir_index and file_name_index.
9843
d194f1fe
PA
98442017-04-04 Pedro Alves <palves@redhat.com>
9845
9846 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
9847 operator bool, has_value and get methods.
9848
fff8551c
PA
98492017-04-04 Pedro Alves <palves@redhat.com>
9850
9851 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
9852 fields.
9853 (line_header): Initialize all data fields. Change type of
9854 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
9855 Change type of include_dirs to std::vector<const char *>. Remove
9856 num_include_dirs, include_dirs_size. Change type of file_names to
9857 std::vector<file_entry>. Remove num_file_names, file_names_size.
9858 (line_header::line_header): New.
9859 (line_header::add_include_dir, line_header::add_file_name): New
9860 methods.
9861 (line_header::include_dir_at): Remove NULL check.
9862 (line_header::file_name_at): Add const overload.
9863 (line_header_up): New unique_ptr typedef.
9864 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
9865 std::vector. Remove free_line_header call.
9866 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
9867 free_line_header call.
9868 (free_cu_line_header): Delete.
9869 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
9870 (setup_type_unit_groups): Use line_header_up instead of cleanups.
9871 Adjust to use std::vector.
9872 (free_line_header): Delete.
9873 (free_line_header_voidp): Use delete.
9874 (add_include_dir): Replace with ...
9875 (line_header::add_include_dir): ... this method. Use std::vector.
9876 (add_file_name): Replace with ...
9877 (line_header::add_file_name): ... this method. Use std::vector.
9878 (add_include_dir_stub): Delete.
9879 (read_formatted_entries): Remove memset.
9880 (dwarf_decode_line_header): Return a line_header_up instead of a
9881 raw pointer. Remove cleanup handling. Pass lambdas to
9882 read_formatted_entries. Adjust to use line_header methods.
9883 (dwarf_decode_lines_1): Adjust to use line_header methods.
9884 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
9885 use std::vector.
9886
d62a8ae2
SM
98872017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
9888
9889 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
9890 instead of struct ptid.
9891
db3a1dc7
AH
98922017-05-04 Alan Hayward <alan.hayward@arm.com>
9893
9894 * frame.c (get_frame_register_bytes): Unwind using value.
9895 (put_frame_register_bytes): Likewise.
9896
b1b45502
IB
98972017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
9898
9899 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
9900 aggregate-like.
9901
ec13808e
JK
99022017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9903
9904 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
9905
12316564
YQ
99062017-03-29 Yao Qi <yao.qi@linaro.org>
9907
9908 * gdbthread.h (struct thread_info): Declare constructor and
9909 destructor. Add some in-class member initializers.
9910 * thread.c (free_thread): Remove.
9911 (init_thread_list): Call delete instead of free_thread.
9912 (new_thread): Call thread_info constructor.
9913 (thread_info::thread_info): New function.
9914 (thread_info::~thread_info): New function.
9915 (delete_thread_1): Call delete instead of free_thread.
9916 (make_cleanup_restore_current_thread): Move tp and frame to
9917 inner block.
9918
fe5f7374
AK
99192017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9920
9921 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
9922 (arc_skip_prologue): Likewise.
9923 (arc_make_frame_cache): Likewise.
9924 (arc_pv_get_operand): New function.
9925 (arc_is_in_prologue): Likewise.
9926 (arc_analyze_prologue): Likewise.
9927 (arc_print_frame_cache): Likewise.
9928 (MAX_PROLOGUE_LENGTH): New constant.
9929
eea78757
AK
99302017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9931
9932 * configure.tgt: Add arc-insn.o.
9933 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
9934 (dump_arc_instruction_command): New function.
9935 (arc_fprintf_disasm): Likewise.
9936 (arc_disassemble_info): Likewise.
9937 (arc_insn_get_operand_value): Likewise.
9938 (arc_insn_get_operand_value_signed): Likewise.
9939 (arc_insn_get_memory_base_reg): Likewise.
9940 (arc_insn_get_memory_offset): Likewise.
9941 (arc_insn_get_branch_target): Likewise.
9942 (arc_insn_dump): Likewise.
9943 (arc_insn_get_linear_next_pc): Likewise.
9944 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
9945 (arc_disassemble_info): Likewise.
9946 (arc_insn_get_branch_target): Likewise.
9947 (arc_insn_get_linear_next_pc): Likewise.
9948 * NEWS: Mention new "maint print arc arc-instruction".
9949
3be78afd
AK
99502017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9951
9952 * arc-tdep (maintenance_print_arc_list): New variable.
9953 (maintenance_print_arc_command): New function.
9954
296ec4fa
AK
99552017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9956
9957 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
9958 Add "limm" and "reserved".
9959 (arc_cannot_fetch_register, arc_cannot_store_register): Add
9960 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
9961 * arc-tdep.h (arc_regnum): Likewise.
9962
f74f865e
MF
99632017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9964
9965 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
9966 for THREADPTR register.
9967 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
9968 register.
9969 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
9970 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
9971 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
9972
0d0bf81a
MF
99732017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9974
9975 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
9976 registers above gdbarch_num_regs (gdbarch) as privileged in
9977 call0 ABI.
9978
0ce4291e
MF
99792017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9980
9981 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
9982 for a single specified register or for all registers in
9983 a0_base..a0_base + C0_NREGS range.
9984 (supply_gregset_reg): Call regcache_raw_supply for a single
9985 specified register or for all registers in a0_base..a0_base +
9986 C0_NREGS range.
9987
c56054f9
MF
99882017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9989
9990 * arch/xtensa.h (C0_NREGS): Add definition.
9991 * xtensa-tdep.c (C0_NREGS): Remove definition.
9992
a4398628
MF
99932017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9994
9995 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
9996 Drop xtensa_default_isa initialization.
9997 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
9998
8c43009f
PA
99992017-03-27 Pedro Alves <palves@redhat.com>
10000
10001 * dwarf2read.c (file_entry) <dir_index>: Add comment.
10002 (file_entry::include_dir): New method.
10003 (line_header::include_dir_at, line_header::file_name_at): New
10004 methods.
10005 (setup_type_unit_groups, setup_type_unit_groups)
10006 (psymtab_include_file_name): Simplify using the new methods.
10007 (lnp_state_machine) <the_line_header>: New field.
10008 <file>: Add comment.
10009 (lnp_state_machine::current_file): New method.
10010 (dwarf_record_line): Simplify using the new methods.
10011 (init_lnp_state_machine): Initialize the "the_line_header" field.
10012 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
10013 Simplify using the new methods.
10014
a7e80b9e
PA
100152017-03-27 Pedro Alves <palves@redhat.com>
10016
10017 * cp-name-parser.y (make_empty): Delete.
10018 (demangler_special, nested_name, ptr_operator, array_indicator)
10019 (direct_declarator, declarator_1): Use fill_comp instead of
10020 make_empty.
10021
21047726
PA
100222017-03-27 Pedro Alves <palves@redhat.com>
10023
10024 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
10025 to ATTRIBUTE_PRINTF.
10026 * solib-target.c (library_list_start_list): Print "string" not
10027 "version".
10028 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
10029 gdb_xml_error call.
10030
d721ba37
PA
100312017-03-27 Pedro Alves <palves@redhat.com>
10032
10033 * dwarf2read.c (struct file_and_directory): New.
10034 (dwarf2_get_dwz_file): Adjust to use std::string.
10035 (dw2_get_file_names_reader): Adjust to use file_and_directory.
10036 (find_file_and_directory): Adjust to return a file_and_directory
10037 object.
10038 (read_file_scope): Adjust to use file_and_directory. Remove
10039 make_cleanup/do_cleanups calls.
10040 (open_and_init_dwp_file): Adjust to use std::string. Remove
10041 make_cleanup/do_cleanups calls.
10042 * python/python.c (do_start_initialization): Adjust to ldirname
10043 returning a std::string.
10044 * utils.c (ldirname): Now returns a std::string.
10045 * utils.h (ldirname): Change return type to std::string.
10046 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
10047 returning a std::string.
10048 * xml-tdesc.c (file_read_description_xml): Likewise.
10049
ed771251
AH
100502017-03-24 Alan Hayward <alan.hayward@arm.com>
10051
10052 * regcache.c (regcache_debug_print_register): New function.
10053 * regcache.h (regcache_debug_print_register): New declaration.
10054 * target.c (debug_print_register): Remove.
10055 (target_fetch_registers): Call regcache_debug_print_register.
10056 (target_store_registers): Likewise.
10057
568c1b9f
PB
100582017-03-24 Pádraig Brady <pbrady@fb.com>
10059
10060 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
10061 reference beyond the 'lh->include_dirs' array before accessing to
10062 it.
10063 (psymtab_include_file_name): Likewise.
10064 (dwarf_decode_lines_1): Likewise.
10065 (dwarf_decode_lines): Likewise.
10066 (file_file_name): Likewise.
10067
3e00d44f
SM
100682017-03-23 Simon Marchi <simon.marchi@ericsson.com>
10069
10070 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
10071 inferior_ptid.
10072 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
10073 ps_lsetfpregs): Likewise.
10074 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
10075 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
10076 ps_lsetfpregs): Likewise.
10077 * target.c (target_fetch_registers, target_store_registers):
10078 Remove asserts.
10079
077ae656
AH
100802017-03-23 Alan Hayward <alan.hayward@arm.com>
10081
10082 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
10083
1e2b521d
YQ
100842017-03-23 Yao Qi <yao.qi@linaro.org>
10085
10086 * aarch64-tdep.c (aarch64_process_record_test): Declare.
10087 (_initialize_aarch64_tdep): Register it.
10088 (aarch64_record_load_store): Handle PRFM instruction.
10089 (aarch64_process_record_test): New function.
10090
33877125
YQ
100912017-03-23 Yao Qi <yao.qi@linaro.org>
10092
10093 * aarch64-tdep.c (aarch64_record_load_store): Fix code
10094 indentation.
10095
a0eef940
YQ
100962017-03-23 Yao Qi <yao.qi@linaro.org>
10097
10098 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
10099
3f2a3564
PR
101002017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10101
10102 python/python.c (do_start_initialization): Fix memory leak.
10103
b67aeab0
SM
101042017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10105
10106 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
10107 using get_ptrace_pid.
10108 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
10109 inferior_ptid.
10110 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
10111 inferior_ptid instead of pid.
10112
ffdbe864
YQ
101132017-03-22 Yao Qi <yao.qi@linaro.org>
10114
10115 * aarch64-tdep.c: Wrap locally used classes in anonymous
10116 namespace.
10117 * arm-tdep.c: Likewise.
10118 * linespec.c: Likewise.
10119 * ui-out.c: Likewise.
10120
9d736fbf
JG
101212017-03-22 Jonah Graham <jonah@kichwacoders.com>
10122
10123 PR gdb/19637
10124 * python/lib/gdb/printer/bound_registers.py: Import sys.
10125
3de88e9a
SM
101262017-03-21 Simon Marchi <simon.marchi@ericsson.com>
10127
10128 * windows-nat.c (do_windows_fetch_inferior_registers): Add
10129 windows_thread_info parameter and use it instead of
10130 current_thread.
10131 (windows_fetch_inferior_registers): Don't set current_thread,
10132 pass the thread to do_windows_fetch_inferior_registers. Use
10133 ptid from regcache instead of inferior_ptid.
10134 (do_windows_store_inferior_registers): Add windows_thread_info
10135 parameter and use it instead of current_thread.
10136 (windows_store_inferior_registers): Don't set current_thread,
10137 pass the thread to do_windows_store_inferior_registers. Use
10138 ptid from regcache instead of inferior_ptid.
10139
0e7b8f61
SM
101402017-03-21 Simon Marchi <simon.marchi@ericsson.com>
10141
10142 * ser-mingw.c (ser_windows_raw): Remove reference to
10143 struct serial::current_timeout.
10144
5badf10a
IR
101452017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
10146
10147 PR tdep/20928
10148 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
10149 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
10150 (sparc64_fsr_type): Fix %fsr decoding.
10151
cee59b3f
TW
101522017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
10153
10154 * python/py-record-btrace.c (btpy_insn_data): Change return type
10155 for Python 2.
10156
639a9038
SM
101572017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
10158
10159 * spu-linux-nat.c (spu_fetch_inferior_registers,
10160 spu_store_inferior_registers): Use ptid from regcache, set and
10161 restore inferior_ptid.
10162 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
10163 Likewise.
10164
bcc0c096
SM
101652017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
10166
10167 * i386-linux-nat.c (fetch_register, store_register,
10168 i386_linux_fetch_inferior_registers,
10169 i386_linux_store_inferior_registers): Use ptid from regcache.
10170 * ia64-linux-nat.c (ia64_linux_fetch_register,
10171 ia64_linux_store_register): Likewise.
10172 * inf-ptrace.c (inf_ptrace_fetch_register,
10173 inf_ptrace_store_register): Likewise.
10174 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
10175 m32r_linux_store_inferior_registers): Likewise.
10176 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
10177 m68kbsd_store_inferior_registers): Likewise.
10178 * m68k-linux-nat.c (fetch_register, store_register,
10179 m68k_linux_fetch_inferior_registers,
10180 m68k_linux_store_inferior_registers): Likewise.
10181 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
10182 m88kbsd_store_inferior_registers): Likewise.
10183 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
10184 mips_fbsd_store_inferior_registers): Likewise.
10185 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
10186 mips64_linux_regsets_store_registers): Likewise.
10187 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
10188 mipsnbsd_store_inferior_registers): Likewise.
10189 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
10190 mips64obsd_store_inferior_registers): Likewise.
10191 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
10192 Likewise.
10193 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
10194 ppcfbsd_store_inferior_registers): Likewise.
10195 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
10196 ppc_linux_store_inferior_registers): Likewise.
10197 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
10198 ppcnbsd_store_inferior_registers): Likewise.
10199 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
10200 ppcobsd_store_registers): Likewise.
10201 * procfs.c (procfs_fetch_registers, procfs_store_registers):
10202 Likewise.
10203 * ravenscar-thread.c (ravenscar_fetch_registers,
10204 ravenscar_store_registers, ravenscar_prepare_to_store):
10205 Likewise.
10206 * record-btrace.c (record_btrace_fetch_registers,
10207 record_btrace_store_registers, record_btrace_prepare_to_store):
10208 Likewise.
10209 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
10210 Lookup inferior using ptid from regcache, instead of
10211 current_inferior.
10212 * remote.c (remote_fetch_registers, remote_store_registers): Use
10213 ptid from regcache.
10214 * rs6000-nat.c (fetch_register, store_register): Likewise.
10215 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
10216 s390_linux_store_inferior_registers): Likewise.
10217 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
10218 shnbsd_store_inferior_registers): Likewise.
10219 * sol-thread.c (sol_thread_fetch_registers,
10220 sol_thread_store_registers): Likewise.
10221 * sparc-nat.c (sparc_fetch_inferior_registers,
10222 sparc_store_inferior_registers): Likewise.
10223 * tilegx-linux-nat.c (fetch_inferior_registers,
10224 store_inferior_registers): Likewise.
10225 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
10226 vaxbsd_store_inferior_registers): Likewise.
10227 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
10228 store_xtregs): Likewise.
10229
c0f55cc6
AV
102302017-03-20 Artemiy Volkov <artemiyv@acm.org>
10231
10232 PR gdb/14441
10233 * NEWS: Mention support for rvalue references in GDB and python.
10234 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
10235 supports both lvalue and rvalue references.
10236
15c0a2a9
AV
102372017-03-20 Artemiy Volkov <artemiyv@acm.org>
10238
10239 PR gdb/14441
10240 * gdbtypes.c (rank_one_type): Implement overloading
10241 resolution rules regarding rvalue references.
10242
aa006118
AV
102432017-03-20 Artemiy Volkov <artemiyv@acm.org>
10244
10245 PR gdb/14441
10246 * aarch64-tdep.c (aarch64_type_align)
10247 (aarch64_extract_return_value, aarch64_store_return_value): Change
10248 lvalue reference type checks to general reference type checks.
10249 * amd64-tdep.c (amd64_classify): Likewise.
10250 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
10251 Likewise.
10252 * arm-tdep.c (arm_type_align, arm_extract_return_value)
10253 (arm_store_return_value): Likewise.
10254 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
10255 * c-typeprint.c (c_print_type): Likewise.
10256 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
10257 (cplus_number_of_children, cplus_describe_child): Likewise.
10258 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
10259 * completer.c (expression_completer): Likewise.
10260 * cp-support.c (make_symbol_overload_list_adl_namespace):
10261 Likewise.
10262 * darwin-nat-info.c (info_mach_region_command): Likewise.
10263 * dwarf2loc.c (entry_data_value_coerce_ref)
10264 (value_of_dwarf_reg_entry): Likewise.
10265 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
10266 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
10267 Likewise.
10268 * findvar.c (extract_typed_address, store_typed_address):
10269 Likewise.
10270 * gdbtypes.c (rank_one_type): Likewise.
10271 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
10272 * infcall.c (value_arg_coerce): Likewise.
10273 * language.c (pointer_type): Likewise.
10274 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
10275 Likewise.
10276 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
10277 * mn10300-tdep.c (mn10300_type_align): Likewise.
10278 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
10279 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
10280 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
10281 Likewise.
10282 * printcmd.c (print_formatted, x_command): Likewise.
10283 * python/py-type.c (typy_get_composite, typy_template_argument):
10284 Likewise.
10285 * python/py-value.c (valpy_referenced_value)
10286 (valpy_get_dynamic_type, value_has_field): Likewise.
10287 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
10288 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
10289 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
10290 * spu-tdep.c (spu_scalar_value_p): Likewise.
10291 * symtab.c (lookup_symbol_aux): Likewise.
10292 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
10293 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
10294 Likewise.
10295 * valops.c (value_cast_pointers, value_cast)
10296 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
10297 (value_struct_elt, value_struct_elt_bitpos)
10298 (value_find_oload_method_list, find_overload_match)
10299 (value_rtti_indirect_type): Likewise.
10300 * valprint.c (val_print_scalar_type_p, generic_val_print):
10301 Likewise.
10302 * value.c (value_actual_type, value_as_address, unpack_long)
10303 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
10304 (coerce_ref): Likewise.
10305 * varobj.c (varobj_get_value_type): Likewise.
10306
3fcf899d
AV
103072017-03-20 Artemiy Volkov <artemiyv@acm.org>
10308
10309 PR gdb/14441
10310 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
10311 table of constants.
10312 * python/lib/gdb/command/explore.py: Support exploring values
10313 of rvalue reference types.
10314 * python/lib/gdb/types.py: Implement get_basic_type() for
10315 rvalue reference types.
10316 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
10317 constant.
10318 * python/py-value.c (valpy_getitem): Add an rvalue reference
10319 check.
10320 (valpy_reference_value): Add new parameter "refcode".
10321 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
10322 New wrappers for valpy_reference_value().
10323 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
10324 (gdbpy_invoke_xmethod): Likewise.
10325
4297a3f0
AV
103262017-03-20 Artemiy Volkov <artemiyv@acm.org>
10327
10328 PR gdb/14441
10329 * dwarf2read.c (process_die, read_type_die_1): Handle the
10330 DW_TAG_rvalue_reference_type DIE.
10331 (read_tag_reference_type): Add new parameter "refcode".
10332
e1cb3213
AV
103332017-03-20 Artemiy Volkov <artemiyv@acm.org>
10334
10335 PR gdb/14441
10336 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
10337 (c_type_print_modifier, c_type_print_varspec_suffix)
10338 (c_type_print_base): Support printing rvalue reference types.
10339 * c-valprint.c (c_val_print, c_value_print): Support printing
10340 rvalue reference values.
10341
e4347c89
AV
103422017-03-20 Artemiy Volkov <artemiyv@acm.org>
10343
10344 PR gdb/14441
10345 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
10346 typename.
10347 * cp-support.c (replace_typedefs): Handle
10348 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
10349 * python/py-type.c (typy_lookup_type): Likewise.
10350
53cc15f5
AV
103512017-03-20 Artemiy Volkov <artemiyv@acm.org>
10352
10353 PR gdb/14441
10354 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
10355 * parse.c (insert_type): Change assert statement.
10356 (follow_types): Handle rvalue reference types.
10357 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
10358 constant.
10359
a65cfae5
AV
103602017-03-20 Artemiy Volkov <artemiyv@acm.org>
10361
10362 PR gdb/14441
10363 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
10364 value_ref() interface.
10365 * c-valprint.c (c_value_print): Likewise.
10366 * infcall.c (value_arg_coerce): Likewise.
10367 * python/py-value.c (valpy_reference_value): Likewise.
10368 * valops.c (value_cast, value_reinterpret_cast)
10369 (value_dynamic_cast, typecmp): Likewise.
10370 (value_ref): Parameterize by kind of return value reference type.
10371 * value.h (value_ref): Add new parameter "refcode".
10372
3b224330
AV
103732017-03-20 Artemiy Volkov <artemiyv@acm.org>
10374
10375 PR gdb/14441
10376 * dwarf2read.c (read_tag_reference_type): Use
10377 lookup_lvalue_reference_type() instead of lookup_reference_type().
10378 * eval.c (evaluate_subexp_standard): Likewise.
10379 * f-exp.y: Likewise.
10380 * gdbtypes.c (make_reference_type, lookup_reference_type):
10381 Generalize with rvalue reference types.
10382 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
10383 convenience wrappers for lookup_reference_type().
10384 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
10385 reference kind parameter.
10386 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
10387 wrappers for lookup_reference_type().
10388 * guile/scm-type.c (gdbscm_type_reference): Use
10389 lookup_lvalue_reference_type() instead of lookup_reference_type().
10390 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
10391 * parse.c (follow_types): Likewise.
10392 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
10393 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
10394 Likewise.
10395 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
10396 (gdbpy_invoke_xmethod): Likewise.
10397 * stabsread.c: Provide extra argument to make_reference_type()
10398 call.
10399 * valops.c (value_ref, value_rtti_indirect_type): Use
10400 lookup_lvalue_reference_type() instead of lookup_reference_type().
10401
f9aeb8d4
AV
104022017-03-20 Artemiy Volkov <artemiyv@acm.org>
10403
10404 PR gdb/14441
10405 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
10406 (TYPE_IS_REFERENCE): New macro.
10407 (struct type): Add rvalue_reference_type field.
10408 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
10409
51457a05
MAL
104102017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10411
10412 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
10413 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
10414 New function definition.
10415 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
10416 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
10417 New function declaration.
10418 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
10419 * mi/mi-interp.h: New file.
10420 * solib.c (info_sharedlibrary_command): Replace for loop with
10421 ALL_SO_LIBS macro
10422 * solib.h (update_solib_list): New function declaration.
10423 (so_list_head): Move macro.
10424 * solist.h (ALL_SO_LIBS): New macro.
10425
e696b3ad
MAL
104262017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10427
10428 * infcmd.c (post_create_inferior): Remove unused argument in
10429 call to solib_add.
10430 * remote.c (remote_start_remote): Likewise.
10431 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
10432 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
10433 (enable_break): Likewise.
10434 * solib.c (update_solib_list): Remove unused target argument
10435 and its documentation.
10436 (solib_add): Remove unused target argument. Remove unused
10437 argument in call to update_solib_list.
10438 (info_sharedlibrary_command): Remove unused argument in call
10439 to update_solib_list.
10440 (sharedlibrary_command): Remove unused argument in call to
10441 solib_add.
10442 (handle_solib_event): Likewise.
10443 (reload_shared_libraries): Likewise.
10444 * solib.h (solib_add): Remove unused target argument.
10445
dcb84eda
AA
104462017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
10447
10448 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
10449 (s390_displaced_step_fixup): Cover relative branches with the
10450 default fixup handling. This fixes lack of support for some
10451 relative branch instructions.
10452
d9cb6cdc
SM
104532017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10454
10455 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
10456 ptid from regcache.
10457
1afaf9f4
SM
104582017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10459
10460 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
10461 i386_darwin_store_inferior_registers): Use ptid from regcache.
10462
aac12e24
SM
104632017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10464
10465 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
10466 i386bsd_store_inferior_registers): Use ptid from regcache.
10467
bbe1eef1
SM
104682017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10469
10470 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
10471 hppaobsd_store_registers): Use ptid from regcache.
10472
10799020
SM
104732017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10474
10475 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
10476 hppanbsd_store_registers): Use ptid from regcache.
10477
00204cf7
SM
104782017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10479
10480 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
10481 from regcache. Use get_ptrace_pid.
10482
11a33714
SM
104832017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10484
10485 * corelow.c (get_core_register_section): Use ptid from regcache,
10486 update doc.
10487
317cd492
SM
104882017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10489
10490 * bsd-uthread.c (bsd_uthread_fetch_registers,
10491 bsd_uthread_store_registers): Use ptid from regcache, set and
10492 restore inferior_ptid.
10493
9ac8a7c2
SM
104942017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10495
10496 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
10497 fetch_fp_regs, store_register, store_regs, store_fp_register,
10498 store_fp_regs): Use ptid from regcache.
10499
4ac4bb6a
SM
105002017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10501
10502 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
10503 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
10504 store_vfp_regs): Use ptid from regcache.
10505
9bcbdca8
PA
105062017-03-17 Pedro Alves <palves@redhat.com>
10507
10508 PR remote/21188
10509 * ser-base.c (ser_base_wait_for): Add comment.
10510 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
10511 version.
10512 * ser-unix.c (hardwire_raw): Remove reference to
10513 scb->current_timeout.
10514 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
10515 (hardwire_ops): Install ser_base_readchar instead of
10516 hardwire_readchar.
10517 * serial.h (struct serial) <current_timeout, timeout_remaining>:
10518 Remove fields.
10519
7503099f
JG
105202017-03-17 Jonah Graham <jonah@kichwacoders.com>
10521
10522 PR gdb/19637
10523 * python/lib/gdb/printer/bound_registers.py: Add support for
10524 Python 3.
10525
7942e96e
AA
105262017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
10527
10528 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
10529 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
10530 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
10531 byte_offset to subobj_byte_offset. Fix the handling of
10532 DWARF_VALUE_STACK on big-endian targets when coming via an
10533 implicit pointer.
10534 (dwarf2_evaluate_loc_desc): Adjust call to
10535 dwarf2_evaluate_loc_desc_full.
10536 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
10537 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
10538
ba14f379
YQ
105392017-03-16 Yao Qi <yao.qi@linaro.org>
10540
10541 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
10542 and REVSH instructions.
10543
b121eeb9
YQ
105442017-03-16 Yao Qi <yao.qi@linaro.org>
10545
10546 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
10547 (arm_record_test): Declare.
10548 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
10549 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
10550 align with the manual.
10551 (thumb_record_misc): Adjust the code order to align with the
10552 manual.
10553 (thumb2_record_decode_insn_handler): Fix instruction matching.
10554 (instruction_reader_thumb): New class.
10555 (arm_record_test): New function.
10556
728a7913
YQ
105572017-03-16 Yao Qi <yao.qi@linaro.org>
10558
10559 * arm-tdep.c (abstract_memory_reader): New class.
10560 (instruction_reader): New class.
10561 (extract_arm_insn): Add argument 'reader'. Callers updated.
10562 (decode_insn): Likewise.
10563
34b43320
DE
105642017-03-16 Doug Evans <dje@google.com>
10565
a7c0469f
DE
10566 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
10567 member. Change type of TYPE member to SCM. All uses updated.
10568 (lsscm_make_lazy_string_smob): Add assert.
10569 (lsscm_make_lazy_string): Flag bad length values.
10570 (lsscm_elt_type): New function.
10571 (gdbscm_lazy_string_to_value): Rewrite to use
10572 lsscm_safe_lazy_string_to_value.
10573 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
10574 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
10575 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
10576 in incoming type.
10577 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
10578 * guile/scm-type.c (tyscm_scm_to_type): New function.
10579
105802017-03-15 Doug Evans <dje@google.com>
10581
34b43320
DE
10582 PR python/17728, python/18439, python/18779
10583 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
10584 member. Change type of TYPE member to PyObject *. All uses updated.
10585 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
10586 (gdbpy_create_lazy_string_object): Flag bad length values.
10587 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
10588 Handle typedefs in incoming type.
10589 (stpy_lazy_string_elt_type): New function.
10590 (gdbpy_extract_lazy_string): Call it.
10591 * python/py-value.c (valpy_lazy_string): Flag bad length values.
10592 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
10593 typedefs in incoming type.
10594
a3a5fecc
DE
105952017-03-16 Doug Evans <dje@google.com>
10596
10597 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
10598 * guile/scm-type.c (tyscm_scm_to_type): New function.
10599
28f1c605
JW
106002017-03-16 Jiong Wang <jiong.wang@arm.com>
10601
10602 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
10603 "ULONGEST" for "skip".
10604
87c336f6
AA
106052017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
10606
10607 PR gdb/21220
10608 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
10609 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
10610 (inf_ptrace_peek_poke): ...here. New function. Now also loop
10611 over ptrace peek/poke until end of buffer or error.
10612
cf81cf60
SM
106132017-03-14 Simon Marchi <simon.marchi@ericsson.com>
10614
10615 * parse.c (length_of_subexp): Make static.
10616 * parser-defs.h (length_of_subexp): Remove.
10617
a379284a
AA
106182017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
10619
10620 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
10621 as well.
10622
8a6200ba
PA
106232017-03-14 Pedro Alves <palves@redhat.com>
10624
10625 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
10626 (main): Use std::unique_ptr. Remove calls to
10627 cp_demangled_name_parse_free.
10628
f79ec206
SM
106292017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10630
10631 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
10632 alphabsd_store_inferior_registers): Use regcache->ptid instead
10633 of inferior_ptid.
10634
edb5fb00
SM
106352017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10636
10637 * aix-thread.c (aix_thread_fetch_registers,
10638 aix_thread_store_registers): Use regcache->ptid instead of
10639 inferior_ptid.
10640
55119686
SM
106412017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10642
10643 * aarch64-linux-nat.c (fetch_gregs_from_thread,
10644 store_gregs_to_thread, fetch_fpregs_from_thread,
10645 store_fpregs_to_thread): Use regcache->ptid instead of
10646 inferior_ptid.
10647
6a06fbb7
SM
106482017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10649
10650 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
10651 amd64_linux_fetch_inferior_registers): Use regcache->ptid
10652 instead of inferior_ptid.
10653
c6386875
SM
106542017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10655
10656 * target.c (target_fetch_registers, target_store_registers): Add
10657 assert.
10658
ddaaf0fb
SM
106592017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10660
10661 * regcache.h (regcache_get_ptid): New function.
10662 * regcache.c (regcache_get_ptid): New function.
10663
b9da89d1 106642017-03-13 Mark Wielaard <mark@klomp.org>
10665
10666 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
10667
5f4d1085
KS
106682017-03-10 Keith Seitz <keiths@redhat.com>
10669
10670 PR c++/8218
10671 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
10672
c65d6b55
PA
106732017-03-08 Pedro Alves <palves@redhat.com>
10674
10675 PR gdb/18360
10676 * infrun.c (start_step_over, do_target_resume, resume)
10677 (restart_threads): Assert we're not resuming a thread that is
10678 meant to be stopped.
10679 (infrun_thread_stop_requested_callback): Delete.
10680 (infrun_thread_stop_requested): If the thread is internally
10681 stopped, queue a pending stop event and clear the thread's
10682 inline-frame state.
10683 (handle_stop_requested): New function.
10684 (handle_syscall_event, handle_inferior_event_1): Use
10685 handle_stop_requested.
10686 (handle_stop_requested): New function.
10687 (handle_signal_stop): Set the thread's stop_signal here instead of
10688 at caller.
10689 (finish_step_over): Clear step over info unconditionally.
10690 (handle_signal_stop): If the user had interrupted the event
10691 thread, consider the stop a random signal.
10692 (handle_signal_stop) <signal arrived while stepping over
10693 breakpoint>: Don't restart threads here.
10694 (stop_waiting): Don't clear step-over info here.
10695
15c22686
PA
106962017-03-08 Pedro Alves <palves@redhat.com>
10697
10698 PR 21206
10699 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
10700 goes to argument 2, not 1.
10701
6e5d74e7
PA
107022017-03-08 Pedro Alves <palves@redhat.com>
10703
10704 PR cli/21218
10705 * top.c (gdb_readline_wrapper): Avoid passing NULL to
10706 display_gdb_prompt.
10707 (command_line_input): Add comment.
10708
9753a2f6
PA
107092017-03-08 Pedro Alves <palves@redhat.com>
10710
10711 PR tui/21216
10712 * tui/tui-file.c (tui_file::write): New.
10713 * tui/tui-file.h (tui_file): Override "write".
10714 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
10715 factored out from ...
10716 (tui_puts): ... here.
10717 (tui_putc): Use them.
10718 (tui_write): New function.
10719 * tui/tui-io.h (tui_write): Declare.
10720
1672e0d9
SDJ
107212017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
10722
10723 * Makefile.in (SFILES): Replace "environ.c" with
10724 "common/environ.c".
10725 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
10726 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
10727 to...
10728 * common/environ.c: ... here.
10729 * environ.h: Moved to...
10730 * common/environ.h: ... here.
10731
f7bb4e3a
PB
107322017-03-07 Peter Bergner <bergner@vnet.ibm.com>
10733
10734 * gdbarch.sh (pstring_ptr): New static function.
10735 (gdbarch_disassembler_options): Use it.
10736 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
10737 not valid_disassembler_option->name.
10738 * gdbarch.c: Regenerate.
10739
e45ced6c
PB
107402017-03-07 Peter Bergner <bergner@vnet.ibm.com>
10741
10742 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
10743
5f6fd321
PA
107442017-03-07 Pedro Alves <palves@redhat.com>
10745
10746 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
10747
6dbb839a 107482017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
10749
10750 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
10751 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
10752 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 10753 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 10754
d274ecf4
SM
107552017-03-06 Simon Marchi <simon.marchi@ericsson.com>
10756
10757 * xtensa-linux-nat.c (fetch_gregs): Remove const.
10758
df97be55
SM
107592017-03-03 Simon Marchi <simon.marchi@ericsson.com>
10760
10761 * remote.c (remote_add_target_side_commands): Use range-based
10762 for loop.
10763
7d45f3df
YQ
107642017-03-03 Yao Qi <yao.qi@linaro.org>
10765
10766 PR gdb/21165
10767 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
10768 value is lazy.
10769 * valprint.c (common_val_print): Likewise.
10770
65b48a81
PB
107712017-02-28 Peter Bergner <bergner@vnet.ibm.com>
10772
10773 * NEWS: Mention new set/show disassembler-options commands.
10774 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
10775 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
10776 (prospective_options): New static variable.
10777 (gdb_disassembler::gdb_disassembler): Initialize
10778 m_di.disassembler_options.
10779 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
10780 (get_disassembler_options): New function.
10781 (set_disassembler_options): Likewise.
10782 (set_disassembler_options_sfunc): Likewise.
10783 (show_disassembler_options_sfunc): Likewise.
10784 (disassembler_options_completer): Likewise.
10785 (_initialize_disasm): Likewise.
10786 * disasm.h (get_disassembler_options): New prototype.
10787 (set_disassembler_options): Likewise.
10788 * gdbarch.sh (gdbarch_disassembler_options): New variable.
10789 (gdbarch_verify_disassembler_options): Likewise.
10790 * gdbarch.c: Regenerate.
10791 * gdbarch.h: Likewise.
10792 * arm-tdep.c (num_disassembly_options): Delete.
10793 (set_disassembly_style): Likewise.
10794 (arm_disassembler_options): New static variable.
10795 (set_disassembly_style_sfunc): Convert short style name into long
10796 option name. Call set_disassembler_options.
10797 (show_disassembly_style_sfunc): New function.
10798 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
10799 set_gdbarch_verify_disassembler_options.
10800 (_initialize_arm_tdep): Delete regnames variable and update callers.
10801 (arm_disassembler_options): Initialize.
10802 (disasm_options): New variable.
10803 (num_disassembly_options): Rename from this...
10804 (num_disassembly_styles): ...to this. Compute by scanning through
10805 disasm_options.
10806 (valid_disassembly_styles): Initialize using disasm_options.
10807 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
10808 set_arm_regname_option.
10809 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
10810 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
10811 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
10812 set_gdbarch_verify_disassembler_options.
10813 * s390-tdep.c (s390_disassembler_options): New static variable.
10814 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
10815 set_gdbarch_verify_disassembler_options.
10816
d538e36d
SM
108172017-02-27 Simon Marchi <simon.marchi@ericsson.com>
10818
10819 * remote.c (remote_add_target_side_condition): Remove "struct"
10820 keyword from range-based for loop.
10821
83621223
SM
108222017-02-27 Simon Marchi <simon.marchi@ericsson.com>
10823
10824 * remote.c (remote_add_target_side_condition): Use range-based
10825 for loop. Update comment.
10826
2123df0e
YQ
108272017-02-27 Yao Qi <yao.qi@linaro.org>
10828
10829 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
10830
8e368124
AH
108312017-02-26 Alan Hayward <alan.hayward@arm.com>
10832
10833 * regcache.c (regcache_raw_update): New function.
10834 (regcache_raw_read): Move code to regcache_raw_update.
10835 * regcache.h (regcache_raw_update): New declaration.
10836 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
10837
a49dd8dd
JK
108382017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10839
10840 * dwarf2read.c (create_debug_type_hash_table): Initialize
10841 header.signature and header.type_offset_in_tu.
10842
34e4bae9
PA
108432017-02-24 Pedro Alves <palves@redhat.com>
10844
10845 * symtab.c (make_file_symbol_completion_list_1): Use
10846 add_symtab_completions.
10847
b0e4b369
AH
108482017-02-24 Alan Hayward <alan.hayward@arm.com>
10849
10850 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
10851
975c21ab
AH
108522017-02-24 Alan Hayward <alan.hayward@arm.com>
10853
10854 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
10855 I386_MAX_REGISTER_SIZE.
10856 (i386_pseudo_register_write): Likewise.
10857 (i386_process_record): Likewise.
10858 * i387-tdep.c (i387_supply_xsave): Likewise.
10859 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
10860 (store_register): Likewise.
10861
14bc53a8
PA
108622017-02-23 Pedro Alves <palves@redhat.com>
10863
10864 * ada-lang.c: Include "common/function-view.h".
10865 (ada_iterate_over_symbols): Adjust to use function_view as
10866 callback type.
10867 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
10868 (ada_make_symbol_completion_list): Use a lambda.
10869 (ada_exc_search_name_matches): Delete.
10870 (name_matches_regex): New.
10871 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
10872 * compile/compile-c-support.c: Include "common/function-view.h".
10873 (print_one_macro): Change prototype to accept a ui_file pointer.
10874 (write_macro_definitions): Use a lambda.
10875 * dwarf2read.c: Include "common/function-view.h".
10876 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10877 (dw2_expand_symtabs_matching): Adjust to use function_view as
10878 callback type.
10879 * language.h: Include "common/function-view.h".
10880 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
10881 function_view as callback type.
10882 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
10883 * linespec.c: Include "common/function-view.h".
10884 (collect_info::add_symbol): New method.
10885 (struct symbol_and_data_callback, iterate_inline_only, struct
10886 symbol_matcher_data, iterate_name_matcher): Delete.
10887 (iterate_over_all_matching_symtabs): Adjust to use function_view
10888 as callback type and lambdas.
10889 (iterate_over_file_blocks): Adjust to use function_view as
10890 callback type.
10891 (decode_compound_collector): Now a class with private fields.
10892 (decode_compound_collector::release_symbols): New method.
10893 (collect_one_symbol): Rename to...
10894 (decode_compound_collector::operator()): ... this and adjust.
10895 (lookup_prefix_sym): decode_compound_collector construction bits
10896 move to decode_compound_collector ctor. Pass the
10897 decode_compound_collector object directly as callback. Remove
10898 cleanups and use decode_compound_collector::release_symbols
10899 instead.
10900 (symtab_collector): Now a class with private fields.
10901 (symtab_collector::release_symtabs): New method.
10902 (add_symtabs_to_list): Rename to...
10903 (symtab_collector::operator()): ... this and adjust.
10904 (collect_symtabs_from_filename): symtab_collector construction
10905 bits move to symtab_collector ctor. Pass the symtab_collector
10906 object directly as callback. Remove cleanups and use
10907 symtab_collector::release_symtabs instead.
10908 (collect_symbols): Delete.
10909 (add_matching_symbols_to_info): Use lambdas.
10910 * macrocmd.c (print_macro_callback): Delete.
10911 (info_macro_command): Use a lambda.
10912 (info_macros_command): Pass print_macro_definition as callable
10913 directly.
10914 (print_one_macro): Remove 'ignore' parameter.
10915 (macro_list_command): Adjust.
10916 * macrotab.c (macro_for_each_data::fn): Now a function_view.
10917 (macro_for_each_data::user_data): Delete field.
10918 (foreach_macro): Adjust to call the function_view.
10919 (macro_for_each): Adjust to use function_view as callback type.
10920 (foreach_macro_in_scope): Adjust to call the function_view.
10921 (macro_for_each_in_scope): Adjust to use function_view as callback
10922 type.
10923 * macrotab.h: Include "common/function-view.h".
10924 (macro_callback_fn): Declare a prototype instead of a pointer.
10925 Remove "user_data" parameter.
10926 (macro_for_each, macro_for_each_in_scope): Adjust to use
10927 function_view as callback type.
10928 * psymtab.c (partial_map_expand_apply)
10929 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
10930 Adjust to use function_view as callback type and to return bool.
10931 (psym_expand_symtabs_matching): Adjust to use function_view as
10932 callback types.
10933 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
10934 to use function_view as callback type and to return bool.
10935 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
10936 callback types.
10937 * symfile.c (expand_symtabs_matching): Adjust to use function_view
10938 as callback types.
10939 * symfile.h: Include "common/function-view.h".
10940 (expand_symtabs_file_matcher_ftype)
10941 (expand_symtabs_symbol_matcher_ftype)
10942 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
10943 return bool.
10944 (quick_symbol_functions::map_symtabs_matching_filename)
10945 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
10946 function_view as callback type and return bool.
10947 (expand_symtabs_matching): Adjust to use function_view as callback
10948 type.
10949 (maintenance_expand_name_matcher)
10950 (maintenance_expand_file_matcher): Delete.
10951 (maintenance_expand_symtabs): Use lambdas.
10952 * symtab.c (iterate_over_some_symtabs): Adjust to use
10953 function_view as callback types and return bool.
10954 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
10955 of a cleanup.
10956 (lookup_symtab_callback): Delete.
10957 (lookup_symtab): Use a lambda.
10958 (iterate_over_symbols): Adjust to use function_view as callback
10959 type.
10960 (struct search_symbols_data, search_symbols_file_matches)
10961 (search_symbols_name_matches): Delete.
10962 (search_symbols): Use a pair of lambdas.
10963 (struct add_name_data, add_macro_name, symbol_completion_matcher)
10964 (symtab_expansion_callback): Delete.
10965 (default_make_symbol_completion_list_break_on_1): Use lambdas.
10966 * symtab.h: Include "common/function-view.h".
10967 (iterate_over_some_symtabs): Adjust to use function_view as
10968 callback type and return bool.
10969 (iterate_over_symtabs): Adjust to use function_view as callback
10970 type.
10971 (symbol_found_callback_ftype): Remove 'data' parameter and return
10972 bool.
10973 (iterate_over_symbols): Adjust to use function_view as callback
10974 type.
10975
07e253aa
PA
109762017-02-23 Pedro Alves <palves@redhat.com>
10977
10978 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
10979 (%.o) <unittests/%.c>: New pattern.
10980 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
10981 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
10982 * common/function-view.h: New file.
10983 * unittests/function-view-selftests.c: New file.
10984 * configure: Regenerate.
10985
8eaf5320
SM
109862017-02-23 Simon Marchi <simon.marchi@ericsson.com>
10987
10988 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
10989 inferior_ptid.
10990 * go32-nat.c (go32_thread_alive): Likewise.
10991
38768751
YQ
109922017-02-23 Yao Qi <yao.qi@linaro.org>
10993
10994 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
10995 delete.
10996
0a8beaba
YQ
109972017-02-23 Yao Qi <yao.qi@linaro.org>
10998
10999 * varobj.c (varobj_clear_saved_item): Use delete instead of
11000 xfree.
11001 (update_dynamic_varobj_children): Likewise.
11002
58fdfd2c
JK
110032017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11004
11005 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
11006
1b90b139
SM
110072017-02-21 Simon Marchi <simon.marchi@ericsson.com>
11008
11009 * common/enum-flags.h (enum_flags::enum_flags): Initialize
11010 m_enum_value to 0 in default constructor.
11011
2039d74e
EBM
110122017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11013
11014 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
11015 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
11016 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
11017 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
11018 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
11019 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
11020 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
11021 IS_STORE_CONDITIONAL_INSN.
11022
7814882a
JK
110232017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11024
11025 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
11026
0ae60b63
JK
110272017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11028
11029 * NEWS (Changes since GDB 7.12): Add DWARF-5.
11030
0224619f
JK
110312017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11032
11033 * dwarf2read.c (skip_one_die, read_attribute_value)
11034 (dwarf2_const_value_attr, dump_die_shallow)
11035 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
11036 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
11037
0af92d60
JK
110382017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11039
11040 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
11041 (dwarf_parse_macro_header): Accept DWARF version 5.
11042 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
11043
216f72a1
JK
110442017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11045
11046 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
11047 DW_AT_GNU_*.
11048 * common/common-exceptions.h (enum errors): Likewise.
11049 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
11050 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
11051 (dwarf_expr_context::execute_stack_op): Likewise.
11052 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
11053 Likewise.
11054 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
11055 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11056 (show_entry_values_debug, call_site_to_target_addr)
11057 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
11058 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
11059 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
11060 (value_of_dwarf_block_entry, indirect_pieced_value)
11061 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
11062 (disassemble_dwarf_expression): Likewise.
11063 * dwarf2read.c (process_die, inherit_abstract_dies)
11064 (read_call_site_scope): Likewise.
11065 * gdbtypes.h (struct func_type, struct call_site_parameter)
11066 (struct call_site): Likewise.
11067 * stack.c (read_frame_arg): Likewise.
11068 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
11069
43988095
JK
110702017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11071
11072 * defs.h (read_unsigned_leb128): New declaration.
11073 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
11074 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
11075 (dwarf2_find_location_expression): Call also
11076 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
11077 * dwarf2loc.h (dwarf2_version): New declaration.
11078 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
11079 rnglists.
11080 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
11081 .debug_rnglists.
11082 (struct dwop_section_names): Add loclists_dwo.
11083 (dwop_section_names): Add .debug_loclists.dwo.
11084 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
11085 (struct dwarf2_per_cu_data): Add dwarf_version.
11086 (struct dwo_sections): Add loclists.
11087 (struct attr_abbrev): Add implicit_const.
11088 (read_indirect_line_string): New declaration.
11089 (read_unsigned_leb128): Delete declaration.
11090 (rcuh_kind): New definition.
11091 (read_and_check_comp_unit_head): Change parameter
11092 is_debug_types_section to section_kind.
11093 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
11094 (read_comp_unit_head): Change parameter abfd to section, add parameter
11095 section_kind. Handle DWARF-5.
11096 (error_check_comp_unit_head): Accept also DWARF version 5.
11097 (read_and_check_comp_unit_head): Change parameter
11098 is_debug_types_section to section_kind.
11099 (read_and_check_type_unit_head): Delete function.
11100 (read_abbrev_offset): Handle DWARF-5.
11101 (create_debug_type_hash_table): Add parameter section_kind. Process
11102 only DW_UT_type. Use signature and type_offset_in_tu from struct
11103 comp_unit_head.
11104 (create_debug_types_hash_table): Update create_debug_type_hash_table
11105 caller.
11106 (create_all_type_units): Call create_debug_type_hash_table.
11107 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
11108 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
11109 caller.
11110 (skip_one_die): Handle DW_FORM_implicit_const.
11111 (dwarf2_rnglists_process): New function.
11112 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
11113 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
11114 (read_attribute_value): Handle DW_FORM_implicit_const,
11115 DW_FORM_line_strp.
11116 (read_attribute): Handle DW_FORM_implicit_const.
11117 (read_indirect_string_at_offset_from): New function from
11118 read_indirect_string_at_offset.
11119 (read_indirect_string_at_offset): Call
11120 read_indirect_string_at_offset_from.
11121 (read_indirect_line_string_at_offset): New function.
11122 (read_indirect_string): New function comment.
11123 (read_indirect_line_string): New function.
11124 (read_unsigned_leb128): Make it global.
11125 (dwarf2_string_attr): Handle DWARF-5.
11126 (add_include_dir_stub, read_formatted_entries): New functions.
11127 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
11128 Handle DWARF-5.
11129 (per_cu_header_read_in): Update read_comp_unit_head caller.
11130 (dwarf2_version): New function.
11131 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
11132 rnglists.
11133 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
11134 fields.
11135
22d2f3ab
JK
111362017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11137
11138 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
11139
5f46c5a5
JK
111402017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11141
11142 * dwarf2read.c (dwarf2_ranges_process): New function from
11143 dwarf2_ranges_read.
11144 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
11145 dwarf2_ranges_process.
11146
78d4d2c5
JK
111472017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11148
11149 * dwarf2read.c (create_debug_type_hash_table): New function from
11150 create_debug_types_hash_table.
11151 (create_debug_types_hash_table): Call create_debug_type_hash_table.
11152 (create_all_type_units, open_and_init_dwo_file): Update
11153 create_debug_types_hash_table callers.
11154
1b076f25
SDJ
111552017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11156
11157 PR gdb/16188
11158 * fork-child.c (trace_start_error): Fix thinko. va_end should
11159 refer to 'ap', not 'args'.
11160
0db8980c
SDJ
111612017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11162 Pedro Alves <palves@redhat.com>
11163
11164 PR gdb/16188
11165 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
11166 calls succeeded.
11167 * fork-child.c (trace_start_error): New function.
11168 (trace_start_error_with_name): Likewise.
11169 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
11170 * inf-ptrace.c (inf_ptrace_me): Likewise.
11171 * inferior.h (trace_start_error): New prototype.
11172 (trace_start_error_with_name): Likewise.
11173
99e8a4f9
SDJ
111742017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
11175
11176 PR gdb/21164
11177 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
11178 NULL before using it.
11179 * symmisc.c (maintenance_print_symbols): Likewise.
11180 (maintenance_print_msymbols): Likewise.
11181
4e746bb6
TW
111822017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
11183
11184 * NEWS: Add record Python bindings entry.
11185
111862017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
11187
11188 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
11189 py-record-full.o.
11190 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
11191 * python/py-record-btrace.c, python/py-record-btrace.h,
11192 python/py-record-full.c, python/py-record-full.h: New file.
11193 * python/py-record.c: Add include for py-record-btrace.h and
11194 py-record-full.h.
11195 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
11196 recpy_instruction_history, recpy_function_call_history, recpy_begin,
11197 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
11198 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
11199 New definition.
11200 (gdbpy_initialize_btrace): New export.
11201 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
11202
112032017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
11204
11205 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
11206 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
11207 * python/py-record.c: New file.
11208 * python/python-internal.h (gdbpy_start_recording,
11209 gdbpy_current_recording, gdpy_stop_recording,
11210 gdbpy_initialize_record): New export.
11211 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
11212 (python_GdbMethods): Add gdbpy_start_recording,
11213 gdbpy_current_recording and gdbpy_stop_recording.
11214
112152017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
11216
11217 * record-btrace.c (record_btrace_record_method): New function.
11218 (init_record_btrace_ops): Initialize to_record_method.
11219 * record-full.c (record_full_record_method): New function.
11220 (init_record_full_ops, init_record_full_core_ops): Add
11221 record_full_record_method.
11222 * record.h (enum record_method): New enum.
11223 * target-debug.h (target_debug_print_enum_record_method: New define.
11224 * target-delegates.c: Regenerate.
11225 * target.c (target_record_method): New function.
11226 * target.h: Include record.h.
11227 (struct target_ops) <to_record_method>: New field.
11228 (target_record_method): New export.
11229
112302017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
11231
11232 * record.h (record_start, record_stop): New export.
11233 * record.c (record_start, record_stop): New function.
11234
112352017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
11236
11237 * btrace.c (btrace_fetch): Copy function call segments pointer
11238 into a vector.
11239 (btrace_clear): Clear the vector.
11240 (btrace_find_insn_by_number): Use binary search to find the correct
11241 function call segment.
11242 * btrace.h (brace_fun_p): New typedef.
11243 (struct btrace_thread_info) <functions>: New field.
11244
112452017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
11246
11247 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
11248 * btrace.c (btrace_decode_error): ... here. New function.
11249 * btrace.h (btrace_decode_error): New export.
11250
112512017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
11252
11253 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
11254 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
11255 btrace_find_insn_by_number): Remove special case for gaps.
11256 * btrace.h (btrace_insn_get_error): New export.
11257 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
11258 * record-btrace.c (btrace_insn_history): Print number for gaps.
11259 (record_btrace_info, record_btrace_goto): Handle gaps.
11260
3f77c769
TT
112612017-02-14 Tom Tromey <tom@tromey.com>
11262
11263 PR python/13598:
11264 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
11265 event.
11266 * python/py-evts.c (gdbpy_initialize_py_events): Add
11267 before_prompt registry.
11268 * python/py-events.h (events_object) <before_prompt>: New field.
11269
4c2c7ac6
MM
112702017-02-14 Markus Metzger <markus.t.metzger@intel.com>
11271
11272 * btrace.c (ftrace_new_switch): Preserve up link and flags.
11273
5cf30ebf
LM
112742017-02-13 Luis Machado <lgustavo@codesourcery.com>
11275
11276 * symfile (_initialize_symfile): Add usage text to the load command's
11277 help text.
11278
26a06916
SM
112792017-02-10 Simon Marchi <simon.marchi@ericsson.com>
11280
11281 * utils.c (defaulted_query): Don't query on secondary UIs.
11282
0b145e37
TT
112832017-02-10 Tom Tromey <tom@tromey.com>
11284
11285 * rust-lang.c (rust_get_disr_info): Remove unused variable.
11286
2d8365c4
TT
112872017-02-10 Tom Tromey <tom@tromey.com>
11288
11289 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
11290 "cleanup" local.
11291 * python/py-type.c (typy_legacy_template_argument): Remove
11292 unnecessary "cleanup" local.
11293
2bb8f231
TT
112942017-02-10 Tom Tromey <tom@tromey.com>
11295
11296 * python/python.c (do_start_initialization): New function, from
11297 _initialize_python.
11298 (_initialize_python): Call do_start_initialization.
11299 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
11300 goto.
11301
1bdfaf42
TT
113022017-02-10 Tom Tromey <tom@tromey.com>
11303
11304 * python/py-prettyprint.c (pretty_print_one_value): Use
11305 gdbpy_ref.
11306
88b6faea
TT
113072017-02-10 Tom Tromey <tom@tromey.com>
11308
11309 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
11310 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
11311 gdbpy_ref.
11312 * python/py-type.c (field_new): Use gdbpy_ref.
11313 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
11314 gdbpy_ref.
11315 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
11316 (py_free_pspace): Likewise.
11317 (pspace_to_pspace_object): Likewise.
11318 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
11319 (py_free_objfile): Likewise.
11320 (objfile_to_objfile_object): Likewise.
11321 * python/py-inferior.c (delete_thread_object): Use
11322 gdbpy_ref.
11323 (infpy_read_memory): Likewise.
11324 (py_free_inferior): Likewise.
11325 * python/py-evtregistry.c (create_eventregistry_object): Use
11326 gdbpy_ref.
11327 * python/py-event.c (create_event_object): Use gdbpy_ref.
11328
7780f186
TT
113292017-02-10 Tom Tromey <tom@tromey.com>
11330
11331 * python/py-ref.h (gdbpy_ref_policy): Now a template.
11332 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
11333 used.
11334 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
11335 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
11336 python/py-exitedevent.c, python/py-finishbreakpoint.c,
11337 python/py-framefilter.c, python/py-function.c,
11338 python/py-inferior.c, python/py-infevents.c,
11339 python/py-linetable.c, python/py-newobjfileevent.c,
11340 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
11341 python/py-signalevent.c, python/py-stopevent.c,
11342 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
11343 python/py-unwind.c, python/py-utils.c, python/py-value.c,
11344 python/py-varobj.c, python/py-xmethods.c, python/python.c,
11345 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
11346
d4b0bb18
TT
113472017-02-10 Tom Tromey <tom@tromey.com>
11348
11349 * ui-out.h (ui_out_emit_type): New class.
11350 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
11351 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
11352 and ui_out_emit_tuple.
11353 (enumerate_locals): Likewise.
11354 (py_mi_print_variables, py_print_locals, py_print_args): Use
11355 ui_out_emit_list.
11356 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
11357 ui_out_emit_list.
11358 * common/gdb_optional.h: New file.
11359
f67f945c
MG
113602017-02-10 Martin Galvan <martingalvan@sourceware.org>
11361
11362 * MAINTAINERS (Write After Approval): Update my e-mail address.
11363
18da0c51
MG
113642017-02-10 Martin Galvan <martingalvan@sourceware.org>
11365
11366 PR gdb/21122
11367 * breakpoint.c (_initialize_breakpoint): Update the help description
11368 of the 'commands' command to indicate that it takes a list argument.
11369
62c14536
SM
113702017-02-09 Simon Marchi <simon.marchi@ericsson.com>
11371
11372 * interps.c (current_interp_set_logging): Remove "return".
11373
ff6fa247
GB
113742017-02-09 Gary Benson <gbenson@redhat.com>
11375
11376 * symtab.c (add_symtab_completions): Prevent NULL pointer
11377 dereference.
11378
a474bd8e
PA
113792017-02-08 Pedro Alves <palves@redhat.com>
11380
11381 * interps.c (interp::interp): Remove reference to quiet_p.
11382 (interp_set): Make static. Remove dead "Switching to" output
11383 code.
11384 (interp_quiet_p, interp_set_quiet): Delete.
11385 (interpreter_exec_cmd): Don't set the interpreter quiet.
11386 * interps.h (interp_quiet_p): Make static.
11387 (class interp) <quiet_p>: Remove field
11388
3d7b173c
JG
113892017-02-08 Jerome Guitton <guitton@adacore.com>
11390
604c4576
JG
11391 * cli/cli-decode.c (find_command_name_length): Make it extern.
11392 * cli/cli-decode.h (find_command_name_length): Declare.
11393 * cli/cli-script.c (command_name_equals, line_first_arg):
11394 New functions.
11395 (process_next_line): Use cli-decode to parse command names.
11396 (build_command_line): Make args a constant pointer.
11397
113982017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 11399
3d7b173c
JG
11400 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
11401 Remove case-insensitive search.
11402
1291063d
JM
114032017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
11404
11405 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
11406 at the end of the line. Avoids an ARI warning.
11407
20b477a7
LM
114082017-02-06 Luis Machado <lgustavo@codesourcery.com>
11409
11410 * NEWS: Mention support for record/replay of Intel 64 rdrand and
11411 rdseed instructions.
11412 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
11413
3f7b46f2
IR
114142017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
11415
11416 PR tdep/20936
11417 Provide and use sparc32 and sparc64 target description XML files.
11418 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
11419 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
11420 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
11421 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
11422 * features/sparc/sparc32-solaris.xml: New file.
11423 * features/sparc/sparc64-solaris.xml: New file.
11424 * features/sparc/sparc32-solaris.c: Generated.
11425 * features/sparc/sparc64-solaris.c: Generated.
11426 * sparc-tdep.h: Account for differences in target descriptions.
11427 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
11428 (sparc32_register_type): Use target provided registers.
11429 (validate_tdesc_registers): New function.
11430 (sparc32_gdbarch_init): Use tdesc_has_registers.
11431 Set pseudoregister functions.
11432 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
11433 (sparc64_register_type): Use target provided registers.
11434 (sparc64_init_abi): Set pseudoregister functions.
11435
f0fd41c1
TT
114362017-02-03 Tom Tromey <tom@tromey.com>
11437
11438 PR rust/21097:
11439 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
11440 with a single member.
11441
d6f9b0fb
PA
114422017-02-03 Pedro Alves <palves@redhat.com>
11443
11444 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
11445 (cli_interp_base::~cli_interp_base): New.
11446 (cli_interp): New struct.
11447 (as_cli_interp): Cast the interp itself to cli_interp.
11448 (cli_interpreter_pre_command_loop): Rename to ...
11449 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
11450 parameter.
11451 (cli_interpreter_init): Rename to ...
11452 (cli_interp::init): ... this. Remove 'self' parameter. Use
11453 boolean. Make extern.
11454 (cli_interpreter_resume): Rename to ...
11455 (cli_interp::resume): ... this. Remove 'data' parameter. Make
11456 extern.
11457 (cli_interpreter_suspend): Rename to ...
11458 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
11459 extern.
11460 (cli_interpreter_exec): Rename to ...
11461 (cli_interp::exec): ... this. Remove 'data' parameter. Make
11462 extern.
11463 (cli_interpreter_supports_command_editing): Rename to ...
11464 (cli_interp_base::supports_command_editing): ... this. Remove
11465 'interp' parameter. Make extern.
11466 (cli_ui_out): Rename to ...
11467 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
11468 Make extern.
11469 (cli_set_logging): Rename to ...
11470 (cli_interp_base::set_logging): ... this. Remove 'interp'
11471 parameter. Make extern.
11472 (cli_interp_procs): Delete.
11473 (cli_interp_factory): Adjust to use "new".
11474 * cli/cli-interp.h: Include "interps.h".
11475 (struct cli_interp_base): New struct.
11476 * interps.c (struct interp): Delete. Fields moved to interps.h.
11477 (interp_new): Delete.
11478 (interp::interp, interp::~interp): New.
11479 (interp_set): Use bool, and return void. Assume the interpreter
11480 has suspend, init and resume methods, and that the all return
11481 void.
11482 (set_top_level_interpreter): interp_set returns void.
11483 (interp_ui_out): Adapt.
11484 (current_interp_set_logging): Adapt.
11485 (interp_data): Delete.
11486 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
11487 (interp_exec): Adapt.
11488 (top_level_interpreter_data): Delete.
11489 * interps.h (interp_init_ftype, interp_resume_ftype)
11490 (interp_suspend_ftype, interp_exec_ftype)
11491 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
11492 (class interp): New.
11493 (interp_new): Delete.
11494 (interp_set): Now returns void. Use bool.
11495 (interp_data, top_level_interpreter_data): Delete.
11496 * mi/mi-common.h: Include interps.h.
11497 (class mi_interp): Inherit from interp. Define a ctor. Declare
11498 init, resume, suspect, exec, interp_ui_out, set_logging and
11499 pre_command_loop methods.
11500 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
11501 (mi_interpreter_init): Rename to ...
11502 (mi_interp::init): ... this. Remove the 'interp' parameter, use
11503 bool, return void and make extern. Adjust.
11504 (mi_interpreter_resume): ... Rename to ...
11505 (mi_interp::resume): ... this. Remove the 'data' parameter,
11506 return void and make extern. Adjust.
11507 (mi_interpreter_suspend): ... Rename to ...
11508 (mi_interp::suspend): ... this. Remove the 'data' parameter,
11509 return void and make extern. Adjust.
11510 (mi_interpreter_exec): ... Rename to ...
11511 (mi_interp::exec): ... this. Remove the 'data' parameter and make
11512 extern. Adjust.
11513 (mi_interpreter_pre_command_loop): ... Rename to ...
11514 (mi_interp::pre_command_loop): ... this. Remove the 'self'
11515 parameter and make extern.
11516 (mi_on_normal_stop_1): Adjust.
11517 (mi_ui_out): Rename to ...
11518 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
11519 parameter and make extern. Adjust.
11520 (mi_set_logging): Rename to ...
11521 (mi_interp::set_logging): ... this. Remove the 'interp'
11522 parameter and make extern. Adjust.
11523 (mi_interp_procs): Delete.
11524 (mi_interp_factory): Adjust to use 'new'.
11525 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
11526 (mi_print_exception, mi_execute_command, mi_load_progress):
11527 Adjust.
11528 * tui/tui-interp.c (tui_interp): New class.
11529 (as_tui_interp): Return a tui_interp pointer.
11530 (tui_on_normal_stop, tui_on_signal_received)
11531 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
11532 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
11533 to use interp::interp_ui_out.
11534 (tui_init): Rename to ...
11535 (tui_interp::init): ... this. Remove the 'self' parameter, use
11536 bool, return void and make extern. Adjust.
11537 (tui_resume): Rename to ...
11538 (tui_interp::resume): ... this. Remove the 'data' parameter,
11539 return void and make extern. Adjust.
11540 (tui_suspend): Rename to ...
11541 (tui_interp::suspend): ... this. Remove the 'data' parameter,
11542 return void and make extern. Adjust.
11543 (tui_ui_out): Rename to ...
11544 (tui_interp::interp_ui_out): ... this. Remove the 'self'
11545 parameter, and make extern. Adjust.
11546 (tui_exec): Rename to ...
11547 (tui_interp::exec): ... this. Remove the 'data' parameter and
11548 make extern.
11549 (tui_interp_procs): Delete.
11550 (tui_interp_factory): Use "new".
11551
65c40c95
TT
115522017-02-02 Tom Tromey <tom@tromey.com>
11553
11554 * rust-exp.y (ends_raw_string, space_then_number)
11555 (rust_identifier_start_p): Return bool.
11556 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
11557 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
11558 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
11559 (rust_chartype_p): Return bool.
11560 (val_print_struct, rust_print_struct_def, rust_print_type):
11561 Update.
11562 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
11563 Return bool.
11564
b50f188d
TT
115652017-02-02 Tom Tromey <tom@tromey.com>
11566
11567 * rust-lang.c: Reindent.
11568
03c85b11
TT
115692017-02-02 Tom Tromey <tom@tromey.com>
11570
11571 * rust-lang.h (rust_crate_for_block): Update.
11572 * rust-lang.c (rust_crate_for_block): Return std::string.
11573 (rust_get_disr_info): Use std:;string, not
11574 gdb::unique_xmalloc_ptr.
11575 * rust-exp.y (crate_name): Update.
11576
9b6da501
PA
115772017-02-02 Pedro Alves <palves@redhat.com>
11578
11579 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
11580 field out of gdb_disassembler_test and make it static.
11581
ec4cb20b
PA
115822017-02-02 Pedro Alves <palves@redhat.com>
11583
11584 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
11585 mi1_interp and mi_interp fields.
11586
5be5dbf0
PA
115872017-02-02 Pedro Alves <palves@redhat.com>
11588
616268b6
PA
11589 * cli/cli-interp.c (struct saved_output_files, saved_output):
11590 Moved from cli/cli-logging.c.
11591 (cli_set_logging): New function.
11592 (cli_interp_procs): Install cli_set_logging.
11593 * cli/cli-interp.h (make_logging_output, cli_set_logging):
11594 Declare.
11595 * cli/cli-logging.c (struct saved_output_files, saved_output):
11596 Moved to cli/cli-interp.c.
11597 (pop_output_files): Don't save outputs here.
11598 (make_logging_output): New function.
11599 (handle_redirections): Don't build tee nor save previous outputs
11600 here.
11601 * interps.c (current_interp_set_logging): Change prototype.
11602 Assume there's always a set_logging_proc method installed.
11603 * interps.h (interp_set_logging_ftype): Change prototype.
11604 (current_interp_set_logging): Change prototype and adjust comment.
11605 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
11606 use make_logging_output.
11607 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
116082017-02-02 Pedro Alves <palves@redhat.com>
11609
5be5dbf0
PA
11610 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
11611 from ...
11612 (set_logging_overwrite): ... here.
11613 (logging_no_redirect_file): Delete.
11614 (set_logging_redirect): Don't handle redirection on the fly.
11615 Instead warn that "logging off" / "logging on" is necessary.
11616 (pop_output_files): Delete references to logging_no_redirect_file.
11617 (show_logging_command): Always speak in terms of what will happen
11618 once logging is reenabled.
11619
c99cc448
PA
116202017-02-02 Pedro Alves <palves@redhat.com>
11621
11622 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
11623
8b172ce7
PA
116242017-02-02 Pedro Alves <palves@redhat.com>
11625
11626 * disasm.c (gdb_pretty_print_insn): Rename to ...
11627 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
11628 Remove gdbarch parameter. Adapt to clear the object's buffers
11629 instead of allocating new buffers, and to print using the object's
11630 gdb_disassembler instead of calling gdb_print_insn.
11631 (dump_insns): Use gdb_pretty_print_disassembler.
11632 * disasm.h (gdb_pretty_print_insn): Delete declaration.
11633 (gdb_pretty_print_disassembler): New class.
11634 * record-btrace.c (btrace_insn_history): Use
11635 gdb_pretty_print_disassembler.
11636
d7e74731
PA
116372017-02-02 Pedro Alves <palves@redhat.com>
11638
11639 * ada-lang.c (type_as_string): Use string_file.
11640 * ada-valprint.c (ada_print_floating): Use string_file.
11641 * ada-varobj.c (ada_varobj_scalar_image)
11642 (ada_varobj_get_value_image): Use string_file.
11643 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
11644 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
11645 * breakpoint.c (update_inserted_breakpoint_locations)
11646 (insert_breakpoint_locations, reattach_breakpoints)
11647 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
11648 (print_it_watchpoint): Use string_file.
11649 (save_breakpoints): Use stdio_file.
11650 * c-exp.y (oper): Use string_file.
11651 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
11652 tee_file.
11653 (pop_output_files): Use delete.
11654 (handle_redirections): Use stdio_file and tee_file.
11655 * cli/cli-setshow.c (do_show_command): Use string_file.
11656 * compile/compile-c-support.c (c_compute_program): Use
11657 string_file.
11658 * compile/compile-c-symbols.c (generate_vla_size): Take a
11659 'string_file &' instead of a 'ui_file *'.
11660 (generate_c_for_for_one_variable): Take a 'string_file &' instead
11661 of a 'ui_file *'. Use string_file.
11662 (generate_c_for_variable_locations): Take a 'string_file &'
11663 instead of a 'ui_file *'.
11664 * compile/compile-internal.h (generate_c_for_for_one_variable):
11665 Take a 'string_file &' instead of a 'ui_file *'.
11666 * compile/compile-loc2c.c (push, pushf, unary, binary)
11667 (print_label, pushf_register_address, pushf_register)
11668 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
11669 'ui_file *'. Adjust.
11670 * compile/compile.c (compile_to_object): Use string_file.
11671 * compile/compile.h (compile_dwarf_expr_to_c)
11672 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
11673 'ui_file *'.
11674 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
11675 (replace_typedefs_qualified_name): Use string_file and
11676 obstack_copy0.
11677 * disasm.c (gdb_pretty_print_insn): Use string_file.
11678 (gdb_disassembly): Adjust reference the null_stream global.
11679 (do_ui_file_delete): Delete.
11680 (gdb_insn_length): Use null_stream.
11681 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
11682 * dwarf2loc.c (dwarf2_compile_property_to_c)
11683 (locexpr_generate_c_location, loclist_generate_c_location): Take a
11684 'string_file &' instead of a 'ui_file *'.
11685 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
11686 * dwarf2read.c (do_ui_file_peek_last): Delete.
11687 (dwarf2_compute_name): Use string_file.
11688 * event-top.c (gdb_setup_readline): Use stdio_file.
11689 * gdbarch.sh (verify_gdbarch): Use string_file.
11690 * gdbtypes.c (safe_parse_type): Use null_stream.
11691 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
11692 string_file.
11693 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
11694 'string_file *' instead of a 'ui_file *'.
11695 (gdbscm_arch_disassemble): Use string_file.
11696 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
11697 * guile/scm-ports.c (class ioscm_file_port): Now a class that
11698 inherits from ui_file.
11699 (ioscm_file_port_delete, ioscm_file_port_rewind)
11700 (ioscm_file_port_put): Delete.
11701 (ioscm_file_port_write): Rename to ...
11702 (ioscm_file_port::write): ... this. Remove file_port_magic
11703 checks.
11704 (ioscm_file_port_new): Delete.
11705 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
11706 ui_file_up.
11707 * guile/scm-type.c (tyscm_type_name): Use string_file.
11708 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
11709 Use string_file.
11710 * infcmd.c (print_return_value_1): Use string_file.
11711 * infrun.c (print_target_wait_results): Use string_file.
11712 * language.c (add_language): Use string_file.
11713 * location.c (explicit_to_string_internal): Use string_file.
11714 * main.c (captured_main_1): Use null_file.
11715 * maint.c (maintenance_print_architecture): Use stdio_file.
11716 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
11717 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
11718 event_channel>: Change type to mi_console_file pointer.
11719 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
11720 (mi_console_file_delete): Delete.
11721 (struct mi_console_file): Delete.
11722 (mi_console_file_magic): Delete.
11723 (mi_console_file_new): Delete.
11724 (mi_console_file::mi_console_file): New.
11725 (mi_console_file_delete): Delete.
11726 (mi_console_file_fputs): Delete.
11727 (mi_console_file::write): New.
11728 (mi_console_raw_packet): Delete.
11729 (mi_console_file::flush): New.
11730 (mi_console_file_flush): Delete.
11731 (mi_console_set_raw): Rename to ...
11732 (mi_console_file::set_raw): ... this.
11733 * mi/mi-console.h (class mi_console_file): New class.
11734 (mi_console_file_new, mi_console_set_raw): Delete.
11735 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
11736 (mi_set_logging): Use delete and tee_file. Adjust.
11737 * mi/mi-main.c (output_register): Use string_file.
11738 (mi_cmd_data_evaluate_expression): Use string_file.
11739 (mi_cmd_data_read_memory): Use string_file.
11740 (mi_cmd_execute, print_variable_or_computed): Use string_file.
11741 * mi/mi-out.c (mi_ui_out::main_stream): New.
11742 (mi_ui_out::rewind): Use main_stream and
11743 string_file.
11744 (mi_ui_out::put): Use main_stream and string_file.
11745 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
11746 Allocate a 'string_file' instead.
11747 (mi_out_new): Don't allocate a mem_fileopen stream here.
11748 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
11749 (mi_ui_out::main_stream): Declare method.
11750 * printcmd.c (eval_command): Use string_file.
11751 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
11752 * python/py-arch.c (archpy_disassemble): Use string_file.
11753 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
11754 * python/py-frame.c (frapy_str): Use string_file.
11755 * python/py-framefilter.c (py_print_type, py_print_single_arg):
11756 Use string_file.
11757 * python/py-type.c (typy_str): Use string_file.
11758 * python/py-unwind.c (unwind_infopy_str): Use string_file.
11759 * python/py-value.c (valpy_str): Use string_file.
11760 * record-btrace.c (btrace_insn_history): Use string_file.
11761 * regcache.c (regcache_print): Use stdio_file.
11762 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
11763 * remote.c (escape_buffer): Use string_file.
11764 * rust-lang.c (rust_get_disr_info): Use string_file.
11765 * serial.c (serial_open_ops_1): Use stdio_file.
11766 (do_serial_close): Use delete.
11767 * stack.c (print_frame_arg): Use string_file.
11768 (print_frame_args): Remove local mem_fileopen stream, not used.
11769 (print_frame): Use string_file.
11770 * symmisc.c (maintenance_print_symbols): Use stdio_file.
11771 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
11772 Take a 'string_file *' instead of a 'ui_file *'.
11773 * top.c (new_ui): Use stdio_file and stderr_file.
11774 (free_ui): Use delete.
11775 (execute_command_to_string): Use string_file.
11776 (quit_confirm): Use string_file.
11777 * tracepoint.c (collection_list::append_exp): Use string_file.
11778 * tui/tui-disasm.c (tui_disassemble): Use string_file.
11779 * tui/tui-file.c: Don't include "ui-file.h".
11780 (enum streamtype, struct tui_stream): Delete.
11781 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
11782 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
11783 (tui_file::tui_file): New method.
11784 (tui_file_fputs): Delete.
11785 (tui_file_get_strbuf): Delete.
11786 (tui_file::puts): New method.
11787 (tui_file_adjust_strbuf): Delete.
11788 (tui_file_flush): Delete.
11789 (tui_file::flush): New method.
11790 * tui/tui-file.h: Tweak intro comment.
11791 Include ui-file.h.
11792 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
11793 (tui_file_adjust_strbuf): Delete declarations.
11794 (class tui_file): New class.
11795 * tui/tui-io.c (tui_initialize_io): Use tui_file.
11796 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
11797 (tui_register_format): Use string_stream.
11798 * tui/tui-stack.c (tui_make_status_line): Use string_file.
11799 (tui_get_function_from_frame): Use string_file.
11800 * typeprint.c (type_to_string): Use string_file.
11801 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
11802 (null_stream): New global.
11803 (ui_file_delete): Delete.
11804 (ui_file::ui_file): New.
11805 (null_file_isatty): Delete.
11806 (ui_file::~ui_file): New.
11807 (null_file_rewind): Delete.
11808 (ui_file::printf): New.
11809 (null_file_put): Delete.
11810 (null_file_flush): Delete.
11811 (ui_file::putstr): New.
11812 (null_file_write): Delete.
11813 (ui_file::putstrn): New.
11814 (null_file_read): Delete.
11815 (ui_file::putc): New.
11816 (null_file_fputs): Delete.
11817 (null_file_write_async_safe): Delete.
11818 (ui_file::vprintf): New.
11819 (null_file_delete): Delete.
11820 (null_file::write): New.
11821 (null_file_fseek): Delete.
11822 (null_file::puts): New.
11823 (ui_file_data): Delete.
11824 (null_file::write_async_safe): New.
11825 (gdb_flush, ui_file_isatty): Adjust.
11826 (ui_file_put, ui_file_rewind): Delete.
11827 (ui_file_write): Adjust.
11828 (ui_file_write_for_put): Delete.
11829 (ui_file_write_async_safe, ui_file_read): Adjust.
11830 (ui_file_fseek): Delete.
11831 (fputs_unfiltered): Adjust.
11832 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
11833 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
11834 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
11835 (set_ui_file_data): Delete.
11836 (string_file::~string_file, string_file::write)
11837 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
11838 (do_ui_file_as_string, ui_file_as_string): Delete.
11839 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
11840 (struct mem_file): Delete.
11841 (mem_file_new): Delete.
11842 (stdio_file::stdio_file): New.
11843 (mem_file_delete): Delete.
11844 (stdio_file::stdio_file): New.
11845 (mem_fileopen): Delete.
11846 (stdio_file::~stdio_file): New.
11847 (mem_file_rewind): Delete.
11848 (stdio_file::set_stream): New.
11849 (mem_file_put): Delete.
11850 (stdio_file::open): New.
11851 (mem_file_write): Delete.
11852 (stdio_file_magic, struct stdio_file): Delete.
11853 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
11854 (stdio_file::flush): New.
11855 (stdio_file_read): Rename to ...
11856 (stdio_file::read): ... this. Adjust.
11857 (stdio_file_write): Rename to ...
11858 (stdio_file::write): ... this. Adjust.
11859 (stdio_file_write_async_safe): Rename to ...
11860 (stdio_file::write_async_safe) ... this. Adjust.
11861 (stdio_file_fputs): Rename to ...
11862 (stdio_file::puts) ... this. Adjust.
11863 (stdio_file_isatty): Delete.
11864 (stdio_file_fseek): Delete.
11865 (stdio_file::isatty): New.
11866 (stderr_file_write): Rename to ...
11867 (stderr_file::write) ... this. Adjust.
11868 (stderr_file_fputs): Rename to ...
11869 (stderr_file::puts) ... this. Adjust.
11870 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
11871 (stderr_file::stderr_file): New.
11872 (tee_file_magic): Delete.
11873 (struct tee_file): Delete.
11874 (tee_file::tee_file): New.
11875 (tee_file_new): Delete.
11876 (tee_file::~tee_file): New.
11877 (tee_file_delete): Delete.
11878 (tee_file_flush): Rename to ...
11879 (tee_file::flush): ... this. Adjust.
11880 (tee_file_write): Rename to ...
11881 (tee_file::write): ... this. Adjust.
11882 (tee_file::write_async_safe): New.
11883 (tee_file_fputs): Rename to ...
11884 (tee_file::puts): ... this. Adjust.
11885 (tee_file_isatty): Rename to ...
11886 (tee_file::isatty): ... this. Adjust.
11887 * ui-file.h (struct obstack, struct ui_file): Don't
11888 forward-declare.
11889 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
11890 (ui_file_write_ftype)
11891 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
11892 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
11893 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
11894 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
11895 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
11896 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
11897 (set_ui_file_fseek): Delete.
11898 (ui_file_data, ui_file_delete, ui_file_rewind)
11899 (struct ui_file): New.
11900 (ui_file_up): New.
11901 (class null_file): New.
11902 (null_stream): Declare.
11903 (ui_file_write_for_put, ui_file_put): Delete.
11904 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
11905 Delete.
11906 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
11907 (gdb_fopen, tee_file_new): Delete.
11908 (struct string_file): New.
11909 (struct stdio_file): New.
11910 (stdio_file_up): New.
11911 (struct stderr_file): New.
11912 (class tee_file): New.
11913 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
11914 of a 'ui_file *'. Adjust.
11915 * ui-out.h (class ui_out) <field_stream>: Likewise.
11916 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
11917 (null_stream): Delete.
11918 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
11919 Adjust.
11920 * utils.h (struct ui_file): Delete forward declaration..
11921 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
11922 (error_stream): Take a 'string_file &' instead of a
11923 'ui_file *'.
11924 * varobj.c (varobj_value_get_print_value): Use string_file.
11925 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
11926 * gdbarch.c: Regenerate.
11927
187808b0
PA
119282017-02-02 Pedro Alves <palves@redhat.com>
11929
11930 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
11931 (gdb_pretty_print_insn): ... this. Now a free function. Add back
11932 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
11933 Adjust to call gdb_print_insn instead of
11934 gdb_disassembler::print_insn.
11935 (dump_insns, do_mixed_source_and_assembly_deprecated)
11936 (do_mixed_source_and_assembly, do_assembly_only): Add back a
11937 'gdbarch' parameter. Remove gdb_disassembler parameter.
11938 (gdb_disassembly): Don't allocate a gdb_disassembler here.
11939 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
11940 declaration.
11941 (gdb_pretty_print_insn): Re-add declaration.
11942 * record-btrace.c (btrace_insn_history): Don't allocate a
11943 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
11944
7a8eb317
SM
119452017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
11946
11947 * disasm.h (gdb_disassembly): Remove file_string parameter.
11948 * disasm.c (gdb_disassembly): Likewise.
11949 * cli/cli-cmds.c (print_disassembly): Adapt.
11950 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
11951 * stack.c (do_gdb_disassembly): Likewise.
11952
7346ef59
AA
119532017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
11954
11955 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
11956 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
11957 targets. And if the implicit value is longer than needed, extract
11958 the first bytes instead of the "least significant" ones.
11959
cd4007e4
MM
119602017-02-01 Markus Metzger <markus.t.metzger@intel.com>
11961
11962 * btrace.c (btrace_enable): Do not call btrace_add_pc for
11963 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
11964 (btrace_fetch): Assert can_access_registers_ptid.
11965 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
11966 validate_registers_access.
11967
cf77c34e
MM
119682017-02-01 Markus Metzger <markus.t.metzger@intel.com>
11969
11970 * gdbthread.h (can_access_registers_ptid): New.
11971 * thread.c (can_access_registers_ptid): New.
11972
be85ce7d
PA
119732017-02-01 Pedro Alves <palves@redhat.com>
11974
11975 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
11976
29b0b251
PA
119772017-01-31 Pedro Alves <palves@redhat.com>
11978
11979 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
11980 Fix typos.
11981
289b5b24
PA
119822017-01-31 Pedro Alves <palves@redhat.com>
11983
11984 * stack.c (print_frame_args): Remove local mem_fileopen stream,
11985 not used.
11986
b47413b4
PA
119872017-01-31 Pedro Alves <palves@redhat.com>
11988
11989 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
11990
60adb36c
PA
119912017-01-31 Pedro Alves <palves@redhat.com>
11992
11993 * common/scoped_restore.h
11994 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
11995 change the value's parameter type to T2.
11996 (make_scoped_restore): Likewise.
11997
2735833d
WT
119982017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
11999 Richard Henderson <rth@redhat.com>
12000
12001 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
12002 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
12003 GS_BASE for older kernels.
12004 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
12005 GS_BASE for older kernels.
12006 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
12007 and GS_BASE to the offset table.
12008 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
12009 system register group.
12010 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
12011 for older kernels.
12012 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
12013 amd64 ABI.
12014 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
12015 AMD64_GSBASE_REGNUM.
12016 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
12017 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
12018 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
12019 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
12020 i386/64bit-segments.xml in those rules.
12021 * features/i386/64bit-segments.xml: New file.
12022 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
12023 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
12024 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
12025 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
12026 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
12027 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
12028 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
12029 * features/i386/amd64-avx-linux.c: Regenerated.
12030 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
12031 * features/i386/amd64-avx-mpx.c: Regenerated.
12032 * features/i386/amd64-avx512-linux.c: Regenerated.
12033 * features/i386/amd64-linux.c: Regenerated.
12034 * features/i386/amd64-mpx-linux.c: Regenerated.
12035 * features/i386/i386-avx-mpx-linux.c: Regenerated.
12036 * features/i386/i386-avx-mpx.c: Regenerated.
12037 * features/i386/x32-avx-linux.c: Regenerated.
12038 * features/i386/x32-avx512-linux.c: Regenerated.
12039 * regformats/i386/amd64-avx-linux.dat: Regenerated.
12040 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
12041 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
12042 * regformats/i386/amd64-linux.dat: Regenerated.
12043 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
12044 * regformats/i386/x32-avx-linux.dat: Regenerated.
12045 * regformats/i386/x32-avx512-linux.dat: Regenerated.
12046 * regformats/i386/x32-linux.dat: Regenerated.
12047
8884e97e
WT
120482017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
12049
12050 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
12051 Set to AMD64_NUM_REGS.
12052
7005d26a
WT
120532017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
12054
12055 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
12056 that checks validity of a register number.
12057
4bd2e1b2
KC
120582017-01-27 Kees Cook <keescook@google.com>
12059
12060 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
12061 fetch_fpregs if target has fpa registers.
12062 (arm_linux_store_inferior_registers): Call store_fpregs if target
12063 has fpa registers.
12064
7cf1de6c
AA
120652017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
12066
12067 * cris-tdep.c (cris_gdbarch_init): Remove check for
12068 info.byte_order and force it to BFD_ENDIAN_LITTLE.
12069
874a1c8c
AT
120702017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
12071
12072 * corelow.c (get_core_register_section): Check for regset
12073 existence before checking for REGSET_VARIABLE_SIZE.
12074
d8b49cf0
YQ
120752017-01-26 Yao Qi <yao.qi@linaro.org>
12076 Pedro Alves <palves@redhat.com>
12077
12078 PR gdb/20939
12079 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
12080 call memory_error, save memaddr instead.
12081 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
12082 negative, cal memory_error.
12083 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
12084
658ca58c
YQ
120852017-01-26 Yao Qi <yao.qi@linaro.org>
12086
12087 * disasm-selftests.c (memory_error_test): New function.
12088 (_initialize_disasm_selftests): Register memory_error_test.
12089
79843d45
YQ
120902017-01-26 Yao Qi <yao.qi@linaro.org>
12091
12092 * Makefile.in (SFILES): Add disasm-selftests.c and
12093 selftest-arch.c.
12094 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
12095 * disasm-selftests.c: New file.
12096 * selftest-arch.c: New file.
12097 * selftest-arch.h: New file.
12098
8cafda32
YQ
120992017-01-26 Yao Qi <yao.qi@linaro.org>
12100
12101 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
12102 to bfd_arch_mep. Don't return 0 if section is not
12103 found. Call print_insn_mep.
12104
e47ad6c0
YQ
121052017-01-26 Pedro Alves <palves@redhat.com>
12106 Yao Qi <yao.qi@linaro.org>
12107
12108 * arm-tdep.c: Include "disasm.h".
12109 (gdb_print_insn_arm): Update code to get gdbarch.
12110 * disasm.c (dis_asm_read_memory): Change it to
12111 gdb_disassembler::dis_asm_read_memory.
12112 (dis_asm_memory_error): Likewise.
12113 (dis_asm_print_address): Likewise.
12114 (gdb_pretty_print_insn): Change it to
12115 gdb_disassembler::pretty_print_insn.
12116 (dump_insns): Add one argument gdb_disassemlber. All
12117 callers updated.
12118 (do_mixed_source_and_assembly_deprecated): Likewise.
12119 (do_mixed_source_and_assembly): Likewise.
12120 (do_assembly_only): Likewise.
12121 (gdb_disassembler::gdb_disassembler): New.
12122 (gdb_disassembler::print_insn): New.
12123 * disasm.h (class gdb_disassembler): New.
12124 (gdb_pretty_print_insn): Remove declaration.
12125 (gdb_disassemble_info): Likewise.
12126 * guile/scm-disasm.c (class gdbscm_disassembler): New.
12127 (gdbscm_disasm_read_memory_worker): Update.
12128 (gdbscm_disasm_read_memory): Update.
12129 (gdbscm_disasm_memory_error): Remove.
12130 (gdbscm_disasm_print_address): Remove.
12131 (gdbscm_disassembler::gdbscm_disassembler): New.
12132 (gdbscm_print_insn_from_port): Update.
12133 * mips-tdep.c: Include disasm.h.
12134 (gdb_print_insn_mips): Update code to get gdbarch.
12135 * record-btrace.c (btrace_insn_history): Update.
12136 * spu-tdep.c: Include disasm.h.
12137 (struct spu_dis_asm_data): Remove.
12138 (struct spu_dis_asm_info): New.
12139 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
12140 SPU id.
12141 (gdb_print_insn_spu): Cast disassemble_info to
12142 spu_dis_asm_info.
12143
80d75874
YQ
121442017-01-26 Yao Qi <yao.qi@linaro.org>
12145
12146 * disasm.c (do_ui_file_delete): Delete.
12147 (gdb_insn_length): Move code creating stream to ...
12148 * utils.c (null_stream): ... here. New function.
12149 * utils.h (null_stream): Declare.
12150
60685cd0
SM
121512017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12152
12153 * python/py-inferior.c (find_thread_object): Return directly
12154 from the loop. Remove "found" variable.
12155
eb1cdb62
JB
121562017-01-21 Joel Brobecker <brobecker@adacore.com>
12157
12158 GDB 7.12.1 released.
12159
b1ce6568
SM
121602017-01-20 Simon Marchi <simon.marchi@ericsson.com>
12161
12162 * python/py-function.c (fnpy_call): Reorder declarations to have
12163 the gdbpy_enter object declared first.
12164 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
12165
6f8b0407
SM
121662017-01-20 Simon Marchi <simon.marchi@ericsson.com>
12167
fec93fb1 12168 PR python/21068
6f8b0407
SM
12169 * python/python-internal.h (PyMem_RawMalloc): Define for
12170 Python < 3.4.
12171 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
12172 PyMem_RawMalloc instead of PyMem_Malloc.
12173
78cbbba8
LM
121742017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
12175 Luis Machado <lgustavo@codesourcery.com>
12176
12177 * NEWS (New commands): Mention flash-erase.
12178 (New MI commands): Mention target-flash-erase.
12179 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
12180 command.
12181 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
12182 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
12183 * target.c (flash_erase_command): New function.
12184 (initialize_targets): Add new flash-erase command.
12185 * target.h (flash_erase_command): New declaration.
12186
2132fe85
JB
121872017-01-20 Joel Brobecker <brobecker@adacore.com>
12188
12189 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
12190 HAVE_SYS_PROCFS_H is defined.
12191
d1dff226
AH
121922017-01-18 Alan Hayward <alan.hayward@arm.com>
12193
12194 * remote.c (struct cached_reg): Change data into a pointer.
12195 * (stop_reply_dtr): Free data pointers before deleting vector.
12196 (process_stop_reply): Likewise.
12197 (remote_parse_stop_reply): Allocate space for data
12198
9890e433
AH
121992017-01-18 Alan Hayward <alan.hayward@arm.com>
12200
12201 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
12202 MAX_REGISTER_SIZE.
12203 (amd64_pseudo_register_read_value): Likewise.
12204 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
12205 (store_register_using_P): Likewise.
12206 * regcache.c (regcache_xfer_part): Likewise.
12207
7a36499a
IR
122082017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
12209
12210 Split real and pseudo registers.
12211 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
12212 (sparc32_pseudo_regnum): New enum.
12213 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
12214 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
12215 (SPARC32_CP0_REGISTERS): New macro.
12216 (sparc32_pseudo_register_name): New function.
12217 (sparc32_register_name): Use sparc32_pseudo_register_name.
12218 (sparc32_pseudo_register_type): New function.
12219 (sparc32_register_type): Use sparc32_pseudo_register_type.
12220 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
12221 pseudo register numbers.
12222 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
12223 (SPARC64_CP0_REGISTERS): New macro.
12224 (sparc64_pseudo_register_name): New function.
12225 (sparc64_register_name): Use sparc64_pseudo_register_name.
12226 (sparc64_pseudo_register_type): New function.
12227 (sparc64_register_type): Use sparc64_pseudo_register_type.
12228 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
12229 pseudo register numbers.
12230 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
12231 sparc64_store_arguments): Handle pseudo register numbers.
12232
6f8976bf
YQ
122332017-01-13 Yao Qi <yao.qi@linaro.org>
12234
12235 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
12236 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
12237 output.
12238 (getpkt_or_notif_sane_1): Likewise.
12239
e4241ace
YQ
122402017-01-13 Yao Qi <yao.qi@linaro.org>
12241
12242 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
12243 of CC. Pass "-x c++-header" instead of "-x c".
12244
3015c064
SM
122452017-01-12 Simon Marchi <simon.marchi@ericsson.com>
12246
12247 * remote.c (remote_can_async_p): Update comment.
12248
fde1b17d
SM
122492017-01-12 Simon Marchi <simon.marchi@ericsson.com>
12250
12251 * linux-nat.c (linux_nat_can_async_p): Update comment.
12252
ca1ca08b
SM
122532017-01-12 Simon Marchi <simon.marchi@ericsson.com>
12254
12255 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
12256
4ad2da73
SM
122572017-01-11 Simon Marchi <simon.marchi@ericsson.com>
12258
12259 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
12260
c8b23b3f
TT
122612017-01-10 Tom Tromey <tom@tromey.com>
12262
12263 * python/py-type.c (typy_legacy_template_argument): Update.
12264 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
12265 ~demangle_parse_info): Declare new members.
12266 (cp_demangled_name_to_comp): Return unique_ptr.
12267 (cp_demangled_name_parse_free)
12268 (make_cleanup_cp_demangled_name_parse_free)
12269 (cp_new_demangle_parse_info): Remove.
12270 * cp-support.c (do_demangled_name_parse_free_cleanup)
12271 (make_cleanup_cp_demangled_name_parse_free): Remove.
12272 (inspect_type, cp_canonicalize_string_full)
12273 (cp_canonicalize_string): Update.
12274 (mangled_name_to_comp): Change return type.
12275 (cp_class_name_from_physname, method_name_from_physname)
12276 (cp_func_name, cp_remove_params): Update.
12277 * cp-name-parser.y (demangle_parse_info): New constructor, from
12278 cp_new_demangle_parse_info.
12279 (~demangle_parse_info): New destructor, from
12280 cp_demangled_name_parse_free.
12281 (cp_merge_demangle_parse_infos): Update.
12282 (cp_demangled_name_to_comp): Change return type.
12283
1ac32117
TT
122842017-01-10 Tom Tromey <tom@tromey.com>
12285
12286 * top.c (prevent_dont_repeat): Change return type.
12287 * python/python.c (execute_gdb_command): Use std::string.
12288 Update.
12289 * guile/guile.c (gdbscm_execute_gdb_command): Update.
12290 * command.h (prevent_dont_repeat): Change return type.
12291 * breakpoint.c (bpstat_do_actions_1): Update.
12292
0cf08227
TT
122932017-01-10 Tom Tromey <tom@tromey.com>
12294
12295 * value.h (scoped_value_mark::~scoped_value_mark): Call
12296 free_to_mark.
12297 (scoped_value_mark::free_to_mark): New method.
12298 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
12299 scoped_value_mark.
12300
eb115069
TT
123012017-01-10 Tom Tromey <tom@tromey.com>
12302
12303 * python/py-value.c (valpy_dereference, valpy_referenced_value)
12304 (valpy_reference_value, valpy_const_value, valpy_get_address)
12305 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
12306 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
12307 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
12308 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
12309 scoped_value_mark.
12310 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
12311 * value.h (scoped_value_mark): New class.
12312
906768f9
TT
123132017-01-10 Tom Tromey <tom@tromey.com>
12314
12315 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
12316 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
12317 * psymtab.c (discard_psymtabs_upto): Remove.
12318 (make_cleanup_discard_psymtabs): Remove.
12319 (struct psymtab_state): Remove.
12320
bef155c3
TT
123212017-01-10 Tom Tromey <tom@tromey.com>
12322
12323 * record-full.c (record_full_save_cleanups): Remove.
12324 (record_full_save): Use gdb::unlinker.
12325 * gcore.c (do_bfd_delete_cleanup): Remove.
12326 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
12327 cleanups.
12328 * dwarf2read.c (unlink_if_set): Remove.
12329 (write_psymtabs_to_index): Use gdb::unlinker.
12330 * common/gdb_unlinker.h: New file.
12331
192b62ce
TT
123322017-01-10 Tom Tromey <tom@tromey.com>
12333
12334 * windows-tdep.c (windows_xfer_shared_library): Update.
12335 * windows-nat.c (windows_make_so): Update.
12336 * utils.h (make_cleanup_bfd_unref): Remove.
12337 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
12338 * symfile.h (symfile_bfd_open)
12339 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
12340 * symfile.c (read_symbols, symbol_file_add)
12341 (separate_debug_file_exists): Update.
12342 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
12343 (generic_load, reread_symbols): Update.
12344 * symfile-mem.c (symbol_file_add_from_memory): Update.
12345 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
12346 (spu_symbol_file_add_from_memory): Update.
12347 * solist.h (struct target_so_ops) <bfd_open>: Return
12348 gdb_bfd_ref_ptr.
12349 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
12350 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
12351 gdb_bfd_ref_ptr.
12352 (solib_map_sections, reload_shared_libraries_1): Update.
12353 * solib-svr4.c (enable_break): Update.
12354 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
12355 * solib-frv.c (enable_break2): Update.
12356 * solib-dsbt.c (enable_break): Update.
12357 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
12358 gdb_bfd_ref_ptr.
12359 (darwin_solib_get_all_image_info_addr_at_init): Update.
12360 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
12361 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
12362 * record-full.c (record_full_save): Update.
12363 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
12364 * procfs.c (insert_dbx_link_bpt_in_file): Update.
12365 * minidebug.c (find_separate_debug_file_in_section): Return
12366 gdb_bfd_ref_ptr.
12367 * machoread.c (macho_add_oso_symfile): Change abfd to
12368 gdb_bfd_ref_ptr.
12369 (macho_symfile_read_all_oso): Update.
12370 (macho_check_dsym): Return gdb_bfd_ref_ptr.
12371 (macho_symfile_read): Update.
12372 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
12373 (jit_bfd_try_read_symtab): Update.
12374 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
12375 (gdb_bfd_openw, gdb_bfd_openr_iovec)
12376 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
12377 gdb_bfd_ref_ptr.
12378 (gdb_bfd_ref_policy): New struct.
12379 (gdb_bfd_ref_ptr): New typedef.
12380 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
12381 (gdb_bfd_openw, gdb_bfd_openr_iovec)
12382 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
12383 gdb_bfd_ref_ptr.
12384 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
12385 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
12386 (gcore_command): Update.
12387 * exec.c (exec_file_attach): Update.
12388 * elfread.c (elf_symfile_read): Update.
12389 * dwarf2read.c (dwarf2_get_dwz_file): Update.
12390 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
12391 (open_and_init_dwo_file): Update.
12392 (open_dwp_file): Return gdb_bfd_ref_ptr.
12393 (open_and_init_dwp_file): Update.
12394 * corelow.c (core_open): Update.
12395 * compile/compile-object-load.c (compile_object_load): Update.
12396 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
12397 * coffread.c (coff_symfile_read): Update.
12398 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
12399 gdb_bfd_ref_ptr. Rename.
12400 (dump_bfd_file, restore_command): Update.
12401 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
12402 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
12403 (find_separate_debug_file_by_buildid): Update.
12404
50315b21
TT
124052017-01-10 Tom Tromey <tom@tromey.com>
12406
12407 * common/gdb_ref_ptr.h: New file.
12408 * python/py-ref.h (struct gdbpy_ref_policy): New.
12409 (gdbpy_ref): Now a typedef.
12410
fc4007c9
TT
124112017-01-10 Tom Tromey <tom@tromey.com>
12412
12413 * utils.h (make_cleanup_htab_delete): Don't declare.
12414 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
12415 Remove.
12416 * linespec.c (decode_compound_collector): Add constructor,
12417 destructor.
12418 (lookup_prefix_sym): Remove cleanup.
12419 (symtab_collector): Add constructor, destructor.
12420 (collect_symtabs_from_filename): Remove cleanup.
12421 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
12422 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
12423 Use htab_up.
12424 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
12425 * dwarf2read.c (dw2_expand_symtabs_matching)
12426 (dw2_map_symbol_filenames, dwarf_decode_macros)
12427 (write_psymtabs_to_index): Use htab_up.
12428 * dwarf2loc.c (func_verify_no_selftailcall)
12429 (call_site_find_chain_1, func_verify_no_selftailcall)
12430 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
12431 std::vector, gdb::unique_xmalloc_ptr.
12432 (call_sitep): Remove typedef.
12433 (dwarf2_locexpr_baton_eval): Remove unused variable.
12434
8dbcee67
TT
124352017-01-10 Tom Tromey <tom@tromey.com>
12436
12437 * python/python-internal.h (make_cleanup_py_decref)
12438 (make_cleanup_py_xdecref): Don't declare.
12439 * python/py-utils.c (py_decref, make_cleanup_py_decref)
12440 (py_xdecref, make_cleanup_py_xdecref): Remove.
12441
13df46cc
TT
124422017-01-10 Tom Tromey <tom@tromey.com>
12443
12444 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
12445 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
12446
06fc9bf7
TT
124472017-01-10 Tom Tromey <tom@tromey.com>
12448
12449 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
12450
830a4934
TT
124512017-01-10 Tom Tromey <tom@tromey.com>
12452
12453 * python/py-utils.c (unicode_to_encoded_string)
12454 (python_string_to_target_string)
12455 (python_string_to_target_python_string)
12456 (python_string_to_host_string, gdbpy_obj_to_string)
12457 (get_addr_from_python): Use gdbpy_ref.
12458
4586d543
TT
124592017-01-10 Tom Tromey <tom@tromey.com>
12460
12461 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
12462 gdbpy_ref.
12463
59876f8f
TT
124642017-01-10 Tom Tromey <tom@tromey.com>
12465
12466 * python/python.c (eval_python_command, gdbpy_decode_line)
12467 (gdbpy_run_events, gdbpy_start_type_printers)
12468 (gdbpy_apply_type_printers): Use gdbpy_ref.
12469
97d83487
TT
124702017-01-10 Tom Tromey <tom@tromey.com>
12471
12472 * python/py-param.c (get_doc_string, compute_enum_values): Use
12473 gdbpy_ref.
12474
9205649a
TT
124752017-01-10 Tom Tromey <tom@tromey.com>
12476
12477 * python/py-inferior.c (find_thread_object, build_inferior_list):
12478 Use gdbpy_ref.
12479
74c49d45
TT
124802017-01-10 Tom Tromey <tom@tromey.com>
12481
12482 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
12483
16361ffb
TT
124842017-01-10 Tom Tromey <tom@tromey.com>
12485
12486 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
12487 gdbpy_ref.
12488
905f2cca
TT
124892017-01-10 Tom Tromey <tom@tromey.com>
12490
12491 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
12492 extra incref.
12493 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
12494 Use gdbpy_ref.
12495
64081434
TT
124962017-01-10 Tom Tromey <tom@tromey.com>
12497
12498 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
12499 gdbpy_ref.
12500
59e9e831
TT
125012017-01-10 Tom Tromey <tom@tromey.com>
12502
12503 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
12504 decref results of PyArg_ParseTupleAndKeywords.
12505
9de10f6d
TT
125062017-01-10 Tom Tromey <tom@tromey.com>
12507
12508 * python/python.c (python_run_simple_file): Use
12509 unique_xmalloc_ptr, gdbpy_ref.
12510
2bd5759d
TT
125112017-01-10 Tom Tromey <tom@tromey.com>
12512
12513 * python/py-prettyprint.c (print_stack_unless_memory_error)
12514 (print_string_repr, print_children): Use gdbpy_ref.
12515 (dummy_python_frame): New class.
12516 (dummy_python_frame::dummy_python_frame): Rename from
12517 push_dummy_python_frame.
12518 (py_restore_tstate): Remove.
12519
3b4e0e01
TT
125202017-01-10 Tom Tromey <tom@tromey.com>
12521
12522 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
12523
17a22718
TT
125242017-01-10 Tom Tromey <tom@tromey.com>
12525
12526 * python/python.c (ensure_python_env, restore_python_env):
12527 Remove.
12528 * python/python-internal.h (ensure_python_env): Don't declare.
12529 * varobj.h (varobj_ensure_python_env): Don't declare.
12530 * varobj.c (varobj_ensure_python_env): Remove.
12531
68cdc557
TT
125322017-01-10 Tom Tromey <tom@tromey.com>
12533
12534 * varobj.c (varobj_value_get_print_value): Use
12535 gdbpy_enter_varobj.
12536
1eba6383
TT
125372017-01-10 Tom Tromey <tom@tromey.com>
12538
12539 * python/py-prettyprint.c (print_string_repr, print_children):
12540 Update.
12541 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
12542 of "encoding".
12543 * varobj.c (varobj_value_get_print_value): Update.
12544 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
12545
bde7b3e3
TT
125462017-01-10 Tom Tromey <tom@tromey.com>
12547
12548 * varobj.c (varobj_get_display_hint)
12549 (dynamic_varobj_has_child_method, install_new_value_visualizer)
12550 (varobj_set_visualizer, free_variable): Use
12551 gdbpy_enter_varobj.
12552
a7785f8c
TT
125532017-01-10 Tom Tromey <tom@tromey.com>
12554
12555 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
12556 (do_finish_initialization): New function. Use gdbpy_ref.
12557 (gdbpy_finish_initialization): Use gdbpy_enter. Call
12558 do_finish_initialization.
12559
2865bfce
TT
125602017-01-10 Tom Tromey <tom@tromey.com>
12561
12562 * python/py-param.c (get_set_value, get_show_value): Use
12563 gdbpy_enter, gdbpy_ref.
12564
0e9dcc75
TT
125652017-01-10 Tom Tromey <tom@tromey.com>
12566
12567 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
12568
12a5cedd
TT
125692017-01-10 Tom Tromey <tom@tromey.com>
12570
12571 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
12572
788f2586
TT
125732017-01-10 Tom Tromey <tom@tromey.com>
12574
12575 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
12576 Use gdbpy_enter_varobj.
12577
6cd67bea
TT
125782017-01-10 Tom Tromey <tom@tromey.com>
12579
12580 * varobj.c (gdbpy_enter_varobj): New constructor.
12581 * python/python-internal.h (gdbpy_enter_varobj): New class.
12582 * python/py-varobj.c (py_varobj_get_iterator): Use
12583 gdbpy_enter_varobj.
12584
14b122bf
TT
125852017-01-10 Tom Tromey <tom@tromey.com>
12586
12587 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
12588 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
12589 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
12590 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
12591 unique_xmalloc_ptr.
12592 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
12593
bf1ca3b9
TT
125942017-01-10 Tom Tromey <tom@tromey.com>
12595
12596 * python/py-xmethods.c (invoke_match_method): Use
12597 gdbpy_ref.
12598
572a5524
TT
125992017-01-10 Tom Tromey <tom@tromey.com>
12600
12601 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
12602 gdbpy_enter, gdbpy_ref.
12603
396a78b6
TT
126042017-01-10 Tom Tromey <tom@tromey.com>
12605
12606 * python/python.c (python_interactive_command): Use gdbpy_enter.
12607
a88b13c7
TT
126082017-01-10 Tom Tromey <tom@tromey.com>
12609
12610 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
12611 gdbpy_ref.
12612
e9f0c363
TT
126132017-01-10 Tom Tromey <tom@tromey.com>
12614
12615 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
12616 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
12617
6349f452
TT
126182017-01-10 Tom Tromey <tom@tromey.com>
12619
12620 * utils.h (htab_deleter): New struct.
12621 (htab_up): New typedef.
12622 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
12623 gdbpy_enter, gdbpy_ref, htab_up.
12624
c0171de6
TT
126252017-01-10 Tom Tromey <tom@tromey.com>
12626
12627 * python/py-unwind.c (pending_frame_invalidate): Remove.
12628 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
12629
f18e226f
TT
126302017-01-10 Tom Tromey <tom@tromey.com>
12631
12632 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
12633 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
12634
c57af3f1
TT
126352017-01-10 Tom Tromey <tom@tromey.com>
12636
12637 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
12638
60e600ec
TT
126392017-01-10 Tom Tromey <tom@tromey.com>
12640
12641 * python/python.c (gdbpy_eval_from_control_command)
12642 (gdbpy_source_script, gdbpy_run_events)
12643 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
12644 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
12645 gdbpy_enter.
12646
bf7da5b0
TT
126472017-01-10 Tom Tromey <tom@tromey.com>
12648
12649 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
12650
2d38bced
TT
126512017-01-10 Tom Tromey <tom@tromey.com>
12652
12653 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
12654
07bc7329
TT
126552017-01-10 Tom Tromey <tom@tromey.com>
12656
12657 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
12658 (python_on_inferior_call_pre, python_on_inferior_call_post)
12659 (python_on_memory_change, python_on_register_change)
12660 (python_inferior_exit, python_new_objfile, add_thread_object)
12661 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
12662
6e7c365e
TT
126632017-01-10 Tom Tromey <tom@tromey.com>
12664
12665 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
12666 (bpfinishpy_handle_exit): Use gdbpy_enter.
12667
6ba0cd40
TT
126682017-01-10 Tom Tromey <tom@tromey.com>
12669
12670 * python/py-cmd.c (cmdpy_destroyer)
12671 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
12672 gdbpy_enter.
12673
de2dc875
TT
126742017-01-10 Tom Tromey <tom@tromey.com>
12675
12676 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
12677 gdbpy_enter.
12678 (gdbpy_breakpoint_has_cond): Likewise.
12679
4ecee2c4
TT
126802017-01-10 Tom Tromey <tom@tromey.com>
12681
12682 * python/python.c (gdbpy_enter): New constructor.
12683 (~gdbpy_enter): New destructor.
12684 (restore_python_env, ensure_python_env): Rewrite.
12685 * python/python-internal.h (gdbpy_enter): New class.
12686
37fce74f
TT
126872017-01-10 Tom Tromey <tom@tromey.com>
12688
12689 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
12690
53a0cca3
TT
126912017-01-10 Tom Tromey <tom@tromey.com>
12692
12693 * python/py-value.c (value_has_field, get_field_flag)
12694 (get_field_type, valpy_getitem, convert_value_from_python): Use
12695 gdbpy_ref.
12696
ff3724f5
TT
126972017-01-10 Tom Tromey <tom@tromey.com>
12698
12699 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
12700 gdbpy_ref.
12701
0700aea5
TT
127022017-01-10 Tom Tromey <tom@tromey.com>
12703
12704 * python/py-prettyprint.c (search_pp_list)
12705 (find_pretty_printer_from_objfiles)
12706 (find_pretty_printer_from_progspace)
12707 (find_pretty_printer_from_gdb, find_pretty_printer)
12708 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
12709 gdbpy_ref.
12710
1bb44c9f
TT
127112017-01-10 Tom Tromey <tom@tromey.com>
12712
12713 * python/py-param.c (call_doc_function): Use gdbpy_ref.
12714
87ce03fd
TT
127152017-01-10 Tom Tromey <tom@tromey.com>
12716
12717 * python/py-linetable.c (build_line_table_tuple_from_pcs)
12718 (ltpy_get_all_source_lines): Use gdbpy_ref.
12719
ee0a3fb8
TT
127202017-01-10 Tom Tromey <tom@tromey.com>
12721
12722 * python/py-framefilter.c (extract_sym, extract_value)
12723 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
12724 gdbpy_ref.
12725
bf2a52fa
TT
127262017-01-10 Tom Tromey <tom@tromey.com>
12727
12728 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
12729
f59fe7f8
TT
127302017-01-10 Tom Tromey <tom@tromey.com>
12731
12732 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
12733
80bd970a
TT
127342017-01-10 Tom Tromey <tom@tromey.com>
12735
12736 * python/py-function.c (convert_values_to_python, fnpy_init): Use
12737 gdbpy_ref.
12738
d1b3de2e
TT
127392017-01-10 Tom Tromey <tom@tromey.com>
12740
12741 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
12742
3bb43384
TT
127432017-01-10 Tom Tromey <tom@tromey.com>
12744
12745 * python/py-type.c (convert_field, make_fielditem, typy_fields)
12746 (typy_range): Use gdbpy_ref.
12747
abf5651e
TT
127482017-01-10 Tom Tromey <tom@tromey.com>
12749
12750 * python/py-threadevent.c (create_thread_event_object): Use
12751 gdbpy_ref.
12752 * python/py-stopevent.c (create_stop_event_object): Simplify.
12753 (emit_stop_event): Use gdbpy_ref.
12754 * python/py-signalevent.c (create_signal_event_object): Use
12755 gdbpy_ref.
12756 * python/py-newobjfileevent.c (create_new_objfile_event_object)
12757 (emit_new_objfile_event, create_clear_objfiles_event_object)
12758 (emit_clear_objfiles_event): Use gdbpy_ref.
12759 * python/py-infevents.c (create_inferior_call_event_object)
12760 (create_register_changed_event_object)
12761 (create_memory_changed_event_object, emit_inferior_call_event)
12762 (emit_memory_changed_event, emit_register_changed_event): Use
12763 gdbpy_ref.
12764 * python/py-exitedevent.c (create_exited_event_object)
12765 (emit_exited_event): Use gdbpy_ref.
12766 * python/py-event.h (evpy_emit_event): Remove
12767 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
12768 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
12769 * python/py-continueevent.c (emit_continue_event): Use
12770 gdbpy_ref.
12771 * python/py-breakpoint.c (gdbpy_breakpoint_created)
12772 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
12773 gdbpy_ref.
12774 * python/py-bpevent.c (create_breakpoint_event_object): Use
12775 gdbpy_ref.
12776
a68ff33e
TT
127772017-01-10 Tom Tromey <tom@tromey.com>
12778
12779 * python/py-ref.h: New file.
12780
7becfd03
SM
127812017-01-10 Simon Marchi <simon.marchi@ericsson.com>
12782
12783 * cli-out.c (cli_ui_out::do_redirect): Change return type to
12784 void.
12785 * cli-out.h (cli_ui_out::do_redirect): Likewise.
12786 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
12787 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
12788 * ui-out.c (ui_out::redirect): Likewise.
12789 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
12790 * cli/cli-logging.c (set_logging_redirect): Update call site of
12791 ui_out::redirect.
12792 (handle_redirections): Likewise.
12793 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
12794 * top.c (execute_command_to_string): Likewise.
12795 * utils.c (do_ui_out_redirect_pop): Likewise.
12796
df294654
SM
127972017-01-10 Simon Marchi <simon.marchi@ericsson.com>
12798
12799 * stack.c (_initialize_stack): Update "frame" command help message.
12800
f5e6296e
IB
128012017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
12802
12803 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
12804
0e2d6fa6
YQ
128052017-01-06 Yao Qi <yao.qi@linaro.org>
12806
12807 * x86-linux-nat.h: Include gdb_proc_service.h.
12808
44d6d3f9
YQ
128092017-01-06 Yao Qi <yao.qi@linaro.org>
12810
12811 * ser-base.h: Include serial.h.
12812
656731fe
YQ
128132017-01-06 Yao Qi <yao.qi@linaro.org>
12814
12815 * ppc-linux-tdep.h: Include ppc-tdep.h.
12816
1ca8f924
YQ
128172017-01-06 Yao Qi <yao.qi@linaro.org>
12818
12819 * nat/amd64-linux-siginfo.h: Include signal.h.
12820
bc3008c4
YQ
128212017-01-06 Yao Qi <yao.qi@linaro.org>
12822
12823 * nat/aarch64-linux-hw-point.h: Include break-common.h.
12824
66c80d03
YQ
128252017-01-06 Yao Qi <yao.qi@linaro.org>
12826
12827 * mi/mi-parse.h: Include mi-cmds.h.
12828
051d2dda
YQ
128292017-01-06 Yao Qi <yao.qi@linaro.org>
12830
12831 * inf-loop.c: Don't include "target.h".
12832 * inf-loop.h: Include it here.
12833
8018d34f
YQ
128342017-01-06 Yao Qi <yao.qi@linaro.org>
12835
12836 * dfp.h: Include "dboulest.h" and "expression.h".
12837
c0b8369c
YQ
128382017-01-06 Yao Qi <yao.qi@linaro.org>
12839
12840 * ax-gdb.h: Include "ax.h".
12841
ad5cba2a
YQ
128422017-01-06 Yao Qi <yao.qi@linaro.org>
12843
12844 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
12845 with nat/gdb_ptrace.h.
12846
1c33cd7f
YQ
128472017-01-05 Yao Qi <yao.qi@linaro.org>
12848
12849 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
12850 new line.
12851 (mips64_fbsd_sigframe_init): Likewise.
12852
c988ac1d
JB
128532017-01-04 John Baldwin <jhb@FreeBSD.org>
12854
12855 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
12856 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
12857
b268007c
JB
128582017-01-04 John Baldwin <jhb@FreeBSD.org>
12859
12860 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
12861 * NEWS: Mention new FreeBSD/mips native configuration.
12862 * config/mips/fbsd.mh: New file.
12863 * configure.host: Add mips*-*-freebsd*.
12864 * mips-fbsd-nat.c: New file.
12865
387360da
JB
128662017-01-04 John Baldwin <jhb@FreeBSD.org>
12867
12868 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
12869 (ALLDEPFILES): Add mips-fbsd-tdep.c.
12870 * NEWS: Mention new FreeBSD/mips target.
12871 * configure.tgt: Add mips*-*-freebsd*.
12872 * mips-fbsd-tdep.c: New file.
12873 * mips-fbsd-tdep.h: New file.
12874
2aaaf250
YQ
128752017-01-04 Yao Qi <yao.qi@linaro.org>
12876
12877 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
12878 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
12879
61baf725
JB
128802017-01-01 Joel Brobecker <brobecker@adacore.com>
12881
6dbb839a 12882 Update copyright year range in all GDB files.
61baf725 12883
c113e7ff 128842017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 12885
c113e7ff 12886 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 12887
c113e7ff 12888For older changes see ChangeLog-2016.
c906108c
SS
12889\f
12890Local Variables:
12891mode: change-log
12892left-margin: 8
12893fill-column: 74
12894version-control: never
57da7796 12895coding: utf-8
c906108c 12896End:
This page took 5.970847 seconds and 4 git commands to generate.