Remove references to gdb64 in the testsuite
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a900ff72
TT
12017-10-12 Tom Tromey <tom@tromey.com>
2
3 * prologue-value.h (pv_area::store_would_trash): Return bool.
4 (pv_area::find_reg): Likewise.
5 * prologue-value.c (pv_area::store_would_trash): Return bool.
6 (pv_area::find_reg): Likewise.
7
f7b7ed97
TT
82017-10-12 Tom Tromey <tom@tromey.com>
9
10 * s390-linux-tdep.c (s390_store, s390_load)
11 (s390_check_for_saved, s390_analyze_prologue): Update.
12 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
13 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
14 * prologue-value.h (class pv_area): Move from prologue-value.c.
15 Change names of members. Add constructor, destructor, member
16 functions.
17 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
18 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
19 (pv_area_fetch, pv_area_scan): Don't declare.
20 * prologue-value.c (struct pv_area::area_entry): Now member of
21 pv_area.
22 (struct pv_area): Move to prologue-value.h.
23 (pv_area::pv_area): Rename from make_pv_area.
24 (pv_area::~pv_area): Rename from free_pv_area.
25 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
26 (clear_entries, find_entry, overlaps, store_would_trash, store)
27 (fetch, find_reg, scan): Now member of pv_area.
28 Remove "area" argument. Update.
29 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
30 Update.
31 * mn10300-tdep.c (push_reg, check_for_saved)
32 (mn10300_analyze_prologue): Update.
33 * mep-tdep.c (is_arg_spill, check_for_saved)
34 (mep_analyze_prologue): Update.
35 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
36 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
37 (m32c_is_struct_return, m32c_analyze_prologue): Update.
38 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
39 Update.
40 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
41 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
42
466eecee
SM
432017-10-12 Simon Marchi <simon.marchi@ericsson.com>
44
45 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
46 * linux-nat.c (linux_nat_delete_thread): New variable.
47 (lwp_free): Invoke linux_nat_delete_thread if set.
48 (linux_nat_set_delete_thread): New function.
49 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
50 thread delete callback.
51 * arm-linux-nat.c (arm_linux_delete_thread): New function.
52 (_initialize_arm_linux_nat): Assign thread delete callback.
53 * s390-linux-nat.c (s390_delete_thread): New function.
54 (_initialize_s390_nat): Assign thread delete callback.
55 * x86-linux-nat.c (x86_linux_add_target): Likewise.
56 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
57 function.
58 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
59 declaration.
60 * nat/x86-linux.c (x86_linux_delete_thread): New function.
61 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
62
f71c8822
TT
632017-10-09 Tom Tromey <tom@tromey.com>
64
65 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
66 std::string.
67 * tui/tui-layout.c (enum tui_status): Use std::string.
68
981a3fb3
TT
692017-10-11 Tom Tromey <tom@tromey.com>
70
71 * gdbthread.h (thread_command): Constify.
72 * inferior.h (detach_command): Constify.
73 * top.h (set_history, show_history): Constify.
74 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
75 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
76 * bsd-kvm.c (bsd_kvm_cmd): Constify.
77 * printcmd.c (set_command): Constify.
78 (non_const_set_command): New function.
79 * dcache.c (set_dcache_command, show_dcache_command): Constify.
80 * breakpoint.c (enable_command, disable_command, delete_command)
81 (catch_command, tcatch_command, set_breakpoint_cmd)
82 (show_breakpoint_cmd): Constify.
83 * macrocmd.c (macro_command): Constify.
84 * infcmd.c (unset_command, kill_command, detach_command)
85 (info_proc_cmd): Constify.
86 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
87 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
88 (info_auto_load_cmd): Constify.
89 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
90 (unset_tdesc_cmd): Constify.
91 * ada-lang.c (set_ada_command, show_ada_command)
92 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
93 * guile/guile.c (set_guile_command, show_guile_command)
94 (info_guile_command): Constify.
95 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
96 Constify.
97 * skip.c (skip_command): Constify.
98 * compile/compile.c (_initialize_compile): Constify.
99 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
100 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
101 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
102 (maint_btrace_pt_show_cmd): Constify.
103 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
104 Constify.
105 * python/python.c (user_show_python, user_set_python): Constify.
106 * mips-tdep.c (set_mips_command, show_mips_command)
107 (set_mipsfpu_command): Constify.
108 * record-btrace.c (cmd_record_btrace_start)
109 (cmd_set_record_btrace, cmd_show_record_btrace)
110 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
111 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
112 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
113 Constify.
114 * symfile.c (overlay_command): Constify.
115 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
116 * cli/cli-logging.c (set_logging_command, show_logging_command):
117 Constify.
118 * cli/cli-dump.c (dump_command, append_command)
119 (srec_dump_command, ihex_dump_command, verilog_dump_command)
120 (tekhex_dump_command, binary_dump_command)
121 (binary_append_command): Constify.
122 * cli/cli-decode.c (struct cmd_list_element): Change type of
123 "fun".
124 * cli/cli-cmds.c (info_command, show_command, set_debug)
125 (show_debug): Constify.
126 (show_command): Add non-const overload.
127 * top.c (set_history, show_history): Constify.
128 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
129 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
130 * target.c (target_command): Constify.
131 * sparc64-tdep.c (info_adi_command): Constify.
132 * record-full.c (cmd_record_full_start): Constify.
133 (set_record_full_command): Constify. Fix typo.
134 (show_record_full_command): Constify.
135 * thread.c (thread_command, thread_apply_command): Constify.
136 * memattr.c (dummy_cmd): Constify.
137 * value.c (function_command): Constify.
138 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
139 * probe.c (info_probes_command): Constify.
140 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
141 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
142 (show_thread_cmd, set_thread_default_cmd)
143 (show_thread_default_cmd): Constify.
144 (check_empty): Constify.
145 * tracepoint.c (tfind_command): Constify.
146 * cp-support.c (maint_cplus_command): Constify.
147 * windows-tdep.c (info_w32_command): Constify.
148 * record.c (cmd_record_start, set_record_command)
149 (show_record_command, info_record_command, cmd_record_goto):
150 Constify.
151 * ravenscar-thread.c (set_ravenscar_command)
152 (show_ravenscar_command): Constify.
153 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
154 Constify.
155 (add_internal_problem_command): Remove casts.
156 * arc-tdep.c (maintenance_print_arc_command): Constify.
157 * valprint.c (set_print, show_print, set_print_raw)
158 (show_print_raw): Constify.
159 * maint.c (maintenance_command, maintenance_info_command)
160 (maintenance_print_command, maintenance_set_cmd)
161 (maintenance_show_cmd, set_per_command_cmd)
162 (show_per_command_cmd, maintenance_check_command): Constify.
163 * language.c (set_check, show_check): Constify.
164 * typeprint.c (show_print_type, set_print_type): Constify.
165 * go32-nat.c (go32_info_dos_command): Constify.
166
fdf44873
TT
1672017-10-11 Tom Tromey <tom@tromey.com>
168
169 * breakpoint.c (prepare_re_set_context): Remove.
170 (breakpoint_re_set_one): Update. Don't use cleanups.
171 (breakpoint_re_set): Use scoped_restore, std::string, and
172 scoped_restore_current_language.
173
81b1e71c
TT
1742017-10-11 Tom Tromey <tom@tromey.com>
175
176 * breakpoint.c (commands_command_1): Use std::string.
177 (cleanup_executing_breakpoints): Remove.
178 (bpstat_do_actions_1): Use scoped_restore.
179 (bpstat_check_watchpoint): Use std::string.
180 (decode_static_tracepoint_spec): Likewise.
181 (break_range_command): Likewise.
182 (watch_command_1): Likewise.
183 (compare_breakpoints): Change argument types.
184 (clear_command): Use std::vector.
185 (cleanup_executing_breakpoints): Remove.
186 (update_global_location_list): Use unique_xmalloc_ptr.
187 (strace_command): Remove unused declaration.
188
4f9d9906
JB
1892017-10-11 John Baldwin <jhb@FreeBSD.org>
190
191 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
192 * NEWS: Mention new FreeBSD/arm native configuration.
193 * configure.host: Add arm*-*-freebsd*.
194 * configure.nat: Likewise.
195 * arm-fbsd-nat.c: New file.
196
7176dfd2
JB
1972017-10-11 John Baldwin <jhb@FreeBSD.org>
198
199 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
200 (ALLDEPFILES): Add arm-fbsd-tdep.c.
201 * NEWS: Mention new FreeBSD/arm target.
202 * configure.tgt: Add arm*-*-freebsd*.
203 * arm-fbsd-tdep.c: New file.
204 * arm-fbsd-tdep.h: New file.
205
fe220226
MR
2062017-10-11 Maciej W. Rozycki <macro@imgtec.com>
207
208 * linux-tdep.c (linux_make_corefile_notes): Remove call to
209 `gdbarch_elfcore_write_linux_prpsinfo'.
210 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
211 method.
212 (elf_internal_linux_prpsinfo): Remove declaration.
213 * gdbarch.h: Regenerate.
214 * gdbarch.c: Regenerate.
215
a2f63b2e
MR
2162017-10-11 Maciej W. Rozycki <macro@imgtec.com>
217
218 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
219 `set_gdbarch_elfcore_write_linux_prpsinfo'.
220
458ca1d0
PA
2212017-10-11 Pedro Alves <palves@redhat.com>
222
223 * breakpoint.c (reattach_breakpoints): Delete.
224 * breakpoint.h (reattach_breakpoints): Delete.
225
905014d7
SM
2262017-10-11 Simon Marchi <simon.marchi@ericsson.com>
227
228 * symfile.c (registered_sym_fns): Make struct, not typedef.
229 (DEF_VEC_O (registered_sym_fns)): Remove.
230 (symtab_fns): Change type to std::vector.
231 (add_symtab_fns): Adjust.
232 (find_sym_fns): Adjust.
233
56d704da
AK
2342017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
235
236 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
237 * arc-tdep.h (arc_arch_is_em): New function.
238 (arc_arch_is_hs): Likewise.
239
7fa29be9
EB
2402017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
241
242 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
243 parentheses in the declaration.
244 (macro_lookup_inclusion): Likewise.
245 (macro_lookup_definition): Likewise.
246 * p-lang.h (pascal_builtin_types): Likewise.
247 * tui/tui-data.c (tui_win_list): Likewise.
248 * tui/tui-data.h (tui_win_list): Likewise.
249 * utils.h (make_cleanup_free_section_addr_info): Likewise.
250
d9b477e3
KB
2512017-10-11 Mark Rages <markrages@gmail.com>
252
253 * target-memory.c (block_boundaries): Fix for block address not
254 aligned on block size.
255
65630365
PA
2562017-10-10 Pedro Alves <palves@redhat.com>
257 Tom Tromey <tom@tromey.com>
258
259 * breakpoint.c (struct captured_breakpoint_query_args)
260 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
261 (print_breakpoint): New.
262 * breakpoint.h (print_breakpoint): Declare.
263 * common/common-exceptions.h (enum return_reason): Remove
264 references to catch_exceptions.
265 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
266 Delete.
267 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
268 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
269 * gdb.h: Delete.
270 * gdbthread.h (thread_select): Declare.
271 * mi/mi-cmd-break.c: Don't include gdb.h.
272 (breakpoint_notify): Use print_breakpoint.
273 * mi/mi-cmd-catch.c: Don't include gdb.h.
274 * mi/mi-interp.c: Don't include gdb.h.
275 (mi_print_breakpoint_for_event): New.
276 (mi_breakpoint_created, mi_breakpoint_modified): Use
277 mi_print_breakpoint_for_event.
278 * mi/mi-main.c: Don't include gdb.h.
279 (mi_cmd_thread_select): Parse the global thread ID here. Use
280 thread_select instead of gdb_thread_select.
281 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
282 of using gdb_list_thread_ids.
283 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
284 FILEIO_ENOSYS here.
285 (remote_fileio_request): Use TRY/CATCH instead of
286 catch_exceptions.
287 * symfile-mem.c (struct symbol_file_add_from_memory_args)
288 (symbol_file_add_from_memory_wrapper): Delete.
289 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
290 * thread.c: Don't include gdb.h.
291 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
292 (thread_alive): Use thread_select.
293 (do_captured_thread_select): Delete, parts salvaged as ...
294 (thread_select): ... this new function.
295 (gdb_thread_select): Delete.
296
bf469271
PA
2972017-10-10 Pedro Alves <palves@redhat.com>
298 Tom Tromey <tom@tromey.com>
299
300 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
301 and reverse logic.
302 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
303 No longer macros. Instead ...
304 (enum wp_check_result): They're now values of this new
305 enumeration.
306 (watchpoint_check): Change return type to wp_check_result and
307 parameter type to bpstat.
308 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
309 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
310 catch_errors. Reverse logic of watchpoint_check call.
311 (breakpoint_re_set_one): Now returns void and takes a breakpoint
312 pointer as parameter.
313 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
314 * common/common-exceptions.c (throw_exception_sjlj): Update
315 comments to avoid mentioning catch_errors.
316 * exceptions.c (catch_errors): Delete.
317 * exceptions.h: Update comments to avoid mentioning catch_errors.
318 (catch_errors_ftype, catch_errors): Delete.
319 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
320 (hook_stop_stub): Delete.
321 (restore_selected_frame): Change return type to void, and
322 parameter type to const frame_id &.
323 (restore_infcall_control_state): Use TRY/CATCH instead of
324 catch_errors.
325 * main.c (captured_command_loop): Return void and remove
326 parameter. Remove references to catch_errors.
327 (captured_main): Use TRY/CATCH instead of catch_errors.
328 * objc-lang.c (objc_submethod_helper_data)
329 (find_objc_msgcall_submethod_helper): Delete.
330 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
331 catch_errors.
332 * record-full.c (record_full_message): Return void.
333 (record_full_message_args, record_full_message_wrapper): Delete.
334 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
335 instead of catch_errors.
336 * solib-aix.c (solib_aix_open_symbol_file_object): Change
337 parameter type to int.
338 * solib-darwin.c (open_symbol_file_object): Ditto.
339 * solib-dsbt.c (open_symbol_file_object): Ditto.
340 * solib-frv.c (open_symbol_file_object): Ditto.
341 * solib-svr4.c (open_symbol_file_object): Ditto.
342 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
343 * solib.c (update_solib_list): Use TRY/CATCH instead of
344 catch_errors.
345 * solist.h (struct target_so_ops) <open_symbol_file_object>:
346 Change type.
347 * symmisc.c (struct print_symbol_args): Remove.
348 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
349 (print_symbol): Change type.
350 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
351 and remove parameters.
352 (catch_errors): New.
353 (get_windows_debug_event): Adjust.
354
1a56bfa5
TT
3552017-10-09 Tom Tromey <tom@tromey.com>
356
357 * mi/mi-main.c (free_splay_tree): Remove.
358 (list_available_thread_groups): Use splay_tree_up.
359 * common/gdb_splay_tree.h: New file.
360
0c478e2d
TT
3612017-10-09 Tom Tromey <tom@tromey.com>
362
363 * mi/mi-main.c (do_nothing): Remove.
364 (list_available_thread_groups): Update.
365
cbd2b4e3
PA
3662017-10-09 Pedro Alves <palves@redhat.com>
367
368 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
369 reading registers when switching context.
370
a181c0bf
JB
3712017-10-09 John Baldwin <jhb@FreeBSD.org>
372
373 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
374 (fbsd_convert_siginfo): Likewise.
375 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
376
6e66f753
SM
3772017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
378
379 * configure.ac (try_guile_versions): Remove guile-2.2.
380 * configure: Regenerate.
381
890e9790
TT
3822017-10-09 Tom Tromey <tom@tromey.com>
383
384 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
385 (COMPILE.pre): Use $(CXX).
386
109483d9
PA
3872017-10-09 Pedro Alves <palves@redhat.com>
388
389 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
390 Use bool.
391 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
392 * cp-support.h (cp_remove_params): Now returns a
393 gdb::unique_xmalloc_ptr.
394 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
395 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
396 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
397 returning a gdb::unique_xmalloc_ptr.
398 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
399 * stack.c (find_frame_funname): Adjust to cp_remove_params
400 returning a gdb::unique_xmalloc_ptr.
401
791afaa2
TT
4022017-10-08 Tom Tromey <tom@tromey.com>
403
404 * dwarf2read.c (dwarf2_get_dwz_file): Use
405 gdb::unique_xmalloc_ptr.
406 (find_slot_in_mapped_hash): Likewise.
407 (dwarf2_physname): Likewise.
408 (create_dwo_unit_in_dwp_v1): Use std::string.
409 (create_dwo_unit_in_dwp_v2): Likewise.
410 (lookup_dwo_cutu): Likewise.
411 (inherit_abstract_dies): Use std::vector.
412 (read_array_type): Likewise.
413 (dwarf_decode_macros): Remove unused declaration.
414 (unsigned_int_compar): Remove.
415 (dwarf2_build_psymtabs_hard): Use scoped_restore.
416 (psymtabs_addrmap_cleanup): Remove.
417
30a9c02f
TT
4182017-10-08 Tom Tromey <tom@tromey.com>
419
420 * frame-unwind.c (frame_unwind_try_unwinder): Update.
421 * frame.h (frame_cleanup_after_sniffer): Declare.
422 (frame_prepare_for_sniffer): Return void.
423 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
424 type of argument.
425 (frame_prepare_for_sniffer): Return void.
426
757325a3
TT
4272017-10-08 Tom Tromey <tom@tromey.com>
428
429 * utils.h (make_cleanup_value_free): Remove.
430 * utils.c (do_value_free, struct cleanup): Remove.
431 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
432 Use gdb_value_up.
433 * value.h (struct value_deleter): New.
434 (gdb_value_up): New typedef.
435
b9c04fb2
TT
4362017-10-08 Tom Tromey <tom@tromey.com>
437
438 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
439 (make_cleanup_free_search_symbols): Remove.
440 (search_symbols): Return std::vector.
441 (symbol_search::compare_search_syms): Now member of
442 symbol_search. Change arguments.
443 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
444 (symtab_symbol_info, rbreak_command): Update.
445 * symtab.h (struct symbol_search) <next>: Remove.
446 Add constructors.
447 (symbol_search::operator<): New function.
448 (symbol_search::operator==): New function.
449 (search_symbols): Remove std::vector.
450 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
451 (symbol_search::compare_search_syms): Declare.
452
0d28b0a5
YQ
4532017-10-06 Yao Qi <yao.qi@linaro.org>
454
455 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
456 arch/aarch64-insn.o.
457 Remove one rule.
458 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
459
71917808
YQ
4602017-10-06 Yao Qi <yao.qi@linaro.org>
461
462 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
463 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
464 arch/arm-linux.o respectively.
465 * configure.tgt: Likewise.
466
2081b2b2
YQ
4672017-10-06 Yao Qi <yao.qi@linaro.org>
468
469 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
470 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
471
a1b85d28
PA
4722017-10-06 Pedro Alves <palves@redhat.com>
473
474 * windows-nat.c: Include <algorithm>.
475
d97987e2
YQ
4762017-10-06 Yao Qi <yao.qi@linaro.org>
477
478 * configure.tgt (i386_tobjs): New variable.
479 (amd64_tobjs): New variable.
480 Set $cpu_obs and $os_obs.
481
f38307f5
YQ
4822017-10-06 Yao Qi <yao.qi@linaro.org>
483
484 * Makefile.in (CONFIG_SRC_SUBDIR): New.
485 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
486 (clean): Remove object files and dependency files.
487 (distclean): Remove the directory.
488 * configure.ac: Invoke AC_CONFIG_COMMANDS.
489 * configure: Re-generated.
490 * configure.tgt: Replace amd64.o with arch/amd64.o.
491
2f924de6
JM
4922017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
493
494 PR build/22188
495 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
496 and SETEND.
497
2fd9d7ca
PA
4982017-10-05 Pedro Alves <palves@redhat.com>
499
500 * linux-nat.c (linux_child_follow_fork): When following the parent
501 and detaching the child, consult the parent thread's architecture
502 instead of the child's.
503
d13b8493
UW
5042017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
505
506 * ax.h: Do not include "doublest.h".
507 (union agent_val): Remove.
508
3b4b2f16
UW
5092017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
510
511 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
512 (decimal_to_string): Return std::string object.
513 (decimal_from_string): Accept std::string object. Return bool.
514 (decimal_from_integral, decimal_from_doublest): Remove.
515 (decimal_from_longest): Add prototype.
516 (decimal_from_ulongest): Likewise.
517 (decimal_to_longest): Likewise.
518 (decimal_from_doublest): Likewise.
519 * dfp.c: Do not include "gdbtypes.h" or "value.h".
520 (MAX_DECIMAL_STRING): Move here.
521 (decimal_to_string): Return std::string object.
522 (decimal_from_string): Accept std::string object. Return bool.
523 (decimal_from_integral): Remove, replace by ...
524 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
525 (decimal_to_longest): New function.
526 (decimal_from_floating): Remove, replace by ...
527 (decimal_from_doublest): ... this new function.
528 (decimal_to_doublest): Update to new decimal_to_string interface.
529
530 * value.c (unpack_long): Use decimal_to_longest.
531 * valops.c (value_cast): Use decimal_from_doublest instead of
532 decimal_from_floating. Use decimal_from_[u]longest isntead of
533 decimal_from_integral.
534 * valarith.c (value_args_as_decimal): Likewise.
535 * valprint.c (print_decimal_floating): Update to new
536 decimal_to_string interface.
537 * printcmd.c (printf_decfloat): Likewise.
538 * c-exp.y (parse_number): Update to new decimal_from_string interface.
539
1841ee5d
UW
5402017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
541
542 * doublest.h: Do not include "floatformat.h". Remove stale comments.
543 * gdbtypes.c: Include "floatformat.h".
544 * value.c: Likewise.
545 * m68k-tdep.c: Likewise.
546
547 * findvar.c: Do not include "floatformat.h".
548 * amd64-darwin-tdep.c: Likewise.
549 * arm-linux-tdep.c: Likewise.
550 * i386-darwin-tdep.c: Likewise.
551 * i387-tdep.c: Likewise.
552 * m68k-linux-tdep.c: Likewise.
553 * mep-tdep.c: Likewise.
554 * mips-tdep.c: Likewise.
555 * nios2-tdep.c: Likewise.
556 * s390-linux-tdep.c: Likewise.
557 * sparc-obsd-tdep.c: Likewise.
558 * sparc-tdep.c: Likewise.
559 * sparc64-tdep.c: Likewise.
560 * spu-tdep.c: Likewise.
561 * tic6x-tdep.c: Likewise.
562 * tilegx-tdep.c: Likewise.
563 * vax-tdep.c: Likewise.
564 * xstormy16-tdep.c: Likewise.
565 * xtensa-tdep.c: Likewise.
566
567 * top.c: Do not include "doublest.h".
568 * aarch64-tdep.c: Likewise.
569 * alpha-tdep.c: Likewise.
570 * arm-linux-tdep.c: Likewise.
571 * m68k-linux-tdep.c: Likewise.
572 * tilegx-tdep.c: Likewise.
573 * xstormy16-tdep.c: Likewise.
574
a80a6471
JB
5752017-10-05 John Baldwin <jhb@FreeBSD.org>
576
577 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
578 (mipsn32_fbsd_sigframe): Define.
579 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
580 for FreeBSD/mipsn32.
581
12c4bd7f
JB
5822017-10-05 John Baldwin <jhb@FreeBSD.org>
583
584 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
585 AT_HWCAP.
586
c91933e9
TG
5872017-10-05 Tristan Gingold <tgingold@free.fr>
588
589 * MAINTAINERS (Misc): Update my email address.
590
5cd63fda
PA
5912017-10-04 Pedro Alves <palves@redhat.com>
592
593 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
594 it instead of target_gdbarch.
595 (get_remote_state, get_remote_packet_size): Adjust
596 get_remote_arch_state calls, passing down target_gdbarch
597 explicitly.
598 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
599 'gdbarch' and use it instead of target_gdbarch.
600 (get_memory_packet_size): Adjust get_remote_arch_state calls,
601 passing down target_gdbarch explicitly.
602 (struct stop_reply) <arch>: New field.
603 (remote_parse_stop_reply): Use the stopped thread's architecture,
604 not the current inferior's. Save the architecture in the
605 stop_reply.
606 (process_stop_reply): Use the stop reply's architecture.
607 (process_g_packet, remote_fetch_registers)
608 (remote_prepare_to_store, store_registers_using_G)
609 (remote_store_registers): Adjust get_remote_arch_state calls,
610 using the regcache's architecture.
611 (remote_get_trace_status): Adjust get_remote_arch_state calls,
612 passing down target_gdbarch explicitly.
613 * spu-multiarch.c (spu_thread_architecture): Defer to the target
614 beneath instead of calling target_gdbarch.
615 * target.c (default_thread_architecture): Use the specified
616 inferior's architecture, instead of the current inferior's
617 architecture (via target_gdbarch).
618
ed4227b7
PA
6192017-10-04 Pedro Alves <palves@redhat.com>
620
621 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
622 case.
623 (regcache_print): Handle !target_has_registers here instead.
624
55b11ddf
PA
6252017-10-04 Pedro Alves <palves@redhat.com>
626
627 * frame.c (create_test_frame): Delete.
628 * frame.h (create_test_frame): Delete.
629 * gdbarch-selftests.c: Include gdbthread.h and target.h.
630 (class regcache_test): Delete.
631 (test_target_has_registers, test_target_has_stack)
632 (test_target_has_memory, test_target_prepare_to_store)
633 (test_target_store_registers): New functions.
634 (test_target_ops): New class.
635 (register_to_value_test): Error out if there's already a
636 process_stratum (or higher) target pushed. Create a fuller mock
637 environment, with mock target_ops, inferior, address space, thread
638 and inferior_ptid.
639 * progspace.c (struct address_space): Move to ...
640 * progspace.h (struct address_space): ... here.
641 * regcache.h (regcache::~regcache, regcache::raw_write)
642 [GDB_SELF_TEST]: No longer virtual.
643
4c71c105
SM
6442017-10-04 Simon Marchi <simon.marchi@ericsson.com>
645
646 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
647
73dcd72d
PA
6482017-10-04 Pedro Alves <palves@redhat.com>
649
650 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
651 out of 'between TRY and CATCH'.
652
44704526
PA
6532017-10-04 Pedro Alves <palves@redhat.com>
654
655 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
656 * common/common-exceptions.h (TRY): Open an outermost scope.
657 Expand intro comment.
658 (CATCH): Reindent.
659 (END_CATCH): Close the outermost scope.
660 * completer.c (complete_line_internal): Add missing END_CATCH.
661
bc3b087d
SDJ
6622017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
663
664 * NEWS (Changes since GDB 8.0): Add entry about new
665 'set-cwd-on-gdbserver' feature.
666 (New remote packets): Add entry for QSetWorkingDir.
667 * common/common-inferior.h (set_inferior_cwd): New prototype.
668 * infcmd.c (set_inferior_cwd): Remove "static".
669 (show_cwd_command): Expand text to include remote debugging.
670 * remote.c: Add PACKET_QSetWorkingDir.
671 (remote_protocol_features) <QSetWorkingDir>: New entry for
672 PACKET_QSetWorkingDir.
673 (extended_remote_set_inferior_cwd): New function.
674 (extended_remote_create_inferior): Call
675 "extended_remote_set_inferior_cwd".
676 (_initialize_remote): Call "add_packet_config_cmd" for
677 QSetWorkingDir.
678
d092c5a2
SDJ
6792017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
680
681 * NEWS (New commands): Mention "set/show cwd".
682 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
683 "cd" command's help text.
684 * common/common-inferior.h (get_inferior_cwd): New prototype.
685 * infcmd.c (inferior_cwd_scratch): New global variable.
686 (set_inferior_cwd): New function.
687 (get_inferior_cwd): Likewise.
688 (set_cwd_command): Likewise.
689 (show_cwd_command): Likewise.
690 (_initialize_infcmd): Add "set/show cwd" commands.
691 * inferior.h (class inferior) <cwd>: New field.
692 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
693 (fork_inferior): Change inferior's cwd before its execution.
694 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
695 to CreateProcess.
696
7da0a886
SDJ
6972017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
698
699 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
700 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
701 (COMMON_OBS): Add gdb_tilde_expand.o.
702 * common/gdb_tilde_expand.c: New file.
703 * common/gdb_tilde_expand.h: Likewise.
704
db8dd160
MR
7052017-10-03 Maciej W. Rozycki <macro@imgtec.com>
706
707 * gdbarch.sh (objfile): Remove duplicate declaration.
708 * gdbarch.h: Regenerate.
709
f8bfbf22
TT
7102017-10-03 Tom Tromey <tom@tromey.com>
711
712 * utils.c (internal_vproblem): Use string_vprintf.
713
5178ed48
TT
7142017-10-03 Tom Tromey <tom@tromey.com>
715
716 * printcmd.c (info_symbol_command): Use std::string.
717
8cff8730
TT
7182017-10-03 Tom Tromey <tom@tromey.com>
719
720 * top.c (gdb_safe_append_history): Use std::string.
721
895b8f30
TT
7222017-10-03 Tom Tromey <tom@tromey.com>
723
724 * event-top.c (stdin_event_handler): Update.
725 * main.c (captured_main_1): Update.
726 * top.h (make_delete_ui_cleanup): Remove.
727 (struct ui): Add constructor and destructor.
728 (new_ui, delete_ui): Remove.
729 * top.c (make_delete_ui_cleanup): Remove.
730 (new_ui_command): Use std::unique_ptr.
731 (delete_ui_cleanup): Remove.
732 (ui::ui): Rename from new_ui. Update.
733 (free_ui): Remove.
734 (ui::~ui): Rename from delete_ui. Update.
735
0efef640
TT
7362017-10-03 Tom Tromey <tom@tromey.com>
737
738 * symfile.c (load_progress): Use gdb::byte_vector.
739
245ad7d3
TT
7402017-10-03 Tom Tromey <tom@tromey.com>
741
742 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
743 declaration.
744 * printcmd.c (x_command): Remove unused declaration.
745 * symfile.c (symbol_file_command): Remove unused declaration.
746
e05550d7
TT
7472017-10-03 Tom Tromey <tom@tromey.com>
748
749 * utils.c (internal_vproblem): Use std::string.
750 (defaulted_query): Likewise.
751
b95de2b7
TT
7522017-10-03 Tom Tromey <tom@tromey.com>
753
754 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
755 * top.c (execute_command_to_string): Update.
756 * utils.c (make_cleanup_restore_page_info): Remove.
757 (do_restore_page_info_cleanup): Remove.
758 (set_batch_flag_and_restore_page_info):
759 New.
760 (make_cleanup_restore_page_info): Remove.
761 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
762 (~set_batch_flag_and_restore_page_info): New
763 (make_cleanup_restore_uinteger): Remove.
764 (make_cleanup_restore_integer): Remove.
765 (struct restore_integer_closure): Remove.
766 (restore_integer): Remove.
767 * utils.h (struct set_batch_flag_and_restore_page_info): New
768 class.
769 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
770 (make_cleanup_restore_page_info): Remove.
771 (make_cleanup_restore_uinteger) Remove.
772 (make_cleanup_restore_integer) Remove.
773
07036511
TT
7742017-10-03 Tom Tromey <tom@tromey.com>
775
776 * record-full.h (record_full_gdb_operation_disable_set): Return
777 scoped_restore_tmpl<int>.
778 * infrun.c (adjust_pc_after_break): Update.
779 (handle_signal_stop): Update.
780 * record-full.c (record_full_gdb_operation_disable_set): Return
781 scoped_restore_tmpl<int>.
782 (record_full_wait_1, record_full_insert_breakpoint)
783 (record_full_remove_breakpoint, record_full_save)
784 (record_full_goto_insn): Update.
785
45320ffa
TT
7862017-10-02 Tom Tromey <tom@tromey.com>
787
788 PR rust/22236:
789 * rust-lang.c (rust_val_print_str): New function.
790 (val_print_struct): Call it.
791 (rust_subscript): Preserve name of slice type.
792
b3e3859b
TT
7932017-10-02 Tom Tromey <tom@tromey.com>
794
795 * rust-lang.c (rust_subscript): Handle slices in
796 EVAL_AVOID_SIDE_EFFECTS case.
797
01af5e0d
TT
7982017-10-02 Tom Tromey <tom@tromey.com>
799
800 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
801
888e3ddb
TT
8022017-10-02 Tom Tromey <tom@tromey.com>
803
804 * rust-lang.h (rust_slice_type): Add "extern".
805
cc536b21
PA
8062017-10-02 Tom Tromey <tom@tromey.com>
807 Pedro Alves <palves@redhat.com>
808
809 * ada-lang.h (ada_exc_info::operator<): Make const.
810 (ada_exc_info::operator==): Make const.
811 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
812 Make const.
813
386c8614
TT
8142017-09-29 Tom Tromey <tom@tromey.com>
815
816 * target.c (read_whatever_is_readable): Change type of "result".
817 Update.
818 (free_memory_read_result_vector): Remove.
819 (read_memory_robust): Change return type. Update.
820 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
821 bin2hex, std::string.
822 * target.h (memory_read_result_s): Remove typedef.
823 (free_memory_read_result_vector): Remove.
824 (read_memory_robust): Return std::vector.
825
789c4b5e
TT
8262017-09-29 Tom Tromey <tom@tromey.com>
827
828 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
829
ab816a27
TT
8302017-09-29 Tom Tromey <tom@tromey.com>
831
832 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
833 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
834 operator< and operator==.
835 (ada_exceptions_list): Return a std::vector.
836 * ada-lang.c (ada_exc_info::operator<): Rename from
837 compare_ada_exception_info.
838 (ada_exc_info::operator==): New.
839 (sort_remove_dups_ada_exceptions_list): Change type of
840 "exceptions".
841 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
842 (ada_add_global_exceptions): Likewise.
843 (ada_exceptions_list_1): Return a std::vector.
844 (ada_exceptions_list): Likewise.
845
52f9abe4
TT
8462017-09-29 Tom Tromey <tom@tromey.com>
847
848 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
849 'std::set *'.
850 (print_one_inferior): Update.
851 (free_vector_of_ints): Remove.
852 (list_available_thread_groups): Change "ids" to std::set.
853 (mi_cmd_list_thread_groups): Update.
854 (struct collect_cores_data) <core>: Now a std::set.
855 (collect_cores): Update.
856 (unique): Remove.
857 (print_one_inferior): Update.
858
dcd5ddcc
TT
8592017-09-29 Tom Tromey <tom@tromey.com>
860
861 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
862 (mi_execute_async_cli_command): Likewise.
863 (mi_cmd_trace_frame_collected): Use field_fmt.
864
45d288cc
TT
8652017-09-29 Tom Tromey <tom@tromey.com>
866
867 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
868 gdb::byte_vector.
869
6afe2f4a
TT
8702017-09-29 Tom Tromey <tom@tromey.com>
871
872 * mi/mi-parse.c (mi_parse): Remove unused declaration.
873
9813429a
TT
8742017-09-29 Tom Tromey <tom@tromey.com>
875
876 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
877
2d6960b4
TT
8782017-09-29 Tom Tromey <tom@tromey.com>
879
880 * varobj.h (varobj_gen_name): Return std::string.
881 * varobj.c (varobj_gen_name): Return std::string.
882 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
883 (mi_cmd_var_delete): Don't copy "name".
884
784c453a
TT
8852017-09-29 Tom Tromey <tom@tromey.com>
886
887 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
888 (mi_cmd_break_insert_1): Update.
889
a9bc57b9
TT
8902017-09-29 Tom Tromey <tom@tromey.com>
891
892 * target.h (make_scoped_defer_target_commit_resume): Update.
893 * target.c (make_scoped_defer_target_commit_resume): Rename from
894 make_cleanup_defer_target_commit_resume. Return a
895 scoped_restore.
896 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
897
9754d8c4
TT
8982017-09-29 Tom Tromey <tom@tromey.com>
899
900 * main.c (captured_main_1): Remove unused declaration.
901 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
902
99ef965c
TT
9032017-09-29 Tom Tromey <tom@tromey.com>
904
905 * symtab.c (search_symbols): Remove unused outer cleanup.
906 (make_source_files_completion_list): Remove unused declaration.
907
42518ba7
TT
9082017-09-29 Tom Tromey <tom@tromey.com>
909
910 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
911
726b2169
TT
9122017-09-29 Tom Tromey <tom@tromey.com>
913
914 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
915 gdb::byte_vector.
916
55b06432
TT
9172017-09-29 Tom Tromey <tom@tromey.com>
918
919 * complaints.c (vcomplaint): Use std::string.
920
8abcee91
TT
9212017-09-29 Tom Tromey <tom@tromey.com>
922
923 * tracepoint.c (trace_variable_command): Use std::string.
924 (encode_actions_1): Remove unused declarations.
925 (create_tsv_from_upload): Use std::string.
926
6ad94bc7
TT
9272017-09-29 Tom Tromey <tom@tromey.com>
928
929 * cp-support.c (gdb_demangle): Use std::string.
930
2003f3d8
TT
9312017-09-29 Tom Tromey <tom@tromey.com>
932
933 * stack.c (parse_frame_specification): Use std::string
934 (info_frame_command): Use gdb::unique_xmalloc_ptr.
935
8f8accb5
TT
9362017-09-29 Tom Tromey <tom@tromey.com>
937
938 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
939
200aa7b1
TT
9402017-09-29 Tom Tromey <tom@tromey.com>
941
942 * utils.c (vfprintf_maybe_filtered): Use std::string.
943 (vfprintf_unfiltered): Likewise.
944
606aae8a
TT
9452017-09-29 Tom Tromey <tom@tromey.com>
946
947 * event-top.c (top_level_prompt): Return std::string.
948 (display_gdb_prompt): Update.
949
bd413795
TT
9502017-09-29 Tom Tromey <tom@tromey.com>
951
952 * unittests/common-utils-selftests.c (format): New function.
953 (string_vprintf_tests): New function.
954 (_initialize_common_utils_selftests): Register new tests.
955 * common/common-utils.c (string_vprintf): New function.
956 * common/common-utils.h (string_vprintf): Declare.
957
256642e8
PA
9582017-09-29 Pedro Alves <palves@redhat.com>
959
960 * common/rsp-low.c (unpack_varlen_hex): Constify.
961 * common/rsp-low.h (unpack_varlen_hex): Constify.
962 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
963 Constify.
964 * remote.c (remote_set_permissions, read_ptid)
965 (remote_current_thread, remote_get_threads_with_qthreadinfo)
966 (remote_static_tracepoint_marker_at)
967 (remote_static_tracepoint_markers_by_strid)
968 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
969 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
970 (parse_tracepoint_definition, parse_tsv_definition)
971 (parse_static_tracepoint_marker_definition): Constify.
972 * tracepoint.h (parse_static_tracepoint_marker_definition)
973 (parse_trace_status, parse_tracepoint_status)
974 (parse_tracepoint_definition, parse_tsv_definition): Constify.
975
b6bb3468
PA
9762017-09-29 Pedro Alves <palves@redhat.com>
977
978 * remote.c (target_buf, target_buf_size): Delete.
979 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
980 Use the connection's packet buffer instead.
981 All callers adjusted.
982 (_initialize_remote): Remove references to target_buf and
983 target_buf_size.
984
b2f8eb7a
PA
9852017-09-28 Pedro Alves <palves@redhat.com>
986
987 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
988 unittests/common-utils-selftests.c.
989 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
990 (COMMON_OBS): Remove utils-selftests.o.
991 * utils-selftests.c: Move to ...
992 * unittests/common-utils-selftests.c: ... here and rename self
993 test to "string_printf".
994
08302ed2
DE
9952017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
996
997 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
998 having NULL cus or tus.
999
96a5a1d3
UW
10002017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
1001
1002 * arm-tdep.c: (convert_from_extended): Remove.
1003 (convert_to_extended): Likewise.
1004 (arm_extract_return_value): Use convert_typed_floating.
1005 (arm_store_return_value): Likewise.
1006
1007 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
1008 * sh-tdep.c: Do not include "floatformat.h".
1009 (sh_littlebyte_bigword_type): New function.
1010 (sh_register_convert_to_virtual): Use convert_typed_floating.
1011 (sh_register_convert_to_raw): Likewise.
1012 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
1013 (sh64_littlebyte_bigword_type): New function.
1014 (sh64_extract_return_value): Use convert_typed_floating.
1015 (sh64_register_convert_to_virtual): Likewise.
1016 (sh64_register_convert_to_raw): Likewise.
1017
0db7851f
UW
10182017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
1019
1020 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
1021 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
1022
1023 * gdbtypes.h (union type_specific): Make field floatformat hold
1024 just a single struct floatformat, not an array.
1025 (floatformat_from_type): Move here.
1026 * gdbtypes.c (floatformat_from_type): Move here. Update to
1027 changed TYPE_FLOATFORMAT definition.
1028 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
1029 (recursive_dump_type): Likewise.
1030 (init_float_type): Install correct floatformat for byte order.
1031 (arch_float_type): Likewise.
1032
77b7c781
UW
10332017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
1034
1035 * gdbtypes.c (init_type): Change incoming argument from
1036 length-in-bytes to length-in-bits. Assert length is a
1037 multiple of TARGET_CHAR_BITS.
1038 (arch_type, arch_flags_type): Likewise.
1039 (init_integer_type): Update call to init_type.
1040 (init_character_type): Likewise.
1041 (init_boolean_type): Likewise.
1042 (init_float_type): Likewise.
1043 (init_decfloat_type): Likewise.
1044 (init_complex_type): Likewise.
1045 (init_pointer_type): Likewise.
1046 (objfile_type): Likewise.
1047 (arch_integer_type): Update call to arch_type.
1048 (arch_character_type): Likewise.
1049 (arch_boolean_type): Likewise.
1050 (arch_float_type): Likewise.
1051 (arch_decfloat_type): Likewise.
1052 (arch_complex_type): Likewise.
1053 (arch_pointer_type): Likewise.
1054 (gdbtypes_post_init): Likewise.
1055
1056 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
1057 (read_base_type): Likewise.
1058 * mdebugread.c (basic_type): Likewise.
1059 * stabsread.c (dbx_init_float_type): Likewise.
1060 (rs6000_builtin_type): Likewise.
1061 (read_range_type): Likewise. Also, fix call to init_integer_type
1062 with erroneous length argument.
1063
1064 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
1065 * d-lang.c (build_d_types): Likewise.
1066 * f-lang.c (build_fortran_types): Likewise.
1067 * go-lang.c (build_go_types): Likewise.
1068 * opencl-lang.c (build_opencl_types): Likewise.
1069 * jit.c (finalize_symtab): Likewise.
1070 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
1071 (build_std_type_info_type): Likewise.
1072 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
1073 update call to arch_flags_type.
1074
1075 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
1076 arch_type.
1077 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
1078 * windows-tdep.c (windows_get_tlb_type): Likewise.
1079
1080 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
1081 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
1082 * m32c-tdep.c (make_types): Likewise.
1083 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
1084 (rl78_psw_type): Update call to arch_flags_type.
1085 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
1086 * rx-tdep.c (rx_psw_type): Likewise.
1087 (rx_fpsw_type): Likewise.
1088 * sparc-tdep.c (sparc_psr_type): Likewise.
1089 (sparc_fsr_type): Likewise.
1090 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
1091 (sparc64_ccr_type): Likewise.
1092 (sparc64_fsr_type): Likewise.
1093 (sparc64_fprs_type): Likewise.
1094
f21b4d5c
TT
10952017-09-27 Tom Tromey <tom@tromey.com>
1096
1097 * findcmd.c (find_command): Constify.
1098
643c2ffa
TT
10992017-09-27 Tom Tromey <tom@tromey.com>
1100
1101 * ada-tasks.c (task_command_1, task_command): Constify.
1102
510e5e56
TT
11032017-09-27 Tom Tromey <tom@tromey.com>
1104
1105 * symtab.c (maintenance_print_symbol_cache)
1106 (maintenance_flush_symbol_cache)
1107 (maintenance_print_symbol_cache_statistics): Constify.
1108
e503b191
TT
11092017-09-27 Tom Tromey <tom@tromey.com>
1110
1111 * inferior.c (detach_inferior_command, kill_inferior_command)
1112 (inferior_command): Constify.
1113
4e001312
TT
11142017-09-27 Tom Tromey <tom@tromey.com>
1115
1116 * regcache.c (regcache_print, maintenance_print_registers)
1117 (maintenance_print_raw_registers)
1118 (maintenance_print_cooked_registers)
1119 (maintenance_print_register_groups)
1120 (maintenance_print_remote_registers): Constify.
1121
77763700
TT
11222017-09-27 Tom Tromey <tom@tromey.com>
1123
1124 * printcmd.c (map_display_numbers, undisplay_command)
1125 (enable_disable_display_command, enable_display_command)
1126 (disable_display_command): Constify.
1127
4495129a
TT
11282017-09-27 Tom Tromey <tom@tromey.com>
1129
1130 * breakpoint.h (delete_command): Don't declare.
1131 * breakpoint.c (delete_command, enable_once_command)
1132 (enable_count_command, enable_delete_command, breakpoint_1)
1133 (maintenance_info_breakpoints, stopin_command, stopat_command)
1134 (delete_command, delete_trace_command, save_breakpoints)
1135 (save_breakpoints_command, save_tracepoints_command): Constify.
1136
3088cf40
TT
11372017-09-27 Tom Tromey <tom@tromey.com>
1138
1139 * macrocmd.c (macro_expand_command, macro_expand_once_command)
1140 (skip_ws, extract_identifier, macro_define_command)
1141 (macro_undef_command, macro_list_command): Constify.
1142
69f476a3
TT
11432017-09-27 Tom Tromey <tom@tromey.com>
1144
1145 * infcmd.c (environment_info, set_environment_command)
1146 (unset_environment_command, path_info, info_proc_cmd_1)
1147 (info_proc_cmd_mappings, info_proc_cmd_stat)
1148 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
1149 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
1150
c4a3e68e
TT
11512017-09-27 Tom Tromey <tom@tromey.com>
1152
1153 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
1154 Constify.
1155
c9d31bd6
TT
11562017-09-27 Tom Tromey <tom@tromey.com>
1157
1158 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
1159
1f3f85eb
TT
11602017-09-27 Tom Tromey <tom@tromey.com>
1161
1162 * demangle.c (demangle_command): Constify.
1163
9c504b5d
TT
11642017-09-27 Tom Tromey <tom@tromey.com>
1165
1166 * progspace.c (maintenance_info_program_spaces_command):
1167 Constify.
1168
6663cf91
TT
11692017-09-27 Tom Tromey <tom@tromey.com>
1170
1171 * compile/compile.c (check_raw_argument, compile_file_command)
1172 (compile_code_command, compile_print_command): Constify.
1173
34e5fa26
TT
11742017-09-27 Tom Tromey <tom@tromey.com>
1175
1176 * reggroups.c (maintenance_print_reggroups): Constify.
1177
8384c356
TT
11782017-09-27 Tom Tromey <tom@tromey.com>
1179
1180 * dwarf2read.c (save_gdb_index_command): Constify.
1181
884beb0c
TT
11822017-09-27 Tom Tromey <tom@tromey.com>
1183
1184 * stap-probe.c (info_probes_stap_command): Constify.
1185
e0b2930c
TT
11862017-09-27 Tom Tromey <tom@tromey.com>
1187
1188 * fork-child.c (unset_exec_wrapper_command): Constify.
1189
f938677d
TT
11902017-09-27 Tom Tromey <tom@tromey.com>
1191
1192 * btrace.c (get_uint, get_context_size, no_chunk)
1193 (maint_btrace_packet_history_cmd)
1194 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
1195 (maint_info_btrace_cmd): Constify.
1196
8949cb87
TT
11972017-09-27 Tom Tromey <tom@tromey.com>
1198
1199 * reverse.c (delete_bookmark_command): Constify.
1200
ac88e2de
TT
12012017-09-27 Tom Tromey <tom@tromey.com>
1202
1203 * remote.c (set_memory_packet_size)
1204 (set_memory_write_packet_size, show_memory_write_packet_size)
1205 (set_memory_read_packet_size, show_memory_read_packet_size)
1206 (compare_sections_command, packet_command, remote_put_command)
1207 (remote_get_command, remote_delete_command): Constify.
1208
bd4c9dfe
TT
12092017-09-27 Tom Tromey <tom@tromey.com>
1210
1211 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
1212 (set_mipsfpu_double_command, set_mipsfpu_none_command)
1213 (set_mipsfpu_auto_command): Constify.
1214
5e93d4c6
TT
12152017-09-27 Tom Tromey <tom@tromey.com>
1216
1217 * cli/cli-cmds.h (cd_command): Constify.
1218 * cli/cli-cmds.c (cd_command): Constify.
1219
fc41a75b
TT
12202017-09-27 Tom Tromey <tom@tromey.com>
1221
1222 * thread.c (thread_name_command, thread_find_command): Constify.
1223
67810076
TT
12242017-09-27 Tom Tromey <tom@tromey.com>
1225
1226 * probe.c (enable_probes_command, disable_probes_command):
1227 Constify.
1228
1d8b34a7
TT
12292017-09-27 Tom Tromey <tom@tromey.com>
1230
1231 * symfile.c (symbol_file_command): Constify.
1232 * gdbcore.h (deprecated_file_changed_hook): Constify.
1233 * exec.c (deprecated_file_changed_hook, exec_file_command)
1234 (file_command): Constify.
1235 * defs.h (symbol_file_command): Constify.
1236
442019e1
TT
12372017-09-27 Tom Tromey <tom@tromey.com>
1238
1239 * remote-fileio.c (set_system_call_allowed)
1240 (show_system_call_allowed): Constify.
1241
2983f7cb
TT
12422017-09-27 Tom Tromey <tom@tromey.com>
1243
1244 * tracepoint.c (delete_trace_variable_command)
1245 (tfind_end_command, tfind_start_command, tfind_pc_command)
1246 (tfind_tracepoint_command, tfind_line_command)
1247 (tfind_range_command, tfind_outside_command): Constify.
1248
4fd41b24
TT
12492017-09-27 Tom Tromey <tom@tromey.com>
1250
1251 * ax-gdb.c (maint_agent_printf_command, agent_command)
1252 (agent_eval_command): Constify.
1253
f2fc3015
TT
12542017-09-27 Tom Tromey <tom@tromey.com>
1255
1256 * tracepoint.c (info_scope_command): Constify.
1257 * python/python.c (gdbpy_decode_line): Constify.
1258 * python/py-breakpoint.c (bppy_init): Constify.
1259 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
1260 * location.h: (new_linespec_location)
1261 (string_to_event_location_basic, string_to_event_location):
1262 Constify.
1263 * location.c (new_linespec_location)
1264 (string_to_event_location_basic, string_to_event_location):
1265 Constify.
1266 * linespec.h (decode_line_with_current_source)
1267 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
1268 * linespec.c (linespec_lex_to_end)
1269 (decode_line_with_current_source)
1270 (decode_line_with_last_displayed): Constify.
1271 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
1272 Constify.
1273 * cli/cli-cmds.c (edit_command, list_command): Constify.
1274 * breakpoint.h (until_break_command, watch_command_wrapper)
1275 (awatch_command_wrapper, rwatch_command_wrapper)
1276 (init_ada_exception_breakpoint): Constify.
1277 * breakpoint.c (break_command_1, dprintf_command)
1278 (break_range_command, watch_command_wrapper)
1279 (rwatch_command_wrapper, awatch_command_wrapper)
1280 (until_break_command, init_ada_exception_breakpoint)
1281 (strace_marker_create_sals_from_location, trace_command)
1282 (ftrace_command, strace_command, struct tracepoint): Constify.
1283 * ax-gdb.c (agent_command_1): Constify.
1284 * ada-lang.c (ada_exception_sal): Constify.
1285
8c2f95f4
TT
12862017-09-27 Tom Tromey <tom@tromey.com>
1287
1288 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
1289 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
1290 (get_context_size, no_chunk, get_insn_history_modifiers)
1291 (cmd_record_insn_history, get_call_history_modifiers)
1292 (cmd_record_call_history): Constify.
1293
a0d65762
TT
12942017-09-27 Tom Tromey <tom@tromey.com>
1295
1296 * source.c (show_substitute_path_command)
1297 (unset_substitute_path_command, set_substitute_path_command):
1298 Constify.
1299
58971144
TT
13002017-09-27 Tom Tromey <tom@tromey.com>
1301
1302 * typeprint.c (maintenance_print_type): Constify.
1303 * maint.c (maintenance_dump_me, maintenance_demangle)
1304 (maintenance_time_display, maintenance_info_sections)
1305 (maintenance_print_statistics, maintenance_deprecate)
1306 (maintenance_undeprecate): Constify.
1307 (maintenance_do_deprecate): Constify. Use std::string.
1308 (maintenance_selftest): Constify.
1309 * gdbtypes.h (maintenance_print_type): Constify.
1310
c482f52c
TT
13112017-09-27 Tom Tromey <tom@tromey.com>
1312
1313 * hppa-tdep.c (unwind_command): Constify.
1314
e100df1a
TT
13152017-09-27 Tom Tromey <tom@tromey.com>
1316
1317 * target-descriptions.c (unset_tdesc_filename_cmd)
1318 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
1319 Constify.
1320
31d56ade
TT
13212017-09-27 Tom Tromey <tom@tromey.com>
1322
1323 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
1324
b961da0b
TT
13252017-09-27 Tom Tromey <tom@tromey.com>
1326
1327 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
1328
e2d8ae16
TT
13292017-09-27 Tom Tromey <tom@tromey.com>
1330
1331 * tui/tui-regs.c (tui_reg_command): Constify.
1332
863779b0
TT
13332017-09-27 Tom Tromey <tom@tromey.com>
1334
1335 * skip.c (skip_file_command, skip_function_command)
1336 (skip_enable_command, skip_disable_command, skip_delete_command):
1337 Constify.
1338
cdb34d4a
TT
13392017-09-27 Tom Tromey <tom@tromey.com>
1340
1341 * record-btrace.c (cmd_record_btrace_bts_start)
1342 (cmd_record_btrace_pt_start): Constify.
1343
e99c83e7
TT
13442017-09-27 Tom Tromey <tom@tromey.com>
1345
1346 * symmisc.c (maintenance_print_symbols)
1347 (maintenance_print_msymbols, maintenance_print_objfiles)
1348 (maintenance_info_symtabs, maintenance_check_symtabs)
1349 (maintenance_expand_symtabs, maintenance_info_line_tables):
1350 Constify.
1351
32faf971
TT
13522017-09-27 Tom Tromey <tom@tromey.com>
1353
1354 * top.c (new_ui_command): Constify.
1355
2cf311eb
TT
13562017-09-27 Tom Tromey <tom@tromey.com>
1357
1358 * symfile.c (add_symbol_file_command)
1359 (remove_symbol_file_command, list_overlays_command)
1360 (map_overlay_command, unmap_overlay_command)
1361 (overlay_auto_command, overlay_manual_command)
1362 (overlay_off_command, overlay_load_command): Constify.
1363
e6738699
TT
13642017-09-27 Tom Tromey <tom@tromey.com>
1365
1366 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
1367 (info_spu_mailbox_command, info_spu_dma_command)
1368 (info_spu_proxydma_command): Constify.
1369
aa360cd5
TT
13702017-09-27 Tom Tromey <tom@tromey.com>
1371
1372 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
1373
898241a5
TT
13742017-09-27 Tom Tromey <tom@tromey.com>
1375
1376 * cli/cli-script.c (user_defined_command): Constify.
1377
2d0ac106
TT
13782017-09-27 Tom Tromey <tom@tromey.com>
1379
1380 * cli/cli-dump.c (dump_memory_command, dump_value_command)
1381 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
1382 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
1383 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
1384 (dump_binary_value, append_binary_memory, append_binary_value):
1385 Constify.
1386 (struct dump_context) <func>: Constify.
1387 (add_dump_command): Update.
1388
dede02ce
TT
13892017-09-27 Tom Tromey <tom@tromey.com>
1390
1391 * cli/cli-cmds.c (show_version, show_configuration)
1392 (source_command, show_user): Constify.
1393
d3cb6b99
TT
13942017-09-27 Tom Tromey <tom@tromey.com>
1395
1396 * target.c (maintenance_print_target_stack): Constify.
1397
1970a12f
TT
13982017-09-27 Tom Tromey <tom@tromey.com>
1399
1400 * interps.c (interpreter_exec_cmd): Constify.
1401
41243651
TT
14022017-09-27 Tom Tromey <tom@tromey.com>
1403
1404 * record-full.c (cmd_record_full_restore): Constify.
1405
4465d9db
TT
14062017-09-27 Tom Tromey <tom@tromey.com>
1407
1408 * memattr.c (enable_mem_command, disable_mem_command)
1409 (delete_mem_command): Constify.
1410
ad25e423
TT
14112017-09-27 Tom Tromey <tom@tromey.com>
1412
1413 * value.c (show_convenience): Constify.
1414
d64097b1
TT
14152017-09-27 Tom Tromey <tom@tromey.com>
1416
1417 * gdbcore.h (core_file_command): Update.
1418 * corefile.c (core_file_command): Constify.
1419
4d4589ef
TT
14202017-09-27 Tom Tromey <tom@tromey.com>
1421
1422 * user-regs.c (maintenance_print_user_registers): Constify.
1423
32a7bf17
TT
14242017-09-27 Tom Tromey <tom@tromey.com>
1425
1426 * cp-namespace.c (maintenance_cplus_namespace): Constify.
1427
4a475551
TT
14282017-09-27 Tom Tromey <tom@tromey.com>
1429
1430 * cp-support.c (first_component_command): Constify.
1431
990b9f9f
TT
14322017-09-27 Tom Tromey <tom@tromey.com>
1433
1434 * psymtab.c (maintenance_print_psymbols)
1435 (maintenance_info_psymtabs, maintenance_check_psymtabs):
1436 Constify.
1437
c281872e
TT
14382017-09-27 Tom Tromey <tom@tromey.com>
1439
1440 * windows-tdep.c (display_tib): Constify.
1441
5b64bf74
TT
14422017-09-27 Tom Tromey <tom@tromey.com>
1443
1444 * linux-fork.c (delete_checkpoint_command)
1445 (detach_checkpoint_command): Constify.
1446
4ada038f
TT
14472017-09-27 Tom Tromey <tom@tromey.com>
1448
1449 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
1450
57f5a81b
TT
14512017-09-27 Tom Tromey <tom@tromey.com>
1452
1453 * arc-tdep.c (dump_arc_instruction_command): Constify.
1454
b0a8e6c4
TT
14552017-09-27 Tom Tromey <tom@tromey.com>
1456
1457 * valprint.c (set_radix, show_radix): Constify.
1458
8d97dc1c
TT
14592017-09-27 Tom Tromey <tom@tromey.com>
1460
1461 * dtrace-probe.c (info_probes_dtrace_command): Constify.
1462
eb7c454d
TT
14632017-09-27 Tom Tromey <tom@tromey.com>
1464
1465 * command.h (not_just_help_class_command): Update.
1466 * cli/cli-decode.h (not_just_help_class_command): Update.
1467 * cli/cli-decode.c (not_just_help_class_command): Constify.
1468
e4e33335
TT
14692017-09-27 Tom Tromey <tom@tromey.com>
1470
1471 * gdb_bfd.c (maintenance_info_bfds): Constify.
1472
0450cc4c
TT
14732017-09-27 Tom Tromey <tom@tromey.com>
1474
1475 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
1476 overloads.
1477 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
1478 (do_const_cfunc): New function.
1479 (cmd_cfunc_eq): New overload.
1480 (cli_user_command_p): Check do_const_cfunc.
1481 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
1482 const_cfunc.
1483 * command.h (add_cmd): Add const overload and no-function
1484 overload.
1485 (set_cmd_cfunc): Add const overload.
1486 (cmd_const_cfunc_ftype): Declare.
1487 (cmd_cfunc_eq): Add const overload.
1488 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
1489 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
1490 overload.
1491
a9bbfbd8
TT
14922017-09-27 Tom Tromey <tom@tromey.com>
1493
1494 * macroexp.c (get_next_token_for_substitution): New function.
1495 (substitute_args): Call it. Check for __VA_OPT__.
1496
5230b05a
WT
14972017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
1498 Pedro Alves <palves@redhat.com>
1499
1500 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
1501 producer_is_icc_lt_14.
1502 (producer_is_icc_lt_14): New function.
1503 (check_producer): Add code for checking version of ICC.
1504 (producer_is_icc): Move to producer.c.
1505 (read_structure_type): Restrict ICC workaround to ICC<14.
1506 * producer.c: Include selftest.h.
1507 (producer_is_icc, producer_parsing_tests, _initialize_producer):
1508 New functions.
1509 * producer.h (producer_is_icc): New declaration.
1510
b32b108a
WT
15112017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
1512
1513 * Makefile.in (SFILES): Add producer.c.
1514 (COMMON_OBS): Add producer.o
1515 * amd64-tdep.c (producer.h): Add new include.
1516 * dwarf2read.c (producer.h): Add new include.
1517 * producer.c: New file.
1518 * producer.h: New file.
1519 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
1520 producer.c.
1521 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
1522 producer.h.
1523
5007d765
MK
15242017-09-26 Matthias Klose <doko@ubuntu.com>
1525
1526 * configure.ac: Search ncursesw before ncurses.
1527 Check ncursesw/ncurses.h before ncurses/ncurses.h.
1528 * gdb_curses.h: Include <ncursesw/ncurses.h>
1529 * config.in, configure: Regenerate.
1530
281c4447
RO
15312017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1532
1533 PR gdb/22185
1534 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
1535 obsolete.
1536 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
1537 Remove i386sol2 support.
1538 * configure.nat <i386sol2>: Remove.
1539 <sol2-64>: Fold into ...
1540 <sol2>: ... this.
1541 Move common settings to default section.
1542 Add sol-thread.o.
1543 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
1544 x86_64-*-solaris2.1[0-9]*>: Rename to ...
1545 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
1546 <i[34567]86-*-solaris*>: Remove.
1547 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
1548
1549 * configure.ac: Remove wctype in libw check.
1550 (_MSE_INT_H): Don't define on Solaris 7-9.
1551 <solaris*>: Remove libthread_db.so.1 check.
1552 * configure: Regenerate.
1553 * config.in: Regenerate.
1554
1555 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
1556 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
1557 (gdb_ps_size_t): Remove.
1558 Use base types in users.
1559 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
1560
1561 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
1562
39b06c20
RO
15632017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1564
1565 PR build/22206
1566 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
1567 (adi_is_addr_mapped): Likewise.
1568 (PSR_ICC): Don't redefine.
1569 (PSR_IMPL): Likewise.
1570
6c3e20f1
TT
15712017-09-25 Tom Tromey <tom@tromey.com>
1572
1573 * regcache.c (regcache::dump): Use string_printf.
1574
b292235f
TT
15752017-09-25 Tom Tromey <tom@tromey.com>
1576
1577 * regcache.c (class regcache_invalidator): New.
1578 (struct register_to_invalidate): Remove.
1579 (make_cleanup_regcache_invalidate): Remove.
1580 (regcache::raw_write): Use regcache_invalidator.
1581
9ac86b52
TT
15822017-09-25 Tom Tromey <tom@tromey.com>
1583
1584 * spu-tdep.c (spu2ppu_sniffer): Update.
1585 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
1586 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
1587 Remove.
1588 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
1589 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
1590 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
1591 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
1592 (frame_pop): Update.
1593
c0e383c6
TT
15942017-09-25 Tom Tromey <tom@tromey.com>
1595
1596 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
1597 * regcache.h (regcache_xfree): Don't declare.
1598 * regcache.c (regcache_xfree): Remove.
1599 (do_regcache_xfree): Use delete.
1600 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
1601 * linux-fork.c (free_fork): Use delete.
1602 (fork_save_infrun_state): Likewise.
1603 * jit.c (jit_dealloc_cache): Use delete.
1604 * infrun.c (discard_infcall_suspend_state): Use delete.
1605
791199cc
TT
16062017-09-25 Tom Tromey <tom@tromey.com>
1607
1608 * regcache.h (regcache_xmalloc): Don't declare.
1609 (regcache_raw_set_cached_value): Update comment.
1610 * regcache.c (regcache_xmalloc): Remove.
1611 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
1612 * jit.c (jit_frame_sniffer): Use new.
1613 * frame.c (frame_save_as_regcache): Use new.
1614
289e23aa
AA
16152017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1616
1617 * NEWS: Advertise support for guarded-storage registers on IBM z.
1618
1b63490c
AA
16192017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1620
1621 * s390-linux-nat.c (have_regset_gs): New static variable.
1622 (s390_linux_fetch_inferior_registers): Handle guarded-storage
1623 control block and guarded-storage broadcast control regsets.
1624 (s390_read_description): Detect whether the target has
1625 guarded-storage support, return appropriate tdesc.
1626 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
1627 (features/s390x-gs-linux64.c): Likewise.
1628 (struct gdbarch_tdep) <have_gs>: New field.
1629 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
1630 (s390_gsbc_regset): New variables.
1631 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
1632 and s390_gsbc_regset, if applicable.
1633 (s390_core_read_description): Check whether core file was from a
1634 target with guarded-storage support; include appropriate regsets.
1635 (s390_gdbarch_init): Add registers for guarded-storage support.
1636 (_initialize_s390_tdep): Initialize new target descriptions that
1637 include registers for guarded-storage support.
1638 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
1639 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
1640 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
1641 (S390_NUM_REGS): Adjust macro definition.
1642 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
1643 (tdesc_s390x_gs_linux64): New declarations.
1644
96235dc1
AA
16452017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
1646
1647 * features/s390-gs-linux64.xml: New file.
1648 * features/s390-gs.xml: New file.
1649 * features/s390-gsbc.xml: New file.
1650 * features/s390x-gs-linux64.xml: New file.
1651 * features/Makefile (WHICH): Add s390-gs-linux64 and
1652 s390x-gs-linux64.
1653 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
1654 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
1655 * features/s390-gs-linux64.c: New generated file.
1656 * features/s390x-gs-linux64.c: New file.
1657 * regformats/s390-gs-linux64.dat: New file.
1658 * regformats/s390x-gs-linux64.dat: New file.
1659
b4a7c699
TT
16602017-09-23 Tom Tromey <tom@tromey.com>
1661
1662 * defs.h (make_cleanup_override_quit_handler): Don't declare.
1663
c2f97536
TT
16642017-09-22 Tom Tromey <tom@tromey.com>
1665
1666 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
1667 type to scoped_restore_tmpl.
1668 <scoped_input_handler>: Initialize m_quit_handler directly.
1669
43573013
SDJ
16702017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
1671
1672 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
1673 (cd_command): Likewise. Free "current_directory" before
1674 assigning to it.
1675 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
1676 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
1677 * top.c (gdb_dirbuf): Remove global declaration.
1678 * top.h (gdb_dirbuf): Likewise.
1679
6ec2e0f5
SDJ
16802017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
1681
1682 * gnulib/aclocal.m4: Regenerate.
1683 * gnulib/config.in: Regenerate.
1684 * gnulib/configure: Regenerate.
1685 * gnulib/import/Makefile.am: Regenerate.
1686 * gnulib/import/Makefile.in: Regenerate.
1687 * gnulib/import/assure.h: New file.
1688 * gnulib/import/at-func.c: Likewise
1689 * gnulib/import/chdir-long.c: New file.
1690 * gnulib/import/chdir-long.h: New file.
1691 * gnulib/import/cloexec.c: New file.
1692 * gnulib/import/cloexec.h: New file.
1693 * gnulib/import/close.c: New file.
1694 * gnulib/import/closedir.c: New file.
1695 * gnulib/import/dirent-private.h: New file.
1696 * gnulib/import/dup-safer.c: New file.
1697 * gnulib/import/dup.c: New file.
1698 * gnulib/import/dup2.c: New file.
1699 * gnulib/import/error.c: New file.
1700 * gnulib/import/error.h: New file.
1701 * gnulib/import/exitfail.c: New file.
1702 * gnulib/import/exitfail.h: New file.
1703 * gnulib/import/fchdir.c: New file.
1704 * gnulib/import/fcntl.c: New file.
1705 * gnulib/import/fcntl.in.h: New file.
1706 * gnulib/import/fd-hook.c: New file.
1707 * gnulib/import/fd-hook.h: New file.
1708 * gnulib/import/fd-safer.c: New file.
1709 * gnulib/import/fdopendir.c: New file.
1710 * gnulib/import/filename.h: New file.
1711 * gnulib/import/filenamecat-lgpl.c: New file.
1712 * gnulib/import/filenamecat.h: New file.
1713 * gnulib/import/fstat.c: New file.
1714 * gnulib/import/fstatat.c: New file.
1715 * gnulib/import/getcwd-lgpl.c: New file.
1716 * gnulib/import/getcwd.c: New file.
1717 * gnulib/import/getdtablesize.c: New file.
1718 * gnulib/import/getlogin_r.c: New file.
1719 * gnulib/import/getprogname.c: New file.
1720 * gnulib/import/getprogname.h: New file.
1721 * gnulib/import/gettext.h: New file.
1722 * gnulib/import/glob-libc.h: New file.
1723 * gnulib/import/glob.c: New file.
1724 * gnulib/import/glob.in.h: New file.
1725 * gnulib/import/intprops.h: New file.
1726 * gnulib/import/m4/chdir-long.m4: New file.
1727 * gnulib/import/m4/close.m4: New file.
1728 * gnulib/import/m4/closedir.m4: New file.
1729 * gnulib/import/m4/d-ino.m4: New file.
1730 * gnulib/import/m4/d-type.m4: New file.
1731 * gnulib/import/m4/dup.m4: New file.
1732 * gnulib/import/m4/dup2.m4: New file.
1733 * gnulib/import/m4/error.m4: New file.
1734 * gnulib/import/m4/fchdir.m4: New file.
1735 * gnulib/import/m4/fcntl.m4: New file.
1736 * gnulib/import/m4/fcntl_h.m4: New file.
1737 * gnulib/import/m4/fdopendir.m4: New file.
1738 * gnulib/import/m4/filenamecat.m4: New file.
1739 * gnulib/import/m4/fstat.m4: New file.
1740 * gnulib/import/m4/fstatat.m4: New file.
1741 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
1742 * gnulib/import/m4/getcwd-path-max.m4: New file.
1743 * gnulib/import/m4/getcwd.m4: New file.
1744 * gnulib/import/m4/getdtablesize.m4: New file.
1745 * gnulib/import/m4/getlogin_r.m4: New file.
1746 * gnulib/import/m4/getprogname.m4: New file.
1747 * gnulib/import/m4/glob.m4: New file.
1748 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
1749 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
1750 * gnulib/import/m4/mempcpy.m4: New file.
1751 * gnulib/import/m4/memrchr.m4: New file.
1752 * gnulib/import/m4/mode_t.m4: New file.
1753 * gnulib/import/m4/msvc-inval.m4: New file.
1754 * gnulib/import/m4/msvc-nothrow.m4: New file.
1755 * gnulib/import/m4/open.m4: New file.
1756 * gnulib/import/m4/openat.m4: New file.
1757 * gnulib/import/m4/opendir.m4: New file.
1758 * gnulib/import/m4/readdir.m4: New file.
1759 * gnulib/import/m4/realloc.m4: New file.
1760 * gnulib/import/m4/rewinddir.m4: New file.
1761 * gnulib/import/m4/save-cwd.m4: New file.
1762 * gnulib/import/m4/strdup.m4: New file.
1763 * gnulib/import/m4/strerror.m4: New file.
1764 * gnulib/import/m4/unistd-safer.m4: New file.
1765 * gnulib/import/mempcpy.c: New file.
1766 * gnulib/import/memrchr.c: New file.
1767 * gnulib/import/msvc-inval.c: New file.
1768 * gnulib/import/msvc-inval.h: New file.
1769 * gnulib/import/msvc-nothrow.c: New file.
1770 * gnulib/import/msvc-nothrow.h: New file.
1771 * gnulib/import/open.c: New file.
1772 * gnulib/import/openat-die.c: New file.
1773 * gnulib/import/openat-priv.h: New file.
1774 * gnulib/import/openat-proc.c: New file.
1775 * gnulib/import/openat.c: New file.
1776 * gnulib/import/openat.h: New file.
1777 * gnulib/import/opendir.c: New file.
1778 * gnulib/import/pipe-safer.c: New file.
1779 * gnulib/import/readdir.c: New file.
1780 * gnulib/import/realloc.c: New file.
1781 * gnulib/import/rewinddir.c: New file.
1782 * gnulib/import/save-cwd.c: New file.
1783 * gnulib/import/save-cwd.h: New file.
1784 * gnulib/import/strdup.c: New file.
1785 * gnulib/import/strerror-override.c: New file.
1786 * gnulib/import/strerror-override.h: New file.
1787 * gnulib/import/strerror.c: New file.
1788 * gnulib/import/unistd--.h: New file.
1789 * gnulib/import/unistd-safer.h: New file.
1790 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1791 "getcwd" and "glob".
1792 * ser-tcp.c: Undefine "close" before redefining it.
1793
432ae719
SM
17942017-09-21 Simon Marchi <simon.marchi@ericsson.com>
1795
1796 * guile/scm-value.c (gdbscm_value_address): Initialize address,
1797 get rid of res_val.
1798
4fa7574e
RO
17992017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1800
1801 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
1802 <sol2,sparc>: Likewise.
1803 <sol2-64,i386>: Likewise.
1804
1805 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
1806 -Wdeprecated-declarations on *-*-solaris*.
1807 * configure: Regenerate.
1808
1809 * procfs.c: Include "nat/inferior.h".
1810 (procfs_info_proc): Fix typo.
1811
f6327dcb
KB
18122017-09-21 Kevin Buettner <kevinb@redhat.com>
1813
1814 * remote.c (vector): Include.
1815 (struct private_thread_info): Add field, thread_handle.
1816 (free_private_thread_info): Deallocate storage associated with
1817 thread handle.
1818 (get_private_info_thread): Initialize `thread_handle' field.
1819 (struct thread_item): Add field, thread_handle.
1820 (clear_threads_listing_context): Deallocate storage associated
1821 with thread handle.
1822 (start_thread): Add support for "handle" attribute.
1823 (thread_attributes): Add "handle".
1824 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
1825 field.
1826 (remote_update_thread_list): Update thread_handle.
1827 (remote_thread_handle_to_thread_info): New function.
1828 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
1829
fbbe5337
KB
18302017-09-21 Kevin Buettner <kevinb@redhat.com>
1831
1832 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
1833 function.
1834 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
1835 * python/python-internal.h (thread_object_type): Declare.
1836
e04ee09e
KB
18372017-09-21 Kevin Buettner <kevinb@redhat.com>
1838
1839 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
1840 (target_thread_handle_to_thread_info): Declare.
1841 * target.c (target_thread_handle_to_thread_info): New function.
1842 * target-delegates.c: Regenerate.
1843 * gdbthread.h (find_thread_by_handle): Declare.
1844 * thread.c (find_thread_by_handle): New function.
1845 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
1846 function.
1847 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
1848
1e5b66ed
SM
18492017-09-21 Simon Marchi <simon.marchi@ericsson.com>
1850
1851 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
1852
ebe48ba0
SM
18532017-09-21 Simon Marchi <simon.marchi@ericsson.com>
1854
1855 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
1856
0a0bf5dc
YQ
18572017-09-21 Yao Qi <yao.qi@linaro.org>
1858
1859 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
1860 to gdb_target_obs.
1861
d1b0a7bf
TT
18622017-09-20 Tom Tromey <tom@tromey.com>
1863
1864 * breakpoint.c (struct counted_command_line): Remove.
1865 (breakpoint_commands): Update.
1866 (alloc_counted_command_line, incref_counted_command_line)
1867 (decref_counted_command_line, do_cleanup_counted_command_line)
1868 (make_cleanup_decref_counted_command_line): Remove.
1869 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
1870 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
1871 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
1872 (save_breakpoints): Update.
1873 * breakpoint.h (counted_command_line): Now a typedef to
1874 shared_ptr.
1875 (struct breakpoint) <commands>: Now a counted_command_line.
1876 (struct bpstats) <command>: Likewise.
1877
48649e1b
TT
18782017-09-20 Tom Tromey <tom@tromey.com>
1879
1880 * breakpoint.c (struct commands_info, do_map_commands_command):
1881 Remove.
1882 (commands_command_1): Update.
1883 (iterate_over_related_breakpoints): Take a function_view.
1884 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
1885 (delete_command): Update.
1886 (map_breakpoint_numbers): Take a function_view.
1887 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
1888 (disable_command): Update.
1889 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
1890 (enable_command): Update.
1891 (struct disp_data, do_enable_breakpoint_disp)
1892 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
1893 (do_map_enable_delete_breakpoint): Remove.
1894 (enable_once_command, enable_count_command, enable_delete_command)
1895 (delete_trace_variable_command): Update.
1896
04afa70c
TT
18972017-09-20 Tom Tromey <tom@tromey.com>
1898
1899 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
1900 (bpstat_clear): Use delete.
1901 (bpstats): New constructors.
1902 (bpstat_copy, bpstat_stop_status): Use new.
1903 (dprintf_after_condition_true): Update.
1904 * breakpoint.h (bpstats::bpstats): Add constructors.
1905 (bpstats::~bpstats): Add destructor.
1906
c83833f4
PA
19072017-09-20 Pedro Alves <palves@redhat.com>
1908
1909 * eval.c (make_params): Delete, refactored as ...
1910 (class fake_method): ... this new type's ctor.
1911 (fake_method::~fake_method): New.
1912 (evaluate_subexp_standard): Use 'fake_method'.
1913
223ffa71
TT
19142017-09-20 Tom Tromey <tom@tromey.com>
1915
1916 * windows-nat.c (get_windows_debug_event, windows_wait)
1917 (do_initial_windows_stuff, windows_attach): Update.
1918 * utils.c (vwarning, internal_vproblem): Update.
1919 (ui_unregister_input_event_handler_cleanup)
1920 (prepare_to_handle_input): Remove.
1921 (class scoped_input_handler): New.
1922 (defaulted_query, prompt_for_continue): Update.
1923 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
1924 Update.
1925 * top.c (undo_terminal_modifications_before_exit): Update.
1926 * target/target.h (target_terminal_init, target_terminal_inferior)
1927 (target_terminal_ours): Don't declare.
1928 (class target_terminal): New.
1929 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
1930 (target_terminal_ours_for_output)
1931 (make_cleanup_restore_target_terminal): Don't declare.
1932 (target_terminal_info): Remove.
1933 * target.c (enum terminal_state, terminal_state): Remove.
1934 (target_terminal::terminal_state): Define.
1935 (target_terminal::init): Rename from target_terminal_init.
1936 (target_terminal::inferior): Rename from
1937 target_terminal_inferior.
1938 (target_terminal::ours): Rename from target_terminal_ours.
1939 (target_terminal::ours_for_output): Rename from
1940 target_terminal_ours_for_output.
1941 (target_terminal::info): New method.
1942 (cleanup_restore_target_terminal)
1943 (make_cleanup_restore_target_terminal): Remove.
1944 * solib.c (handle_solib_event): Update.
1945 * remote.c (remote_serial_quit_handler): Update.
1946 (remote_terminal_inferior, remote_wait_as): Update.
1947 * record-full.c (record_full_wait_1): Update.
1948 * nto-procfs.c (procfs_create_inferior): Update.
1949 * nat/fork-inferior.c (startup_inferior): Update.
1950 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
1951 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
1952 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
1953 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
1954 (mi_breakpoint_created, mi_breakpoint_deleted)
1955 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
1956 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
1957 (mi_user_selected_context_changed, report_initial_inferior):
1958 Update.
1959 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
1960 (linux_nat_terminal_inferior): Update.
1961 * infrun.c (follow_fork_inferior)
1962 (handle_vfork_child_exec_or_exit, do_target_resume)
1963 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
1964 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
1965 Update.
1966 * inflow.c (child_terminal_init, info_terminal_command): Update.
1967 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
1968 (attach_command): Update.
1969 * infcall.c (call_thread_fsm_should_stop): Update.
1970 * gnu-nat.c (gnu_attach): Update.
1971 * extension.c (struct active_ext_lang_state)
1972 (restore_active_ext_lang): Update.
1973 * exceptions.c (print_flush): Update.
1974 * event-top.c (async_enable_stdin, default_quit_handler): Update.
1975 (struct quit_handler_cleanup_data, restore_quit_handler)
1976 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
1977 Remove.
1978 * cp-support.c (gdb_demangle): Update.
1979 * breakpoint.c (update_inserted_breakpoint_locations)
1980 (insert_breakpoint_locations, handle_jit_event)
1981 (disable_breakpoints_in_unloaded_shlib): Update.
1982 * annotate.c (annotate_breakpoints_invalid)
1983 (annotate_frames_invalid): Update.
1984
013af3fc
TT
19852017-09-20 Tom Tromey <tom@tromey.com>
1986
1987 * main.c (catch_command_errors): Rename from
1988 catch_command_errors_const.
1989 (captured_main_1): Update.
1990
06871ae8
PA
19912017-09-20 Pedro Alves <palves@redhat.com>
1992
1993 * cli/cli-cmds.c (list_command): Use print_sal_location.
1994 (print_sal_location): New function.
1995 (ambiguous_line_spec): Use print_sal_location.
1996 * linespec.c (symbol_to_sal): Record the symbol in the sal.
1997 * symtab.c (find_function_start_sal): Likewise.
1998 * symtab.h (symtab_and_line::symbol): New field.
1999
e5f25bc5
PA
20002017-09-20 Pedro Alves <palves@redhat.com>
2001
2002 * linespec.c (minsym_found): Handle non-text minsyms.
2003 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
2004
1b7fa39e
WT
20052017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
2006
2007 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
2008 backslash.
2009
37dd0825
WT
20102017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
2011
2012 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
2013 vmovups instead vmovaps.
2014 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
2015
4e5a4f58
JB
20162017-09-19 John Baldwin <jhb@FreeBSD.org>
2017
2018 * NEWS (Changes since GDB 8.0): Add starti.
2019 * infcmd.c (enum run_break): New.
2020 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
2021 case.
2022 (run_command): Use enum run_how.
2023 (start_command): Likewise.
2024 (starti_command): New function.
2025 (RUN_ARGS_HELP): New macro.
2026 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
2027 commands. Add starti command.
2028
aa70c9f1
YQ
20292017-09-19 Yao Qi <yao.qi@linaro.org>
2030
2031 * Makefile.in (monitor.o): Remove the rule.
2032
d6541620
YQ
20332017-09-19 Yao Qi <yao.qi@linaro.org>
2034
2035 * annotate.h (struct annotate_arg_emitter): Use
2036 DISABLE_COPY_AND_ASSIGN.
2037 * common/refcounted-object.h (refcounted_object): Likewise.
2038 * completer.h (struct completion_result): Likewise.
2039 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
2040 * filename-seen-cache.h (filename_seen_cache): Likewise.
2041 * gdbcore.h (thread_section_name): Likewise.
2042 * gdb_regex.h (compiled_regex): Likewise.
2043 * gdbthread.h (scoped_restore_current_thread): Likewise.
2044 * inferior.h (scoped_restore_current_inferior): Likewise.
2045 * jit.c (jit_reader): Likewise.
2046 * linespec.h (struct linespec_result): Likewise.
2047 * mi/mi-parse.h (struct mi_parse): Likewise.
2048 * nat/fork-inferior.c (execv_argv): Likewise.
2049 * progspace.h (scoped_restore_current_program_space): Likewise.
2050 * python/python-internal.h (class gdbpy_enter): Likewise.
2051 * regcache.h (regcache): Likewise.
2052 * target-descriptions.c (struct tdesc_reg): Likewise.
2053 (struct tdesc_type): Likewise.
2054 (struct tdesc_feature): Likewise.
2055 * ui-out.h (ui_out_emit_type): Likewise.
2056
0615127c
SM
20572017-09-18 Simon Marchi <simon.marchi@ericsson.com>
2058
2059 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
2060 label abort_expression.
2061
5e187554
SM
20622017-09-16 Simon Marchi <simon.marchi@ericsson.com>
2063
2064 * common/buffer.c (buffer_xml_printf): Adjust.
2065 * common/xml-utils.c (xml_escape_text): Change return type to
2066 std::string, update code accordingly.
2067 * common/xml-utils.h (xml_escape_text): Change return type to
2068 std::string.
2069 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
2070 * windows-tdep.c (windows_xfer_shared_library): Adjust.
2071 * unittests/xml-utils-selftests.c (test_xml_escape_text):
2072 Adjust.
2073
c3d7b541
SM
20742017-09-16 Simon Marchi <simon.marchi@ericsson.com>
2075
2076 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
2077 (SUBDIR_UNITTESTS_OBS): Add new object file.
2078 * unittests/xml-utils-selftests.c: New file.
2079
1526853e
SM
20802017-09-16 Simon Marchi <simon.marchi@ericsson.com>
2081
2082 * common/selftest.h (selftest): New struct/interface.
2083 (register_test): Add name parameter, add new overload.
2084 (run_tests): Add filter parameter.
2085 (for_each_selftest_ftype): New typedef.
2086 (for_each_selftest): New declaration.
2087 * common/selftest.c (tests): Change type to
2088 map<string, unique_ptr<selftest>>.
2089 (simple_selftest): New struct.
2090 (register_test): New function.
2091 (register_test): Add name parameter and use it.
2092 (run_tests): Add filter parameter and use it. Add prints.
2093 Adjust to vector -> map change.
2094 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
2095 registering selftests.
2096 * arm-tdep.c (_initialize_arm_tdep): Likewise.
2097 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
2098 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
2099 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
2100 * findvar.c (_initialize_findvar): Likewise.
2101 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
2102 * maint.c (maintenance_selftest): Update call to run_tests.
2103 (maintenance_info_selftests): New function.
2104 (_initialize_maint_cmds): Register "maintenance info selftests"
2105 command. Update "maintenance selftest" doc.
2106 * regcache.c (_initialize_regcache): Add names when registering
2107 selftests.
2108 * rust-exp.y (_initialize_rust_exp): Likewise.
2109 * selftest-arch.c (gdbarch_selftest): New struct.
2110 (gdbarch_tests): Remove.
2111 (register_test_foreach_arch): Add name parameter. Call
2112 register_test.
2113 (tests_with_arch): Remove, move most content to
2114 gdbarch_selftest::operator().
2115 (_initialize_selftests_foreach_arch): Remove.
2116 * selftest-arch.h (register_test_foreach_arch): Add name
2117 parameter.
2118 (run_tests_with_arch): New declaration.
2119 * utils-selftests.c (_initialize_utils_selftests): Add names
2120 when registering selftests.
2121 * utils.c (_initialize_utils): Likewise.
2122 * unittests/array-view-selftests.c
2123 (_initialize_array_view_selftests): Likewise.
2124 * unittests/environ-selftests.c (_initialize_environ_selftests):
2125 Likewise.
2126 * unittests/function-view-selftests.c
2127 (_initialize_function_view_selftests): Likewise.
2128 * unittests/offset-type-selftests.c
2129 (_initialize_offset_type_selftests): Likewise.
2130 * unittests/optional-selftests.c
2131 (_initialize_optional_selftests): Likewise.
2132 * unittests/scoped_restore-selftests.c
2133 (_initialize_scoped_restore_selftests): Likewise.
2134 * NEWS: Document "maintenance selftest" and "maint info
2135 selftests".
2136
5846367a
SM
21372017-09-16 Simon Marchi <simon.marchi@ericsson.com>
2138
2139 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
2140 scoped_restore.
2141
bd77e8ff
SM
21422017-09-16 Simon Marchi <simon.marchi@ericsson.com>
2143
2144 * mi/mi-main.c (mi_load_progress): Make uiout variable
2145 a unique_ptr.
2146
26a67918
PA
21472017-09-15 Pedro Alves <palves@redhat.com>
2148
2149 * compile/compile-c-types.c (convert_enum, convert_int)
2150 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
2151
3f8a7804
SM
21522017-09-15 Simon Marchi <simon.marchi@ericsson.com>
2153
2154 * dwarf2read.c (copy_string): Remove.
2155 (parse_macro_definition): Replace copy_string with savestring.
2156
8d200706
YQ
21572017-09-15 Yao Qi <yao.qi@linaro.org>
2158
2159 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
2160 gdb_target_obs.
2161 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
2162 Likewise.
2163 (i[34567]86-*-linux*): Likewise.
2164
d185219d
SM
21652017-09-14 Simon Marchi <simon.marchi@ericsson.com>
2166
2167 * dwarf2expr.h (dwarf_stack_value): Add constructor.
2168 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
2169 <stack>: Change type to std::vector.
2170 <stack_len, stack_allocated>: Remove.
2171 <grow_stack>: Remove.
2172 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
2173 (dwarf_expr_context::~dwarf_expr_context): Remove.
2174 (dwarf_expr_context::grow_stack): Remove.
2175 (dwarf_expr_context::push): Adjust.
2176 (dwarf_expr_context::pop): Adjust.
2177 (dwarf_expr_context::fetch): Adjust.
2178 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
2179 (dwarf_expr_context::stack_empty_p): Adjust.
2180 (dwarf_expr_context::execute_stack_op): Adjust.
2181
eccd80d6
SM
21822017-09-14 Simon Marchi <simon.marchi@ericsson.com>
2183
2184 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
2185 return type to bool.
2186 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
2187
69009882
SM
21882017-09-14 Simon Marchi <simon.marchi@ericsson.com>
2189
2190 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
2191 Change type to bool.
2192 (dwarf_stack_value) <in_stack_memory>: Likewise.
2193 (dwarf_expr_context) <push_address>: Change parameter type to
2194 bool.
2195 <fetch_in_stack_memory>: Change return type to bool.
2196 <push>: Change parameter type to bool.
2197 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
2198 to bool.
2199 (dwarf_expr_context::push_address): Likewise.
2200 (dwarf_expr_context::fetch_in_stack_memory): Change return type
2201 to bool.
2202 (dwarf_expr_context::execute_stack_op): Adjust.
2203 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
2204
1e467161
SM
22052017-09-14 Simon Marchi <simon.marchi@ericsson.com>
2206
2207 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
2208 (struct dwarf_expr_context) <n_pieces>: Remove.
2209 <pieces>: Change type to std::vector.
2210 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
2211 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
2212 pieces.
2213 (dwarf_expr_context::add_piece): Adjust.
2214 * dwarf2loc.c (struct piece_closure): Initialize fields.
2215 <n_pieces>: Remove.
2216 <pieces>: Change type to std::vector.
2217 (allocate_piece_closure): Adjust, change parameter to
2218 std::vector rvalue and std::move it to piece_closure.
2219 (rw_pieced_value): Adjust.
2220 (check_pieced_synthetic_pointer): Adjust.
2221 (indirect_synthetic_pointer): Adjust.
2222 (coerce_pieced_ref): Adjust.
2223 (free_pieced_value_closure): Adjust. Use delete to free
2224 piece_closure.
2225 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
2226 to allocate_piece_closure.
2227 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
2228
0782db84
SM
22292017-09-12 Simon Marchi <simon.marchi@ericsson.com>
2230
2231 * probe.h (probe_ops_cp): Remove typedef.
2232 (DEF_VEC_P (probe_ops_cp)): Remove.
2233 (all_probe_ops): Change type to std::vector.
2234 * probe.c (info_probes_for_ops): Adjust to vector change.
2235 (probe_linespec_to_ops): Likewise.
2236 (all_probe_ops): Change type to std::vector.
2237 (_initialize_probe): Adjust to vector change.
2238 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
2239 * elfread.c (elf_get_probes): Likewise.
2240 * stap-probe.c (_initialize_stap_probe): Likewise.
2241
1eac6bea
SM
22422017-09-12 Simon Marchi <simon.marchi@ericsson.com>
2243
2244 * probe.h (struct bound_probe): Define constructors.
2245 * probe.c (bound_probe_s): Remove typedef.
2246 (DEF_VEC_O (bound_probe_s)): Remove VEC.
2247 (collect_probes): Change return type to std::vector, remove
2248 cleanup.
2249 (compare_probes): Return bool, change parameter type. Change
2250 semantic to "less than".
2251 (gen_ui_out_table_header_info): Change parameter to std::vector
2252 and update.
2253 (exists_probe_with_pops): Likewise.
2254 (info_probes_for_ops): Update to std::vector change.
2255 (enable_probes_command): Likewise.
2256 (disable_probes_command): Likewise.
2257
aaa63a31
SM
22582017-09-12 Simon Marchi <simon.marchi@ericsson.com>
2259
2260 * probe.h (struct probe_ops) <get_probes>: Change parameter from
2261 vec to std::vector.
2262 * probe.c (parse_probes_in_pspace): Update.
2263 (find_probes_in_objfile): Update.
2264 (find_probe_by_pc): Update.
2265 (collect_probes): Update.
2266 (probe_any_get_probes): Update.
2267 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
2268 return type to reference to std::vector.
2269 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
2270 std::vector and update.
2271 (dtrace_process_dof): Likewise.
2272 (dtrace_get_probes): Likewise.
2273 * elfread.c (elf_get_probes): Change return type to std::vector,
2274 store an std::vector in bfd_data.
2275 (probe_key_free): Update to std::vector.
2276 * stap-probe.c (handle_stap_probe): Change parameter to
2277 std::vector and update.
2278 (stap_get_probes): Likewise.
2279 * symfile-debug.c (debug_sym_get_probes): Change return type to
2280 std::vector and update.
2281
cb85b21b
TT
22822017-09-11 Tom Tromey <tom@tromey.com>
2283
2284 * breakpoint.c (program_breakpoint_here_p): Update.
2285 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
2286 from make_show_memory_breakpoints_cleanup. Return a
2287 scoped_restore_tmpl<int>.
2288 (restore_show_memory_breakpoints): Remove.
2289 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
2290 * mem-break.c (memory_validate_breakpoint): Update.
2291 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
2292 (ia64_memory_remove_breakpoint): Update.
2293 (ia64_breakpoint_from_pc): Update.
2294 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
2295 from make_show_memory_breakpoints_cleanup.
2296
8fbc99ef
TT
22972017-09-11 Tom Tromey <tom@tromey.com>
2298
2299 * d-namespace.c (d_lookup_symbol): Use std::string.
2300 (find_symbol_in_baseclass): Likewise.
2301
50feb4bd
TT
23022017-09-11 Tom Tromey <tom@tromey.com>
2303
2304 * ctf.c (ctf_start): Use std::string.
2305
c6dc63a1
TT
23062017-09-11 Tom Tromey <tom@tromey.com>
2307
2308 * ada-lang.c (is_known_support_routine): Update.
2309 (ada_unhandled_exception_name_addr_from_raise): Update.
2310 * guile/scm-frame.c (gdbscm_frame_name): Update.
2311 * python/py-frame.c (frapy_name): Update.
2312 (frapy_function): Update.
2313 * stack.h (find_frame_funname): Update.
2314 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
2315 (print_frame): Update.
2316
d6b9b80f
TT
23172017-09-11 Tom Tromey <tom@tromey.com>
2318
2319 * findcmd.c (put_bits): Take a gdb::byte_vector.
2320 (parse_find_args): Return gdb::byte_vector. "args" now const.
2321 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
2322 cleanups.
2323 (find_command): Update.
2324
a9921622
TT
23252017-09-11 Tom Tromey <tom@tromey.com>
2326
2327 * cli/cli-script.c (class scoped_restore_hook_in): New.
2328 (clear_hook_in_cleanup): Remove.
2329 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
2330 scoped_restore_hook_in.
2331
be0d7abb
TT
23322017-09-11 Tom Tromey <tom@tromey.com>
2333
2334 * cli/cli-script.c (restore_interp): Remove.
2335 (read_command_lines): Use scoped_restore_interp.
2336 * interps.c (scoped_restore_interp::set_temp): Rename from
2337 interp_set_temp.
2338 * interps.h (class scoped_restore_interp): New.
2339 (interp_set_temp): Remove.
2340
00f675ff
TT
23412017-09-11 Tom Tromey <tom@tromey.com>
2342
2343 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
2344 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
2345 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
2346 scoped_restore.
2347 (mi_cmd_break_insert_1): Update.
2348 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
2349 scoped_restore.
2350
cb791d59
TT
23512017-09-11 Tom Tromey <tom@tromey.com>
2352
2353 * demangle.c (demangle_command): Update.
2354 * breakpoint.c (disable_command): Update.
2355 (enable_command): Update.
2356 (find_location_by_number): Make "number" const. Use
2357 get_number_trailer.
2358 * cli/cli-utils.c (extract_arg): Return std::string.
2359 * probe.c (parse_probe_linespec): Update. Change types.
2360 (collect_probes): Take string arguments.
2361 (parse_probe_linespec): Likewise.
2362 (info_probes_for_ops): Update.
2363 (enable_probes_command): Update.
2364 (disable_probes_command): Update.
2365 * break-catch-sig.c (catch_signal_split_args): Update.
2366 * mi/mi-parse.c (mi_parse): Update.
2367
2039bd9f
TT
23682017-09-11 Tom Tromey <tom@tromey.com>
2369
2370 * language.h (language_enum): Make argument const.
2371 * language.c (language_enum): Make argument const.
2372
f1735a53
TT
23732017-09-11 Tom Tromey <tom@tromey.com>
2374
2375 * common/common-utils.h (skip_to_space): Remove macro, redeclare
2376 as function.
2377 (skip_to_space): Rename from skip_to_space_const.
2378 * common/common-utils.c (skip_to_space): New function.
2379 (skip_to_space): Rename from skip_to_space_const.
2380 * cli/cli-utils.h (get_number): Rename from get_number_const.
2381 (extract_arg): Rename from extract_arg_const.
2382 * cli/cli-utils.c (get_number): Rename from get_number_const.
2383 (extract_arg): Rename from extract_arg_const.
2384 (number_or_range_parser::get_number): Use ::get_number.
2385 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
2386 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
2387 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
2388 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
2389 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
2390 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
2391 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
2392 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
2393
7d221d74
TT
23942017-09-11 Tom Tromey <tom@tromey.com>
2395
2396 * python/python.c (do_start_initialization): Use
2397 py-event-types.def to initialize types.
2398 Define all object type structures.
2399 * python/python-internal.h: Don't declare event initialization
2400 functions.
2401 * python/py-threadevent.c (thread_event_object_type): Don't
2402 define.
2403 * python/py-stopevent.c (stop_event_object_type): Don't define.
2404 * python/py-signalevent.c (signal_event_object_type): Don't
2405 declare or define.
2406 * python/py-newobjfileevent.c (new_objfile_event_object_type)
2407 (clear_objfiles_event_object_type): Don't declare or define.
2408 * python/py-infevents.c (inferior_call_pre_event_object_type)
2409 (inferior_call_post_event_object_type)
2410 (register_changed_event_object_type)
2411 (memory_changed_event_object_type): Don't declare or define.
2412 * python/py-inferior.c (new_thread_event_object_type)
2413 (new_inferior_event_object_type)
2414 (inferior_deleted_event_object_type): Don't declare or define.
2415 * python/py-exitedevent.c (exited_event_object_type): Don't
2416 declare or define.
2417 * python/py-evts.c (gdbpy_initialize_py_events): Use
2418 py-all-events.def.
2419 * python/py-events.h (thread_event_object_type): Don't declare.
2420 (events_object): Use py-all-events.def.
2421 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
2422 py-event-types.def.
2423 * python/py-event-types.def: New file.
2424 * python/py-continueevent.c (create_continue_event_object): Don't
2425 declare or define.
2426 * python/py-bpevent.c (breakpoint_event_object_type): Don't
2427 declare or define.
2428 * python/py-all-events.def: New file.
2429
35c61a1d
TT
24302017-09-11 Tom Tromey <tom@tromey.com>
2431
2432 * python/py-threadevent.c (create_thread_event_object): Return
2433 gdbpy_ref.
2434 * python/py-stopevent.h (create_stop_event_object)
2435 (create_breakpoint_event_object, create_signal_event_object):
2436 Update.
2437 * python/py-stopevent.c (create_stop_event_object): Return
2438 gdbpy_ref.
2439 (emit_stop_event): Update.
2440 * python/py-signalevent.c (create_signal_event_object): Return
2441 gdbpy_ref.
2442 * python/py-infevents.c (create_inferior_call_event_object):
2443 Update.
2444 * python/py-event.h (create_event_object)
2445 (create_thread_event_object): Update.
2446 * python/py-event.c (create_event_object): Return gdbpy_ref.
2447 * python/py-continueevent.c: Return gdbpy_ref.
2448 * python/py-bpevent.c (create_breakpoint_event_object): Return
2449 gdbpy_ref.
2450
7c96f8c1
TT
24512017-09-11 Tom Tromey <tom@tromey.com>
2452
2453 PR python/15622:
2454 * NEWS: Add entry.
2455 * python/python.c (do_start_initialization): Initialize new event
2456 types.
2457 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
2458 (gdbpy_initialize_inferior_deleted_event)
2459 (gdbpy_initialize_new_thread_event): Declare.
2460 * python/py-threadevent.c (create_thread_event_object): Add option
2461 "thread" parameter.
2462 * python/py-inferior.c (new_thread_event_object_type)
2463 (new_inferior_event_object_type)
2464 (inferior_deleted_event_object_type): Declare.
2465 (python_new_inferior, python_inferior_deleted): New functions.
2466 (add_thread_object): Emit new_thread event.
2467 (gdbpy_initialize_inferior): Attach new functions to corresponding
2468 observers.
2469 (new_thread, new_inferior, inferior_deleted): Define new event
2470 types.
2471 * python/py-evts.c (gdbpy_initialize_py_events): Add new
2472 registries.
2473 * python/py-events.h (events_object) <new_inferior,
2474 inferior_deleted, new_thread>: New fields.
2475 * python/py-event.h (create_thread_event_breakpoint): Add optional
2476 "thread" parameter.
2477
72542b8e
AB
24782017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
2479
2480 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
2481 check current_ui instead.
2482 (internal_vproblem): Likewise.
2483
0d64823e
SM
24842017-09-09 Simon Marchi <simon.marchi@ericsson.com>
2485
2486 * thread.c (print_thread_info_1): Remove unnecessary calls to
2487 uiout->is_mi_like_p.
2488
eb1e02fd
TT
24892017-09-09 Tom Tromey <tom@tromey.com>
2490
2491 * namespace.h (add_using_directive): Update.
2492 * namespace.c (add_using_directive): Change type of excludes to
2493 std::vector.
2494 * dwarf2read.c (read_import_statement): Use std::vector.
2495 (read_namespace): Update.
2496 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
2497
0fc21fd8
TT
24982017-09-09 Tom Tromey <tom@tromey.com>
2499
2500 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
2501
49663d05
TT
25022017-09-09 Tom Tromey <tom@tromey.com>
2503
2504 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
2505
0b868b60
TT
25062017-09-09 Tom Tromey <tom@tromey.com>
2507
2508 * stack.c (func_command): Use gdb::def_vector.
2509
c0470d48
TT
25102017-09-09 Tom Tromey <tom@tromey.com>
2511
2512 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
2513 ui_out_emit_list, ui_out_emit_tuple.
2514 (mi_cmd_var_update): Likewise.
2515
ca5909c7
TT
25162017-09-09 Tom Tromey <tom@tromey.com>
2517
2518 * mi/mi-interp.c (mi_user_selected_context_changed): Use
2519 ui_out_redirect_pop.
2520 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
2521 ui_out_redirect_pop.
2522 * utils.c (do_ui_out_redirect_pop)
2523 (make_cleanup_ui_out_redirect_pop): Remove.
2524 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
2525 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
2526 * ui-out.h (ui_out_redirect_pop): New class.
2527
e6a2252a
TT
25282017-09-09 Tom Tromey <tom@tromey.com>
2529
2530 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
2531 (list_available_thread_groups, mi_cmd_list_thread_groups)
2532 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
2533 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
2534 Likewise.
2535
393702cd
TT
25362017-09-09 Tom Tromey <tom@tromey.com>
2537
2538 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
2539 ui_out_emit_tuple.
2540
76f9c9cf
TT
25412017-09-09 Tom Tromey <tom@tromey.com>
2542
2543 * target.c (flash_erase_command): Use ui_out_emit_tuple.
2544 * stack.c (print_frame): Use ui_out_emit_tuple.
2545 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
2546 (info_spu_mailbox_command, info_spu_dma_command)
2547 (info_spu_proxydma_command): Likewise.
2548 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
2549 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
2550 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
2551 ui_out_emit_tuple.
2552 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
2553
dc9fe180
TT
25542017-09-09 Tom Tromey <tom@tromey.com>
2555
2556 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
2557 (class ui_out_emit_table): Update comment.
2558 * ui-out.c (do_cleanup_table_end)
2559 (make_cleanup_ui_out_table_begin_end): Remove.
2560 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
2561 (info_spu_dma_cmdlist): Likewise.
2562 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
2563 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
2564 ui_out_emit_table.
2565
f8cc3da6
TT
25662017-09-09 Tom Tromey <tom@tromey.com>
2567
2568 * thread.c (print_thread_info_1): Use ui_out_emit_table,
2569 ui_out_emit_list, gdb::optional.
2570
481695ed
JB
25712017-09-09 John Baldwin <jhb@FreeBSD.org>
2572
2573 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
2574 prototype.
2575 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
2576 prototype.
2577 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
2578 prototype.
2579 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
2580 * ada-exp.y: Remove _initialize_ada_exp prototype.
2581 * ada-lang.c: Remove _initialize_ada_language prototype.
2582 * ada-tasks.c: Remove _initialize_tasks prototype.
2583 * addrmap.c: Remove _initialize_addrmap prototype.
2584 * agent.c: Remove _initialize_agent prototype.
2585 * aix-thread.c: Remove _initialize_aix_thread prototype.
2586 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
2587 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
2588 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
2589 prototype.
2590 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
2591 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
2592 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
2593 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
2594 prototype.
2595 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
2596 prototype.
2597 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
2598 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
2599 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
2600 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
2601 prototype.
2602 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
2603 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
2604 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
2605 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
2606 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
2607 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
2608 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
2609 prototype.
2610 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
2611 prototype.
2612 * annotate.c: Remove _initialize_annotate prototype.
2613 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
2614 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
2615 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
2616 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
2617 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
2618 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
2619 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
2620 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
2621 prototype.
2622 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
2623 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
2624 * auto-load.c: Remove _initialize_auto_load prototype.
2625 * auxv.c: Remove _initialize_auxv prototype.
2626 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
2627 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
2628 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
2629 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
2630 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
2631 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
2632 prototype.
2633 * break-catch-throw.c: Remove _initialize_break_catch_throw
2634 prototype.
2635 * breakpoint.c: Remove _initialize_breakpoint prototype.
2636 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
2637 * btrace.c: Remove _initialize_btrace prototype.
2638 * charset.c: Remove _initialize_charset prototype.
2639 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
2640 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
2641 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
2642 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
2643 * cli/cli-script.c: Remove _initialize_cli_script prototype.
2644 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
2645 * coffread.c: Remove _initialize_coffread prototype.
2646 * compile/compile.c: Remove _initialize_compile prototype.
2647 * complaints.c: Remove _initialize_complaints prototype.
2648 * completer.c: Remove _initialize_completer prototype.
2649 * copying.awk: Remove _initialize_copying prototype.
2650 * copying.c: Regenerate.
2651 * core-regset.c: Remove _initialize_core_regset prototype.
2652 * corefile.c: Remove _initialize_core prototype.
2653 * corelow.c: Remove _initialize_corelow prototype.
2654 * cp-abi.c: Remove _initialize_cp_abi prototype.
2655 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
2656 * cp-support.c: Remove _initialize_cp_support prototype.
2657 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
2658 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
2659 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
2660 * ctf.c: Remove _initialize_ctf prototype.
2661 * d-lang.c: Remove _initialize_d_language prototype.
2662 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
2663 prototype.
2664 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
2665 * dbxread.c: Remove _initialize_dbxread prototype.
2666 * dcache.c: Remove _initialize_dcache prototype.
2667 * demangle.c: Remove _initialize_demangler prototype.
2668 * disasm-selftests.c: Remove _initialize_disasm_selftests
2669 prototype.
2670 * disasm.c: Remove _initialize_disasm prototype.
2671 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
2672 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
2673 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
2674 prototype.
2675 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
2676 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
2677 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
2678 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
2679 * elfread.c: Remove _initialize_elfread prototype.
2680 * exec.c: Remove _initialize_exec prototype.
2681 * extension.c: Remove _initialize_extension prototype.
2682 * f-lang.c: Remove _initialize_f_language prototype.
2683 * f-valprint.c: Remove _initialize_f_valprint prototype.
2684 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
2685 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
2686 * filesystem.c: Remove _initialize_filesystem prototype.
2687 * findcmd.c: Remove _initialize_mem_search prototype.
2688 * fork-child.c: Remove _initialize_fork_child prototype.
2689 * frame-base.c: Remove _initialize_frame_base prototype.
2690 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
2691 * frame.c: Remove _initialize_frame prototype.
2692 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
2693 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
2694 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
2695 * gcore.c: Remove _initialize_gcore prototype.
2696 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
2697 * gdbarch.c: Regenerate.
2698 * gdbarch.sh: Remove _initialize_gdbarch prototype.
2699 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
2700 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
2701 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
2702 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
2703 * go-lang.c: Remove _initialize_go_language prototype.
2704 * go32-nat.c: Remove _initialize_go32_nat prototype.
2705 * guile/guile.c: Remove _initialize_guile prototype.
2706 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
2707 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
2708 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
2709 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
2710 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
2711 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
2712 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
2713 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
2714 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
2715 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
2716 prototype.
2717 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
2718 prototype.
2719 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
2720 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
2721 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
2722 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
2723 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
2724 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
2725 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
2726 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
2727 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
2728 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
2729 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
2730 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
2731 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
2732 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
2733 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
2734 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
2735 prototype.
2736 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
2737 prototype.
2738 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
2739 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
2740 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
2741 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
2742 * infcall.c: Remove _initialize_infcall prototype.
2743 * infcmd.c: Remove _initialize_infcmd prototype.
2744 * inferior.c: Remove _initialize_inferiors prototype.
2745 * inflow.c: Remove _initialize_inflow prototype.
2746 * infrun.c: Remove _initialize_infrun prototype.
2747 * interps.c: Remove _initialize_interpreter prototype.
2748 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
2749 * jit.c: Remove _initialize_jit prototype.
2750 * language.c: Remove _initialize_language prototype.
2751 * linux-fork.c: Remove _initialize_linux_fork prototype.
2752 * linux-nat.c: Remove _initialize_linux_nat prototype.
2753 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
2754 * linux-thread-db.c: Remove _initialize_thread_db prototype.
2755 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
2756 * m2-lang.c: Remove _initialize_m2_language prototype.
2757 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
2758 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
2759 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
2760 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
2761 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
2762 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
2763 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
2764 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
2765 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
2766 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
2767 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
2768 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
2769 * machoread.c: Remove _initialize_machoread prototype.
2770 * macrocmd.c: Remove _initialize_macrocmd prototype.
2771 * macroscope.c: Remove _initialize_macroscope prototype.
2772 * maint.c: Remove _initialize_maint_cmds prototype.
2773 * mdebugread.c: Remove _initialize_mdebugread prototype.
2774 * memattr.c: Remove _initialize_mem prototype.
2775 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
2776 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
2777 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
2778 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
2779 * mi/mi-main.c: Remove _initialize_mi_main prototype.
2780 * microblaze-linux-tdep.c: Remove
2781 _initialize_microblaze_linux_tdep prototype.
2782 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
2783 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
2784 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
2785 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
2786 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
2787 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
2788 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
2789 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
2790 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
2791 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
2792 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
2793 prototype.
2794 * mipsread.c: Remove _initialize_mipsread prototype.
2795 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
2796 prototype.
2797 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
2798 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
2799 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
2800 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
2801 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
2802 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
2803 prototype.
2804 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
2805 * nto-procfs.c: Remove _initialize_procfs prototype.
2806 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
2807 * objc-lang.c: Remove _initialize_objc_language prototype.
2808 * objfiles.c: Remove _initialize_objfiles prototype.
2809 * observer.c: Remove observer_test_first_notification_function,
2810 observer_test_second_notification_function,
2811 observer_test_third_notification_function, and
2812 _initialize_observer prototypes.
2813 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
2814 * osabi.c: Remove _initialize_gdb_osabi prototype.
2815 * osdata.c: Remove _initialize_osdata prototype.
2816 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
2817 * parse.c: Remove _initialize_parse prototype.
2818 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
2819 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
2820 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
2821 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
2822 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
2823 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
2824 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
2825 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
2826 * printcmd.c: Remove _initialize_printcmd prototype.
2827 * probe.c: Remove _initialize_probe prototype.
2828 * proc-api.c: Remove _initialize_proc_api prototype.
2829 * proc-events.c: Remove _initialize_proc_events prototype.
2830 * proc-service.c: Remove _initialize_proc_service prototype.
2831 * procfs.c: Remove _initialize_procfs prototype.
2832 * psymtab.c: Remove _initialize_psymtab prototype.
2833 * python/python.c: Remove _initialize_python prototype.
2834 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
2835 * record-btrace.c: Remove _initialize_record_btrace prototype.
2836 * record-full.c: Remove _initialize_record_full prototype.
2837 * record.c: Remove _initialize_record prototype.
2838 * regcache.c: Remove _initialize_regcache prototype.
2839 * reggroups.c: Remove _initialize_reggroup prototype.
2840 * remote-notif.c: Remove _initialize_notif prototype.
2841 * remote-sim.c: Remove _initialize_remote_sim prototype.
2842 * remote.c: Remove _initialize_remote prototype.
2843 * reverse.c: Remove _initialize_reverse prototype.
2844 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
2845 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
2846 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
2847 prototype.
2848 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
2849 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
2850 * rust-exp.y: Remove _initialize_rust_exp prototype.
2851 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
2852 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
2853 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
2854 * score-tdep.c: Remove _initialize_score_tdep prototype.
2855 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
2856 prototype.
2857 * ser-go32.c: Remove _initialize_ser_dos prototype.
2858 * ser-mingw.c: Remove _initialize_ser_windows prototype.
2859 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
2860 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
2861 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
2862 * serial.c: Remove _initialize_serial prototype.
2863 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
2864 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
2865 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
2866 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
2867 * skip.c: Remove _initialize_step_skip prototype.
2868 * sol-thread.c: Remove _initialize_sol_thread prototype.
2869 * solib-aix.c: Remove _initialize_solib_aix prototype.
2870 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
2871 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
2872 * solib-frv.c: Remove _initialize_frv_solib prototype.
2873 * solib-spu.c: Remove _initialize_spu_solib prototype.
2874 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
2875 * solib-target.c: Remove _initialize_solib_target prototype.
2876 * solib.c: Remove _initialize_solib prototype.
2877 * source.c: Remove _initialize_source prototype.
2878 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
2879 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
2880 prototype.
2881 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
2882 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
2883 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
2884 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
2885 prototype.
2886 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
2887 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
2888 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
2889 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
2890 prototype.
2891 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
2892 prototype.
2893 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
2894 prototype.
2895 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
2896 prototype.
2897 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
2898 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
2899 prototype.
2900 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
2901 prototype.
2902 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
2903 prototype.
2904 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
2905 prototype.
2906 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
2907 prototype.
2908 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
2909 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
2910 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
2911 * stabsread.c: Remove _initialize_stabsread prototype.
2912 * stack.c: Remove _initialize_stack prototype.
2913 * stap-probe.c: Remove _initialize_stap_probe prototype.
2914 * std-regs.c: Remove _initialize_frame_reg prototype.
2915 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
2916 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
2917 * symfile.c: Remove _initialize_symfile prototype.
2918 * symmisc.c: Remove _initialize_symmisc prototype.
2919 * symtab.c: Remove _initialize_symtab prototype.
2920 * target-dcache.c: Remove _initialize_target_dcache prototype.
2921 * target-descriptions.c: Remove _initialize_target_descriptions
2922 prototype.
2923 * thread.c: Remove _initialize_thread prototype.
2924 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
2925 prototype.
2926 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
2927 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
2928 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
2929 prototype.
2930 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
2931 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
2932 * tracefile.c: Remove _initialize_tracefile prototype.
2933 * tracepoint.c: Remove _initialize_tracepoint prototype.
2934 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
2935 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
2936 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
2937 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
2938 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
2939 * tui/tui-win.c: Remove _initialize_tui_win prototype.
2940 * tui/tui.c: Remove _initialize_tui prototype.
2941 * typeprint.c: Remove _initialize_typeprint prototype.
2942 * user-regs.c: Remove _initialize_user_regs prototype.
2943 * utils.c: Remove _initialize_utils prototype.
2944 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
2945 * valarith.c: Remove _initialize_valarith prototype.
2946 * valops.c: Remove _initialize_valops prototype.
2947 * valprint.c: Remove _initialize_valprint prototype.
2948 * value.c: Remove _initialize_values prototype.
2949 * varobj.c: Remove _initialize_varobj prototype.
2950 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
2951 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
2952 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
2953 * windows-nat.c: Remove _initialize_windows_nat,
2954 _initialize_check_for_gdb_ini, and _initialize_loadable
2955 prototypes.
2956 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
2957 * xcoffread.c: Remove _initialize_xcoffread prototype.
2958 * xml-support.c: Remove _initialize_xml_support prototype.
2959 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
2960 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
2961 prototype.
2962 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
2963 prototype.
2964 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
2965
a611b5cb
KS
29662017-09-08 Keith Seitz <keiths@redhat.com>
2967
2968 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
2969 field.
2970
469412dd
CW
29712017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
2972
2973 * f-valprint.c (f_val_print): Remove check for one byte
2974 sized integers. Remove printing of character type.
2975
a5ad232b
FP
29762017-09-08 Frank Penczek <frank.penczek@intel.com>
2977 Christoph Weinmann <christoph.t.weinmann@intel.com>
2978 Bernhard Heckel <bernhard.heckel@intel.com>
2979
2980 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
2981 to maintain proper indentation when printing pointers/refs.
2982
e5014227
JB
29832017-09-07 Joel Brobecker <brobecker@adacore.com>
2984
2985 GDB 8.0.1 released.
2986
63c99141
JB
29872017-09-07 Joel Brobecker <brobecker@adacore.com>
2988
2989 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
2990
69c1e056
TT
29912017-09-05 Tom Tromey <tom@tromey.com>
2992
2993 * parse.c (funcall_chain): Now a std::vector.
2994 (start_arglist, end_arglist): Simplify.
2995 (free_funcalls): Remove.
2996 (parse_exp_in_context_1): Remove cleanup.
2997
fef704bf
TT
29982017-09-05 Tom Tromey <tom@tromey.com>
2999
3000 * go-exp.y (go_parse): Don't create a cleanup.
3001
5613c585
TT
30022017-09-05 Tom Tromey <tom@tromey.com>
3003
3004 * d-exp.y (PrimaryExpression): Use std::string.
3005 (d_parse): Don't create a cleanup.
3006
eae49211
TT
30072017-09-05 Tom Tromey <tom@tromey.com>
3008
3009 * utils.c (do_clear_parser_state): Remove.
3010 (make_cleanup_clear_parser_state): Remove.
3011 * p-exp.y (pascal_parse): Use scoped_restore.
3012 * m2-exp.y (m2_parse): Use scoped_restore.
3013 * f-exp.y (f_parse): Use scoped_restore.
3014 * d-exp.y (d_parse): Use scoped_restore.
3015 * c-exp.y (c_parse): Use scoped_restore.
3016 * ada-exp.y (ada_parse): Use scoped_restore.
3017 * utils.h (make_cleanup_clear_parser_state): Remove.
3018
73b9be8b
KS
30192017-09-06 Keith Seitz <keiths@redhat.com>
3020
3021 * dwarf2read.c (dw2_linkage_name_attr): New function.
3022 (dw2_linkage_name): New function.
3023 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
3024 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
3025 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
3026
a102602b
KR
30272017-09-06 Kamil Rytarowski <n54@gmx.com>
3028
3029 * config/djgpp/djconfig.sh: Correct shell portability issue.
3030
28ad437d
KR
30312017-09-06 Kamil Rytarowski <n54@gmx.com>
3032
3033 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
3034
351787dd
JB
30352017-09-06 John Baldwin <jhb@FreeBSD.org>
3036
3037 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
3038 * NEWS: Mention new FreeBSD/mips native configuration.
3039 * configure.host: Add aarch64*-*-freebsd*.
3040 * configure.nat: Likewise.
3041 * aarch64-fbsd-nat.c: New file.
3042
c0f84956
JB
30432017-09-06 John Baldwin <jhb@FreeBSD.org>
3044
3045 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
3046 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
3047 * NEWS: Mention new FreeBSD/aarch64 target.
3048 * configure.tgt: Add aarch64*-*-freebsd*.
3049 * aarch64-fbsd-tdep.c: New file.
3050 * aarch64-fbsd-tdep.h: New file.
3051
7610297a
KR
30522017-09-06 Kamil Rytarowski <n54@gmx.com>
3053
3054 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
3055
fbd1b771
JK
30562017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3057
3058 * parse.c (find_minsym_type_and_address): Don't relocate addresses
3059 of TLS symbols.
3060
5ca79eae
PW
30612017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3062
3063 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
3064 call.
3065
bf93d7ba
SM
30662017-09-05 Simon Marchi <simon.marchi@ericsson.com>
3067
3068 * infrun.c (follow_exec): Call add_thread after
3069 target_find_description.
3070
1bb7c059
SM
30712017-09-05 Simon Marchi <simon.marchi@ericsson.com>
3072
3073 * infrun.c (handle_inferior_event_1): When exec'ing, read
3074 stop_pc after follow_exec.
3075
fc809827
SM
30762017-09-05 Simon Marchi <simon.marchi@ericsson.com>
3077
3078 * remote.c (process_g_packet): Update error message.
3079
d2fcdd85
YQ
30802017-09-05 Yao Qi <yao.qi@linaro.org>
3081
3082 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
3083 targets.
3084
e69570ee
PA
30852017-09-05 Pedro Alves <palves@redhat.com>
3086
3087 * eval.c (eval_call, evaluate_funcall): New functions, factored
3088 out from ...
3089 (evaluate_subexp_standard): ... this.
3090
22916b07
YQ
30912017-09-05 Yao Qi <yao.qi@linaro.org>
3092
3093 * amd64-tdep.c (amd64_target_description): Create target
3094 descriptions.
3095 (_initialize_amd64_tdep): Don't call functions
3096 initialize_tdesc_amd64_*. Add self tests.
3097 * arch/amd64.c (amd64_create_target_description): Add parameter
3098 is_linux. Call set_tdesc_osabi if is_linux is true.
3099 * arch/amd64.h (amd64_create_target_description): Update the
3100 declaration.
3101 * arch/i386.c (i386_create_target_description): Add parameter
3102 is_linux. Call set_tdesc_osabi if is_linux is true.
3103 * arch/i386.h (i386_create_target_description): Update
3104 declaration.
3105 * configure.tgt: Add i386.o to gdb_target_obs.
3106 * features/Makefile (XMLTOC): Remove i386/*.xml.
3107 * features/i386/amd64-avx-avx512.c: Remove.
3108 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
3109 * features/i386/amd64-avx-mpx.c: Remove.
3110 * features/i386/amd64-avx.c: Remove.
3111 * features/i386/amd64-mpx.c: Remove.
3112 * features/i386/amd64.c: Remove.
3113 * features/i386/i386-avx-avx512.c: Remove.
3114 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
3115 * features/i386/i386-avx-mpx.c: Remove.
3116 * features/i386/i386-avx.c: Remove.
3117 * features/i386/i386-mmx.c: Remove.
3118 * features/i386/i386-mpx.c: Remove.
3119 * features/i386/i386.c: Remove.
3120 * i386-tdep.c: Don't include features/i386/i386*.c., include
3121 target-descriptions.h and arch/i386.h.
3122 (i386_target_description): Create target descriptions.
3123 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
3124 functions. Do self tests.
3125
0854b7b1
YQ
31262017-09-05 Yao Qi <yao.qi@linaro.org>
3127
3128 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
3129 * features/i386/amd64-avx-avx512-linux.c: Removed.
3130 * features/i386/amd64-avx-linux.c: Removed.
3131 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
3132 * features/i386/amd64-avx-mpx-linux.c: Removed.
3133 * features/i386/amd64-linux.c: Removed.
3134 * features/i386/amd64-mpx-linux.c: Removed.
3135 * features/i386/x32-avx-avx512-linux.c: Removed.
3136 * features/i386/x32-avx-linux.c: Removed.
3137 * features/i386/x32-linux.c: Removed.
3138
b4570e4b
YQ
31392017-09-05 Yao Qi <yao.qi@linaro.org>
3140
3141 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
3142 features/i386/*.c.
3143 (amd64_linux_read_description): Call
3144 amd64_create_target_description.
3145 * arch/amd64.c: New file.
3146 * arch/amd64.h: New file.
3147 * configure.tgt (x86_64-*-linux*): Append amd64.o.
3148 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
3149
6c73f67f
YQ
31502017-09-05 Yao Qi <yao.qi@linaro.org>
3151
3152 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
3153 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
3154 (amd64_linux_read_description): Create target descriptions.
3155 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
3156 functions. Add unit tests.
3157 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
3158 x32-core.xml.
3159 * features/i386/64bit-avx.c: Generated.
3160 * features/i386/64bit-avx512.c: Generated.
3161 * features/i386/64bit-core.c: Generated.
3162 * features/i386/64bit-linux.c: Generated.
3163 * features/i386/64bit-mpx.c: Generated.
3164 * features/i386/64bit-pkeys.c: Generated.
3165 * features/i386/64bit-segments.c: Generated.
3166 * features/i386/64bit-sse.c: Generated.
3167 * features/i386/x32-core.c: Generated.
3168 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
3169 c files for amd64-linux and x32-linux.
3170
9d3d478b
YQ
31712017-09-05 Yao Qi <yao.qi@linaro.org>
3172
3173 * amd64-linux-tdep.c (amd64_linux_read_description): New
3174 function.
3175 (amd64_linux_core_read_description): Call
3176 amd64_linux_read_description.
3177 (amd64_linux_init_abi): Likewise.
3178 (amd64_x32_linux_init_abi): Likewise.
3179 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
3180 * x86-linux-nat.c (x86_linux_read_description): Call
3181 amd64_linux_read_description.
3182
b9f1d50f
YQ
31832017-09-05 Yao Qi <yao.qi@linaro.org>
3184
3185 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
3186 comments.
3187
188c9e6d
YQ
31882017-09-05 Yao Qi <yao.qi@linaro.org>
3189
3190 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
3191 * features/i386/i386-avx-avx512-linux.c: Remove.
3192 * features/i386/i386-avx-linux.c: Remove.
3193 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
3194 * features/i386/i386-avx-mpx-linux.c: Remove.
3195 * features/i386/i386-linux.c: Remove.
3196 * features/i386/i386-mmx-linux.c: Remove.
3197 * features/i386/i386-mpx-linux.c: Remove.
3198
5f035c07
YQ
31992017-09-05 Yao Qi <yao.qi@linaro.org>
3200
3201 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
3202 (SFILES): Add arch/i386.c.
3203 (HFILES_NO_SRCDIR): Add arch/i386.h.
3204 * arch/i386.c: New file.
3205 * arch/i386.h: New file.
3206 * arch/tdesc.h (allocate_target_description): Declare.
3207 (set_tdesc_architecture): Declare.
3208 (set_tdesc_osabi): Declare.
3209 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
3210 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
3211 include arch/i386.h.
3212 (i386_linux_read_description): Remove code and call
3213 i386_create_target_description.
3214 (set_tdesc_architecture): New function.
3215 (set_tdesc_osabi): New function.
3216 * target-descriptions.h (allocate_target_description): Remove.
3217
0abe8a89
YQ
32182017-09-05 Yao Qi <yao.qi@linaro.org>
3219
3220 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
3221 * target-descriptions.c (tdesc_create_feature): Likewise, and
3222 adjust code.
3223 * features/i386/32bit-avx.c: Re-generated.
3224 * features/i386/32bit-avx512.c: Re-generated.
3225 * features/i386/32bit-core.c: Re-generated.
3226 * features/i386/32bit-linux.c: Re-generated.
3227 * features/i386/32bit-mpx.c: Re-generated.
3228 * features/i386/32bit-pkeys.c: Re-generated.
3229 * features/i386/32bit-sse.c: Re-generated.
3230
0a188386
YQ
32312017-09-05 Yao Qi <yao.qi@linaro.org>
3232
3233 * regformats/regdef.h (struct reg): Override operator == and !=.
3234
f49ff000
YQ
32352017-09-05 Yao Qi <yao.qi@linaro.org>
3236
3237 * arch/tdesc.h: New file.
3238 * regformats/regdat.sh: Generate code using tdesc_create_reg.
3239 * target-descriptions.c: Update comments.
3240 * target-descriptions.h: Include "arch/tdesc.h". Remove the
3241 declarations.
3242 * features/i386/32bit-avx.c: Re-generated.
3243 * features/i386/32bit-avx512.c: Re-generated.
3244 * features/i386/32bit-core.c: Re-generated.
3245 * features/i386/32bit-linux.c: Re-generated.
3246 * features/i386/32bit-mpx.c: Re-generated.
3247 * features/i386/32bit-pkeys.c: Re-generated.
3248 * features/i386/32bit-sse.c: Re-generated.
3249
f7000548
YQ
32502017-09-05 Yao Qi <yao.qi@linaro.org>
3251
3252 * regformats/regdat.sh: Update generated code.
3253
c9a5e2a5
YQ
32542017-09-05 Yao Qi <yao.qi@linaro.org>
3255
3256 * regformats/regdat.sh: Adjust code order.
3257
d6b687ac
SM
32582017-09-05 Simon Marchi <simon.marchi@ericsson.com>
3259
3260 * expprint.c (dump_subexp_body_standard): Use constant format
3261 string in fprintf_filtered call.
3262
a379bfd0
JB
32632017-09-04 John Baldwin <jhb@FreeBSD.org>
3264
3265 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
3266 NetBSD/i386.
3267 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
3268
f7efc967
JB
32692017-09-04 John Baldwin <jhb@FreeBSD.org>
3270
3271 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
3272
c49fbc6c
JB
32732017-09-04 John Baldwin <jhb@FreeBSD.org>
3274
3275 * bsd-kvm.o: Define _KMEMUSER.
3276 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
3277 * configure: Regenerate.
3278
26562e73
JB
32792017-09-04 John Baldwin <jhb@FreeBSD.org>
3280
3281 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
3282 * i386-fbsd-nat.c: Likewise.
3283
31cf1487
JB
32842017-09-04 John Baldwin <jhb@FreeBSD.org>
3285
3286 * unittests/array-view-selftests.c: Add include of <array>.
3287
5b9f8a7c
JB
32882017-09-04 John Baldwin <jhb@FreeBSD.org>
3289
3290 * spu-tdep.c (flush_ea_cache): Add missing argument to
3291 call_function_by_hand.
3292
d69cf9b2
PA
32932017-09-04 Pedro Alves <palves@redhat.com>
3294
3295 * NEWS (Safer support for debugging with no debug info): New.
3296
3693fdb3
PA
32972017-09-04 Pedro Alves <palves@redhat.com>
3298
3299 * c-exp.y (function_method, function_method_void): Add current
3300 instance flags to TYPE_INSTANCE.
3301 * dwarf2read.c (check_modifier): New.
3302 (compute_delayed_physnames): Assert that only C++ adds delayed
3303 physnames. Mark fn_fields as const/volatile depending on
3304 physname.
3305 * eval.c (make_params): New type_instance_flags parameter. Use
3306 it as the new type's instance flags.
3307 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
3308 flags element and pass it to make_params.
3309 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
3310 instance flags element.
3311 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
3312 * gdbtypes.h: Include "enum-flags.h".
3313 (type_instance_flags): New enum-flags type.
3314 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
3315 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
3316 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
3317 (follow_type_instance_flags): New function.
3318 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
3319 * parser-defs.h (follow_type_instance_flags): Declare.
3320 * valops.c (value_struct_elt_for_reference): const/volatile must
3321 match too.
3322
e68cb8e0
PA
33232017-09-04 Pedro Alves <palves@redhat.com>
3324
3325 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
3326 function/method scopes; lookup the nested name as a function local
3327 static variable.
3328
858be34c
PA
33292017-09-04 Pedro Alves <palves@redhat.com>
3330
3331 (%type <voidval>): Add function_method.
3332 * c-exp.y (exp): New production for calls with no arguments.
3333 (function_method, function_method_void_or_typelist): New
3334 productions.
3335 (exp): New production for "method()::static_var".
3336 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
3337 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
3338 Handle OP_FUNC_STATIC_VAR.
3339 * parse.c (operator_length_standard):
3340 Handle OP_FUNC_STATIC_VAR.
3341
dd5901a6
PA
33422017-09-04 Pedro Alves <palves@redhat.com>
3343
3344 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
3345 handling.
3346 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
3347 Ditto.
3348 * parse.c (operator_length_standard, operator_check_standard):
3349 Ditto.
3350 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
3351
46a4882b
PA
33522017-09-04 Pedro Alves <palves@redhat.com>
3353
3354 * ax-gdb.c: Include "typeprint.h".
3355 (gen_expr_for_cast): New function.
3356 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
3357 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
3358 type is unknown.
3359 * dwarf2read.c (new_symbol_full): Fallback to int instead of
3360 nodebug_data_symbol.
3361 * eval.c: Include "typeprint.h".
3362 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
3363 Error out if symbol has unknown type.
3364 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
3365 evaluate_subexp_for_cast.
3366 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
3367 OP_VAR_MSYM_VALUE.
3368 (evaluate_subexp_for_cast): New function.
3369 * gdbtypes.c (init_nodebug_var_type): New function.
3370 (objfile_type): Use it to initialize types of variables with no
3371 debug info.
3372 * typeprint.c (error_unknown_type): New.
3373 * typeprint.h (error_unknown_type): New declaration.
3374 * compile/compile-c-types.c (convert_type_basic): Handle
3375 TYPE_CODE_ERROR; warn and fallback to int for variables with
3376 unknown type.
3377
fe13dfec
PA
33782017-09-04 Pedro Alves <palves@redhat.com>
3379
3380 * eval.c (evaluate_var_value): New function, factored out from ...
3381 (evaluate_subexp_standard): ... here.
3382
d008ee21
PA
33832017-09-04 Pedro Alves <palves@redhat.com>
3384
3385 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
3386 Remove useless assignments to 'op'.
3387
827d0c51
PA
33882017-09-04 Pedro Alves <palves@redhat.com>
3389
3390 * eval.c (eval_skip_value): New function.
3391 (evaluate_subexp_standard): Use it.
3392
2c5a2be1
PA
33932017-09-04 Pedro Alves <palves@redhat.com>
3394
3395 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
3396 function name from symbol/minsym and pass it to
3397 error_call_unknown_return_type.
3398
74ea4be4
PA
33992017-09-04 Pedro Alves <palves@redhat.com>
3400
3401 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
3402 * ax-gdb.c (gen_msym_var_ref): New function.
3403 (gen_expr): Handle OP_VAR_MSYM_VALUE.
3404 * eval.c (evaluate_var_msym_value): New function.
3405 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
3406 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
3407 to call_function_by_hand.
3408 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
3409 Handle OP_VAR_MSYM_VALUE.
3410 (union exp_element) <msymbol>: New field.
3411 * minsyms.h (struct type): Forward declare.
3412 (find_minsym_type_and_address): Declare.
3413 * parse.c (write_exp_elt_msym): New function.
3414 (write_exp_msymbol): Delete, refactored as ...
3415 (find_minsym_type_and_address): ... this new function.
3416 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
3417 (operator_length_standard, operator_check_standard): Handle
3418 OP_VAR_MSYM_VALUE.
3419 * std-operator.def (OP_VAR_MSYM_VALUE): New.
3420
7022349d
PA
34212017-09-04 Pedro Alves <palves@redhat.com>
3422
3423 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
3424 TYPE_GNU_IFUNC specially here. Throw error if return type is
3425 unknown.
3426 * ada-typeprint.c (print_func_type): Handle functions with unknown
3427 return type.
3428 * c-typeprint.c (c_type_print_base): Handle functions and methods
3429 with unknown return type.
3430 * compile/compile-c-symbols.c (convert_symbol_bmsym)
3431 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
3432 * compile/compile-c-types.c: Include "objfiles.h".
3433 (convert_func): For functions with unknown return type, warn and
3434 default to int.
3435 * compile/compile-object-run.c (compile_object_run): Adjust call
3436 to call_function_by_hand_dummy.
3437 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
3438 call_function_by_hand.
3439 * eval.c (evaluate_subexp_standard): Adjust calls to
3440 call_function_by_hand. Handle functions and methods with unknown
3441 return type. Pass expect_type to call_function_by_hand.
3442 * f-typeprint.c (f_type_print_base): Handle functions with unknown
3443 return type.
3444 * gcore.c (call_target_sbrk): Adjust call to
3445 call_function_by_hand.
3446 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
3447 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
3448 an integer address type instead of nodebug.
3449 * guile/scm-value.c (gdbscm_value_call): Adjust call to
3450 call_function_by_hand.
3451 * infcall.c (error_call_unknown_return_type): New function.
3452 (call_function_by_hand): New "default_return_type" parameter.
3453 Pass it down.
3454 (call_function_by_hand_dummy): New "default_return_type"
3455 parameter. Use it instead of defaulting to int. If there's no
3456 default and the return type is unknown, throw an error. If
3457 there's a default return type, and the called function has no
3458 debug info, then assume the function is prototyped.
3459 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
3460 New "default_return_type" parameter.
3461 (error_call_unknown_return_type): New declaration.
3462 * linux-fork.c (call_lseek): Cast return type of lseek.
3463 (inferior_call_waitpid, checkpoint_command): Adjust calls to
3464 call_function_by_hand.
3465 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
3466 calls to call_function_by_hand.
3467 * m2-typeprint.c (m2_procedure): Handle functions with unknown
3468 return type.
3469 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3470 (value_nsstring, print_object_command): Adjust calls to
3471 call_function_by_hand.
3472 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
3473 functions with unknown return type.
3474 (pascal_type_print_func_varspec_suffix): New function.
3475 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
3476 TYPE_CODE_METHOD>: Use it.
3477 * python/py-value.c (valpy_call): Adjust call to
3478 call_function_by_hand.
3479 * rust-lang.c (rust_evaluate_funcall): Adjust call to
3480 call_function_by_hand.
3481 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
3482 call_function_by_hand.
3483 * valops.c (value_allocate_space_in_inferior): Adjust call to
3484 call_function_by_hand.
3485 * typeprint.c (type_print_unknown_return_type): New function.
3486 * typeprint.h (type_print_unknown_return_type): New declaration.
3487
54990598
PA
34882017-09-04 Pedro Alves <palves@redhat.com>
3489
3490 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
3491 types with more than one parameter as prototyped.
3492
9a24775b
PA
34932017-09-04 Pedro Alves <palves@redhat.com>
3494
3495 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
3496 (disassemble_command): Use gdb_disassembly_flags instead of bare
3497 int.
3498 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
3499 (dump_insns, do_mixed_source_and_assembly_deprecated)
3500 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
3501 Use gdb_disassembly_flags instead of bare int.
3502 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
3503 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
3504 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
3505 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
3506 (enum gdb_disassembly_flag): ... values of this new enumeration.
3507 (gdb_disassembly_flags): Define.
3508 (gdb_disassembly)
3509 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
3510 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
3511 gdb_disassembly_flags instead of bare int.
3512 * record-btrace.c (btrace_insn_history)
3513 (record_btrace_insn_history, record_btrace_insn_history_range)
3514 (record_btrace_insn_history_from): Use gdb_disassembly_flags
3515 instead of bare int.
3516 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
3517 Use gdb_disassembly_flags instead of bare int.
3518 * target-debug.h (target_debug_print_gdb_disassembly_flags):
3519 Define.
3520 * target-delegates.c: Regenerate.
3521 * target.c (target_insn_history, target_insn_history_from)
3522 (target_insn_history_range): Use gdb_disassembly_flags instead of
3523 bare int.
3524 * target.h: Include "disasm.h".
3525 (struct target_ops) <to_insn_history, to_insn_history_from,
3526 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
3527 int.
3528 (target_insn_history, target_insn_history_from)
3529 (target_insn_history_range): Use gdb_disassembly_flags instead of
3530 bare int.
3531
80a65e9b
SM
35322017-09-04 Simon Marchi <simon.marchi@ericsson.com>
3533
3534 * cli/cli-script.c (build_command_line): For if/while commands,
3535 check whether args is empty.
3536
6b66338c
SM
35372017-09-04 Simon Marchi <simon.marchi@ericsson.com>
3538
3539 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
3540 (enum command_control_type): Likewise.
3541 (struct command_line): Likewise.
3542 (free_command_lines): Likewise.
3543 (struct command_lines_deleter): Likewise.
3544 (command_line_up): Likewise.
3545 (read_command_lines): Likewise.
3546 (read_command_lines_1): Likewise.
3547 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
3548 (enum command_control_type): Likewise.
3549 (struct command_line): Likewise.
3550 (free_command_lines): Likewise.
3551 (struct command_lines_deleter): Likewise.
3552 (command_line_up): Likewise.
3553 (read_command_lines): Likewise.
3554 (read_command_lines_1): Likewise.
3555 * breakpoint.h: Include cli/cli-script.h.
3556 * extension-priv.h: Likewise.
3557 * gdbcmd.h: Likewise.
3558
51abb421
PA
35592017-09-04 Pedro Alves <palves@redhat.com>
3560
3561 * ada-lang.c (is_known_support_routine): Move sal declaration to
3562 where it is initialized.
3563 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
3564 (parse_breakpoint_sals, decode_static_tracepoint_spec)
3565 (clear_command, update_static_tracepoint): Remove init_sal
3566 references. Move declarations closer to initializations.
3567 * cli/cli-cmds.c (list_command): Move sal declarations closer to
3568 initializations.
3569 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
3570 references. Move sal declarations closer to initializations.
3571 * frame.c (find_frame_sal): Return a symtab_and_line via function
3572 return instead of output parameter. Remove init_sal references.
3573 * frame.h (find_frame_sal): Return a symtab_and_line via function
3574 return instead of output parameter.
3575 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
3576 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
3577 instead of memset.
3578 (gdbscm_find_pc_line): Remove init_sal reference.
3579 * infcall.c (call_function_by_hand_dummy): Remove init_sal
3580 references. Move declarations closer to initializations.
3581 * infcmd.c (set_step_frame): Update. Move declarations closer to
3582 initializations.
3583 (finish_backward): Remove init_sal references. Move declarations
3584 closer to initializations.
3585 * infrun.c (process_event_stop_test, handle_step_into_function)
3586 (insert_hp_step_resume_breakpoint_at_frame)
3587 (insert_step_resume_breakpoint_at_caller): Likewise.
3588 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
3589 (symbol_to_sal): Likewise.
3590 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
3591 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
3592 to its initialization.
3593 * reverse.c (save_bookmark_command): Use new/delete. Remove
3594 init_sal references. Move declarations closer to initializations.
3595 * source.c (get_current_source_symtab_and_line): Remove brace
3596 initialization.
3597 (set_current_source_symtab_and_line): Now takes the sal by const
3598 reference. Remove brace initialization.
3599 (line_info): Remove init_sal reference.
3600 * source.h (set_current_source_symtab_and_line): Now takes a
3601 symtab_and_line via const reference.
3602 * stack.c (set_current_sal_from_frame): Adjust.
3603 (print_frame_info): Adjust.
3604 (get_last_displayed_sal): Return the sal via function return
3605 instead of via output parameter. Simplify.
3606 (frame_info): Adjust.
3607 * stack.h (get_last_displayed_sal): Return the sal via function
3608 return instead of via output parameter.
3609 * symtab.c (init_sal): Delete.
3610 (find_pc_sect_line): Remove init_sal references. Move
3611 declarations closer to initializations.
3612 (find_function_start_sal): Remove init_sal references. Move
3613 declarations closer to initializations.
3614 * symtab.h (struct symtab_and_line): In-class initialize all
3615 fields.
3616 * tracepoint.c (set_traceframe_context)
3617 (print_one_static_tracepoint_marker): Remove init_sal references.
3618 Move declarations closer to initializations.
3619 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
3620 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
3621 declarations closer to initializations.
3622 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
3623 init_sal references. Adjust.
3624
6c5b2ebe
PA
36252017-09-04 Pedro Alves <palves@redhat.com>
3626
3627 * ax-gdb.c (agent_command_1): Use range-for.
3628 * break-catch-throw.c (re_set_exception_catchpoint): Update.
3629 * breakpoint.c: Include "common/array-view.h".
3630 (init_breakpoint_sal, create_breakpoint_sal): Change sals
3631 parameter from struct symtabs_and_lines to
3632 array_view<symtab_and_line>. Adjust. Use range-for. Update.
3633 (breakpoint_sals_to_pc): Change sals parameter from struct
3634 symtabs_and_lines to std::vector reference.
3635 (check_fast_tracepoint_sals): Change sals parameter from struct
3636 symtabs_and_lines to std::array_view. Use range-for.
3637 (decode_static_tracepoint_spec): Return a std::vector instead of
3638 symtabs_and_lines. Update.
3639 (create_breakpoint): Update.
3640 (break_range_command, until_break_command, clear_command): Update.
3641 (base_breakpoint_decode_location, bkpt_decode_location)
3642 (bkpt_probe_create_sals_from_location)
3643 (bkpt_probe_decode_location, tracepoint_decode_location)
3644 (tracepoint_probe_decode_location)
3645 (strace_marker_create_sals_from_location): Return a std::vector
3646 instead of symtabs_and_lines.
3647 (strace_marker_create_breakpoints_sal): Update.
3648 (strace_marker_decode_location): Return a std::vector instead of
3649 symtabs_and_lines. Update.
3650 (update_breakpoint_locations): Change struct symtabs_and_lines
3651 parameters to gdb::array_view. Adjust.
3652 (location_to_sals): Return a std::vector instead of
3653 symtabs_and_lines. Update.
3654 (breakpoint_re_set_default): Use std::vector instead of struct
3655 symtabs_and_lines.
3656 (decode_location_default): Return a std::vector instead of
3657 symtabs_and_lines. Update.
3658 * breakpoint.h: Include "common/array-view.h".
3659 (struct breakpoint_ops) <decode_location>: Now returns a
3660 std::vector instead of returning a symtabs_and_lines via output
3661 parameter.
3662 (update_breakpoint_locations): Change sals parameters to use
3663 gdb::array_view.
3664 * cli/cli-cmds.c (edit_command, list_command): Update to use
3665 std::vector and gdb::array_view.
3666 (ambiguous_line_spec): Adjust to use gdb::array_view and
3667 range-for.
3668 (compare_symtabs): Rename to ...
3669 (cmp_symtabs): ... this. Change parameters to symtab_and_line
3670 const reference and adjust.
3671 (filter_sals): Rewrite using std::vector and standard algorithms.
3672 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
3673 (jump_command): Update to use std::vector.
3674 * linespec.c (struct linespec_state) <canonical_names>: Update
3675 comment.
3676 (add_sal_to_sals_basic): Delete.
3677 (add_sal_to_sals, filter_results, convert_results_to_lsals)
3678 (decode_line_2, create_sals_line_offset)
3679 (convert_address_location_to_sals, convert_linespec_to_sals)
3680 (convert_explicit_location_to_sals, parse_linespec)
3681 (event_location_to_sals, decode_line_full, decode_line_1)
3682 (decode_line_with_current_source)
3683 (decode_line_with_last_displayed, decode_objc)
3684 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
3685 (linespec_result::~linespec_result): Adjust to use std::vector
3686 instead of symtabs_and_lines.
3687 * linespec.h (linespec_sals::sals): Now a std::vector.
3688 (struct linespec_result): Use std::vector, bool, and in-class
3689 initialization.
3690 (decode_line_1, decode_line_with_current_source)
3691 (decode_line_with_last_displayed): Return std::vector.
3692 * macrocmd.c (info_macros_command): Use std::vector.
3693 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
3694 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
3695 std::vector.
3696 * probe.h (parse_probes): Return a std::vector.
3697 * python/python.c (gdbpy_decode_line): Use std::vector and
3698 gdb::array_view.
3699 * source.c (select_source_symtab, line_info): Use std::vector.
3700 * stack.c (func_command): Use std::vector.
3701 * symtab.h (struct symtabs_and_lines): Delete.
3702 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
3703
7c44b49c
PA
37042017-09-04 Pedro Alves <palves@redhat.com>
3705
3706 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3707 unittests/array-view-selftests.c.
3708 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
3709 * common/array-view.h: New file.
3710 * unittests/array-view-selftests.c: New file.
3711
e439fa14
PA
37122017-09-04 Pedro Alves <palves@redhat.com>
3713
3714 * cli/cli-cmds.c (edit_command): Pass message to
3715 ambiguous_line_spec.
3716 (list_command): Pass message to ambiguous_line_spec. Say
3717 "first"/"last" instead of "start" and "end" to be consistent with
3718 the manual.
3719 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
3720 them to print formatted message.
3721
7525b645
PA
37222017-09-04 Pedro Alves <palves@redhat.com>
3723
3724 * btrace.c (ftrace_add_pt): Pass btrace_insn to
3725 ftrace_update_insns by reference instead of pointer.
3726
badc0020
YQ
37272017-09-04 Yao Qi <yao.qi@linaro.org>
3728
3729 * i386-go32-tdep.c: Include x86-xstate.h.
3730 (i386_go32_init_abi): Call i386_target_description.
3731 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
3732 if xcr0 is X86_XSTATE_X87_MASK.
3733 * i386-tdep.h (tdesc_i386): Remove the declaration.
3734 (tdesc_i386_mmx): Likewise.
3735
d78bdb54
YQ
37362017-09-04 Yao Qi <yao.qi@linaro.org>
3737
3738 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
3739 X86_XSTATE_SSE_MASK instead of 0.
3740
ca1fa5ee
YQ
37412017-09-04 Yao Qi <yao.qi@linaro.org>
3742
3743 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
3744 i386_target_description.
3745 * i386-fbsd-nat.c (i386fbsd_read_description): Call
3746 i386_target_description.
3747 * i386-tdep.c (i386_gdbarch_init): Likewise.
3748
2434b019
YQ
37492017-09-04 Yao Qi <yao.qi@linaro.org>
3750
3751 * amd64-darwin-tdep.c: Include "x86-xstate.h".
3752 (x86_darwin_init_abi_64): Call amd64_target_description.
3753 * amd64-dicos-tdep.c: Likewise.
3754 * amd64-fbsd-nat.c: Likewise.
3755 * amd64-fbsd-tdep.c: Likewise.
3756 * amd64-nbsd-tdep.c: Likewise.
3757 * amd64-obsd-tdep.c: Likewise.
3758 * amd64-sol2-tdep.c: Likewise.
3759 * amd64-windows-tdep.c: Likewise.
3760 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
3761
0860c437
SM
37622017-09-04 Simon Marchi <simon.marchi@ericsson.com>
3763
3764 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
3765 (btrace_function) <insn>: Change type to use std::vector.
3766 * btrace.c (ftrace_debug, ftrace_call_num_insn,
3767 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
3768 ftrace_update_insns, ftrace_compute_global_level_offset,
3769 btrace_stitch_bts, btrace_clear, btrace_insn_get,
3770 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
3771 change to std::vector.
3772 (ftrace_update_insns): Adjust to change to std::vector, change
3773 type of INSN parameter.
3774 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
3775 * record-btrace.c (btrace_call_history_insn_range,
3776 btrace_compute_src_line_range,
3777 record_btrace_frame_prev_register): Adjust to change to
3778 std::vector.
3779 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
3780 to change to std::vector.
3781
0638b7f9
TT
37822017-09-03 Tom Tromey <tom@tromey.com>
3783
3784 * corefile.c (reopen_exec_file): Use std::string.
3785
8f84fb0e
TT
37862017-09-03 Tom Tromey <tom@tromey.com>
3787
3788 * compile/compile.c (compile_register_name_mangled): Return
3789 std::string.
3790 * compile/compile-loc2c.c (pushf_register_address): Update.
3791 (pushf_register): Update.
3792 * compile/compile-c-types.c (convert_array): Update.
3793 * compile/compile-c-symbols.c (generate_vla_size): Update.
3794 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
3795 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
3796 (convert_one_symbol): Update.
3797 (generate_c_for_for_one_variable): Update.
3798 * compile/compile-c-support.c (c_get_range_decl_name): Return a
3799 std::string.
3800 (generate_register_struct): Update.
3801 * compile/compile-internal.h (c_get_range_decl_name): Return a
3802 std::string.
3803 (compile_register_name_mangled): Return std::string.
3804
18e9961f
TT
38052017-09-03 Tom Tromey <tom@tromey.com>
3806
3807 * utils.c (perror_string): Return a std::string.
3808 (throw_perror_with_name, perror_warning_with_name): Update.
3809
45343786
TT
38102017-09-03 Tom Tromey <tom@tromey.com>
3811
3812 * demangle.c (demangle_command): Use std::string,
3813 unique_xmalloc_ptr.
3814
b57af503
TT
38152017-09-03 Tom Tromey <tom@tromey.com>
3816
3817 * cli/cli-setshow.c (do_set_command): Use std::string.
3818
6eecf35f
TT
38192017-09-03 Tom Tromey <tom@tromey.com>
3820
3821 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
3822
56496dd4
TT
38232017-09-03 Tom Tromey <tom@tromey.com>
3824
3825 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
3826
e91a1fa7
TT
38272017-09-03 Tom Tromey <tom@tromey.com>
3828
3829 * mi/mi-cmd-env.c (env_execute_cli_command): Use
3830 gdb::unique_xmalloc_ptr.
3831
7ffd83d7
TT
38322017-09-03 Tom Tromey <tom@tromey.com>
3833
3834 * thread.c (print_thread_info_1): Use string_printf.
3835 (thread_apply_command, thread_apply_all_command): Use
3836 std::string.
3837
1ccbe998
TT
38382017-09-03 Tom Tromey <tom@tromey.com>
3839
3840 * valprint.c (val_print_string): Update.
3841 * gdbcore.h (memory_error_message): Return std::string.
3842 * corefile.c (memory_error_message): Return std::string.
3843 (memory_error): Update.
3844 * breakpoint.c (insert_bp_location): Update.
3845
23fdd69e
SM
38462017-09-03 Simon Marchi <simon.marchi@ericsson.com>
3847
3848 * target/waitstatus.h (target_waitstatus_to_string): Change
3849 return type to std::string.
3850 * target/waitstatus.c (target_waitstatus_to_string): Return
3851 std::string.
3852 * target.h (target_waitstatus_to_string): Remove declaration.
3853 * infrun.c (resume, clear_proceed_status_thread,
3854 print_target_wait_results, do_target_wait, save_waitstatus,
3855 stop_all_threads): Adjust.
3856 * record-btrace.c (record_btrace_wait): Adjust.
3857 * target-debug.h
3858 (target_debug_print_struct_target_waitstatus_p): Adjust.
3859
5c811d30
JK
38602017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3861
3862 PR gdb/22046
3863 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
3864 detection.
3865
0a2dde4a
SDJ
38662017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
3867
3868 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
3869 for setting/unsetting environment variables on the remote target.
3870 (New remote packets): Add entries for QEnvironmentHexEncoded,
3871 QEnvironmentUnset and QEnvironmentReset.
3872 * common/environ.c (gdb_environ::operator=): Extend method to
3873 handle m_user_set_env_list and m_user_unset_env_list.
3874 (gdb_environ::clear): Likewise.
3875 (match_var_in_string): Change type of first parameter from 'char
3876 *' to 'const char *'.
3877 (gdb_environ::set): Extend method to handle
3878 m_user_set_env_list and m_user_unset_env_list.
3879 (gdb_environ::unset): Likewise.
3880 (gdb_environ::clear_user_set_env): New method.
3881 (gdb_environ::user_set_envp): Likewise.
3882 (gdb_environ::user_unset_envp): Likewise.
3883 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
3884 m_user_unset_env_list on move constructor/assignment.
3885 (unset): Add new default parameter 'update_unset_list = true'.
3886 (clear_user_set_env): New method.
3887 (user_set_envp): Likewise.
3888 (user_unset_envp): Likewise.
3889 (m_user_set_env_list): New std::set.
3890 (m_user_unset_env_list): Likewise.
3891 * common/rsp-low.c (hex2str): New function.
3892 (bin2hex): New overload for bin2hex function.
3893 * common/rsp-low.c (hex2str): New prototype.
3894 (str2hex): New overload prototype.
3895 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
3896 QEnvironmentUnset and QEnvironmentReset.
3897 (remote_protocol_features): Add QEnvironmentHexEncoded,
3898 QEnvironmentUnset and QEnvironmentReset packets.
3899 (send_environment_packet): New function.
3900 (extended_remote_environment_support): Likewise.
3901 (extended_remote_create_inferior): Call
3902 extended_remote_environment_support.
3903 (_initialize_remote): Add QEnvironmentHexEncoded,
3904 QEnvironmentUnset and QEnvironmentReset packet configs.
3905 * unittests/environ-selftests.c (gdb_selftest_env_var):
3906 New variable.
3907 (test_vector_initialization): New function.
3908 (test_init_from_host_environ): Likewise.
3909 (test_reinit_from_host_environ): Likewise.
3910 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
3911 Likewise.
3912 (test_unset_set_empty_vector): Likewise.
3913 (test_vector_clear): Likewise.
3914 (test_std_move): Likewise.
3915 (test_move_constructor):
3916 (test_self_move): Likewise.
3917 (test_set_unset_reset): Likewise.
3918 (run_tests): Rewrite in terms of the functions above.
3919
654670a4
WP
39202017-08-31 Weimin Pan <weimin.pan@oracle.com>
3921
3922 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
3923 (adi_available): Use a temp variable of type CORE_ADDR as argument
3924 3 when calling target_auxv_search.
3925 (adi_normalize_address): Use masks and xor operators to calculate
3926 normalized address.
3927 (adi_read_versions, adi_write_versions, adi_print_versions)
3928 (do_examine, do_assign): Use paddress.
3929
7755ddb7
JB
39302017-08-29 John Baldwin <jhb@FreeBSD.org>
3931
3932 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
3933 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
3934 out of loop and add supply of FIR.
3935 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
3936 add collect of FIR.
3937
fd437cbc
SM
39382017-08-28 Simon Marchi <simon.marchi@ericsson.com>
3939
3804a343 3940 PR gdb/21827
fd437cbc
SM
3941 * cli/cli-script.c (define_command): Don't convert command name
3942 to lower case.
3943
988f6b3d
JB
39442017-08-25 Joel Brobecker <brobecker@adacore.com>
3945
3946 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
3947 Update all callers accordingly. Remove all code blocks handling
3948 the case where DISPP is not NULL.
3949
663c44ac
JK
39502017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3951
3952 PR symtab/22003
3953 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
3954 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
3955 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
3956
f1902523
JK
39572017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3958
3959 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
3960 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
3961 (read_comp_units_from_section): New parameter abbrev_section, use
3962 read_and_check_comp_unit_head, allocate signatured_type if needed.
3963 (create_all_comp_units): Update read_comp_units_from_section caller.
3964
87215ad1
SDJ
39652017-08-23 Pedro Alves <palves@redhat.com>
3966
3967 PR remote/21852
3968 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
3969 to null_ptid and switch to thread without reading the registers
3970 after adding the inferior.
3971
6e41ddec
JK
39722017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3973
3974 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
3975 compile-gcc.
3976 * compile/compile.c (compile_gcc, show_compile_gcc): New.
3977 (compile_to_object): Implement compile_gcc.
3978 (_initialize_compile): Install "set compile-gcc". Initialize
3979 compile_gcc.
3980
e68c32d5
JK
39812017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3982
3983 * compile/compile.c (compile_to_object): Conditionally call
3984 set_verbose. Conditionally call compile or compile_v0.
3985
58afddc6
WP
39862017-08-07 Weimin Pan <weimin.pan@oracle.com>
3987
3988 * sparc64-tdep.h: (adi_normalize_address): New export.
3989 * sparc-nat.h: (open_adi_tag_fd): New export.
3990 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
3991 * sparc64-linux-tdep.c:
3992 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
3993 (sparc64_linux_handle_segmentation_fault): New function.
3994 (sparc64_linux_init_abi): Register
3995 sparc64_linux_handle_segmentation_fault
3996 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
3997 (sparc64_addr_bits_remove): New function.
3998 (sparc64_init_abi): Register sparc64_addr_bits_remove.
3999 (MAX_PROC_NAME_SIZE): New macro.
4000 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
4001 (sparc64adilist): New variable.
4002 (adi_proc_list): New variable.
4003 (find_adi_info): New function.
4004 (add_adi_info): New function.
4005 (get_adi_info_proc): New function.
4006 (get_adi_info): New function.
4007 (info_adi_command): New function.
4008 (read_maps_entry): New function.
4009 (adi_available): New function.
4010 (adi_normalize_address): New function.
4011 (adi_align_address): New function.
4012 (adi_convert_byte_count): New function.
4013 (adi_tag_fd): New function.
4014 (adi_is_addr_mapped): New function.
4015 (adi_read_versions): New function.
4016 (adi_write_versions): New function.
4017 (adi_print_versions): New function.
4018 (do_examine): New function.
4019 (do_assign): New function.
4020 (adi_examine_command): New function.
4021 (adi_assign_command): New function.
4022 (_initialize_sparc64_adi_tdep): New function.
4023
11db9430
SM
40242017-08-22 Simon Marchi <simon.marchi@ericsson.com>
4025
4026 * breakpoint.c (breakpoints_info): Rename to ...
4027 (info_breakpoints_command): ... this.
4028 (watchpoints_info): Rename to ...
4029 (info_watchpoints_command): ... this.
4030 (tracepoints_info): Rename to ...
4031 (info_tracepoints_command): ... this.
4032 (_initialize_breakpoint): Adjust.
4033 * dcache.c (dcache_info): Rename to ...
4034 (info_display_command): ... this.
4035 (_initialize_dcache): Adjust.
4036 * frame.h (args_info): Rename to ...
4037 (info_args_command): ... this.
4038 (locals_info): Rename to ...
4039 (info_locals_command): ... this.
4040 * infcmd.c (nofp_registers_info): Rename to ...
4041 (info_registers_command): ... this.
4042 (float_info): Rename to ...
4043 (info_float_command): ... this.
4044 (program_info): Rename to ...
4045 (info_program_command): ... this.
4046 (all_registers_info): Rename to ...
4047 (info_all_registers_command): ... this.
4048 (vector_info): Rename to ...
4049 (info_vector_command): ... this.
4050 (float_info): Rename to ...
4051 (info_float_command): ... this.
4052 (_initialize_infcmd): Adjust.
4053 * inferior.h (term_info): Rename to ...
4054 (info_terminal_command): ... this.
4055 * inflow.c (term_info): Rename to ...
4056 (info_terminal_command): ... this.
4057 (_initialize_inflow): Adjust.
4058 * infrun.c (signals_info): Rename to ...
4059 (info_signals_command): ... this.
4060 (_initialize_infrun): Adjust.
4061 * objc-lang.c (classes_info): Rename to ...
4062 (info_classes_command): ... this.
4063 (selectors_info): Rename to ...
4064 (info_selectors_command): ... this.
4065 (_initialize_objc_language): Adjust.
4066 * printcmd.c (sym_info): Rename to ...
4067 (info_symbol_command): ... this.
4068 (address_info): Rename to ...
4069 (info_address_command): ... this.
4070 (display_info): Rename to ...
4071 (info_display_command): ... this.
4072 (_initialize_printcmd): Adjust.
4073 * reverse.c (bookmarks_info): Rename to ...
4074 (info_breakpoints_command): ... this.
4075 (_initialize_reverse): Adjust.
4076 * ser-go32.c (dos_info): Rename to ...
4077 (info_serial_command): ... this.
4078 (_initialize_ser_dos): Adjust.
4079 * skip.c (skip_info): Rename to ...
4080 (info_skip_command): ... this.
4081 (_initialize_step_skip): Adjust.
4082 * source.c (line_info): Rename to ...
4083 (info_line_command): ... this.
4084 (source_info): Rename to ...
4085 (info_source_command)
4086 * stack.c (frame_info): Rename to ...
4087 (info_frame_command): ... this.
4088 (locals_info): Rename to ...
4089 (info_locals_command): ... this.
4090 (args_info): Rename to ...
4091 (info_args_command): ... this.
4092 (_initialize_stack): Adjust.
4093 * symtab.c (sources_info): Rename to ...
4094 (info_sources_command): ... this.
4095 (variables_info): Rename to ...
4096 (info_variables_command): ... this.
4097 (functions_info): Rename to ...
4098 (info_functions_command): ... this.
4099 (types_info): Rename to ...
4100 (info_types_command): ... this.
4101 (_initialize_symtab): Adjust.
4102 * target.c (target_info): Rename to ...
4103 (info_target_command): ... this.
4104 (initialize_targets): Adjust.
4105 * tracepoint.c (tvariables_info): Rename to ...
4106 (info_tvariables_command): ... this.
4107 (scope_info): Rename to ...
4108 (info_scope_command): ... this.
4109 (trace_dump_actions): Adjust.
4110 (_initialize_tracepoint): Adjust.
4111
b270e6f9
TT
41122017-08-22 Tom Tromey <tom@tromey.com>
4113
4114 * breakpoint.h (install_breakpoint): Update.
4115 * breakpoint.c (add_solib_catchpoint): Update.
4116 (install_breakpoint): Change argument to a std::unique_ptr.
4117 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
4118 (create_breakpoint_sal, create_breakpoint): Update.
4119 (watch_command_1, catch_exec_command_1)
4120 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
4121 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
4122 Return the breakpoint.
4123 (set_raw_breakpoint_without_location, set_raw_breakpoint)
4124 (new_single_step_breakpoint): Update.
4125 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
4126 std::unique_ptr.
4127 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
4128 std::unique_ptr.
4129 * break-catch-sig.c (create_signal_catchpoint): Use
4130 std::unique_ptr.
4131 * ada-lang.c (create_ada_exception_catchpoint): Use
4132 std::unique_ptr.
4133
36bd8eaa
TT
41342017-08-22 Tom Tromey <tom@tromey.com>
4135
4136 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
4137
56f37645
TT
41382017-08-22 Tom Tromey <tom@tromey.com>
4139
4140 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
4141 (lookup_partial_symbol): Update.
4142
0b581c69
TT
41432017-08-22 Tom Tromey <tom@tromey.com>
4144
4145 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
4146 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
4147 (find_and_open_source, symtab_to_fullname): Update.
4148 * psymtab.c (psymtab_to_fullname): Update.
4149
14278e1f
TT
41502017-08-22 Tom Tromey <tom@tromey.com>
4151
4152 * exec.c (exec_file_attach): Update.
4153 * linux-thread-db.c (try_thread_db_load): Update.
4154 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
4155 * utils.c (gdb_realpath): Change return type.
4156 (gdb_realpath_keepfile): Update.
4157 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
4158 (_initialize_utils): Register the new self test.
4159 * source.c (openp): Update.
4160 (find_and_open_source): Update.
4161 * nto-tdep.c (nto_find_and_open_solib): Update.
4162 * main.c (set_gdb_data_directory): Update.
4163 (captured_main_1): Update.
4164 * dwarf2read.c (dwarf2_get_dwz_file): Update
4165 (dw2_map_symbol_filenames): Update.
4166 * auto-load.c (auto_load_safe_path_vec_update): Update.
4167 (filename_is_in_auto_load_safe_path_vec): Change type of
4168 "filename_realp".
4169 (auto_load_objfile_script): Update.
4170 (file_is_auto_load_safe): Update. Use std::string.
4171 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
4172
4971c9a7
TT
41732017-08-22 Tom Tromey <tom@tromey.com>
4174
4175 * utils.c (gdb_realpath_keepfile): Return a
4176 gdb::unique_xmalloc_ptr.
4177 * exec.c (exec_file_attach): Update.
4178 * utils.h (gdb_realpath_keepfile): Return a
4179 gdb::unique_xmalloc_ptr.
4180
e3e41d58
TT
41812017-08-22 Tom Tromey <tom@tromey.com>
4182
4183 * compile/compile.c (compile_file_command): Use
4184 gdb::unique_xmalloc_ptr, std::string.
4185 * utils.c (gdb_abspath): Change return type.
4186 * source.c (openp): Update.
4187 * objfiles.c (allocate_objfile): Update.
4188 * main.c (set_gdb_data_directory): Update.
4189 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
4190
0d999a6e
ZZ
41912017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
4192
4193 * cli-cmds.c (list_commands): List actual code around more than
4194 one location.
4195
329d5e7e
JB
41962017-08-21 John Baldwin <jhb@FreeBSD.org>
4197
4198 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
4199
bf223d3e
PA
42002017-08-21 Pedro Alves <palves@redhat.com>
4201
4202 PR gdb/19487
4203 * c-exp.y (variable production): Handle function aliases.
4204 * minsyms.c (msymbol_is_text): New function.
4205 * minsyms.h (msymbol_is_text): Declare.
4206 * symtab.c (find_function_alias_target): New function.
4207 * symtab.h (find_function_alias_target): Declare.
4208
c973d0aa
PA
42092017-08-21 Pedro Alves <palves@redhat.com>
4210
4211 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
4212 typedefs.
4213 * typeprint.c (whatis_exp): If handling "whatis", and expression
4214 is OP_TYPE, strip one typedef level. Otherwise don't strip
4215 typedefs here.
4216 * valops.c (value_cast): Save "to" type before resolving
4217 stubs/typedefs. Use that type as resulting value's type.
4218
2989a365
TT
42192017-08-18 Tom Tromey <tom@tromey.com>
4220 Pedro Alves <palves@redhat.com>
4221
4222 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
4223 * sol-thread.c (sol_thread_resume, sol_thread_wait)
4224 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
4225 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
4226 * proc-service.c (ps_xfer_memory): Use scoped_restore.
4227 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
4228 (linux_get_siginfo_data): Add "thread" argument. Use
4229 scoped_restore.
4230 * linux-nat.c (linux_child_follow_fork)
4231 (check_stopped_by_watchpoint): Use scoped_restore.
4232 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
4233 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
4234 (restore_inferior_ptid, save_inferior_ptid): Remove.
4235 * btrace.c (btrace_fetch): Use scoped_restore.
4236 * bsd-uthread.c (bsd_uthread_fetch_registers)
4237 (bsd_uthread_store_registers): Use scoped_restore.
4238 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
4239 scoped_restore.
4240 * aix-thread.c (aix_thread_resume, aix_thread_wait)
4241 (aix_thread_xfer_partial): Use scoped_restore.
4242 * inferior.h (save_inferior_ptid): Remove.
4243
e60eb288
YQ
42442017-08-18 Yao Qi <yao.qi@linaro.org>
4245
4246 PR tdep/21818
4247 * arm-tdep.c (gdb_print_insn_arm): Mark
4248 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
4249
6d580b63
YQ
42502017-08-18 Yao Qi <yao.qi@linaro.org>
4251
4252 * NEWS: Mention GDBserver's new option "--selftest".
4253 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
4254 * selftest.c: Move it to common/selftest.c.
4255 * selftest.h: Move it to common/selftest.h.
4256 * selftest-arch.c (reset): New function.
4257 (tests_with_arch): Call reset.
4258
86dcbf50
YQ
42592017-08-18 Yao Qi <yao.qi@linaro.org>
4260
4261 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
4262 instead of exception_fprintf and printf_filtered.
4263
7649770c
YQ
42642017-08-18 Yao Qi <yao.qi@linaro.org>
4265
4266 * selftest.c (register_self_test): Rename it to
4267 selftests::register_test.
4268 (run_self_tests): selftest::run_tests.
4269 * selftest.h: Update declarations.
4270 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
4271 selftests::register_test_foreach_arch.
4272 * selftest-arch.h: Update declaration.
4273 * aarch64-tdep.c: Update.
4274 * arm-tdep.c: Likewise.
4275 * disasm-selftests.c: Likewise.
4276 * dwarf2loc.c: Likewise.
4277 * dwarf2-frame.c: Likewise.
4278 * findvar.c: Likewise.
4279 * gdbarch-selftests.c: Likewise.
4280 * maint.c (maintenance_selftest): Likewise.
4281 * regcache.c: Likewise.
4282 * rust-exp.y: Likewise.
4283 * selftest-arch.c: Likewise.
4284 * unittests/environ-selftests.c: Likewise.
4285 * unittests/function-view-selftests.c: Likewise.
4286 * unittests/offset-type-selftests.c: Likewise.
4287 * unittests/optional-selftests.c: Likewise.
4288 * unittests/scoped_restore-selftests.c: Likewise.
4289 * utils-selftests.c: Likewise.
4290
b0cba12e
PA
42912017-08-17 Pedro Alves <palves@redhat.com>
4292
4293 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
4294 local.
4295
4c8aa72d
PA
42962017-08-17 Pedro Alves <palves@redhat.com>
4297
4298 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
4299 field.
4300 (reset_die_in_process): Delete, replaced by ...
4301 (process_die_scope): ... this new class. Make it responsible for
4302 freeing cu->line_header too.
4303 (process_die): Use process_die_scope.
4304 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
4305 cu->line_header_die_owner. Don't release the line header if it's
4306 owned by the CU.
4307 (setup_type_unit_groups): Make the CU/DIE own the line header.
4308 Don't release the line header here.
4309
ba713918
AL
43102017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
4311
4312 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
4313
44d0fb3a
RK
43142017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
4315
4316 * NEWS: Mention new shortcuts for nexti and stepi in TUI
4317 Single-Key mode
4318
a5afdb16
RK
43192017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
4320
4321 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
4322 mode command list.
4323
47613aeb
SH
43242017-08-15 Stafford Horne <shorne@gmail.com>
4325
4326 * MAINTAINERS (Write After Approval): Add Stafford Horne.
4327
9c3cc999
SH
43282017-08-15 Stafford Horne <shorne@gmail.com>
4329
4330 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
4331
206726fb
SDJ
43322017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
4333
4334 PR gdb/21954
4335 * infcmd.c (unset_environment_command): Use the 'clear' method on
4336 the environment instead of resetting it.
4337
0335ac6d
JB
43382017-08-15 John Baldwin <jhb@FreeBSD.org>
4339
4340 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
4341 platforms.
4342
d3abe1c8
TT
43432017-08-14 Tom Tromey <tom@tromey.com>
4344
4345 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
4346 (print_binary_chars): Likewise.
4347 (BITS_IN_BYTES): Remove.
4348
d6382fff
TT
43492017-08-14 Tom Tromey <tom@tromey.com>
4350
4351 PR gdb/21675
4352 * valprint.c (LOW_ZERO): Change value to 034.
4353 (print_octal_chars): Add static_asserts for octal constants.
4354 * printcmd.c (print_scalar_formatted): Add 'd' case.
4355
f978cb06
TT
43562017-08-11 Tom Tromey <tom@tromey.com>
4357
4358 * symfile.c (add_symbol_file_command): Use std::vector.
4359
2f5404b3
TT
43602017-08-14 Tom Tromey <tom@tromey.com>
4361
4362 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
4363 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
4364 std::move.
4365 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
4366
de7985c3
PA
43672017-08-11 Pedro Alves <palves@redhat.com>
4368
4369 * infrun.c (process_event_stop_test): Adjust
4370 function_name_is_marked_for_skip call.
4371 * skip.c: Include <list>.
4372 (skiplist_entry): Make it a class with private fields, and
4373 getters/setters.
4374 (skiplist_entry_chain): Delete.
4375 (skiplist_entries): New.
4376 (skiplist_entry_count): Delete.
4377 (highest_skiplist_entry_num): New.
4378 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
4379 (add_skiplist_entry): Delete.
4380 (skiplist_entry::skiplist_entry): New.
4381 (skiplist_entry::add_entry): New.
4382 (skip_file_command, skip_function): Adjust.
4383 (compile_skip_regexp): Delete.
4384 (skip_command): Don't compile regexp here. Adjust to use
4385 skiplist_entry::add_entry.
4386 (skip_info): Adjust to use range-for and getters.
4387 (skip_enable_command, skip_disable_command): Adjust to use
4388 range-for and setters.
4389 (skip_delete_command): Adjust to use std::list.
4390 (add_skiplist_entry): Delete.
4391 (skip_file_p): Delete, refactored as ...
4392 (skiplist_entry::do_skip_file_p): ... this new method.
4393 (skip_gfile_p): Delete, refactored as ...
4394 (skiplist_entry::do_gskip_file_p): ... this new method.
4395 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
4396 (skiplist_entry::skip_function_p): ... this new method.
4397 (function_name_is_marked_for_skip): Now returns bool, and takes
4398 the function sal by const reference. Adjust to use range-for and
4399 skiplist_entry methods.
4400 (_initialize_step_skip): Remove references to
4401 skiplist_entry_chain, skiplist_entry_count.
4402 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
4403 takes the function sal by const reference.
4404
be7d3cd5
YQ
44052017-08-11 Yao Qi <yao.qi@linaro.org>
4406
4407 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
4408 (dwarf2_frame_cache): Remove reset_cache_cleanup.
4409 (dwarf2_frame_cache):
4410 * frame-unwind.c (frame_unwind_try_unwinder): Catch
4411 RETURN_MASK_ALL and set *this_case to NULL.
4412 * frame-unwind.h: Update comments.
4413
1c90d9f0
YQ
44142017-08-11 Yao Qi <yao.qi@linaro.org>
4415
4416 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
4417 (dwarf2_frame_state_copy_regs): Remove.
4418 (dwarf2_frame_state_free_regs): Remove.
4419 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
4420 (dwarf2_restore_rule): Call method .alloc_regs instead of
4421 dwarf2_frame_state_alloc_regs.
4422 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
4423 constructor. Call std::move.
4424 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
4425 (dwarf2_frame_cache): Likewise.
4426
4427 [GDB_SELF_TEST]: Include selftest.h and
4428 selftest-arch.h.
4429 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
4430 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
4431 execute_cfa_program_test.
4432
4433 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
4434 copy ctor, assignment operator, move assignment.
4435 <alloc_regs>: New method.
4436 <swap>: New method.
4437 (struct dwarf2_frame_state): Delete dtor.
4438 (dwarf2_frame_state_alloc_regs): Remove declaration.
4439 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
4440 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
4441
afe37d6b
YQ
44422017-08-11 Yao Qi <yao.qi@linaro.org>
4443
4444 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
4445 (dwarf2_frame_state::dwarf2_frame_state): New.
4446 (dwarf2_frame_state::~dwarf2_frame_state): New.
4447 (dwarf2_fetch_cfa_info): Update.
4448 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
4449 rather than a pointer. Update code.
4450 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
4451 dtor.
4452 <data_align, code_align, retaddr_column>: Change them to const.
4453 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
4454 to bool.
4455
b348037f
YQ
44562017-08-11 Yao Qi <yao.qi@linaro.org>
4457
4458 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
4459 <loc.exp>: New field.
4460 * dwarf2-frame.c (execute_cfa_program): Update.
4461 (dwarf2_frame_prev_register): Update.
4462
e7c9de26
PA
44632017-08-10 Pedro Alves <palves@redhat.com>
4464
4465 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
4466
e8c6b620
JB
44672017-08-09 John Baldwin <jhb@FreeBSD.org>
4468
4469 * fbsd-nat.c (struct fbsd_fork_info): Remove.
4470 (fbsd_pending_children): Use std::list.
4471 (fbsd_remember_child): Likewise.
4472 (fbsd_is_child_pending): Likewise.
4473 (fbsd_pending_vfork_done): Use std::forward_list.
4474 (fbsd_add_vfork_done): Likewise.
4475 (fbsd_is_vfork_done_pending): Likewise.
4476 (fbsd_next_vfork_done): Likewise.
4477
e4a26669
JB
44782017-08-09 John Baldwin <jhb@FreeBSD.org>
4479
4480 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
4481 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
4482 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
4483 for `mapfilename'.
4484 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 4485 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 4486
142311d3
JB
44872017-08-09 John Baldwin <jhb@FreeBSD.org>
4488
4489 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
4490 "filestuff.h".
4491 (fbsd_find_memory_regions): Fix `mapfile' initialization.
4492
42fa2e0e
TT
44932017-08-09 Tom Tromey <tom@tromey.com>
4494
4495 * skip.c (skiplist_entry): New constructor.
4496 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
4497 (skiplist_entry::file_is_glob): Now bool.
4498 (skiplist_entry::file, skiplist_entry::function): Now
4499 std::string.
4500 (make_skip_entry): Return a unique_ptr. Use new.
4501 (free_skiplist_entry, free_skiplist_entry_cleanup)
4502 (make_free_skiplist_entry_cleanup): Remove.
4503 (skip_command, skip_disable_command, add_skiplist_entry)
4504 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
4505 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
4506 (function_name_is_marked_for_skip): Update.
4507 (skip_delete_command): Update. Use delete.
4508
cd3af38d
JW
45092017-08-09 Jiong Wang <jiong.wang@arm.com>
4510
4511 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
4512 (aarch64_linux_core_read_description): New function.
4513 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
4514
29592bde
PA
45152017-08-09 Pedro Alves <palves@redhat.com>
4516
4517 * cp-name-parser.y (cp_comp_to_string): Return a
4518 gdb::unique_xmalloc_ptr<char>.
4519 * cp-support.c (replace_typedefs_qualified_name)
4520 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
4521 (cp_canonicalize_string_full): Use op= instead of explicit
4522 convertion.
4523 (cp_class_name_from_physname, method_name_from_physname)
4524 (cp_func_name, cp_remove_params): Adjust to use
4525 gdb::unique_xmalloc_ptr<char>.
4526 * cp-support.h (cp_comp_to_string): Return a
4527 gdb::unique_xmalloc_ptr<char>.
4528 * python/py-type.c (typy_lookup_type): Adjust to use
4529 gdb::unique_xmalloc_ptr<char>.
4530
b3340438
L
45312017-08-09 H.J. Lu <hongjiu.lu@intel.com>
4532
4533 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
4534
e88e8651
YQ
45352017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
4536 Yao Qi <yao.qi@linaro.org>
4537
4538 * cp-support.c (cp_canonicalize_string_full): Use
4539 gdb::unique_xmalloc_ptr<char>.
4540 (cp_canonicalize_string): Likewise.
4541
f5a29eb0
YQ
45422017-08-09 Yao Qi <yao.qi@linaro.org>
4543
4544 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
4545 * regformats/i386/amd64-avx-avx512.dat: Remove.
4546 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
4547 * regformats/i386/amd64-avx-mpx.dat:Remove.
4548 * regformats/i386/amd64-avx.dat: Remove.
4549 * regformats/i386/amd64-mpx.dat: Remove.
4550 * regformats/i386/i386-avx-avx512.dat: Remove.
4551 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
4552 * regformats/i386/i386-avx-mpx.dat: Remove.
4553 * regformats/i386/i386-mmx.dat: Remove.
4554 * regformats/i386/i386-mpx.dat: Remove.
4555
57757c2f
YQ
45562017-08-09 Yao Qi <yao.qi@linaro.org>
4557
4558 * amd64-tdep.h (tdesc_x32): Remove the declaration.
4559 * amd64-tdep.c: Don't include features/i386/x32*.c.
4560 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
4561 functions.
4562 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
4563 and i386/x32-avx-avx512.
4564 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
4565 and i386/x32.xml.
4566 * features/i386/x32-avx-avx512.c: Removed.
4567 * features/i386/x32-avx-avx512.xml: Removed.
4568 * features/i386/x32-avx.c: Removed.
4569 * features/i386/x32-avx.xml: Removed.
4570 * features/i386/x32.c: Removed.
4571 * features/i386/x32.xml: Removed.
4572 * regformats/i386/x32-avx-avx512.dat: Removed.
4573 * regformats/i386/x32-avx.dat: Removed.
4574 * regformats/i386/x32.dat: Removed.
4575
ba7b109b
MR
45762017-08-07 Maciej W. Rozycki <macro@imgtec.com>
4577
4578 PR breakpoints/21886
4579 * mem-break.c (default_memory_insert_breakpoint): Use
4580 `->placed_address' rather than `->reqstd_address' for the
4581 breakpoint location.
4582
e347efc3
MR
45832017-08-07 Maciej W. Rozycki <macro@imgtec.com>
4584
4585 * arch-utils.c (default_print_insn): Remove arch/mach/endian
4586 assertions.
4587
0dba2a6c
MR
45882017-08-07 Maciej W. Rozycki <macro@imgtec.com>
4589
4590 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
4591 a union of `tdep_info', `tdesc_data' and `id'.
4592 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
4593 rather than `info.tdep_info'.
4594 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
4595 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
4596 * i386-tdep.c (i386_gdbarch_init): Likewise.
4597 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
4598 * mips-tdep.c (mips_gdbarch_init): Likewise.
4599 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
4600 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
4601 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
4602 `info.tdep_info'.
4603 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
4604 `info.tdep_info'.
4605 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
4606 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
4607 `info.tdep_info'.
4608 * spu-tdep.c (spu_gdbarch_init): Likewise.
4609 * gdbarch.h: Regenerate.
4610
16eb6b2d
LS
46112017-08-07 Leszek Swirski <leszeks@google.com>
4612
7b005726 4613 PR symtab/20899
16eb6b2d
LS
4614 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
4615
74cbb09e
SM
46162017-08-07 Simon Marchi <simon.marchi@ericsson.com>
4617
4618 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
4619 (gdbsim_open): Rename gdb_argv args object to argv.
4620
ee0c3293
TT
46212017-08-05 Tom Tromey <tom@tromey.com>
4622
4623 * compile/compile-object-load.c (compile_object_load): Use
4624 gdb::unique_xmalloc_ptr.
4625 * cli/cli-dump.c (scan_filename): Rename from
4626 scan_filename_with_cleanup. Change return type.
4627 (scan_expression): Rename from scan_expression_with_cleanup.
4628 Change return type.
4629 (dump_memory_to_file, dump_value_to_file, restore_command):
4630 Use gdb::unique_xmalloc_ptr. Update.
4631 * cli/cli-cmds.c (find_and_open_script): Use
4632 gdb::unique_xmalloc_ptr.
4633 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
4634 * symmisc.c (maintenance_print_symbols)
4635 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
4636 * symfile.c (symfile_bfd_open, generic_load)
4637 (add_symbol_file_command, remove_symbol_file_command): Use
4638 gdb::unique_xmalloc_ptr.
4639 * source.c (openp): Use gdb::unique_xmalloc_ptr.
4640 * psymtab.c (maintenance_print_psymbols): Use
4641 gdb::unique_xmalloc_ptr.
4642 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
4643 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
4644 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
4645 (reload_shared_libraries_1): Likewise.
4646
3232fabd
TT
46472017-08-05 Tom Tromey <tom@tromey.com>
4648
4649 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
4650 (rust_op_vector, rust_set_vector): New typedefs.
4651 (current_parser): New global.
4652 (work_obstack): Change to pointer type. Update all users.
4653 (rust_ast, pstate): Remove globals.
4654 (struct rust_parser): New.
4655 (%union) <params, field_inits>: Change type.
4656 (start, tuple_expr, unit_expr, struct_expr_list, literal)
4657 (field_expr, expr_list, maybe_expr_list, type_list): Update.
4658 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
4659 (convert_params_to_types, convert_params_to_expression): Change
4660 type of "params".
4661 (ast_string): Change type of "fields".
4662 (rust_parse): Make a rust_parser. Remove cleanups.
4663 (rust_lex_tests): Make and install an auto_obstack.
4664
f02fd774
YQ
46652017-08-04 Yao Qi <yao.qi@linaro.org>
4666
4667 * configure.srv (ipa_x32_linux_regobj): New.
4668 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
4669 instead of X86_TDESC_AVX512.
4670 (initialize_low_tracepoint): Call
4671 init_registers_x32_avx_avx512_linux.
4672
91975afd
YQ
46732017-08-04 Yao Qi <yao.qi@linaro.org>
4674
4675 * utils.h (gdb_argv): Add namespace std for nullptr_t.
4676
2331fa3a
RK
46772017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
4678
4679 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
4680
744e4fe1
TT
46812017-08-03 Tom Tromey <tom@tromey.com>
4682
4683 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
4684 Remove.
4685 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
4686
1c034b67
TT
46872017-08-03 Tom Tromey <tom@tromey.com>
4688
4689 * python/py-param.c (compute_enum_values): Use gdb_argv.
4690
773a1edc
TT
46912017-08-03 Tom Tromey <tom@tromey.com>
4692
4693 * utils.h (struct gdb_argv_deleter): New.
4694 (gdb_argv): New class.
4695 * utils.c (gdb_argv::reset): New method.
4696 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
4697 * tracefile.c (tsave_command): Use gdb_argv.
4698 * top.c (new_ui_command): Use gdb_argv.
4699 * symmisc.c (maintenance_print_symbols)
4700 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
4701 * symfile.c (symbol_file_command, generic_load)
4702 (remove_symbol_file_command): Use gdb_argv.
4703 * stack.c (backtrace_command): Use gdb_argv.
4704 * source.c (add_path, show_substitute_path_command)
4705 (unset_substitute_path_command, set_substitute_path_command):
4706 Use gdb_argv.
4707 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
4708 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
4709 * remote.c (extended_remote_run, remote_put_command)
4710 (remote_get_command, remote_delete_command): Use gdb_argv.
4711 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
4712 (gdbsim_open): Use gdb_argv.
4713 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
4714 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
4715 * procfs.c (procfs_info_proc): Use gdb_argv.
4716 * interps.c (interpreter_exec_cmd): Use gdb_argv.
4717 * infrun.c (handle_command): Use gdb_argv.
4718 * inferior.c (add_inferior_command, clone_inferior_command):
4719 Use gdb_argv.
4720 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
4721 * exec.c (exec_file_command): Use gdb_argv.
4722 * cli/cli-cmds.c (alias_command): Use gdb_argv.
4723 * compile/compile.c (build_argc_argv): Use gdb_argv.
4724
0d50bde3
TT
47252017-08-03 Tom Tromey <tom@tromey.com>
4726
4727 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
4728
7f968c89
TT
47292017-08-03 Tom Tromey <tom@tromey.com>
4730
4731 * python/python.c (compute_python_string): Return std::string.
4732 (gdbpy_eval_from_control_command): Update.
4733 (do_start_initialization): Use std::string.
4734 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
4735 xstrprintf.
4736 * python/py-breakpoint.c (local_setattro): Use string_printf, not
4737 xstrprintf.
4738
3c9ebddd
TT
47392017-08-03 Tom Tromey <tom@tromey.com>
4740
4741 * top.h (do_restore_instream_cleanup): Remove.
4742 * top.c (do_restore_instream_cleanup): Remove.
4743 (read_command_file): Use scoped_restore.
4744 * cli/cli-script.c (execute_user_command): Use scoped_restore.
4745
b51b225e
TT
47462017-08-03 Tom Tromey <tom@tromey.com>
4747
4748 * cli/cli-script.c (execute_user_command)
4749 (execute_control_command): Use scoped_restore.
4750
ac991630
TT
47512017-08-03 Tom Tromey <tom@tromey.com>
4752
4753 * cli/cli-script.c (do_restore_user_call_depth): Remove.
4754 (execute_user_command): Remove user_call_depth; use
4755 user_args_stack's size instead.
4756
898e0c8e
TT
47572017-08-03 Tom Tromey <tom@tromey.com>
4758
4759 * top.h (in_user_command): Remove.
4760 * top.c (in_user_command): Remove.
4761 * cli/cli-script.c (do_restore_user_call_depth)
4762 (execute_user_command): Update.
4763
26fcd5d7
TT
47642017-08-03 Tom Tromey <tom@tromey.com>
4765
4766 * valops.c (search_struct_method): Use gdb::byte_vector.
4767 * valarith.c (value_concat): Use std::vector.
4768 * target.c (memory_xfer_partial): Use gdb::byte_vector.
4769 (simple_search_memory): Likewise.
4770 * printcmd.c (find_string_backward): Use gdb::byte_vector.
4771 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
4772 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
4773 * elfread.c (elf_rel_plt_read): Use std::string.
4774 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
4775 * cli/cli-dump.c (restore_section_callback): Use
4776 gdb::byte_vector.
4777
7c218e6c
TT
47782017-08-03 Tom Tromey <tom@tromey.com>
4779
4780 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
4781
31b68d4a
TT
47822017-08-03 Tom Tromey <tom@tromey.com>
4783
4784 * tui/tui-regs.c (tui_restore_gdbout): Remove.
4785 (tui_register_format): Use scoped_restore.
4786
2ec845e7
TT
47872017-08-03 Tom Tromey <tom@tromey.com>
4788
4789 * reverse.c (exec_direction_default): Remove.
4790 (exec_reverse_once): Use scoped_restore.
4791 * remote.c (restore_remote_timeout): Remove.
4792 (remote_flash_erase, remote_flash_write, remote_flash_done)
4793 (readchar, remote_serial_write): Use scoped_restore.
4794 * cli/cli-script.c (struct source_cleanup_lines_args)
4795 (source_cleanup_lines): Remove.
4796 (script_from_file): Use scoped_restore.
4797 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
4798 (source_command): Use scoped_restore.
4799
b3bc8453
TT
48002017-08-03 Tom Tromey <tom@tromey.com>
4801
4802 * utils.h (make_cleanup_free_so): Remove.
4803 * utils.c (do_free_so, make_cleanup_free_so): Remove.
4804 * solist.h (struct so_deleter): New.
4805 (so_list_up): New typedef.
4806 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
4807
e3ad2841
TT
48082017-08-03 Tom Tromey <tom@tromey.com>
4809
4810 * utils.h (make_cleanup_restore_current_language): Remove.
4811 * utils.c (do_restore_current_language)
4812 (make_cleanup_restore_current_language): Remove.
4813 * parse.c (parse_exp_in_context_1)
4814 (parse_expression_with_language): Use
4815 scoped_restore_current_language.
4816 * mi/mi-main.c (mi_cmd_execute): Use
4817 scoped_restore_current_language.
4818 * language.h (scoped_restore_current_language): New class.
4819
b80cf838
TT
48202017-08-03 Tom Tromey <tom@tromey.com>
4821
4822 * compile/compile.c (cleanup_unlink_file): Remove.
4823 (compile_to_object): Use gdb::unlinker.
4824 (eval_compile_command): Likewise.
4825
fad0444a
TT
48262017-08-03 Tom Tromey <tom@tromey.com>
4827
4828 * utils.h (make_cleanup_fclose): Remove.
4829 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
4830
6e7bc05c
TT
48312017-08-03 Tom Tromey <tom@tromey.com>
4832
4833 * top.c (open_terminal_stream): Return gdb_file_up.
4834 (new_ui_command): Update.
4835
4a45905b
TT
48362017-08-03 Tom Tromey <tom@tromey.com>
4837
4838 * source.c (print_source_lines_base, forward_search_command)
4839 (reverse_search_command): Use gdb_file_up.
4840
7cd06d6e
TT
48412017-08-03 Tom Tromey <tom@tromey.com>
4842
4843 * fbsd-nat.c (fbsd_find_memory_regions): Update.
4844
ed166945
TT
48452017-08-03 Tom Tromey <tom@tromey.com>
4846
4847 * cli/cli-cmds.c (find_and_open_script): Change return type.
4848 Remove "streamp" and "full_path" parameters.
4849 (source_script_with_search): Update.
4850 * auto-load.c (source_script_file): Update.
4851 * cli/cli-cmds.h (find_and_open_script): Change type.
4852 (open_script): New struct.
4853
d419f42d
TT
48542017-08-03 Tom Tromey <tom@tromey.com>
4855
4856 * xml-support.c (xml_fetch_content_from_file): Update.
4857 * ui-file.c (stdio_file::open): Update.
4858 * tracefile-tfile.c (tfile_start): Update.
4859 * remote.c (remote_file_put, remote_file_get): Update.
4860 * nat/linux-procfs.c (linux_proc_get_int)
4861 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
4862 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
4863 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
4864 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
4865 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
4866 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
4867 * linux-nat.c (linux_proc_pending_signals): Update.
4868 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
4869 (file_closer): Remove.
4870 * compile/compile.c (compile_to_object): Update.
4871 * common/filestuff.h (struct gdb_file_deleter): New.
4872 (gdb_file_up): New typedef.
4873 (gdb_fopen_cloexec): Change return type.
4874 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
4875 * cli/cli-dump.c (fopen_with_cleanup): Remove.
4876 (dump_binary_file, restore_binary_file): Update.
4877 * auto-load.c (auto_load_objfile_script_1): Update.
4878
4a2b031d
TT
48792017-08-03 Tom Tromey <tom@tromey.com>
4880
4881 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
4882 (info_static_tracepoint_markers_command): Likewise.
4883 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
4884 * skip.c (skip_info): Use ui_out_emit_table.
4885 * progspace.c (print_program_space): Use ui_out_emit_table.
4886 * osdata.c (info_osdata): Use ui_out_emit_table.
4887 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
4888 ui_out_emit_table.
4889 * linux-thread-db.c (info_auto_load_libthread_db): Use
4890 ui_out_emit_table.
4891 * inferior.c (print_inferior): Use ui_out_emit_table.
4892 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
4893 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
4894 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
4895 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
4896 * ui-out.h (class ui_out_emit_table): New.
4897
a4f320fd
MR
48982017-08-02 Maciej W. Rozycki <macro@imgtec.com>
4899
4900 * mips-tdep.c (mips_fpu_type_str): New function.
4901 (mips_dump_tdep): Call it.
4902
a2f1f308
MR
49032017-08-01 Maciej W. Rozycki <macro@imgtec.com>
4904
4905 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
4906 `->mips_fpu_type'.
4907
7e5ed83b
XR
49082017-07-31 Xavier Roirand <roirand@adacore.com>
4909
4910 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4911
4c9dc811
XR
49122017-07-27 Xavier Roirand <roirand@adacore.com>
4913
4914 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
4915
27d41eac
YQ
49162017-07-26 Yao Qi <yao.qi@linaro.org>
4917
4918 * cli/cli-cmds.c (maintenancechecklist): New variable.
4919 * gdbcmd.h (maintenancechecklist): Declare it.
4920 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
4921 Call i386_linux_read_description with different masks.
4922 * maint.c (maintenance_check_command): New function.
4923 (_initialize_maint_cmds): Call add_prefix_cmd.
4924 * target-descriptions.c (tdesc_reg): override operator != and ==.
4925 (tdesc_type): Likewise.
4926 (tdesc_feature): Likewise.
4927 (target_desc): Likewise.
4928 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
4929 (maintenance_check_xml_descriptions): New function.
4930 (_initialize_target_descriptions) Add command "xml-descriptions".
4931 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
4932
ea03d0d3
YQ
49332017-07-26 Yao Qi <yao.qi@linaro.org>
4934
4935 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
4936 Include features/i386/32bit-*.c.
4937 (i386_linux_read_description): Generate target description if it
4938 doesn't exist.
4939 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
4940 functions.
4941 * features/i386/32bit-linux.c: Re-generated.
4942 * features/i386/32bit-sse.c: Likewise.
4943 * target-descriptions.c (print_c_feature::visit): Print code to
4944 set register number if needed.
4945 (print_c_feature) <m_next_regnum>: New field.
4946
25aa13e5
YQ
49472017-07-26 Yao Qi <yao.qi@linaro.org>
4948
4949 * features/Makefile (CFILES): Rename with TDESC_CFILES.
4950 (FEATURE_XMLFILES): New.
4951 (FEATURE_CFILES): New.
4952 New rules.
4953 (clean-cfiles): Remove generated c files.
4954 * features/i386/32bit-avx.c: Generated.
4955 * features/i386/32bit-avx512.c: Generated.
4956 * features/i386/32bit-core.c: Generated.
4957 * features/i386/32bit-linux.c: Generated.
4958 * features/i386/32bit-mpx.c: Generated.
4959 * features/i386/32bit-pkeys.c: Generated.
4960 * features/i386/32bit-sse.c: Generated.
4961 * target-descriptions.c: Include algorithm.
4962 (tdesc_element_visitor): Add method visit_end.
4963 (print_c_tdesc): Implement visit_end.
4964 (print_c_tdesc:: m_filename_after_features): Move it to
4965 protected.
4966 (print_c_feature): New class.
4967 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
4968 name starts with "i386/32bit-".
4969
6eb1e6a8
YQ
49702017-07-26 Yao Qi <yao.qi@linaro.org>
4971
4972 * target-descriptions.c (tdesc_element_visitor): New class.
4973 (tdesc_element): New class.
4974 (tdesc_reg): Inherit from tdesc_element.
4975 (tdesc_reg::accept): New function.
4976 (tdesc_type): Inherit from tdesc_element.
4977 (tdesc_type::accept): New function.
4978 (tdesc_feature): Inherit from tdesc_element.
4979 (tdesc_feature::accept): New function.
4980 (target_desc): Inherit from tdesc_element.
4981 (target_desc::target_desc): New.
4982 (target_desc::~target_desc): New.
4983 (target_desc::accept): New.
4984 (allocate_target_description): Use new.
4985 (free_target_description): Use delete.
4986 (print_c_tdesc): New class.
4987 (maint_print_c_tdesc_cmd): Adjust.
4988
4989 * features/aarch64.c: Re-generated.
4990 * features/arc-arcompact.c: Re-generated.
4991 * features/arc-v2.c: Re-generated.
4992 * features/arm/arm-with-iwmmxt.c: Re-generated.
4993 * features/arm/arm-with-m.c: Re-generated.
4994 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
4995 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
4996 * features/arm/arm-with-neon.c: Re-generated.
4997 * features/arm/arm-with-vfpv2.c: Re-generated.
4998 * features/arm/arm-with-vfpv3.c: Re-generated.
4999 * features/i386/amd64-avx-avx512.c: Re-generated.
5000 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
5001 * features/i386/amd64-avx.c: Re-generated.
5002 * features/i386/amd64-avx-linux.c: Re-generated.
5003 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
5004 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
5005 * features/i386/amd64-avx-mpx.c: Re-generated.
5006 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
5007 * features/i386/amd64.c: Re-generated.
5008 * features/i386/amd64-linux.c: Re-generated.
5009 * features/i386/amd64-mpx.c: Re-generated.
5010 * features/i386/amd64-mpx-linux.c: Re-generated.
5011 * features/i386/i386-avx-avx512.c: Re-generated.
5012 * features/i386/i386-avx-avx512-linux.c: Re-generated.
5013 * features/i386/i386-avx.c: Re-generated.
5014 * features/i386/i386-avx-linux.c: Re-generated.
5015 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
5016 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
5017 * features/i386/i386-avx-mpx.c: Re-generated.
5018 * features/i386/i386-avx-mpx-linux.c: Re-generated.
5019 * features/i386/i386.c: Re-generated.
5020 * features/i386/i386-linux.c: Re-generated.
5021 * features/i386/i386-mmx.c: Re-generated.
5022 * features/i386/i386-mmx-linux.c: Re-generated.
5023 * features/i386/i386-mpx.c: Re-generated.
5024 * features/i386/i386-mpx-linux.c: Re-generated.
5025 * features/i386/x32-avx-avx512.c: Re-generated.
5026 * features/i386/x32-avx-avx512-linux.c: Re-generated.
5027 * features/i386/x32-avx.c: Re-generated.
5028 * features/i386/x32-avx-linux.c: Re-generated.
5029 * features/i386/x32.c: Re-generated.
5030 * features/i386/x32-linux.c: Re-generated.
5031 * features/microblaze.c: Re-generated.
5032 * features/microblaze-with-stack-protect.c: Re-generated.
5033 * features/mips64-dsp-linux.c: Re-generated.
5034 * features/mips64-linux.c: Re-generated.
5035 * features/mips-dsp-linux.c: Re-generated.
5036 * features/mips-linux.c: Re-generated.
5037 * features/nds32.c: Re-generated.
5038 * features/nios2.c: Re-generated.
5039 * features/nios2-linux.c: Re-generated.
5040 * features/rs6000/powerpc-32.c: Re-generated.
5041 * features/rs6000/powerpc-32l.c: Re-generated.
5042 * features/rs6000/powerpc-403.c: Re-generated.
5043 * features/rs6000/powerpc-403gc.c : Re-generated.
5044 * features/rs6000/powerpc-405.c: Re-generated.
5045 * features/rs6000/powerpc-505.c: Re-generated.
5046 * features/rs6000/powerpc-601.c: Re-generated.
5047 * features/rs6000/powerpc-602.c: Re-generated.
5048 * features/rs6000/powerpc-603.c: Re-generated.
5049 * features/rs6000/powerpc-604.c: Re-generated.
5050 * features/rs6000/powerpc-64.c: Re-generated.
5051 * features/rs6000/powerpc-64l.c: Re-generated.
5052 * features/rs6000/powerpc-7400.c: Re-generated.
5053 * features/rs6000/powerpc-750.c: Re-generated.
5054 * features/rs6000/powerpc-860.c: Re-generated.
5055 * features/rs6000/powerpc-altivec32.c: Re-generated.
5056 * features/rs6000/powerpc-altivec32l.c: Re-generated.
5057 * features/rs6000/powerpc-altivec64.c: Re-generated.
5058 * features/rs6000/powerpc-altivec64l.c: Re-generated.
5059 * features/rs6000/powerpc-cell32l.c: Re-generated.
5060 * features/rs6000/powerpc-cell64l.c: Re-generated.
5061 * features/rs6000/powerpc-e500.c: Re-generated.
5062 * features/rs6000/powerpc-e500l.c: Re-generated.
5063 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
5064 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
5065 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
5066 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
5067 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
5068 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
5069 * features/rs6000/powerpc-vsx32.c: Re-generated.
5070 * features/rs6000/powerpc-vsx32l.c: Re-generated.
5071 * features/rs6000/powerpc-vsx64.c: Re-generated.
5072 * features/rs6000/powerpc-vsx64l.c: Re-generated.
5073 * features/rs6000/rs6000.c: Re-generated.
5074 * features/s390-linux32.c: Re-generated.
5075 * features/s390-linux32v1.c: Re-generated.
5076 * features/s390-linux32v2.c: Re-generated.
5077 * features/s390-linux64.c: Re-generated.
5078 * features/s390-linux64v1.c: Re-generated.
5079 * features/s390-linux64v2.c: Re-generated.
5080 * features/s390-te-linux64.c: Re-generated.
5081 * features/s390-tevx-linux64.c: Re-generated.
5082 * features/s390-vx-linux64.c: Re-generated.
5083 * features/s390x-linux64.c: Re-generated.
5084 * features/s390x-linux64v1.c: Re-generated.
5085 * features/s390x-linux64v2.c: Re-generated.
5086 * features/s390x-te-linux64.c: Re-generated.
5087 * features/s390x-tevx-linux64.c: Re-generated.
5088 * features/s390x-vx-linux64.c: Re-generated.
5089 * features/sparc/sparc32-solaris.c: Re-generated.
5090 * features/sparc/sparc64-solaris.c: Re-generated.
5091 * features/tic6x-c62x.c: Re-generated.
5092 * features/tic6x-c62x-linux.c: Re-generated.
5093 * features/tic6x-c64x.c: Re-generated.
5094 * features/tic6x-c64x-linux.c: Re-generated.
5095 * features/tic6x-c64xp.c: Re-generated.
5096 * features/tic6x-c64xp-linux.c: Re-generated.
5097
35b4818d
YQ
50982017-07-26 Yao Qi <yao.qi@linaro.org>
5099
5100 * i386-linux-tdep.c (i386_linux_read_description): New function.
5101 (i386_linux_core_read_description): Call
5102 i386_linux_read_description.
5103 * i386-linux-tdep.h (i386_linux_read_description): Declare.
5104 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
5105 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
5106 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
5107 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
5108 * x86-linux-nat.c (x86_linux_read_description): Call
5109 i386_linux_read_description.
5110
8e2141c6
YQ
51112017-07-26 Yao Qi <yao.qi@linaro.org>
5112
5113 * NEWS: Mention it.
5114 * features/Makefile (%.c: %.xml): Pass the xml file name to
5115 command "maint print c-tdesc".
5116 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
5117 name from 'arg'.
5118
b468ff4c
YQ
51192017-07-26 Yao Qi <yao.qi@linaro.org>
5120
5121 * target-descriptions.c (target_desc): Add ctor and dtor. Do
5122 in-class initialization.
5123 (tdesc_create_feature): Call new instead of XCNEW.
5124 (free_target_description): Ue delete.
5125
b9c0e1b4
JB
51262017-07-25 John Baldwin <jhb@FreeBSD.org>
5127
5128 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
5129
a04b5337
YQ
51302017-07-25 Yao Qi <yao.qi@linaro.org>
5131
5132 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
5133 constant.
5134 (amd64_x32_init_abi): Likewise.
5135 * amd64-tdep.h (amd64_init_abi): Update declaration.
5136 (amd64_x32_init_abi): Likewise.
5137
02ad7fc2
YQ
51382017-07-25 Yao Qi <yao.qi@linaro.org>
5139
5140 PR tdep/21717
5141 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
5142 condition for FPSCR.
5143 (arm_linux_store_inferior_registers): Likewise.
5144
b6f48cb0
TT
51452017-07-22 Tom Tromey <tom@tromey.com>
5146
5147 * break-catch-syscall.c (struct catch_syscall_inferior_data)
5148 <syscalls_counts>: Now a std::vector.
5149 (get_catch_syscall_inferior_data): Use "new".
5150 (catch_syscall_inferior_data_cleanup): Use "delete".
5151 (insert_catch_syscall, remove_catch_syscall)
5152 (clear_syscall_counts): Update.
5153
e12c9b7a
TT
51542017-07-22 Tom Tromey <tom@tromey.com>
5155
5156 * break-catch-syscall.c (syscall_catchpoint)
5157 <syscalls_to_be_caught>: Now a std::vector<int>
5158 (~syscall_catchpoint): Remove.
5159 (insert_catch_syscall, remove_catch_syscall)
5160 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5161 (print_mention_catch_syscall, print_recreate_catch_syscall):
5162 Update.
5163 (create_syscall_event_catchpoint): Change type of "filter"
5164 parameter.
5165 (catch_syscall_split_args): Return a std::vector.
5166 (catch_syscall_command_1, catching_syscall_number_1): Update.
5167
4fa8aeac
TT
51682017-07-22 Tom Tromey <tom@tromey.com>
5169
5170 * break-catch-throw.c (struct exception_catchpoint)
5171 <exception_rx>: Now a std::string.
5172 (~exception_catchpoint): Remove.
5173 (print_one_detail_exception_catchpoint): Update.
5174 (handle_gnu_v3_exceptions): Change type of except_rx.
5175 (extract_exception_regexp): Return a std::string.
5176 (catch_exception_command_1): Update.
5177
f746a154
TT
51782017-07-22 Tom Tromey <tom@tromey.com>
5179
5180 * break-catch-sig.c (gdb_signal_type): Remove typedef.
5181 (struct signal_catchpoint) <signals_to_be_caught>: Now a
5182 std::vector.
5183 <catch_all>: Now a bool.
5184 (~signal_catchpoint): Remove.
5185 (signal_catchpoint_insert_location)
5186 (signal_catchpoint_remove_location)
5187 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
5188 (signal_catchpoint_print_mention)
5189 (signal_catchpoint_print_recreate)
5190 (signal_catchpoint_explains_signal): Update.
5191 (create_signal_catchpoint): Change type of "filter" and
5192 "catch_all".
5193 (catch_signal_split_args): Return a std::vector. Change type of
5194 "catch_all".
5195 (catch_signal_command): Update.
5196
47e77640
PA
51972017-07-20 Pedro Alves <palves@redhat.com>
5198
5199 * ada-lang.c (ada_language_defn): Make extern.
5200 (_initialize_ada_language): Remove add_language call.
5201 * c-lang.c (c_language_defn, cplus_language_defn)
5202 (asm_language_defn, minimal_language_defn): Make extern.
5203 (_initialize_c_language): Delete.
5204 * completer.c (compare_cstrings): Delete, moved to utils.h.
5205 * d-lang.c (d_language_defn): Make extern.
5206 (_initialize_d_language): Remove add_language calls.
5207 * defs.h (enum language): Add comment.
5208 * f-lang.c (f_language_defn): Make extern.
5209 (_initialize_f_language): Remove add_language call.
5210 * go-lang.c (go_language_defn): Make extern.
5211 (_initialize_go_language): Remove add_language call.
5212 * language.c: Include <algorithm>.
5213 (languages): Redefine as const array.
5214 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
5215 (set_language_command): Handle "local". Use for-range loop.
5216 (set_language): Remove loop.
5217 (language_enum): Rewrite.
5218 (language_def, language_str): Remove loops.
5219 (add_language): Delete.
5220 (add_set_language_command): New, based on add_languages.
5221 (skip_language_trampoline): Adjust.
5222 (local_language_defn): Delete.
5223 (language_gdbarch_post_init): Adjust.
5224 (_initialize_language): Remove add_language calls. Call
5225 add_set_language_command.
5226 * language.h (add_language): Delete.
5227 (auto_language_defn)
5228 (unknown_language_defn, minimal_language_defn, ada_language_defn)
5229 (asm_language_defn, c_language_defn, cplus_language_defn)
5230 (d_language_defn, f_language_defn, go_language_defn)
5231 (m2_language_defn, objc_language_defn, opencl_language_defn)
5232 (pascal_language_defn, rust_language_defn): Declare.
5233 * m2-lang.c (m2_language_defn): Make extern.
5234 (_initialize_m2_language): Remove add_language call.
5235 * objc-lang.c (objc_language_defn): Make extern.
5236 (_initialize_objc_language): Remove add_language call.
5237 * opencl-lang.c (opencl_language_defn): Make extern.
5238 (_initialize_opencl_language): Remove add_language call.
5239 * p-lang.c (pascal_language_defn): Make extern.
5240 (_initialize_pascal_language): Delete.
5241 * rust-lang.c (rust_language_defn): Make extern.
5242 (_initialize_rust_language): Delete.
5243 * utils.h (compare_cstrings): New static inline function.
5244
edb0c9cb
PA
52452017-07-20 Pedro Alves <palves@redhat.com>
5246
5247 * ada-lang.c (ada_to_fixed_type_1): Adjust.
5248 (get_var_value): Constify parameters.
5249 (get_int_var_value): Change prototype.
5250 (to_fixed_range_type): Adjust.
5251 * ada-lang.h (get_int_var_value): Change prototype.
5252
a778f165
PA
52532017-07-20 Pedro Alves <palves@redhat.com>
5254
5255 * dwarf2read.c (dw2_lookup_symbol): Use
5256 SYMBOL_MATCHES_SEARCH_NAME.
5257 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
5258
42edd901
PA
52592017-07-20 Pedro Alves <palves@redhat.com>
5260
5261 * block.c (block_iter_name_step, block_iter_name_first)
5262 (block_iter_name_next): Delete.
5263 (block_lookup_symbol_primary): Adjust to use
5264 dict_iter_match_first/dict_iter_match_next.
5265 * block.h (block_iter_name_first, block_iter_name_next): Delete
5266 declarations.
5267 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
5268 dict_iter_match_first/dict_iter_match_next.
5269
cf325299
PA
52702017-07-20 Pedro Alves <palves@redhat.com>
5271
5272 * cp-support.c (cp_find_first_component_aux): Add missing case for
5273 end of string.
5274
c5ed0576
DB
52752017-07-18 David Blaikie <dblaikie@gmail.com>
5276
5277 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
5278 of dwo_cu's dwo_file.
5279
27841e76
YQ
52802017-07-18 Yao Qi <yao.qi@linaro.org>
5281
5282 * remote.c (store_registers_using_G): Remove one line comment.
5283
cfb7e58b
YQ
52842017-07-18 Yao Qi <yao.qi@linaro.org>
5285
5286 * regcache.c (regcache_cpy): Simplify it.
5287 (regcache::cpy_no_passthrough): Remove it.
5288 * regcache.h (cpy_no_passthrough): Remove it.
5289 (regcache_dup, regcache_cpy): Update comments.
5290
386535dd
PA
52912017-07-18 Pedro Alves <palves@redhat.com>
5292
5293 * remote-sim.c (sim_command_completer): Adjust to work with a
5294 completion_tracker instead of a VEC.
5295
c45ec17c
PA
52962017-07-17 Pedro Alves <palves@redhat.com>
5297
5298 * completer.c (complete_source_filenames): New function.
5299 (complete_address_and_linespec_locations): New function.
5300 (location_completer): Use complete_address_and_linespec_locations.
5301 (completion_tracker::build_completion_result): Honor the tracker's
5302 request to suppress append.
5303 * completer.h (completion_tracker::suppress_append_ws)
5304 (completion_tracker::set_suppress_append_ws): New methods.
5305 (completion_tracker::m_suppress_append_ws): New field.
5306 (complete_source_filenames): New declaration.
5307 * linespec.c (linespec_complete_what): New.
5308 (struct ls_parser) <complete_what, completion_word,
5309 completion_quote_char, completion_quote_end, completion_tracker>:
5310 New fields.
5311 (string_find_incomplete_keyword_at_end): New.
5312 (linespec_lexer_lex_string): Record quote char. If in completion
5313 mode, don't throw.
5314 (linespec_lexer_consume_token): Advance the completion word point.
5315 (linespec_lexer_peek_token): Save/restore completion info.
5316 (save_stream_and_consume_token): New.
5317 (set_completion_after_number): New.
5318 (linespec_parse_basic): Set what to complete next depending on
5319 token. Handle function and label completions specially.
5320 (parse_linespec): Disable objc shortcut in completion mode. Set
5321 what to complete next depending on token type. Skip keyword if in
5322 completion mode.
5323 (complete_linespec_component, linespec_complete): New.
5324 * linespec.h (linespec_complete): Declare.
5325
be966d42
PA
53262017-07-17 Pedro Alves <palves@redhat.com>
5327
5328 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
5329 Handle 'operator<' / 'operator<<'.
5330
a2459270
PA
53312017-07-17 Pedro Alves <palves@redhat.com>
5332
5333 * completer.c (collect_explicit_location_matches): Handle
5334 MATCH_LABEL.
5335 (convert_explicit_location_to_linespec): New, factored out from
5336 ...
5337 (convert_explicit_location_to_sals): ... this.
5338 (complete_label): New.
5339 (linespec_complete_label, find_label_symbols_in_block): New.
5340 (find_label_symbols): Add completion_mode parameter and adjust to
5341 call find_label_symbols_in_block.
5342 * linespec.h (linespec_complete_label): Declare.
5343
c6756f62
PA
53442017-07-17 Pedro Alves <palves@redhat.com>
5345
5346 * ada-lang.c (ada_collect_symbol_completion_matches): Add
5347 complete_symbol_mode parameter.
5348 * cli/cli-cmds.c (complete_command): Get the completion result out
5349 of the handle_brkchars tracker if used a custom word point.
5350 * completer.c: Include "linespec.h".
5351 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
5352 (advance_to_expression_complete_word_point): New.
5353 (completion_tracker::completes_to_completion_word): New.
5354 (complete_files_symbols): Pass down
5355 complete_symbol_mode::EXPRESSION.
5356 (explicit_options, probe_options): New.
5357 (collect_explicit_location_matches): Complete on the
5358 explictit_loc->foo instead of word. Use
5359 linespec_complete_function. Handle MATCH_LINE. Handle offering
5360 keyword and options completions.
5361 (backup_text_ptr): Delete.
5362 (skip_keyword): New.
5363 (complete_explicit_location): Remove 'word' parameter. Add
5364 language, quoted_arg_start and quoted_arg_end parameters.
5365 Rewrite, parsing left to right.
5366 (location_completer): Rewrite.
5367 (location_completer_handle_brkchars): New function.
5368 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
5369 (enum complete_line_internal_reason): Adjust comments.
5370 (completion_tracker::discard_completions): New.
5371 (completer_handle_brkchars_func_for_completer): Handle
5372 location_completer.
5373 (gdb_custom_word_point_brkchars)
5374 (gdb_org_rl_basic_quote_characters): New.
5375 (gdb_completion_word_break_characters_throw)
5376 (completion_find_completion_word): Handle trackers that use a
5377 custom word point.
5378 (completion_tracker::advance_custom_word_point_by): New.
5379 (completion_tracker::build_completion_result): Don't rely on
5380 readline appending the quote char.
5381 (gdb_rl_attempted_completion_function_throw): Handle trackers that
5382 use a custom word point.
5383 (gdb_rl_attempted_completion_function): Restore
5384 rl_basic_quote_characters.
5385 * completer.h (class completion_tracker): Extend intro comment.
5386 (completion_tracker::set_quote_char)
5387 (completion_tracker::quote_char)
5388 (completion_tracker::set_use_custom_word_point)
5389 (completion_tracker::use_custom_word_point)
5390 (completion_tracker::custom_word_point)
5391 (completion_tracker::set_custom_word_point)
5392 (completion_tracker::advance_custom_word_point_by)
5393 (completion_tracker::completes_to_completion_word)
5394 (completion_tracker::discard_completions): New methods.
5395 (completion_tracker::m_quote_char)
5396 (completion_tracker::m_use_custom_word_point)
5397 (completion_tracker::m_custom_word_point): New fields.
5398 (advance_to_expression_complete_word_point): Declare.
5399 * f-lang.c (f_collect_symbol_completion_matches): Add
5400 complete_symbol_mode parameter.
5401 * language.h (struct language_defn)
5402 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
5403 parameter.
5404 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
5405 (linespec_complete_function): New function.
5406 (linespec_lexer_lex_keyword): Adjust.
5407 * linespec.h (linespec_keywords, linespec_complete_function): New
5408 declarations.
5409 * location.c (find_end_quote): New function.
5410 (explicit_location_lex_one): Add explicit_completion_info
5411 parameter. Save quoting info. Don't throw if being called for
5412 completion. Don't handle Ada operators here.
5413 (is_cp_operator, skip_op_false_positives, first_of)
5414 (explicit_location_lex_one_function): New function.
5415 (string_to_explicit_location): Replace 'dont_throw' parameter with
5416 an explicit_completion_info pointer parameter. Handle it. Don't
5417 use explicit_location_lex_one to lex function names. Use
5418 explicit_location_lex_one_function instead.
5419 * location.h (struct explicit_completion_info): New.
5420 (string_to_explicit_location): Replace 'dont_throw' parameter with
5421 an explicit_completion_info pointer parameter.
5422 * symtab.c (default_collect_symbol_completion_matches_break_on):
5423 Add complete_symbol_mode parameter. Handle LINESPEC mode.
5424 (default_collect_symbol_completion_matches)
5425 (collect_symbol_completion_matches): Add complete_symbol_mode
5426 parameter.
5427 (collect_symbol_completion_matches_type): Pass down
5428 complete_symbol_mode::EXPRESSION.
5429 (collect_file_symbol_completion_matches): Add complete_symbol_mode
5430 parameter. Handle LINESPEC mode.
5431 * symtab.h (complete_symbol_mode): New.
5432 (default_collect_symbol_completion_matches_break_on)
5433 (default_collect_symbol_completion_matches)
5434 (collect_symbol_completion_matches)
5435 (collect_file_symbol_completion_matches): Add complete_symbol_mode
5436 parameter.
5437
1d550c82
PA
54382017-07-17 Pedro Alves <palves@redhat.com>
5439
5440 * utils.c (enum class strncmp_iw_mode): New.
5441 (strcmp_iw): Rename to ...
5442 (strncmp_iw_with_mode): ... this. Add string2_len and mode
5443 parameters. Handle them.
5444 (strncmp_iw): New.
5445 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
5446 * utils.h (strncmp_iw): Declare.
5447 (strcmp_iw): Move describing comments here.
5448
8090b426
PA
54492017-07-17 Pedro Alves <palves@redhat.com>
5450
5451 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
5452 CP_OPERATOR_STR.
5453 * c-typeprint.c (is_type_conversion_operator): Use
5454 CP_OPERATOR_STR.
5455 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
5456 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
5457 CP_OPERATOR_LEN.
5458 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
5459 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
5460 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
5461 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
5462 CP_OPERATOR_STR.
5463 * location.c: Include "cp-support.h".
5464 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
5465 CP_OPERATOR_STR.
5466 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
5467 CP_OPERATOR_LEN.
5468
6a2c1b87
PA
54692017-07-17 Pedro Alves <palves@redhat.com>
5470
5471 * cli/cli-cmds.c (complete_command): Use a completion tracker
5472 along with completion_find_completion_word for handle_brkchars
5473 phase.
5474 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
5475 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
5476 (struct gdb_rl_completion_word_info): New.
5477 (gdb_rl_find_completion_word): New.
5478 (completion_find_completion_word): New.
5479 * completer.h (completion_find_completion_word): Declare.
5480
eb3ff9a5
PA
54812017-07-17 Pedro Alves <palves@redhat.com>
5482
5483 * ada-lang.c (symbol_completion_match): Adjust comments.
5484 (symbol_completion_add): Replace vector parameter with
5485 completion_tracker parameter. Use it.
5486 (ada_make_symbol_completion_list): Rename to...
5487 (ada_collect_symbol_completion_matches): ... this. Add
5488 completion_tracker parameter and use it.
5489 (ada_language_defn): Adjust.
5490 * break-catch-syscall.c (catch_syscall_completer): Adjust
5491 prototype and work with completion_tracker instead of VEC.
5492 * breakpoint.c (condition_completer): Adjust prototype and work
5493 with completion_tracker instead of VEC.
5494 * c-lang.c (c_language_defn, cplus_language_defn)
5495 (asm_language_defn, minimal_language_defn): Adjust to renames.
5496 * cli/cli-cmds.c (complete_command): Rework using
5497 completion_tracker. Catch exceptions when completing.
5498 * cli/cli-decode.c (integer_unlimited_completer)
5499 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
5500 with completion_tracker instead of VEC.
5501 * command.h (struct completion_tracker): Forward declare.
5502 (completer_ftype, completer_handle_brkchars_ftype): Change
5503 types.
5504 (complete_on_cmdlist, complete_on_enum): Adjust.
5505 * completer.c: Include <algorithm>.
5506 (struct gdb_completer_state): New.
5507 (current_completion): New global.
5508 (readline_line_completion_function): Delete.
5509 (noop_completer, filename_completer)
5510 (filename_completer_handle_brkchars, complete_files_symbols)
5511 (linespec_location_completer): Adjust to work with a
5512 completion_tracker instead of a VEC.
5513 (string_or_empty): New.
5514 (collect_explicit_location_matches): Adjust to work with a
5515 completion_tracker instead of a VEC.
5516 (explicit_location_completer): Rename to ...
5517 (complete_explicit_location): ... this and adjust to work with a
5518 completion_tracker instead of a VEC.
5519 (location_completer): Adjust to work with a completion_tracker
5520 instead of a VEC.
5521 (add_struct_fields): Adjust to work with a completion_list instead
5522 of VEC.
5523 (expression_completer): Rename to ...
5524 (complete_expression): ... this and adjust to work with a
5525 completion_tracker instead of a VEC. Use complete_files_symbols.
5526 (expression_completer): Reimplement on top of complete_expression.
5527 (symbol_completer): Adjust to work with a completion_tracker
5528 instead of a VEC.
5529 (enum complete_line_internal_reason): Add describing comments.
5530 (complete_line_internal_normal_command): Adjust to work with a
5531 completion_tracker instead of a VEC.
5532 (complete_line_internal): Rename to ...
5533 (complete_line_internal_1): ... this and adjust to work with a
5534 completion_tracker instead of a VEC. Assert TEXT is NULL in the
5535 handle_brkchars phase.
5536 (new_completion_tracker): Delete.
5537 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
5538 complete_line_internal_1.
5539 (free_completion_tracker): Delete.
5540 (INITIAL_COMPLETION_HTAB_SIZE): New.
5541 (completion_tracker::completion_tracker)
5542 (completion_tracker::~completion_tracker): New.
5543 (maybe_add_completion): Delete.
5544 (completion_tracker::maybe_add_completion)
5545 (completion_tracker::add_completion)
5546 (completion_tracker::add_completions): New.
5547 (throw_max_completions_reached_error): Delete.
5548 (complete_line): Adjust to work with a completion_tracker instead
5549 of a VEC. Don't create a completion_tracker_t or check for max
5550 completions here.
5551 (command_completer, command_completer_handle_brkchars)
5552 (signal_completer, reg_or_group_completer_1)
5553 (reg_or_group_completer, default_completer_handle_brkchars):
5554 Adjust to work with a completion_tracker.
5555 (gdb_completion_word_break_characters_throw): New.
5556 (gdb_completion_word_break_characters): Reimplement.
5557 (line_completion_function): Delete.
5558 (completion_tracker::recompute_lowest_common_denominator)
5559 (expand_preserving_ws)
5560 (completion_tracker::build_completion_result)
5561 (completion_result::completion_result)
5562 (completion_result::completion_result)
5563 (completion_result::~completion_result)
5564 (completion_result::completion_result)
5565 (completion_result::release_match_list, compare_cstrings)
5566 (completion_result::sort_match_list)
5567 (completion_result::reset_match_list)
5568 (gdb_rl_attempted_completion_function_throw)
5569 (gdb_rl_attempted_completion_function): New.
5570 * completer.h (completion_list, struct completion_result)
5571 (class completion_tracker): New.
5572 (complete_line): Add completion_tracker parameter.
5573 (readline_line_completion_function): Delete.
5574 (gdb_rl_attempted_completion_function): New.
5575 (noop_completer, filename_completer, expression_completer)
5576 (location_completer, symbol_completer, command_completer)
5577 (signal_completer, reg_or_group_completer): Update prototypes.
5578 (completion_tracker_t, new_completion_tracker)
5579 (make_cleanup_free_completion_tracker): Delete.
5580 (enum maybe_add_completion_enum): Delete.
5581 (maybe_add_completion): Delete.
5582 (throw_max_completions_reached_error): Delete.
5583 * corefile.c (complete_set_gnutarget): Adjust to work with a
5584 completion_tracker instead of a VEC.
5585 * cp-abi.c (cp_abi_completer): Adjust to work with a
5586 completion_tracker instead of a VEC.
5587 * d-lang.c (d_language_defn): Adjust.
5588 * disasm.c (disassembler_options_completer): Adjust to work with a
5589 completion_tracker instead of a VEC.
5590 * f-lang.c (f_make_symbol_completion_list): Rename to ...
5591 (f_collect_symbol_completion_matches): ... this. Adjust to work
5592 with a completion_tracker instead of a VEC.
5593 (f_language_defn): Adjust.
5594 * go-lang.c (go_language_defn): Adjust.
5595 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
5596 Adjust to work with a completion_tracker instead of a VEC.
5597 * infrun.c (handle_completer): Likewise.
5598 * interps.c (interpreter_completer): Likewise.
5599 * interps.h (interpreter_completer): Likewise.
5600 * language.c (unknown_language_defn, auto_language_defn)
5601 (local_language_defn): Adjust.
5602 * language.h (language_defn::la_make_symbol_completion_list):
5603 Rename to ...
5604 (language_defn::la_collect_symbol_completion_matches): ... this
5605 and adjust to work with a completion_tracker instead of a VEC.
5606 * m2-lang.c (m2_language_defn): Adjust.
5607 * objc-lang.c (objc_language_defn): Adjust.
5608 * opencl-lang.c (opencl_language_defn): Adjust.
5609 * p-lang.c (pascal_language_defn): Adjust.
5610 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
5611 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
5612 with a completion_tracker.
5613 * rust-lang.c (rust_language_defn): Adjust.
5614 * symtab.c (free_completion_list, do_free_completion_list)
5615 (return_val, completion_tracker): Delete.
5616 (completion_list_add_name, completion_list_add_symbol)
5617 (completion_list_add_msymbol, completion_list_objc_symbol)
5618 (completion_list_add_fields, add_symtab_completions): Add
5619 completion_tracker parameter and use it.
5620 (default_make_symbol_completion_list_break_on_1): Rename to...
5621 (default_collect_symbol_completion_matches_break_on): ... this.
5622 Add completion_tracker parameter and use it instead of allocating
5623 a completion tracker here.
5624 (default_make_symbol_completion_list_break_on): Delete old
5625 implementation.
5626 (default_make_symbol_completion_list): Delete.
5627 (default_collect_symbol_completion_matches): New.
5628 (make_symbol_completion_list): Delete.
5629 (collect_symbol_completion_matches): New.
5630 (make_symbol_completion_type): Rename to ...
5631 (collect_symbol_completion_matches_type): ... this. Add
5632 completion_tracker parameter and use it instead of VEC.
5633 (make_file_symbol_completion_list_1): Rename to...
5634 (collect_file_symbol_completion_matches): ... this. Add
5635 completion_tracker parameter and use it instead of VEC.
5636 (make_file_symbol_completion_list): Delete.
5637 (add_filename_to_list): Use completion_list instead of a VEC.
5638 (add_partial_filename_data::list): Now a completion_list.
5639 (make_source_files_completion_list): Work with a completion_list
5640 instead of a VEC.
5641 * symtab.h: Include "completer.h".
5642 (default_make_symbol_completion_list_break_on)
5643 (default_make_symbol_completion_list, make_symbol_completion_list)
5644 (make_symbol_completion_type, make_file_symbol_completion_list)
5645 (make_source_files_completion_list): Delete.
5646 (default_collect_symbol_completion_matches_break_on)
5647 (default_collect_symbol_completion_matches)
5648 (collect_symbol_completion_matches)
5649 (collect_symbol_completion_matches_type)
5650 (collect_file_symbol_completion_matches)
5651 (make_source_files_completion_list): New.
5652 * top.c (init_main): Don't install a rl_completion_entry_function
5653 hook. Install a rl_attempted_completion_function hook instead.
5654 * tui/tui-layout.c (layout_completer): Adjust to work with a
5655 completion_tracker.
5656 * tui/tui-regs.c (tui_reggroup_completer):
5657 * tui/tui-win.c (window_name_completer, focus_completer)
5658 (winheight_completer): Adjust to work with a completion_tracker.
5659 * value.c: Include "completer.h".
5660 (complete_internalvar): Adjust to work with a completion_tracker.
5661 * value.h (complete_internalvar): Likewise.
5662
6e1dbf8c
PA
56632017-07-17 Pedro Alves <palves@redhat.com>
5664
5665 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
5666 renames.
5667 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
5668 comments to completer_ftype's declaration.
5669 <completer_handle_brkchars>: Change type to
5670 completer_handle_brkchars_ftype.
5671 * command.h (completer_ftype): Add describing comment and give
5672 names to parameters.
5673 (completer_ftype_void): Rename to ...
5674 (completer_handle_brkchars_ftype) ... this. Add describing comment.
5675 (set_cmd_completer_handle_brkchars): Adjust.
5676 * completer.c (filename_completer_handle_brkchars): New function.
5677 (complete_line_internal_normal_command): New function, factored
5678 out from ...
5679 (complete_line_internal): ... here.
5680 (command_completer_handle_brkchars)
5681 (default_completer_handle_brkchars)
5682 (completer_handle_brkchars_func_for_completer): New functions.
5683 * completer.h (set_gdb_completion_word_break_characters): Delete
5684 declaration.
5685 (completer_handle_brkchars_func_for_completer): New declaration.
5686 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
5687 completer_handle_brkchars_func_for_completer.
5688
78b13106
PA
56892017-07-17 Pedro Alves <palves@redhat.com>
5690
5691 * completer.c (symbol_completer): New function, based on
5692 make_symbol_completion_list_fn.
5693 * completer.h (symbol_completer): New declaration.
5694 * guile/scm-cmd.c (cmdscm_completers): Adjust.
5695 * python/py-cmd.c (completers): Adjust.
5696 * symtab.c (make_symbol_completion_list_fn): Delete.
5697 * symtab.h (make_symbol_completion_list_fn): Delete.
5698 * cli/cli-decode.c (add_cmd): Adjust.
5699
bbf2f4df
PA
57002017-07-17 Pedro Alves <palves@redhat.com>
5701
5702 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
5703 * dwarf2read.c: Include "filename-seen-cache.h".
5704 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
5705 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
5706 * filename-seen-cache.c: New file.
5707 * filename-seen-cache.h: New file.
5708 * symtab.c: Include "filename-seen-cache.h".
5709 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
5710 (create_filename_seen_cache, clear_filename_seen_cache)
5711 (delete_filename_seen_cache, filename_seen): Delete, parts moved
5712 to filename-seen-cache.h/filename-seen-cache.c.
5713 (output_source_filename, sources_info)
5714 (maybe_add_partial_symtab_filename)
5715 (make_source_files_completion_list): Adjust to use
5716 filename_seen_cache.
5717
330cdd98
PA
57182017-07-17 Pedro Alves <palves@redhat.com>
5719
5720 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
5721 fields.
5722 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
5723 dwarf2_debug_sections*)): New.
5724 (dwarf2_per_objfile::dwarf2_per_objfile(const
5725 dwarf2_per_objfile&)): Declare as deleted.
5726 (dwarf2_per_objfile::operator=): Declare as deleted.
5727 (dwarf2_per_objfile::dwarf2_per_objfile)
5728 (dwarf2_per_objfile::~dwarf2_per_objfile)
5729 (dwarf2_per_objfile::free_cached_comp_units): New.
5730 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
5731 ctor. Call dwarf2_per_objfile's ctor manually.
5732 (dwarf2_locate_sections): Deleted/refactored as ...
5733 (dwarf2_per_objfile::locate_sections): ... this new method.
5734 (free_cached_comp_units): Defer to
5735 dwarf2_per_objfile::free_cached_comp_units.
5736 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
5737
8880f2a9
TT
57382017-07-14 Tom Tromey <tom@tromey.com>
5739
5740 PR rust/21764:
5741 * rust-exp.y (convert_ast_to_expression): Add "want_type"
5742 parameter.
5743 <UNOP_SIZEOF>: Split into separate case.
5744 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
5745
65547233
TT
57462017-07-14 Tom Tromey <tom@tromey.com>
5747
5748 PR rust/21763:
5749 * symtab.c (symbol_matches_domain): Add language_rust to special
5750 case.
5751 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
5752 treat LOC_TYPEDEF symbols as variables.
5753
8f14146e
PA
57542017-07-14 Pedro Alves <palves@redhat.com>
5755
5756 * symtab.c (make_file_symbol_completion_list_1): Iterate over
5757 symtabs matching all symtabs with SRCFILE as file name instead of
5758 only considering the first hit, with lookup_symtab.
5759
2347965c
SM
57602017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5761
5762 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
5763 operator_name parameters.
5764 (gen_expr): Update function call.
5765
40f4af28
SM
57662017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5767
5768 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
5769 parameter.
5770 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
5771 Likewise.
5772 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
5773 parameter, use agent_expr::gdbarch instead, update function
5774 calls.
5775 (locexpr_tracepoint_var_ref): Likewise.
5776 (loclist_tracepoint_var_ref): Likewise.
5777 * ax-gdb.c (gen_trace_static_fields): Likewise.
5778 (gen_traced_pop): Likewise.
5779 (gen_frame_args_address): Likewise.
5780 (gen_frame_locals_address): Likewise.
5781 (gen_var_ref): Likewise.
5782 (gen_struct_ref_recursive): Likewise.
5783 (gen_static_field): Likewise.
5784 (gen_maybe_namespace_elt): Likewise.
5785 (gen_expr): Likewise.
5786 (gen_trace_for_var): Likewise.
5787 (gen_trace_for_expr): Likewise.
5788 (gen_trace_for_return_address): Likewise.
5789
053f8057
SM
57902017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5791
5792 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
5793 parameter.
5794 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
5795
6661ad48
SM
57962017-07-14 Simon Marchi <simon.marchi@ericsson.com>
5797
5798 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
5799 from ax, update calls.
5800 (gen_usual_arithmetic): Likewise.
5801 (gen_integral_promotions): Likewise.
5802 (gen_bitfield_ref): Likewise.
5803 (gen_primitive_field): Likewise.
5804 (gen_struct_ref_recursive): Likewise.
5805 (gen_struct_ref): Likewise.
5806 (gen_maybe_namespace_elt): Likewise.
5807 (gen_struct_elt_for_reference): Likewise.
5808 (gen_namespace_elt): Likewise.
5809 (gen_aggregate_elt_ref): Likewise.
5810 (gen_expr): Get gdbarch from ax, update calls.
5811 (gen_expr_binop_rest): Likewise.
5812
c55a47e7
PA
58132017-07-13 Pedro Alves <palves@redhat.com>
5814
5815 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
5816 as default tdesc.
5817 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
5818 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
5819 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
5820 tdesc_amd64_linux as default tdesc. Get final tdesc from the
5821 tdep.
5822 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
5823 Get final tdesc from the tdep.
5824 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
5825 default tdesc.
5826 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
5827 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
5828 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
5829 Use it as default tdesc.
5830 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
5831 down to amd_init_abi. No longer handle fallback tdesc here.
5832 * amd64-tdep.h (tdesc_x32): Declare.
5833 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
5834 parameter.
5835 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
5836 as default tdesc.
5837
55efceab
AA
58382017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
5839
5840 * s390-linux-tdep.c (s390_process_record): Add support for
5841 instructions new in arch12.
5842
0aa37b65
JB
58432017-07-11 John Baldwin <jhb@FreeBSD.org>
5844
5845 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
5846 PT_GETFSBASE and PT_GETGSBASE.
5847 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
5848 PT_SETGSBASE.
5849
48aeef91
JB
58502017-07-11 John Baldwin <jhb@FreeBSD.org>
5851
5852 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
5853 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
5854 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
5855 those rules.
5856 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
5857 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
5858 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
5859 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
5860 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
5861 * features/i386/amd64.xml: Add 64bit-segments.xml.
5862 * features/i386/amd64-avx-avx512.c: Regenerated.
5863 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
5864 * features/i386/amd64-avx-mpx.c: Regenerated.
5865 * features/i386/amd64-avx.c: Regenerated.
5866 * features/i386/amd64-mpx.c: Regenerated.
5867 * features/i386/amd64.c: Regenerated.
5868 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
5869 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
5870 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
5871 * regformats/i386/amd64-avx.dat: Regenerated.
5872 * regformats/i386/amd64-mpx.dat: Regenerated.
5873 * regformats/i386/amd64.dat: Regenerated.
5874
77c501bc
YQ
58752017-07-10 Yao Qi <yao.qi@linaro.org>
5876
5877 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
5878 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
5879
6dc8d757
AK
58802017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
5881
5882 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
5883 unsetenv.
5884 * gnulib/aclocal.m4: Regenerate.
5885 * gnulib/config.in: Regenerate.
5886 * gnulib/configure: Regenerate.
5887 * gnulib/import/Makefile.am: Regenerate.
5888 * gnulib/import/Makefile.in: Regenerate.
5889 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
5890 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
5891 * gnulib/import/m4/environ.m4: New file.
5892 * gnulib/import/m4/setenv.m4: New file.
5893 * gnulib/import/setenv.c: New file.
5894 * gnulib/import/unsetenv.c: New file.
5895
266934d1
SM
58962017-07-09 Simon Marchi <simon.marchi@ericsson.com>
5897
5898 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
5899 address when op is DW_OP_addr.
5900
03278692
TT
59012017-07-09 Tom Tromey <tom@tromey.com>
5902
5903 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
5904 check and apply to outer type.
5905
4b654465
JB
59062017-07-07 John Baldwin <jhb@FreeBSD.org>
5907
5908 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
5909 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
5910 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
5911 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
5912
2af9fc44
JB
59132017-07-07 John Baldwin <jhb@FreeBSD.org>
5914
5915 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
5916
382b69bb
JB
59172017-07-07 John Baldwin <jhb@FreeBSD.org>
5918
5919 * corelow.c (get_core_siginfo): Remove.
5920 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
5921 instead of get_core_siginfo.
5922 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
5923 * gdbarch.h: Re-generate.
5924 * gdbarch.c: Re-generate.
5925 * linux-tdep.c (linux_core_xfer_siginfo): New.
5926 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
5927
6e5eab33
JB
59282017-07-07 John Baldwin <jhb@FreeBSD.org>
5929
5930 * corelow.c (thread_section_name): Move to ...
5931 * gdbcore.h (thread_section_name): ... here.
5932
929edea9
JB
59332017-07-07 John Baldwin <jhb@FreeBSD.org>
5934
5935 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
5936 (struct siginfo32): New.
5937 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
5938 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
5939 via ptrace(PT_LWPINFO).
5940
762c974a
JB
59412017-07-07 John Baldwin <jhb@FreeBSD.org>
5942
5943 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
5944 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
5945 (fbsd_get_siginfo_type): New.
5946 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5947 (_initialize_fbsd_tdep): New.
5948
33c5cd75
DB
59492017-07-06 David Blaikie <dblaikie@gmail.com>
5950
5951 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
5952 a singular dwo_unit*) to support multiple CUs in the same way that
5953 multiple TUs are supported.
5954 (create_cus_hash_table): Replace create_dwo_cu with a function for
5955 parsing multiple CUs from a DWO file.
5956 (open_and_init_dwo_file): Use create_cus_hash_table rather than
5957 create_dwo_cu.
5958 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
5959 htab_find, rather than comparing the signature to a singleton CU in
5960 the dwo_file.
5961
8455d262
PA
59622017-07-06 Pedro Alves <palves@redhat.com>
5963
5964 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
5965
4da3eb35
PA
59662017-07-04 Pedro Alves <palves@redhat.com>
5967
5968 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
5969 * gdbtypes.h (TYPE_STATIC): Delete.
5970 (struct fn_field) <is_public, is_abstract, is_static, is_final,
5971 is_synchronized, is_native>: Delete.
5972 <dummy>: Bump.
5973 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
5974 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
5975 (TYPE_FN_FIELD_ABSTRACT): Delete.
5976
5bfd255c
SM
59772017-07-03 Simon Marchi <simon.marchi@ericsson.com>
5978
5979 * buffer.h (buffer_finish): Fix spelling mistakes.
5980
25c54127
EZ
59812017-07-01 Eli Zaretskii <eliz@gnu.org>
5982
5983 * .dir-locals.el: Automatically switch to C-style comments in
5984 versions of Emacs that support the feature.
5985
dc4bde35
SDJ
59862017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
5987 Pedro Alves <palves@redhat.com>
5988
5989 PR cli/21688
5990 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
5991 (process_next_line): New variable 'inline_cmd'.
5992 Adjust 'if' clauses for "python", "compile" and "guile" to use
5993 'command_name_equals' and check for '!inline_cmd'.
5994
51ed89aa
SDJ
59952017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
5996
5997 PR cli/21688
5998 * cli/cli-script.c (command_name_equals_not_inline): New function.
5999 (process_next_line): Adjust 'if' clauses for "python", "compile"
6000 and "guile" to use command_name_equals_not_inline.
6001
eb17d413
PA
60022017-06-29 Pedro Alves <palves@redhat.com>
6003
6004 * completer.c (expression_completer): Call
6005 linespec_location_completer instead of location_completer.
6006
195bcdd5
PA
60072017-06-29 Pedro Alves <palves@redhat.com>
6008
6009 * completer.c (expression_completer): Remove code that recomputes
6010 'text' from 'word'.
6011
adc764e7
YQ
60122017-06-29 Yao Qi <yao.qi@linaro.org>
6013
6014 * regformats/regdat.sh: Generate code with
6015 "ifndef IN_PROCESS_AGENT".
6016
6e75794e
PA
60172017-06-28 Pedro Alves <palves@redhat.com>
6018
6019 * command.h: Include "common/scoped_restore.h".
6020
bc491f2e
YQ
60212017-06-28 Yao Qi <yao.qi@linaro.org>
6022
6023 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
6024 instead of obstack_grow.
6025
41664b45
DG
60262017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
6027
6028 PR gdb/21337
6029 * symfile.c (reread_symbols): Call objfiles_changed just before
6030 read_symbols.
6031
6da67eb1
PA
60322017-06-27 Pedro Alves <palves@redhat.com>
6033
6034 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
6035 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
6036 (completion_list_add_symbol, completion_list_add_msymbol):
6037 ... these new functions.
6038 (add_symtab_completions)
6039 (default_make_symbol_completion_list_break_on_1): Adjust.
6040
23732b1e
PA
60412017-06-27 Pedro Alves <palves@redhat.com>
6042
6043 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
6044 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
6045 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
6046 dtor.
6047 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
6048 'storage_obstack' field an auto_obstack. In-class initialize all
6049 non-bitfield fields. Make minsyms_read bool.
6050 * symfile.c (read_symbols): Adjust.
6051
a4d1e79a
AH
60522017-06-27 Alan Hayward <alan.hayward@arm.com>
6053
6054 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
6055 (gdbsim_store_register): Likewise.
6056
8268c778
PA
60572017-06-27 Pedro Alves <palves@redhat.com>
6058
6059 * c-exp.y (name_obstack): Now an auto_obstack.
6060 (yylex): Use auto_obstack::clear.
6061 (c_parse): Use auto_obstack::clear instead of reinitializing and
6062 freeing the obstack.
6063 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
6064 * d-exp.y (name_obstack): Now an auto_obstack.
6065 (yylex): Use auto_obstack::clear.
6066 (d_parse): Use auto_obstack::clear instead of reinitializing and
6067 freeing the obstack.
6068 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
6069 auto_obstack.
6070 * dwarf2read.c (create_addrmap_from_index)
6071 (dwarf2_build_psymtabs_hard)
6072 (update_enumeration_type_from_children): Likewise.
6073 * gdb_obstack.h (auto_obstack): New type.
6074 * go-exp.y (name_obstack): Now an auto_obstack.
6075 (build_packaged_name): Use auto_obstack::clear.
6076 (go_parse): Use auto_obstack::clear instead of reinitializing and
6077 freeing the obstack.
6078 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
6079 auto_obstack.
6080 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
6081 * rust-exp.y (work_obstack): Now an auto_obstack.
6082 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
6083 reinitializing and freeing the obstack.
6084 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
6085 (host_char_to_target): Use auto_obstack.
6086 * utils.h (make_cleanup_obstack_free): Delete declaration.
6087 * valprint.c (generic_emit_char, generic_printstr): Use
6088 auto_obstack.
6089
db665f42
SM
60902017-06-27 Simon Marchi <simon.marchi@ericsson.com>
6091
6092 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
6093 thread.
6094 (darwin_init_thread_list): Don't update dummy thread.
6095 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
6096
873c0814
SM
60972017-06-26 Simon Marchi <simon.marchi@ericsson.com>
6098
6099 * record-full.c (netorder16): Remove.
6100
8b5a7a6e
SM
61012017-06-26 Simon Marchi <simon.marchi@ericsson.com>
6102
6103 * common/diagnostics.h: Define macros for GCC.
6104 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
6105 * common/vec.h: Include diagnostics.h.
6106 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
6107 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
6108 warning.
6109
d1435379
SM
61102017-06-26 Simon Marchi <simon.marchi@ericsson.com>
6111
6112 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
6113 New macro.
6114 * ada-lex.l: Ignore deprecated register warnings.
6115
cc75e0fd
SM
61162017-06-25 Simon Marchi <simon.marchi@ericsson.com>
6117
6118 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
6119 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
6120
07809eaf
SM
61212017-06-25 Simon Marchi <simon.marchi@ericsson.com>
6122
6123 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
6124 its own line.
6125
f076f034
SM
61262017-06-25 Simon Marchi <simon.marchi@ericsson.com>
6127
6128 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
6129
0dd5cbc5
AH
61302017-06-23 Alan Hayward <alan.hayward@arm.com>
6131
6132 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
6133 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
6134 (xtensa_register_read_masked): Likewise.
6135
d4c6ce5b
SDJ
61362017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
6137
6138 * common/environ.c (gdb_environ::unset): Update comment.
6139
16892a03
AH
61402017-06-22 Alan Hayward <alan.hayward@arm.com>
6141
6142 * python/py-unwind.c (pyuw_sniffer): Allocate space for
6143 registers.
6144
d7dcbefc
AH
61452017-06-22 Alan Hayward <alan.hayward@arm.com>
6146
6147 * record-full.c (record_full_exec_insn): Use byte_vector.
6148
b30ff123
YQ
61492017-06-22 Yao Qi <yao.qi@linaro.org>
6150
6151 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
6152 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
6153
4fa847d7
AH
61542017-06-22 Alan Hayward <alan.hayward@arm.com>
6155
6156 * remote.c (cached_reg): Move from here...
6157 * regcache.h (cached_reg): ...to here.
6158 * python/py-unwind.c (struct reg_info): Remove.
6159 (cached_frame_info): Use cached_reg_t.
6160 (pyuw_prev_register): Likewise.
6161 (pyuw_sniffer): Use cached_reg_t and allocate registers.
6162 (pyuw_dealloc_cache): Free all registers.
6163
f4906a9a
PA
61642017-06-22 Pedro Alves <palves@redhat.com>
6165 Simon Marchi <simon.marchi@ericsson.com>
6166
6167 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
6168 warning.
6169 * common/diagnostics.h: New file.
6170
b45a1208
PA
61712017-06-22 Pedro Alves <palves@redhat.com>
6172
6173 * common/agent.h: Add include guards.
6174
e4da2c61
SM
61752017-06-21 Simon Marchi <simon.marchi@ericsson.com>
6176
6177 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
6178 talk about addressable units instead of bytes.
6179
96160d60
SDJ
61802017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
6181
6182 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
6183 of '::const_iterator'.
6184
9a6c7d9c
SDJ
61852017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
6186
6187 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
6188 'unittests/environ-selftests.c'.
6189 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
6190 * charset.c (find_charset_names): Declare object 'iconv_env'.
6191 Update code to use 'iconv_env' object. Remove call to
6192 'free_environ'.
6193 * common/environ.c: Include <utility>.
6194 (make_environ): Delete function.
6195 (free_environ): Delete function.
6196 (gdb_environ::clear): New function.
6197 (gdb_environ::operator=): New function.
6198 (gdb_environ::get): Likewise.
6199 (environ_vector): Delete function.
6200 (set_in_environ): Delete function.
6201 (gdb_environ::set): New function.
6202 (unset_in_environ): Delete function.
6203 (gdb_environ::unset): New function.
6204 (gdb_environ::envp): Likewise.
6205 * common/environ.h: Include <vector>.
6206 (struct gdb_environ): Delete; transform into...
6207 (class gdb_environ): ... this class.
6208 (free_environ): Delete prototype.
6209 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
6210 environ_vector): Likewise.
6211 * infcmd.c (run_command_1): Update code to call
6212 'envp' from 'gdb_environ' class.
6213 (environment_info): Update code to call methods from 'gdb_environ'
6214 class.
6215 (unset_environment_command): Likewise.
6216 (path_info): Likewise.
6217 (path_command): Likewise.
6218 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
6219 (inferior::inferior): Initialize 'environment' using the host's
6220 information.
6221 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
6222 Include "environ.h".
6223 (class inferior) <environment>: Change type from 'struct
6224 gdb_environ' to 'gdb_environ'.
6225 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
6226 methods from 'gdb_environ' class.
6227 * solib.c (solib_find_1): Likewise
6228 * unittests/environ-selftests.c: New file.
6229
75c554cf
YQ
62302017-06-20 Yao Qi <yao.qi@linaro.org>
6231
6232 * features/i386/i386-linux.xml: Exchange the order of including
6233 32bit-linux.xml and 32bit-sse.xml.
6234 * features/i386/i386-linux.c: Regenerated.
6235
72ddacb7
YQ
62362017-06-20 Yao Qi <yao.qi@linaro.org>
6237
6238 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
6239 Delete copy ctor and assignment operator.
6240 (tdesc_type): Likewise.
6241 (tdesc_feature): Likewise.
6242 (tdesc_free_reg): Remove.
6243 (tdesc_create_reg): Use new.
6244 (tdesc_free_type): Remove.
6245 (tdesc_create_vector): Use new.
6246 (tdesc_create_union): Likewise.
6247 (tdesc_create_flags): Likewise.
6248 (tdesc_create_enum): Likewise.
6249 (tdesc_free_feature): Delete.
6250 (free_target_description): Use delete.
6251
325c9fd4
JB
62522017-06-19 John Baldwin <jhb@FreeBSD.org>
6253
6254 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
6255 registers.
6256
16b7a719
PA
62572017-06-19 Pedro Alves <palves@redhat.com>
6258
6259 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
6260 after gdb::unlinker.
6261
1c8e01c9
SDJ
62622017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
6263
6264 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
6265 gdb_environ to access an environment variable.
6266
ffce45d2
TP
62672017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
6268
6269 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
6270 gdb_byte*.
6271
1d4fbac9
SM
62722017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6273
6274 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
6275
8465943a
SM
62762017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6277
6278 * configure: Re-generate.
6279 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
6280
3e019bdc
SM
62812017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6282
6283 * configure: Re-generate.
6284 * warning.m4: Pass -Werror to compiler when checking for
6285 supported warning flags.
6286
cf0dd6f0
SM
62872017-06-17 Simon Marchi <simon.marchi@ericsson.com>
6288
6289 * Makefile.in (COMPILE.pre): Add "-x c++".
6290
6f98355c
YQ
62912017-06-16 Alan Hayward <alan.hayward@arm.com>
6292 Pedro Alves <palves@redhat.com>
6293 Yao Qi <yao.qi@linaro.org>
6294
6295 * defs.h (RequireLongest): New.
6296 (extract_integer): Declare function template.
6297 (extract_signed_integer): Remove the declaration, but define it
6298 static inline.
6299 (extract_unsigned_integer): Likewise.
6300 (store_integer): Declare function template.
6301 (store_signed_integer): Remove the declaration, but define it
6302 static inline.
6303 (store_unsigned_integer): Likewise.
6304 * findvar.c (extract_integer): New function template.
6305 (extract_signed_integer): Remove.
6306 (extract_unsigned_integer): Remove.
6307 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
6308 instantiations.
6309 (store_integer): New function template.
6310 (store_signed_integer): Remove.
6311 (store_unsigned_integer): Remove.
6312 (store_integer): Explicit instantiations.
6313 * regcache.c (regcache_raw_read_signed): Update.
6314 (regcache::raw_read): New function.
6315 (regcache::raw_read_signed): Remove.
6316 (regcache::raw_read_unsigned): Remove.
6317 (regcache_raw_read_unsigned): Update.
6318 (regcache_raw_write_unsigned): Update.
6319 (regcache::raw_write_signed): Remove.
6320 (regcache::raw_write): New function.
6321 (regcache_cooked_read_signed): Update.
6322 (regcache::raw_write_unsigned): Remove.
6323 (regcache::cooked_read_signed): Remove.
6324 (regcache_cooked_read_unsigned): Update.
6325 (regcache::cooked_read_unsigned): Remove.
6326 (regcache_cooked_write_signed): Update.
6327 (regcache_cooked_write_unsigned): Update.
6328 * regcache.h (regcache) <raw_read_signed>: Remove.
6329 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
6330 <raw_read, raw_write>: New.
6331 <cooked_read_signed, cooked_write_signed>: Remove.
6332 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
6333 <cooked_read, cooked_write>: New.
6334 * sh64-tdep.c (sh64_pseudo_register_read): Update.
6335 (sh64_pseudo_register_write): Update.
6336
a87dc45a
AK
63372017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
6338
6339 * arc-tdep.c (arc_disassembler_options): New variable.
6340 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
6341 of default_print_insn.
6342 (arc_delayed_print_insn): Set info->section when needed,
6343 use default_print_insn to retrieve a disassembler.
6344
45159d6a
SDJ
63452017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
6346
6347 PR gdb/21574
6348 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
6349 to mention $SHELL and startup-with-shell.
6350
b46c4cf0
MF
63512017-06-14 Max Filippov <jcmvbkbc@gmail.com>
6352
6353 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
6354
6394c606
YQ
63552017-06-14 Yao Qi <yao.qi@linaro.org>
6356
6357 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
6358 default_print_insn instead of print_insn_aarch64.
6359 * arm-tdep.c (gdb_print_insn_arm): Call
6360 default_print_insn instead of print_insn_big_arm
6361 and print_insn_little_arm.
6362 * i386-tdep.c (i386_print_insn): Call default_print_insn
6363 instead of print_insn_i386.
6364 * ia64-tdep.c (ia64_print_insn): Call
6365 default_print_insn instead of print_insn_ia64.
6366 * mips-tdep.c (gdb_print_insn_mips): Call
6367 default_print_insn instead of print_insn_big_mips
6368 and print_insn_little_mips.
6369 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
6370 instead of print_insn_spu.
6371
d5722aa2
PA
63722017-06-14 Pedro Alves <palves@redhat.com>
6373
6374 * ada-lang.c: Include "common/byte-vector.h".
6375 (ada_value_primitive_packed_val): Use gdb::byte_vector.
6376 * charset.c (wchar_iterator::iterate): Resize the vector instead
6377 of reserving it.
6378 * common/byte-vector.h: Include "common/def-vector.h".
6379 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
6380 * cli/cli-dump.c: Include "common/byte-vector.h".
6381 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
6382 * common/byte-vector.h: New file.
6383 * common/def-vector.h: New file.
6384 * common/default-init-alloc.h: New file.
6385 * dwarf2loc.c: Include "common/byte-vector.h".
6386 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
6387 instead of reserving it.
6388 * dwarf2read.c: Include "common/byte-vector.h".
6389 (data_buf::m_vec): Now a gdb::byte_vector.
6390 * gdb_regex.c: Include "common/def-vector.h".
6391 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
6392 * mi/mi-main.c: Include "common/byte-vector.h".
6393 (mi_cmd_data_read_memory): Use gdb::byte_vector.
6394 * printcmd.c: Include "common/byte-vector.h".
6395 (print_scalar_formatted): Use gdb::byte_vector.
6396 * valprint.c: Include "common/byte-vector.h".
6397 (maybe_negate_by_bytes, print_decimal_chars): Use
6398 gdb::byte_vector.
6399
01ec7a27
SM
64002017-06-13 Simon Marchi <simon.marchi@ericsson.com>
6401
6402 * darwin-nat.c: Include "nat/fork-inferior.h".
6403
848d9074
SM
64042017-06-13 Simon Marchi <simon.marchi@ericsson.com>
6405
6406 * configure.nat: Factor out Darwin bits that are not
6407 architecture-specific. Add fork-inferior.o.
6408
3b912944
SM
64092017-06-13 Simon Marchi <simon.marchi@ericsson.com>
6410
6411 * configure.nat: Factor out AIX bits that are not
6412 architecture-specific. Add fork-inferior.o.
6413
55acdf22
AA
64142017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6415
6416 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
6417 (read_pieced_value, write_pieced_value): ...here. Reduce to
6418 wrappers that just call rw_pieced_value.
6419
f65e2044
AA
64202017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6421
6422 * dwarf2loc.c (write_pieced_value): When writing the data for a
6423 memory piece, use write_memory_with_notification instead of
6424 write_memory.
6425
23f945bf
AA
64262017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6427
6428 * valops.c (read_value_memory): Change embedded_offset to
6429 represent a bit offset instead of a byte offset.
6430 * value.h (read_value_memory): Adjust comment.
6431
f236533e
AA
64322017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6433
6434 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
6435 dest_offset_bits and source_offset_bits.
6436 (write_pieced_value): Likewise.
6437
65d84b76
AA
64382017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6439
6440 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
6441 given by DW_OP_bit_piece.
6442 (write_pieced_value): Likewise.
6443
242d31ab
AA
64442017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6445
6446 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
6447 some other preparations to the places where sufficient information
6448 is available.
6449 (write_pieced_value): Likewise.
6450
03c8af18
AA
64512017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6452
6453 * dwarf2loc.c (bits_to_bytes): New function.
6454 (read_pieced_value): Fix offset calculations for register pieces
6455 on big-endian targets.
6456 (write_pieced_value): Likewise.
6457
840989c1
AA
64582017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6459
6460 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
6461 (write_pieced_value): Likewise.
6462
359b19bb
AA
64632017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6464
6465 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
6466 transfer the source value's least significant bits, instead of its
6467 lowest-addressed ones. Rename type_len to max_offset.
6468 (read_pieced_value): Mirror above changes to write_pieced_value as
6469 applicable.
6470
07c9ca3b
AA
64712017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6472
6473 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
6474 truncate full bytes from dest_offset_bits before using it as an
6475 offset into the buffer.
6476
f1cc9874
AA
64772017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6478
6479 * dwarf2loc.c (write_pieced_value): Include transfer size in
6480 byte-wise check.
6481
cdaac320
AA
64822017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6483
6484 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
6485 calculation of this_size.
6486
af547a96
AA
64872017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6488
6489 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
6490 when targeting a bit-field.
6491 (write_pieced_value): Likewise.
6492
ddd7882a
AA
64932017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6494
6495 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
6496 (allocate_piece_closure): Drop addr_size parameter.
6497 (dwarf2_evaluate_loc_desc_full): Adjust call to
6498 allocate_piece_closure.
6499
e9352324
AA
65002017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6501
6502 PR gdb/21226
6503 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
6504 the LSB end, independent of endianness.
6505
d5d1163e
AA
65062017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
6507
6508 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
6509 size capping.
6510
032bb6ea
YQ
65112017-06-13 Yao Qi <yao.qi@linaro.org>
6512
6513 * mips-linux-nat.c: Move include features/mips*-linux.c to
6514 mips-linux-tdep.c.
6515 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
6516 to mips-linux-tdep.c.
6517 * mips-linux-tdep.c: Include features/mips*-linux.c
6518 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
6519 functions.
6520 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
6521 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
6522 (tdesc_mips64_dsp_linux): Declare.
6523
f12f6bad
TT
65242017-06-12 Tom Tromey <tom@tromey.com>
6525
6526 * valprint.h (val_print_type_code_int): Remove.
6527 * valprint.c (generic_val_print_int): Always call
6528 val_print_scalar_formatted.
6529 (val_print_type_code_int): Remove.
6530 * printcmd.c (print_scalar_formatted): Handle options->format==0.
6531 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
6532 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
6533 * ada-valprint.c (ada_val_print_num): Use
6534 val_print_scalar_formatted.
6535
d9109c80
TT
65362017-06-12 Tom Tromey <tom@tromey.com>
6537
6538 * printcmd.c (print_scalar_formatted): Unify the two switches.
6539 Don't convert scalars to LONGEST.
6540
4ac0cb1c
TT
65412017-06-12 Tom Tromey <tom@tromey.com>
6542
6543 PR exp/16225:
6544 * valprint.h (print_decimal_chars): Update.
6545 * valprint.c (maybe_negate_by_bytes): New function.
6546 (print_decimal_chars): Add "is_signed" argument.
6547 * printcmd.c (print_scalar_formatted): Update.
6548
30a25466
TT
65492017-06-12 Tom Tromey <tom@tromey.com>
6550
6551 PR exp/16225:
6552 * valprint.h (print_binary_chars, print_hex_chars): Update.
6553 * valprint.c (val_print_type_code_int): Update.
6554 (print_binary_chars): Add "zero_pad" argument.
6555 (emit_octal_digit): New function.
6556 (print_octal_chars): Don't zero-pad.
6557 (print_decimal_chars): Likewise.
6558 (print_hex_chars): Add "zero_pad" argument.
6559 * sh64-tdep.c (sh64_do_fp_register): Update.
6560 * regcache.c (regcache::dump): Update.
6561 * printcmd.c (print_scalar_formatted): Update.
6562 * infcmd.c (default_print_one_register_info): Update.
6563
b3464d03
PA
65642017-06-12 Pedro Alves <palves@redhat.com>
6565 Alan Hayward <alan.hayward@arm.com>
6566
6567 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
6568 (mips_eabi_push_dummy_call): Rename local 'regsize' to
6569 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
6570 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
6571 Assert that abi_regsize bytes fit in 'ref_valbuf'.
6572
4b76cda9
PA
65732017-06-12 Pedro Alves <palves@redhat.com>
6574
6575 * dwarf2read.c (mapped_symtab::data): Now a vector of
6576 symtab_index_entry instead of vector of
6577 std::unique_ptr<symtab_index_entry>. All users adjusted to check
6578 whether an element's name is NULL instead of checking whether the
6579 element itself is NULL.
6580 (find_slot): Change return type. Adjust.
6581 (hash_expand, , add_index_entry, uniquify_cu_indices)
6582 (write_hash_table): Adjust.
6583
e8f8bcb3
PA
65842017-06-12 Pedro Alves <palves@redhat.com>
6585
6586 * dwarf2read.c (recursively_count_psymbols): New function.
6587 (write_psymtabs_to_index): Call it to compute number of psyms and
6588 pass estimate size of psyms_seen to unordered_set's ctor.
6589
70a1152b
PA
65902017-06-12 Pedro Alves <palves@redhat.com>
6591
6592 * dwarf2read.c (write_hash_table): Check if key already exists
6593 before emplacing.
6594
c2f134ac
PA
65952017-06-12 Pedro Alves <palves@redhat.com>
6596
6597 * dwarf2read.c (data_buf::append_space): Rename to...
6598 (data_buf::grow): ... this, and make private. Adjust all callers.
6599 (data_buf::append_uint): New method.
6600 (add_address_entry, write_one_signatured_type)
6601 (write_psymtabs_to_index): Use it.
6602
a81e6d4d
PA
66032017-06-12 Pedro Alves <palves@redhat.com>
6604
6605 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
6606 (file_write (FILE *, const std::vector<Elem>&)): Delete.
6607 (data_buf::file_write): Call ::fwrite directly.
6608
6fd931f2
PA
66092017-06-12 Pedro Alves <palves@redhat.com>
6610
6611 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
6612 std::vector::erase.
6613
bc8f2430
JK
66142017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6615
6616 Code cleanup: C++ify .gdb_index producer.
6617 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
6618 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
6619 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
6620 (create_strtab, add_string): Remove.
6621 (file_write, data_buf): New.
6622 (struct symtab_index_entry): Use std::vector for cu_indices.
6623 (struct mapped_symtab): Use std::vector for data.
6624 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
6625 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
6626 Remove.
6627 (find_slot): Change return type. Update it to the new data structures.
6628 (hash_expand, add_index_entry): Update it to the new data structures.
6629 (offset_type_compare): Remove.
6630 (uniquify_cu_indices): Update it to the new data structures.
6631 (c_str_view, c_str_view_hasher, vector_hasher): New.
6632 (add_indices_to_cpool): Remove.
6633 (write_hash_table): Update it to the new data structures.
6634 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
6635 (eq_psymtab_cu_index): Remove.
6636 (psym_index_map): New typedef.
6637 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
6638 reference and std::unordered_map for cu_index_htab.
6639 (add_address_entry, add_address_entry_worker, write_address_map)
6640 (write_psymbols): Update it to the new data structures.
6641 (write_obstack): Remove.
6642 (struct signatured_type_index_data): Change types_list to a data_buf
6643 reference and psyms_seen to a std::unordered_set reference.
6644 (write_one_signatured_type, recursively_write_psymbols)
6645 (write_psymtabs_to_index): Update it to the new data structures.
6646
c4dcb155
SM
66472017-06-11 Simon Marchi <simon.marchi@ericsson.com>
6648
6649 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
6650 separate-debug-file commands.
6651 * symfile.h (separate_debug_file_debug): New global.
6652 * symfile.c (separate_debug_file_debug): New global.
6653 (separate_debug_file_exists, find_separate_debug_file): Add
6654 debug output.
6655 (_initialize_symfile): Add "set debug separate-debug-file"
6656 command.
6657 * build-id.c (build_id_to_debug_bfd,
6658 find_separate_debug_file_by_buildid): Add debug output.
6659
6d45d4b4
SM
66602017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
6661
6662 * gdbarch.sh (displaced_step_free_closure): Remove.
6663 * gdbarch.h, gdbarch.c: Re-generate.
6664 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
6665 displaced_step_free_closure.
6666 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6667 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6668 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6669 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
6670 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
6671 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6672 * arch-utils.h (simple_displaced_step_free_closure): Remove.
6673 * arch-utils.c (simple_displaced_step_free_closure): Remove.
6674 * infrun.c (displaced_step_clear): Call xfree instead of
6675 gdbarch_displaced_step_free_closure.
6676
2f91880f
SDJ
66772017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
6678
6679 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
6680 NULL".
6681
b8b6e72f
AH
66822017-06-08 Alan Hayward <alan.hayward@arm.com>
6683
6684 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
6685 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
6686 (mn10300_push_dummy_call): Likewise.
6687
5369082e
AH
66882017-06-08 Alan Hayward <alan.hayward@arm.com>
6689
6690 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
6691
ff4ca5ac
AH
66922017-06-08 Alan Hayward <alan.hayward@arm.com>
6693
6694 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
6695
aefd8b33
SDJ
66962017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6697
6698 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
6699 able to start inferiors using a shell.
6700 (New remote packets): Announce new packet "QStartupWithShell".
6701 * remote.c: Add PACKET_QStartupWithShell.
6702 (extended_remote_create_inferior): Handle new
6703 PACKET_QStartupWithShell.
6704 (remote_protocol_features) <QStartupWithShell>: New entry for
6705 PACKET_QStartupWithShell.
6706 (_initialize_remote): Call "add_packet_config_cmd" for
6707 QStartupShell.
6708
2090129c
SDJ
67092017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6710 Pedro Alves <palves@redhat.com>
6711
6712 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
6713 and "nat/fork-inferior.h".
6714 * common/common-inferior.h: New file, with contents from
6715 "gdb/inferior.h".
6716 * commom/common-utils.c: Include "common-utils.h".
6717 (stringify_argv): New function.
6718 * common/common-utils.h (stringify_argv): New prototype.
6719 * configure.nat: Add "fork-inferior.o" as a dependency for
6720 "*linux*", "fbsd*" and "nbsd*" hosts.
6721 * corefile.c (get_exec_file): Update comment.
6722 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
6723 instead of "startup_inferior".
6724 (darwin_create_inferior): Call "add_thread_silent" after
6725 "fork_inferior".
6726 * fork-child.c: Cleanup unnecessary includes.
6727 (SHELL_FILE): Move to "common/common-fork-child.c".
6728 (environ): Likewise.
6729 (exec_wrapper): Initialize.
6730 (get_exec_wrapper): New function.
6731 (breakup_args): Move to "common/common-fork-child.c"; rename to
6732 "breakup_args_for_exec".
6733 (escape_bang_in_quoted_argument): Move to
6734 "common/common-fork-child.c".
6735 (saved_ui): New variable.
6736 (prefork_hook): New function.
6737 (postfork_hook): Likewise.
6738 (postfork_child_hook): Likewise.
6739 (gdb_startup_inferior): Likewise.
6740 (fork_inferior): Move to "common/common-fork-child.c". Update
6741 function to support gdbserver.
6742 (startup_inferior): Likewise.
6743 * gdbcore.h (get_exec_file): Remove declaration.
6744 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
6745 instead of "startup_inferior". Call "add_thread_silent" after
6746 "fork_inferior".
6747 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
6748 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
6749 instead of "startup_inferior". Call "add_thread_silent" after
6750 "fork_inferior".
6751 * inferior.h: Include "common-inferior.h".
6752 (trace_start_error): Move to "common/common-utils.h".
6753 (trace_start_error_with_name): Likewise.
6754 (fork_inferior): Move prototype to "nat/fork-inferior.h".
6755 (startup_inferior): Likewise.
6756 (gdb_startup_inferior): New prototype.
6757 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
6758 * nat/fork-inferior.h: New file.
6759 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
6760 instead of "startup_inferior". Call "add_thread_silent" after
6761 "fork_inferior".
6762 * target.h (target_terminal_init): Move prototype to
6763 "target/target.h".
6764 (target_terminal_inferior): Likewise.
6765 (target_terminal_ours): Likewise.
6766 * target/target.h (target_terminal_init): New prototype, moved
6767 from "target.h".
6768 (target_terminal_inferior): Likewise.
6769 (target_terminal_ours): Likewise.
6770 * utils.c (gdb_flush_out_err): New function.
6771
043a4934
SDJ
67722017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6773
6774 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
6775 * common/common-gdbthread.h: New file, with parts from
6776 "gdb/gdbthread.h".
6777 * gdbthread.h: Include "common-gdbthread.h".
6778 (switch_to_thread): Moved to "common/common-gdbthread.h".
6779
15652511
SDJ
67802017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
6781
6782 * Makefile.in (SFILES): Add "common/job-control.c".
6783 (HFILES_NO_SRCDIR): Add "common/job-control.h".
6784 (COMMON_OBS): Add "job-control.o".
6785 * common/job-control.c: New file, with contents from
6786 "gdb/inflow.c".
6787 * common/job-control.h: New file, with contents from "terminal.h".
6788 * fork-child.c: Include "job-control.h".
6789 * inflow.c: Include "job-control.h".
6790 (gdb_setpgid): Move to "common/common-inflow.c".
6791 (_initialize_inflow): Move setting of "job_control" to
6792 "handle_job_control".
6793 * terminal.h (job_control): Moved to "common/common-terminal.h".
6794 (gdb_setpgid): Likewise.
6795 * top.c: Include "job_control.h".
6796 * utils.c: Likewise.
6797 (job_control): Moved to "job-control.c".
6798
2d7cc5c7
PA
67992017-06-07 Pedro Alves <palves@redhat.com>
6800
6801 * Makefile.in (SFILES): Add gdb_regex.c.
6802 (COMMON_OBS): Add gdb_regex.o.
6803 * ada-lang.c (ada_add_standard_exceptions)
6804 (ada_add_exceptions_from_frame, name_matches_regex)
6805 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
6806 parameter type to compiled_regex. Adjust.
6807 (ada_exceptions_list): Use compiled_regex.
6808 * break-catch-throw.c (exception_catchpoint::pattern): Now a
6809 std::unique_ptr<compiled_regex>.
6810 (exception_catchpoint::~exception_catchpoint): Remove regfree
6811 call.
6812 (check_status_exception_catchpoint): Adjust to use compiled_regex.
6813 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
6814 * breakpoint.c (solib_catchpoint::compiled): Now a
6815 std::unique_ptr<compiled_regex>.
6816 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
6817 (check_status_catch_solib): Adjust to use compiled_regex.
6818 (add_solib_catchpoint): Adjust to use compiled_regex.
6819 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
6820 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
6821 compiled_regex reference. Adjust to use it.
6822 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
6823 declaration. Include "gdb_regex.h".
6824 (apropos_cmd): Change regex parameter to compiled_regex reference.
6825 * gdb_regex.c: New file.
6826 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
6827 declarations.
6828 (class compiled_regex): New.
6829 * linux-tdep.c: Include "common/gdb_optional.h".
6830 (struct mapping_regexes): New, factored out from
6831 mapping_is_anonymous_p, and adjusted to use compiled_regex.
6832 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
6833 gdb::optional and remove cleanups. Adjust to compiled_regex.
6834 * probe.c: Include "common/gdb_optional.h".
6835 (collect_probes): Use compiled_regex and gdb::optional and remove
6836 cleanups.
6837 * skip.c: Include "common/gdb_optional.h".
6838 (skiplist_entry::compiled_function_regexp): Now a
6839 gdb::optional<compiled_regex>.
6840 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
6841 (free_skiplist_entry): Remove regfree call.
6842 (compile_skip_regexp, skip_rfunction_p): Adjust to use
6843 compiled_regex and gdb::optional.
6844 * symtab.c: Include "common/gdb_optional.h".
6845 (search_symbols): Use compiled_regex and gdb::optional.
6846 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
6847 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
6848 to gdb_regex.c.
6849
50d6adef
AH
68502017-06-07 Alan Hayward <alan.hayward@arm.com>
6851
6852 * regcache.c (regcache::save): Avoid buffer use.
6853 (regcache::dump): Likewise.
6854
4a8a33c8
AH
68552017-06-07 Alan Hayward <alan.hayward@arm.com>
6856
6857 * sh-tdep.c (sh_pseudo_register_read): Remove
6858 MAX_REGISTER_SIZE.
6859 (sh_pseudo_register_write): Likewise.
6860 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
6861 (sh64_pseudo_register_write): Likewise
6862
d1be909e
AH
68632017-06-07 Alan Hayward <alan.hayward@arm.com>
6864
6865 * aarch64-tdep.c (aarch64_store_return_value): Use
6866 V_REGISTER_SIZE.
6867 (aarch64_pseudo_read_value): Likewise.
6868 (aarch64_pseudo_write): Likewise.
6869
f4a65042
YQ
68702017-06-06 Yao Qi <yao.qi@linaro.org>
6871
6872 * regformats/regdef.h (set_register_cache): Remove the
6873 declaration.
6874
9f7fb0aa
AH
68752017-06-06 Alan Hayward <alan.hayward@arm.com>
6876
6877 * frame.c (frame_unwind_register_signed): Use
6878 frame_unwind_register_value.
6879
e1e01040
PA
68802017-06-06 Pedro Alves <palves@redhat.com>
6881
6882 PR breakpoints/21553
6883 * breakpoint.c (create_breakpoints_sal_default)
6884 (init_breakpoint_sal, create_breakpoint_sal): Use
6885 gdb::unique_xmalloc_ptr for string parameters.
6886 (create_breakpoint): Constify 'extra_string' and 'cond_string'
6887 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
6888 (base_breakpoint_create_breakpoints_sal)
6889 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
6890 (strace_marker_create_breakpoints_sal)
6891 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
6892 string parameters.
6893 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
6894 gdb::unique_xmalloc_ptr for string parameters.
6895 (create_breakpoint): Constify 'extra_string' and 'cond_string'
6896 parameters.
6897
fbe654c8
AH
68982017-06-06 Alan Hayward <alan.hayward@arm.com>
6899
6900 * alpha-tdep.c (alpha_register_to_value): Use
6901 get_frame_register_value.
6902 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
6903
ae0d01d6
AH
69042017-06-06 Alan Hayward <alan.hayward@arm.com>
6905
6906 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
6907 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
6908 (ia64_value_to_register): Likewise.
6909 (ia64_extract_return_value): Likewise.
6910 (ia64_store_return_value): Likewise.
6911 (ia64_push_dummy_call): Likewise.
6912
49cf576c
JB
69132017-06-04 Joel Brobecker <brobecker@adacore.com>
6914
6915 GDB 8.0 released.
6916
26b6a6ab
SM
69172017-06-03 Simon Marchi <simon.marchi@ericsson.com>
6918
6919 * x86-linux-nat.c (struct arch_lwp_info): Remove.
6920
22827c51
SM
69212017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
6922
6923 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
6924 parameter.
6925 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
6926
0e05cf3a
SM
69272017-06-02 Simon Marchi <simon.marchi@ericsson.com>
6928
6929 * event-loop.c (poll_timers): Unallocate timer using delete
6930 instead of xfree.
6931
c1fc2657
SM
69322017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
6933
6934 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
6935 (struct breakpoint) <~breakpoint>: New.
6936 (struct watchpoint): Inherit from breakpoint.
6937 <~watchpoint>: New.
6938 <base>: Remove.
6939 (struct tracepoint): Inherit from breakpoint.
6940 <base>: Remove.
6941 * breakpoint.c (longjmp_breakpoint_ops): Remove.
6942 (struct longjmp_breakpoint): Inherit from breakpoint.
6943 <~longjmp_breakpoint>: New.
6944 <base>: Remove.
6945 (new_breakpoint_from_type): Remove casts.
6946 (watchpoint_in_thread_scope): Remove reference to base field.
6947 (watchpoint_del_at_next_stop): Likewise.
6948 (update_watchpoint): Likewise.
6949 (watchpoint_check): Likewise.
6950 (bpstat_check_watchpoint): Likewise.
6951 (set_longjmp_breakpoint): Likewise.
6952 (struct fork_catchpoint): Inherit from breakpoint.
6953 <base>: Remove.
6954 (struct solib_catchpoint): Inherit from breakpoint.
6955 <~solib_catchpoint>: New.
6956 <base>: Remove.
6957 (dtor_catch_solib): Change to ...
6958 (solib_catchpoint::~solib_catchpoint): ... this.
6959 (breakpoint_hit_catch_solib): Remove reference to base field.
6960 (add_solib_catchpoint): Likewise.
6961 (create_fork_vfork_event_catchpoint): Likewise.
6962 (struct exec_catchpoint): Inherit from breakpoint.
6963 <~exec_catchpoint>: New.
6964 <base>: Remove.
6965 (dtor_catch_exec): Change to ...
6966 (exec_catchpoint::~exec_catchpoint): ... this.
6967 (dtor_watchpoint): Change to ...
6968 (watchpoint::~watchpoint): ... this.
6969 (watch_command_1): Remove reference to base field.
6970 (catch_exec_command_1): Likewise.
6971 (base_breakpoint_dtor): Change to ...
6972 (breakpoint::~breakpoint): ... this.
6973 (base_breakpoint_ops): Remove dtor field value.
6974 (longjmp_bkpt_dtor): Change to ...
6975 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
6976 (strace_marker_create_breakpoints_sal): Remove reference to base
6977 field.
6978 (delete_breakpoint): Don't manually call breakpoint destructor.
6979 (create_tracepoint_from_upload): Remove reference to base field.
6980 (trace_pass_set_count): Likewise.
6981 (initialize_breakpoint_ops): Don't initialize
6982 momentary_breakpoint_ops, don't set dtors.
6983 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
6984 <~ada_catchpoint>: New.
6985 <base>: Remove.
6986 (create_excep_cond_exprs): Remove reference to base field.
6987 (dtor_exception): Change to ...
6988 (ada_catchpoint::~ada_catchpoint): ... this.
6989 (dtor_catch_exception): Remove.
6990 (dtor_catch_exception_unhandled): Remove.
6991 (dtor_catch_assert): Remove.
6992 (create_ada_exception_catchpoint): Remove reference to base
6993 field.
6994 (initialize_ada_catchpoint_ops): Don't set dtors.
6995 * break-catch-sig.c (struct signal_catchpoint): Inherit from
6996 breakpoint.
6997 <~signal_catchpoint>: New.
6998 <base>: Remove.
6999 (signal_catchpoint_dtor): Change to ...
7000 (signal_catchpoint::~signal_catchpoint): ... this.
7001 (create_signal_catchpoint): Remove reference to base field.
7002 (initialize_signal_catchpoint_ops): Don't set dtor.
7003 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
7004 from breakpoint.
7005 <~syscall_catchpoint>: New.
7006 <base>: Remove.
7007 (dtor_catch_syscall): Change to ...
7008 (syscall_catchpoint::~syscall_catchpoint): ... this.
7009 (create_syscall_event_catchpoint): Remove reference to base
7010 field.
7011 (initialize_syscall_catchpoint_ops): Don't set dtor.
7012 * break-catch-throw.c (struct exception_catchpoint): Inherit
7013 from breakpoint.
7014 <~exception_catchpoint>: New.
7015 <base>: Remove.
7016 (dtor_exception_catchpoint): Change to ...
7017 (exception_catchpoint::~exception_catchpoint): ... this.
7018 (handle_gnu_v3_exceptions): Remove reference to base field.
7019 (initialize_throw_catchpoint_ops): Don't set dtor.
7020 * ctf.c (ctf_get_traceframe_address): Remove reference to base
7021 field.
7022 * remote.c (remote_get_tracepoint_status): Likewise.
7023 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
7024 * tracefile.c (tracefile_fetch_registers): Likewise.
7025 * tracepoint.c (actions_command): Likewise.
7026 (validate_actionline): Likewise.
7027 (tfind_1): Likewise.
7028 (get_traceframe_location): Likewise.
7029 (find_matching_tracepoint_location): Likewise.
7030 (parse_tracepoint_status): Likewise.
7031 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
7032
3b0871f4
SM
70332017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
7034
7035 * breakpoint.c (struct longjmp_breakpoint): New struct.
7036 (is_tracepoint_type): Change return type to bool.
7037 (is_longjmp_type): New function.
7038 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
7039 (set_raw_breakpoint_without_location): Use
7040 new_breakpoint_from_type.
7041 (set_raw_breakpoint): Likewise.
7042
a5e364af
SM
70432017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
7044
7045 * breakpoint.c (new_breakpoint_from_type): New function.
7046 (create_breakpoint_sal): Use new_breakpoint_from_type and
7047 unique_ptr.
7048 (create_breakpoint): Likewise.
7049
ae3b3f34
SM
70502017-05-31 Simon Marchi <simon.marchi@ericsson.com>
7051
7052 * memattr.c (mem_info_command): Rename to ...
7053 (info_mem_command): ... this.
7054 (mem_enable_command): Rename to ...
7055 (enable_mem_command): ... this.
7056 (mem_disable_command): Rename to ...
7057 (disable_mem_command): ... this.
7058 (mem_delete_command): Rename to ...
7059 (delete_mem_command): ... this.
7060 (_initialize_mem): Adjust function names.
7061
13ace077
MM
70622017-05-31 Markus Metzger <markus.t.metzger@intel.com>
7063
7064 * btrace.c (handle_pt_insn_events): New.
7065 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
7066 STATUS. Split into this and ...
7067 (handle_pt_insn_event_flags): ... this.
7068
c56ccc05
MM
70692017-05-31 Markus Metzger <markus.t.metzger@intel.com>
7070
7071 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
7072 and struct pt_insn.resynced.
7073 * configure: Regenerated.
7074 * config.in: Regenerated.
7075
08c3f6d2
TW
70762017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7077
7078 * btrace.c (ftrace_find_call_by_number): New function.
7079 (ftrace_new_function): Store objects, not pointers.
7080 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
7081 ftrace_new_gap, ftrace_update_function,
7082 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
7083 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
7084 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
7085 btrace_ends_with_single_insn, btrace_call_get): Account for
7086 btrace_thread_info::functions now storing objects.
7087 * btrace.h (struct btrace_thread_info): Add constructor.
7088 (struct btrace_thread_info) <functions>: Make std::vector.
7089 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
7090 Initialize with default values.
7091 * record-btrace.c (record_btrace_frame_sniffer): Account for
7092 btrace_thread_info::functions now storing objects.
7093
8ffd39f2
TW
70942017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7095
7096 * btrace.c: Remove typedef bfun_s.
7097 (ftrace_new_gap): Directly add gaps to the list of gaps.
7098 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
7099 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
7100 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
7101 instead of gdb VEC.
7102
4aeb0dfc
TW
71032017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7104
7105 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
7106 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
7107 with btrace_thread_info::next_segment and
7108 btrace_thread_info::prev_segment.
7109 * btrace.h: Remove struct btrace_func_link.
7110 (struct btrace_function): Replace pair of function segment pointers
7111 with pair of indices.
7112 * python/py-record-btrace.c (btpy_call_prev_sibling,
7113 btpy_call_next_sibling): Replace references to
7114 btrace_thread_info::segment with btrace_thread_info::next_segment and
7115 btrace_thread_info::prev_segment.
7116 * record-btrace.c (record_btrace_frame_this_id): Use
7117 btrace_find_call_by_number.
7118
eb8f2b9c
TW
71192017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7120
7121 * btrace.c (ftrace_new_function, ftrace_fixup_level,
7122 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
7123 btrace_insn_next, btrace_insn_prev): Remove references to
7124 btrace_thread_info::flow.
7125 * btrace.h (struct btrace_function): Remove FLOW.
7126
42bfe59e
TW
71272017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7128
7129 * btrace.c (ftrace_find_call_by_number): New function.
7130 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
7131 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
7132 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
7133 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
7134 index.
7135 * btrace.h (struct btrace_function): Turn UP into an index.
7136 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
7137 as an index.
7138 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
7139 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
7140 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
7141
b54b03bd
TW
71422017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7143
7144 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
7145 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
7146 ftrace_update_function, ftrace_compute_global_level_offset,
7147 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
7148 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
7149 btrace_insn_end, btrace_is_empty): Remove references to
7150 btrace_thread_info::begin and btrace_thread_info::end.
7151 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
7152 (struct btrace_thread_info) <functions>: Adjust comment.
7153 * record-btrace.c (record_btrace_start_replaying): Remove reference to
7154 btrace_thread_info::begin.
7155
8286623c
TW
71562017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7157
7158 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
7159 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
7160 ftrace_update_function): Remove arguments that implicitly were always
7161 BTINFO->END.
7162 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
7163 Don't pass BTINFO->END.
7164
a0f1b963
TW
71652017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7166
7167 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
7168 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
7169 btrace_find_insn_by_number): Replace function segment pointer with
7170 index.
7171 (btrace_insn_cmp): Simplify.
7172 * btrace.h: (struct btrace_insn_iterator) Rename index to
7173 insn_index. Replace function segment pointer with index into function
7174 segment vector.
7175 * record-btrace.c (record_btrace_call_history): Replace function
7176 segment pointer use with index.
7177 (record_btrace_frame_sniffer): Retrieve function call segment through
7178 vector.
7179 (record_btrace_set_replay): Remove defunc't safety check.
7180
f158f208
TW
71812017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7182
7183 * btrace.c (btrace_ends_with_single_insn): New function.
7184 (btrace_call_get, btrace_call_number, btrace_call_begin,
7185 btrace_call_end, btrace_call_next, btrace_call_prev,
7186 btrace_find_call_by_number): Use index into call segment vector
7187 instead of pointer.
7188 (btrace_call_cmp): Simplify.
7189 * btrace.h (struct btrace_call_iterator): Replace function call segment
7190 pointer with index into vector.
7191 * record-btrace.c (record_btrace_call_history): Use index instead of
7192 pointer.
7193
521103fd
TW
71942017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7195
7196 * btrace.c (btrace_insn_begin, btrace_insn_end,
7197 btrace_find_insn_by_number): Add btinfo to iterator.
7198 * btrace.h (struct btrace_insn_iterator): Add btinfo.
7199
17b89b34
TW
72002017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7201
7202 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
7203 and save pointers directly.
7204 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
7205 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
7206 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
7207 changed signature of functions.
7208 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
7209 (btrace_fetch): Remove code that adds btrace_function pointers to
7210 vector of btrace_functions.
7211 (btrace_clear): Simplify freeing vector of btrace_functions.
7212
2b51eddc
TW
72132017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
7214
7215 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
7216 Replace VEC_* with std::vector functions.
7217 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
7218 (struct btrace_thread_info)<functions>: Change type to std::vector.
7219
db6be0d5
SM
72202017-05-30 Simon Marchi <simon.marchi@ericsson.com>
7221
7222 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
7223 "Removed targets and native configurations" up. Merge duplicate
7224 "New commands" sub-sections. Add "New options" sub-sections.
7225
b057297a
AH
72262017-05-26 Alan Hayward <alan.hayward@arm.com>
7227
7228 * defs.h (copy_integer_to_size): New declaration.
7229 * findvar.c (copy_integer_to_size): New function.
7230 (do_cint_test): New selftest function.
7231 (copy_integer_to_size_test): Likewise.
7232 (_initialize_findvar): Likewise.
7233 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
7234 (mips_fbsd_collect_reg): Use raw_collect_integer.
7235 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
7236 (mips64_fill_gregset): Use raw_collect_integer
7237 (mips64_fill_fpregset): Use raw_supply_integer.
7238 * regcache.c (regcache::raw_supply_integer): New function.
7239 (regcache::raw_collect_integer): Likewise.
7240 * regcache.h: (regcache::raw_supply_integer): New declaration.
7241 (regcache::raw_collect_integer): Likewise.
7242
b77b02a5
YQ
72432017-05-24 Yao Qi <yao.qi@linaro.org>
7244
7245 * Makefile.in (SFILES): Add gdbarch-selftests.c.
7246 (COMMON_OBS): Add gdbarch-selftests.o.
7247 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
7248 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
7249 * gdbarch-selftests.c: New file.
7250 * regcache.h (regcache) <~regcache>: Mark it virtual if
7251 GDB_SELF_TEST.
7252 <raw_write>: Likewise.
7253
e521e87e
YQ
72542017-05-24 Yao Qi <yao.qi@linaro.org>
7255
7256 * regcache.c (current_regcache): Change it to
7257 regcache::current_regcache.
7258 (regcache_observer_target_changed): Update.
7259 (regcache_thread_ptid_changed): Make it a regcache static
7260 method.
7261 (regcache_thread_ptid_changed): Update.
7262 (class regcache_access): New.
7263 (current_regcache_test): Update.
7264 (_initialize_regcache): Update.
7265 * regcache.h: Include forward_list.
7266 (regcache): Declare regcache_thread_ptid_changed and declare
7267 registers_changed_ptid as friend.
7268
d8e07dda
YQ
72692017-05-24 Yao Qi <yao.qi@linaro.org>
7270
7271 * i387-tdep.c (i387_register_to_value): Use register_size
7272 instead of TYPE_LENGTH.
7273 * m68k-tdep.c (m68k_register_to_value): Likewise.
7274
8c8f9122
YQ
72752017-05-24 Yao Qi <yao.qi@linaro.org>
7276
7277 * i387-tdep.c (i387_convert_register_p): Return false if type
7278 code isn't TYPE_CODE_FLT.
7279
68fce50f
YQ
72802017-05-24 Yao Qi <yao.qi@linaro.org>
7281
7282 * alpha-tdep.c (alpha_convert_register_p): Return true if type
7283 length is 4.
7284 (alpha_register_to_value): Remove type length check.
7285 (alpha_value_to_register): Likewise.
7286
88954b49
YQ
72872017-05-24 Yao Qi <yao.qi@linaro.org>
7288
7289 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
7290 TYPE_CODE_FLT.
7291
e3ec9b69
YQ
72922017-05-24 Yao Qi <yao.qi@linaro.org>
7293
7294 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
7295 TYPE_CODE_FLT or not.
7296
cdd238da
YQ
72972017-05-24 Yao Qi <yao.qi@linaro.org>
7298
7299 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
7300 * avr-tdep.c (avr_gdbarch_init): Likewise.
7301 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
7302 * cris-tdep.c (cris_gdbarch_init): Likewise.
7303 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
7304 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
7305 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7306 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
7307 * mep-tdep.c (mep_gdbarch_init): Likewise.
7308 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
7309 * mips-tdep.c (mips_gdbarch_init): Likewise.
7310 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
7311 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7312 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
7313 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
7314 * v850-tdep.c (v850_gdbarch_init): Likewise.
7315
7a3929c4
YQ
73162017-05-24 Yao Qi <yao.qi@linaro.org>
7317
7318 * selftest-arch.c (tests_with_arch): Call registers_changed
7319 and reinit_frame_cache.
7320 * selftest.c (run_self_tests): Likewise.
7321
f4985dba
YQ
73222017-05-24 Yao Qi <yao.qi@linaro.org>
7323
7324 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
7325 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
7326
ab20fa4a
YQ
73272017-05-24 Yao Qi <yao.qi@linaro.org>
7328
7329 * rl78-tdep.c (rl78_gdbarch_init): Don't call
7330 set_gdbarch_print_insn.
7331
f532ab94
YQ
73322017-05-24 Yao Qi <yao.qi@linaro.org>
7333
7334 * h8300-tdep.c (h8300_gdbarch_init): Don't call
7335 set_gdbarch_print_insn.
7336
39503f82
YQ
73372017-05-24 Yao Qi <yao.qi@linaro.org>
7338
7339 * alpha-tdep.c (alpha_gdbarch_init): Don't call
7340 set_gdbarch_print_insn.
7341 * arc-tdep.c (arc_gdbarch_init): Likewise.
7342 * arch-utils.c: include dis-asm.h.
7343 (default_print_insn): New function.
7344 * arch-utils.h (default_print_insn): Declare.
7345 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
7346 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
7347 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
7348 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
7349 * frv-tdep.c (frv_gdbarch_init): Likewise.
7350 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
7351 * gdbarch.sh (print_insn): Use default_print_insn.
7352 * gdbarch.c: Regenerated.
7353 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
7354 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
7355 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
7356 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
7357 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7358 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
7359 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
7360 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
7361 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
7362 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
7363 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
7364 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7365 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
7366 * mt-tdep.c (mt_gdbarch_init): Likewise.
7367 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
7368 * nios2-tdep.c (nios2_print_insn): Remove.
7369 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
7370 * rx-tdep.c (rx_gdbarch_init): Likewise.
7371 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7372 * score-tdep.c (score_print_insn): Remove.
7373 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
7374 * sh-tdep.c (sh_gdbarch_init): Likewise.
7375 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
7376 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7377 * tic6x-tdep.c (tic6x_print_insn): Remove.
7378 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
7379 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
7380 * v850-tdep.c (v850_gdbarch_init): Likewise.
7381 * vax-tdep.c (vax_gdbarch_init): Likewise.
7382 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
7383 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
7384
f7241d4f
JB
73852017-05-23 John Baldwin <jhb@FreeBSD.org>
7386
7387 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
7388 (MIPS_FP0_REGNUM): Remove.
7389 (MIPS_FSR_REGNUM): Remove.
7390 (mips_fbsd_supply_fpregs): Use mips_regnum.
7391 (mips_fbsd_supply_gregs): Likewise.
7392 (mips_fbsd_collect_fpregs): Likewise.
7393 (mips_fbsd_collect_gregs): Likewise.
7394
d489d81d
JB
73952017-05-23 John Baldwin <jhb@FreeBSD.org>
7396
7397 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
7398 (getpfpregs_supplies): New function.
7399 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
7400 getfpregs_supplies.
7401 (mips_fbsd_store_inferior_registers): Likewise.
7402
e11b3cdc
PA
74032017-05-22 Pedro Alves <palves@redhat.com>
7404
7405 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
7406 maintainer.
7407
0f068fb5
AH
74082017-05-22 Alan Hayward <alan.hayward@arm.com>
7409
7410 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
7411 (store_register): Likewise.
7412 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
7413 (get_decimal_float_return_value): Likewise.
7414 (do_ppc_sysv_return_value): Likewise.
7415 (ppc64_sysv_abi_push_integer): Likewise.
7416 (ppc64_sysv_abi_push_freg): Likewise.
7417 (ppc64_sysv_abi_return_value_base): Likewise.
7418 (ppc64_sysv_abi_return_value): Likewise.
7419 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
7420 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
7421 * rs6000-nat.c: Likewise.
7422 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
7423 (rs6000_value_to_register): Likewise.
7424 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
7425
e6cf65f2
TT
74262017-05-21 Tom Tromey <tom@tromey.com>
7427
7428 PR rust/21466:
7429 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
7430 arrays as "[T]", not "[T; ]".
7431
43cc5389
TT
74322017-05-19 Tom Tromey <tom@tromey.com>
7433
7434 PR rust/21484:
7435 * rust-lang.c (exp_descriptor_rust): New function.
7436 (rust_language_defn): Use it.
7437 * p-lang.c (pascal_language_defn): Update.
7438 * opencl-lang.c (opencl_language_defn): Update.
7439 * objc-lang.c (objc_language_defn): Update.
7440 * m2-lang.c (m2_language_defn): Update.
7441 * language.h (struct language_defn)
7442 <la_watch_location_expression>: New member.
7443 * language.c (unknown_language_defn, auto_language_defn)
7444 (local_language_defn): Update.
7445 * go-lang.c (go_language_defn): Update.
7446 * f-lang.c (f_language_defn): Update.
7447 * d-lang.c (d_language_defn): Update.
7448 * c-lang.h (c_watch_location_expression): Declare.
7449 * c-lang.c (c_watch_location_expression): New function.
7450 (c_language_defn, cplus_language_defn, asm_language_defn)
7451 (minimal_language_defn): Use it.
7452 * breakpoint.c (watch_command_1): Call
7453 la_watch_location_expression.
7454 * ada-lang.c (ada_language_defn): Update.
7455
7a6e7fcc
RO
74562017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7457
6e7e1744
RO
7458 PR tui/21482
7459 * gdb_curses.h (NOMACROS): Define.
7460 (NCURSES_NOMACROS): Define.
7461
74622017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7463
7464 PR tui/21482
7a6e7fcc
RO
7465 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
7466 arg to char *.
7467 * tui/tui-wingeneral.c (box_win): Likewise.
7468 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
7469 (tui_show_source_line): Likewise.
7470 (tui_show_exec_info_content): Likewise.
7471
1933fd8e
VM
74722017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
7473
7474 * sparc-tdep.c (sparc_structure_return_p)
7475 (sparc_arg_on_registers_p): New functions.
7476 (sparc32_store_arguments): Use them.
7477 * sparc64-tdep.c (sparc64_16_byte_align_p)
7478 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
7479 Handle TYPE_CODE_ARRAY.
7480
21873064
YQ
74812017-05-17 Yao Qi <yao.qi@linaro.org>
7482
7483 * cli/cli-decode.c (add_alias_cmd): New function.
7484 * command.h (add_alias_cmd): Declare.
7485 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
7486 instead call add_alias_cmd.
7487
2b351b19
PA
74882017-05-17 Pedro Alves <palves@redhat.com>
7489
7490 * Makefile.in (nat_extra_makefile_frag): Rename to ...
7491 (nat_makefile_frag): ... this. All references updated.
7492 * configure.ac: Likewise.
7493 * configure.nat: Likewise. Enhance comments.
7494 * configure: Regenerate.
7495
5f2ad7a3
RO
74962017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7497
7498 * procfs.c (procfs_create_inferior): Change prototype to match
7499 definition.
7500
adf3dde5
EZ
75012017-05-13 Eli Zaretskii <eliz@gnu.org>
7502
7503 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
7504 C++ compiler warning.
7505
6830f270
TT
75062017-05-12 Tom Tromey <tom@tromey.com>
7507
7508 PR rust/21483:
7509 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
7510 recurse, just call value_struct_elt directly.
7511
68f2f2e3
TT
75122017-05-12 Tom Tromey <tom@tromey.com>
7513
7514 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
7515 OP_RUST_ARRAY>: Fix.
7516
256afbc2
TT
75172017-05-12 Tom Tromey <tom@tromey.com>
7518
7519 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
7520
94bb8dfe
YQ
75212017-05-09 Yao Qi <yao.qi@linaro.org>
7522
7523 * regcache.c: Include <forward_list>.
7524 (struct regcache_list): Remove.
7525 (current_regcache): Update.
7526 (get_thread_arch_aspace_regcache): Update for std::forward_list.
7527 (regcache_thread_ptid_changed): Likewise.
7528 (registers_changed_ptid): Likewise.
7529 (current_regcache_size): Likewise.
7530
8248946c
YQ
75312017-05-09 Yao Qi <yao.qi@linaro.org>
7532
7533 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
7534 (current_regcache_size): New function.
7535 (current_regcache_test): New function.
7536 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
7537
313c5961
AH
75382017-05-08 Alan Hayward <alan.hayward@arm.com>
7539
7540 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
7541 (print_gp_register_row): Use get_frame_register_value.
7542
27bfc1d1
AH
75432017-05-08 Alan Hayward <alan.hayward@arm.com>
7544
7545 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
7546 (mips_supply_fpregset): Likewise.
7547 (mips64_supply_gregset): Likewise.
7548
146e6c5c
AH
75492017-05-08 Alan Hayward <alan.hayward@arm.com>
7550
7551 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
7552 regcache->raw_supply_zeroed.
7553
e50f25ec
SDJ
75542017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7555
7556 * configure.nat: Rearrange 'case' statements to match
7557 host before cpu.
7558
21ea5acd
SDJ
75592017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7560
7561 * Makefile.in: Remove "@host_makefile_frag@". Add variables
7562 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
7563 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
7564 "@nat_extra_makefile_frag@".
7565 (Makefile): Remove dependency on "@frags@".
7566 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
7567 (data-directory/Makefile): Likewise.
7568 * config/aarch64/linux.mh: Deleted; moved contents to
7569 "gdb/configure.nat".
7570 * config/alpha/alpha-linux.mh: Likewise.
7571 * config/alpha/nbsd.mh: Likewise.
7572 * config/arm/linux.mh: Likewise.
7573 * config/arm/nbsdelf.mh: Likewise.
7574 * config/i386/cygwin.mh: Likewise.
7575 * config/i386/cygwin64.mh: Likewise.
7576 * config/i386/darwin.mh: Likewise.
7577 * config/i386/fbsd.mh: Likewise.
7578 * config/i386/fbsd64.mh: Likewise.
7579 * config/i386/go32.mh: Likewise.
7580 * config/i386/i386gnu.mh: Likewise.
7581 * config/i386/i386sol2.mh: Likewise.
7582 * config/i386/linux.mh: Likewise.
7583 * config/i386/linux64.mh: Likewise.
7584 * config/i386/mingw.mh: Likewise.
7585 * config/i386/mingw64.mh: Likewise.
7586 * config/i386/nbsd64.mh: Likewise.
7587 * config/i386/nbsdelf.mh: Likewise.
7588 * config/i386/nto.mh: Likewise.
7589 * config/i386/obsd.mh: Likewise.
7590 * config/i386/obsd64.mh: Likewise.
7591 * config/i386/sol2-64.mh: Likewise.
7592 * config/ia64/linux.mh: Likewise.
7593 * config/m32r/linux.mh: Likewise.
7594 * config/m68k/linux.mh: Likewise.
7595 * config/m68k/nbsdelf.mh: Likewise.
7596 * config/m68k/obsd.mh: Likewise.
7597 * config/m88k/obsd.mh: Likewise.
7598 * config/mips/fbsd.mh: Likewise.
7599 * config/mips/linux.mh: Likewise.
7600 * config/mips/nbsd.mh: Likewise.
7601 * config/mips/obsd64.mh: Likewise.
7602 * config/pa/linux.mh: Likewise.
7603 * config/pa/nbsd.mh: Likewise.
7604 * config/pa/obsd.mh: Likewise.
7605 * config/powerpc/aix.mh: Likewise.
7606 * config/powerpc/fbsd.mh: Likewise.
7607 * config/powerpc/linux.mh: Likewise.
7608 * config/powerpc/nbsd.mh: Likewise.
7609 * config/powerpc/obsd.mh: Likewise.
7610 * config/powerpc/ppc64-linux.mh: Likewise.
7611 * config/powerpc/spu-linux.mh: Likewise.
7612 * config/s390/linux.mh: Likewise.
7613 * config/sh/nbsd.mh: Likewise.
7614 * config/sparc/fbsd.mh: Likewise.
7615 * config/sparc/linux.mh: Likewise.
7616 * config/sparc/linux64.mh: Likewise.
7617 * config/sparc/nbsd64.mh: Likewise.
7618 * config/sparc/nbsdelf.mh: Likewise.
7619 * config/sparc/obsd64.mh: Likewise.
7620 * config/sparc/sol2.mh: Likewise.
7621 * config/tilegx/linux.mh: Likewise.
7622 * config/vax/nbsdelf.mh: Likewise.
7623 * config/vax/obsd.mh: Likewise.
7624 * config/xtensa/linux.mh: Likewise.
7625 * config/i386/i386gnu.mn: New file, with excerpts from
7626 "config/i386/i386gnu.mh".
7627 * configure: Regenerate.
7628 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
7629 *.mh files under "gdb/config".
7630 * configure.nat: New file, with contents from the
7631 "gdb/config/*/*.mh" files.
7632
7ed1acaf
TW
76332017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
7634
7635 * btrace.c (btrace_clear): Free insn vector.
7636
e13cb306
PA
76372017-05-05 Pedro Alves <palves@redhat.com>
7638
7639 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
7640 * configure: Regenerate.
7641
5ed8105e
PA
76422017-05-04 Pedro Alves <palves@redhat.com>
7643
7644 * Makefile.in (SFILES): Add progspace-and-thread.c.
7645 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
7646 (COMMON_OBS): Add progspace-and-thread.o.
7647 * breakpoint.c: Include "progspace-and-thread.h".
7648 (update_inserted_breakpoint_locations)
7649 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
7650 Use scoped_restore_current_pspace_and_thread.
7651 (create_std_terminate_master_breakpoint): Use
7652 scoped_restore_current_program_space.
7653 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
7654 (print_breakpoint_location): Use
7655 scoped_restore_current_program_space.
7656 (bp_loc_is_permanent): Use
7657 scoped_restore_current_pspace_and_thread.
7658 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
7659 (download_tracepoint_locations): Use
7660 scoped_restore_current_pspace_and_thread.
7661 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
7662 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
7663 (enum step_over_calls_kind): Moved from inferior.h.
7664 (class scoped_restore_current_thread): New class.
7665 * gdbthread.h (make_cleanup_restore_current_thread): Delete
7666 declaration.
7667 (scoped_restore_current_thread): New class.
7668 * infcmd.c: Include "common/gdb_optional.h".
7669 (continue_1, proceed_after_attach): Use
7670 scoped_restore_current_thread.
7671 (notice_new_inferior): Use scoped_restore_current_thread.
7672 * inferior.c: Include "progspace-and-thread.h".
7673 (restore_inferior, save_current_inferior): Delete.
7674 (add_inferior_command, clone_inferior_command): Use
7675 scoped_restore_current_pspace_and_thread.
7676 * inferior.h (scoped_restore_current_inferior): New class.
7677 * infrun.c: Include "progspace-and-thread.h" and
7678 "common/gdb_optional.h".
7679 (follow_fork_inferior): Use
7680 scoped_restore_current_pspace_and_thread.
7681 (scoped_restore_exited_inferior): New class.
7682 (handle_vfork_child_exec_or_exit): Use
7683 scoped_restore_exited_inferior,
7684 scoped_restore_current_pspace_and_thread,
7685 scoped_restore_current_thread and scoped_restore.
7686 (fetch_inferior_event): Use scoped_restore_current_thread.
7687 * linespec.c (decode_line_full, decode_line_1): Use
7688 scoped_restore_current_program_space.
7689 * mi/mi-main.c: Include "progspace-and-thread.h".
7690 (exec_continue): Use scoped_restore_current_thread.
7691 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
7692 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
7693 * proc-service.c (ps_pglobal_lookup): Use
7694 scoped_restore_current_program_space.
7695 * progspace-and-thread.c: New file.
7696 * progspace-and-thread.h: New file.
7697 * progspace.c (release_program_space, clone_program_space): Use
7698 scoped_restore_current_program_space.
7699 (restore_program_space, save_current_program_space)
7700 (save_current_space_and_thread): Delete.
7701 (switch_to_program_space_and_thread): Moved to
7702 progspace-and-thread.c.
7703 * progspace.h (save_current_program_space)
7704 (save_current_space_and_thread): Delete declarations.
7705 (scoped_restore_current_program_space): New class.
7706 * remote.c (remote_btrace_maybe_reopen): Use
7707 scoped_restore_current_thread.
7708 * symtab.c: Include "progspace-and-thread.h".
7709 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
7710 * thread.c (print_thread_info_1): Use
7711 scoped_restore_current_thread.
7712 (struct current_thread_cleanup): Delete.
7713 (do_restore_current_thread_cleanup)
7714 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
7715 (scoped_restore_current_thread::~scoped_restore_current_thread):
7716 ... this new dtor.
7717 (make_cleanup_restore_current_thread): Rename/convert to ...
7718 (scoped_restore_current_thread::scoped_restore_current_thread):
7719 ... this new ctor.
7720 (thread_apply_all_command): Use scoped_restore_current_thread.
7721 (thread_apply_command): Use scoped_restore_current_thread.
7722 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
7723 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
7724
f6223dbb
PA
77252017-05-04 Pedro Alves <palves@redhat.com>
7726
7727 * thread.c (make_cleanup_restore_current_thread): Move
7728 find_thread_ptid call before the is_stopped call. Assert that the
7729 thread is found. Replace is_stopped call by checking the thread's
7730 state directly. Remove unnecessary NULL-thread check.
7731
3c3ae77e
PA
77322017-05-04 Pedro Alves <palves@redhat.com>
7733
7734 * corelow.c (thread_section_name): New class.
7735 (get_core_register_section, get_core_siginfo): Use it.
7736
45eba0ab
AA
77372017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
7738
7739 * corelow.c (sniff_core_bfd): Remove extra semicolon.
7740 (get_core_register_section): Remove xfree of NULL pointer.
7741
f81fdd35
AH
77422017-05-03 Alan Hayward <alan.hayward@arm.com>
7743
7744 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
7745 * regcache.c (regcache::raw_supply_zeroed): New function.
7746 * regcache.h (regcache::raw_supply_zeroed): New declaration.
7747
35837774
SM
77482017-05-03 Simon Marchi <simon.marchi@ericsson.com>
7749
7750 * gdbarch.sh: Remove commented out definition of
7751 TARGET_CHAR_BIT.
7752 * gdbarch.h: Re-generate.
7753
c94fee56
SDJ
77542017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7755
7756 * configure: Regenerate.
7757
d17f7b36
SM
77582017-05-02 Simon Marchi <simon.marchi@ericsson.com>
7759
7760 * solib-target.c (solib_target_relocate_section_addresses):
7761 Remove num_section_bases, num_bases, segment_bases variables.
7762
b560ebd6
SM
77632017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7764
7765 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
7766
f2f46dfc
SM
77672017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7768
7769 * solib-target.c: Include <vector>
7770 (struct lm_info_target) <~lm_info_target>: Remove.
7771 <segment_bases, section_bases>: Change type to
7772 std::vector<CORE_ADDR>.
7773 (library_list_start_segment, library_list_start_section,
7774 library_list_end_library,
7775 solib_target_relocate_section_addresses): Adjust.
7776
a0ff9e1a
SM
77772017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7778
7779 * gdbarch.sh (software_single_step): Change return type to
7780 std::vector<CORE_ADDR>.
7781 * gdbarch.c, gdbarch.h: Re-generate.
7782 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
7783 Adjust.
7784 (arm_deal_with_atomic_sequence_raw): Adjust.
7785 (thumb_get_next_pcs_raw): Adjust.
7786 (arm_get_next_pcs_raw): Adjust.
7787 (arm_get_next_pcs): Adjust.
7788 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
7789 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
7790 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
7791 (alpha_software_single_step): Adjust.
7792 * alpha-tdep.h (alpha_software_single_step): Adjust.
7793 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
7794 * arm-tdep.c (arm_software_single_step): Adjust.
7795 (arm_breakpoint_kind_from_current_state): Adjust.
7796 * arm-tdep.h (arm_software_single_step): Adjust.
7797 * breakpoint.c (insert_single_step_breakpoint): Adjust.
7798 * cris-tdep.c (cris_software_single_step): Adjust.
7799 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
7800 (micromips_deal_with_atomic_sequence): Adjust.
7801 (deal_with_atomic_sequence): Adjust.
7802 (mips_software_single_step): Adjust.
7803 * mips-tdep.h (mips_software_single_step): Adjust.
7804 * moxie-tdep.c (moxie_software_single_step): Adjust.
7805 * nios2-tdep.c (nios2_software_single_step): Adjust.
7806 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
7807 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
7808 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
7809 * s390-linux-tdep.c (s390_software_single_step): Adjust.
7810 * sparc-tdep.c (sparc_software_single_step): Adjust.
7811 * spu-tdep.c (spu_software_single_step): Adjust.
7812 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
7813
ea480a30
SM
78142017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7815
7816 * gdbarch.sh: Use semi-colon as field separator instead of colon.
7817 * gdbarch.h: Re-generate.
7818
d050f7d7
TW
78192017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7820
7821 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
7822 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
7823 * python/py-instruction.c, python/py-instruction.h: New file.
7824 * python/py-record.c: Add py-instruction.h include.
7825 (gdbpy_initialize_record): Make gdb.Instruction a super class of
7826 gdb.RecordInstruction.
7827 * python/python-internal.h: Add gdbpy_initialize_instruction
7828 declaration.
7829 * python/python.c (do_start_initialization): Add
7830 gdbpy_initialize_instruction.
7831
14f819c8
TW
78322017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7833
7834 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
7835 Remove.
7836 (btrace_func_from_recpy_func): New function.
7837 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
7838 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
7839 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
7840 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
7841 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
7842 Also, use new helper functions.
7843 (btpy_list_item): Use new helper functions.
7844 (recpy_bt_function_call_history): Use new type name.
7845 (btpy_call_getset): Remove.
7846 (gdbpy_initialize_btrace): Remove code to initialize
7847 gdb.BtraceFunctionCall.
7848 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
7849 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
7850 recpy_bt_func_prev, recpy_bt_func_next): New export.
7851 * python/py-record.c (recpy_func_type): New static object.
7852 (recpy_func_new, recpy_func_level, recpy_func_symbol,
7853 recpy_func_instructions, recpy_func_up, recpy_func_prev,
7854 recpy_func_next): New function.
7855 (recpy_element_hash, recpy_element_richcompare): Updated comment.
7856 (recpy_func_getset): New static object.
7857 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
7858 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
7859
0ed5da75
TW
78602017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7861
7862 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
7863 (btpy_object, btpy_insn_type, btpy_new): Remove.
7864 (btpy_list_object): Use gdb.RecordInstruction type instead of
7865 gdb.BtraceInstruction type.
7866 (btrace_insn_from_recpy_insn): New function.
7867 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
7868 btpy_new.
7869 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
7870 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
7871 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
7872 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
7873 instead of btpy_object.
7874 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
7875 btpy_insn_data, btpy_insn_decode): Rename to ...
7876 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
7877 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
7878 recpy_bt_insn_decode): This. Also, use new helper functions.
7879 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
7880 recpy_insn_type.
7881 (btpy_insn_getset): Remove.
7882 (gdbpy_initialize_btrace): Remove code to initialize
7883 gdb.BtraceInstruction. Use recpy_element_object.
7884 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
7885 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
7886 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
7887 * python/py-record.c (recpy_insn_type): New static object.
7888 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
7889 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
7890 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
7891 New function.
7892 (recpy_insn_getset): New static object.
7893 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
7894 * python/py-record.h (recpy_element_object): New typedef.
7895 (recpy_insn_type, recpy_insn_new): New export.
7896
913aeadd
TW
78972017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7898
7899 * py-record-btrace.c (btpy_insn_new): Removed.
7900 (btpy_insn_or_gap_new): New function.
7901 (btpy_insn_error): Removed.
7902 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
7903 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
7904 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
7905 btpy_insn_or_gap_new instead of btpy_insn_new.
7906 (btpy_insn_getset): Remove btpy_insn_error.
7907 * py-record.c (recpy_gap_type): New static object.
7908 (recpy_gap_object): New typedef.
7909 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
7910 recpy_gap_reason_string): New function.
7911 (recpy_gap_getset): New static object.
7912 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
7913 * py-record.h (recpy_gap_new): New export.
7914
a3be24ad
TW
79152017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7916
7917 * python/py-record.c (recpy_ptid): Remove.
7918 (recpy_record_getset): Remove recpy_ptid.
7919
ae20e79a
TW
79202017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7921
7922 * btrace.c (btrace_fetch): Set inferior_ptid.
7923 * python/py-record-btrace.c: Add "py-record.h" include.
7924 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
7925 recpy_bt_end, recpy_bt_instruction_history,
7926 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
7927 in gdb.Record object instead of current ptid.
7928 * python/py-record.c: Include new "py-record.h" file.
7929 (recpy_record_object): Moved to py-record.h.
7930 * python/py-record.h: New file.
7931
8d0050ea
TW
79322017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
7933
7934 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
7935 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
7936 indentation.
7937
3f380b50
JB
79382017-05-01 Joel Brobecker <brobecker@adacore.com>
7939
7940 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
7941 the past maintainers section.
7942
07495424
YQ
79432017-04-28 Yao Qi <yao.qi@linaro.org>
7944
7945 * infcmd.c (get_return_value): Use regcache ctor, and remove
7946 cleanup.
7947
deb1fa3e
YQ
79482017-04-28 Yao Qi <yao.qi@linaro.org>
7949 Pedro Alves <palves@redhat.com>
7950
7951 * regcache.c (regcache::regcache): New tag dispatch ctor.
7952 (do_cooked_read): Moved above.
7953 (regcache_dup): Use the tag dispatch ctor..
7954 * regcache.h (regcache): Declare ctor, delete copy ctor and
7955 assignment operator, remove friend regcache_dup.
7956
b421c83c
YQ
79572017-04-28 Yao Qi <yao.qi@linaro.org>
7958
7959 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
7960 call method save instead of regcache_cpy.
7961 * regcache.h (struct regcache): Make regcache_dup a friend.
7962
ef79d9a3
YQ
79632017-04-28 Yao Qi <yao.qi@linaro.org>
7964
7965 * regcache.c (struct regcache): Move to regcache.h
7966 (regcache::arch): New method.
7967 (regcache_get_ptid): Update.
7968 (get_regcache_arch): Call arch method.
7969 (get_regcache_aspace): Call method aspace.
7970 (register_buffer): Change it to method.
7971 (regcache_save): Change it to regcache::save.
7972 (regcache_restore): Likewise.
7973 (regcache_cpy_no_passthrough): Remove the declaration.
7974 (regcache_cpy): Call methods restore and cpy_no_passthrough.
7975 (regcache_cpy_no_passthrough): Change it to method
7976 cpy_no_passthrough.
7977 (regcache_register_status): Change it to method
7978 get_register_status.
7979 (regcache_invalidate): Change it to method invalidate.
7980 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
7981 (regcache_raw_update): Change it to method raw_update.
7982 (regcache_raw_read): Likewise.
7983 (regcache_raw_read_signed): Likewise.
7984 (regcache_raw_read_unsigned): Likewise.
7985 (regcache_raw_write_signed): Likewise.
7986 (regcache_raw_write_unsigned): Likewise.
7987 (regcache_cooked_read): Likewise.
7988 (regcache_cooked_read_value): Likewise.
7989 (regcache_cooked_read_signed): Likewise.
7990 (regcache_cooked_read_unsigned): Likewise.
7991 (regcache_cooked_write_signed): Likewise.
7992 (regcache_cooked_write_unsigned): Likewise.
7993 (regcache_raw_set_cached_value): Likewise.
7994 (regcache_raw_write): Likewise.
7995 (regcache_cooked_write): Likewise.
7996 (regcache_xfer_part): Likewise.
7997 (regcache_raw_read_part): Likewise.
7998 (regcache_raw_write_part): Likewise.
7999 (regcache_cooked_read_part): Likewise.
8000 (regcache_cooked_write_part): Likewise.
8001 (regcache_raw_supply): Likewise.
8002 (regcache_raw_collect): Likewise.
8003 (regcache_transfer_regset): Likewise.
8004 (regcache_supply_regset): Likewise.
8005 (regcache_collect_regset): Likewise.
8006 (regcache_debug_print_register): Likewise.
8007 (enum regcache_dump_what): Move it to regcache.h.
8008 (regcache_dump): Change it to method dump.
8009 * regcache.h (enum regcache_dump_what): New.
8010 (class regcache): New.
8011 * target.c (target_fetch_registers): Call method
8012 debug_print_register.
8013 (target_store_registers): Likewise.
8014
f8fdb78e
SM
80152017-04-28 Simon Marchi <simon.marchi@ericsson.com>
8016
8017 * windows-nat.c (struct lm_info_windows): Initialize field.
8018 (windows_make_so): Allocate lm_info_windows with new.
8019 (windows_free_so): Free lm_info_windows with delete.
8020
9ccbfd7b
SM
80212017-04-28 Simon Marchi <simon.marchi@ericsson.com>
8022
8023 * solib-darwin.c (struct lm_info_darwin): Initialize field.
8024 (darwin_current_sos): Allocate lm_info_darwin with new, remove
8025 cleanup.
8026 (darwin_free_so): Free lm_info_darwin with delete.
8027
76e75227
SM
80282017-04-28 Simon Marchi <simon.marchi@ericsson.com>
8029
8030 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
8031 <l_addr_p>: Change type to bool.
8032 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
8033 (svr4_free_so): Free lm_info_svr4 with delete.
8034 (svr4_copy_library_list): Replace memcpy with call to copy
8035 constructor.
8036 (library_list_start_library, svr4_default_sos): Allocate
8037 lm_info_svr4 with new.
8038
51046d9e
SM
80392017-04-28 Simon Marchi <simon.marchi@ericsson.com>
8040
8041 * solib-target.c (struct lm_info_target): Add destructor,
8042 initialize fields.
8043 <name>: Change type to std::string.
8044 (library_list_start_library): Allocate lm_info_target with new.
8045 (solib_target_free_library_list): Free lm_info_target with
8046 delete.
8047 (solib_target_current_sos): Adapt to std::string.
8048 (solib_target_free_so): Free lm_info_target with delete.
8049
4023ae76
SM
80502017-04-28 Simon Marchi <simon.marchi@ericsson.com>
8051
8052 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
8053 fields.
8054 (frv_current_sos): Allocate lm_info_frv with new.
8055 (frv_relocate_main_executable): Free lm_info_frv with delete,
8056 allocate with new.
8057 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
8058
af43057b
SM
80592017-04-28 Simon Marchi <simon.marchi@ericsson.com>
8060
8061 * solib-frv.c (struct lm_info_frv): Fix indentation.
8062
b0911207
SM
80632017-04-28 Simon Marchi <simon.marchi@ericsson.com>
8064
8065 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
8066 map field.
8067 (dsbt_current_sos): Allocate lm_info_dsbt with new.
8068 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
8069 and allocate with new.
8070 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
8071
6c401f72
SM
80722017-04-28 Simon Marchi <simon.marchi@ericsson.com>
8073
8074 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
8075 <filename, member_name>: Change type to std::string.
8076 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
8077 (library_list_start_library): Allocate lm_info_aix with new.
8078 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
8079 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
8080 with copy constructor.
8081
d0e449a1
SM
80822017-04-28 Simon Marchi <simon.marchi@ericsson.com>
8083
8084 * solist.h (struct lm_info): Remove.
8085 (struct lm_info_base): New class.
8086 (struct so_list) <lm_info>: Change type to lm_info_base *.
8087 * nto-tdep.c (struct lm_info): Remove.
8088 (lm_addr): Adjust.
8089 * solib-aix.c (struct lm_info): Rename to ...
8090 (struct lm_info_aix): ... this. Extend lm_info_base.
8091 (lm_info_p): Rename to ...
8092 (lm_info_aix_p): ... this, and adjust.
8093 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
8094 solib_aix_parse_libraries, library_list_start_library,
8095 solib_aix_free_library_list, solib_aix_parse_libraries,
8096 solib_aix_get_library_list,
8097 solib_aix_relocate_section_addresses, solib_aix_free_so,
8098 solib_aix_get_section_offsets,
8099 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
8100 Adjust.
8101 (struct solib_aix_inferior_data) <library_list>: Adjust.
8102 * solib-darwin.c (struct lm_info): Rename to ...
8103 (struct lm_info_darwin): ... this. Extend lm_info_base.
8104 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
8105 * solib-dsbt.c (struct lm_info): Rename to ...
8106 (struct lm_info_dsbt): ... this. Extend lm_info_base.
8107 (struct dsbt_info) <main_executable_lm_info): Adjust.
8108 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
8109 dsbt_relocate_section_addresses): Adjust.
8110 * solib-frv.c (struct lm_info): Rename to ...
8111 (struct lm_info_frv): ... this. Extend lm_info_base.
8112 (main_executable_lm_info): Adjust.
8113 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
8114 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
8115 find_canonical_descriptor_in_load_object,
8116 frv_fdpic_find_canonical_descriptor): Adjust.
8117 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
8118 to lm_info_svr4.
8119 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
8120 svr4_clear_so, svr4_copy_library_list,
8121 library_list_start_library, svr4_default_sos, svr4_read_so_list,
8122 svr4_current_sos, svr4_fetch_objfile_link_map,
8123 solist_update_incremental): Adjust.
8124 * solib-svr4.h (struct lm_info_svr4): Move here from
8125 solib-svr4.c.
8126 * solib-target.c (struct lm_info): Rename to ...
8127 (struct lm_info_target): ... this. Extend lm_info_base.
8128 (lm_info_p): Rename to ...
8129 (lm_info_target_p): ... this.
8130 (solib_target_parse_libraries, library_list_start_segment,
8131 library_list_start_section, library_list_start_library,
8132 library_list_end_library, solib_target_free_library_list,
8133 solib_target_current_sos, solib_target_free_so,
8134 solib_target_relocate_section_addresses): Adjust.
8135 * windows-nat.c (struct lm_info): Rename to ...
8136 (struct lm_info_windows): ... this. Extend lm_info_base.
8137 (windows_make_so, handle_load_dll, handle_unload_dll,
8138 windows_xfer_shared_libraries): Adjust.
8139
434a4023
SM
81402017-04-28 Simon Marchi <simon.marchi@ericsson.com>
8141
8142 * solib-darwin.c (struct darwin_so_list): Remove.
8143 (darwin_current_sos): Allocate an so_list object instead of a
8144 darwin_so_list, separately allocate an lm_info object.
8145 (darwin_free_so): Free lm_info.
8146
428544e8
JB
81472017-04-28 John Baldwin <jhb@FreeBSD.org>
8148
8149 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
8150 with fprintf_filtered.
8151
4621115f
YQ
81522017-04-28 Yao Qi <yao.qi@linaro.org>
8153
8154 * regcache.c (regcache::regcache): New function.
8155 (regcache::~regcache): New function.
8156 (regcache_xmalloc_1): Remove.
8157 (regcache_xmalloc): Call new regcache.
8158 (regcache_xfree): Call delete regcache.
8159 (get_thread_arch_aspace_regcache): Call new regcache.
8160
339053c2
YQ
81612017-04-28 Yao Qi <yao.qi@linaro.org>
8162
8163 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
8164 lwp instead of ptid_get_lwp.
8165
7974a605
YQ
81662017-04-28 Yao Qi <yao.qi@linaro.org>
8167
8168 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
8169 lwp_info instead of getting from inferior_ptid.
8170
e15c3eb4
KS
81712017-04-27 Keith Seitz <keiths@redhat.com>
8172
8173 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
8174 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
8175 (CV_CONVERSION_BADNESS): Define.
8176 (rank_one_type): Remove overly restrictive rvalue reference
8177 rank checks.
8178 Add cv-qualifier checks and subranks for type equality.
8179 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
8180 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
8181 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
8182
72bc1d24
SM
81832017-04-27 Simon Marchi <simon.marchi@ericsson.com>
8184
8185 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
8186 count when creating the object.
8187
55bcecda
UW
81882017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
8189 Ulrich Weigand <uweigand@de.ibm.com>
8190
8191 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
8192 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
8193 is used in AIX.
8194 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
8195 (process_xcoff_symbol): Likewise.
8196 (scan_xcoff_symtab): Likewise.
8197
5c99fcf8
AH
81982017-04-26 Alan Hayward <alan.hayward@arm.com>
8199
8200 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
8201 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
8202 (ia64_access_reg): Use get_frame_register_unsigned.
8203 (ia64_access_rse_reg): Likewise.
8204 (ia64_libunwind_frame_prev_register): Likewise.
8205
b41c5a85
JW
82062017-04-26 Jiong Wang <jiong.wang@arm.com>
8207
8208 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
8209 * gdbarch.c: Regenerated.
8210 * gdbarch.h: Regenerated.
8211 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
8212 visibility external.
8213 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
8214 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
8215 (enum cfa_how_kind): Move to ...
8216 (struct dwarf2_frame_state_reg_info): Likewise.
8217 (struct dwarf2_frame_state): Likewise.
8218 * dwarf2-frame.h: ... here.
8219 (dwarf2_frame_state_alloc_regs): New declaration.
8220 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
8221 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
8222
c185f580
AH
82232017-04-26 Alan Hayward <alan.hayward@arm.com>
8224
8225 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
8226 regcache_raw_read_unsigned.
8227 (xtensa_pseudo_register_write): Likewise.
8228
19c45594
AH
82292017-04-26 Alan Hayward <alan.hayward@arm.com>
8230
8231 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
8232 (nds32_pseudo_register_write): Likewise.
8233
4658f12e
YQ
82342017-04-25 Yao Qi <yao.qi@linaro.org>
8235
8236 * regcache.c (struct regcache) <readonly_p>: Change its type
8237 to bool.
8238 (regcache_xmalloc_1): Update parameter type and callers update.
8239
d581dda8
YQ
82402017-04-25 Yao Qi <yao.qi@linaro.org>
8241
8242 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
8243 set_gdbarch_wchar_bit.
8244 * arm-tdep.c (arm_gdbarch_init): Likewise.
8245
debed3db
PA
82462017-04-25 Pedro Alves <palves@redhat.com>
8247
8248 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
8249 (BothAreRelocatable, memcopy, memmove): Don't define.
8250 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
8251 macros.
8252
b0b92aeb
PA
82532017-04-25 Pedro Alves <palves@redhat.com>
8254
8255 * common/common-defs.h: Include "common/poison.h".
8256 * common/function-view.h: (Not, Or, Requires): Move to traits.h
8257 and adjust.
8258 * common/poison.h: New file.
8259 * common/traits.h: Include <type_traits>.
8260 (Not, Or, Requires): New, moved from common/function-view.h.
8261
16c4d54a
PA
82622017-04-25 Pedro Alves <palves@redhat.com>
8263
8264 * breakpoint.h (struct breakpoint): In-class initialize all
8265 fields. Make boolean fields "bool".
8266 * breakpoint.c (init_raw_breakpoint_without_location): Remove
8267 memset call and initializations no longer necessary.
8268
b5c36682
PA
82692017-04-25 Pedro Alves <palves@redhat.com>
8270
8271 * btrace.c (pt_btrace_insn_flags): Change parameter type to
8272 reference.
8273 (pt_btrace_insn): New function.
8274 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
8275
5625a286
PA
82762017-04-25 Pedro Alves <palves@redhat.com>
8277
8278 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
8279 "base" field and inherit from "bp_location" instead. Add
8280 non-default ctor.
8281 (allocate_location_exception): Use new non-default ctor.
8282 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
8283 (init_bp_location): Convert to ...
8284 (bp_location::bp_location): ... this new ctor, and remove memset
8285 call.
8286 (base_breakpoint_allocate_location): Use the new non-default ctor.
8287 * breakpoint.h (bp_location): Now a class. Declare default and
8288 non-default ctors. In-class initialize all members.
8289 (init_bp_location): Remove declaration.
8290
23bcc18f
PA
82912017-04-25 Pedro Alves <palves@redhat.com>
8292
8293 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
8294 assignment operator.
8295
e1ba3053
YQ
82962017-04-24 Yao Qi <yao.qi@linaro.org>
8297
8298 * doublest.c (convert_doublest_to_floatformat): Call
8299 floatformat_totalsize_bytes.
8300
10f489e5
TT
83012017-04-22 Tom Tromey <tom@tromey.com>
8302
8303 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
8304 ui_out_emit_list.
8305 * stack.c (print_frame): Use ui_out_emit_list.
8306 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
8307 ui_out_emit_list.
8308 * mi/mi-main.c (print_one_inferior)
8309 (mi_cmd_data_list_register_names)
8310 (mi_cmd_data_list_register_values, mi_cmd_list_features)
8311 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
8312 ui_out_emit_list.
8313 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
8314 (mi_output_solib_attribs): Use ui_out_emit_list,
8315 ui_out_emit_tuple.
8316 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
8317 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
8318 (mi_cmd_stack_list_args, list_args_or_locals): Use
8319 ui_out_emit_list.
8320 * disasm.c (do_assembly_only): Use ui_out_emit_list.
8321 * breakpoint.c (print_solib_event, output_thread_groups): Use
8322 ui_out_emit_list.
8323
0092b74d
TT
83242017-04-22 Tom Tromey <tom@tromey.com>
8325
8326 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
8327 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
8328 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
8329
a14a62dd
TT
83302017-04-22 Tom Tromey <tom@tromey.com>
8331
8332 * tracepoint.c (tvariables_info_1)
8333 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
8334
46b9c129
TT
83352017-04-22 Tom Tromey <tom@tromey.com>
8336
8337 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
8338 annotate_arg_emitter.
8339 * breakpoint.c (print_mention_watchpoint)
8340 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
8341 * annotate.h (struct annotate_arg_emitter): New.
8342
2e783024
TT
83432017-04-22 Tom Tromey <tom@tromey.com>
8344
8345 * record-btrace.c (record_btrace_insn_history)
8346 (record_btrace_insn_history_range, record_btrace_call_history)
8347 (record_btrace_call_history_range): Use ui_out_emit_tuple.
8348 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
8349 ui_out_emit_tuple.
8350 * stack.c (print_frame_info): Use ui_out_emit_tuple.
8351 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
8352 * skip.c (skip_info): Use ui_out_emit_tuple.
8353 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
8354 * progspace.c (print_program_space): Use ui_out_emit_tuple.
8355 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
8356 * osdata.c (info_osdata): Use ui_out_emit_tuple.
8357 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
8358 ui_out_emit_tuple.
8359 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
8360 (output_register, mi_cmd_data_read_memory)
8361 (mi_cmd_data_read_memory_bytes, mi_load_progress)
8362 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
8363 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
8364 Use ui_out_emit_tuple.
8365 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
8366 ui_out_emit_tuple.
8367 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
8368 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
8369 * linux-thread-db.c (info_auto_load_libthread_db): Use
8370 ui_out_emit_tuple.
8371 * inferior.c (print_inferior): Use ui_out_emit_tuple.
8372 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
8373 * disasm.c (do_mixed_source_and_assembly_deprecated)
8374 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
8375 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
8376 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
8377 * breakpoint.c (print_one_breakpoint_location)
8378 (print_one_breakpoint): Use ui_out_emit_tuple.
8379 * auto-load.c (print_script, info_auto_load_cmd): Use
8380 ui_out_emit_tuple.
8381 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
8382
9be21bb4
SM
83832017-04-21 Simon Marchi <simon.marchi@ericsson.com>
8384
8385 * thread.c (print_thread_info_1): Remove dead code.
8386
0d4c07af
JK
83872017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8388
8389 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
8390 GDB_SELF_TEST.
8391 * arm-tdep.c (selftests::arm_record_test): Likewise.
8392
4daf993d
YQ
83932017-04-21 Yao Qi <yao.qi@linaro.org>
8394
8395 * regcache.c (regcache_restore): Remove argument 2. Replace
8396 argument 3 with regcache. Get register status from
8397 src->register_status and get register contents from
8398 register_buffer (src, regnum).
8399 (regcache_cpy): Update.
8400
a6c21d4a
PA
84012017-04-19 Pedro Alves <palves@redhat.com>
8402
8403 * gdbthread.h (thread): Add missing closing parenthesis in
8404 comment.
8405
3a3fd0fd
PA
84062017-04-19 Pedro Alves <palves@redhat.com>
8407
8408 * common/refcounted-object.h: New file.
8409 * gdbthread.h: Include "common/refcounted-object.h".
8410 (thread_info): Inherit from refcounted_object and add comments.
8411 (thread_info::incref, thread_info::decref)
8412 (thread_info::m_refcount): Delete.
8413 (thread_info::deletable): Use the refcounted_object::refcount()
8414 method.
8415 * inferior.c (current_inferior_): Add comment.
8416 (set_current_inferior): Increment/decrement refcounts.
8417 (prune_inferiors, remove_inferior_command): Skip inferiors marked
8418 not-deletable instead of comparing with the current inferior.
8419 (initialize_inferiors): Increment the initial inferior's refcount.
8420 * inferior.h (struct inferior): Forward declare.
8421 Include "common/refcounted-object.h".
8422 (current_inferior, set_current_inferior): Move declaration to
8423 before struct inferior's definition, and fix comment.
8424 (inferior): Inherit from refcounted_object. Add comments.
8425 * thread.c (switch_to_thread_no_regs): Reference the thread's
8426 inferior pointer directly instead of doing a ptid lookup.
8427 (switch_to_no_thread): New function.
8428 (switch_to_thread(thread_info *)): New function, factored out
8429 from ...
8430 (switch_to_thread(ptid_t)): ... this.
8431 (restore_current_thread): Delete.
8432 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
8433 fields, and add 'inf' field.
8434 (do_restore_current_thread_cleanup): Check whether old->inf is
8435 alive instead of looking up an inferior by ptid. Use
8436 switch_to_thread and switch_to_no_thread.
8437 (restore_current_thread_cleanup_dtor): Use old->inf directly
8438 instead of lookup up an inferior by id. Decref the inferior.
8439 Don't restore 'removable'.
8440 (make_cleanup_restore_current_thread): Same the inferior pointer
8441 in old, instead of the inferior number. Incref the inferior.
8442 Don't save/clear 'removable'.
8443
9bcb1f16
PA
84442017-04-19 Pedro Alves <palves@redhat.com>
8445
8446 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8447 unittests/scoped_restore-selftests.c.
8448 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
8449 * common/scoped_restore.h (scoped_restore_base): Make "class".
8450 (scoped_restore_base::release): New public method.
8451 (scoped_restore_base::scoped_restore_base): New protected ctor.
8452 (scoped_restore_base::m_saved_var): New protected field.
8453 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
8454 scoped_restore_base base class instead of m_saved_var directly.
8455 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
8456 (scoped_restore_tmpl::scoped_restore_tmpl(const
8457 scoped_restore_tmpl<T>&)): Likewise.
8458 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
8459 method.
8460 (scoped_restore_tmpl::saved_var): New method.
8461 (scoped_restore_tmpl::m_saved_var): Delete.
8462 * inferior.h (inferior::detaching): Now a bool.
8463 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
8464 cleanup.
8465 * unittests/scoped_restore-selftests.c: New file.
8466
26fcd539
PA
84672017-04-19 Pedro Alves <palves@redhat.com>
8468
8469 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
8470 Re-sort in alphabetic order.
8471
fdd243b0
PA
84722017-04-18 Pedro Alves <palves@redhat.com>
8473
8474 * xml-support.c (obstack_xml_printf): Delete.
8475 * xml-support.h (obstack_xml_printf): Delete.
8476
4895cde2
PA
84772017-04-18 Pedro Alves <palves@redhat.com>
8478
8479 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
8480 vdebug, verror, body_text, start_element, end_element, name,
8481 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
8482 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
8483 is_xinclude>: Make private and add m_ prefix.
8484 (gdb_xml_parser::body_text): New method, based on ...
8485 (gdb_xml_body_text): ... this. Adjust.
8486 (gdb_xml_parser::vdebug): New method, based on ...
8487 (gdb_xml_debug): ... this. Adjust.
8488 (gdb_xml_parser::verror): New method, based on ...
8489 (gdb_xml_error): ... this. Adjust.
8490 (gdb_xml_parser::start_element): New method, based on ...
8491 (gdb_xml_start_element): ... this. Adjust.
8492 (gdb_xml_start_element_wrapper): Defer to
8493 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
8494 (gdb_xml_parser::end_element): New method, based on ...
8495 (gdb_xml_end_element_wrapper): ... this. Adjust.
8496 (gdb_xml_parser::~gdb_xml_parser): Adjust.
8497 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
8498 (gdb_xml_parser::use_dtd): New method, based on ...
8499 (gdb_xml_use_dtd): ... this. Adjust.
8500 (gdb_xml_parser::parse): New method, based on ...
8501 (gdb_xml_parse): ... this. Adjust.
8502 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
8503 (xinclude_start_include): Adjust to call the parser's name method.
8504 (xml_xinclude_default, xml_xinclude_start_doctype)
8505 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
8506 method.
8507 (xml_process_xincludes): Adjust to call parser methods.
8508 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
8509 declarations.
8510
bd8a901f
PA
85112017-04-18 Pedro Alves <palves@redhat.com>
8512
8513 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
8514 gdb::optional<std::string>.
8515 * xml-support.c: Include <string>.
8516 (scope_level::scope_level(scope_level &&))
8517 (scope_level::~scope_level): Delete.
8518 (scope_level::body): Now a std::string.
8519 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
8520 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
8521 parameter.
8522 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
8523 (xinclude_parsing_data::output): Now a std::string reference.
8524 (xinclude_start_include): Adjust.
8525 (xml_xinclude_default): Adjust.
8526 (xml_process_xincludes): Add 'output' parameter, and return bool.
8527 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
8528 and return bool.
8529 * xml-tdesc.c: Include <unordered_map> and <string>.
8530 (tdesc_xml_cache): Delete.
8531 (tdesc_xml_cache_s): Delete.
8532 (xml_cache): Now an std::unordered_map.
8533 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
8534 (target_fetch_description_xml): Change return type to
8535 gdb::optional<std::string>, and adjust.
8536 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
8537 (target_fetch_description_xml): Change return type to
8538 gdb::optional<std::string>.
8539
d35d1958
PA
85402017-04-18 Pedro Alves <palves@redhat.com>
8541
8542 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
8543 unittests/optional-selftests.c.
8544 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
8545 * unittests/optional-selftests.c: New file.
8546 * unittests/optional/assignment/1.cc: New file.
8547 * unittests/optional/assignment/2.cc: New file.
8548 * unittests/optional/assignment/3.cc: New file.
8549 * unittests/optional/assignment/4.cc: New file.
8550 * unittests/optional/assignment/5.cc: New file.
8551 * unittests/optional/assignment/6.cc: New file.
8552 * unittests/optional/assignment/7.cc: New file.
8553 * unittests/optional/cons/copy.cc: New file.
8554 * unittests/optional/cons/default.cc: New file.
8555 * unittests/optional/cons/move.cc: New file.
8556 * unittests/optional/cons/value.cc: New file.
8557 * unittests/optional/in_place.cc: New file.
8558 * unittests/optional/observers/1.cc: New file.
8559 * unittests/optional/observers/2.cc: New file.
8560
22796e97
PA
85612017-04-18 Pedro Alves <palves@redhat.com>
8562
8563 * common/gdb_optional.h: Include common/traits.h.
8564 (in_place_t): New type.
8565 (in_place): New constexpr variable.
8566 (optional::optional): Remove member initialization of
8567 m_instantiated.
8568 (optional::optional(in_place_t...)): New constructor.
8569 (optional::~optional): Use reset.
8570 (optional::optional(const optional&)): New.
8571 (optional::optional(const optional&&)): New.
8572 (optional::optional(T &)): New.
8573 (optional::optional(T &&)): New.
8574 (operator::operator=(const optional &)): New.
8575 (operator::operator=(optional &&)): New.
8576 (operator::operator= (const T &))
8577 (operator::operator= (T &&))
8578 (operator::emplace (Args &&... args)): Return a T&. Use reset.
8579 (operator::reset): New.
8580 (operator::m_instantiated):: Add in-class initializer.
8581 * common/traits.h: Include <type_traits>.
8582 (struct And): New types.
8583
a7fc9b61
PA
85842017-04-18 Pedro Alves <palves@redhat.com>
8585
8586 * xml-support.c: Include <vector>.
8587 (scope_level::scope_level(const gdb_xml_element *))
8588 (scope_level::scope_level(scope_level&&)): New.
8589 (scope_level::~scope_level): New.
8590 (scope_level_s): Delete.
8591 (gdb_xml_parser::scopes): Now a std::vector.
8592 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
8593 Use std::vector.
8594 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
8595 scope cleanup code.
8596 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
8597 of the scopes member. Use std::vector::emplace_back.
8598
010151c9
PA
85992017-04-18 Pedro Alves <palves@redhat.com>
8600
8601 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
8602 a bool.
8603 (gdb_xml_end_element): Change type of first parameter.
8604 (gdb_xml_cleanup): Rename to ...
8605 (gdb_xml_parser::~gdb_xml_parser): ... this.
8606 (gdb_xml_create_parser_and_cleanup): Delete with ...
8607 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
8608 to this new ctor.
8609 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
8610 using gdb_xml_create_parser_and_cleanup.
8611 (xinclude_parsing_data): Add ctor/dtor.
8612 (xml_xinclude_cleanup): Delete.
8613 (xml_process_xincludes): Create a local xinclude_parsing_data
8614 instead of heap-allocating one. Create a local gdb_xml_parser
8615 instead of heap-allocating one with
8616 gdb_xml_create_parser_and_cleanup.
8617
d56060f0
JB
86182017-04-18 John Baldwin <jhb@FreeBSD.org>
8619
8620 PR threads/20743
8621 * fbsd-nat.c (resume_one_thread_cb): Remove.
8622 (resume_all_threads_cb): Remove.
8623 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
8624 iterate_over_threads.
8625
305d16a9
JB
86262017-04-17 Joel Brobecker <brobecker@adacore.com>
8627
8628 * NEWS: Create a new section for the next release branch.
8629 Rename the section of the current branch, now that it has
8630 been cut.
8631
8bb57231
JB
86322017-04-17 Joel Brobecker <brobecker@adacore.com>
8633
8634 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
8635 * version.in: Bump version to 8.0.50.DATE-git.
8636
096c92dd
SDJ
86372017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
8638
8639 PR gdb/21385
8640 * windows-nat.c (windows_create_inferior): Declare 'allargs'
8641 independently of the host, and fix build breakage on Cygwin.
8642
0550c955
PA
86432017-04-13 Pedro Alves <palves@redhat.com>
8644
8645 * inferior.c (free_inferior): Convert to ...
8646 (inferior::~inferior): ... this dtor.
8647 (inferior::inferior): New ctor, factored out from ...
8648 (add_inferior_silent): ... here. Allocate the inferior with a new
8649 expression.
8650 (delete_inferior): Call delete instead of free_inferior.
8651 * inferior.h (gdb_environ, continuation): Forward declare.
8652 (inferior): Now a class. Add in-class initialization to all
8653 members. Make boolean fields bool, except 'detaching'.
8654 (inferior::inferior): New explicit ctor.
8655 (inferior::~inferior): New.
8656
e3d60dfc
PA
86572017-04-13 Pedro Alves <palves@redhat.com>
8658
8659 * inferior.c (init_inferior_list): Delete.
8660 * inferior.h (init_inferior_list): Delete.
8661
5fd69d0a
PA
86622017-04-13 Pedro Alves <palves@redhat.com>
8663
8664 PR threads/13217
8665 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
8666 (top level): Call it twice, with different thread sets.
8667
c6609450
PA
86682017-04-13 Pedro Alves <palves@redhat.com>
8669
8670 * thread.c: Include <algorithm>.
8671 (thread_array_cleanup): Delete.
8672 (scoped_inc_dec_ref): New class.
8673 (live_threads_count): New function.
8674 (set_thread_refcount): Delete.
8675 (tp_array_compar_ascending): Now a bool.
8676 (tp_array_compar): Convert to a std::sort comparison function.
8677 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
8678 and live_threads_count.
8679
2a00d7ce
PA
86802017-04-13 Pedro Alves <palves@redhat.com>
8681
8682 * infrun.c (follow_fork_inferior): Also switch the current
8683 inferior.
8684
441d7c93
PA
86852017-04-13 Pedro Alves <palves@redhat.com>
8686
8687 * breakpoint.c (watch_command_1): Save watchpoint-frame info
8688 before calling create_internal_breakpoint.
8689
808480f6
PA
86902017-04-13 Pedro Alves <palves@redhat.com>
8691
8692 * fork-child.c (execv_argv): New class.
8693 (breakup_args): Refactored as ...
8694 (execv_argv::init_for_no_shell): .. this method of execv_argv.
8695 Copy arguments to storage and replace separators with NULL
8696 terminators in place.
8697 (escape_bang_in_quoted_argument): Adjust to return bool.
8698 (execv_argv::execv_argv): New ctor.
8699 (execv_argv::init_for_shell): New method, factored out from
8700 fork_inferior. Don't strdup strings into the vector.
8701 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
8702 Remove free_vector_argv call.
8703
ad3d022a
YQ
87042017-04-13 Yao Qi <yao.qi@linaro.org>
8705
8706 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
8707 tdep->rx_psw_type.
8708
e6ddc3bf
YQ
87092017-04-13 Yao Qi <yao.qi@linaro.org>
8710
8711 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
8712 * rx-tdep.c (rx_gdbarch_init): Likewise.
8713
bfb8cf90
PA
87142017-04-13 Pedro Alves <palves@redhat.com>
8715
8716 * breakpoint.h (struct breakpoint): Reindent.
8717
f5336ca5
PA
87182017-04-13 Pedro Alves <palves@redhat.com>
8719
8720 * breakpoint.c (bp_location): Rename to ...
8721 (bp_locations): ... this. All references updated.
8722 (bp_location_count): Rename to ...
8723 (bp_locations_count): ... this. All references updated.
8724 (bp_location_placed_address_before_address_max): Rename to ...
8725 (bp_locations_placed_address_before_address_max): ... this. All
8726 references updated.
8727 (bp_location_shadow_len_after_address_max): Rename to ...
8728 (bp_locations_shadow_len_after_address_max): ... this. All
8729 references updated.
8730 (bp_location_compare_addrs): Rename to ...
8731 (bp_locations_compare_addrs): ... this. All references updated.
8732 (bp_location_compare):Rename to ...
8733 (bp_locations_compare): ... this. All references updated.
8734 (bp_location_target_extensions_update): Rename to ...
8735 (bp_locations_target_extensions_update): ... this. All references
8736 updated.
8737
be628ab8
SDJ
87382017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
8739
8740 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
8741 * common/common.m4: Check headers 'termios.h', 'termio.h' and
8742 'sgtty.h'.
8743 * common/gdb_termios.h: New file, with parts of "terminal.h".
8744 * inflow.c: Include "gdb_termios.h".
8745 * ser-unix.c: Include "gdb_termios.h".
8746 * terminal.h: Move terminal-related defines to
8747 "common/gdb_termios.h".
8748
8e9e35b1
TT
87492017-04-12 Tom Tromey <tom@tromey.com>
8750
8751 * probe.c (parse_probes): Update.
8752 * location.h (delete_event_location): Don't declare.
8753 (event_location_deleter::operator()): Update.
8754 * location.c (event_location_deleter::operator()): Rename from
8755 delete_event_location.
8756 * linespec.h (linespec_result) <location>: Change type to
8757 event_location_up.
8758 * linespec.c (canonicalize_linespec, event_location_to_sals)
8759 (decode_objc): Update.
8760 (linespec_result): Don't call delete_event_location.
8761 * breakpoint.c (create_breakpoints_sal)
8762 (bkpt_probe_create_sals_from_location)
8763 (strace_marker_create_sals_from_location): Update.
8764
16e802b9
TT
87652017-04-12 Tom Tromey <tom@tromey.com>
8766
8767 * linespec.h (struct linespec_result): Add constructor and
8768 destructor.
8769 (init_linespec_result, destroy_linespec_result)
8770 (make_cleanup_destroy_linespec_result): Don't declare.
8771 * linespec.c (init_linespec_result): Remove.
8772 (linespec_result::~linespec_result): Rename from
8773 destroy_linespec_result. Update.
8774 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
8775 Remove.
8776 * breakpoint.c (create_breakpoint, break_range_command)
8777 (decode_location_default): Update.
8778 * ax-gdb.c (agent_command_1): Update.
8779
d28cd78a
TT
87802017-04-12 Tom Tromey <tom@tromey.com>
8781
8782 * remote.c (remote_download_tracepoint): Update.
8783 * python/py-breakpoint.c (bppy_get_location): Update.
8784 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
8785 (gdbscm_breakpoint_location): Update.
8786 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
8787 * breakpoint.h (struct breakpoint) <location, location_range_end>:
8788 Change type to event_location_up.
8789 * breakpoint.c (create_overlay_event_breakpoint)
8790 (create_longjmp_master_breakpoint)
8791 (create_std_terminate_master_breakpoint)
8792 (create_exception_master_breakpoint)
8793 (breakpoint_event_location_empty_p, print_breakpoint_location)
8794 (print_one_breakpoint_location, create_thread_event_breakpoint)
8795 (init_breakpoint_sal, create_breakpoint)
8796 (print_recreate_ranged_breakpoint, break_range_command)
8797 (init_ada_exception_breakpoint, say_where): Update.
8798 (base_breakpoint_dtor): Don't call delete_event_location.
8799 (bkpt_print_recreate, tracepoint_print_recreate)
8800 (dprintf_print_recreate, update_static_tracepoint)
8801 (breakpoint_re_set_default): Update.
8802
711799d5
TT
88032017-04-12 Tom Tromey <tom@tromey.com>
8804
8805 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
8806 type of "to_do". Update.
8807 (compute_stack_depth): Use std::vector.
8808
52d214d3
TT
88092017-04-12 Tom Tromey <tom@tromey.com>
8810
8811 * printcmd.c (find_instruction_backward): Use std::vector.
8812
4c404b8b
TT
88132017-04-12 Tom Tromey <tom@tromey.com>
8814
8815 * symfile.c (objfilep): Remove typedef.
8816 (reread_symbols): Use a std::vector.
8817
156d9eab
TT
88182017-04-12 Tom Tromey <tom@tromey.com>
8819
8820 * mi/mi-main.c (exec_direction_forward): Remove.
8821 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
8822 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
8823 scoped_restore.
8824 * guile/guile.c (guile_repl_command, guile_command)
8825 (gdbscm_execute_gdb_command): Use scoped_restore.
8826 * go-exp.y (go_parse): Use scoped_restore.
8827 * d-exp.y (d_parse): Use scoped_restore.
8828 * cli/cli-decode.c (cmd_func): Use scoped_restore.
8829 * c-exp.y (c_parse): Use scoped_restore.
8830
4d89769a
TT
88312017-04-12 Tom Tromey <tom@tromey.com>
8832
8833 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
8834 (mi_parse): Update return type.
8835 (mi_parse_free): Remove.
8836 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
8837 (mi_parse::~mi_parse): Rename from mi_parse_free.
8838 (mi_parse_cleanup): Remove.
8839 (mi_parse): Return a unique_ptr. Use new.
8840 * mi/mi-main.c (mi_execute_command): Update.
8841
4b217cc7
TT
88422017-04-12 Tom Tromey <tom@tromey.com>
8843
8844 * location.c (explicit_location_lex_one): Return a
8845 unique_xmalloc_ptr.
8846 (string_to_explicit_location): Update. Remove cleanups.
8847
59d3651b
TT
88482017-04-12 Tom Tromey <tom@tromey.com>
8849
8850 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
8851 (compare_value_and_voffset): Change type. Update.
8852 (compute_vtable_size): Change type of "offset_vec".
8853 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
8854 (gnuv3_get_typeid): Remove extraneous declaration.
8855
b24b0d6c
TT
88562017-04-12 Tom Tromey <tom@tromey.com>
8857
8858 * charset.h (wchar_iterator): Fix comment.
8859
80a3b8c5
TT
88602017-04-12 Tom Tromey <tom@tromey.com>
8861
8862 * charset.c (iconv_wrapper): New class.
8863 (cleanup_iconv): Remove.
8864 (convert_between_encodings): Use it.
8865
c83dd867
TT
88662017-04-12 Tom Tromey <tom@tromey.com>
8867
8868 * symfile.h (increment_reading_symtab): Update type.
8869 * symfile.c (decrement_reading_symtab): Remove.
8870 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
8871 * psymtab.c (psymtab_to_symtab): Update.
8872 * dwarf2read.c (dw2_instantiate_symtab): Update.
8873
0e8621a0
TT
88742017-04-12 Tom Tromey <tom@tromey.com>
8875
8876 * jit.c (struct jit_reader): Declare separately. Add constructor
8877 and destructor. Change type of "handle".
8878 (loaded_jit_reader): Define separately.
8879 (jit_reader_load): Update. New "new".
8880 (jit_reader_unload_command): Use "delete".
8881 * gdb-dlfcn.h (struct dlclose_deleter): New.
8882 (gdb_dlhandle_up): New typedef.
8883 (gdb_dlopen, gdb_dlsym): Update types.
8884 (gdb_dlclose): Remove.
8885 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
8886 (gdb_dlsym): Change type of "handle".
8887 (make_cleanup_dlclose): Remove.
8888 (dlclose_deleter::operator()): Rename from gdb_dlclose.
8889 * compile/compile-c-support.c (load_libcc): Update.
8890
67d89901
TT
88912017-04-12 Tom Tromey <tom@tromey.com>
8892
8893 * symtab.h (find_pcs_for_symtab_line): Change return type.
8894 * symtab.c (find_pcs_for_symtab_line): Change return type.
8895 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
8896 type of "vec". Update.
8897 (ltpy_get_pcs_for_line): Update.
8898 * linespec.c (decode_digits_ordinary): Update.
8899
93921405
TT
89002017-04-12 Tom Tromey <tom@tromey.com>
8901
8902 * tracepoint.c (actions_command): Update.
8903 * python/python.c (python_command, python_interactive_command):
8904 Update.
8905 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
8906 * guile/guile.c (guile_command): Update.
8907 * defs.h (read_command_lines, read_command_lines_1): Return
8908 command_line_up.
8909 (command_lines_deleter): New struct.
8910 (command_line_up): New typedef.
8911 * compile/compile.c (compile_code_command)
8912 (compile_print_command): Update.
8913 * cli/cli-script.h (get_command_line, copy_command_lines): Return
8914 command_line_up.
8915 (make_cleanup_free_command_lines): Remove.
8916 * cli/cli-script.c (get_command_line, read_command_lines_1)
8917 (copy_command_lines): Return command_line_up.
8918 (while_command, if_command, read_command_lines, define_command)
8919 (document_command): Update.
8920 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
8921 Remove.
8922 * breakpoint.h (breakpoint_set_commands): Change type of
8923 "commands".
8924 * breakpoint.c (breakpoint_set_commands): Change type of
8925 "commands". Update.
8926 (do_map_commands_command, update_dprintf_command_list)
8927 (create_tracepoint_from_upload): Update.
8928
ffc2605c
TT
89292017-04-12 Tom Tromey <tom@tromey.com>
8930
8931 * tracepoint.c (scope_info): Update.
8932 * spu-tdep.c (spu_catch_start): Update.
8933 * python/python.c (gdbpy_decode_line): Update.
8934 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
8935 * python/py-breakpoint.c (bppy_init): Update.
8936 * probe.c (parse_probes): Update.
8937 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
8938 * location.h (event_location_deleter): New struct.
8939 (event_location_up): New typedef.
8940 (new_linespec_location, new_address_location, new_probe_location)
8941 (new_explicit_location, copy_event_location)
8942 (string_to_event_location, string_to_event_location_basic)
8943 (string_to_explicit_location): Update return type.
8944 (make_cleanup_delete_event_location): Remove.
8945 * location.c (new_linespec_location, new_address_location)
8946 (new_probe_location, new_explicit_location, copy_event_location):
8947 Return event_location_up.
8948 (delete_event_location_cleanup)
8949 (make_cleanup_delete_event_location): Remove.
8950 (string_to_explicit_location, string_to_event_location_basic)
8951 (string_to_event_location): Return event_location_up.
8952 * linespec.c (canonicalize_linespec, event_location_to_sals)
8953 (decode_line_with_current_source)
8954 (decode_line_with_last_displayed, decode_objc): Update.
8955 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8956 * completer.c (location_completer): Update.
8957 * cli/cli-cmds.c (edit_command, list_command): Update.
8958 * breakpoint.c (create_overlay_event_breakpoint)
8959 (create_longjmp_master_breakpoint)
8960 (create_std_terminate_master_breakpoint)
8961 (create_exception_master_breakpoint)
8962 (create_thread_event_breakpoint): Update.
8963 (init_breakpoint_sal): Update. Remove some dead code.
8964 (create_breakpoint_sal): Change type of "location". Update.
8965 (create_breakpoints_sal, create_breakpoint, break_command_1)
8966 (dprintf_command, break_range_command, until_break_command)
8967 (init_ada_exception_breakpoint)
8968 (strace_marker_create_sals_from_location)
8969 (update_static_tracepoint, trace_command, ftrace_command)
8970 (strace_command, create_tracepoint_from_upload): Update.
8971 * break-catch-throw.c (re_set_exception_catchpoint): Update.
8972 * ax-gdb.c (agent_command_1): Update.
8973
8f10c932
PA
89742017-04-12 Pedro Alves <palves@redhat.com>
8975
8976 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
8977 * configure.tgt: Handle i[34567]86-*-go32* and
8978 i[34567]86-*-msdosdjgpp*.
8979 * i386-tdep.c (i386_svr4_reg_to_regnum):
8980 Make extern.
8981 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
8982 i386-go32-tdep.c.
8983 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
8984 * i386-go32-tdep.c: New file.
8985 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
8986 declarations.
8987
0a31ccfb
SM
89882017-04-12 Simon Marchi <simon.marchi@ericsson.com>
8989
8990 * aix-thread.c (pd_status2str): Change return type to const char *.
8991
e9bb3fbb
PA
89922017-04-12 Pedro Alves <palves@redhat.com>
8993
8994 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
8995 calls to set_gdbarch_gnu_triplet_regexp.
8996
53375380
PA
89972017-04-12 Pedro Alves <palves@redhat.com>
8998
8999 PR gdb/21323
9000 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
9001 New enum value.
9002 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
9003 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
9004 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
9005 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
9006 * gdbarch.h, gdbarch.c: Regenerate.
9007 * aarch64-tdep.c (aarch64_gdbarch_init): Override
9008 gdbarch_wchar_bit and gdbarch_wchar_signed.
9009 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
9010 * arm-tdep.c (arm_gdbarch_init): Likewise.
9011 * avr-tdep.c (avr_gdbarch_init): Likewise.
9012 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
9013 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
9014 * i386-tdep.c (i386_go32_init_abi): Likewise.
9015 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9016 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9017 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
9018 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
9019 * sh-tdep.c (sh_gdbarch_init): Likewise.
9020 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9021 * sparc64-tdep.c (sparc64_init_abi): Likewise.
9022 * windows-tdep.c (windows_init_abi): Likewise.
9023 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
9024
53e710ac
PA
90252017-04-12 Pedro Alves <palves@redhat.com>
9026
9027 PR c++/21323
9028 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
9029 cplus_primitive_type_char32_t>: New enum values.
9030 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
9031 and cplus_primitive_type_char32_t.
9032 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
9033 32, use the archtecture's built-in type for char16_t and char32_t,
9034 respectively. Otherwise, fallback to init_integer_type as before,
9035 but make the type unsigned, and issue a complaint.
9036 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
9037
ab0538b8
AH
90382017-04-12 Alan Hayward <alan.hayward@arm.com>
9039
5e0e0422 9040 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
9041 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
9042
5430098f
SDJ
90432017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
9044
9045 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
9046 'const char *'.
9047
7c5ded6a
SDJ
90482017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
9049
9050 * common/common-utils.c (free_vector_argv): New function.
9051 * common/common-utils.h: Include <vector>.
9052 (free_vector_argv): New prototype.
9053 * darwin-nat.c (darwin_create_inferior): Rewrite function
9054 prototype in order to constify "exec_file" and accept a
9055 "std::string" for "allargs".
9056 * fork-child.c: Include <vector>.
9057 (breakup_args): Rewrite function, using C++.
9058 (fork_inferior): Rewrite function header, constify "exec_file_arg"
9059 and accept "std::string" for "allargs". Update the code to
9060 calculate "argv" based on "allargs". Update calls to "exec_fun"
9061 and "execvp".
9062 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
9063 order to constify "exec_file" and accept a "std::string" for
9064 "allargs".
9065 * go32-nat.c (go32_create_inferior): Likewise.
9066 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
9067 * infcmd.c (run_command_1): Constify "exec_file". Use
9068 "std::string" for inferior arguments.
9069 * inferior.h (fork_inferior): Update prototype.
9070 * linux-nat.c (linux_nat_create_inferior): Rewrite function
9071 prototype in order to constify "exec_file" and accept a
9072 "std::string" for "allargs".
9073 * nto-procfs.c (procfs_create_inferior): Likewise.
9074 * procfs.c (procfs_create_inferior): Likewise.
9075 * remote-sim.c (gdbsim_create_inferior): Likewise.
9076 * remote.c (extended_remote_run): Update code to accept
9077 "std::string" as argument.
9078 (extended_remote_create_inferior): Rewrite function prototype in
9079 order to constify "exec_file" and accept a "std::string" for
9080 "allargs".
9081 * rs6000-nat.c (super_create_inferior): Likewise.
9082 (rs6000_create_inferior): Likewise.
9083 * target.h (struct target_ops) <to_create_inferior>: Likewise.
9084 * windows-nat.c (windows_create_inferior): Likewise.
9085
ae0eee42
PA
90862017-04-11 Pedro Alves <palves@redhat.com>
9087
9088 * thread.c: Fix whitespace throughout.
9089
a6acac06
PR
90902017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
9091
9092 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
9093
64403bd1
AH
90942017-04-11 Alan Hayward <alan.hayward@arm.com>
9095
9096 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
9097
a5bef50f
SDJ
90982017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
9099
9100 PR gdb/21364
9101 * osdata.c (info_osdata): Check if 'type' is an empty string
9102 instead of NULL.
9103
9295a5a9
PA
91042017-04-10 Pedro Alves <palves@redhat.com>
9105
9106 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
9107 (ptid_to_global_thread_id, in_thread_list)
9108 (do_captured_list_thread_ids, set_resumed, set_running)
9109 (set_executing, set_stop_requested, finish_thread_state)
9110 (validate_registers_access, can_access_registers_ptid)
9111 (print_thread_info_1, switch_to_thread)
9112 (do_restore_current_thread_cleanup)
9113 (make_cleanup_restore_current_thread, thread_command)
9114 (thread_name_command): Use operator== instead of ptid_equal.
9115
996812e3
PA
91162017-04-10 Pedro Alves <palves@redhat.com>
9117
9118 * thread.c (struct current_thread_cleanup) <next>: Delete field.
9119 (current_thread_cleanup_chain): Delete.
9120 (restore_current_thread_cleanup_dtor)
9121 (make_cleanup_restore_current_thread): Remove references to
9122 current_thread_cleanup_chain.
9123
845b344f
AH
91242017-04-10 Alan Hayward <alan.hayward@arm.com>
9125
9126 * msp430-tdep.c (msp430_pseudo_register_read): Never return
9127 REG_UNKNOWN.
9128
803bdfe4
YQ
91292017-04-10 Yao Qi <yao.qi@linaro.org>
9130
9131 PR gdb/19942
9132 * gdbthread.h (thread_info::deletable): New method.
9133 (thread_info::incref): New method.
9134 (thread_info::decref): New method.
9135 (thread_info::refcount): Move it to private.
9136 * infrun.c (save_stop_context): Call inc_refcount.
9137 (release_stop_context_cleanup): Likewise.
9138 * thread.c (set_thread_exited): New function.
9139 (init_thread_list): Delete "tp" only it is deletable, otherwise
9140 call set_thread_exited.
9141 (delete_thread_1): Call set_thread_exited.
9142 (current_thread_cleanup) <inferior_pid>: Remove.
9143 <thread>: New field.
9144 (restore_current_thread_ptid_changed): Removed.
9145 (do_restore_current_thread_cleanup): Adjust.
9146 (restore_current_thread_cleanup_dtor): Don't call
9147 find_thread_ptid.
9148 (set_thread_refcount): Use dec_refcount.
9149 (make_cleanup_restore_current_thread): Adjust.
9150 (thread_apply_all_command): Call inc_refcount.
9151 (_initialize_thread): Don't call
9152 observer_attach_thread_ptid_changed.
9153
8c25b497
YQ
91542017-04-10 Yao Qi <yao.qi@linaro.org>
9155
9156 * thread.c (delete_thread_1): Hoist code on marking thread as
9157 exited.
9158
8473b447
SM
91592017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9160
9161 * windows-nat.c (windows_detach): Initialize ptid with
9162 minus_one_ptid.
9163
6670ec13
SM
91642017-04-07 Simon Marchi <simon.marchi@ericsson.com>
9165
9166 * unittests/ptid-selftests.c: Fix erroneous assert messages.
9167
ba2f91bb
AH
91682017-04-07 Alan Hayward <alan.hayward@arm.com>
9169
9170 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
9171 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
9172 (bfin_pseudo_register_write): Likewise
9173
436252de
SM
91742017-04-06 Simon Marchi <simon.marchi@ericsson.com>
9175
9176 * common/ptid.h (struct ptid): Change to...
9177 (class ptid_t): ... this.
9178 <ptid_t>: New constructors.
9179 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
9180 matches>: New methods.
9181 <make_null, make_minus_one>: New static methods.
9182 <pid>: Rename to...
9183 <m_pid>: ...this.
9184 <lwp>: Rename to...
9185 <m_lwp>: ...this.
9186 <tid>: Rename to...
9187 <m_tid>: ...this.
9188 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
9189 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
9190 as references, move comment to class ptid_t.
9191 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
9192 ptid_t static methods.
9193 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
9194 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
9195 Take ptid arguments as references, implement using ptid_t methods.
9196 * unittests/ptid-selftests.c: New file.
9197 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9198 unittests/ptid-selftests.c.
9199 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
9200
0dedf377
TP
92012017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
9202
9203 * python/python.c (python_run_simple_file): Cast mode literal to
9204 non-const char pointer as expected by PyFile_FromString.
9205
4e9868d4
SM
92062017-04-05 Simon Marchi <simon.marchi@ericsson.com>
9207
9208 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
9209 minus_one_ptid and null_ptid.
9210
9bf2a700
PA
92112017-04-05 Pedro Alves <palves@redhat.com>
9212
9213 * warning.m4 (build_warnings): Remove -Wno-write-strings.
9214 * configure: Regenerate.
9215
a121b7c1
PA
92162017-04-05 Pedro Alves <palves@redhat.com>
9217
9218 * ada-exp.y (yyerror): Constify.
9219 * ada-lang.c (bound_name, get_selections)
9220 (ada_variant_discrim_type)
9221 (ada_variant_discrim_name, ada_value_struct_elt)
9222 (ada_lookup_struct_elt_type, is_unchecked_variant)
9223 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
9224 (catch_ada_exception_command_split)
9225 (catch_ada_assert_command_split, catch_assert_command)
9226 (ada_op_name): Constify.
9227 * ada-lang.h (ada_yyerror, get_selections)
9228 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
9229 * arc-tdep.c (arc_print_frame_cache): Constify.
9230 * arm-tdep.c (arm_skip_stub): Constify.
9231 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
9232 (gen_aggregate_elt_ref): Constify.
9233 * bcache.c (print_bcache_statistics): Constify.
9234 * bcache.h (print_bcache_statistics): Constify.
9235 * break-catch-throw.c (catch_exception_command_1):
9236 * breakpoint.c (struct ep_type_description::description):
9237 Constify.
9238 (add_solib_catchpoint): Constify.
9239 (catch_fork_command_1): Add cast.
9240 (add_catch_command): Constify.
9241 * breakpoint.h (add_catch_command, add_solib_catchpoint):
9242 Constify.
9243 * bsd-uthread.c (bsd_uthread_state): Constify.
9244 * buildsym.c (patch_subfile_names): Constify.
9245 * buildsym.h (next_symbol_text_func, patch_subfile_names):
9246 Constify.
9247 * c-exp.y (yyerror): Constify.
9248 (token::oper): Constify.
9249 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
9250 * c-varobj.c (cplus_describe_child): Constify.
9251 * charset.c (find_charset_names): Add cast.
9252 (find_charset_names): Constify array and add const_cast.
9253 * cli/cli-cmds.c (complete_command, cd_command): Constify.
9254 (edit_command): Constify.
9255 * cli/cli-decode.c (lookup_cmd): Constify.
9256 * cli/cli-dump.c (dump_memory_command, dump_value_command):
9257 Constify.
9258 (struct dump_context): Constify.
9259 (add_dump_command, restore_command): Constify.
9260 * cli/cli-script.c (get_command_line): Constify.
9261 * cli/cli-script.h (get_command_line): Constify.
9262 * cli/cli-utils.c (check_for_argument): Constify.
9263 * cli/cli-utils.h (check_for_argument): Constify.
9264 * coff-pe-read.c (struct read_pe_section_data): Constify.
9265 * command.h (lookup_cmd): Constify.
9266 * common/print-utils.c (decimal2str): Constify.
9267 * completer.c (gdb_print_filename): Constify.
9268 * corefile.c (set_gnutarget): Constify.
9269 * cp-name-parser.y (yyerror): Constify.
9270 * cp-valprint.c (cp_print_class_member): Constify.
9271 * cris-tdep.c (cris_register_name, crisv32_register_name):
9272 Constify.
9273 * d-exp.y (yyerror): Constify.
9274 (struct token::oper): Constify.
9275 * d-lang.h (d_yyerror): Constify.
9276 * dbxread.c (struct header_file_location::name): Constify.
9277 (add_old_header_file, add_new_header_file, last_function_name)
9278 (dbx_next_symbol_text, add_bincl_to_list)
9279 (find_corresponding_bincl_psymtab, set_namestring)
9280 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
9281 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
9282 * defs.h (command_line_input, print_address_symbolic)
9283 (deprecated_readline_begin_hook): Constify.
9284 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
9285 Constify.
9286 * event-top.c (handle_line_of_input): Constify and add cast.
9287 * exceptions.c (catch_errors): Constify.
9288 * exceptions.h (catch_errors): Constify.
9289 * expprint.c (print_subexp_standard, op_string, op_name)
9290 (op_name_standard, dump_raw_expression, dump_raw_expression):
9291 * expression.h (op_name, op_string, dump_raw_expression):
9292 Constify.
9293 * f-exp.y (yyerror): Constify.
9294 (struct token::oper): Constify.
9295 (struct f77_boolean_val::name): Constify.
9296 * f-lang.c (f_word_break_characters): Constify.
9297 * f-lang.h (f_yyerror): Constify.
9298 * fork-child.c (fork_inferior): Add cast.
9299 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
9300 (new_variant): Constify.
9301 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
9302 * gdbarch.c: Regenerate.
9303 * gdbcore.h (set_gnutarget): Constify.
9304 * go-exp.y (yyerror): Constify.
9305 (token::oper): Constify.
9306 * go-lang.h (go_yyerror): Constify.
9307 * go32-nat.c (go32_sysinfo): Constify.
9308 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
9309 * guile/scm-cmd.c (cmdscm_function): Constify.
9310 * guile/scm-param.c (pascm_param_value): Constify.
9311 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
9312 (h8300sx_register_name): Constify.
9313 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
9314 Constify.
9315 * ia64-tdep.c (ia64_register_names): Constify.
9316 * infcmd.c (construct_inferior_arguments): Constify.
9317 (path_command, attach_post_wait): Constify.
9318 * language.c (show_range_command, show_case_command)
9319 (unk_lang_error): Constify.
9320 * language.h (language_defn::la_error)
9321 (language_defn::la_name_of_this): Constify.
9322 * linespec.c (decode_line_2): Constify.
9323 * linux-thread-db.c (thread_db_err_str): Constify.
9324 * lm32-tdep.c (lm32_register_name): Constify.
9325 * m2-exp.y (yyerror): Constify.
9326 * m2-lang.h (m2_yyerror): Constify.
9327 * m32r-tdep.c (m32r_register_names): Constify and make static.
9328 * m68hc11-tdep.c (m68hc11_register_names): Constify.
9329 * m88k-tdep.c (m88k_register_name): Constify.
9330 * macroexp.c (appendmem): Constify.
9331 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
9332 (upgrade_type, parse_external, parse_partial_symbols)
9333 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
9334 (new_symbol): Constify.
9335 * memattr.c (mem_info_command): Constify.
9336 * mep-tdep.c (register_name_from_keyword): Constify.
9337 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
9338 Constify.
9339 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
9340 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
9341 * mi/mi-main.c (captured_mi_execute_command): Constify and add
9342 cast.
9343 (mi_execute_async_cli_command): Constify.
9344 * mips-tdep.c (mips_register_name): Constify.
9345 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
9346 (am33_register_name, am33_2_register_name)
9347 * moxie-tdep.c (moxie_register_names): Constify.
9348 * nat/linux-osdata.c (osdata_type): Constify fields.
9349 * nto-tdep.c (nto_parse_redirection): Constify.
9350 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
9351 (lookup_child_selector): Constify.
9352 (objc_methcall::name): Constify.
9353 * objc-lang.h (lookup_objc_class, lookup_child_selector)
9354 (lookup_struct_typedef): Constify.
9355 * objfiles.c (pc_in_section): Constify.
9356 * objfiles.h (pc_in_section): Constify.
9357 * p-exp.y (struct token::oper): Constify.
9358 (yyerror): Constify.
9359 * p-lang.h (pascal_yyerror): Constify.
9360 * parser-defs.h (op_name_standard): Constify.
9361 (op_print::string): Constify.
9362 (exp_descriptor::op_name): Constify.
9363 * printcmd.c (print_address_symbolic): Constify.
9364 * psymtab.c (print_partial_symbols): Constify.
9365 * python/py-breakpoint.c (stop_func): Constify.
9366 (bppy_get_expression): Constify.
9367 * python/py-cmd.c (cmdpy_completer::name): Constify.
9368 (cmdpy_function): Constify.
9369 * python/py-event.c (evpy_add_attribute)
9370 (gdbpy_initialize_event_generic): Constify.
9371 * python/py-event.h (evpy_add_attribute)
9372 (gdbpy_initialize_event_generic): Constify.
9373 * python/py-evts.c (add_new_registry): Constify.
9374 * python/py-finishbreakpoint.c (outofscope_func): Constify.
9375 * python/py-framefilter.c (get_py_iter_from_func): Constify.
9376 * python/py-inferior.c (get_buffer): Add cast.
9377 * python/py-param.c (parm_constant::name): Constify.
9378 * python/py-unwind.c (fprint_frame_id): Constify.
9379 * python/python.c (gdbpy_parameter_value): Constify.
9380 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
9381 * remote.c (memory_packet_config::name): Constify.
9382 (show_packet_config_cmd, remote_write_bytes)
9383 (remote_buffer_add_string):
9384 * reverse.c (exec_reverse_once): Constify.
9385 * rs6000-tdep.c (variant::name, variant::description): Constify.
9386 * rust-exp.y (rustyyerror): Constify.
9387 * rust-lang.c (rust_op_name): Constify.
9388 * rust-lang.h (rustyyerror): Constify.
9389 * serial.h (serial_ops::name): Constify.
9390 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
9391 (sh_sh3e_register_name, sh_sh2e_register_name)
9392 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
9393 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
9394 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
9395 (sh_sh4al_dsp_register_name): Constify.
9396 * sh64-tdep.c (sh64_register_name): Constify.
9397 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
9398 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
9399 * stabsread.c (patch_block_stabs, read_type_number)
9400 (ref_map::stabs, ref_add, process_reference)
9401 (symbol_reference_defined, define_symbol, define_symbol)
9402 (error_type, read_type, read_member_functions, read_cpp_abbrev)
9403 (read_one_struct_field, read_struct_fields, read_baseclasses)
9404 (read_tilde_fields, read_struct_type, read_array_type)
9405 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
9406 (read_huge_number, read_range_type, read_args, common_block_start)
9407 (find_name_end): Constify.
9408 * stabsread.h (common_block_start, define_symbol)
9409 (process_one_symbol, symbol_reference_defined, ref_add):
9410 * symfile.c (get_section_index, add_symbol_file_command):
9411 * symfile.h (get_section_index): Constify.
9412 * target-descriptions.c (tdesc_type::name): Constify.
9413 (tdesc_free_type): Add cast.
9414 * target.c (find_default_run_target):
9415 (add_deprecated_target_alias, find_default_run_target)
9416 (target_announce_detach): Constify.
9417 (do_option): Constify.
9418 * target.h (add_deprecated_target_alias): Constify.
9419 * thread.c (print_thread_info_1): Constify.
9420 * top.c (deprecated_readline_begin_hook, command_line_input):
9421 Constify.
9422 (init_main): Add casts.
9423 * top.h (handle_line_of_input): Constify.
9424 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
9425 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
9426 (tfind_command): Rename to ...
9427 (tfind_command_1): ... this and constify.
9428 (tfind_command): New function.
9429 (tfind_end_command, tfind_start_command): Adjust.
9430 (encode_source_string): Constify.
9431 * tracepoint.h (encode_source_string): Constify.
9432 * tui/tui-data.c (tui_partial_win_by_name): Constify.
9433 * tui/tui-data.h (tui_partial_win_by_name): Constify.
9434 * tui/tui-source.c (tui_set_source_content_nil): Constify.
9435 * tui/tui-source.h (tui_set_source_content_nil): Constify.
9436 * tui/tui-win.c (parse_scrolling_args): Constify.
9437 * tui/tui-windata.c (tui_erase_data_content): Constify.
9438 * tui/tui-windata.h (tui_erase_data_content): Constify.
9439 * tui/tui-winsource.c (tui_erase_source_content): Constify.
9440 * tui/tui.c (tui_enable): Add cast.
9441 * utils.c (defaulted_query): Constify.
9442 (init_page_info): Add cast.
9443 (puts_debug, subset_compare): Constify.
9444 * utils.h (subset_compare): Constify.
9445 * varobj.c (varobj_format_string): Constify.
9446 * varobj.h (varobj_format_string): Constify.
9447 * vax-tdep.c (vax_register_name): Constify.
9448 * windows-nat.c (windows_detach): Constify.
9449 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
9450 * xml-support.c (gdb_xml_end_element): Constify.
9451 * xml-tdesc.c (tdesc_start_reg): Constify.
9452 * xstormy16-tdep.c (xstormy16_register_name): Constify.
9453 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
9454 * xtensa-tdep.h (xtensa_register_t::name): Constify.
9455
995816ba
PA
94562017-04-05 Pedro Alves <palves@redhat.com>
9457
9458 * proc-api.c (struct trans): Constify.
9459 (procfs_note): Constify.
9460 * proc-events.c (struct trans, syscall_table):
9461 * proc-flags.c (struct trans): Constify.
9462 * proc-utils.h (procfs_note): Constify.
9463 * proc-why.c (struct trans): Constify.
9464 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
9465 (procfs_detach): Constify.
9466 * sol-thread.c (struct string_map): Constify.
9467 (td_err_string, td_state_string): Constify.
9468
3e83a920
PA
94692017-04-05 Pedro Alves <palves@redhat.com>
9470
9471 * proc-api.c (procfs_filename): Don't initialize
9472 procfs_filename.
9473 (prepare_to_trace): Assume procfs_filename is non-NULL.
9474 (_initialize_proc_api): Give procfs_filename a default value here.
9475
63160a43
PA
94762017-04-05 Pedro Alves <palves@redhat.com>
9477
9478 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
9479 'cond_string' parameter.
9480 (extract_exception_regexp): Constify 'string' parameter.
9481 (catch_exception_command_1): Constify.
9482 * breakpoint.c (init_catchpoint)
9483 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
9484 parameter.
9485 (ep_parse_optional_if_clause, catch_fork_command_1)
9486 (catch_exec_command_1): Constify.
9487 * breakpoint.h (init_catchpoint): Constify 'cond_string'
9488 parameter.
9489 (ep_parse_optional_if_clause): Constify.
9490 * cli/cli-utils.c (remove_trailing_whitespace)
9491 (check_for_argument): Constify.
9492 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
9493 non-const overload.
9494 (check_for_argument): Likewise.
9495
9b2eba3d
PA
94962017-04-05 Pedro Alves <palves@redhat.com>
9497
9498 * event-top.c (command_line_handler): Add cast to execute_command
9499 call.
9500 * record-btrace.c (cmd_record_btrace_bts_start)
9501 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
9502 (cmd_record_btrace_start): Add cast to execute_command call.
9503 * record-full.c (record_full_goto_insn):
9504 * record.c (record_start, record_stop): Add cast to
9505 execute_command_to_string calls.
9506 (cmd_record_start): Add cast to execute_command calls.
9507
2adadf51
PA
95082017-04-05 Pedro Alves <palves@redhat.com>
9509
9510 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
9511 static inline function.
9512 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
9513 array and use gdb_PyArg_ParseTupleAndKeywords.
9514 * python/py-cmd.c (cmdpy_init): Likewise.
9515 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
9516 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
9517 (infpy_search_memory): Likewise.
9518 * python/py-objfile.c (objfpy_add_separate_debug_file)
9519 (gdbpy_lookup_objfile): Likewise.
9520 * python/py-symbol.c (gdbpy_lookup_symbol)
9521 (gdbpy_lookup_global_symbol): Likewise.
9522 * python/py-type.c (gdbpy_lookup_type): Likewise.
9523 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
9524 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
9525 Likewise.
9526
0d1f4ceb
PA
95272017-04-05 Pedro Alves <palves@redhat.com>
9528
9529 * python/python-internal.h (gdb_PyGetSetDef): New type.
9530 * python/py-block.c (block_object_getset)
9531 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
9532 * python/py-event.c (event_object_getset)
9533 (finish_breakpoint_object_getset): Likewise.
9534 * python/py-inferior.c (inferior_object_getset): Likewise.
9535 * python/py-infthread.c (thread_object_getset): Likewise.
9536 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
9537 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
9538 * python/py-objfile.c (objfile_getset): Likewise.
9539 * python/py-progspace.c (pspace_getset): Likewise.
9540 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
9541 Likewise.
9542 * python/py-record.c (recpy_record_getset): Likewise.
9543 * python/py-symbol.c (symbol_object_getset): Likewise.
9544 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
9545 Likewise.
9546 * python/py-type.c (type_object_getset, field_object_getset):
9547 Likewise.
9548 * python/py-value.c (value_object_getset): Likewise.
9549
4d759979
PA
95502017-04-05 Pedro Alves <palves@redhat.com>
9551
9552 * python/python-internal.h (gdb_PyObject_CallMethod)
9553 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
9554 New functions.
9555 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
9556 (PySys_GetObject, PySys_SetPath): New macros.
9557
fdf9e36f
PA
95582017-04-05 Pedro Alves <palves@redhat.com>
9559
9560 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
9561 info_osdata_command.
9562 * osdata.c (info_osdata_command): Rename to ...
9563 (info_osdata): ... this. Constify 'type' parameter, and remove
9564 the 'from_tty' parameter. Accept NULL TYPE.
9565 (info_osdata_command): New function.
9566 * osdata.h (info_osdata_command): Remove declaration.
9567 (info_osdata): New declaration.
9568
9f33b8b7
PA
95692017-04-05 Pedro Alves <palves@redhat.com>
9570
9571 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
9572 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
9573 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
9574 parameter.
9575 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
9576 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
9577 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
9578 parameter.
9579 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
9580 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
9581 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
9582 (mi_cmd_file_list_exec_source_files)
9583 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
9584 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
9585 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
9586 parameter.
9587 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
9588 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
9589 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9590 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
9591 (mi_cmd_stack_info_frame): Constify 'command' parameter.
9592 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
9593 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
9594 'command' parameter.
9595 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
9596 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
9597 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
9598 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
9599 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
9600 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
9601 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
9602 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
9603 (mi_cmd_var_set_update_range): Constify 'command' parameter.
9604 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
9605 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
9606 parameter.
9607 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
9608 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
9609 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
9610 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
9611 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
9612 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
9613 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
9614 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
9615 (mi_cmd_data_list_changed_registers)
9616 (mi_cmd_data_write_register_values)
9617 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
9618 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
9619 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
9620 (mi_cmd_list_features, mi_cmd_list_target_features)
9621 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
9622 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
9623 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
9624 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
9625 (mi_cmd_trace_frame_collected): Constify 'command'
9626 parameter.
9627 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
9628 'command' parameter.
9629
67cb5b2d
PA
96302017-04-05 Pedro Alves <palves@redhat.com>
9631
9632 * ada-lang.c (ada_completer_word_break_characters): Now a const
9633 array.
9634 (ada_get_gdb_completer_word_break_characters): Constify.
9635 * completer.c (gdb_completer_command_word_break_characters)
9636 (gdb_completer_file_name_break_characters)
9637 (gdb_completer_quote_characters): Now const arrays.
9638 (get_gdb_completer_quote_characters): Constify.
9639 (set_rl_completer_word_break_characters): New function.
9640 (set_gdb_completion_word_break_characters)
9641 (complete_line_internal): Use it.
9642 * completer.h (get_gdb_completer_quote_characters): Constify.
9643 (set_rl_completer_word_break_characters): Declare.
9644 * f-lang.c (f_word_break_characters): Constify.
9645 * language.c (default_word_break_characters): Constify.
9646 * language.h (language_defn::la_word_break_characters): Constify.
9647 (default_word_break_characters): Constify.
9648 * top.c (init_main): Use set_rl_completer_word_break_characters.
9649
7a114964
PA
96502017-04-05 Pedro Alves <palves@redhat.com>
9651
9652 * aix-thread.c (aix_thread_pid_to_str)
9653 (aix_thread_extra_thread_info): Constify.
9654 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
9655 * bsd-uthread.c (bsd_uthread_extra_thread_info)
9656 (bsd_uthread_pid_to_str): Constify.
9657 * corelow.c (core_pid_to_str): Constify.
9658 * darwin-nat.c (darwin_pid_to_str): Constify.
9659 * fbsd-nat.c (fbsd_pid_to_str): Constify.
9660 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
9661 Constify.
9662 * gnu-nat.c (gnu_pid_to_str): Constify.
9663 * go32-nat.c (go32_pid_to_str): Constify.
9664 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
9665 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
9666 * inferior.c (inferior_pid_to_str): Constify.
9667 * linux-nat.c (linux_nat_pid_to_str): Constify.
9668 * linux-tdep.c (linux_core_pid_to_str): Constify.
9669 * linux-thread-db.c (thread_db_pid_to_str)
9670 (thread_db_extra_thread_info): Constify.
9671 * nto-tdep.c (nto_extra_thread_info): Constify.
9672 * nto-tdep.h (nto_extra_thread_info): Constify.
9673 * obsd-nat.c (obsd_pid_to_str): Constify.
9674 * procfs.c (procfs_pid_to_str): Constify.
9675 * ravenscar-thread.c (ravenscar_extra_thread_info)
9676 (ravenscar_pid_to_str): Constify.
9677 * remote-sim.c (gdbsim_pid_to_str): Constify.
9678 * remote.c (remote_threads_extra_info, remote_pid_to_str):
9679 Constify.
9680 * sol-thread.c (solaris_pid_to_str): Constify.
9681 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
9682 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
9683 * target.c (default_pid_to_str, target_pid_to_str)
9684 (normal_pid_to_str, default_pid_to_str): Constify.
9685 * target.h (target_ops::to_pid_to_str)
9686 (target_ops::to_extra_thread_info): Constify.
9687 (target_pid_to_str, normal_pid_to_str): Constify.
9688 * windows-nat.c (windows_pid_to_str): Constify.
9689 * gdbarch.sh (core_pid_to_str): Constify.
9690 * target-delegates.c: Regenerate.
9691 * gdbarch.h, gdbarch.c: Regenerate.
9692
69bbf465
PA
96932017-04-05 Pedro Alves <palves@redhat.com>
9694
9695 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
9696 the memory of the temporary warning_pre_print override.
9697 * utils.c (warning_pre_print): Constify.
9698 * utils.h (warning_pre_print): Constify.
9699
be47f9e8
PA
97002017-04-05 Pedro Alves <palves@redhat.com>
9701
9702 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
9703 (shell_command): New function.
9704 (make_command): Use std::string.
9705 (init_cli_cmds): Register shell_command instead of shell_escape.
9706
bde6261a
PA
97072017-04-05 Pedro Alves <palves@redhat.com>
9708
9709 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
9710 * tracepoint.c (default_collect): Don't initialize.
9711
b38ef47f
PA
97122017-04-05 Pedro Alves <palves@redhat.com>
9713
9714 * macroexp.c (macro_buffer::shared): Now a bool.
9715 (init_buffer): Update.
9716 (init_shared_buffer): Constify 'addr' parameter.
9717 (substitute_args, expand, macro_expand, macro_expand_next): Remove
9718 casts.
9719
f995bbe8
PA
97202017-04-05 Pedro Alves <palves@redhat.com>
9721
9722 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
9723 * disasm.c (set_disassembler_options): Constify local.
9724 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
9725
4a596fe2
SDJ
97262017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
9727
9728 PR gdb/21352
9729 * tracefile.c (tsave_command): Fix argument parsing for '-r'
9730 option.
9731
2cad08ea
YQ
97322017-04-05 Yao Qi <yao.qi@linaro.org>
9733
9734 * frame.c (frame_unwind_register_unsigned): Call
9735 frame_unwind_register_value.
9736
55a98976
YQ
97372017-04-05 Yao Qi <yao.qi@linaro.org>
9738
9739 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
9740 Use gdb_test_multiple, and don't match anchor.
9741
4ac40124
PA
97422017-04-05 Pedro Alves <palves@redhat.com>
9743
9744 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
9745 (Write After Approval): Remove Simon Marchi.
9746
c053b654
PA
97472017-04-05 Pedro Alves <palves@redhat.com>
9748
9749 * common/gdb_optional.h (optional::optional): Make constexpr and
9750 initialize m_dummy.
9751
4c7bf4f9
JB
97522017-04-04 John Baldwin <jhb@FreeBSD.org>
9753
9754 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
9755 (amd64fbsd_jmp_buf_reg_offset): Remove.
9756 (amd64fbsd_supply_uthread): Remove function.
9757 (amd64fbsd_collect_uthread): Remove function.
9758 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
9759 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
9760 (x86_64-*-freebsd*): Remove bsd-uthread.o.
9761 (fbsd-nat.c): Update comment.
9762 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
9763 (i386fbsd_jmp_buf_reg_offset): Remove.
9764 (i386fbsd_supply_uthread): Remove function.
9765 (i386fbsd_collect_uthread): Remove function.
9766 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
9767
1e1a8bef
JB
97682017-04-04 John Baldwin <jhb@FreeBSD.org>
9769
9770 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
9771 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
9772 * NEWS: Mention that support for FreeBSD/alpha was removed.
9773 * alpha-fbsd-tdep.c: Delete file.
9774 * config/alpha/fbsd.mh: Delete file.
9775 * configure.host: Delete alpha*-*-freebsd* and
9776 alpha*-*-kfreebsd*-gnu.
9777 * configure.tgt: Delete alpha*-*-freebsd* and
9778 alpha*-*-kfreebsd*-gnu.
9779
49907934
JB
97802017-04-04 John Baldwin <jhb@FreeBSD.org>
9781
9782 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
9783 amd64bsd_store_inferior_registers): Use ptid from regcache.
9784
6f77053d
PA
97852017-04-04 Pedro Alves <palves@redhat.com>
9786
9787 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
9788 data fields, make them private and add "m_" prefixes.
9789 (lnp_state_machine::lnp_state_machine): New ctor.
9790 (record_line, check_line_address, handle_set_discriminator)
9791 (handle_set_address, handle_advance_pc, handle_special_opcode)
9792 (handle_advance_line, handle_set_file, handle_negate_stmt)
9793 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
9794 (end_sequence, advance_line): New methods.
9795 (m_gdbarch, m_record_lines_p): New fields.
9796 (lnp_reader_state): Delete.
9797 (dwarf_record_line): Rename to ...
9798 (lnp_state_machine::record_line): ... adjust.
9799 (init_lnp_state_machine): Delete.
9800 (lnp_state_machine::lnp_state_machine): New.
9801 (check_line_address): Rename to ...
9802 (lnp_state_machine::check_line_address): This.
9803 (dwarf_decode_lines_1): Remove reference to "reader_state".
9804 Adjust lnp_state_machine having a non-default ctor. Use bool.
9805 State machine internal state manipulation moved to
9806 lnp_state_machine methods.
9807
9c541725
PA
98082017-04-04 Pedro Alves <palves@redhat.com>
9809
9810 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9811 unittests/offset-type-selftests.c.
9812 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
9813 * common/offset-type.h: New file.
9814 * common/preprocessor.h: New file.
9815 * common/traits.h: New file.
9816 * common/valid-expr.h: New file.
9817 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
9818 sect_offset and cu_offset strong typedefs throughout.
9819 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
9820 typedefs throughout.
9821 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
9822 sect_offset and cu_offset strong typedefs throughout.
9823 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
9824 typedefs throughout.
9825 * gdbtypes.h: Include "common/offset-type.h".
9826 (cu_offset): Now an offset type (strong typedef) instead of a
9827 struct.
9828 (sect_offset): Likewise.
9829 (union call_site_parameter_u): Rename "param_offset" field to
9830 "param_cu_off".
9831 * unittests/offset-type-selftests.c: New file.
9832
ecfb656c
PA
98332017-04-04 Pedro Alves <palves@redhat.com>
9834
9835 * common/underlying.h: New file.
9836 * dwarf2read.c: Include "common/gdb_optional.h" and
9837 "common/underlying.h".
9838 (dir_index, file_name_index): New types.
9839 (file_entry): Use them.
9840 (file_entry::include): Use to_underlying.
9841 (line_header::add_file_name): Use dir_index.
9842 (read_formatted_entries): Use gdb::optional. Read form before
9843 writting to file_entry.
9844 (dwarf_decode_line_header): Use dir_index.
9845 (lnp_state_machine::current_file): Use to_underlying.
9846 (lnp_state_machine::file): Change type to file_name_index.
9847 (dwarf_record_line): Use to_underlying.
9848 (init_lnp_state_machine): Use file_name_index.
9849 (dwarf_decode_lines_1): Use dir_index and file_name_index.
9850
d194f1fe
PA
98512017-04-04 Pedro Alves <palves@redhat.com>
9852
9853 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
9854 operator bool, has_value and get methods.
9855
fff8551c
PA
98562017-04-04 Pedro Alves <palves@redhat.com>
9857
9858 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
9859 fields.
9860 (line_header): Initialize all data fields. Change type of
9861 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
9862 Change type of include_dirs to std::vector<const char *>. Remove
9863 num_include_dirs, include_dirs_size. Change type of file_names to
9864 std::vector<file_entry>. Remove num_file_names, file_names_size.
9865 (line_header::line_header): New.
9866 (line_header::add_include_dir, line_header::add_file_name): New
9867 methods.
9868 (line_header::include_dir_at): Remove NULL check.
9869 (line_header::file_name_at): Add const overload.
9870 (line_header_up): New unique_ptr typedef.
9871 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
9872 std::vector. Remove free_line_header call.
9873 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
9874 free_line_header call.
9875 (free_cu_line_header): Delete.
9876 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
9877 (setup_type_unit_groups): Use line_header_up instead of cleanups.
9878 Adjust to use std::vector.
9879 (free_line_header): Delete.
9880 (free_line_header_voidp): Use delete.
9881 (add_include_dir): Replace with ...
9882 (line_header::add_include_dir): ... this method. Use std::vector.
9883 (add_file_name): Replace with ...
9884 (line_header::add_file_name): ... this method. Use std::vector.
9885 (add_include_dir_stub): Delete.
9886 (read_formatted_entries): Remove memset.
9887 (dwarf_decode_line_header): Return a line_header_up instead of a
9888 raw pointer. Remove cleanup handling. Pass lambdas to
9889 read_formatted_entries. Adjust to use line_header methods.
9890 (dwarf_decode_lines_1): Adjust to use line_header methods.
9891 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
9892 use std::vector.
9893
d62a8ae2
SM
98942017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
9895
9896 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
9897 instead of struct ptid.
9898
db3a1dc7
AH
98992017-05-04 Alan Hayward <alan.hayward@arm.com>
9900
9901 * frame.c (get_frame_register_bytes): Unwind using value.
9902 (put_frame_register_bytes): Likewise.
9903
b1b45502
IB
99042017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
9905
9906 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
9907 aggregate-like.
9908
ec13808e
JK
99092017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9910
9911 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
9912
12316564
YQ
99132017-03-29 Yao Qi <yao.qi@linaro.org>
9914
9915 * gdbthread.h (struct thread_info): Declare constructor and
9916 destructor. Add some in-class member initializers.
9917 * thread.c (free_thread): Remove.
9918 (init_thread_list): Call delete instead of free_thread.
9919 (new_thread): Call thread_info constructor.
9920 (thread_info::thread_info): New function.
9921 (thread_info::~thread_info): New function.
9922 (delete_thread_1): Call delete instead of free_thread.
9923 (make_cleanup_restore_current_thread): Move tp and frame to
9924 inner block.
9925
fe5f7374
AK
99262017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9927
9928 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
9929 (arc_skip_prologue): Likewise.
9930 (arc_make_frame_cache): Likewise.
9931 (arc_pv_get_operand): New function.
9932 (arc_is_in_prologue): Likewise.
9933 (arc_analyze_prologue): Likewise.
9934 (arc_print_frame_cache): Likewise.
9935 (MAX_PROLOGUE_LENGTH): New constant.
9936
eea78757
AK
99372017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9938
9939 * configure.tgt: Add arc-insn.o.
9940 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
9941 (dump_arc_instruction_command): New function.
9942 (arc_fprintf_disasm): Likewise.
9943 (arc_disassemble_info): Likewise.
9944 (arc_insn_get_operand_value): Likewise.
9945 (arc_insn_get_operand_value_signed): Likewise.
9946 (arc_insn_get_memory_base_reg): Likewise.
9947 (arc_insn_get_memory_offset): Likewise.
9948 (arc_insn_get_branch_target): Likewise.
9949 (arc_insn_dump): Likewise.
9950 (arc_insn_get_linear_next_pc): Likewise.
9951 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
9952 (arc_disassemble_info): Likewise.
9953 (arc_insn_get_branch_target): Likewise.
9954 (arc_insn_get_linear_next_pc): Likewise.
9955 * NEWS: Mention new "maint print arc arc-instruction".
9956
3be78afd
AK
99572017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9958
9959 * arc-tdep (maintenance_print_arc_list): New variable.
9960 (maintenance_print_arc_command): New function.
9961
296ec4fa
AK
99622017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
9963
9964 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
9965 Add "limm" and "reserved".
9966 (arc_cannot_fetch_register, arc_cannot_store_register): Add
9967 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
9968 * arc-tdep.h (arc_regnum): Likewise.
9969
f74f865e
MF
99702017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9971
9972 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
9973 for THREADPTR register.
9974 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
9975 register.
9976 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
9977 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
9978 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
9979
0d0bf81a
MF
99802017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9981
9982 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
9983 registers above gdbarch_num_regs (gdbarch) as privileged in
9984 call0 ABI.
9985
0ce4291e
MF
99862017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9987
9988 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
9989 for a single specified register or for all registers in
9990 a0_base..a0_base + C0_NREGS range.
9991 (supply_gregset_reg): Call regcache_raw_supply for a single
9992 specified register or for all registers in a0_base..a0_base +
9993 C0_NREGS range.
9994
c56054f9
MF
99952017-03-27 Max Filippov <jcmvbkbc@gmail.com>
9996
9997 * arch/xtensa.h (C0_NREGS): Add definition.
9998 * xtensa-tdep.c (C0_NREGS): Remove definition.
9999
a4398628
MF
100002017-03-27 Max Filippov <jcmvbkbc@gmail.com>
10001
10002 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
10003 Drop xtensa_default_isa initialization.
10004 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
10005
8c43009f
PA
100062017-03-27 Pedro Alves <palves@redhat.com>
10007
10008 * dwarf2read.c (file_entry) <dir_index>: Add comment.
10009 (file_entry::include_dir): New method.
10010 (line_header::include_dir_at, line_header::file_name_at): New
10011 methods.
10012 (setup_type_unit_groups, setup_type_unit_groups)
10013 (psymtab_include_file_name): Simplify using the new methods.
10014 (lnp_state_machine) <the_line_header>: New field.
10015 <file>: Add comment.
10016 (lnp_state_machine::current_file): New method.
10017 (dwarf_record_line): Simplify using the new methods.
10018 (init_lnp_state_machine): Initialize the "the_line_header" field.
10019 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
10020 Simplify using the new methods.
10021
a7e80b9e
PA
100222017-03-27 Pedro Alves <palves@redhat.com>
10023
10024 * cp-name-parser.y (make_empty): Delete.
10025 (demangler_special, nested_name, ptr_operator, array_indicator)
10026 (direct_declarator, declarator_1): Use fill_comp instead of
10027 make_empty.
10028
21047726
PA
100292017-03-27 Pedro Alves <palves@redhat.com>
10030
10031 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
10032 to ATTRIBUTE_PRINTF.
10033 * solib-target.c (library_list_start_list): Print "string" not
10034 "version".
10035 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
10036 gdb_xml_error call.
10037
d721ba37
PA
100382017-03-27 Pedro Alves <palves@redhat.com>
10039
10040 * dwarf2read.c (struct file_and_directory): New.
10041 (dwarf2_get_dwz_file): Adjust to use std::string.
10042 (dw2_get_file_names_reader): Adjust to use file_and_directory.
10043 (find_file_and_directory): Adjust to return a file_and_directory
10044 object.
10045 (read_file_scope): Adjust to use file_and_directory. Remove
10046 make_cleanup/do_cleanups calls.
10047 (open_and_init_dwp_file): Adjust to use std::string. Remove
10048 make_cleanup/do_cleanups calls.
10049 * python/python.c (do_start_initialization): Adjust to ldirname
10050 returning a std::string.
10051 * utils.c (ldirname): Now returns a std::string.
10052 * utils.h (ldirname): Change return type to std::string.
10053 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
10054 returning a std::string.
10055 * xml-tdesc.c (file_read_description_xml): Likewise.
10056
ed771251
AH
100572017-03-24 Alan Hayward <alan.hayward@arm.com>
10058
10059 * regcache.c (regcache_debug_print_register): New function.
10060 * regcache.h (regcache_debug_print_register): New declaration.
10061 * target.c (debug_print_register): Remove.
10062 (target_fetch_registers): Call regcache_debug_print_register.
10063 (target_store_registers): Likewise.
10064
568c1b9f
PB
100652017-03-24 Pádraig Brady <pbrady@fb.com>
10066
10067 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
10068 reference beyond the 'lh->include_dirs' array before accessing to
10069 it.
10070 (psymtab_include_file_name): Likewise.
10071 (dwarf_decode_lines_1): Likewise.
10072 (dwarf_decode_lines): Likewise.
10073 (file_file_name): Likewise.
10074
3e00d44f
SM
100752017-03-23 Simon Marchi <simon.marchi@ericsson.com>
10076
10077 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
10078 inferior_ptid.
10079 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
10080 ps_lsetfpregs): Likewise.
10081 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
10082 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
10083 ps_lsetfpregs): Likewise.
10084 * target.c (target_fetch_registers, target_store_registers):
10085 Remove asserts.
10086
077ae656
AH
100872017-03-23 Alan Hayward <alan.hayward@arm.com>
10088
10089 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
10090
1e2b521d
YQ
100912017-03-23 Yao Qi <yao.qi@linaro.org>
10092
10093 * aarch64-tdep.c (aarch64_process_record_test): Declare.
10094 (_initialize_aarch64_tdep): Register it.
10095 (aarch64_record_load_store): Handle PRFM instruction.
10096 (aarch64_process_record_test): New function.
10097
33877125
YQ
100982017-03-23 Yao Qi <yao.qi@linaro.org>
10099
10100 * aarch64-tdep.c (aarch64_record_load_store): Fix code
10101 indentation.
10102
a0eef940
YQ
101032017-03-23 Yao Qi <yao.qi@linaro.org>
10104
10105 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
10106
3f2a3564
PR
101072017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
10108
10109 python/python.c (do_start_initialization): Fix memory leak.
10110
b67aeab0
SM
101112017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10112
10113 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
10114 using get_ptrace_pid.
10115 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
10116 inferior_ptid.
10117 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
10118 inferior_ptid instead of pid.
10119
ffdbe864
YQ
101202017-03-22 Yao Qi <yao.qi@linaro.org>
10121
10122 * aarch64-tdep.c: Wrap locally used classes in anonymous
10123 namespace.
10124 * arm-tdep.c: Likewise.
10125 * linespec.c: Likewise.
10126 * ui-out.c: Likewise.
10127
9d736fbf
JG
101282017-03-22 Jonah Graham <jonah@kichwacoders.com>
10129
10130 PR gdb/19637
10131 * python/lib/gdb/printer/bound_registers.py: Import sys.
10132
3de88e9a
SM
101332017-03-21 Simon Marchi <simon.marchi@ericsson.com>
10134
10135 * windows-nat.c (do_windows_fetch_inferior_registers): Add
10136 windows_thread_info parameter and use it instead of
10137 current_thread.
10138 (windows_fetch_inferior_registers): Don't set current_thread,
10139 pass the thread to do_windows_fetch_inferior_registers. Use
10140 ptid from regcache instead of inferior_ptid.
10141 (do_windows_store_inferior_registers): Add windows_thread_info
10142 parameter and use it instead of current_thread.
10143 (windows_store_inferior_registers): Don't set current_thread,
10144 pass the thread to do_windows_store_inferior_registers. Use
10145 ptid from regcache instead of inferior_ptid.
10146
0e7b8f61
SM
101472017-03-21 Simon Marchi <simon.marchi@ericsson.com>
10148
10149 * ser-mingw.c (ser_windows_raw): Remove reference to
10150 struct serial::current_timeout.
10151
5badf10a
IR
101522017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
10153
10154 PR tdep/20928
10155 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
10156 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
10157 (sparc64_fsr_type): Fix %fsr decoding.
10158
cee59b3f
TW
101592017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
10160
10161 * python/py-record-btrace.c (btpy_insn_data): Change return type
10162 for Python 2.
10163
639a9038
SM
101642017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
10165
10166 * spu-linux-nat.c (spu_fetch_inferior_registers,
10167 spu_store_inferior_registers): Use ptid from regcache, set and
10168 restore inferior_ptid.
10169 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
10170 Likewise.
10171
bcc0c096
SM
101722017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
10173
10174 * i386-linux-nat.c (fetch_register, store_register,
10175 i386_linux_fetch_inferior_registers,
10176 i386_linux_store_inferior_registers): Use ptid from regcache.
10177 * ia64-linux-nat.c (ia64_linux_fetch_register,
10178 ia64_linux_store_register): Likewise.
10179 * inf-ptrace.c (inf_ptrace_fetch_register,
10180 inf_ptrace_store_register): Likewise.
10181 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
10182 m32r_linux_store_inferior_registers): Likewise.
10183 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
10184 m68kbsd_store_inferior_registers): Likewise.
10185 * m68k-linux-nat.c (fetch_register, store_register,
10186 m68k_linux_fetch_inferior_registers,
10187 m68k_linux_store_inferior_registers): Likewise.
10188 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
10189 m88kbsd_store_inferior_registers): Likewise.
10190 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
10191 mips_fbsd_store_inferior_registers): Likewise.
10192 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
10193 mips64_linux_regsets_store_registers): Likewise.
10194 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
10195 mipsnbsd_store_inferior_registers): Likewise.
10196 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
10197 mips64obsd_store_inferior_registers): Likewise.
10198 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
10199 Likewise.
10200 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
10201 ppcfbsd_store_inferior_registers): Likewise.
10202 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
10203 ppc_linux_store_inferior_registers): Likewise.
10204 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
10205 ppcnbsd_store_inferior_registers): Likewise.
10206 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
10207 ppcobsd_store_registers): Likewise.
10208 * procfs.c (procfs_fetch_registers, procfs_store_registers):
10209 Likewise.
10210 * ravenscar-thread.c (ravenscar_fetch_registers,
10211 ravenscar_store_registers, ravenscar_prepare_to_store):
10212 Likewise.
10213 * record-btrace.c (record_btrace_fetch_registers,
10214 record_btrace_store_registers, record_btrace_prepare_to_store):
10215 Likewise.
10216 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
10217 Lookup inferior using ptid from regcache, instead of
10218 current_inferior.
10219 * remote.c (remote_fetch_registers, remote_store_registers): Use
10220 ptid from regcache.
10221 * rs6000-nat.c (fetch_register, store_register): Likewise.
10222 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
10223 s390_linux_store_inferior_registers): Likewise.
10224 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
10225 shnbsd_store_inferior_registers): Likewise.
10226 * sol-thread.c (sol_thread_fetch_registers,
10227 sol_thread_store_registers): Likewise.
10228 * sparc-nat.c (sparc_fetch_inferior_registers,
10229 sparc_store_inferior_registers): Likewise.
10230 * tilegx-linux-nat.c (fetch_inferior_registers,
10231 store_inferior_registers): Likewise.
10232 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
10233 vaxbsd_store_inferior_registers): Likewise.
10234 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
10235 store_xtregs): Likewise.
10236
c0f55cc6
AV
102372017-03-20 Artemiy Volkov <artemiyv@acm.org>
10238
10239 PR gdb/14441
10240 * NEWS: Mention support for rvalue references in GDB and python.
10241 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
10242 supports both lvalue and rvalue references.
10243
15c0a2a9
AV
102442017-03-20 Artemiy Volkov <artemiyv@acm.org>
10245
10246 PR gdb/14441
10247 * gdbtypes.c (rank_one_type): Implement overloading
10248 resolution rules regarding rvalue references.
10249
aa006118
AV
102502017-03-20 Artemiy Volkov <artemiyv@acm.org>
10251
10252 PR gdb/14441
10253 * aarch64-tdep.c (aarch64_type_align)
10254 (aarch64_extract_return_value, aarch64_store_return_value): Change
10255 lvalue reference type checks to general reference type checks.
10256 * amd64-tdep.c (amd64_classify): Likewise.
10257 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
10258 Likewise.
10259 * arm-tdep.c (arm_type_align, arm_extract_return_value)
10260 (arm_store_return_value): Likewise.
10261 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
10262 * c-typeprint.c (c_print_type): Likewise.
10263 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
10264 (cplus_number_of_children, cplus_describe_child): Likewise.
10265 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
10266 * completer.c (expression_completer): Likewise.
10267 * cp-support.c (make_symbol_overload_list_adl_namespace):
10268 Likewise.
10269 * darwin-nat-info.c (info_mach_region_command): Likewise.
10270 * dwarf2loc.c (entry_data_value_coerce_ref)
10271 (value_of_dwarf_reg_entry): Likewise.
10272 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
10273 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
10274 Likewise.
10275 * findvar.c (extract_typed_address, store_typed_address):
10276 Likewise.
10277 * gdbtypes.c (rank_one_type): Likewise.
10278 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
10279 * infcall.c (value_arg_coerce): Likewise.
10280 * language.c (pointer_type): Likewise.
10281 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
10282 Likewise.
10283 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
10284 * mn10300-tdep.c (mn10300_type_align): Likewise.
10285 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
10286 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
10287 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
10288 Likewise.
10289 * printcmd.c (print_formatted, x_command): Likewise.
10290 * python/py-type.c (typy_get_composite, typy_template_argument):
10291 Likewise.
10292 * python/py-value.c (valpy_referenced_value)
10293 (valpy_get_dynamic_type, value_has_field): Likewise.
10294 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
10295 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
10296 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
10297 * spu-tdep.c (spu_scalar_value_p): Likewise.
10298 * symtab.c (lookup_symbol_aux): Likewise.
10299 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
10300 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
10301 Likewise.
10302 * valops.c (value_cast_pointers, value_cast)
10303 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
10304 (value_struct_elt, value_struct_elt_bitpos)
10305 (value_find_oload_method_list, find_overload_match)
10306 (value_rtti_indirect_type): Likewise.
10307 * valprint.c (val_print_scalar_type_p, generic_val_print):
10308 Likewise.
10309 * value.c (value_actual_type, value_as_address, unpack_long)
10310 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
10311 (coerce_ref): Likewise.
10312 * varobj.c (varobj_get_value_type): Likewise.
10313
3fcf899d
AV
103142017-03-20 Artemiy Volkov <artemiyv@acm.org>
10315
10316 PR gdb/14441
10317 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
10318 table of constants.
10319 * python/lib/gdb/command/explore.py: Support exploring values
10320 of rvalue reference types.
10321 * python/lib/gdb/types.py: Implement get_basic_type() for
10322 rvalue reference types.
10323 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
10324 constant.
10325 * python/py-value.c (valpy_getitem): Add an rvalue reference
10326 check.
10327 (valpy_reference_value): Add new parameter "refcode".
10328 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
10329 New wrappers for valpy_reference_value().
10330 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
10331 (gdbpy_invoke_xmethod): Likewise.
10332
4297a3f0
AV
103332017-03-20 Artemiy Volkov <artemiyv@acm.org>
10334
10335 PR gdb/14441
10336 * dwarf2read.c (process_die, read_type_die_1): Handle the
10337 DW_TAG_rvalue_reference_type DIE.
10338 (read_tag_reference_type): Add new parameter "refcode".
10339
e1cb3213
AV
103402017-03-20 Artemiy Volkov <artemiyv@acm.org>
10341
10342 PR gdb/14441
10343 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
10344 (c_type_print_modifier, c_type_print_varspec_suffix)
10345 (c_type_print_base): Support printing rvalue reference types.
10346 * c-valprint.c (c_val_print, c_value_print): Support printing
10347 rvalue reference values.
10348
e4347c89
AV
103492017-03-20 Artemiy Volkov <artemiyv@acm.org>
10350
10351 PR gdb/14441
10352 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
10353 typename.
10354 * cp-support.c (replace_typedefs): Handle
10355 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
10356 * python/py-type.c (typy_lookup_type): Likewise.
10357
53cc15f5
AV
103582017-03-20 Artemiy Volkov <artemiyv@acm.org>
10359
10360 PR gdb/14441
10361 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
10362 * parse.c (insert_type): Change assert statement.
10363 (follow_types): Handle rvalue reference types.
10364 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
10365 constant.
10366
a65cfae5
AV
103672017-03-20 Artemiy Volkov <artemiyv@acm.org>
10368
10369 PR gdb/14441
10370 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
10371 value_ref() interface.
10372 * c-valprint.c (c_value_print): Likewise.
10373 * infcall.c (value_arg_coerce): Likewise.
10374 * python/py-value.c (valpy_reference_value): Likewise.
10375 * valops.c (value_cast, value_reinterpret_cast)
10376 (value_dynamic_cast, typecmp): Likewise.
10377 (value_ref): Parameterize by kind of return value reference type.
10378 * value.h (value_ref): Add new parameter "refcode".
10379
3b224330
AV
103802017-03-20 Artemiy Volkov <artemiyv@acm.org>
10381
10382 PR gdb/14441
10383 * dwarf2read.c (read_tag_reference_type): Use
10384 lookup_lvalue_reference_type() instead of lookup_reference_type().
10385 * eval.c (evaluate_subexp_standard): Likewise.
10386 * f-exp.y: Likewise.
10387 * gdbtypes.c (make_reference_type, lookup_reference_type):
10388 Generalize with rvalue reference types.
10389 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
10390 convenience wrappers for lookup_reference_type().
10391 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
10392 reference kind parameter.
10393 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
10394 wrappers for lookup_reference_type().
10395 * guile/scm-type.c (gdbscm_type_reference): Use
10396 lookup_lvalue_reference_type() instead of lookup_reference_type().
10397 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
10398 * parse.c (follow_types): Likewise.
10399 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
10400 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
10401 Likewise.
10402 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
10403 (gdbpy_invoke_xmethod): Likewise.
10404 * stabsread.c: Provide extra argument to make_reference_type()
10405 call.
10406 * valops.c (value_ref, value_rtti_indirect_type): Use
10407 lookup_lvalue_reference_type() instead of lookup_reference_type().
10408
f9aeb8d4
AV
104092017-03-20 Artemiy Volkov <artemiyv@acm.org>
10410
10411 PR gdb/14441
10412 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
10413 (TYPE_IS_REFERENCE): New macro.
10414 (struct type): Add rvalue_reference_type field.
10415 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
10416
51457a05
MAL
104172017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10418
10419 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
10420 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
10421 New function definition.
10422 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
10423 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
10424 New function declaration.
10425 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
10426 * mi/mi-interp.h: New file.
10427 * solib.c (info_sharedlibrary_command): Replace for loop with
10428 ALL_SO_LIBS macro
10429 * solib.h (update_solib_list): New function declaration.
10430 (so_list_head): Move macro.
10431 * solist.h (ALL_SO_LIBS): New macro.
10432
e696b3ad
MAL
104332017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
10434
10435 * infcmd.c (post_create_inferior): Remove unused argument in
10436 call to solib_add.
10437 * remote.c (remote_start_remote): Likewise.
10438 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
10439 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
10440 (enable_break): Likewise.
10441 * solib.c (update_solib_list): Remove unused target argument
10442 and its documentation.
10443 (solib_add): Remove unused target argument. Remove unused
10444 argument in call to update_solib_list.
10445 (info_sharedlibrary_command): Remove unused argument in call
10446 to update_solib_list.
10447 (sharedlibrary_command): Remove unused argument in call to
10448 solib_add.
10449 (handle_solib_event): Likewise.
10450 (reload_shared_libraries): Likewise.
10451 * solib.h (solib_add): Remove unused target argument.
10452
dcb84eda
AA
104532017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
10454
10455 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
10456 (s390_displaced_step_fixup): Cover relative branches with the
10457 default fixup handling. This fixes lack of support for some
10458 relative branch instructions.
10459
d9cb6cdc
SM
104602017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10461
10462 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
10463 ptid from regcache.
10464
1afaf9f4
SM
104652017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10466
10467 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
10468 i386_darwin_store_inferior_registers): Use ptid from regcache.
10469
aac12e24
SM
104702017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10471
10472 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
10473 i386bsd_store_inferior_registers): Use ptid from regcache.
10474
bbe1eef1
SM
104752017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10476
10477 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
10478 hppaobsd_store_registers): Use ptid from regcache.
10479
10799020
SM
104802017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10481
10482 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
10483 hppanbsd_store_registers): Use ptid from regcache.
10484
00204cf7
SM
104852017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10486
10487 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
10488 from regcache. Use get_ptrace_pid.
10489
11a33714
SM
104902017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10491
10492 * corelow.c (get_core_register_section): Use ptid from regcache,
10493 update doc.
10494
317cd492
SM
104952017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10496
10497 * bsd-uthread.c (bsd_uthread_fetch_registers,
10498 bsd_uthread_store_registers): Use ptid from regcache, set and
10499 restore inferior_ptid.
10500
9ac8a7c2
SM
105012017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10502
10503 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
10504 fetch_fp_regs, store_register, store_regs, store_fp_register,
10505 store_fp_regs): Use ptid from regcache.
10506
4ac4bb6a
SM
105072017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
10508
10509 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
10510 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
10511 store_vfp_regs): Use ptid from regcache.
10512
9bcbdca8
PA
105132017-03-17 Pedro Alves <palves@redhat.com>
10514
10515 PR remote/21188
10516 * ser-base.c (ser_base_wait_for): Add comment.
10517 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
10518 version.
10519 * ser-unix.c (hardwire_raw): Remove reference to
10520 scb->current_timeout.
10521 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
10522 (hardwire_ops): Install ser_base_readchar instead of
10523 hardwire_readchar.
10524 * serial.h (struct serial) <current_timeout, timeout_remaining>:
10525 Remove fields.
10526
7503099f
JG
105272017-03-17 Jonah Graham <jonah@kichwacoders.com>
10528
10529 PR gdb/19637
10530 * python/lib/gdb/printer/bound_registers.py: Add support for
10531 Python 3.
10532
7942e96e
AA
105332017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
10534
10535 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
10536 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
10537 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
10538 byte_offset to subobj_byte_offset. Fix the handling of
10539 DWARF_VALUE_STACK on big-endian targets when coming via an
10540 implicit pointer.
10541 (dwarf2_evaluate_loc_desc): Adjust call to
10542 dwarf2_evaluate_loc_desc_full.
10543 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
10544 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
10545
ba14f379
YQ
105462017-03-16 Yao Qi <yao.qi@linaro.org>
10547
10548 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
10549 and REVSH instructions.
10550
b121eeb9
YQ
105512017-03-16 Yao Qi <yao.qi@linaro.org>
10552
10553 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
10554 (arm_record_test): Declare.
10555 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
10556 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
10557 align with the manual.
10558 (thumb_record_misc): Adjust the code order to align with the
10559 manual.
10560 (thumb2_record_decode_insn_handler): Fix instruction matching.
10561 (instruction_reader_thumb): New class.
10562 (arm_record_test): New function.
10563
728a7913
YQ
105642017-03-16 Yao Qi <yao.qi@linaro.org>
10565
10566 * arm-tdep.c (abstract_memory_reader): New class.
10567 (instruction_reader): New class.
10568 (extract_arm_insn): Add argument 'reader'. Callers updated.
10569 (decode_insn): Likewise.
10570
34b43320
DE
105712017-03-16 Doug Evans <dje@google.com>
10572
a7c0469f
DE
10573 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
10574 member. Change type of TYPE member to SCM. All uses updated.
10575 (lsscm_make_lazy_string_smob): Add assert.
10576 (lsscm_make_lazy_string): Flag bad length values.
10577 (lsscm_elt_type): New function.
10578 (gdbscm_lazy_string_to_value): Rewrite to use
10579 lsscm_safe_lazy_string_to_value.
10580 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
10581 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
10582 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
10583 in incoming type.
10584 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
10585 * guile/scm-type.c (tyscm_scm_to_type): New function.
10586
105872017-03-15 Doug Evans <dje@google.com>
10588
34b43320
DE
10589 PR python/17728, python/18439, python/18779
10590 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
10591 member. Change type of TYPE member to PyObject *. All uses updated.
10592 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
10593 (gdbpy_create_lazy_string_object): Flag bad length values.
10594 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
10595 Handle typedefs in incoming type.
10596 (stpy_lazy_string_elt_type): New function.
10597 (gdbpy_extract_lazy_string): Call it.
10598 * python/py-value.c (valpy_lazy_string): Flag bad length values.
10599 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
10600 typedefs in incoming type.
10601
a3a5fecc
DE
106022017-03-16 Doug Evans <dje@google.com>
10603
10604 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
10605 * guile/scm-type.c (tyscm_scm_to_type): New function.
10606
28f1c605
JW
106072017-03-16 Jiong Wang <jiong.wang@arm.com>
10608
10609 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
10610 "ULONGEST" for "skip".
10611
87c336f6
AA
106122017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
10613
10614 PR gdb/21220
10615 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
10616 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
10617 (inf_ptrace_peek_poke): ...here. New function. Now also loop
10618 over ptrace peek/poke until end of buffer or error.
10619
cf81cf60
SM
106202017-03-14 Simon Marchi <simon.marchi@ericsson.com>
10621
10622 * parse.c (length_of_subexp): Make static.
10623 * parser-defs.h (length_of_subexp): Remove.
10624
a379284a
AA
106252017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
10626
10627 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
10628 as well.
10629
8a6200ba
PA
106302017-03-14 Pedro Alves <palves@redhat.com>
10631
10632 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
10633 (main): Use std::unique_ptr. Remove calls to
10634 cp_demangled_name_parse_free.
10635
f79ec206
SM
106362017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10637
10638 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
10639 alphabsd_store_inferior_registers): Use regcache->ptid instead
10640 of inferior_ptid.
10641
edb5fb00
SM
106422017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10643
10644 * aix-thread.c (aix_thread_fetch_registers,
10645 aix_thread_store_registers): Use regcache->ptid instead of
10646 inferior_ptid.
10647
55119686
SM
106482017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10649
10650 * aarch64-linux-nat.c (fetch_gregs_from_thread,
10651 store_gregs_to_thread, fetch_fpregs_from_thread,
10652 store_fpregs_to_thread): Use regcache->ptid instead of
10653 inferior_ptid.
10654
6a06fbb7
SM
106552017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10656
10657 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
10658 amd64_linux_fetch_inferior_registers): Use regcache->ptid
10659 instead of inferior_ptid.
10660
c6386875
SM
106612017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10662
10663 * target.c (target_fetch_registers, target_store_registers): Add
10664 assert.
10665
ddaaf0fb
SM
106662017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
10667
10668 * regcache.h (regcache_get_ptid): New function.
10669 * regcache.c (regcache_get_ptid): New function.
10670
b9da89d1 106712017-03-13 Mark Wielaard <mark@klomp.org>
10672
10673 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
10674
5f4d1085
KS
106752017-03-10 Keith Seitz <keiths@redhat.com>
10676
10677 PR c++/8218
10678 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
10679
c65d6b55
PA
106802017-03-08 Pedro Alves <palves@redhat.com>
10681
10682 PR gdb/18360
10683 * infrun.c (start_step_over, do_target_resume, resume)
10684 (restart_threads): Assert we're not resuming a thread that is
10685 meant to be stopped.
10686 (infrun_thread_stop_requested_callback): Delete.
10687 (infrun_thread_stop_requested): If the thread is internally
10688 stopped, queue a pending stop event and clear the thread's
10689 inline-frame state.
10690 (handle_stop_requested): New function.
10691 (handle_syscall_event, handle_inferior_event_1): Use
10692 handle_stop_requested.
10693 (handle_stop_requested): New function.
10694 (handle_signal_stop): Set the thread's stop_signal here instead of
10695 at caller.
10696 (finish_step_over): Clear step over info unconditionally.
10697 (handle_signal_stop): If the user had interrupted the event
10698 thread, consider the stop a random signal.
10699 (handle_signal_stop) <signal arrived while stepping over
10700 breakpoint>: Don't restart threads here.
10701 (stop_waiting): Don't clear step-over info here.
10702
15c22686
PA
107032017-03-08 Pedro Alves <palves@redhat.com>
10704
10705 PR 21206
10706 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
10707 goes to argument 2, not 1.
10708
6e5d74e7
PA
107092017-03-08 Pedro Alves <palves@redhat.com>
10710
10711 PR cli/21218
10712 * top.c (gdb_readline_wrapper): Avoid passing NULL to
10713 display_gdb_prompt.
10714 (command_line_input): Add comment.
10715
9753a2f6
PA
107162017-03-08 Pedro Alves <palves@redhat.com>
10717
10718 PR tui/21216
10719 * tui/tui-file.c (tui_file::write): New.
10720 * tui/tui-file.h (tui_file): Override "write".
10721 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
10722 factored out from ...
10723 (tui_puts): ... here.
10724 (tui_putc): Use them.
10725 (tui_write): New function.
10726 * tui/tui-io.h (tui_write): Declare.
10727
1672e0d9
SDJ
107282017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
10729
10730 * Makefile.in (SFILES): Replace "environ.c" with
10731 "common/environ.c".
10732 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
10733 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
10734 to...
10735 * common/environ.c: ... here.
10736 * environ.h: Moved to...
10737 * common/environ.h: ... here.
10738
f7bb4e3a
PB
107392017-03-07 Peter Bergner <bergner@vnet.ibm.com>
10740
10741 * gdbarch.sh (pstring_ptr): New static function.
10742 (gdbarch_disassembler_options): Use it.
10743 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
10744 not valid_disassembler_option->name.
10745 * gdbarch.c: Regenerate.
10746
e45ced6c
PB
107472017-03-07 Peter Bergner <bergner@vnet.ibm.com>
10748
10749 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
10750
5f6fd321
PA
107512017-03-07 Pedro Alves <palves@redhat.com>
10752
10753 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
10754
6dbb839a 107552017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
10756
10757 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
10758 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
10759 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 10760 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 10761
d274ecf4
SM
107622017-03-06 Simon Marchi <simon.marchi@ericsson.com>
10763
10764 * xtensa-linux-nat.c (fetch_gregs): Remove const.
10765
df97be55
SM
107662017-03-03 Simon Marchi <simon.marchi@ericsson.com>
10767
10768 * remote.c (remote_add_target_side_commands): Use range-based
10769 for loop.
10770
7d45f3df
YQ
107712017-03-03 Yao Qi <yao.qi@linaro.org>
10772
10773 PR gdb/21165
10774 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
10775 value is lazy.
10776 * valprint.c (common_val_print): Likewise.
10777
65b48a81
PB
107782017-02-28 Peter Bergner <bergner@vnet.ibm.com>
10779
10780 * NEWS: Mention new set/show disassembler-options commands.
10781 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
10782 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
10783 (prospective_options): New static variable.
10784 (gdb_disassembler::gdb_disassembler): Initialize
10785 m_di.disassembler_options.
10786 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
10787 (get_disassembler_options): New function.
10788 (set_disassembler_options): Likewise.
10789 (set_disassembler_options_sfunc): Likewise.
10790 (show_disassembler_options_sfunc): Likewise.
10791 (disassembler_options_completer): Likewise.
10792 (_initialize_disasm): Likewise.
10793 * disasm.h (get_disassembler_options): New prototype.
10794 (set_disassembler_options): Likewise.
10795 * gdbarch.sh (gdbarch_disassembler_options): New variable.
10796 (gdbarch_verify_disassembler_options): Likewise.
10797 * gdbarch.c: Regenerate.
10798 * gdbarch.h: Likewise.
10799 * arm-tdep.c (num_disassembly_options): Delete.
10800 (set_disassembly_style): Likewise.
10801 (arm_disassembler_options): New static variable.
10802 (set_disassembly_style_sfunc): Convert short style name into long
10803 option name. Call set_disassembler_options.
10804 (show_disassembly_style_sfunc): New function.
10805 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
10806 set_gdbarch_verify_disassembler_options.
10807 (_initialize_arm_tdep): Delete regnames variable and update callers.
10808 (arm_disassembler_options): Initialize.
10809 (disasm_options): New variable.
10810 (num_disassembly_options): Rename from this...
10811 (num_disassembly_styles): ...to this. Compute by scanning through
10812 disasm_options.
10813 (valid_disassembly_styles): Initialize using disasm_options.
10814 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
10815 set_arm_regname_option.
10816 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
10817 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
10818 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
10819 set_gdbarch_verify_disassembler_options.
10820 * s390-tdep.c (s390_disassembler_options): New static variable.
10821 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
10822 set_gdbarch_verify_disassembler_options.
10823
d538e36d
SM
108242017-02-27 Simon Marchi <simon.marchi@ericsson.com>
10825
10826 * remote.c (remote_add_target_side_condition): Remove "struct"
10827 keyword from range-based for loop.
10828
83621223
SM
108292017-02-27 Simon Marchi <simon.marchi@ericsson.com>
10830
10831 * remote.c (remote_add_target_side_condition): Use range-based
10832 for loop. Update comment.
10833
2123df0e
YQ
108342017-02-27 Yao Qi <yao.qi@linaro.org>
10835
10836 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
10837
8e368124
AH
108382017-02-26 Alan Hayward <alan.hayward@arm.com>
10839
10840 * regcache.c (regcache_raw_update): New function.
10841 (regcache_raw_read): Move code to regcache_raw_update.
10842 * regcache.h (regcache_raw_update): New declaration.
10843 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
10844
a49dd8dd
JK
108452017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10846
10847 * dwarf2read.c (create_debug_type_hash_table): Initialize
10848 header.signature and header.type_offset_in_tu.
10849
34e4bae9
PA
108502017-02-24 Pedro Alves <palves@redhat.com>
10851
10852 * symtab.c (make_file_symbol_completion_list_1): Use
10853 add_symtab_completions.
10854
b0e4b369
AH
108552017-02-24 Alan Hayward <alan.hayward@arm.com>
10856
10857 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
10858
975c21ab
AH
108592017-02-24 Alan Hayward <alan.hayward@arm.com>
10860
10861 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
10862 I386_MAX_REGISTER_SIZE.
10863 (i386_pseudo_register_write): Likewise.
10864 (i386_process_record): Likewise.
10865 * i387-tdep.c (i387_supply_xsave): Likewise.
10866 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
10867 (store_register): Likewise.
10868
14bc53a8
PA
108692017-02-23 Pedro Alves <palves@redhat.com>
10870
10871 * ada-lang.c: Include "common/function-view.h".
10872 (ada_iterate_over_symbols): Adjust to use function_view as
10873 callback type.
10874 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
10875 (ada_make_symbol_completion_list): Use a lambda.
10876 (ada_exc_search_name_matches): Delete.
10877 (name_matches_regex): New.
10878 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
10879 * compile/compile-c-support.c: Include "common/function-view.h".
10880 (print_one_macro): Change prototype to accept a ui_file pointer.
10881 (write_macro_definitions): Use a lambda.
10882 * dwarf2read.c: Include "common/function-view.h".
10883 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
10884 (dw2_expand_symtabs_matching): Adjust to use function_view as
10885 callback type.
10886 * language.h: Include "common/function-view.h".
10887 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
10888 function_view as callback type.
10889 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
10890 * linespec.c: Include "common/function-view.h".
10891 (collect_info::add_symbol): New method.
10892 (struct symbol_and_data_callback, iterate_inline_only, struct
10893 symbol_matcher_data, iterate_name_matcher): Delete.
10894 (iterate_over_all_matching_symtabs): Adjust to use function_view
10895 as callback type and lambdas.
10896 (iterate_over_file_blocks): Adjust to use function_view as
10897 callback type.
10898 (decode_compound_collector): Now a class with private fields.
10899 (decode_compound_collector::release_symbols): New method.
10900 (collect_one_symbol): Rename to...
10901 (decode_compound_collector::operator()): ... this and adjust.
10902 (lookup_prefix_sym): decode_compound_collector construction bits
10903 move to decode_compound_collector ctor. Pass the
10904 decode_compound_collector object directly as callback. Remove
10905 cleanups and use decode_compound_collector::release_symbols
10906 instead.
10907 (symtab_collector): Now a class with private fields.
10908 (symtab_collector::release_symtabs): New method.
10909 (add_symtabs_to_list): Rename to...
10910 (symtab_collector::operator()): ... this and adjust.
10911 (collect_symtabs_from_filename): symtab_collector construction
10912 bits move to symtab_collector ctor. Pass the symtab_collector
10913 object directly as callback. Remove cleanups and use
10914 symtab_collector::release_symtabs instead.
10915 (collect_symbols): Delete.
10916 (add_matching_symbols_to_info): Use lambdas.
10917 * macrocmd.c (print_macro_callback): Delete.
10918 (info_macro_command): Use a lambda.
10919 (info_macros_command): Pass print_macro_definition as callable
10920 directly.
10921 (print_one_macro): Remove 'ignore' parameter.
10922 (macro_list_command): Adjust.
10923 * macrotab.c (macro_for_each_data::fn): Now a function_view.
10924 (macro_for_each_data::user_data): Delete field.
10925 (foreach_macro): Adjust to call the function_view.
10926 (macro_for_each): Adjust to use function_view as callback type.
10927 (foreach_macro_in_scope): Adjust to call the function_view.
10928 (macro_for_each_in_scope): Adjust to use function_view as callback
10929 type.
10930 * macrotab.h: Include "common/function-view.h".
10931 (macro_callback_fn): Declare a prototype instead of a pointer.
10932 Remove "user_data" parameter.
10933 (macro_for_each, macro_for_each_in_scope): Adjust to use
10934 function_view as callback type.
10935 * psymtab.c (partial_map_expand_apply)
10936 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
10937 Adjust to use function_view as callback type and to return bool.
10938 (psym_expand_symtabs_matching): Adjust to use function_view as
10939 callback types.
10940 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
10941 to use function_view as callback type and to return bool.
10942 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
10943 callback types.
10944 * symfile.c (expand_symtabs_matching): Adjust to use function_view
10945 as callback types.
10946 * symfile.h: Include "common/function-view.h".
10947 (expand_symtabs_file_matcher_ftype)
10948 (expand_symtabs_symbol_matcher_ftype)
10949 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
10950 return bool.
10951 (quick_symbol_functions::map_symtabs_matching_filename)
10952 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
10953 function_view as callback type and return bool.
10954 (expand_symtabs_matching): Adjust to use function_view as callback
10955 type.
10956 (maintenance_expand_name_matcher)
10957 (maintenance_expand_file_matcher): Delete.
10958 (maintenance_expand_symtabs): Use lambdas.
10959 * symtab.c (iterate_over_some_symtabs): Adjust to use
10960 function_view as callback types and return bool.
10961 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
10962 of a cleanup.
10963 (lookup_symtab_callback): Delete.
10964 (lookup_symtab): Use a lambda.
10965 (iterate_over_symbols): Adjust to use function_view as callback
10966 type.
10967 (struct search_symbols_data, search_symbols_file_matches)
10968 (search_symbols_name_matches): Delete.
10969 (search_symbols): Use a pair of lambdas.
10970 (struct add_name_data, add_macro_name, symbol_completion_matcher)
10971 (symtab_expansion_callback): Delete.
10972 (default_make_symbol_completion_list_break_on_1): Use lambdas.
10973 * symtab.h: Include "common/function-view.h".
10974 (iterate_over_some_symtabs): Adjust to use function_view as
10975 callback type and return bool.
10976 (iterate_over_symtabs): Adjust to use function_view as callback
10977 type.
10978 (symbol_found_callback_ftype): Remove 'data' parameter and return
10979 bool.
10980 (iterate_over_symbols): Adjust to use function_view as callback
10981 type.
10982
07e253aa
PA
109832017-02-23 Pedro Alves <palves@redhat.com>
10984
10985 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
10986 (%.o) <unittests/%.c>: New pattern.
10987 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
10988 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
10989 * common/function-view.h: New file.
10990 * unittests/function-view-selftests.c: New file.
10991 * configure: Regenerate.
10992
8eaf5320
SM
109932017-02-23 Simon Marchi <simon.marchi@ericsson.com>
10994
10995 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
10996 inferior_ptid.
10997 * go32-nat.c (go32_thread_alive): Likewise.
10998
38768751
YQ
109992017-02-23 Yao Qi <yao.qi@linaro.org>
11000
11001 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
11002 delete.
11003
0a8beaba
YQ
110042017-02-23 Yao Qi <yao.qi@linaro.org>
11005
11006 * varobj.c (varobj_clear_saved_item): Use delete instead of
11007 xfree.
11008 (update_dynamic_varobj_children): Likewise.
11009
58fdfd2c
JK
110102017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11011
11012 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
11013
1b90b139
SM
110142017-02-21 Simon Marchi <simon.marchi@ericsson.com>
11015
11016 * common/enum-flags.h (enum_flags::enum_flags): Initialize
11017 m_enum_value to 0 in default constructor.
11018
2039d74e
EBM
110192017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11020
11021 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
11022 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
11023 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
11024 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
11025 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
11026 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
11027 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
11028 IS_STORE_CONDITIONAL_INSN.
11029
7814882a
JK
110302017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11031
11032 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
11033
0ae60b63
JK
110342017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11035
11036 * NEWS (Changes since GDB 7.12): Add DWARF-5.
11037
0224619f
JK
110382017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11039
11040 * dwarf2read.c (skip_one_die, read_attribute_value)
11041 (dwarf2_const_value_attr, dump_die_shallow)
11042 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
11043 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
11044
0af92d60
JK
110452017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11046
11047 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
11048 (dwarf_parse_macro_header): Accept DWARF version 5.
11049 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
11050
216f72a1
JK
110512017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11052
11053 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
11054 DW_AT_GNU_*.
11055 * common/common-exceptions.h (enum errors): Likewise.
11056 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
11057 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
11058 (dwarf_expr_context::execute_stack_op): Likewise.
11059 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
11060 Likewise.
11061 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
11062 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11063 (show_entry_values_debug, call_site_to_target_addr)
11064 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
11065 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
11066 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
11067 (value_of_dwarf_block_entry, indirect_pieced_value)
11068 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
11069 (disassemble_dwarf_expression): Likewise.
11070 * dwarf2read.c (process_die, inherit_abstract_dies)
11071 (read_call_site_scope): Likewise.
11072 * gdbtypes.h (struct func_type, struct call_site_parameter)
11073 (struct call_site): Likewise.
11074 * stack.c (read_frame_arg): Likewise.
11075 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
11076
43988095
JK
110772017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11078
11079 * defs.h (read_unsigned_leb128): New declaration.
11080 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
11081 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
11082 (dwarf2_find_location_expression): Call also
11083 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
11084 * dwarf2loc.h (dwarf2_version): New declaration.
11085 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
11086 rnglists.
11087 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
11088 .debug_rnglists.
11089 (struct dwop_section_names): Add loclists_dwo.
11090 (dwop_section_names): Add .debug_loclists.dwo.
11091 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
11092 (struct dwarf2_per_cu_data): Add dwarf_version.
11093 (struct dwo_sections): Add loclists.
11094 (struct attr_abbrev): Add implicit_const.
11095 (read_indirect_line_string): New declaration.
11096 (read_unsigned_leb128): Delete declaration.
11097 (rcuh_kind): New definition.
11098 (read_and_check_comp_unit_head): Change parameter
11099 is_debug_types_section to section_kind.
11100 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
11101 (read_comp_unit_head): Change parameter abfd to section, add parameter
11102 section_kind. Handle DWARF-5.
11103 (error_check_comp_unit_head): Accept also DWARF version 5.
11104 (read_and_check_comp_unit_head): Change parameter
11105 is_debug_types_section to section_kind.
11106 (read_and_check_type_unit_head): Delete function.
11107 (read_abbrev_offset): Handle DWARF-5.
11108 (create_debug_type_hash_table): Add parameter section_kind. Process
11109 only DW_UT_type. Use signature and type_offset_in_tu from struct
11110 comp_unit_head.
11111 (create_debug_types_hash_table): Update create_debug_type_hash_table
11112 caller.
11113 (create_all_type_units): Call create_debug_type_hash_table.
11114 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
11115 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
11116 caller.
11117 (skip_one_die): Handle DW_FORM_implicit_const.
11118 (dwarf2_rnglists_process): New function.
11119 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
11120 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
11121 (read_attribute_value): Handle DW_FORM_implicit_const,
11122 DW_FORM_line_strp.
11123 (read_attribute): Handle DW_FORM_implicit_const.
11124 (read_indirect_string_at_offset_from): New function from
11125 read_indirect_string_at_offset.
11126 (read_indirect_string_at_offset): Call
11127 read_indirect_string_at_offset_from.
11128 (read_indirect_line_string_at_offset): New function.
11129 (read_indirect_string): New function comment.
11130 (read_indirect_line_string): New function.
11131 (read_unsigned_leb128): Make it global.
11132 (dwarf2_string_attr): Handle DWARF-5.
11133 (add_include_dir_stub, read_formatted_entries): New functions.
11134 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
11135 Handle DWARF-5.
11136 (per_cu_header_read_in): Update read_comp_unit_head caller.
11137 (dwarf2_version): New function.
11138 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
11139 rnglists.
11140 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
11141 fields.
11142
22d2f3ab
JK
111432017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11144
11145 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
11146
5f46c5a5
JK
111472017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11148
11149 * dwarf2read.c (dwarf2_ranges_process): New function from
11150 dwarf2_ranges_read.
11151 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
11152 dwarf2_ranges_process.
11153
78d4d2c5
JK
111542017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11155
11156 * dwarf2read.c (create_debug_type_hash_table): New function from
11157 create_debug_types_hash_table.
11158 (create_debug_types_hash_table): Call create_debug_type_hash_table.
11159 (create_all_type_units, open_and_init_dwo_file): Update
11160 create_debug_types_hash_table callers.
11161
1b076f25
SDJ
111622017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11163
11164 PR gdb/16188
11165 * fork-child.c (trace_start_error): Fix thinko. va_end should
11166 refer to 'ap', not 'args'.
11167
0db8980c
SDJ
111682017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11169 Pedro Alves <palves@redhat.com>
11170
11171 PR gdb/16188
11172 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
11173 calls succeeded.
11174 * fork-child.c (trace_start_error): New function.
11175 (trace_start_error_with_name): Likewise.
11176 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
11177 * inf-ptrace.c (inf_ptrace_me): Likewise.
11178 * inferior.h (trace_start_error): New prototype.
11179 (trace_start_error_with_name): Likewise.
11180
99e8a4f9
SDJ
111812017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
11182
11183 PR gdb/21164
11184 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
11185 NULL before using it.
11186 * symmisc.c (maintenance_print_symbols): Likewise.
11187 (maintenance_print_msymbols): Likewise.
11188
4e746bb6
TW
111892017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
11190
11191 * NEWS: Add record Python bindings entry.
11192
111932017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
11194
11195 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
11196 py-record-full.o.
11197 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
11198 * python/py-record-btrace.c, python/py-record-btrace.h,
11199 python/py-record-full.c, python/py-record-full.h: New file.
11200 * python/py-record.c: Add include for py-record-btrace.h and
11201 py-record-full.h.
11202 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
11203 recpy_instruction_history, recpy_function_call_history, recpy_begin,
11204 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
11205 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
11206 New definition.
11207 (gdbpy_initialize_btrace): New export.
11208 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
11209
112102017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
11211
11212 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
11213 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
11214 * python/py-record.c: New file.
11215 * python/python-internal.h (gdbpy_start_recording,
11216 gdbpy_current_recording, gdpy_stop_recording,
11217 gdbpy_initialize_record): New export.
11218 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
11219 (python_GdbMethods): Add gdbpy_start_recording,
11220 gdbpy_current_recording and gdbpy_stop_recording.
11221
112222017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
11223
11224 * record-btrace.c (record_btrace_record_method): New function.
11225 (init_record_btrace_ops): Initialize to_record_method.
11226 * record-full.c (record_full_record_method): New function.
11227 (init_record_full_ops, init_record_full_core_ops): Add
11228 record_full_record_method.
11229 * record.h (enum record_method): New enum.
11230 * target-debug.h (target_debug_print_enum_record_method: New define.
11231 * target-delegates.c: Regenerate.
11232 * target.c (target_record_method): New function.
11233 * target.h: Include record.h.
11234 (struct target_ops) <to_record_method>: New field.
11235 (target_record_method): New export.
11236
112372017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
11238
11239 * record.h (record_start, record_stop): New export.
11240 * record.c (record_start, record_stop): New function.
11241
112422017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
11243
11244 * btrace.c (btrace_fetch): Copy function call segments pointer
11245 into a vector.
11246 (btrace_clear): Clear the vector.
11247 (btrace_find_insn_by_number): Use binary search to find the correct
11248 function call segment.
11249 * btrace.h (brace_fun_p): New typedef.
11250 (struct btrace_thread_info) <functions>: New field.
11251
112522017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
11253
11254 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
11255 * btrace.c (btrace_decode_error): ... here. New function.
11256 * btrace.h (btrace_decode_error): New export.
11257
112582017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
11259
11260 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
11261 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
11262 btrace_find_insn_by_number): Remove special case for gaps.
11263 * btrace.h (btrace_insn_get_error): New export.
11264 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
11265 * record-btrace.c (btrace_insn_history): Print number for gaps.
11266 (record_btrace_info, record_btrace_goto): Handle gaps.
11267
3f77c769
TT
112682017-02-14 Tom Tromey <tom@tromey.com>
11269
11270 PR python/13598:
11271 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
11272 event.
11273 * python/py-evts.c (gdbpy_initialize_py_events): Add
11274 before_prompt registry.
11275 * python/py-events.h (events_object) <before_prompt>: New field.
11276
4c2c7ac6
MM
112772017-02-14 Markus Metzger <markus.t.metzger@intel.com>
11278
11279 * btrace.c (ftrace_new_switch): Preserve up link and flags.
11280
5cf30ebf
LM
112812017-02-13 Luis Machado <lgustavo@codesourcery.com>
11282
11283 * symfile (_initialize_symfile): Add usage text to the load command's
11284 help text.
11285
26a06916
SM
112862017-02-10 Simon Marchi <simon.marchi@ericsson.com>
11287
11288 * utils.c (defaulted_query): Don't query on secondary UIs.
11289
0b145e37
TT
112902017-02-10 Tom Tromey <tom@tromey.com>
11291
11292 * rust-lang.c (rust_get_disr_info): Remove unused variable.
11293
2d8365c4
TT
112942017-02-10 Tom Tromey <tom@tromey.com>
11295
11296 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
11297 "cleanup" local.
11298 * python/py-type.c (typy_legacy_template_argument): Remove
11299 unnecessary "cleanup" local.
11300
2bb8f231
TT
113012017-02-10 Tom Tromey <tom@tromey.com>
11302
11303 * python/python.c (do_start_initialization): New function, from
11304 _initialize_python.
11305 (_initialize_python): Call do_start_initialization.
11306 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
11307 goto.
11308
1bdfaf42
TT
113092017-02-10 Tom Tromey <tom@tromey.com>
11310
11311 * python/py-prettyprint.c (pretty_print_one_value): Use
11312 gdbpy_ref.
11313
88b6faea
TT
113142017-02-10 Tom Tromey <tom@tromey.com>
11315
11316 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
11317 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
11318 gdbpy_ref.
11319 * python/py-type.c (field_new): Use gdbpy_ref.
11320 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
11321 gdbpy_ref.
11322 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
11323 (py_free_pspace): Likewise.
11324 (pspace_to_pspace_object): Likewise.
11325 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
11326 (py_free_objfile): Likewise.
11327 (objfile_to_objfile_object): Likewise.
11328 * python/py-inferior.c (delete_thread_object): Use
11329 gdbpy_ref.
11330 (infpy_read_memory): Likewise.
11331 (py_free_inferior): Likewise.
11332 * python/py-evtregistry.c (create_eventregistry_object): Use
11333 gdbpy_ref.
11334 * python/py-event.c (create_event_object): Use gdbpy_ref.
11335
7780f186
TT
113362017-02-10 Tom Tromey <tom@tromey.com>
11337
11338 * python/py-ref.h (gdbpy_ref_policy): Now a template.
11339 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
11340 used.
11341 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
11342 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
11343 python/py-exitedevent.c, python/py-finishbreakpoint.c,
11344 python/py-framefilter.c, python/py-function.c,
11345 python/py-inferior.c, python/py-infevents.c,
11346 python/py-linetable.c, python/py-newobjfileevent.c,
11347 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
11348 python/py-signalevent.c, python/py-stopevent.c,
11349 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
11350 python/py-unwind.c, python/py-utils.c, python/py-value.c,
11351 python/py-varobj.c, python/py-xmethods.c, python/python.c,
11352 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
11353
d4b0bb18
TT
113542017-02-10 Tom Tromey <tom@tromey.com>
11355
11356 * ui-out.h (ui_out_emit_type): New class.
11357 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
11358 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
11359 and ui_out_emit_tuple.
11360 (enumerate_locals): Likewise.
11361 (py_mi_print_variables, py_print_locals, py_print_args): Use
11362 ui_out_emit_list.
11363 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
11364 ui_out_emit_list.
11365 * common/gdb_optional.h: New file.
11366
f67f945c
MG
113672017-02-10 Martin Galvan <martingalvan@sourceware.org>
11368
11369 * MAINTAINERS (Write After Approval): Update my e-mail address.
11370
18da0c51
MG
113712017-02-10 Martin Galvan <martingalvan@sourceware.org>
11372
11373 PR gdb/21122
11374 * breakpoint.c (_initialize_breakpoint): Update the help description
11375 of the 'commands' command to indicate that it takes a list argument.
11376
62c14536
SM
113772017-02-09 Simon Marchi <simon.marchi@ericsson.com>
11378
11379 * interps.c (current_interp_set_logging): Remove "return".
11380
ff6fa247
GB
113812017-02-09 Gary Benson <gbenson@redhat.com>
11382
11383 * symtab.c (add_symtab_completions): Prevent NULL pointer
11384 dereference.
11385
a474bd8e
PA
113862017-02-08 Pedro Alves <palves@redhat.com>
11387
11388 * interps.c (interp::interp): Remove reference to quiet_p.
11389 (interp_set): Make static. Remove dead "Switching to" output
11390 code.
11391 (interp_quiet_p, interp_set_quiet): Delete.
11392 (interpreter_exec_cmd): Don't set the interpreter quiet.
11393 * interps.h (interp_quiet_p): Make static.
11394 (class interp) <quiet_p>: Remove field
11395
3d7b173c
JG
113962017-02-08 Jerome Guitton <guitton@adacore.com>
11397
604c4576
JG
11398 * cli/cli-decode.c (find_command_name_length): Make it extern.
11399 * cli/cli-decode.h (find_command_name_length): Declare.
11400 * cli/cli-script.c (command_name_equals, line_first_arg):
11401 New functions.
11402 (process_next_line): Use cli-decode to parse command names.
11403 (build_command_line): Make args a constant pointer.
11404
114052017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 11406
3d7b173c
JG
11407 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
11408 Remove case-insensitive search.
11409
1291063d
JM
114102017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
11411
11412 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
11413 at the end of the line. Avoids an ARI warning.
11414
20b477a7
LM
114152017-02-06 Luis Machado <lgustavo@codesourcery.com>
11416
11417 * NEWS: Mention support for record/replay of Intel 64 rdrand and
11418 rdseed instructions.
11419 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
11420
3f7b46f2
IR
114212017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
11422
11423 PR tdep/20936
11424 Provide and use sparc32 and sparc64 target description XML files.
11425 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
11426 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
11427 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
11428 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
11429 * features/sparc/sparc32-solaris.xml: New file.
11430 * features/sparc/sparc64-solaris.xml: New file.
11431 * features/sparc/sparc32-solaris.c: Generated.
11432 * features/sparc/sparc64-solaris.c: Generated.
11433 * sparc-tdep.h: Account for differences in target descriptions.
11434 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
11435 (sparc32_register_type): Use target provided registers.
11436 (validate_tdesc_registers): New function.
11437 (sparc32_gdbarch_init): Use tdesc_has_registers.
11438 Set pseudoregister functions.
11439 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
11440 (sparc64_register_type): Use target provided registers.
11441 (sparc64_init_abi): Set pseudoregister functions.
11442
f0fd41c1
TT
114432017-02-03 Tom Tromey <tom@tromey.com>
11444
11445 PR rust/21097:
11446 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
11447 with a single member.
11448
d6f9b0fb
PA
114492017-02-03 Pedro Alves <palves@redhat.com>
11450
11451 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
11452 (cli_interp_base::~cli_interp_base): New.
11453 (cli_interp): New struct.
11454 (as_cli_interp): Cast the interp itself to cli_interp.
11455 (cli_interpreter_pre_command_loop): Rename to ...
11456 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
11457 parameter.
11458 (cli_interpreter_init): Rename to ...
11459 (cli_interp::init): ... this. Remove 'self' parameter. Use
11460 boolean. Make extern.
11461 (cli_interpreter_resume): Rename to ...
11462 (cli_interp::resume): ... this. Remove 'data' parameter. Make
11463 extern.
11464 (cli_interpreter_suspend): Rename to ...
11465 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
11466 extern.
11467 (cli_interpreter_exec): Rename to ...
11468 (cli_interp::exec): ... this. Remove 'data' parameter. Make
11469 extern.
11470 (cli_interpreter_supports_command_editing): Rename to ...
11471 (cli_interp_base::supports_command_editing): ... this. Remove
11472 'interp' parameter. Make extern.
11473 (cli_ui_out): Rename to ...
11474 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
11475 Make extern.
11476 (cli_set_logging): Rename to ...
11477 (cli_interp_base::set_logging): ... this. Remove 'interp'
11478 parameter. Make extern.
11479 (cli_interp_procs): Delete.
11480 (cli_interp_factory): Adjust to use "new".
11481 * cli/cli-interp.h: Include "interps.h".
11482 (struct cli_interp_base): New struct.
11483 * interps.c (struct interp): Delete. Fields moved to interps.h.
11484 (interp_new): Delete.
11485 (interp::interp, interp::~interp): New.
11486 (interp_set): Use bool, and return void. Assume the interpreter
11487 has suspend, init and resume methods, and that the all return
11488 void.
11489 (set_top_level_interpreter): interp_set returns void.
11490 (interp_ui_out): Adapt.
11491 (current_interp_set_logging): Adapt.
11492 (interp_data): Delete.
11493 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
11494 (interp_exec): Adapt.
11495 (top_level_interpreter_data): Delete.
11496 * interps.h (interp_init_ftype, interp_resume_ftype)
11497 (interp_suspend_ftype, interp_exec_ftype)
11498 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
11499 (class interp): New.
11500 (interp_new): Delete.
11501 (interp_set): Now returns void. Use bool.
11502 (interp_data, top_level_interpreter_data): Delete.
11503 * mi/mi-common.h: Include interps.h.
11504 (class mi_interp): Inherit from interp. Define a ctor. Declare
11505 init, resume, suspect, exec, interp_ui_out, set_logging and
11506 pre_command_loop methods.
11507 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
11508 (mi_interpreter_init): Rename to ...
11509 (mi_interp::init): ... this. Remove the 'interp' parameter, use
11510 bool, return void and make extern. Adjust.
11511 (mi_interpreter_resume): ... Rename to ...
11512 (mi_interp::resume): ... this. Remove the 'data' parameter,
11513 return void and make extern. Adjust.
11514 (mi_interpreter_suspend): ... Rename to ...
11515 (mi_interp::suspend): ... this. Remove the 'data' parameter,
11516 return void and make extern. Adjust.
11517 (mi_interpreter_exec): ... Rename to ...
11518 (mi_interp::exec): ... this. Remove the 'data' parameter and make
11519 extern. Adjust.
11520 (mi_interpreter_pre_command_loop): ... Rename to ...
11521 (mi_interp::pre_command_loop): ... this. Remove the 'self'
11522 parameter and make extern.
11523 (mi_on_normal_stop_1): Adjust.
11524 (mi_ui_out): Rename to ...
11525 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
11526 parameter and make extern. Adjust.
11527 (mi_set_logging): Rename to ...
11528 (mi_interp::set_logging): ... this. Remove the 'interp'
11529 parameter and make extern. Adjust.
11530 (mi_interp_procs): Delete.
11531 (mi_interp_factory): Adjust to use 'new'.
11532 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
11533 (mi_print_exception, mi_execute_command, mi_load_progress):
11534 Adjust.
11535 * tui/tui-interp.c (tui_interp): New class.
11536 (as_tui_interp): Return a tui_interp pointer.
11537 (tui_on_normal_stop, tui_on_signal_received)
11538 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
11539 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
11540 to use interp::interp_ui_out.
11541 (tui_init): Rename to ...
11542 (tui_interp::init): ... this. Remove the 'self' parameter, use
11543 bool, return void and make extern. Adjust.
11544 (tui_resume): Rename to ...
11545 (tui_interp::resume): ... this. Remove the 'data' parameter,
11546 return void and make extern. Adjust.
11547 (tui_suspend): Rename to ...
11548 (tui_interp::suspend): ... this. Remove the 'data' parameter,
11549 return void and make extern. Adjust.
11550 (tui_ui_out): Rename to ...
11551 (tui_interp::interp_ui_out): ... this. Remove the 'self'
11552 parameter, and make extern. Adjust.
11553 (tui_exec): Rename to ...
11554 (tui_interp::exec): ... this. Remove the 'data' parameter and
11555 make extern.
11556 (tui_interp_procs): Delete.
11557 (tui_interp_factory): Use "new".
11558
65c40c95
TT
115592017-02-02 Tom Tromey <tom@tromey.com>
11560
11561 * rust-exp.y (ends_raw_string, space_then_number)
11562 (rust_identifier_start_p): Return bool.
11563 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
11564 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
11565 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
11566 (rust_chartype_p): Return bool.
11567 (val_print_struct, rust_print_struct_def, rust_print_type):
11568 Update.
11569 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
11570 Return bool.
11571
b50f188d
TT
115722017-02-02 Tom Tromey <tom@tromey.com>
11573
11574 * rust-lang.c: Reindent.
11575
03c85b11
TT
115762017-02-02 Tom Tromey <tom@tromey.com>
11577
11578 * rust-lang.h (rust_crate_for_block): Update.
11579 * rust-lang.c (rust_crate_for_block): Return std::string.
11580 (rust_get_disr_info): Use std:;string, not
11581 gdb::unique_xmalloc_ptr.
11582 * rust-exp.y (crate_name): Update.
11583
9b6da501
PA
115842017-02-02 Pedro Alves <palves@redhat.com>
11585
11586 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
11587 field out of gdb_disassembler_test and make it static.
11588
ec4cb20b
PA
115892017-02-02 Pedro Alves <palves@redhat.com>
11590
11591 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
11592 mi1_interp and mi_interp fields.
11593
5be5dbf0
PA
115942017-02-02 Pedro Alves <palves@redhat.com>
11595
616268b6
PA
11596 * cli/cli-interp.c (struct saved_output_files, saved_output):
11597 Moved from cli/cli-logging.c.
11598 (cli_set_logging): New function.
11599 (cli_interp_procs): Install cli_set_logging.
11600 * cli/cli-interp.h (make_logging_output, cli_set_logging):
11601 Declare.
11602 * cli/cli-logging.c (struct saved_output_files, saved_output):
11603 Moved to cli/cli-interp.c.
11604 (pop_output_files): Don't save outputs here.
11605 (make_logging_output): New function.
11606 (handle_redirections): Don't build tee nor save previous outputs
11607 here.
11608 * interps.c (current_interp_set_logging): Change prototype.
11609 Assume there's always a set_logging_proc method installed.
11610 * interps.h (interp_set_logging_ftype): Change prototype.
11611 (current_interp_set_logging): Change prototype and adjust comment.
11612 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
11613 use make_logging_output.
11614 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
116152017-02-02 Pedro Alves <palves@redhat.com>
11616
5be5dbf0
PA
11617 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
11618 from ...
11619 (set_logging_overwrite): ... here.
11620 (logging_no_redirect_file): Delete.
11621 (set_logging_redirect): Don't handle redirection on the fly.
11622 Instead warn that "logging off" / "logging on" is necessary.
11623 (pop_output_files): Delete references to logging_no_redirect_file.
11624 (show_logging_command): Always speak in terms of what will happen
11625 once logging is reenabled.
11626
c99cc448
PA
116272017-02-02 Pedro Alves <palves@redhat.com>
11628
11629 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
11630
8b172ce7
PA
116312017-02-02 Pedro Alves <palves@redhat.com>
11632
11633 * disasm.c (gdb_pretty_print_insn): Rename to ...
11634 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
11635 Remove gdbarch parameter. Adapt to clear the object's buffers
11636 instead of allocating new buffers, and to print using the object's
11637 gdb_disassembler instead of calling gdb_print_insn.
11638 (dump_insns): Use gdb_pretty_print_disassembler.
11639 * disasm.h (gdb_pretty_print_insn): Delete declaration.
11640 (gdb_pretty_print_disassembler): New class.
11641 * record-btrace.c (btrace_insn_history): Use
11642 gdb_pretty_print_disassembler.
11643
d7e74731
PA
116442017-02-02 Pedro Alves <palves@redhat.com>
11645
11646 * ada-lang.c (type_as_string): Use string_file.
11647 * ada-valprint.c (ada_print_floating): Use string_file.
11648 * ada-varobj.c (ada_varobj_scalar_image)
11649 (ada_varobj_get_value_image): Use string_file.
11650 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
11651 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
11652 * breakpoint.c (update_inserted_breakpoint_locations)
11653 (insert_breakpoint_locations, reattach_breakpoints)
11654 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
11655 (print_it_watchpoint): Use string_file.
11656 (save_breakpoints): Use stdio_file.
11657 * c-exp.y (oper): Use string_file.
11658 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
11659 tee_file.
11660 (pop_output_files): Use delete.
11661 (handle_redirections): Use stdio_file and tee_file.
11662 * cli/cli-setshow.c (do_show_command): Use string_file.
11663 * compile/compile-c-support.c (c_compute_program): Use
11664 string_file.
11665 * compile/compile-c-symbols.c (generate_vla_size): Take a
11666 'string_file &' instead of a 'ui_file *'.
11667 (generate_c_for_for_one_variable): Take a 'string_file &' instead
11668 of a 'ui_file *'. Use string_file.
11669 (generate_c_for_variable_locations): Take a 'string_file &'
11670 instead of a 'ui_file *'.
11671 * compile/compile-internal.h (generate_c_for_for_one_variable):
11672 Take a 'string_file &' instead of a 'ui_file *'.
11673 * compile/compile-loc2c.c (push, pushf, unary, binary)
11674 (print_label, pushf_register_address, pushf_register)
11675 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
11676 'ui_file *'. Adjust.
11677 * compile/compile.c (compile_to_object): Use string_file.
11678 * compile/compile.h (compile_dwarf_expr_to_c)
11679 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
11680 'ui_file *'.
11681 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
11682 (replace_typedefs_qualified_name): Use string_file and
11683 obstack_copy0.
11684 * disasm.c (gdb_pretty_print_insn): Use string_file.
11685 (gdb_disassembly): Adjust reference the null_stream global.
11686 (do_ui_file_delete): Delete.
11687 (gdb_insn_length): Use null_stream.
11688 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
11689 * dwarf2loc.c (dwarf2_compile_property_to_c)
11690 (locexpr_generate_c_location, loclist_generate_c_location): Take a
11691 'string_file &' instead of a 'ui_file *'.
11692 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
11693 * dwarf2read.c (do_ui_file_peek_last): Delete.
11694 (dwarf2_compute_name): Use string_file.
11695 * event-top.c (gdb_setup_readline): Use stdio_file.
11696 * gdbarch.sh (verify_gdbarch): Use string_file.
11697 * gdbtypes.c (safe_parse_type): Use null_stream.
11698 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
11699 string_file.
11700 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
11701 'string_file *' instead of a 'ui_file *'.
11702 (gdbscm_arch_disassemble): Use string_file.
11703 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
11704 * guile/scm-ports.c (class ioscm_file_port): Now a class that
11705 inherits from ui_file.
11706 (ioscm_file_port_delete, ioscm_file_port_rewind)
11707 (ioscm_file_port_put): Delete.
11708 (ioscm_file_port_write): Rename to ...
11709 (ioscm_file_port::write): ... this. Remove file_port_magic
11710 checks.
11711 (ioscm_file_port_new): Delete.
11712 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
11713 ui_file_up.
11714 * guile/scm-type.c (tyscm_type_name): Use string_file.
11715 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
11716 Use string_file.
11717 * infcmd.c (print_return_value_1): Use string_file.
11718 * infrun.c (print_target_wait_results): Use string_file.
11719 * language.c (add_language): Use string_file.
11720 * location.c (explicit_to_string_internal): Use string_file.
11721 * main.c (captured_main_1): Use null_file.
11722 * maint.c (maintenance_print_architecture): Use stdio_file.
11723 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
11724 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
11725 event_channel>: Change type to mi_console_file pointer.
11726 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
11727 (mi_console_file_delete): Delete.
11728 (struct mi_console_file): Delete.
11729 (mi_console_file_magic): Delete.
11730 (mi_console_file_new): Delete.
11731 (mi_console_file::mi_console_file): New.
11732 (mi_console_file_delete): Delete.
11733 (mi_console_file_fputs): Delete.
11734 (mi_console_file::write): New.
11735 (mi_console_raw_packet): Delete.
11736 (mi_console_file::flush): New.
11737 (mi_console_file_flush): Delete.
11738 (mi_console_set_raw): Rename to ...
11739 (mi_console_file::set_raw): ... this.
11740 * mi/mi-console.h (class mi_console_file): New class.
11741 (mi_console_file_new, mi_console_set_raw): Delete.
11742 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
11743 (mi_set_logging): Use delete and tee_file. Adjust.
11744 * mi/mi-main.c (output_register): Use string_file.
11745 (mi_cmd_data_evaluate_expression): Use string_file.
11746 (mi_cmd_data_read_memory): Use string_file.
11747 (mi_cmd_execute, print_variable_or_computed): Use string_file.
11748 * mi/mi-out.c (mi_ui_out::main_stream): New.
11749 (mi_ui_out::rewind): Use main_stream and
11750 string_file.
11751 (mi_ui_out::put): Use main_stream and string_file.
11752 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
11753 Allocate a 'string_file' instead.
11754 (mi_out_new): Don't allocate a mem_fileopen stream here.
11755 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
11756 (mi_ui_out::main_stream): Declare method.
11757 * printcmd.c (eval_command): Use string_file.
11758 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
11759 * python/py-arch.c (archpy_disassemble): Use string_file.
11760 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
11761 * python/py-frame.c (frapy_str): Use string_file.
11762 * python/py-framefilter.c (py_print_type, py_print_single_arg):
11763 Use string_file.
11764 * python/py-type.c (typy_str): Use string_file.
11765 * python/py-unwind.c (unwind_infopy_str): Use string_file.
11766 * python/py-value.c (valpy_str): Use string_file.
11767 * record-btrace.c (btrace_insn_history): Use string_file.
11768 * regcache.c (regcache_print): Use stdio_file.
11769 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
11770 * remote.c (escape_buffer): Use string_file.
11771 * rust-lang.c (rust_get_disr_info): Use string_file.
11772 * serial.c (serial_open_ops_1): Use stdio_file.
11773 (do_serial_close): Use delete.
11774 * stack.c (print_frame_arg): Use string_file.
11775 (print_frame_args): Remove local mem_fileopen stream, not used.
11776 (print_frame): Use string_file.
11777 * symmisc.c (maintenance_print_symbols): Use stdio_file.
11778 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
11779 Take a 'string_file *' instead of a 'ui_file *'.
11780 * top.c (new_ui): Use stdio_file and stderr_file.
11781 (free_ui): Use delete.
11782 (execute_command_to_string): Use string_file.
11783 (quit_confirm): Use string_file.
11784 * tracepoint.c (collection_list::append_exp): Use string_file.
11785 * tui/tui-disasm.c (tui_disassemble): Use string_file.
11786 * tui/tui-file.c: Don't include "ui-file.h".
11787 (enum streamtype, struct tui_stream): Delete.
11788 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
11789 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
11790 (tui_file::tui_file): New method.
11791 (tui_file_fputs): Delete.
11792 (tui_file_get_strbuf): Delete.
11793 (tui_file::puts): New method.
11794 (tui_file_adjust_strbuf): Delete.
11795 (tui_file_flush): Delete.
11796 (tui_file::flush): New method.
11797 * tui/tui-file.h: Tweak intro comment.
11798 Include ui-file.h.
11799 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
11800 (tui_file_adjust_strbuf): Delete declarations.
11801 (class tui_file): New class.
11802 * tui/tui-io.c (tui_initialize_io): Use tui_file.
11803 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
11804 (tui_register_format): Use string_stream.
11805 * tui/tui-stack.c (tui_make_status_line): Use string_file.
11806 (tui_get_function_from_frame): Use string_file.
11807 * typeprint.c (type_to_string): Use string_file.
11808 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
11809 (null_stream): New global.
11810 (ui_file_delete): Delete.
11811 (ui_file::ui_file): New.
11812 (null_file_isatty): Delete.
11813 (ui_file::~ui_file): New.
11814 (null_file_rewind): Delete.
11815 (ui_file::printf): New.
11816 (null_file_put): Delete.
11817 (null_file_flush): Delete.
11818 (ui_file::putstr): New.
11819 (null_file_write): Delete.
11820 (ui_file::putstrn): New.
11821 (null_file_read): Delete.
11822 (ui_file::putc): New.
11823 (null_file_fputs): Delete.
11824 (null_file_write_async_safe): Delete.
11825 (ui_file::vprintf): New.
11826 (null_file_delete): Delete.
11827 (null_file::write): New.
11828 (null_file_fseek): Delete.
11829 (null_file::puts): New.
11830 (ui_file_data): Delete.
11831 (null_file::write_async_safe): New.
11832 (gdb_flush, ui_file_isatty): Adjust.
11833 (ui_file_put, ui_file_rewind): Delete.
11834 (ui_file_write): Adjust.
11835 (ui_file_write_for_put): Delete.
11836 (ui_file_write_async_safe, ui_file_read): Adjust.
11837 (ui_file_fseek): Delete.
11838 (fputs_unfiltered): Adjust.
11839 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
11840 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
11841 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
11842 (set_ui_file_data): Delete.
11843 (string_file::~string_file, string_file::write)
11844 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
11845 (do_ui_file_as_string, ui_file_as_string): Delete.
11846 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
11847 (struct mem_file): Delete.
11848 (mem_file_new): Delete.
11849 (stdio_file::stdio_file): New.
11850 (mem_file_delete): Delete.
11851 (stdio_file::stdio_file): New.
11852 (mem_fileopen): Delete.
11853 (stdio_file::~stdio_file): New.
11854 (mem_file_rewind): Delete.
11855 (stdio_file::set_stream): New.
11856 (mem_file_put): Delete.
11857 (stdio_file::open): New.
11858 (mem_file_write): Delete.
11859 (stdio_file_magic, struct stdio_file): Delete.
11860 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
11861 (stdio_file::flush): New.
11862 (stdio_file_read): Rename to ...
11863 (stdio_file::read): ... this. Adjust.
11864 (stdio_file_write): Rename to ...
11865 (stdio_file::write): ... this. Adjust.
11866 (stdio_file_write_async_safe): Rename to ...
11867 (stdio_file::write_async_safe) ... this. Adjust.
11868 (stdio_file_fputs): Rename to ...
11869 (stdio_file::puts) ... this. Adjust.
11870 (stdio_file_isatty): Delete.
11871 (stdio_file_fseek): Delete.
11872 (stdio_file::isatty): New.
11873 (stderr_file_write): Rename to ...
11874 (stderr_file::write) ... this. Adjust.
11875 (stderr_file_fputs): Rename to ...
11876 (stderr_file::puts) ... this. Adjust.
11877 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
11878 (stderr_file::stderr_file): New.
11879 (tee_file_magic): Delete.
11880 (struct tee_file): Delete.
11881 (tee_file::tee_file): New.
11882 (tee_file_new): Delete.
11883 (tee_file::~tee_file): New.
11884 (tee_file_delete): Delete.
11885 (tee_file_flush): Rename to ...
11886 (tee_file::flush): ... this. Adjust.
11887 (tee_file_write): Rename to ...
11888 (tee_file::write): ... this. Adjust.
11889 (tee_file::write_async_safe): New.
11890 (tee_file_fputs): Rename to ...
11891 (tee_file::puts): ... this. Adjust.
11892 (tee_file_isatty): Rename to ...
11893 (tee_file::isatty): ... this. Adjust.
11894 * ui-file.h (struct obstack, struct ui_file): Don't
11895 forward-declare.
11896 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
11897 (ui_file_write_ftype)
11898 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
11899 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
11900 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
11901 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
11902 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
11903 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
11904 (set_ui_file_fseek): Delete.
11905 (ui_file_data, ui_file_delete, ui_file_rewind)
11906 (struct ui_file): New.
11907 (ui_file_up): New.
11908 (class null_file): New.
11909 (null_stream): Declare.
11910 (ui_file_write_for_put, ui_file_put): Delete.
11911 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
11912 Delete.
11913 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
11914 (gdb_fopen, tee_file_new): Delete.
11915 (struct string_file): New.
11916 (struct stdio_file): New.
11917 (stdio_file_up): New.
11918 (struct stderr_file): New.
11919 (class tee_file): New.
11920 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
11921 of a 'ui_file *'. Adjust.
11922 * ui-out.h (class ui_out) <field_stream>: Likewise.
11923 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
11924 (null_stream): Delete.
11925 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
11926 Adjust.
11927 * utils.h (struct ui_file): Delete forward declaration..
11928 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
11929 (error_stream): Take a 'string_file &' instead of a
11930 'ui_file *'.
11931 * varobj.c (varobj_value_get_print_value): Use string_file.
11932 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
11933 * gdbarch.c: Regenerate.
11934
187808b0
PA
119352017-02-02 Pedro Alves <palves@redhat.com>
11936
11937 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
11938 (gdb_pretty_print_insn): ... this. Now a free function. Add back
11939 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
11940 Adjust to call gdb_print_insn instead of
11941 gdb_disassembler::print_insn.
11942 (dump_insns, do_mixed_source_and_assembly_deprecated)
11943 (do_mixed_source_and_assembly, do_assembly_only): Add back a
11944 'gdbarch' parameter. Remove gdb_disassembler parameter.
11945 (gdb_disassembly): Don't allocate a gdb_disassembler here.
11946 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
11947 declaration.
11948 (gdb_pretty_print_insn): Re-add declaration.
11949 * record-btrace.c (btrace_insn_history): Don't allocate a
11950 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
11951
7a8eb317
SM
119522017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
11953
11954 * disasm.h (gdb_disassembly): Remove file_string parameter.
11955 * disasm.c (gdb_disassembly): Likewise.
11956 * cli/cli-cmds.c (print_disassembly): Adapt.
11957 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
11958 * stack.c (do_gdb_disassembly): Likewise.
11959
7346ef59
AA
119602017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
11961
11962 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
11963 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
11964 targets. And if the implicit value is longer than needed, extract
11965 the first bytes instead of the "least significant" ones.
11966
cd4007e4
MM
119672017-02-01 Markus Metzger <markus.t.metzger@intel.com>
11968
11969 * btrace.c (btrace_enable): Do not call btrace_add_pc for
11970 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
11971 (btrace_fetch): Assert can_access_registers_ptid.
11972 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
11973 validate_registers_access.
11974
cf77c34e
MM
119752017-02-01 Markus Metzger <markus.t.metzger@intel.com>
11976
11977 * gdbthread.h (can_access_registers_ptid): New.
11978 * thread.c (can_access_registers_ptid): New.
11979
be85ce7d
PA
119802017-02-01 Pedro Alves <palves@redhat.com>
11981
11982 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
11983
29b0b251
PA
119842017-01-31 Pedro Alves <palves@redhat.com>
11985
11986 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
11987 Fix typos.
11988
289b5b24
PA
119892017-01-31 Pedro Alves <palves@redhat.com>
11990
11991 * stack.c (print_frame_args): Remove local mem_fileopen stream,
11992 not used.
11993
b47413b4
PA
119942017-01-31 Pedro Alves <palves@redhat.com>
11995
11996 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
11997
60adb36c
PA
119982017-01-31 Pedro Alves <palves@redhat.com>
11999
12000 * common/scoped_restore.h
12001 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
12002 change the value's parameter type to T2.
12003 (make_scoped_restore): Likewise.
12004
2735833d
WT
120052017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
12006 Richard Henderson <rth@redhat.com>
12007
12008 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
12009 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
12010 GS_BASE for older kernels.
12011 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
12012 GS_BASE for older kernels.
12013 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
12014 and GS_BASE to the offset table.
12015 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
12016 system register group.
12017 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
12018 for older kernels.
12019 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
12020 amd64 ABI.
12021 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
12022 AMD64_GSBASE_REGNUM.
12023 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
12024 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
12025 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
12026 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
12027 i386/64bit-segments.xml in those rules.
12028 * features/i386/64bit-segments.xml: New file.
12029 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
12030 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
12031 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
12032 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
12033 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
12034 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
12035 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
12036 * features/i386/amd64-avx-linux.c: Regenerated.
12037 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
12038 * features/i386/amd64-avx-mpx.c: Regenerated.
12039 * features/i386/amd64-avx512-linux.c: Regenerated.
12040 * features/i386/amd64-linux.c: Regenerated.
12041 * features/i386/amd64-mpx-linux.c: Regenerated.
12042 * features/i386/i386-avx-mpx-linux.c: Regenerated.
12043 * features/i386/i386-avx-mpx.c: Regenerated.
12044 * features/i386/x32-avx-linux.c: Regenerated.
12045 * features/i386/x32-avx512-linux.c: Regenerated.
12046 * regformats/i386/amd64-avx-linux.dat: Regenerated.
12047 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
12048 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
12049 * regformats/i386/amd64-linux.dat: Regenerated.
12050 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
12051 * regformats/i386/x32-avx-linux.dat: Regenerated.
12052 * regformats/i386/x32-avx512-linux.dat: Regenerated.
12053 * regformats/i386/x32-linux.dat: Regenerated.
12054
8884e97e
WT
120552017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
12056
12057 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
12058 Set to AMD64_NUM_REGS.
12059
7005d26a
WT
120602017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
12061
12062 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
12063 that checks validity of a register number.
12064
4bd2e1b2
KC
120652017-01-27 Kees Cook <keescook@google.com>
12066
12067 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
12068 fetch_fpregs if target has fpa registers.
12069 (arm_linux_store_inferior_registers): Call store_fpregs if target
12070 has fpa registers.
12071
7cf1de6c
AA
120722017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
12073
12074 * cris-tdep.c (cris_gdbarch_init): Remove check for
12075 info.byte_order and force it to BFD_ENDIAN_LITTLE.
12076
874a1c8c
AT
120772017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
12078
12079 * corelow.c (get_core_register_section): Check for regset
12080 existence before checking for REGSET_VARIABLE_SIZE.
12081
d8b49cf0
YQ
120822017-01-26 Yao Qi <yao.qi@linaro.org>
12083 Pedro Alves <palves@redhat.com>
12084
12085 PR gdb/20939
12086 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
12087 call memory_error, save memaddr instead.
12088 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
12089 negative, cal memory_error.
12090 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
12091
658ca58c
YQ
120922017-01-26 Yao Qi <yao.qi@linaro.org>
12093
12094 * disasm-selftests.c (memory_error_test): New function.
12095 (_initialize_disasm_selftests): Register memory_error_test.
12096
79843d45
YQ
120972017-01-26 Yao Qi <yao.qi@linaro.org>
12098
12099 * Makefile.in (SFILES): Add disasm-selftests.c and
12100 selftest-arch.c.
12101 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
12102 * disasm-selftests.c: New file.
12103 * selftest-arch.c: New file.
12104 * selftest-arch.h: New file.
12105
8cafda32
YQ
121062017-01-26 Yao Qi <yao.qi@linaro.org>
12107
12108 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
12109 to bfd_arch_mep. Don't return 0 if section is not
12110 found. Call print_insn_mep.
12111
e47ad6c0
YQ
121122017-01-26 Pedro Alves <palves@redhat.com>
12113 Yao Qi <yao.qi@linaro.org>
12114
12115 * arm-tdep.c: Include "disasm.h".
12116 (gdb_print_insn_arm): Update code to get gdbarch.
12117 * disasm.c (dis_asm_read_memory): Change it to
12118 gdb_disassembler::dis_asm_read_memory.
12119 (dis_asm_memory_error): Likewise.
12120 (dis_asm_print_address): Likewise.
12121 (gdb_pretty_print_insn): Change it to
12122 gdb_disassembler::pretty_print_insn.
12123 (dump_insns): Add one argument gdb_disassemlber. All
12124 callers updated.
12125 (do_mixed_source_and_assembly_deprecated): Likewise.
12126 (do_mixed_source_and_assembly): Likewise.
12127 (do_assembly_only): Likewise.
12128 (gdb_disassembler::gdb_disassembler): New.
12129 (gdb_disassembler::print_insn): New.
12130 * disasm.h (class gdb_disassembler): New.
12131 (gdb_pretty_print_insn): Remove declaration.
12132 (gdb_disassemble_info): Likewise.
12133 * guile/scm-disasm.c (class gdbscm_disassembler): New.
12134 (gdbscm_disasm_read_memory_worker): Update.
12135 (gdbscm_disasm_read_memory): Update.
12136 (gdbscm_disasm_memory_error): Remove.
12137 (gdbscm_disasm_print_address): Remove.
12138 (gdbscm_disassembler::gdbscm_disassembler): New.
12139 (gdbscm_print_insn_from_port): Update.
12140 * mips-tdep.c: Include disasm.h.
12141 (gdb_print_insn_mips): Update code to get gdbarch.
12142 * record-btrace.c (btrace_insn_history): Update.
12143 * spu-tdep.c: Include disasm.h.
12144 (struct spu_dis_asm_data): Remove.
12145 (struct spu_dis_asm_info): New.
12146 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
12147 SPU id.
12148 (gdb_print_insn_spu): Cast disassemble_info to
12149 spu_dis_asm_info.
12150
80d75874
YQ
121512017-01-26 Yao Qi <yao.qi@linaro.org>
12152
12153 * disasm.c (do_ui_file_delete): Delete.
12154 (gdb_insn_length): Move code creating stream to ...
12155 * utils.c (null_stream): ... here. New function.
12156 * utils.h (null_stream): Declare.
12157
60685cd0
SM
121582017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12159
12160 * python/py-inferior.c (find_thread_object): Return directly
12161 from the loop. Remove "found" variable.
12162
eb1cdb62
JB
121632017-01-21 Joel Brobecker <brobecker@adacore.com>
12164
12165 GDB 7.12.1 released.
12166
b1ce6568
SM
121672017-01-20 Simon Marchi <simon.marchi@ericsson.com>
12168
12169 * python/py-function.c (fnpy_call): Reorder declarations to have
12170 the gdbpy_enter object declared first.
12171 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
12172
6f8b0407
SM
121732017-01-20 Simon Marchi <simon.marchi@ericsson.com>
12174
fec93fb1 12175 PR python/21068
6f8b0407
SM
12176 * python/python-internal.h (PyMem_RawMalloc): Define for
12177 Python < 3.4.
12178 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
12179 PyMem_RawMalloc instead of PyMem_Malloc.
12180
78cbbba8
LM
121812017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
12182 Luis Machado <lgustavo@codesourcery.com>
12183
12184 * NEWS (New commands): Mention flash-erase.
12185 (New MI commands): Mention target-flash-erase.
12186 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
12187 command.
12188 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
12189 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
12190 * target.c (flash_erase_command): New function.
12191 (initialize_targets): Add new flash-erase command.
12192 * target.h (flash_erase_command): New declaration.
12193
2132fe85
JB
121942017-01-20 Joel Brobecker <brobecker@adacore.com>
12195
12196 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
12197 HAVE_SYS_PROCFS_H is defined.
12198
d1dff226
AH
121992017-01-18 Alan Hayward <alan.hayward@arm.com>
12200
12201 * remote.c (struct cached_reg): Change data into a pointer.
12202 * (stop_reply_dtr): Free data pointers before deleting vector.
12203 (process_stop_reply): Likewise.
12204 (remote_parse_stop_reply): Allocate space for data
12205
9890e433
AH
122062017-01-18 Alan Hayward <alan.hayward@arm.com>
12207
12208 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
12209 MAX_REGISTER_SIZE.
12210 (amd64_pseudo_register_read_value): Likewise.
12211 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
12212 (store_register_using_P): Likewise.
12213 * regcache.c (regcache_xfer_part): Likewise.
12214
7a36499a
IR
122152017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
12216
12217 Split real and pseudo registers.
12218 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
12219 (sparc32_pseudo_regnum): New enum.
12220 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
12221 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
12222 (SPARC32_CP0_REGISTERS): New macro.
12223 (sparc32_pseudo_register_name): New function.
12224 (sparc32_register_name): Use sparc32_pseudo_register_name.
12225 (sparc32_pseudo_register_type): New function.
12226 (sparc32_register_type): Use sparc32_pseudo_register_type.
12227 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
12228 pseudo register numbers.
12229 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
12230 (SPARC64_CP0_REGISTERS): New macro.
12231 (sparc64_pseudo_register_name): New function.
12232 (sparc64_register_name): Use sparc64_pseudo_register_name.
12233 (sparc64_pseudo_register_type): New function.
12234 (sparc64_register_type): Use sparc64_pseudo_register_type.
12235 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
12236 pseudo register numbers.
12237 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
12238 sparc64_store_arguments): Handle pseudo register numbers.
12239
6f8976bf
YQ
122402017-01-13 Yao Qi <yao.qi@linaro.org>
12241
12242 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
12243 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
12244 output.
12245 (getpkt_or_notif_sane_1): Likewise.
12246
e4241ace
YQ
122472017-01-13 Yao Qi <yao.qi@linaro.org>
12248
12249 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
12250 of CC. Pass "-x c++-header" instead of "-x c".
12251
3015c064
SM
122522017-01-12 Simon Marchi <simon.marchi@ericsson.com>
12253
12254 * remote.c (remote_can_async_p): Update comment.
12255
fde1b17d
SM
122562017-01-12 Simon Marchi <simon.marchi@ericsson.com>
12257
12258 * linux-nat.c (linux_nat_can_async_p): Update comment.
12259
ca1ca08b
SM
122602017-01-12 Simon Marchi <simon.marchi@ericsson.com>
12261
12262 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
12263
4ad2da73
SM
122642017-01-11 Simon Marchi <simon.marchi@ericsson.com>
12265
12266 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
12267
c8b23b3f
TT
122682017-01-10 Tom Tromey <tom@tromey.com>
12269
12270 * python/py-type.c (typy_legacy_template_argument): Update.
12271 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
12272 ~demangle_parse_info): Declare new members.
12273 (cp_demangled_name_to_comp): Return unique_ptr.
12274 (cp_demangled_name_parse_free)
12275 (make_cleanup_cp_demangled_name_parse_free)
12276 (cp_new_demangle_parse_info): Remove.
12277 * cp-support.c (do_demangled_name_parse_free_cleanup)
12278 (make_cleanup_cp_demangled_name_parse_free): Remove.
12279 (inspect_type, cp_canonicalize_string_full)
12280 (cp_canonicalize_string): Update.
12281 (mangled_name_to_comp): Change return type.
12282 (cp_class_name_from_physname, method_name_from_physname)
12283 (cp_func_name, cp_remove_params): Update.
12284 * cp-name-parser.y (demangle_parse_info): New constructor, from
12285 cp_new_demangle_parse_info.
12286 (~demangle_parse_info): New destructor, from
12287 cp_demangled_name_parse_free.
12288 (cp_merge_demangle_parse_infos): Update.
12289 (cp_demangled_name_to_comp): Change return type.
12290
1ac32117
TT
122912017-01-10 Tom Tromey <tom@tromey.com>
12292
12293 * top.c (prevent_dont_repeat): Change return type.
12294 * python/python.c (execute_gdb_command): Use std::string.
12295 Update.
12296 * guile/guile.c (gdbscm_execute_gdb_command): Update.
12297 * command.h (prevent_dont_repeat): Change return type.
12298 * breakpoint.c (bpstat_do_actions_1): Update.
12299
0cf08227
TT
123002017-01-10 Tom Tromey <tom@tromey.com>
12301
12302 * value.h (scoped_value_mark::~scoped_value_mark): Call
12303 free_to_mark.
12304 (scoped_value_mark::free_to_mark): New method.
12305 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
12306 scoped_value_mark.
12307
eb115069
TT
123082017-01-10 Tom Tromey <tom@tromey.com>
12309
12310 * python/py-value.c (valpy_dereference, valpy_referenced_value)
12311 (valpy_reference_value, valpy_const_value, valpy_get_address)
12312 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
12313 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
12314 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
12315 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
12316 scoped_value_mark.
12317 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
12318 * value.h (scoped_value_mark): New class.
12319
906768f9
TT
123202017-01-10 Tom Tromey <tom@tromey.com>
12321
12322 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
12323 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
12324 * psymtab.c (discard_psymtabs_upto): Remove.
12325 (make_cleanup_discard_psymtabs): Remove.
12326 (struct psymtab_state): Remove.
12327
bef155c3
TT
123282017-01-10 Tom Tromey <tom@tromey.com>
12329
12330 * record-full.c (record_full_save_cleanups): Remove.
12331 (record_full_save): Use gdb::unlinker.
12332 * gcore.c (do_bfd_delete_cleanup): Remove.
12333 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
12334 cleanups.
12335 * dwarf2read.c (unlink_if_set): Remove.
12336 (write_psymtabs_to_index): Use gdb::unlinker.
12337 * common/gdb_unlinker.h: New file.
12338
192b62ce
TT
123392017-01-10 Tom Tromey <tom@tromey.com>
12340
12341 * windows-tdep.c (windows_xfer_shared_library): Update.
12342 * windows-nat.c (windows_make_so): Update.
12343 * utils.h (make_cleanup_bfd_unref): Remove.
12344 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
12345 * symfile.h (symfile_bfd_open)
12346 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
12347 * symfile.c (read_symbols, symbol_file_add)
12348 (separate_debug_file_exists): Update.
12349 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
12350 (generic_load, reread_symbols): Update.
12351 * symfile-mem.c (symbol_file_add_from_memory): Update.
12352 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
12353 (spu_symbol_file_add_from_memory): Update.
12354 * solist.h (struct target_so_ops) <bfd_open>: Return
12355 gdb_bfd_ref_ptr.
12356 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
12357 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
12358 gdb_bfd_ref_ptr.
12359 (solib_map_sections, reload_shared_libraries_1): Update.
12360 * solib-svr4.c (enable_break): Update.
12361 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
12362 * solib-frv.c (enable_break2): Update.
12363 * solib-dsbt.c (enable_break): Update.
12364 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
12365 gdb_bfd_ref_ptr.
12366 (darwin_solib_get_all_image_info_addr_at_init): Update.
12367 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
12368 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
12369 * record-full.c (record_full_save): Update.
12370 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
12371 * procfs.c (insert_dbx_link_bpt_in_file): Update.
12372 * minidebug.c (find_separate_debug_file_in_section): Return
12373 gdb_bfd_ref_ptr.
12374 * machoread.c (macho_add_oso_symfile): Change abfd to
12375 gdb_bfd_ref_ptr.
12376 (macho_symfile_read_all_oso): Update.
12377 (macho_check_dsym): Return gdb_bfd_ref_ptr.
12378 (macho_symfile_read): Update.
12379 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
12380 (jit_bfd_try_read_symtab): Update.
12381 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
12382 (gdb_bfd_openw, gdb_bfd_openr_iovec)
12383 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
12384 gdb_bfd_ref_ptr.
12385 (gdb_bfd_ref_policy): New struct.
12386 (gdb_bfd_ref_ptr): New typedef.
12387 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
12388 (gdb_bfd_openw, gdb_bfd_openr_iovec)
12389 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
12390 gdb_bfd_ref_ptr.
12391 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
12392 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
12393 (gcore_command): Update.
12394 * exec.c (exec_file_attach): Update.
12395 * elfread.c (elf_symfile_read): Update.
12396 * dwarf2read.c (dwarf2_get_dwz_file): Update.
12397 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
12398 (open_and_init_dwo_file): Update.
12399 (open_dwp_file): Return gdb_bfd_ref_ptr.
12400 (open_and_init_dwp_file): Update.
12401 * corelow.c (core_open): Update.
12402 * compile/compile-object-load.c (compile_object_load): Update.
12403 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
12404 * coffread.c (coff_symfile_read): Update.
12405 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
12406 gdb_bfd_ref_ptr. Rename.
12407 (dump_bfd_file, restore_command): Update.
12408 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
12409 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
12410 (find_separate_debug_file_by_buildid): Update.
12411
50315b21
TT
124122017-01-10 Tom Tromey <tom@tromey.com>
12413
12414 * common/gdb_ref_ptr.h: New file.
12415 * python/py-ref.h (struct gdbpy_ref_policy): New.
12416 (gdbpy_ref): Now a typedef.
12417
fc4007c9
TT
124182017-01-10 Tom Tromey <tom@tromey.com>
12419
12420 * utils.h (make_cleanup_htab_delete): Don't declare.
12421 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
12422 Remove.
12423 * linespec.c (decode_compound_collector): Add constructor,
12424 destructor.
12425 (lookup_prefix_sym): Remove cleanup.
12426 (symtab_collector): Add constructor, destructor.
12427 (collect_symtabs_from_filename): Remove cleanup.
12428 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
12429 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
12430 Use htab_up.
12431 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
12432 * dwarf2read.c (dw2_expand_symtabs_matching)
12433 (dw2_map_symbol_filenames, dwarf_decode_macros)
12434 (write_psymtabs_to_index): Use htab_up.
12435 * dwarf2loc.c (func_verify_no_selftailcall)
12436 (call_site_find_chain_1, func_verify_no_selftailcall)
12437 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
12438 std::vector, gdb::unique_xmalloc_ptr.
12439 (call_sitep): Remove typedef.
12440 (dwarf2_locexpr_baton_eval): Remove unused variable.
12441
8dbcee67
TT
124422017-01-10 Tom Tromey <tom@tromey.com>
12443
12444 * python/python-internal.h (make_cleanup_py_decref)
12445 (make_cleanup_py_xdecref): Don't declare.
12446 * python/py-utils.c (py_decref, make_cleanup_py_decref)
12447 (py_xdecref, make_cleanup_py_xdecref): Remove.
12448
13df46cc
TT
124492017-01-10 Tom Tromey <tom@tromey.com>
12450
12451 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
12452 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
12453
06fc9bf7
TT
124542017-01-10 Tom Tromey <tom@tromey.com>
12455
12456 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
12457
830a4934
TT
124582017-01-10 Tom Tromey <tom@tromey.com>
12459
12460 * python/py-utils.c (unicode_to_encoded_string)
12461 (python_string_to_target_string)
12462 (python_string_to_target_python_string)
12463 (python_string_to_host_string, gdbpy_obj_to_string)
12464 (get_addr_from_python): Use gdbpy_ref.
12465
4586d543
TT
124662017-01-10 Tom Tromey <tom@tromey.com>
12467
12468 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
12469 gdbpy_ref.
12470
59876f8f
TT
124712017-01-10 Tom Tromey <tom@tromey.com>
12472
12473 * python/python.c (eval_python_command, gdbpy_decode_line)
12474 (gdbpy_run_events, gdbpy_start_type_printers)
12475 (gdbpy_apply_type_printers): Use gdbpy_ref.
12476
97d83487
TT
124772017-01-10 Tom Tromey <tom@tromey.com>
12478
12479 * python/py-param.c (get_doc_string, compute_enum_values): Use
12480 gdbpy_ref.
12481
9205649a
TT
124822017-01-10 Tom Tromey <tom@tromey.com>
12483
12484 * python/py-inferior.c (find_thread_object, build_inferior_list):
12485 Use gdbpy_ref.
12486
74c49d45
TT
124872017-01-10 Tom Tromey <tom@tromey.com>
12488
12489 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
12490
16361ffb
TT
124912017-01-10 Tom Tromey <tom@tromey.com>
12492
12493 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
12494 gdbpy_ref.
12495
905f2cca
TT
124962017-01-10 Tom Tromey <tom@tromey.com>
12497
12498 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
12499 extra incref.
12500 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
12501 Use gdbpy_ref.
12502
64081434
TT
125032017-01-10 Tom Tromey <tom@tromey.com>
12504
12505 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
12506 gdbpy_ref.
12507
59e9e831
TT
125082017-01-10 Tom Tromey <tom@tromey.com>
12509
12510 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
12511 decref results of PyArg_ParseTupleAndKeywords.
12512
9de10f6d
TT
125132017-01-10 Tom Tromey <tom@tromey.com>
12514
12515 * python/python.c (python_run_simple_file): Use
12516 unique_xmalloc_ptr, gdbpy_ref.
12517
2bd5759d
TT
125182017-01-10 Tom Tromey <tom@tromey.com>
12519
12520 * python/py-prettyprint.c (print_stack_unless_memory_error)
12521 (print_string_repr, print_children): Use gdbpy_ref.
12522 (dummy_python_frame): New class.
12523 (dummy_python_frame::dummy_python_frame): Rename from
12524 push_dummy_python_frame.
12525 (py_restore_tstate): Remove.
12526
3b4e0e01
TT
125272017-01-10 Tom Tromey <tom@tromey.com>
12528
12529 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
12530
17a22718
TT
125312017-01-10 Tom Tromey <tom@tromey.com>
12532
12533 * python/python.c (ensure_python_env, restore_python_env):
12534 Remove.
12535 * python/python-internal.h (ensure_python_env): Don't declare.
12536 * varobj.h (varobj_ensure_python_env): Don't declare.
12537 * varobj.c (varobj_ensure_python_env): Remove.
12538
68cdc557
TT
125392017-01-10 Tom Tromey <tom@tromey.com>
12540
12541 * varobj.c (varobj_value_get_print_value): Use
12542 gdbpy_enter_varobj.
12543
1eba6383
TT
125442017-01-10 Tom Tromey <tom@tromey.com>
12545
12546 * python/py-prettyprint.c (print_string_repr, print_children):
12547 Update.
12548 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
12549 of "encoding".
12550 * varobj.c (varobj_value_get_print_value): Update.
12551 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
12552
bde7b3e3
TT
125532017-01-10 Tom Tromey <tom@tromey.com>
12554
12555 * varobj.c (varobj_get_display_hint)
12556 (dynamic_varobj_has_child_method, install_new_value_visualizer)
12557 (varobj_set_visualizer, free_variable): Use
12558 gdbpy_enter_varobj.
12559
a7785f8c
TT
125602017-01-10 Tom Tromey <tom@tromey.com>
12561
12562 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
12563 (do_finish_initialization): New function. Use gdbpy_ref.
12564 (gdbpy_finish_initialization): Use gdbpy_enter. Call
12565 do_finish_initialization.
12566
2865bfce
TT
125672017-01-10 Tom Tromey <tom@tromey.com>
12568
12569 * python/py-param.c (get_set_value, get_show_value): Use
12570 gdbpy_enter, gdbpy_ref.
12571
0e9dcc75
TT
125722017-01-10 Tom Tromey <tom@tromey.com>
12573
12574 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
12575
12a5cedd
TT
125762017-01-10 Tom Tromey <tom@tromey.com>
12577
12578 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
12579
788f2586
TT
125802017-01-10 Tom Tromey <tom@tromey.com>
12581
12582 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
12583 Use gdbpy_enter_varobj.
12584
6cd67bea
TT
125852017-01-10 Tom Tromey <tom@tromey.com>
12586
12587 * varobj.c (gdbpy_enter_varobj): New constructor.
12588 * python/python-internal.h (gdbpy_enter_varobj): New class.
12589 * python/py-varobj.c (py_varobj_get_iterator): Use
12590 gdbpy_enter_varobj.
12591
14b122bf
TT
125922017-01-10 Tom Tromey <tom@tromey.com>
12593
12594 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
12595 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
12596 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
12597 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
12598 unique_xmalloc_ptr.
12599 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
12600
bf1ca3b9
TT
126012017-01-10 Tom Tromey <tom@tromey.com>
12602
12603 * python/py-xmethods.c (invoke_match_method): Use
12604 gdbpy_ref.
12605
572a5524
TT
126062017-01-10 Tom Tromey <tom@tromey.com>
12607
12608 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
12609 gdbpy_enter, gdbpy_ref.
12610
396a78b6
TT
126112017-01-10 Tom Tromey <tom@tromey.com>
12612
12613 * python/python.c (python_interactive_command): Use gdbpy_enter.
12614
a88b13c7
TT
126152017-01-10 Tom Tromey <tom@tromey.com>
12616
12617 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
12618 gdbpy_ref.
12619
e9f0c363
TT
126202017-01-10 Tom Tromey <tom@tromey.com>
12621
12622 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
12623 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
12624
6349f452
TT
126252017-01-10 Tom Tromey <tom@tromey.com>
12626
12627 * utils.h (htab_deleter): New struct.
12628 (htab_up): New typedef.
12629 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
12630 gdbpy_enter, gdbpy_ref, htab_up.
12631
c0171de6
TT
126322017-01-10 Tom Tromey <tom@tromey.com>
12633
12634 * python/py-unwind.c (pending_frame_invalidate): Remove.
12635 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
12636
f18e226f
TT
126372017-01-10 Tom Tromey <tom@tromey.com>
12638
12639 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
12640 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
12641
c57af3f1
TT
126422017-01-10 Tom Tromey <tom@tromey.com>
12643
12644 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
12645
60e600ec
TT
126462017-01-10 Tom Tromey <tom@tromey.com>
12647
12648 * python/python.c (gdbpy_eval_from_control_command)
12649 (gdbpy_source_script, gdbpy_run_events)
12650 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
12651 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
12652 gdbpy_enter.
12653
bf7da5b0
TT
126542017-01-10 Tom Tromey <tom@tromey.com>
12655
12656 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
12657
2d38bced
TT
126582017-01-10 Tom Tromey <tom@tromey.com>
12659
12660 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
12661
07bc7329
TT
126622017-01-10 Tom Tromey <tom@tromey.com>
12663
12664 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
12665 (python_on_inferior_call_pre, python_on_inferior_call_post)
12666 (python_on_memory_change, python_on_register_change)
12667 (python_inferior_exit, python_new_objfile, add_thread_object)
12668 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
12669
6e7c365e
TT
126702017-01-10 Tom Tromey <tom@tromey.com>
12671
12672 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
12673 (bpfinishpy_handle_exit): Use gdbpy_enter.
12674
6ba0cd40
TT
126752017-01-10 Tom Tromey <tom@tromey.com>
12676
12677 * python/py-cmd.c (cmdpy_destroyer)
12678 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
12679 gdbpy_enter.
12680
de2dc875
TT
126812017-01-10 Tom Tromey <tom@tromey.com>
12682
12683 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
12684 gdbpy_enter.
12685 (gdbpy_breakpoint_has_cond): Likewise.
12686
4ecee2c4
TT
126872017-01-10 Tom Tromey <tom@tromey.com>
12688
12689 * python/python.c (gdbpy_enter): New constructor.
12690 (~gdbpy_enter): New destructor.
12691 (restore_python_env, ensure_python_env): Rewrite.
12692 * python/python-internal.h (gdbpy_enter): New class.
12693
37fce74f
TT
126942017-01-10 Tom Tromey <tom@tromey.com>
12695
12696 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
12697
53a0cca3
TT
126982017-01-10 Tom Tromey <tom@tromey.com>
12699
12700 * python/py-value.c (value_has_field, get_field_flag)
12701 (get_field_type, valpy_getitem, convert_value_from_python): Use
12702 gdbpy_ref.
12703
ff3724f5
TT
127042017-01-10 Tom Tromey <tom@tromey.com>
12705
12706 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
12707 gdbpy_ref.
12708
0700aea5
TT
127092017-01-10 Tom Tromey <tom@tromey.com>
12710
12711 * python/py-prettyprint.c (search_pp_list)
12712 (find_pretty_printer_from_objfiles)
12713 (find_pretty_printer_from_progspace)
12714 (find_pretty_printer_from_gdb, find_pretty_printer)
12715 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
12716 gdbpy_ref.
12717
1bb44c9f
TT
127182017-01-10 Tom Tromey <tom@tromey.com>
12719
12720 * python/py-param.c (call_doc_function): Use gdbpy_ref.
12721
87ce03fd
TT
127222017-01-10 Tom Tromey <tom@tromey.com>
12723
12724 * python/py-linetable.c (build_line_table_tuple_from_pcs)
12725 (ltpy_get_all_source_lines): Use gdbpy_ref.
12726
ee0a3fb8
TT
127272017-01-10 Tom Tromey <tom@tromey.com>
12728
12729 * python/py-framefilter.c (extract_sym, extract_value)
12730 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
12731 gdbpy_ref.
12732
bf2a52fa
TT
127332017-01-10 Tom Tromey <tom@tromey.com>
12734
12735 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
12736
f59fe7f8
TT
127372017-01-10 Tom Tromey <tom@tromey.com>
12738
12739 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
12740
80bd970a
TT
127412017-01-10 Tom Tromey <tom@tromey.com>
12742
12743 * python/py-function.c (convert_values_to_python, fnpy_init): Use
12744 gdbpy_ref.
12745
d1b3de2e
TT
127462017-01-10 Tom Tromey <tom@tromey.com>
12747
12748 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
12749
3bb43384
TT
127502017-01-10 Tom Tromey <tom@tromey.com>
12751
12752 * python/py-type.c (convert_field, make_fielditem, typy_fields)
12753 (typy_range): Use gdbpy_ref.
12754
abf5651e
TT
127552017-01-10 Tom Tromey <tom@tromey.com>
12756
12757 * python/py-threadevent.c (create_thread_event_object): Use
12758 gdbpy_ref.
12759 * python/py-stopevent.c (create_stop_event_object): Simplify.
12760 (emit_stop_event): Use gdbpy_ref.
12761 * python/py-signalevent.c (create_signal_event_object): Use
12762 gdbpy_ref.
12763 * python/py-newobjfileevent.c (create_new_objfile_event_object)
12764 (emit_new_objfile_event, create_clear_objfiles_event_object)
12765 (emit_clear_objfiles_event): Use gdbpy_ref.
12766 * python/py-infevents.c (create_inferior_call_event_object)
12767 (create_register_changed_event_object)
12768 (create_memory_changed_event_object, emit_inferior_call_event)
12769 (emit_memory_changed_event, emit_register_changed_event): Use
12770 gdbpy_ref.
12771 * python/py-exitedevent.c (create_exited_event_object)
12772 (emit_exited_event): Use gdbpy_ref.
12773 * python/py-event.h (evpy_emit_event): Remove
12774 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
12775 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
12776 * python/py-continueevent.c (emit_continue_event): Use
12777 gdbpy_ref.
12778 * python/py-breakpoint.c (gdbpy_breakpoint_created)
12779 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
12780 gdbpy_ref.
12781 * python/py-bpevent.c (create_breakpoint_event_object): Use
12782 gdbpy_ref.
12783
a68ff33e
TT
127842017-01-10 Tom Tromey <tom@tromey.com>
12785
12786 * python/py-ref.h: New file.
12787
7becfd03
SM
127882017-01-10 Simon Marchi <simon.marchi@ericsson.com>
12789
12790 * cli-out.c (cli_ui_out::do_redirect): Change return type to
12791 void.
12792 * cli-out.h (cli_ui_out::do_redirect): Likewise.
12793 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
12794 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
12795 * ui-out.c (ui_out::redirect): Likewise.
12796 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
12797 * cli/cli-logging.c (set_logging_redirect): Update call site of
12798 ui_out::redirect.
12799 (handle_redirections): Likewise.
12800 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
12801 * top.c (execute_command_to_string): Likewise.
12802 * utils.c (do_ui_out_redirect_pop): Likewise.
12803
df294654
SM
128042017-01-10 Simon Marchi <simon.marchi@ericsson.com>
12805
12806 * stack.c (_initialize_stack): Update "frame" command help message.
12807
f5e6296e
IB
128082017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
12809
12810 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
12811
0e2d6fa6
YQ
128122017-01-06 Yao Qi <yao.qi@linaro.org>
12813
12814 * x86-linux-nat.h: Include gdb_proc_service.h.
12815
44d6d3f9
YQ
128162017-01-06 Yao Qi <yao.qi@linaro.org>
12817
12818 * ser-base.h: Include serial.h.
12819
656731fe
YQ
128202017-01-06 Yao Qi <yao.qi@linaro.org>
12821
12822 * ppc-linux-tdep.h: Include ppc-tdep.h.
12823
1ca8f924
YQ
128242017-01-06 Yao Qi <yao.qi@linaro.org>
12825
12826 * nat/amd64-linux-siginfo.h: Include signal.h.
12827
bc3008c4
YQ
128282017-01-06 Yao Qi <yao.qi@linaro.org>
12829
12830 * nat/aarch64-linux-hw-point.h: Include break-common.h.
12831
66c80d03
YQ
128322017-01-06 Yao Qi <yao.qi@linaro.org>
12833
12834 * mi/mi-parse.h: Include mi-cmds.h.
12835
051d2dda
YQ
128362017-01-06 Yao Qi <yao.qi@linaro.org>
12837
12838 * inf-loop.c: Don't include "target.h".
12839 * inf-loop.h: Include it here.
12840
8018d34f
YQ
128412017-01-06 Yao Qi <yao.qi@linaro.org>
12842
12843 * dfp.h: Include "dboulest.h" and "expression.h".
12844
c0b8369c
YQ
128452017-01-06 Yao Qi <yao.qi@linaro.org>
12846
12847 * ax-gdb.h: Include "ax.h".
12848
ad5cba2a
YQ
128492017-01-06 Yao Qi <yao.qi@linaro.org>
12850
12851 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
12852 with nat/gdb_ptrace.h.
12853
1c33cd7f
YQ
128542017-01-05 Yao Qi <yao.qi@linaro.org>
12855
12856 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
12857 new line.
12858 (mips64_fbsd_sigframe_init): Likewise.
12859
c988ac1d
JB
128602017-01-04 John Baldwin <jhb@FreeBSD.org>
12861
12862 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
12863 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
12864
b268007c
JB
128652017-01-04 John Baldwin <jhb@FreeBSD.org>
12866
12867 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
12868 * NEWS: Mention new FreeBSD/mips native configuration.
12869 * config/mips/fbsd.mh: New file.
12870 * configure.host: Add mips*-*-freebsd*.
12871 * mips-fbsd-nat.c: New file.
12872
387360da
JB
128732017-01-04 John Baldwin <jhb@FreeBSD.org>
12874
12875 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
12876 (ALLDEPFILES): Add mips-fbsd-tdep.c.
12877 * NEWS: Mention new FreeBSD/mips target.
12878 * configure.tgt: Add mips*-*-freebsd*.
12879 * mips-fbsd-tdep.c: New file.
12880 * mips-fbsd-tdep.h: New file.
12881
2aaaf250
YQ
128822017-01-04 Yao Qi <yao.qi@linaro.org>
12883
12884 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
12885 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
12886
61baf725
JB
128872017-01-01 Joel Brobecker <brobecker@adacore.com>
12888
6dbb839a 12889 Update copyright year range in all GDB files.
61baf725 12890
c113e7ff 128912017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 12892
c113e7ff 12893 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 12894
c113e7ff 12895For older changes see ChangeLog-2016.
c906108c
SS
12896\f
12897Local Variables:
12898mode: change-log
12899left-margin: 8
12900fill-column: 74
12901version-control: never
57da7796 12902coding: utf-8
c906108c 12903End:
This page took 2.616423 seconds and 4 git commands to generate.