Remove code wrapped by "#if 0"
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
2e1b49b3
YQ
12017-11-02 Yao Qi <yao.qi@linaro.org>
2
3 * regcache.c (regcache::dump): Remove code.
4
6c5218df
YQ
52017-11-02 Yao Qi <yao.qi@linaro.org>
6
7 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
8 Remove.
9 <sizeof_cooked_register_status>: Remove.
10 (init_regcache_descr): Update.
11 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
12 (regcache::save): Likewise.
13 (regcache::dump): Likewise.
14
dcc31d28
JB
152017-11-01 James Bowman <james.bowman@ftdichip.com>
16
17 * ft32-tdep.c (ft32_fetch_instruction): New function.
18 (ft32_analyze_prologue): Use ft32_fetch_instruction().
19
3a87ae65
SM
202017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
21
22 * cli/cli-script.c (execute_control_command): Rename to ...
23 (execute_control_command_1): ... this.
24 (execute_control_command): New function.
25
09b847f3
SM
262017-10-31 Simon Marchi <simon.marchi@ericsson.com>
27
28 * tracepoint.c (tfind_command): Remove const_cast.
29
f871c485
MG
302017-10-30 Mike Gulick <mgulick@mathworks.com>
31
32 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
33
b020ff80
SM
342017-10-30 Simon Marchi <simon.marchi@ericsson.com>
35
36 * common/common-utils.h (in_inclusive_range): New function.
37 * arm-tdep.c (arm_record_extension_space): Use
38 in_inclusive_range.
39 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
40 * cris-tdep.c (cris_spec_reg_applicable): Use
41 in_inclusive_range.
42
1b81856f
PA
432017-10-30 Pedro Alves <palves@redhat.com>
44 Simon Marchi <simon.marchi@ericsson.com>
45
46 * remote.c (remote_set_syscall_catchpoint): Build a std::string
47 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
48
31b833b3
PA
492017-10-30 Pedro Alves <palves@redhat.com>
50
51 * common/common-utils.c (string_appendf, string_vappendf): New
52 functions.
53 * common/common-utils.h (string_appendf, string_vappendf): New
54 declarations.
55 * unittests/common-utils-selftests.c (string_appendf_func)
56 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
57 (string_vappendf_tests): New functions.
58 (_initialize_common_utils_selftests): Register "string_appendf" and
59 "string_vappendf tests".
60
4a250334
PA
612017-10-30 Pedro Alves <palves@redhat.com>
62
63 * unittests/common-utils-selftests.c (format_func): New typedef.
64 (string_printf_tests, string_vprintf_tests): Tests factored out
65 and merged to ...
66 (test_format_func): ... this new function.
67 (string_printf_tests, string_vprintf_tests): Reimplement on top of
68 test_format_func.
69
16c5c17e
SM
702017-10-29 Simon Marchi <simon.marchi@ericsson.com>
71
72 * darwin-nat.c: Remove include of gdb.h.
73
7ca51576
SM
742017-10-29 Simon Marchi <simon.marchi@ericsson.com>
75
76 * xtensa-xtregs.c: Fix formatting issues.
77
c1342859
SM
782017-10-29 Simon Marchi <simon.marchi@ericsson.com>
79
80 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
81
484d8d36
MD
822017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
83
84 PR python/21213
85 * python/py-infthread.c (thpy_get_inferior): Increment reference
86 of inferior before returning it.
87
b5540b5f
SM
882017-10-27 Simon Marchi <simon.marchi@ericsson.com>
89
90 * unittests/common-utils-selftests.c (format): Add
91 ATTRIBUTE_PRINTF.
92
5a9dcda1
SM
932017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
94
95 * xml-syscall.c (struct syscall_desc): Add constructor.
96 <name>: Change type to std::string.
97 (syscall_desc_up): New typedef.
98 (syscall_desc_p): Remove typeder.
99 (DEF_VEC_P(syscall_desc_p)): Remove.
100 (struct syscall_group_desc): Add constructor.
101 <name>: Change type to std::string.
102 <syscalls>: Change type to std::vector.
103 (syscall_group_desc_up): New typedef.
104 (syscall_group_desc_p): Remove typedef.
105 (DEF_VEC_P(syscall_group_desc_p)): Remove.
106 (struct syscalls_info) <syscalls>: Change type to std::vector of
107 unique_ptr.
108 <groups>: Likewise.
109 <my_gdb_datadir>: Change type to std::string.
110 (syscalls_info_up): New typedef.
111 (allocate_syscalls_info): Remove.
112 (syscalls_info_free_syscalls_desc): Remove.
113 (syscalls_info_free_syscall_group_desc): Remove.
114 (free_syscalls_info): Remove.
115 (make_cleanup_free_syscalls_info): Remove.
116 (syscall_group_create_syscall_group_desc): Adjust.
117 (syscall_group_add_syscall): Adjust.
118 (syscall_create_syscall_desc): Adjust.
119 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
120 (init_syscalls_info): Adjust.
121 (syscall_group_get_group_by_name): Adjust.
122 (xml_get_syscall_number): Adjust.
123 (xml_get_syscall_name): Adjust.
124 (xml_list_of_syscalls): Adjust.
125 (xml_list_syscalls_by_group): Adjust.
126 (xml_list_of_groups): Adjust.
127
45461e0d
SM
1282017-10-27 Simon Marchi <simon.marchi@ericsson.com>
129
130 * probe.h: Don't include gdb_vecs.h.
131 (DEF_VEC_P (probe_p)): Remove.
132 (find_probes_in_objfile): Return an std::vector.
133 * probe.c (find_probes_in_objfile): Likewise.
134 * breakpoint.c (breakpoint_objfile_data)
135 <longjmp_probes>: Change type to std::vector.
136 <exception_probes>: Likewise.
137 (free_breakpoint_probes): Don't manually free vectors.
138 (create_longjmp_master_breakpoint): Adjust.
139 (create_exception_master_breakpoint): Adjust.
140 * solib-svr4.c (svr4_create_probe_breakpoints): Change
141 parameter type, adjust.
142 (svr4_create_solib_event_breakpoints): Adjust.
143
43dce439
SM
1442017-10-27 Simon Marchi <simon.marchi@ericsson.com>
145
146 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
147 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
148 with new.
149 (free_breakpoint_probes): Rename to ...
150 (free_breakpoint_objfile_data): ... this, and call delete on
151 bp_objfile_data..
152
6a1b9516
SM
1532017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
154
155 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
156 (loaded_script_ptr): Remove typedef.
157 (DEF_VEC_P (loaded_script_ptr)): Remove.
158 (struct collect_matching_scripts_data): Add constructor.
159 <scripts_p>: Change type to (pointer to) std::vector.
160 (collect_matching_scripts_data): Adjust.
161 (sort_scripts_by_name): Make suitable for std::sort.
162 (print_scripts): Don't sort vector, adjust to std::vector.
163 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
164
593e3209
SM
1652017-10-27 Simon Marchi <simon.marchi@ericsson.com>
166
167 * symfile.c (filename_language): Make struct, not typedef. Add
168 constructor.
169 <ext>: Change type to std::string.
170 (DEF_VEC_O (filename_language)): Remove.
171 (filename_language_table): Change type to std::vector.
172 (add_filename_language): Adjust.
173 (set_ext_lang_command): Adjust.
174 (info_ext_lang_command): Adjust.
175 (deduce_language_from_filename): Adjust.
176 (class scoped_restore_filename_language_table): Remove.
177 (test_filename_language): Use scoped_restore.
178 (test_set_ext_lang_command): Use scoped_restore, adjust to
179 std::vector change.
180
32fa66eb
SM
1812017-10-27 Simon Marchi <simon.marchi@ericsson.com>
182
183 * symfile.c: Include selftest.h.
184 (class scoped_restore_filename_language_table): New.
185 (test_filename_language): New test.
186 (test_set_ext_lang_command): New test.
187 (_initialize_symfile): Register tests.
188
4a27f119
KS
1892017-10-27 Keith Seitz <keiths@redhat.com>
190
191 * breakpoint.c (print_breakpoint_location): Use the symbol saved
192 in the bp_location, falling back to find_pc_sect_function when
193 needed.
194 (add_location_to_breakpoint): Save sal->symbol.
195 * breakpoint.h (struct bp_location) <symbol>: New field.
196 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
197 * symtab.h (struct symtab_and_line) <symbol>: New field.
198
a43f3893
PF
1992017-10-26 Patrick Frants <osscontribute@gmail.com>
200
7453e6b2 201 PR gdb/13669
a43f3893
PF
202 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
203 to rewind obstack.
204
23cc4e1b
PA
2052017-10-26 Pedro Alves <palves@redhat.com>
206
207 * remote.c (remote_async_terminal_ours_p): Delete.
208 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
209 Remove references to 'remote_async_terminal_ours_p'.
210
6abc18bb
YQ
2112017-10-26 Yao Qi <yao.qi@linaro.org>
212
213 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
214
bd522513
YQ
2152017-10-26 Yao Qi <yao.qi@linaro.org>
216
217 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
218 aspace const.
219 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
220 Likewise.
221 * breakpoint.c (bpstat_check_location): Remove cast.
222 (breakpoint_hit_catch_fork): Make aspce const.
223 (breakpoint_hit_catch_solib): Likewise.
224 (breakpoint_hit_catch_exec): Likewise.
225 (breakpoint_hit_ranged_breakpoint): Likewise.
226 (breakpoint_hit_watchpoint): Likewise.
227 (base_breakpoint_breakpoint_hit): Likewise.
228 (bkpt_breakpoint_hit): Likewise.
229 (dprintf_breakpoint_hit): Likewise.
230 (tracepoint_breakpoint_hit): Likewise.
231 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
232
accd0bcd
YQ
2332017-10-26 Yao Qi <yao.qi@linaro.org>
234
235 * breakpoint.c (breakpoint_location_address_match): Change
236 "struct address_space *" to "const address_space".
237 (breakpoint_location_address_range_overlap): Likewise.
238 (breakpoint_here_p): Likewise.
239 (breakpoint_in_range_p): Likewise.
240 (moribund_breakpoint_here_p): Likewise.
241 (bp_location_inserted_here_p): Likewise.
242 (software_breakpoint_inserted_here_p): Likewise.
243 (hardware_breakpoint_inserted_here_p): Likewise.
244 (hardware_watchpoint_inserted_in_range): Likewise.
245 (bpstat_check_location): Likewise.
246 (bpstat_stop_status): Likewise.
247 (breakpoint_address_match): Likewise.
248 (breakpoint_address_match_range): Likewise.
249 (breakpoint_location_address_match): Likewise.
250 (breakpoint_location_address_range_overlap): Likewise.
251 (insert_single_step_breakpoint): Likewise.
252 (breakpoint_has_location_inserted_here): Likewise.
253 (single_step_breakpoint_inserted_here_p): Likewise.
254 (pc_at_non_inline_function): Likewise.
255 * breakpoint.h (bpstat_stop_status): Update declaration.
256 (breakpoint_here_p): Likewise.
257 (breakpoint_in_range_p): Likewise.
258 (moribund_breakpoint_here_p): Likewise.
259 (breakpoint_inserted_here_p): Likewise.
260 (software_breakpoint_inserted_here_p): Likewise.
261 (hardware_breakpoint_inserted_here_p): Likewise.
262 (breakpoint_has_location_inserted_here): Likewise.
263 (single_step_breakpoint_inserted_here_p): Likewise.
264 (hardware_watchpoint_inserted_in_range): Likewise.
265 (breakpoint_address_match): Likewise.
266 (insert_single_step_breakpoint): Likewise.
267 (pc_at_non_inline_function): Likewise.
268 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
269 * record.c (record_check_stopped_by_breakpoint): Likewise.
270 * record.h (record_check_stopped_by_breakpoint): Likewise.
271 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
272
ac7936df
YQ
2732017-10-25 Yao Qi <yao.qi@linaro.org>
274
275 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
276 regcache->arch () instead get_regcache_arch.
277 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
278 Likewise.
279 (aarch64_fbsd_store_inferior_registers): Likewise.
280 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
281 (store_gregs_to_thread): Likewise.
282 (fetch_fpregs_from_thread): Likewise.
283 (store_fpregs_to_thread): Likewise.
284 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
285 (aarch64_store_return_value): Likewise.
286 (aarch64_software_single_step): Likewise.
287 * aix-thread.c (aix_thread_wait): Likewise.
288 (supply_reg32): Likewise.
289 (supply_sprs64): Likewise.
290 (supply_sprs32): Likewise.
291 (fill_gprs64): Likewise.
292 (fill_gprs32): Likewise.
293 (fill_sprs64): Likewise.
294 (fill_sprs32): Likewise.
295 (store_regs_user_thread): Likewise.
296 (store_regs_kernel_thread): Likewise.
297 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
298 (alphabsd_store_inferior_registers): Likewise.
299 * alpha-tdep.c (alpha_extract_return_value): Likewise.
300 (alpha_store_return_value): Likewise.
301 (alpha_deal_with_atomic_sequence): Likewise.
302 (alpha_next_pc): Likewise.
303 (alpha_software_single_step): Likewise.
304 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
305 (amd64bsd_store_inferior_registers): Likewise.
306 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
307 Likewise.
308 (amd64_linux_store_inferior_registers): Likewise.
309 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
310 (amd64_collect_native_gregset): Likewise.
311 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
312 (amd64obsd_collect_uthread): Likewise.
313 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
314 (amd64_collect_fpregset): Likewise.
315 (amd64_supply_fxsave): Likewise.
316 (amd64_supply_xsave): Likewise.
317 (amd64_collect_fxsave): Likewise.
318 (amd64_collect_xsave): Likewise.
319 * arc-tdep.c (arc_write_pc): Likewise.
320 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
321 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
322 (arm_fbsd_store_inferior_registers): Likewise.
323 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
324 (store_vfp_regs): Likewise.
325 (arm_linux_fetch_inferior_registers): Likewise.
326 (arm_linux_store_inferior_registers): Likewise.
327 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
328 (arm_linux_sigreturn_next_pc): Likewise.
329 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
330 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
331 (fetch_register): Likewise.
332 (store_register): Likewise.
333 * arm-tdep.c (arm_is_thumb): Likewise.
334 (displaced_in_arm_mode): Likewise.
335 (bx_write_pc): Likewise.
336 (arm_get_next_pcs_addr_bits_remove): Likewise.
337 (arm_software_single_step): Likewise.
338 (arm_extract_return_value): Likewise.
339 (arm_store_return_value): Likewise.
340 (arm_write_pc): Likewise.
341 * bfin-tdep.c (bfin_extract_return_value): Likewise.
342 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
343 (bsd_uthread_store_registers): Likewise.
344 * core-regset.c (fetch_core_registers): Likewise.
345 * corelow.c (get_core_registers): Likewise.
346 * cris-tdep.c (cris_store_return_value): Likewise.
347 (cris_extract_return_value): Likewise.
348 (find_step_target): Likewise.
349 (find_step_target): Likewise.
350 (cris_software_single_step): Likewise.
351 * ctf.c (ctf_fetch_registers): Likewise.
352 * darwin-nat.c (cancel_breakpoint): Likewise.
353 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
354 * frv-tdep.c (frv_extract_return_value): Likewise.
355 * ft32-tdep.c (ft32_store_return_value): Likewise.
356 (ft32_extract_return_value): Likewise.
357 * go32-nat.c (fetch_register): Likewise.
358 (go32_fetch_registers): Likewise.
359 (go32_store_registers): Likewise.
360 (store_register): Likewise.
361 * h8300-tdep.c (h8300_extract_return_value): Likewise.
362 (h8300_store_return_value): Likewise.
363 * hppa-linux-nat.c (fetch_register): Likewise.
364 (store_register): Likewise.
365 (hppa_linux_fetch_inferior_registers): Likewise.
366 (hppa_linux_store_inferior_registers): Likewise.
367 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
368 (i386_darwin_store_inferior_registers): Likewise.
369 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
370 (gnu_store_registers): Likewise.
371 * i386-linux-nat.c (fetch_register): Likewise.
372 (store_register): Likewise.
373 (supply_gregset): Likewise.
374 (fill_gregset): Likewise.
375 (i386_linux_fetch_inferior_registers): Likewise.
376 (i386_linux_store_inferior_registers): Likewise.
377 (i386_linux_resume): Likewise.
378 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
379 Likewise.
380 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
381 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
382 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
383 (i386obsd_collect_uthread): Likewise.
384 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
385 (i386_supply_gregset): Likewise.
386 (i386_collect_gregset): Likewise.
387 (i386_supply_fpregset): Likewise.
388 (i386_collect_fpregset): Likewise.
389 (i386_mpx_bd_base): Likewise.
390 * i386-v4-nat.c (supply_fpregset): Likewise.
391 (fill_fpregset): Likewise.
392 * i387-tdep.c (i387_supply_fsave): Likewise.
393 (i387_collect_fsave): Likewise.
394 (i387_supply_fxsave): Likewise.
395 (i387_collect_fxsave): Likewise.
396 (i387_supply_xsave): Likewise.
397 (i387_collect_xsave): Likewise.
398 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
399 (ia64_linux_store_registers): Likewise.
400 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
401 (ia64_extract_return_value): Likewise.
402 (ia64_store_return_value): Likewise.
403 (find_func_descr): Likewise.
404 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
405 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
406 (inf_ptrace_store_registers): Likewise.
407 * infrun.c (use_displaced_stepping): Likewise.
408 (displaced_step_prepare_throw): Likewise.
409 (resume): Likewise.
410 (proceed): Likewise.
411 (do_target_wait): Likewise.
412 (adjust_pc_after_break): Likewise.
413 (handle_inferior_event_1): Likewise.
414 (handle_signal_stop): Likewise.
415 (save_infcall_suspend_state): Likewise.
416 (restore_infcall_suspend_state): Likewise.
417 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
418 * jit.c (jit_frame_prev_register): Likewise.
419 * linux-nat.c (save_stop_reason): Likewise.
420 (linux_nat_wait_1): Likewise.
421 (resume_stopped_resumed_lwps): Likewise.
422 * linux-record.c (record_linux_sockaddr): Likewise.
423 (record_linux_msghdr): Likewise.
424 (record_linux_system_call): Likewise.
425 * linux-tdep.c (linux_collect_thread_registers): Likewise.
426 * lm32-tdep.c (lm32_extract_return_value): Likewise.
427 (lm32_store_return_value): Likewise.
428 * m32c-tdep.c (m32c_read_flg): Likewise.
429 (m32c_pseudo_register_read): Likewise.
430 (m32c_pseudo_register_write): Likewise.
431 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
432 (m32r_linux_collect_gregset): Likewise.
433 * m32r-tdep.c (m32r_store_return_value): Likewise.
434 (m32r_extract_return_value): Likewise.
435 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
436 (m68kbsd_collect_fpregset): Likewise.
437 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
438 * m68k-linux-nat.c (fetch_register): Likewise.
439 (old_fetch_inferior_registers): Likewise.
440 (old_store_inferior_registers): Likewise.
441 (store_regs): Likewise.
442 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
443 (m68k_svr4_store_return_value): Likewise.
444 * m88k-tdep.c (m88k_store_arguments): Likewise.
445 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
446 (mi_cmd_data_write_register_values): Likewise.
447 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
448 (mips_fbsd_store_inferior_registers): Likewise.
449 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
450 (mips_fbsd_supply_gregs): Likewise.
451 (mips_fbsd_collect_fpregs): Likewise.
452 (mips_fbsd_collect_gregs): Likewise.
453 (mips_fbsd_supply_fpregset): Likewise.
454 (mips_fbsd_collect_fpregset): Likewise.
455 (mips_fbsd_supply_gregset): Likewise.
456 (mips_fbsd_collect_gregset): Likewise.
457 * mips-linux-nat.c (supply_gregset): Likewise.
458 (fill_gregset): Likewise.
459 (supply_fpregset): Likewise.
460 (fill_fpregset): Likewise.
461 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
462 (mips_fill_gregset): Likewise.
463 (mips_supply_fpregset): Likewise.
464 (mips_fill_fpregset): Likewise.
465 (mips64_supply_gregset): Likewise.
466 (micromips_linux_sigframe_validate): Likewise.
467 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
468 (mipsnbsd_fetch_inferior_registers): Likewise.
469 (mipsnbsd_store_inferior_registers): Likewise.
470 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
471 (mipsnbsd_supply_gregset): Likewise.
472 (mipsnbsd_iterate_over_regset_sections): Likewise.
473 (mipsnbsd_supply_reg): Likewise.
474 (mipsnbsd_supply_fpreg): Likewise.
475 * mips-tdep.c (mips_in_frame_stub): Likewise.
476 (mips_dummy_id): Likewise.
477 (is_octeon_bbit_op): Likewise.
478 (micromips_bc1_pc): Likewise.
479 (extended_mips16_next_pc): Likewise.
480 (mips16_next_pc): Likewise.
481 (deal_with_atomic_sequence): Likewise.
482 * moxie-tdep.c (moxie_process_readu): Likewise.
483 * nios2-tdep.c (nios2_get_next_pc): Likewise.
484 * nto-procfs.c (procfs_store_registers): Likewise.
485 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
486 (ppcfbsd_store_inferior_registers): Likewise.
487 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
488 (fetch_altivec_register): Likewise.
489 (get_spe_registers): Likewise.
490 (fetch_spe_register): Likewise.
491 (fetch_altivec_registers): Likewise.
492 (fetch_all_gp_regs): Likewise.
493 (fetch_all_fp_regs): Likewise.
494 (store_vsx_register): Likewise.
495 (store_altivec_register): Likewise.
496 (set_spe_registers): Likewise.
497 (store_spe_register): Likewise.
498 (store_altivec_registers): Likewise.
499 (store_all_gp_regs): Likewise.
500 (store_all_fp_regs): Likewise.
501 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
502 (ppc_linux_collect_gregset): Likewise.
503 (ppc_canonicalize_syscall): Likewise.
504 (ppc_linux_record_signal): Likewise.
505 (ppu2spu_prev_register): Likewise.
506 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
507 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
508 (ppcobsd_store_registers): Likewise.
509 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
510 Likewise.
511 (ppc_ravenscar_generic_store_registers): Likewise.
512 * procfs.c (procfs_fetch_registers): Likewise.
513 (procfs_store_registers): Likewise.
514 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
515 (ravenscar_store_registers): Likewise.
516 (ravenscar_prepare_to_store): Likewise.
517 * record-btrace.c (record_btrace_fetch_registers): Likewise.
518 * record-full.c (record_full_wait_1): Likewise.
519 (record_full_registers_change): Likewise.
520 (record_full_store_registers): Likewise.
521 (record_full_core_fetch_registers): Likewise.
522 (record_full_save): Likewise.
523 (record_full_goto_insn): Likewise.
524 * regcache.c (regcache_register_size): Likewise.
525 (get_regcache_arch): Remove.
526 (regcache_read_pc): Likewise.
527 * regcache.h (get_regcache_arch): Remove.
528 * remote-sim.c (gdbsim_fetch_register): Likewise.
529 (gdbsim_store_register): Likewise.
530 * remote.c (fetch_register_using_p): Likewise.
531 (send_g_packet): Likewise.
532 (remote_prepare_to_store): Likewise.
533 (store_registers_using_G): Likewise.
534 * reverse.c (save_bookmark_command): Likewise.
535 (goto_bookmark_command): Likewise.
536 * rs6000-aix-tdep.c (branch_dest): Likewise.
537 * rs6000-nat.c (rs6000_ptrace64): Likewise.
538 (fetch_register): Likewise.
539 * rs6000-tdep.c (ppc_supply_reg): Likewise.
540 (ppc_collect_reg): Likewise.
541 (ppc_collect_gregset): Likewise.
542 (ppc_collect_fpregset): Likewise.
543 (ppc_collect_vsxregset): Likewise.
544 (ppc_collect_vrregset): Likewise.
545 (ppc_displaced_step_hw_singlestep): Likewise.
546 (rs6000_pseudo_register_read): Likewise.
547 (rs6000_pseudo_register_write): Likewise.
548 * s390-linux-nat.c (supply_gregset): Likewise.
549 (fill_gregset): Likewise.
550 (s390_linux_fetch_inferior_registers): Likewise.
551 * s390-linux-tdep.c (s390_write_pc): Likewise.
552 (s390_software_single_step): Likewise.
553 (s390_all_but_pc_registers_record): Likewise.
554 (s390_linux_syscall_record): Likewise.
555 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
556 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
557 (shnbsd_store_inferior_registers): Likewise.
558 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
559 (sh_extract_return_value_fpu): Likewise.
560 (sh_store_return_value_nofpu): Likewise.
561 (sh_corefile_supply_regset): Likewise.
562 (sh_corefile_collect_regset): Likewise.
563 * sh64-tdep.c (sh64_extract_return_value): Likewise.
564 (sh64_store_return_value): Likewise.
565 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
566 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
567 (sparc_store_inferior_registers): Likewise.
568 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
569 (sparc_ravenscar_prepare_to_store): Likewise.
570 * sparc-tdep.c (sparc32_store_arguments): Likewise.
571 (sparc_analyze_control_transfer): Likewise.
572 (sparc_step_trap): Likewise.
573 (sparc_software_single_step): Likewise.
574 (sparc32_gdbarch_init): Likewise.
575 (sparc_supply_rwindow): Likewise.
576 (sparc_collect_rwindow): Likewise.
577 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
578 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
579 (sparc64nbsd_collect_gregset): Likewise.
580 (sparc64nbsd_supply_fpregset): Likewise.
581 (sparc64nbsd_collect_fpregset): Likewise.
582 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
583 (sparc64_supply_gregset): Likewise.
584 (sparc64_collect_gregset): Likewise.
585 (sparc64_supply_fpregset): Likewise.
586 (sparc64_collect_fpregset): Likewise.
587 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
588 * spu-tdep.c (spu_unwind_sp): Likewise.
589 (spu2ppu_prev_register): Likewise.
590 (spu_memory_remove_breakpoint): Likewise.
591 * stack.c (return_command): Likewise.
592 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
593 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
594 * tracefile.c (trace_save_ctf): Likewise.
595 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
596 (do_windows_store_inferior_registers): Likewise.
597 (windows_resume): Likewise.
598 * xtensa-linux-nat.c (fill_gregset): Likewise.
599 (supply_gregset_reg): Likewise.
600 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
601 (xtensa_register_read_masked): Likewise.
602 (xtensa_supply_gregset): Likewise.
603 (xtensa_extract_return_value): Likewise.
604 (xtensa_store_return_value): Likewise.
605
edd079d9
UW
6062017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
607
608 * doublest.c (floatformat_from_string): New function.
609 * doublest.h (floatformat_from_string): Add prototype.
610
611 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
612 (OP_FLOAT): ... this.
613 * expression.h: Do not include "doublest.h".
614 (union exp_element): Replace doubleconst and decfloatconst by
615 new element floatconst.
616 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
617 (ada_evaluate_subexp): Likewise.
618 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
619 OP_DOUBLE and OP_DECFLOAT.
620 * expprint.c (print_subexp_standard): Likewise.
621 (dump_subexp_body_standard): Likewise.
622 * breakpoint.c (watchpoint_exp_is_const): Likewise.
623
624 * parse.c: Include "dfp.h".
625 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
626 (write_exp_elt_floatcst): New function.
627 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
628 and OP_DECFLOAT.
629 (operator_check_standard): Likewise.
630 (parse_float): Do not accept suffix. Take type as input. Return bool.
631 Return target format buffer instead of host DOUBLEST.
632 Use floatformat_from_string and decimal_from_string to parse
633 either binary or decimal floating-point types.
634 (parse_c_float): Remove.
635 * parser-defs.h: Do not include "doublest.h".
636 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
637 (write_exp_elt_floatcst): Add prototype.
638 (parse_float): Update prototype.
639 (parse_c_float): Remove.
640
641 * c-exp.y: Do not include "dfp.h".
642 (typed_val_float): Use byte buffer instead of DOUBLEST.
643 (typed_val_decfloat): Remove.
644 (DECFLOAT): Remove.
645 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
646 (parse_number): Update to new parse_float interface.
647 Parse suffixes and determine type before calling parse_float.
648 Handle decimal and binary FP types the same way.
649
650 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
651 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
652 (parse_number): Update to new parse_float interface.
653 Parse suffixes and determine type before calling parse_float.
654
655 * f-exp.y: Replace dval by typed_val_float.
656 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
657 (parse_number): Use parse_float instead of atof.
658
659 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
660 (parse_go_float): Remove.
661 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
662 (parse_number): Call parse_float instead of parse_go_float.
663 Parse suffixes and determine type before calling parse_float.
664
665 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
666 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
667 (parse_number): Update to new parse_float interface.
668 Parse suffixes and determine type before calling parse_float.
669
670 * m2-exp.y: Replace dval by byte buffer val.
671 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
672 (parse_number): Call parse_float instead of atof.
673
674 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
675 (lex_number): Call parse_float instead of strtod.
676 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
677 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
678 Use write_exp_elt_floatcst.
679 (unit_testing): Remove static variable.
680 (rust_type): Do not check unit_testing.
681 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
682
683 * ada-exp.y (type_float, type_double): Remove.
684 (typed_val_float): Use byte buffer instead of DOUBLEST.
685 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
686 * ada-lex.l (processReal): Use parse_float instead of sscanf.
687
cc628f3d
AH
6882017-10-25 Alan Hayward <alan.hayward@arm.com>
689
690 * aarch64-tdep.h (enum aarch64_regnum): Remove.
691 * arch/aarch64.h: New file.
692
09a7c6aa
UW
6932017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
694
695 * dfp.h (decimal_from_string): Use const reference for argument.
696 * dfp.c (decimal_from_string): Likewise.
697
8ba0dd51
UW
6982017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
699
700 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
701 * sh64-tdep.c (sh64_do_fp_register): Likewise.
702 * mips-tdep.c (mips_print_fp_register): Likewise.
703
16e812b2
UW
7042017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
705
706 * common/format.h (enum argclass): Replace decfloat_arg by
707 dec32float_arg, dec64float_arg, and dec128float_arg.
708 * common/format.c (parse_format_string): Update to return
709 new decimal float argument classes.
710
711 * printcmd.c (printf_decfloat): Rename to ...
712 (printf_floating): ... this. Add argclass argument, and use it
713 instead of parsing the format string again. Add support for
714 binary floating-point values, using floatformat_to_string.
715 Convert value to the target format if it doesn't already match.
716 (ui_printf): Call printf_floating instead of printf_decfloat,
717 also for double_arg / long_double_arg. Pass argclass.
718
719 * dfp.c (decimal_to_string): Add format string argument.
720 * dfp.h (decimal_to_string): Likewise.
721
722 * doublest.c (floatformat_to_string): Add format string argument.
723 * doublest.h (floatformat_to_string): Likewise.
724
fdf0cbc2
UW
7252017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
726
727 * doublest.c (floatformat_precision): New routine.
728 (floatformat_to_string): Likewise.
729 * doublest.c (floatformat_to_string): Add prototype.
730
731 * printcmd.c (print_scalar_formatted): Only call print_floating
732 on floating-point types.
733 * valprint.c: Do not include "floatformat.h".
734 (generic_val_print_decfloat): Remove.
735 (generic_val_print): Call generic_val_print_float for both
736 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
737 (print_floating): Use floatformat_to_string. Handle decimal float.
738 (print_decimal_floating): Remove, merge into floatformat_to_string.
739 * value.h (print_decimal_floating): Remove.
740
741 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
742
5033013f
UW
7432017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
744
745 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
746
a664f67e
SM
7472017-10-21 Simon Marchi <simon.marchi@ericsson.com>
748
749 * memattr.h: Don't include vec.h.
750 (struct mem_attrib): Initialize fields.
751 <unknown>: New static method.
752 (struct mem_region): Add constructors, operator<, initialize
753 fields.
754 * memattr.c: Include algorithm.
755 (default_mem_attrib, unknown_mem_attrib): Remove.
756 (user_mem_region_list): New global.
757 (target_mem_region_list, mem_region_list): Change type to
758 std::vector<mem_region>.
759 (mem_use_target): Now a function.
760 (target_mem_regions_valid): Change type to bool.
761 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
762 (require_user_regions): Adjust.
763 (require_target_regions): Adjust.
764 (create_mem_region): Adjust.
765 (lookup_mem_region): Adjust.
766 (invalidate_target_mem_regions): Adjust.
767 (mem_clear): Rename to...
768 (user_mem_clear): ... this, and adjust.
769 (mem_command): Adjust.
770 (info_mem_command): Adjust.
771 (mem_enable, enable_mem_command, mem_disable,
772 disable_mem_command): Adjust.
773 (mem_delete): Adjust.
774 (delete_mem_command): Adjust.
775 * memory-map.h (parse_memory_map): Return an std::vector.
776 * memory-map.c (parse_memory_map): Likewise.
777 (struct memory_map_parsing_data): Add constructor.
778 <memory_map>: Point to std::vector.
779 (memory_map_start_memory): Adjust.
780 (memory_map_end_memory): Adjust.
781 (memory_map_end_property): Adjust.
782 (clear_result): Remove.
783 * remote.c (remote_memory_map): Return an std::vector.
784 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
785 Remove.
786 (target_debug_print_mem_region_vector): New.
787 * target-delegates.c: Regenerate.
788 * target.h (mem_region_vector): New typedef.
789 (to_memory_map): Return mem_region_vector.
790 (target_memory_map): Return an std::vector.
791 * target.c (target_memory_map): Return an std::vector.
792 (flash_erase_command): Adjust.
793
6e17c565
SM
7942017-10-21 Simon Marchi <simon.marchi@ericsson.com>
795
796 * memory-map.c (struct memory_map_parsing_data) <property_name>:
797 Change type to std::string.
798 (memory_map_start_property): Adjust.
799 (memory_map_end_property): Adjust.
800
cfba9872
SM
8012017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
802
803 * infrun.h: Include common/byte-vector.h.
804 (struct displaced_step_closure): New struct.
805 (struct buf_displaced_step_closure): New struct.
806 * infrun.c (displaced_step_closure::~displaced_step_closure):
807 Provide default implementation.
808 (displaced_step_clear): Deallocate step closure with delete.
809 * aarch64-tdep.c (displaced_step_closure): Rename to ...
810 (aarch64_displaced_step_closure): ... this, extend
811 displaced_step_closure.
812 (aarch64_displaced_step_data) <dsc>: Change type to
813 aarch64_displaced_step_closure.
814 (aarch64_displaced_step_copy_insn): Adjust to type change, use
815 unique_ptr.
816 (aarch64_displaced_step_fixup): Add cast for displaced step
817 closure.
818 * amd64-tdep.c (displaced_step_closure): Rename to ...
819 (amd64_displaced_step_closure): ... this, extend
820 displaced_step_closure.
821 <insn_buf>: Change type to std::vector<gdb_byte>.
822 <max_len>: Remove.
823 (fixup_riprel): Change type of DSC parameter, adjust to type
824 change of insn_buf.
825 (fixup_displaced_copy): Change type of DSC parameter.
826 (amd64_displaced_step_copy_insn): Instantiate
827 amd64_displaced_step_closure.
828 (amd64_displaced_step_fixup): Add cast for closure type, adjust
829 to type change of insn_buf.
830 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
831 parameter DSC.
832 (arm_linux_copy_svc): Likewise.
833 (cleanup_kernel_helper_return): Likewise.
834 (arm_catch_kernel_helper_return): Likewise.
835 (arm_linux_displaced_step_copy_insn): Instantiate
836 arm_displaced_step_closure.
837 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
838 (displaced_read_reg): Change type of parameter DSC.
839 (branch_write_pc): Likewise.
840 (load_write_pc): Likewise.
841 (alu_write_pc): Likewise.
842 (displaced_write_reg): Likewise.
843 (arm_copy_unmodified): Likewise.
844 (thumb_copy_unmodified_32bit): Likewise.
845 (thumb_copy_unmodified_16bit): Likewise.
846 (cleanup_preload): Likewise.
847 (install_preload): Likewise.
848 (arm_copy_preload): Likewise.
849 (thumb2_copy_preload): Likewise.
850 (install_preload_reg): Likewise.
851 (arm_copy_preload_reg): Likewise.
852 (cleanup_copro_load_store): Likewise.
853 (install_copro_load_store): Likewise.
854 (arm_copy_copro_load_store) Likewise.
855 (thumb2_copy_copro_load_store): Likewise.
856 (cleanup_branch): Likewise.
857 (install_b_bl_blx): Likewise.
858 (arm_copy_b_bl_blx): Likewise.
859 (thumb2_copy_b_bl_blx): Likewise.
860 (thumb_copy_b): Likewise.
861 (install_bx_blx_reg): Likewise.
862 (arm_copy_bx_blx_reg): Likewise.
863 (thumb_copy_bx_blx_reg): Likewise.
864 (cleanup_alu_imm): Likewise.
865 (arm_copy_alu_imm): Likewise.
866 (thumb2_copy_alu_imm): Likewise.
867 (cleanup_alu_reg): Likewise.
868 (install_alu_reg): Likewise.
869 (arm_copy_alu_reg): Likewise.
870 (thumb_copy_alu_reg): Likewise.
871 (cleanup_alu_shifted_reg): Likewise.
872 (install_alu_shifted_reg): Likewise.
873 (arm_copy_alu_shifted_reg): Likewise.
874 (cleanup_load): Likewise.
875 (cleanup_store): Likewise.
876 (arm_copy_extra_ld_st): Likewise.
877 (install_load_store): Likewise.
878 (thumb2_copy_load_literal): Likewise.
879 (thumb2_copy_load_reg_imm): Likewise.
880 (arm_copy_ldr_str_ldrb_strb): Likewise.
881 (cleanup_block_load_all): Likewise.
882 (cleanup_block_store_pc): Likewise.
883 (cleanup_block_load_pc): Likewise.
884 (arm_copy_block_xfer): Likewise.
885 (thumb2_copy_block_xfer): Likewise.
886 (cleanup_svc): Likewise.
887 (install_svc): Likewise.
888 (arm_copy_svc): Likewise.
889 (thumb_copy_svc): Likewise.
890 (arm_copy_undef): Likewise.
891 (thumb_32bit_copy_undef): Likewise.
892 (arm_copy_unpred): Likewise.
893 (arm_decode_misc_memhint_neon): Likewise.
894 (arm_decode_unconditional): Likewise.
895 (arm_decode_miscellaneous): Likewise.
896 (arm_decode_dp_misc): Likewise.
897 (arm_decode_ld_st_word_ubyte): Likewise.
898 (arm_decode_media): Likewise.
899 (arm_decode_b_bl_ldmstm): Likewise.
900 (arm_decode_ext_reg_ld_st): Likewise.
901 (thumb2_decode_dp_shift_reg): Likewise.
902 (thumb2_decode_ext_reg_ld_st): Likewise.
903 (arm_decode_svc_copro): Likewise.
904 (thumb2_decode_svc_copro): Likewise.
905 (install_pc_relative): Likewise.
906 (thumb_copy_pc_relative_16bit): Likewise.
907 (thumb_decode_pc_relative_16bit): Likewise.
908 (thumb_copy_pc_relative_32bit): Likewise.
909 (thumb_copy_16bit_ldr_literal): Likewise.
910 (thumb_copy_cbnz_cbz): Likewise.
911 (thumb2_copy_table_branch): Likewise.
912 (cleanup_pop_pc_16bit_all): Likewise.
913 (thumb_copy_pop_pc_16bit): Likewise.
914 (thumb_process_displaced_16bit_insn): Likewise.
915 (decode_thumb_32bit_ld_mem_hints): Likewise.
916 (thumb_process_displaced_32bit_insn): Likewise.
917 (thumb_process_displaced_insn): Likewise.
918 (arm_process_displaced_insn): Likewise.
919 (arm_displaced_init_closure): Likewise.
920 (arm_displaced_step_fixup): Add cast for closure.
921 * arm-tdep.h: Include infrun.h.
922 (displaced_step_closure): Rename to ...
923 (arm_displaced_step_closure): ... this, extend
924 displaced_step_closure.
925 <u::svc::copy_svc_os>: Change type of parameter DSC.
926 <cleanup>: Likewise.
927 (arm_process_displaced_insn): Likewise.
928 (arm_displaced_init_closure): Likewise.
929 (displaced_read_reg): Likewise.
930 (displaced_write_reg): Likewise.
931 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
932 Adjust.
933 * i386-tdep.h: Include infrun.h.
934 (i386_displaced_step_closure): New typedef.
935 * i386-tdep.c (i386_displaced_step_copy_insn): Use
936 i386_displaced_step_closure.
937 (i386_displaced_step_fixup): Adjust.
938 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
939 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
940 and unique_ptr.
941 (ppc_displaced_step_fixup): Adjust.
942 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
943 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
944 and unique_ptr.
945 (s390_displaced_step_fixup): Adjust.
946
b392b304
SM
9472017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
948
949 * interps.h (interp_resume, interp_suspend, interp_set_temp):
950 Remove declarations.
951
d5833c62
TT
9522017-10-20 Tom Tromey <tom@tromey.com>
953
954 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
955 std::vector.
956 (gdb_bfd_record_inclusion): Update.
957 (bfdp): Remove typedef.
958
06d5bbc8
TT
9592017-10-20 Tom Tromey <tom@tromey.com>
960
961 * gdb_bfd.c (gdb_bfd_ref): Use new.
962 (struct gdb_bfd_data): Add constructor, destructor, and member
963 initializers.
964 (gdb_bfd_unref): Use delete.
965
2712ce2e
TT
9662017-10-20 Tom Tromey <tom@tromey.com>
967
968 * exec.c (exec_file_attach): Use new_bfd_ref.
969 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
970 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
971 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
972 new_bfd_ref.
973 * gdb_bfd.h (new_bfd_ref): New function.
974
fcc8fb2f
PA
9752017-10-20 Pedro Alves <palves@redhat.com>
976
977 * main.c (captured_command_loop): Add attribute noinline.
978
4c2287b0
SM
9792017-10-19 Simon Marchi <simon.marchi@ericsson.com>
980
981 * interps.c (struct interp_factory): Add constructor.
982 (interp_factory_p): Remove typedef.
983 (DEF_VEC_P(interp_factory_p)): Remove.
984 (interpreter_factories): Change type to std::vector.
985 (interp_factory_register): Adjust.
986 (interp_lookup): Adjust.
987 (interpreter_completer): Adjust.
988
3d415c26
TT
9892017-10-19 Tom Tromey <tom@tromey.com>
990
991 * break-catch-syscall.c (catch_syscall_completer): Use
992 std::string, gdb::unique_xmalloc_ptr.
993
395423c4
TT
9942017-10-19 Tom Tromey <tom@tromey.com>
995
996 * infcall.c (call_function_by_hand_dummy): Use std::string.
997
54f70bc1
TT
9982017-10-19 Tom Tromey <tom@tromey.com>
999
1000 * mi/mi-main.c (mi_cmd_execute): Update.
1001 * top.h (prepare_execute_command): Return scoped_value_mark.
1002 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
1003 Add move constructor.
1004 * top.c (prepare_execute_command): Return scoped_value_mark.
1005 (execute_command): Update.
1006
63929e84
PA
10072017-10-19 Pedro Alves <palves@redhat.com>
1008
1009 * xml-support.c (xml_fetch_content_from_file): Check fread's
1010 return.
1011
a75868f5
PA
10122017-10-19 Pedro Alves <palves@redhat.com>
1013
1014 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
1015 async.
1016 (handle_error_fd): New function.
1017 (ser_base_async): Add/delete an event loop file handler for
1018 error_fd.
1019
2edf834e
PA
10202017-10-19 Pedro Alves <palves@redhat.com>
1021
1022 * xml-support.c (xml_fetch_content_from_file): Don't read in
1023 chunks. Instead use fseek to determine the file's size, and read
1024 it in one go.
1025
c8ba13ad
KS
10262017-11-18 Keith Seitz <keiths@redhat.com>
1027
1028 * c-exp.y (oper): Canonicalize conversion operators of user-defined
1029 types.
1030 Add whitespace to front of type name.
1031
37534686
KS
10322017-10-18 Keith Seitz <keiths@redhat.com>
1033
1034 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
1035 DW_AT_accessibility.
1036
28c7c158
YQ
10372017-10-18 Yao Qi <yao.qi@linaro.org>
1038
1039 * features/tic6x-c62x-linux.c: Remove.
1040
30f0b101
TT
10412017-10-17 Tom Tromey <tom@tromey.com>
1042
1043 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
1044 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
1045 (do_mixed_source_and_assembly): Likewise.
1046
57e12da9
TT
10472017-10-17 Tom Tromey <tom@tromey.com>
1048
1049 * regcache.c (regcache::xfer_part): Remove assertion.
1050
7b700999
PA
10512017-10-17 Pedro Alves <palves@redhat.com>
1052
1053 * xml-support.c (xml_fetch_content_from_file): Call
1054 unique_ptr::release() instead unique_ptr::get() when passing
1055 through xrealloc.
1056
d3037ba6
YQ
10572017-10-17 Yao Qi <yao.qi@linaro.org>
1058
1059 * regcache.c (regcache::xfer_part): Remove parameters read and
1060 write, add parameter is_raw. All callers are updated.
1061
83d5a34d
KS
10622017-10-16 Keith Seitz <keiths@redhat.com>
1063
1064 * c-typeprint.c (enum access_specifier): Moved here from
1065 c_type_print_base.
1066 (output_access_specifier): New function.
1067 (c_type_print_base): Consider typedefs when assessing
1068 whether access labels are needed.
1069 Use output_access_specifier as needed.
1070 Output access specifier for typedefs, if needed.
1071 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
1072 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
1073 fields.
1074 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
1075 accessor macros.
1076
87028b87
TT
10772017-10-16 Tom Tromey <tom@tromey.com>
1078
1079 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
1080 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
1081 * target.c (target_fileio_read_stralloc): Update.
1082 * sparc64-tdep.c (adi_is_addr_mapped): Update.
1083 * target.h (target_fileio_read_stralloc): Return
1084 unique_xmalloc_ptr.
1085
b7b030ad
TT
10862017-10-16 Tom Tromey <tom@tromey.com>
1087
1088 * xml-syscall.c (xml_init_syscalls_info): Update.
1089 * xml-support.c (xinclude_start_include): Update.
1090 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
1091 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
1092 (xml_fetch_content_from_file): Likewise.
1093 * osdata.c (get_osdata): Update.
1094 * target.h (target_read_stralloc, target_get_osdata): Return
1095 unique_xmalloc_ptr.
1096 * solib-aix.c (solib_aix_get_library_list): Update.
1097 * solib-target.c (solib_target_current_sos): Update.
1098 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
1099 * xml-tdesc.c (fetch_available_features_from_target): Update.
1100 (target_fetch_description_xml): Update.
1101 (file_read_description_xml): Update.
1102 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
1103 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
1104 (remote_pid_to_exec_file): Update.
1105 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
1106 (target_get_osdata): Likewise.
1107
b80406ac
TT
11082017-10-16 Tom Tromey <tom@tromey.com>
1109
1110 * remote.c (remote_register_number_and_offset): Use std::vector.
1111 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
1112 (putpkt_binary): Use gdb::def_vector.
1113 (compare_sections_command): Use gdb::byte_vector.
1114
a90ecff8
TT
11152017-10-16 Tom Tromey <tom@tromey.com>
1116
1117 * ppc-linux-nat.c (hwdebug_insert_point): Use
1118 gdb::unique_xmalloc_ptr, XDUP.
1119
2dc0e219
TT
11202017-10-16 Tom Tromey <tom@tromey.com>
1121
1122 * probe.c (parse_probes): Use std::string.
1123 (info_probes_for_ops, enable_probes_command)
1124 (disable_probes_command): Remove cleanups.
1125
b05628f0
TT
11262017-10-16 Tom Tromey <tom@tromey.com>
1127
1128 * buildsym.c (block_compar): Remove.
1129 (end_symtab_get_static_block): Use std::vector.
1130
a79b1bc6
SM
11312017-10-16 Simon Marchi <simon.marchi@ericsson.com>
1132
1133 * memrange.h (struct mem_range): Define operator< and operator==.
1134 (mem_range_s): Remove.
1135 (DEF_VEC_O (mem_range_s)): Remove.
1136 (normalize_mem_ranges): Change parameter type to std::vector.
1137 * memrange.c (compare_mem_ranges): Remove.
1138 (normalize_mem_ranges): Change parameter type to std::vector,
1139 adjust to vector change.
1140 * exec.c (section_table_available_memory): Return vector, remove
1141 parameter.
1142 (section_table_read_available_memory): Adjust to std::vector
1143 change.
1144 * remote.c (remote_read_bytes): Adjust to std::vector
1145 change.
1146 * tracepoint.h (traceframe_available_memory): Change parameter
1147 type to std::vector.
1148 * tracepoint.c (traceframe_available_memory): Change parameter
1149 type to std::vector, adjust.
1150 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
1151 std::vector change.
1152 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1153 unittests/memrange-selftests.c.
1154 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
1155 * gdb/unittests/memrange-selftests.c: New file.
1156
63f0e930
PA
11572017-10-16 Pedro Alves <palves@redhat.com>
1158
1159 * elfread.c (probe_key_free): Rename range-for variable.
1160 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
1161 (find_probe_by_pc, collect_probes): Rename range-for variable.
1162
c40c7bfc
YQ
11632017-10-16 Yao Qi <yao.qi@linaro.org>
1164
1165 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
1166 * features/tic6x-c62x.c: Remove.
1167 * features/tic6x-c64x-linux.c: Remove.
1168 * features/tic6x-c64x.c: Remove.
1169 * features/tic6x-c64xp-linux.c: Remove.
1170 * features/tic6x-c64xp.c: Remove.
1171 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
1172 initialize_tdesc_tic6x_*_linux functions.
1173 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
1174 initialize_tdesc_tic6x_* functions.
1175
df27ae6a
YQ
11762017-10-16 Yao Qi <yao.qi@linaro.org>
1177
1178 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
1179 tic6x-c62x.
1180 * regformats/tic6x-c62x.dat: Remove.
1181 * regformats/tic6x-c64x.dat: Remove.
1182 * regformats/tic6x-c64xp.dat: Remove.
1183
86766165
SM
11842017-10-15 Simon Marchi <simon.marchi@ericsson.com>
1185
1186 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
1187 (the !HAVE_LIBEXPAT version).
1188
824dfcc3
SM
11892017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1190
1191 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
1192 const.
1193
2098b393
SM
11942017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1195
1196 * target.h: Include tracepoint.h.
1197 (enum trace_find_type): Move to tracepoint.h.
1198 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
1199 * tracepoint.h: Don't include target.h
1200 (enum trace_find_type): Move from target.h.
1201 (parse_traceframe_info): Return a unique ptr.
1202 * tracepoint.c (current_traceframe_info): Change type to unique
1203 ptr.
1204 (free_traceframe_info): Remove.
1205 (clear_traceframe_info): Don't manually free
1206 current_traceframe_info.
1207 (free_result): Remove.
1208 (parse_traceframe_info): Return a unique ptr.
1209 (get_traceframe_info): Adjust to unique ptr.
1210 * ctf.c (ctf_traceframe_info): Return a unique ptr.
1211 * remote.c (remote_traceframe_info): Return a unique ptr.
1212 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
1213 ptr.
1214 * target-debug.h (target_debug_print_traceframe_info_up): New
1215 macro.
1216 * target-delegates.c: Regenerate.
1217
4cdd21a8
SM
12182017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1219
1220 * memrange.h (struct mem_range): Add constructors.
1221 * tracepoint.h (struct traceframe_info) <memory>: Change type to
1222 std::vector<mem_range>.
1223 * tracepoint.c (free_traceframe_info): Don't manually free
1224 vector.
1225 (traceframe_info_start_memory): Adjust to vector change.
1226 (traceframe_available_memory): Likewise.
1227 * tracefile-tfile.c (build_traceframe_info): Likewise.
1228 * ctf.c (ctf_traceframe_info): Likewise.
1229
d0d292a2
SM
12302017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1231
1232 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
1233 std::vector<int>.
1234 * tracepoint.c (free_traceframe_info): Deallocate with delete.
1235 (traceframe_info_start_tvar): Adjust to vector change.
1236 (parse_traceframe_info): Allocate with new.
1237 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
1238 vector change.
1239 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
1240 change.
1241 tfile_traceframe_info): Allocate with new.
1242 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
1243 change.
1244
8d3c73ef
SM
12452017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1246
1247 * tracepoint.c (traceframe_info): Rename to...
1248 (current_traceframe_info): ...this.
1249 (clear_traceframe_info): Adjust.
1250 (get_traceframe_info): Adjust.
1251
b129dcac
SM
12522017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1253
1254 * nat/linux-osdata.c: Include algorithm.
1255 (compare_processes): Remove.
1256 (struct pid_pgid_entry): New struct.
1257 (linux_xfer_osdata_processgroups): Use std::vector instead of
1258 XNEWVEC.
1259
af5bf4ad
SM
12602017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1261
1262 * objfiles.h: Don't include symfile.h.
1263 (struct partial_symbol): Remove forward-declaration.
1264 (struct objfile) <global_psymbols, static_psymbols>: Change type
1265 to std::vector<partial_symbol *>.
1266 * objfiles.c (objfile::objfile): Don't memset those fields.
1267 (objfile::~objfile): Don't free those fields.
1268 * psympriv.h (struct psymbol_allocation_list): Remove
1269 forward-declaration.
1270 (add_psymbol_to_list): Change psymbol_allocation_list parameter
1271 to std::vector.
1272 (start_psymtab_common): Change parameters to std::vector.
1273 * psymtab.c: Include algorithm.
1274 (require_partial_symbols): Call shrink_to_fit.
1275 (find_pc_sect_psymbol): Adjust to vector change.
1276 (match_partial_symbol): Likewise.
1277 (lookup_partial_symbol): Likewise.
1278 (psym_relocate): Likewise.
1279 (dump_psymtab): Likewise.
1280 (recursively_search_psymtabs): Likewise.
1281 (compare_psymbols): Remove.
1282 (sort_pst_symbols): Adjust to vector change.
1283 (start_psymtab_common): Likewise.
1284 (end_psymtab_common): Likewise.
1285 (psymbol_bcache_full): De-constify return value.
1286 (add_psymbol_to_bcache): Likewise.
1287 (extend_psymbol_list): Remove.
1288 (append_psymbol_to_list): Adjust to vector change.
1289 (add_psymbol_to_list): Likewise.
1290 (init_psymbol_list): Likewise.
1291 (maintenance_info_psymtabs): Likewise.
1292 (maintenance_check_psymtabs): Likewise.
1293 * symfile.h (struct psymbol_allocation_list): Remove.
1294 * symfile.c (reread_symbols): Adjust to vector change.
1295 * dbxread.c (start_psymtab): Change type of parameters.
1296 (dbx_symfile_read): Adjust to vector change.
1297 (read_dbx_symtab): Likewise.
1298 (start_psymtab): Change type of parameters.
1299 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
1300 (create_partial_symtab): Likewise.
1301 (add_partial_symbol): Likewise.
1302 (write_one_signatured_type): Likewise.
1303 (recursively_write_psymbols): Likewise.
1304 * mdebugread.c (parse_partial_symbols): Likewise.
1305 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
1306 (scan_xcoff_symtab): Adjust to vector change.
1307 (xcoff_initial_scan): Likewise.
1308
3ec5942f
SM
13092017-10-13 Simon Marchi <simon.marchi@ericsson.com>
1310
1311 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
1312
2399fe6a
YQ
13132017-10-13 Yao Qi <yao.qi@linaro.org>
1314
1315 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
1316 Remove s390x-*-expedite, add s390x-expedite.
1317
4bf3f4a8
YQ
13182017-10-13 Yao Qi <yao.qi@linaro.org>
1319
1320 * features/s390-gs-linux64.c: Regenerated.
1321 * features/s390x-gs-linux64.c: Regenerated.
1322
9e86da07
TT
13232017-10-13 Tom Tromey <tom@tromey.com>
1324
1325 * compile/compile-object-run.c (do_module_cleanup): Use delete.
1326 * solib.c (update_solib_list, reload_shared_libraries_1): Use
1327 delete.
1328 * symfile.c (symbol_file_add_with_addrs): Use new.
1329 (symbol_file_add_separate): Update comment.
1330 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
1331 * jit.c (jit_object_close_impl): Use new.
1332 (jit_unregister_code): Use delete.
1333 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
1334 (~objfile): Rename from free_objfile.
1335 (free_objfile_separate_debug, do_free_objfile_cleanup)
1336 (free_all_objfiles, objfile_purge_solibs): Use delete.
1337 * objfiles.h (struct objfile): Add constructor and destructor.
1338 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
1339 (allocate_objfile, free_objfile): Don't declare.
1340 (struct objstats): Add initializers.
1341
c2508e90
SM
13422017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1343
1344 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
1345 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
1346 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
1347 * gdbarch.h: Regenerate.
1348 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
1349 Adjust comment.
1350 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
1351 (i386_displaced_step_fixup): Adjust comment.
1352 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
1353
a900ff72
TT
13542017-10-12 Tom Tromey <tom@tromey.com>
1355
1356 * prologue-value.h (pv_area::store_would_trash): Return bool.
1357 (pv_area::find_reg): Likewise.
1358 * prologue-value.c (pv_area::store_would_trash): Return bool.
1359 (pv_area::find_reg): Likewise.
1360
f7b7ed97
TT
13612017-10-12 Tom Tromey <tom@tromey.com>
1362
1363 * s390-linux-tdep.c (s390_store, s390_load)
1364 (s390_check_for_saved, s390_analyze_prologue): Update.
1365 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
1366 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
1367 * prologue-value.h (class pv_area): Move from prologue-value.c.
1368 Change names of members. Add constructor, destructor, member
1369 functions.
1370 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
1371 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
1372 (pv_area_fetch, pv_area_scan): Don't declare.
1373 * prologue-value.c (struct pv_area::area_entry): Now member of
1374 pv_area.
1375 (struct pv_area): Move to prologue-value.h.
1376 (pv_area::pv_area): Rename from make_pv_area.
1377 (pv_area::~pv_area): Rename from free_pv_area.
1378 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
1379 (clear_entries, find_entry, overlaps, store_would_trash, store)
1380 (fetch, find_reg, scan): Now member of pv_area.
1381 Remove "area" argument. Update.
1382 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
1383 Update.
1384 * mn10300-tdep.c (push_reg, check_for_saved)
1385 (mn10300_analyze_prologue): Update.
1386 * mep-tdep.c (is_arg_spill, check_for_saved)
1387 (mep_analyze_prologue): Update.
1388 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
1389 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
1390 (m32c_is_struct_return, m32c_analyze_prologue): Update.
1391 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
1392 Update.
1393 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
1394 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
1395
466eecee
SM
13962017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1397
1398 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
1399 * linux-nat.c (linux_nat_delete_thread): New variable.
1400 (lwp_free): Invoke linux_nat_delete_thread if set.
1401 (linux_nat_set_delete_thread): New function.
1402 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
1403 thread delete callback.
1404 * arm-linux-nat.c (arm_linux_delete_thread): New function.
1405 (_initialize_arm_linux_nat): Assign thread delete callback.
1406 * s390-linux-nat.c (s390_delete_thread): New function.
1407 (_initialize_s390_nat): Assign thread delete callback.
1408 * x86-linux-nat.c (x86_linux_add_target): Likewise.
1409 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
1410 function.
1411 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
1412 declaration.
1413 * nat/x86-linux.c (x86_linux_delete_thread): New function.
1414 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
1415
f71c8822
TT
14162017-10-09 Tom Tromey <tom@tromey.com>
1417
1418 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
1419 std::string.
1420 * tui/tui-layout.c (enum tui_status): Use std::string.
1421
981a3fb3
TT
14222017-10-11 Tom Tromey <tom@tromey.com>
1423
1424 * gdbthread.h (thread_command): Constify.
1425 * inferior.h (detach_command): Constify.
1426 * top.h (set_history, show_history): Constify.
1427 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
1428 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
1429 * bsd-kvm.c (bsd_kvm_cmd): Constify.
1430 * printcmd.c (set_command): Constify.
1431 (non_const_set_command): New function.
1432 * dcache.c (set_dcache_command, show_dcache_command): Constify.
1433 * breakpoint.c (enable_command, disable_command, delete_command)
1434 (catch_command, tcatch_command, set_breakpoint_cmd)
1435 (show_breakpoint_cmd): Constify.
1436 * macrocmd.c (macro_command): Constify.
1437 * infcmd.c (unset_command, kill_command, detach_command)
1438 (info_proc_cmd): Constify.
1439 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
1440 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
1441 (info_auto_load_cmd): Constify.
1442 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
1443 (unset_tdesc_cmd): Constify.
1444 * ada-lang.c (set_ada_command, show_ada_command)
1445 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
1446 * guile/guile.c (set_guile_command, show_guile_command)
1447 (info_guile_command): Constify.
1448 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
1449 Constify.
1450 * skip.c (skip_command): Constify.
1451 * compile/compile.c (_initialize_compile): Constify.
1452 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
1453 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
1454 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
1455 (maint_btrace_pt_show_cmd): Constify.
1456 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
1457 Constify.
1458 * python/python.c (user_show_python, user_set_python): Constify.
1459 * mips-tdep.c (set_mips_command, show_mips_command)
1460 (set_mipsfpu_command): Constify.
1461 * record-btrace.c (cmd_record_btrace_start)
1462 (cmd_set_record_btrace, cmd_show_record_btrace)
1463 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
1464 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
1465 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
1466 Constify.
1467 * symfile.c (overlay_command): Constify.
1468 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
1469 * cli/cli-logging.c (set_logging_command, show_logging_command):
1470 Constify.
1471 * cli/cli-dump.c (dump_command, append_command)
1472 (srec_dump_command, ihex_dump_command, verilog_dump_command)
1473 (tekhex_dump_command, binary_dump_command)
1474 (binary_append_command): Constify.
1475 * cli/cli-decode.c (struct cmd_list_element): Change type of
1476 "fun".
1477 * cli/cli-cmds.c (info_command, show_command, set_debug)
1478 (show_debug): Constify.
1479 (show_command): Add non-const overload.
1480 * top.c (set_history, show_history): Constify.
1481 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
1482 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
1483 * target.c (target_command): Constify.
1484 * sparc64-tdep.c (info_adi_command): Constify.
1485 * record-full.c (cmd_record_full_start): Constify.
1486 (set_record_full_command): Constify. Fix typo.
1487 (show_record_full_command): Constify.
1488 * thread.c (thread_command, thread_apply_command): Constify.
1489 * memattr.c (dummy_cmd): Constify.
1490 * value.c (function_command): Constify.
1491 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
1492 * probe.c (info_probes_command): Constify.
1493 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
1494 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
1495 (show_thread_cmd, set_thread_default_cmd)
1496 (show_thread_default_cmd): Constify.
1497 (check_empty): Constify.
1498 * tracepoint.c (tfind_command): Constify.
1499 * cp-support.c (maint_cplus_command): Constify.
1500 * windows-tdep.c (info_w32_command): Constify.
1501 * record.c (cmd_record_start, set_record_command)
1502 (show_record_command, info_record_command, cmd_record_goto):
1503 Constify.
1504 * ravenscar-thread.c (set_ravenscar_command)
1505 (show_ravenscar_command): Constify.
1506 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
1507 Constify.
1508 (add_internal_problem_command): Remove casts.
1509 * arc-tdep.c (maintenance_print_arc_command): Constify.
1510 * valprint.c (set_print, show_print, set_print_raw)
1511 (show_print_raw): Constify.
1512 * maint.c (maintenance_command, maintenance_info_command)
1513 (maintenance_print_command, maintenance_set_cmd)
1514 (maintenance_show_cmd, set_per_command_cmd)
1515 (show_per_command_cmd, maintenance_check_command): Constify.
1516 * language.c (set_check, show_check): Constify.
1517 * typeprint.c (show_print_type, set_print_type): Constify.
1518 * go32-nat.c (go32_info_dos_command): Constify.
1519
fdf44873
TT
15202017-10-11 Tom Tromey <tom@tromey.com>
1521
1522 * breakpoint.c (prepare_re_set_context): Remove.
1523 (breakpoint_re_set_one): Update. Don't use cleanups.
1524 (breakpoint_re_set): Use scoped_restore, std::string, and
1525 scoped_restore_current_language.
1526
81b1e71c
TT
15272017-10-11 Tom Tromey <tom@tromey.com>
1528
1529 * breakpoint.c (commands_command_1): Use std::string.
1530 (cleanup_executing_breakpoints): Remove.
1531 (bpstat_do_actions_1): Use scoped_restore.
1532 (bpstat_check_watchpoint): Use std::string.
1533 (decode_static_tracepoint_spec): Likewise.
1534 (break_range_command): Likewise.
1535 (watch_command_1): Likewise.
1536 (compare_breakpoints): Change argument types.
1537 (clear_command): Use std::vector.
1538 (cleanup_executing_breakpoints): Remove.
1539 (update_global_location_list): Use unique_xmalloc_ptr.
1540 (strace_command): Remove unused declaration.
1541
4f9d9906
JB
15422017-10-11 John Baldwin <jhb@FreeBSD.org>
1543
1544 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
1545 * NEWS: Mention new FreeBSD/arm native configuration.
1546 * configure.host: Add arm*-*-freebsd*.
1547 * configure.nat: Likewise.
1548 * arm-fbsd-nat.c: New file.
1549
7176dfd2
JB
15502017-10-11 John Baldwin <jhb@FreeBSD.org>
1551
1552 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
1553 (ALLDEPFILES): Add arm-fbsd-tdep.c.
1554 * NEWS: Mention new FreeBSD/arm target.
1555 * configure.tgt: Add arm*-*-freebsd*.
1556 * arm-fbsd-tdep.c: New file.
1557 * arm-fbsd-tdep.h: New file.
1558
fe220226
MR
15592017-10-11 Maciej W. Rozycki <macro@imgtec.com>
1560
1561 * linux-tdep.c (linux_make_corefile_notes): Remove call to
1562 `gdbarch_elfcore_write_linux_prpsinfo'.
1563 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
1564 method.
1565 (elf_internal_linux_prpsinfo): Remove declaration.
1566 * gdbarch.h: Regenerate.
1567 * gdbarch.c: Regenerate.
1568
a2f63b2e
MR
15692017-10-11 Maciej W. Rozycki <macro@imgtec.com>
1570
1571 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
1572 `set_gdbarch_elfcore_write_linux_prpsinfo'.
1573
458ca1d0
PA
15742017-10-11 Pedro Alves <palves@redhat.com>
1575
1576 * breakpoint.c (reattach_breakpoints): Delete.
1577 * breakpoint.h (reattach_breakpoints): Delete.
1578
905014d7
SM
15792017-10-11 Simon Marchi <simon.marchi@ericsson.com>
1580
1581 * symfile.c (registered_sym_fns): Make struct, not typedef.
1582 (DEF_VEC_O (registered_sym_fns)): Remove.
1583 (symtab_fns): Change type to std::vector.
1584 (add_symtab_fns): Adjust.
1585 (find_sym_fns): Adjust.
1586
56d704da
AK
15872017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
1588
1589 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
1590 * arc-tdep.h (arc_arch_is_em): New function.
1591 (arc_arch_is_hs): Likewise.
1592
7fa29be9
EB
15932017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
1594
1595 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
1596 parentheses in the declaration.
1597 (macro_lookup_inclusion): Likewise.
1598 (macro_lookup_definition): Likewise.
1599 * p-lang.h (pascal_builtin_types): Likewise.
1600 * tui/tui-data.c (tui_win_list): Likewise.
1601 * tui/tui-data.h (tui_win_list): Likewise.
1602 * utils.h (make_cleanup_free_section_addr_info): Likewise.
1603
d9b477e3
KB
16042017-10-11 Mark Rages <markrages@gmail.com>
1605
1606 * target-memory.c (block_boundaries): Fix for block address not
1607 aligned on block size.
1608
65630365
PA
16092017-10-10 Pedro Alves <palves@redhat.com>
1610 Tom Tromey <tom@tromey.com>
1611
1612 * breakpoint.c (struct captured_breakpoint_query_args)
1613 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
1614 (print_breakpoint): New.
1615 * breakpoint.h (print_breakpoint): Declare.
1616 * common/common-exceptions.h (enum return_reason): Remove
1617 references to catch_exceptions.
1618 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
1619 Delete.
1620 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
1621 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
1622 * gdb.h: Delete.
1623 * gdbthread.h (thread_select): Declare.
1624 * mi/mi-cmd-break.c: Don't include gdb.h.
1625 (breakpoint_notify): Use print_breakpoint.
1626 * mi/mi-cmd-catch.c: Don't include gdb.h.
1627 * mi/mi-interp.c: Don't include gdb.h.
1628 (mi_print_breakpoint_for_event): New.
1629 (mi_breakpoint_created, mi_breakpoint_modified): Use
1630 mi_print_breakpoint_for_event.
1631 * mi/mi-main.c: Don't include gdb.h.
1632 (mi_cmd_thread_select): Parse the global thread ID here. Use
1633 thread_select instead of gdb_thread_select.
1634 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
1635 of using gdb_list_thread_ids.
1636 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
1637 FILEIO_ENOSYS here.
1638 (remote_fileio_request): Use TRY/CATCH instead of
1639 catch_exceptions.
1640 * symfile-mem.c (struct symbol_file_add_from_memory_args)
1641 (symbol_file_add_from_memory_wrapper): Delete.
1642 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
1643 * thread.c: Don't include gdb.h.
1644 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
1645 (thread_alive): Use thread_select.
1646 (do_captured_thread_select): Delete, parts salvaged as ...
1647 (thread_select): ... this new function.
1648 (gdb_thread_select): Delete.
1649
bf469271
PA
16502017-10-10 Pedro Alves <palves@redhat.com>
1651 Tom Tromey <tom@tromey.com>
1652
1653 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
1654 and reverse logic.
1655 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
1656 No longer macros. Instead ...
1657 (enum wp_check_result): They're now values of this new
1658 enumeration.
1659 (watchpoint_check): Change return type to wp_check_result and
1660 parameter type to bpstat.
1661 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
1662 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
1663 catch_errors. Reverse logic of watchpoint_check call.
1664 (breakpoint_re_set_one): Now returns void and takes a breakpoint
1665 pointer as parameter.
1666 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
1667 * common/common-exceptions.c (throw_exception_sjlj): Update
1668 comments to avoid mentioning catch_errors.
1669 * exceptions.c (catch_errors): Delete.
1670 * exceptions.h: Update comments to avoid mentioning catch_errors.
1671 (catch_errors_ftype, catch_errors): Delete.
1672 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
1673 (hook_stop_stub): Delete.
1674 (restore_selected_frame): Change return type to void, and
1675 parameter type to const frame_id &.
1676 (restore_infcall_control_state): Use TRY/CATCH instead of
1677 catch_errors.
1678 * main.c (captured_command_loop): Return void and remove
1679 parameter. Remove references to catch_errors.
1680 (captured_main): Use TRY/CATCH instead of catch_errors.
1681 * objc-lang.c (objc_submethod_helper_data)
1682 (find_objc_msgcall_submethod_helper): Delete.
1683 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
1684 catch_errors.
1685 * record-full.c (record_full_message): Return void.
1686 (record_full_message_args, record_full_message_wrapper): Delete.
1687 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
1688 instead of catch_errors.
1689 * solib-aix.c (solib_aix_open_symbol_file_object): Change
1690 parameter type to int.
1691 * solib-darwin.c (open_symbol_file_object): Ditto.
1692 * solib-dsbt.c (open_symbol_file_object): Ditto.
1693 * solib-frv.c (open_symbol_file_object): Ditto.
1694 * solib-svr4.c (open_symbol_file_object): Ditto.
1695 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
1696 * solib.c (update_solib_list): Use TRY/CATCH instead of
1697 catch_errors.
1698 * solist.h (struct target_so_ops) <open_symbol_file_object>:
1699 Change type.
1700 * symmisc.c (struct print_symbol_args): Remove.
1701 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
1702 (print_symbol): Change type.
1703 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
1704 and remove parameters.
1705 (catch_errors): New.
1706 (get_windows_debug_event): Adjust.
1707
1a56bfa5
TT
17082017-10-09 Tom Tromey <tom@tromey.com>
1709
1710 * mi/mi-main.c (free_splay_tree): Remove.
1711 (list_available_thread_groups): Use splay_tree_up.
1712 * common/gdb_splay_tree.h: New file.
1713
0c478e2d
TT
17142017-10-09 Tom Tromey <tom@tromey.com>
1715
1716 * mi/mi-main.c (do_nothing): Remove.
1717 (list_available_thread_groups): Update.
1718
cbd2b4e3
PA
17192017-10-09 Pedro Alves <palves@redhat.com>
1720
1721 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
1722 reading registers when switching context.
1723
a181c0bf
JB
17242017-10-09 John Baldwin <jhb@FreeBSD.org>
1725
1726 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
1727 (fbsd_convert_siginfo): Likewise.
1728 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
1729
6e66f753
SM
17302017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
1731
1732 * configure.ac (try_guile_versions): Remove guile-2.2.
1733 * configure: Regenerate.
1734
890e9790
TT
17352017-10-09 Tom Tromey <tom@tromey.com>
1736
1737 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
1738 (COMPILE.pre): Use $(CXX).
1739
109483d9
PA
17402017-10-09 Pedro Alves <palves@redhat.com>
1741
1742 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
1743 Use bool.
1744 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
1745 * cp-support.h (cp_remove_params): Now returns a
1746 gdb::unique_xmalloc_ptr.
1747 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
1748 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
1749 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
1750 returning a gdb::unique_xmalloc_ptr.
1751 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
1752 * stack.c (find_frame_funname): Adjust to cp_remove_params
1753 returning a gdb::unique_xmalloc_ptr.
1754
791afaa2
TT
17552017-10-08 Tom Tromey <tom@tromey.com>
1756
1757 * dwarf2read.c (dwarf2_get_dwz_file): Use
1758 gdb::unique_xmalloc_ptr.
1759 (find_slot_in_mapped_hash): Likewise.
1760 (dwarf2_physname): Likewise.
1761 (create_dwo_unit_in_dwp_v1): Use std::string.
1762 (create_dwo_unit_in_dwp_v2): Likewise.
1763 (lookup_dwo_cutu): Likewise.
1764 (inherit_abstract_dies): Use std::vector.
1765 (read_array_type): Likewise.
1766 (dwarf_decode_macros): Remove unused declaration.
1767 (unsigned_int_compar): Remove.
1768 (dwarf2_build_psymtabs_hard): Use scoped_restore.
1769 (psymtabs_addrmap_cleanup): Remove.
1770
30a9c02f
TT
17712017-10-08 Tom Tromey <tom@tromey.com>
1772
1773 * frame-unwind.c (frame_unwind_try_unwinder): Update.
1774 * frame.h (frame_cleanup_after_sniffer): Declare.
1775 (frame_prepare_for_sniffer): Return void.
1776 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
1777 type of argument.
1778 (frame_prepare_for_sniffer): Return void.
1779
757325a3
TT
17802017-10-08 Tom Tromey <tom@tromey.com>
1781
1782 * utils.h (make_cleanup_value_free): Remove.
1783 * utils.c (do_value_free, struct cleanup): Remove.
1784 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
1785 Use gdb_value_up.
1786 * value.h (struct value_deleter): New.
1787 (gdb_value_up): New typedef.
1788
b9c04fb2
TT
17892017-10-08 Tom Tromey <tom@tromey.com>
1790
1791 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
1792 (make_cleanup_free_search_symbols): Remove.
1793 (search_symbols): Return std::vector.
1794 (symbol_search::compare_search_syms): Now member of
1795 symbol_search. Change arguments.
1796 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
1797 (symtab_symbol_info, rbreak_command): Update.
1798 * symtab.h (struct symbol_search) <next>: Remove.
1799 Add constructors.
1800 (symbol_search::operator<): New function.
1801 (symbol_search::operator==): New function.
1802 (search_symbols): Remove std::vector.
1803 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
1804 (symbol_search::compare_search_syms): Declare.
1805
0d28b0a5
YQ
18062017-10-06 Yao Qi <yao.qi@linaro.org>
1807
1808 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
1809 arch/aarch64-insn.o.
1810 Remove one rule.
1811 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
1812
71917808
YQ
18132017-10-06 Yao Qi <yao.qi@linaro.org>
1814
1815 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
1816 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
1817 arch/arm-linux.o respectively.
1818 * configure.tgt: Likewise.
1819
2081b2b2
YQ
18202017-10-06 Yao Qi <yao.qi@linaro.org>
1821
1822 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
1823 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
1824
a1b85d28
PA
18252017-10-06 Pedro Alves <palves@redhat.com>
1826
1827 * windows-nat.c: Include <algorithm>.
1828
d97987e2
YQ
18292017-10-06 Yao Qi <yao.qi@linaro.org>
1830
1831 * configure.tgt (i386_tobjs): New variable.
1832 (amd64_tobjs): New variable.
1833 Set $cpu_obs and $os_obs.
1834
f38307f5
YQ
18352017-10-06 Yao Qi <yao.qi@linaro.org>
1836
1837 * Makefile.in (CONFIG_SRC_SUBDIR): New.
1838 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
1839 (clean): Remove object files and dependency files.
1840 (distclean): Remove the directory.
1841 * configure.ac: Invoke AC_CONFIG_COMMANDS.
1842 * configure: Re-generated.
1843 * configure.tgt: Replace amd64.o with arch/amd64.o.
1844
2f924de6
JM
18452017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
1846
1847 PR build/22188
1848 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
1849 and SETEND.
1850
2fd9d7ca
PA
18512017-10-05 Pedro Alves <palves@redhat.com>
1852
1853 * linux-nat.c (linux_child_follow_fork): When following the parent
1854 and detaching the child, consult the parent thread's architecture
1855 instead of the child's.
1856
d13b8493
UW
18572017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
1858
1859 * ax.h: Do not include "doublest.h".
1860 (union agent_val): Remove.
1861
3b4b2f16
UW
18622017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
1863
1864 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
1865 (decimal_to_string): Return std::string object.
1866 (decimal_from_string): Accept std::string object. Return bool.
1867 (decimal_from_integral, decimal_from_doublest): Remove.
1868 (decimal_from_longest): Add prototype.
1869 (decimal_from_ulongest): Likewise.
1870 (decimal_to_longest): Likewise.
1871 (decimal_from_doublest): Likewise.
1872 * dfp.c: Do not include "gdbtypes.h" or "value.h".
1873 (MAX_DECIMAL_STRING): Move here.
1874 (decimal_to_string): Return std::string object.
1875 (decimal_from_string): Accept std::string object. Return bool.
1876 (decimal_from_integral): Remove, replace by ...
1877 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
1878 (decimal_to_longest): New function.
1879 (decimal_from_floating): Remove, replace by ...
1880 (decimal_from_doublest): ... this new function.
1881 (decimal_to_doublest): Update to new decimal_to_string interface.
1882
1883 * value.c (unpack_long): Use decimal_to_longest.
1884 * valops.c (value_cast): Use decimal_from_doublest instead of
1885 decimal_from_floating. Use decimal_from_[u]longest isntead of
1886 decimal_from_integral.
1887 * valarith.c (value_args_as_decimal): Likewise.
1888 * valprint.c (print_decimal_floating): Update to new
1889 decimal_to_string interface.
1890 * printcmd.c (printf_decfloat): Likewise.
1891 * c-exp.y (parse_number): Update to new decimal_from_string interface.
1892
1841ee5d
UW
18932017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
1894
1895 * doublest.h: Do not include "floatformat.h". Remove stale comments.
1896 * gdbtypes.c: Include "floatformat.h".
1897 * value.c: Likewise.
1898 * m68k-tdep.c: Likewise.
1899
1900 * findvar.c: Do not include "floatformat.h".
1901 * amd64-darwin-tdep.c: Likewise.
1902 * arm-linux-tdep.c: Likewise.
1903 * i386-darwin-tdep.c: Likewise.
1904 * i387-tdep.c: Likewise.
1905 * m68k-linux-tdep.c: Likewise.
1906 * mep-tdep.c: Likewise.
1907 * mips-tdep.c: Likewise.
1908 * nios2-tdep.c: Likewise.
1909 * s390-linux-tdep.c: Likewise.
1910 * sparc-obsd-tdep.c: Likewise.
1911 * sparc-tdep.c: Likewise.
1912 * sparc64-tdep.c: Likewise.
1913 * spu-tdep.c: Likewise.
1914 * tic6x-tdep.c: Likewise.
1915 * tilegx-tdep.c: Likewise.
1916 * vax-tdep.c: Likewise.
1917 * xstormy16-tdep.c: Likewise.
1918 * xtensa-tdep.c: Likewise.
1919
1920 * top.c: Do not include "doublest.h".
1921 * aarch64-tdep.c: Likewise.
1922 * alpha-tdep.c: Likewise.
1923 * arm-linux-tdep.c: Likewise.
1924 * m68k-linux-tdep.c: Likewise.
1925 * tilegx-tdep.c: Likewise.
1926 * xstormy16-tdep.c: Likewise.
1927
a80a6471
JB
19282017-10-05 John Baldwin <jhb@FreeBSD.org>
1929
1930 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
1931 (mipsn32_fbsd_sigframe): Define.
1932 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
1933 for FreeBSD/mipsn32.
1934
12c4bd7f
JB
19352017-10-05 John Baldwin <jhb@FreeBSD.org>
1936
1937 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
1938 AT_HWCAP.
1939
c91933e9
TG
19402017-10-05 Tristan Gingold <tgingold@free.fr>
1941
1942 * MAINTAINERS (Misc): Update my email address.
1943
5cd63fda
PA
19442017-10-04 Pedro Alves <palves@redhat.com>
1945
1946 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
1947 it instead of target_gdbarch.
1948 (get_remote_state, get_remote_packet_size): Adjust
1949 get_remote_arch_state calls, passing down target_gdbarch
1950 explicitly.
1951 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
1952 'gdbarch' and use it instead of target_gdbarch.
1953 (get_memory_packet_size): Adjust get_remote_arch_state calls,
1954 passing down target_gdbarch explicitly.
1955 (struct stop_reply) <arch>: New field.
1956 (remote_parse_stop_reply): Use the stopped thread's architecture,
1957 not the current inferior's. Save the architecture in the
1958 stop_reply.
1959 (process_stop_reply): Use the stop reply's architecture.
1960 (process_g_packet, remote_fetch_registers)
1961 (remote_prepare_to_store, store_registers_using_G)
1962 (remote_store_registers): Adjust get_remote_arch_state calls,
1963 using the regcache's architecture.
1964 (remote_get_trace_status): Adjust get_remote_arch_state calls,
1965 passing down target_gdbarch explicitly.
1966 * spu-multiarch.c (spu_thread_architecture): Defer to the target
1967 beneath instead of calling target_gdbarch.
1968 * target.c (default_thread_architecture): Use the specified
1969 inferior's architecture, instead of the current inferior's
1970 architecture (via target_gdbarch).
1971
ed4227b7
PA
19722017-10-04 Pedro Alves <palves@redhat.com>
1973
1974 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
1975 case.
1976 (regcache_print): Handle !target_has_registers here instead.
1977
55b11ddf
PA
19782017-10-04 Pedro Alves <palves@redhat.com>
1979
1980 * frame.c (create_test_frame): Delete.
1981 * frame.h (create_test_frame): Delete.
1982 * gdbarch-selftests.c: Include gdbthread.h and target.h.
1983 (class regcache_test): Delete.
1984 (test_target_has_registers, test_target_has_stack)
1985 (test_target_has_memory, test_target_prepare_to_store)
1986 (test_target_store_registers): New functions.
1987 (test_target_ops): New class.
1988 (register_to_value_test): Error out if there's already a
1989 process_stratum (or higher) target pushed. Create a fuller mock
1990 environment, with mock target_ops, inferior, address space, thread
1991 and inferior_ptid.
1992 * progspace.c (struct address_space): Move to ...
1993 * progspace.h (struct address_space): ... here.
1994 * regcache.h (regcache::~regcache, regcache::raw_write)
1995 [GDB_SELF_TEST]: No longer virtual.
1996
4c71c105
SM
19972017-10-04 Simon Marchi <simon.marchi@ericsson.com>
1998
1999 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
2000
73dcd72d
PA
20012017-10-04 Pedro Alves <palves@redhat.com>
2002
2003 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
2004 out of 'between TRY and CATCH'.
2005
44704526
PA
20062017-10-04 Pedro Alves <palves@redhat.com>
2007
2008 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
2009 * common/common-exceptions.h (TRY): Open an outermost scope.
2010 Expand intro comment.
2011 (CATCH): Reindent.
2012 (END_CATCH): Close the outermost scope.
2013 * completer.c (complete_line_internal): Add missing END_CATCH.
2014
bc3b087d
SDJ
20152017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2016
2017 * NEWS (Changes since GDB 8.0): Add entry about new
2018 'set-cwd-on-gdbserver' feature.
2019 (New remote packets): Add entry for QSetWorkingDir.
2020 * common/common-inferior.h (set_inferior_cwd): New prototype.
2021 * infcmd.c (set_inferior_cwd): Remove "static".
2022 (show_cwd_command): Expand text to include remote debugging.
2023 * remote.c: Add PACKET_QSetWorkingDir.
2024 (remote_protocol_features) <QSetWorkingDir>: New entry for
2025 PACKET_QSetWorkingDir.
2026 (extended_remote_set_inferior_cwd): New function.
2027 (extended_remote_create_inferior): Call
2028 "extended_remote_set_inferior_cwd".
2029 (_initialize_remote): Call "add_packet_config_cmd" for
2030 QSetWorkingDir.
2031
d092c5a2
SDJ
20322017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2033
2034 * NEWS (New commands): Mention "set/show cwd".
2035 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
2036 "cd" command's help text.
2037 * common/common-inferior.h (get_inferior_cwd): New prototype.
2038 * infcmd.c (inferior_cwd_scratch): New global variable.
2039 (set_inferior_cwd): New function.
2040 (get_inferior_cwd): Likewise.
2041 (set_cwd_command): Likewise.
2042 (show_cwd_command): Likewise.
2043 (_initialize_infcmd): Add "set/show cwd" commands.
2044 * inferior.h (class inferior) <cwd>: New field.
2045 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
2046 (fork_inferior): Change inferior's cwd before its execution.
2047 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
2048 to CreateProcess.
2049
7da0a886
SDJ
20502017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2051
2052 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
2053 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
2054 (COMMON_OBS): Add gdb_tilde_expand.o.
2055 * common/gdb_tilde_expand.c: New file.
2056 * common/gdb_tilde_expand.h: Likewise.
2057
db8dd160
MR
20582017-10-03 Maciej W. Rozycki <macro@imgtec.com>
2059
2060 * gdbarch.sh (objfile): Remove duplicate declaration.
2061 * gdbarch.h: Regenerate.
2062
f8bfbf22
TT
20632017-10-03 Tom Tromey <tom@tromey.com>
2064
2065 * utils.c (internal_vproblem): Use string_vprintf.
2066
5178ed48
TT
20672017-10-03 Tom Tromey <tom@tromey.com>
2068
2069 * printcmd.c (info_symbol_command): Use std::string.
2070
8cff8730
TT
20712017-10-03 Tom Tromey <tom@tromey.com>
2072
2073 * top.c (gdb_safe_append_history): Use std::string.
2074
895b8f30
TT
20752017-10-03 Tom Tromey <tom@tromey.com>
2076
2077 * event-top.c (stdin_event_handler): Update.
2078 * main.c (captured_main_1): Update.
2079 * top.h (make_delete_ui_cleanup): Remove.
2080 (struct ui): Add constructor and destructor.
2081 (new_ui, delete_ui): Remove.
2082 * top.c (make_delete_ui_cleanup): Remove.
2083 (new_ui_command): Use std::unique_ptr.
2084 (delete_ui_cleanup): Remove.
2085 (ui::ui): Rename from new_ui. Update.
2086 (free_ui): Remove.
2087 (ui::~ui): Rename from delete_ui. Update.
2088
0efef640
TT
20892017-10-03 Tom Tromey <tom@tromey.com>
2090
2091 * symfile.c (load_progress): Use gdb::byte_vector.
2092
245ad7d3
TT
20932017-10-03 Tom Tromey <tom@tromey.com>
2094
2095 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
2096 declaration.
2097 * printcmd.c (x_command): Remove unused declaration.
2098 * symfile.c (symbol_file_command): Remove unused declaration.
2099
e05550d7
TT
21002017-10-03 Tom Tromey <tom@tromey.com>
2101
2102 * utils.c (internal_vproblem): Use std::string.
2103 (defaulted_query): Likewise.
2104
b95de2b7
TT
21052017-10-03 Tom Tromey <tom@tromey.com>
2106
2107 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
2108 * top.c (execute_command_to_string): Update.
2109 * utils.c (make_cleanup_restore_page_info): Remove.
2110 (do_restore_page_info_cleanup): Remove.
2111 (set_batch_flag_and_restore_page_info):
2112 New.
2113 (make_cleanup_restore_page_info): Remove.
2114 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
2115 (~set_batch_flag_and_restore_page_info): New
2116 (make_cleanup_restore_uinteger): Remove.
2117 (make_cleanup_restore_integer): Remove.
2118 (struct restore_integer_closure): Remove.
2119 (restore_integer): Remove.
2120 * utils.h (struct set_batch_flag_and_restore_page_info): New
2121 class.
2122 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
2123 (make_cleanup_restore_page_info): Remove.
2124 (make_cleanup_restore_uinteger) Remove.
2125 (make_cleanup_restore_integer) Remove.
2126
07036511
TT
21272017-10-03 Tom Tromey <tom@tromey.com>
2128
2129 * record-full.h (record_full_gdb_operation_disable_set): Return
2130 scoped_restore_tmpl<int>.
2131 * infrun.c (adjust_pc_after_break): Update.
2132 (handle_signal_stop): Update.
2133 * record-full.c (record_full_gdb_operation_disable_set): Return
2134 scoped_restore_tmpl<int>.
2135 (record_full_wait_1, record_full_insert_breakpoint)
2136 (record_full_remove_breakpoint, record_full_save)
2137 (record_full_goto_insn): Update.
2138
45320ffa
TT
21392017-10-02 Tom Tromey <tom@tromey.com>
2140
2141 PR rust/22236:
2142 * rust-lang.c (rust_val_print_str): New function.
2143 (val_print_struct): Call it.
2144 (rust_subscript): Preserve name of slice type.
2145
b3e3859b
TT
21462017-10-02 Tom Tromey <tom@tromey.com>
2147
2148 * rust-lang.c (rust_subscript): Handle slices in
2149 EVAL_AVOID_SIDE_EFFECTS case.
2150
01af5e0d
TT
21512017-10-02 Tom Tromey <tom@tromey.com>
2152
2153 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
2154
888e3ddb
TT
21552017-10-02 Tom Tromey <tom@tromey.com>
2156
2157 * rust-lang.h (rust_slice_type): Add "extern".
2158
cc536b21
PA
21592017-10-02 Tom Tromey <tom@tromey.com>
2160 Pedro Alves <palves@redhat.com>
2161
2162 * ada-lang.h (ada_exc_info::operator<): Make const.
2163 (ada_exc_info::operator==): Make const.
2164 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
2165 Make const.
2166
386c8614
TT
21672017-09-29 Tom Tromey <tom@tromey.com>
2168
2169 * target.c (read_whatever_is_readable): Change type of "result".
2170 Update.
2171 (free_memory_read_result_vector): Remove.
2172 (read_memory_robust): Change return type. Update.
2173 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
2174 bin2hex, std::string.
2175 * target.h (memory_read_result_s): Remove typedef.
2176 (free_memory_read_result_vector): Remove.
2177 (read_memory_robust): Return std::vector.
2178
789c4b5e
TT
21792017-09-29 Tom Tromey <tom@tromey.com>
2180
2181 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
2182
ab816a27
TT
21832017-09-29 Tom Tromey <tom@tromey.com>
2184
2185 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
2186 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
2187 operator< and operator==.
2188 (ada_exceptions_list): Return a std::vector.
2189 * ada-lang.c (ada_exc_info::operator<): Rename from
2190 compare_ada_exception_info.
2191 (ada_exc_info::operator==): New.
2192 (sort_remove_dups_ada_exceptions_list): Change type of
2193 "exceptions".
2194 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
2195 (ada_add_global_exceptions): Likewise.
2196 (ada_exceptions_list_1): Return a std::vector.
2197 (ada_exceptions_list): Likewise.
2198
52f9abe4
TT
21992017-09-29 Tom Tromey <tom@tromey.com>
2200
2201 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
2202 'std::set *'.
2203 (print_one_inferior): Update.
2204 (free_vector_of_ints): Remove.
2205 (list_available_thread_groups): Change "ids" to std::set.
2206 (mi_cmd_list_thread_groups): Update.
2207 (struct collect_cores_data) <core>: Now a std::set.
2208 (collect_cores): Update.
2209 (unique): Remove.
2210 (print_one_inferior): Update.
2211
dcd5ddcc
TT
22122017-09-29 Tom Tromey <tom@tromey.com>
2213
2214 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
2215 (mi_execute_async_cli_command): Likewise.
2216 (mi_cmd_trace_frame_collected): Use field_fmt.
2217
45d288cc
TT
22182017-09-29 Tom Tromey <tom@tromey.com>
2219
2220 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
2221 gdb::byte_vector.
2222
6afe2f4a
TT
22232017-09-29 Tom Tromey <tom@tromey.com>
2224
2225 * mi/mi-parse.c (mi_parse): Remove unused declaration.
2226
9813429a
TT
22272017-09-29 Tom Tromey <tom@tromey.com>
2228
2229 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
2230
2d6960b4
TT
22312017-09-29 Tom Tromey <tom@tromey.com>
2232
2233 * varobj.h (varobj_gen_name): Return std::string.
2234 * varobj.c (varobj_gen_name): Return std::string.
2235 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
2236 (mi_cmd_var_delete): Don't copy "name".
2237
784c453a
TT
22382017-09-29 Tom Tromey <tom@tromey.com>
2239
2240 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
2241 (mi_cmd_break_insert_1): Update.
2242
a9bc57b9
TT
22432017-09-29 Tom Tromey <tom@tromey.com>
2244
2245 * target.h (make_scoped_defer_target_commit_resume): Update.
2246 * target.c (make_scoped_defer_target_commit_resume): Rename from
2247 make_cleanup_defer_target_commit_resume. Return a
2248 scoped_restore.
2249 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
2250
9754d8c4
TT
22512017-09-29 Tom Tromey <tom@tromey.com>
2252
2253 * main.c (captured_main_1): Remove unused declaration.
2254 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
2255
99ef965c
TT
22562017-09-29 Tom Tromey <tom@tromey.com>
2257
2258 * symtab.c (search_symbols): Remove unused outer cleanup.
2259 (make_source_files_completion_list): Remove unused declaration.
2260
42518ba7
TT
22612017-09-29 Tom Tromey <tom@tromey.com>
2262
2263 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
2264
726b2169
TT
22652017-09-29 Tom Tromey <tom@tromey.com>
2266
2267 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
2268 gdb::byte_vector.
2269
55b06432
TT
22702017-09-29 Tom Tromey <tom@tromey.com>
2271
2272 * complaints.c (vcomplaint): Use std::string.
2273
8abcee91
TT
22742017-09-29 Tom Tromey <tom@tromey.com>
2275
2276 * tracepoint.c (trace_variable_command): Use std::string.
2277 (encode_actions_1): Remove unused declarations.
2278 (create_tsv_from_upload): Use std::string.
2279
6ad94bc7
TT
22802017-09-29 Tom Tromey <tom@tromey.com>
2281
2282 * cp-support.c (gdb_demangle): Use std::string.
2283
2003f3d8
TT
22842017-09-29 Tom Tromey <tom@tromey.com>
2285
2286 * stack.c (parse_frame_specification): Use std::string
2287 (info_frame_command): Use gdb::unique_xmalloc_ptr.
2288
8f8accb5
TT
22892017-09-29 Tom Tromey <tom@tromey.com>
2290
2291 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
2292
200aa7b1
TT
22932017-09-29 Tom Tromey <tom@tromey.com>
2294
2295 * utils.c (vfprintf_maybe_filtered): Use std::string.
2296 (vfprintf_unfiltered): Likewise.
2297
606aae8a
TT
22982017-09-29 Tom Tromey <tom@tromey.com>
2299
2300 * event-top.c (top_level_prompt): Return std::string.
2301 (display_gdb_prompt): Update.
2302
bd413795
TT
23032017-09-29 Tom Tromey <tom@tromey.com>
2304
2305 * unittests/common-utils-selftests.c (format): New function.
2306 (string_vprintf_tests): New function.
2307 (_initialize_common_utils_selftests): Register new tests.
2308 * common/common-utils.c (string_vprintf): New function.
2309 * common/common-utils.h (string_vprintf): Declare.
2310
256642e8
PA
23112017-09-29 Pedro Alves <palves@redhat.com>
2312
2313 * common/rsp-low.c (unpack_varlen_hex): Constify.
2314 * common/rsp-low.h (unpack_varlen_hex): Constify.
2315 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
2316 Constify.
2317 * remote.c (remote_set_permissions, read_ptid)
2318 (remote_current_thread, remote_get_threads_with_qthreadinfo)
2319 (remote_static_tracepoint_marker_at)
2320 (remote_static_tracepoint_markers_by_strid)
2321 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
2322 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
2323 (parse_tracepoint_definition, parse_tsv_definition)
2324 (parse_static_tracepoint_marker_definition): Constify.
2325 * tracepoint.h (parse_static_tracepoint_marker_definition)
2326 (parse_trace_status, parse_tracepoint_status)
2327 (parse_tracepoint_definition, parse_tsv_definition): Constify.
2328
b6bb3468
PA
23292017-09-29 Pedro Alves <palves@redhat.com>
2330
2331 * remote.c (target_buf, target_buf_size): Delete.
2332 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
2333 Use the connection's packet buffer instead.
2334 All callers adjusted.
2335 (_initialize_remote): Remove references to target_buf and
2336 target_buf_size.
2337
b2f8eb7a
PA
23382017-09-28 Pedro Alves <palves@redhat.com>
2339
2340 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2341 unittests/common-utils-selftests.c.
2342 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
2343 (COMMON_OBS): Remove utils-selftests.o.
2344 * utils-selftests.c: Move to ...
2345 * unittests/common-utils-selftests.c: ... here and rename self
2346 test to "string_printf".
2347
08302ed2
DE
23482017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
2349
2350 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
2351 having NULL cus or tus.
2352
96a5a1d3
UW
23532017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2354
2355 * arm-tdep.c: (convert_from_extended): Remove.
2356 (convert_to_extended): Likewise.
2357 (arm_extract_return_value): Use convert_typed_floating.
2358 (arm_store_return_value): Likewise.
2359
2360 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
2361 * sh-tdep.c: Do not include "floatformat.h".
2362 (sh_littlebyte_bigword_type): New function.
2363 (sh_register_convert_to_virtual): Use convert_typed_floating.
2364 (sh_register_convert_to_raw): Likewise.
2365 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
2366 (sh64_littlebyte_bigword_type): New function.
2367 (sh64_extract_return_value): Use convert_typed_floating.
2368 (sh64_register_convert_to_virtual): Likewise.
2369 (sh64_register_convert_to_raw): Likewise.
2370
0db7851f
UW
23712017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2372
2373 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
2374 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
2375
2376 * gdbtypes.h (union type_specific): Make field floatformat hold
2377 just a single struct floatformat, not an array.
2378 (floatformat_from_type): Move here.
2379 * gdbtypes.c (floatformat_from_type): Move here. Update to
2380 changed TYPE_FLOATFORMAT definition.
2381 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
2382 (recursive_dump_type): Likewise.
2383 (init_float_type): Install correct floatformat for byte order.
2384 (arch_float_type): Likewise.
2385
77b7c781
UW
23862017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2387
2388 * gdbtypes.c (init_type): Change incoming argument from
2389 length-in-bytes to length-in-bits. Assert length is a
2390 multiple of TARGET_CHAR_BITS.
2391 (arch_type, arch_flags_type): Likewise.
2392 (init_integer_type): Update call to init_type.
2393 (init_character_type): Likewise.
2394 (init_boolean_type): Likewise.
2395 (init_float_type): Likewise.
2396 (init_decfloat_type): Likewise.
2397 (init_complex_type): Likewise.
2398 (init_pointer_type): Likewise.
2399 (objfile_type): Likewise.
2400 (arch_integer_type): Update call to arch_type.
2401 (arch_character_type): Likewise.
2402 (arch_boolean_type): Likewise.
2403 (arch_float_type): Likewise.
2404 (arch_decfloat_type): Likewise.
2405 (arch_complex_type): Likewise.
2406 (arch_pointer_type): Likewise.
2407 (gdbtypes_post_init): Likewise.
2408
2409 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
2410 (read_base_type): Likewise.
2411 * mdebugread.c (basic_type): Likewise.
2412 * stabsread.c (dbx_init_float_type): Likewise.
2413 (rs6000_builtin_type): Likewise.
2414 (read_range_type): Likewise. Also, fix call to init_integer_type
2415 with erroneous length argument.
2416
2417 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
2418 * d-lang.c (build_d_types): Likewise.
2419 * f-lang.c (build_fortran_types): Likewise.
2420 * go-lang.c (build_go_types): Likewise.
2421 * opencl-lang.c (build_opencl_types): Likewise.
2422 * jit.c (finalize_symtab): Likewise.
2423 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2424 (build_std_type_info_type): Likewise.
2425 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
2426 update call to arch_flags_type.
2427
2428 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
2429 arch_type.
2430 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
2431 * windows-tdep.c (windows_get_tlb_type): Likewise.
2432
2433 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
2434 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
2435 * m32c-tdep.c (make_types): Likewise.
2436 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
2437 (rl78_psw_type): Update call to arch_flags_type.
2438 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
2439 * rx-tdep.c (rx_psw_type): Likewise.
2440 (rx_fpsw_type): Likewise.
2441 * sparc-tdep.c (sparc_psr_type): Likewise.
2442 (sparc_fsr_type): Likewise.
2443 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
2444 (sparc64_ccr_type): Likewise.
2445 (sparc64_fsr_type): Likewise.
2446 (sparc64_fprs_type): Likewise.
2447
f21b4d5c
TT
24482017-09-27 Tom Tromey <tom@tromey.com>
2449
2450 * findcmd.c (find_command): Constify.
2451
643c2ffa
TT
24522017-09-27 Tom Tromey <tom@tromey.com>
2453
2454 * ada-tasks.c (task_command_1, task_command): Constify.
2455
510e5e56
TT
24562017-09-27 Tom Tromey <tom@tromey.com>
2457
2458 * symtab.c (maintenance_print_symbol_cache)
2459 (maintenance_flush_symbol_cache)
2460 (maintenance_print_symbol_cache_statistics): Constify.
2461
e503b191
TT
24622017-09-27 Tom Tromey <tom@tromey.com>
2463
2464 * inferior.c (detach_inferior_command, kill_inferior_command)
2465 (inferior_command): Constify.
2466
4e001312
TT
24672017-09-27 Tom Tromey <tom@tromey.com>
2468
2469 * regcache.c (regcache_print, maintenance_print_registers)
2470 (maintenance_print_raw_registers)
2471 (maintenance_print_cooked_registers)
2472 (maintenance_print_register_groups)
2473 (maintenance_print_remote_registers): Constify.
2474
77763700
TT
24752017-09-27 Tom Tromey <tom@tromey.com>
2476
2477 * printcmd.c (map_display_numbers, undisplay_command)
2478 (enable_disable_display_command, enable_display_command)
2479 (disable_display_command): Constify.
2480
4495129a
TT
24812017-09-27 Tom Tromey <tom@tromey.com>
2482
2483 * breakpoint.h (delete_command): Don't declare.
2484 * breakpoint.c (delete_command, enable_once_command)
2485 (enable_count_command, enable_delete_command, breakpoint_1)
2486 (maintenance_info_breakpoints, stopin_command, stopat_command)
2487 (delete_command, delete_trace_command, save_breakpoints)
2488 (save_breakpoints_command, save_tracepoints_command): Constify.
2489
3088cf40
TT
24902017-09-27 Tom Tromey <tom@tromey.com>
2491
2492 * macrocmd.c (macro_expand_command, macro_expand_once_command)
2493 (skip_ws, extract_identifier, macro_define_command)
2494 (macro_undef_command, macro_list_command): Constify.
2495
69f476a3
TT
24962017-09-27 Tom Tromey <tom@tromey.com>
2497
2498 * infcmd.c (environment_info, set_environment_command)
2499 (unset_environment_command, path_info, info_proc_cmd_1)
2500 (info_proc_cmd_mappings, info_proc_cmd_stat)
2501 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
2502 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
2503
c4a3e68e
TT
25042017-09-27 Tom Tromey <tom@tromey.com>
2505
2506 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
2507 Constify.
2508
c9d31bd6
TT
25092017-09-27 Tom Tromey <tom@tromey.com>
2510
2511 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
2512
1f3f85eb
TT
25132017-09-27 Tom Tromey <tom@tromey.com>
2514
2515 * demangle.c (demangle_command): Constify.
2516
9c504b5d
TT
25172017-09-27 Tom Tromey <tom@tromey.com>
2518
2519 * progspace.c (maintenance_info_program_spaces_command):
2520 Constify.
2521
6663cf91
TT
25222017-09-27 Tom Tromey <tom@tromey.com>
2523
2524 * compile/compile.c (check_raw_argument, compile_file_command)
2525 (compile_code_command, compile_print_command): Constify.
2526
34e5fa26
TT
25272017-09-27 Tom Tromey <tom@tromey.com>
2528
2529 * reggroups.c (maintenance_print_reggroups): Constify.
2530
8384c356
TT
25312017-09-27 Tom Tromey <tom@tromey.com>
2532
2533 * dwarf2read.c (save_gdb_index_command): Constify.
2534
884beb0c
TT
25352017-09-27 Tom Tromey <tom@tromey.com>
2536
2537 * stap-probe.c (info_probes_stap_command): Constify.
2538
e0b2930c
TT
25392017-09-27 Tom Tromey <tom@tromey.com>
2540
2541 * fork-child.c (unset_exec_wrapper_command): Constify.
2542
f938677d
TT
25432017-09-27 Tom Tromey <tom@tromey.com>
2544
2545 * btrace.c (get_uint, get_context_size, no_chunk)
2546 (maint_btrace_packet_history_cmd)
2547 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
2548 (maint_info_btrace_cmd): Constify.
2549
8949cb87
TT
25502017-09-27 Tom Tromey <tom@tromey.com>
2551
2552 * reverse.c (delete_bookmark_command): Constify.
2553
ac88e2de
TT
25542017-09-27 Tom Tromey <tom@tromey.com>
2555
2556 * remote.c (set_memory_packet_size)
2557 (set_memory_write_packet_size, show_memory_write_packet_size)
2558 (set_memory_read_packet_size, show_memory_read_packet_size)
2559 (compare_sections_command, packet_command, remote_put_command)
2560 (remote_get_command, remote_delete_command): Constify.
2561
bd4c9dfe
TT
25622017-09-27 Tom Tromey <tom@tromey.com>
2563
2564 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
2565 (set_mipsfpu_double_command, set_mipsfpu_none_command)
2566 (set_mipsfpu_auto_command): Constify.
2567
5e93d4c6
TT
25682017-09-27 Tom Tromey <tom@tromey.com>
2569
2570 * cli/cli-cmds.h (cd_command): Constify.
2571 * cli/cli-cmds.c (cd_command): Constify.
2572
fc41a75b
TT
25732017-09-27 Tom Tromey <tom@tromey.com>
2574
2575 * thread.c (thread_name_command, thread_find_command): Constify.
2576
67810076
TT
25772017-09-27 Tom Tromey <tom@tromey.com>
2578
2579 * probe.c (enable_probes_command, disable_probes_command):
2580 Constify.
2581
1d8b34a7
TT
25822017-09-27 Tom Tromey <tom@tromey.com>
2583
2584 * symfile.c (symbol_file_command): Constify.
2585 * gdbcore.h (deprecated_file_changed_hook): Constify.
2586 * exec.c (deprecated_file_changed_hook, exec_file_command)
2587 (file_command): Constify.
2588 * defs.h (symbol_file_command): Constify.
2589
442019e1
TT
25902017-09-27 Tom Tromey <tom@tromey.com>
2591
2592 * remote-fileio.c (set_system_call_allowed)
2593 (show_system_call_allowed): Constify.
2594
2983f7cb
TT
25952017-09-27 Tom Tromey <tom@tromey.com>
2596
2597 * tracepoint.c (delete_trace_variable_command)
2598 (tfind_end_command, tfind_start_command, tfind_pc_command)
2599 (tfind_tracepoint_command, tfind_line_command)
2600 (tfind_range_command, tfind_outside_command): Constify.
2601
4fd41b24
TT
26022017-09-27 Tom Tromey <tom@tromey.com>
2603
2604 * ax-gdb.c (maint_agent_printf_command, agent_command)
2605 (agent_eval_command): Constify.
2606
f2fc3015
TT
26072017-09-27 Tom Tromey <tom@tromey.com>
2608
2609 * tracepoint.c (info_scope_command): Constify.
2610 * python/python.c (gdbpy_decode_line): Constify.
2611 * python/py-breakpoint.c (bppy_init): Constify.
2612 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
2613 * location.h: (new_linespec_location)
2614 (string_to_event_location_basic, string_to_event_location):
2615 Constify.
2616 * location.c (new_linespec_location)
2617 (string_to_event_location_basic, string_to_event_location):
2618 Constify.
2619 * linespec.h (decode_line_with_current_source)
2620 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
2621 * linespec.c (linespec_lex_to_end)
2622 (decode_line_with_current_source)
2623 (decode_line_with_last_displayed): Constify.
2624 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
2625 Constify.
2626 * cli/cli-cmds.c (edit_command, list_command): Constify.
2627 * breakpoint.h (until_break_command, watch_command_wrapper)
2628 (awatch_command_wrapper, rwatch_command_wrapper)
2629 (init_ada_exception_breakpoint): Constify.
2630 * breakpoint.c (break_command_1, dprintf_command)
2631 (break_range_command, watch_command_wrapper)
2632 (rwatch_command_wrapper, awatch_command_wrapper)
2633 (until_break_command, init_ada_exception_breakpoint)
2634 (strace_marker_create_sals_from_location, trace_command)
2635 (ftrace_command, strace_command, struct tracepoint): Constify.
2636 * ax-gdb.c (agent_command_1): Constify.
2637 * ada-lang.c (ada_exception_sal): Constify.
2638
8c2f95f4
TT
26392017-09-27 Tom Tromey <tom@tromey.com>
2640
2641 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
2642 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
2643 (get_context_size, no_chunk, get_insn_history_modifiers)
2644 (cmd_record_insn_history, get_call_history_modifiers)
2645 (cmd_record_call_history): Constify.
2646
a0d65762
TT
26472017-09-27 Tom Tromey <tom@tromey.com>
2648
2649 * source.c (show_substitute_path_command)
2650 (unset_substitute_path_command, set_substitute_path_command):
2651 Constify.
2652
58971144
TT
26532017-09-27 Tom Tromey <tom@tromey.com>
2654
2655 * typeprint.c (maintenance_print_type): Constify.
2656 * maint.c (maintenance_dump_me, maintenance_demangle)
2657 (maintenance_time_display, maintenance_info_sections)
2658 (maintenance_print_statistics, maintenance_deprecate)
2659 (maintenance_undeprecate): Constify.
2660 (maintenance_do_deprecate): Constify. Use std::string.
2661 (maintenance_selftest): Constify.
2662 * gdbtypes.h (maintenance_print_type): Constify.
2663
c482f52c
TT
26642017-09-27 Tom Tromey <tom@tromey.com>
2665
2666 * hppa-tdep.c (unwind_command): Constify.
2667
e100df1a
TT
26682017-09-27 Tom Tromey <tom@tromey.com>
2669
2670 * target-descriptions.c (unset_tdesc_filename_cmd)
2671 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
2672 Constify.
2673
31d56ade
TT
26742017-09-27 Tom Tromey <tom@tromey.com>
2675
2676 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
2677
b961da0b
TT
26782017-09-27 Tom Tromey <tom@tromey.com>
2679
2680 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
2681
e2d8ae16
TT
26822017-09-27 Tom Tromey <tom@tromey.com>
2683
2684 * tui/tui-regs.c (tui_reg_command): Constify.
2685
863779b0
TT
26862017-09-27 Tom Tromey <tom@tromey.com>
2687
2688 * skip.c (skip_file_command, skip_function_command)
2689 (skip_enable_command, skip_disable_command, skip_delete_command):
2690 Constify.
2691
cdb34d4a
TT
26922017-09-27 Tom Tromey <tom@tromey.com>
2693
2694 * record-btrace.c (cmd_record_btrace_bts_start)
2695 (cmd_record_btrace_pt_start): Constify.
2696
e99c83e7
TT
26972017-09-27 Tom Tromey <tom@tromey.com>
2698
2699 * symmisc.c (maintenance_print_symbols)
2700 (maintenance_print_msymbols, maintenance_print_objfiles)
2701 (maintenance_info_symtabs, maintenance_check_symtabs)
2702 (maintenance_expand_symtabs, maintenance_info_line_tables):
2703 Constify.
2704
32faf971
TT
27052017-09-27 Tom Tromey <tom@tromey.com>
2706
2707 * top.c (new_ui_command): Constify.
2708
2cf311eb
TT
27092017-09-27 Tom Tromey <tom@tromey.com>
2710
2711 * symfile.c (add_symbol_file_command)
2712 (remove_symbol_file_command, list_overlays_command)
2713 (map_overlay_command, unmap_overlay_command)
2714 (overlay_auto_command, overlay_manual_command)
2715 (overlay_off_command, overlay_load_command): Constify.
2716
e6738699
TT
27172017-09-27 Tom Tromey <tom@tromey.com>
2718
2719 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2720 (info_spu_mailbox_command, info_spu_dma_command)
2721 (info_spu_proxydma_command): Constify.
2722
aa360cd5
TT
27232017-09-27 Tom Tromey <tom@tromey.com>
2724
2725 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
2726
898241a5
TT
27272017-09-27 Tom Tromey <tom@tromey.com>
2728
2729 * cli/cli-script.c (user_defined_command): Constify.
2730
2d0ac106
TT
27312017-09-27 Tom Tromey <tom@tromey.com>
2732
2733 * cli/cli-dump.c (dump_memory_command, dump_value_command)
2734 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
2735 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
2736 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
2737 (dump_binary_value, append_binary_memory, append_binary_value):
2738 Constify.
2739 (struct dump_context) <func>: Constify.
2740 (add_dump_command): Update.
2741
dede02ce
TT
27422017-09-27 Tom Tromey <tom@tromey.com>
2743
2744 * cli/cli-cmds.c (show_version, show_configuration)
2745 (source_command, show_user): Constify.
2746
d3cb6b99
TT
27472017-09-27 Tom Tromey <tom@tromey.com>
2748
2749 * target.c (maintenance_print_target_stack): Constify.
2750
1970a12f
TT
27512017-09-27 Tom Tromey <tom@tromey.com>
2752
2753 * interps.c (interpreter_exec_cmd): Constify.
2754
41243651
TT
27552017-09-27 Tom Tromey <tom@tromey.com>
2756
2757 * record-full.c (cmd_record_full_restore): Constify.
2758
4465d9db
TT
27592017-09-27 Tom Tromey <tom@tromey.com>
2760
2761 * memattr.c (enable_mem_command, disable_mem_command)
2762 (delete_mem_command): Constify.
2763
ad25e423
TT
27642017-09-27 Tom Tromey <tom@tromey.com>
2765
2766 * value.c (show_convenience): Constify.
2767
d64097b1
TT
27682017-09-27 Tom Tromey <tom@tromey.com>
2769
2770 * gdbcore.h (core_file_command): Update.
2771 * corefile.c (core_file_command): Constify.
2772
4d4589ef
TT
27732017-09-27 Tom Tromey <tom@tromey.com>
2774
2775 * user-regs.c (maintenance_print_user_registers): Constify.
2776
32a7bf17
TT
27772017-09-27 Tom Tromey <tom@tromey.com>
2778
2779 * cp-namespace.c (maintenance_cplus_namespace): Constify.
2780
4a475551
TT
27812017-09-27 Tom Tromey <tom@tromey.com>
2782
2783 * cp-support.c (first_component_command): Constify.
2784
990b9f9f
TT
27852017-09-27 Tom Tromey <tom@tromey.com>
2786
2787 * psymtab.c (maintenance_print_psymbols)
2788 (maintenance_info_psymtabs, maintenance_check_psymtabs):
2789 Constify.
2790
c281872e
TT
27912017-09-27 Tom Tromey <tom@tromey.com>
2792
2793 * windows-tdep.c (display_tib): Constify.
2794
5b64bf74
TT
27952017-09-27 Tom Tromey <tom@tromey.com>
2796
2797 * linux-fork.c (delete_checkpoint_command)
2798 (detach_checkpoint_command): Constify.
2799
4ada038f
TT
28002017-09-27 Tom Tromey <tom@tromey.com>
2801
2802 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
2803
57f5a81b
TT
28042017-09-27 Tom Tromey <tom@tromey.com>
2805
2806 * arc-tdep.c (dump_arc_instruction_command): Constify.
2807
b0a8e6c4
TT
28082017-09-27 Tom Tromey <tom@tromey.com>
2809
2810 * valprint.c (set_radix, show_radix): Constify.
2811
8d97dc1c
TT
28122017-09-27 Tom Tromey <tom@tromey.com>
2813
2814 * dtrace-probe.c (info_probes_dtrace_command): Constify.
2815
eb7c454d
TT
28162017-09-27 Tom Tromey <tom@tromey.com>
2817
2818 * command.h (not_just_help_class_command): Update.
2819 * cli/cli-decode.h (not_just_help_class_command): Update.
2820 * cli/cli-decode.c (not_just_help_class_command): Constify.
2821
e4e33335
TT
28222017-09-27 Tom Tromey <tom@tromey.com>
2823
2824 * gdb_bfd.c (maintenance_info_bfds): Constify.
2825
0450cc4c
TT
28262017-09-27 Tom Tromey <tom@tromey.com>
2827
2828 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
2829 overloads.
2830 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
2831 (do_const_cfunc): New function.
2832 (cmd_cfunc_eq): New overload.
2833 (cli_user_command_p): Check do_const_cfunc.
2834 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
2835 const_cfunc.
2836 * command.h (add_cmd): Add const overload and no-function
2837 overload.
2838 (set_cmd_cfunc): Add const overload.
2839 (cmd_const_cfunc_ftype): Declare.
2840 (cmd_cfunc_eq): Add const overload.
2841 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
2842 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
2843 overload.
2844
a9bbfbd8
TT
28452017-09-27 Tom Tromey <tom@tromey.com>
2846
2847 * macroexp.c (get_next_token_for_substitution): New function.
2848 (substitute_args): Call it. Check for __VA_OPT__.
2849
5230b05a
WT
28502017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
2851 Pedro Alves <palves@redhat.com>
2852
2853 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
2854 producer_is_icc_lt_14.
2855 (producer_is_icc_lt_14): New function.
2856 (check_producer): Add code for checking version of ICC.
2857 (producer_is_icc): Move to producer.c.
2858 (read_structure_type): Restrict ICC workaround to ICC<14.
2859 * producer.c: Include selftest.h.
2860 (producer_is_icc, producer_parsing_tests, _initialize_producer):
2861 New functions.
2862 * producer.h (producer_is_icc): New declaration.
2863
b32b108a
WT
28642017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
2865
2866 * Makefile.in (SFILES): Add producer.c.
2867 (COMMON_OBS): Add producer.o
2868 * amd64-tdep.c (producer.h): Add new include.
2869 * dwarf2read.c (producer.h): Add new include.
2870 * producer.c: New file.
2871 * producer.h: New file.
2872 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
2873 producer.c.
2874 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
2875 producer.h.
2876
5007d765
MK
28772017-09-26 Matthias Klose <doko@ubuntu.com>
2878
2879 * configure.ac: Search ncursesw before ncurses.
2880 Check ncursesw/ncurses.h before ncurses/ncurses.h.
2881 * gdb_curses.h: Include <ncursesw/ncurses.h>
2882 * config.in, configure: Regenerate.
2883
281c4447
RO
28842017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2885
2886 PR gdb/22185
2887 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
2888 obsolete.
2889 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
2890 Remove i386sol2 support.
2891 * configure.nat <i386sol2>: Remove.
2892 <sol2-64>: Fold into ...
2893 <sol2>: ... this.
2894 Move common settings to default section.
2895 Add sol-thread.o.
2896 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
2897 x86_64-*-solaris2.1[0-9]*>: Rename to ...
2898 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
2899 <i[34567]86-*-solaris*>: Remove.
2900 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
2901
2902 * configure.ac: Remove wctype in libw check.
2903 (_MSE_INT_H): Don't define on Solaris 7-9.
2904 <solaris*>: Remove libthread_db.so.1 check.
2905 * configure: Regenerate.
2906 * config.in: Regenerate.
2907
2908 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
2909 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
2910 (gdb_ps_size_t): Remove.
2911 Use base types in users.
2912 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
2913
2914 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
2915
39b06c20
RO
29162017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2917
2918 PR build/22206
2919 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
2920 (adi_is_addr_mapped): Likewise.
2921 (PSR_ICC): Don't redefine.
2922 (PSR_IMPL): Likewise.
2923
6c3e20f1
TT
29242017-09-25 Tom Tromey <tom@tromey.com>
2925
2926 * regcache.c (regcache::dump): Use string_printf.
2927
b292235f
TT
29282017-09-25 Tom Tromey <tom@tromey.com>
2929
2930 * regcache.c (class regcache_invalidator): New.
2931 (struct register_to_invalidate): Remove.
2932 (make_cleanup_regcache_invalidate): Remove.
2933 (regcache::raw_write): Use regcache_invalidator.
2934
9ac86b52
TT
29352017-09-25 Tom Tromey <tom@tromey.com>
2936
2937 * spu-tdep.c (spu2ppu_sniffer): Update.
2938 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
2939 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
2940 Remove.
2941 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
2942 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
2943 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
2944 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
2945 (frame_pop): Update.
2946
c0e383c6
TT
29472017-09-25 Tom Tromey <tom@tromey.com>
2948
2949 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
2950 * regcache.h (regcache_xfree): Don't declare.
2951 * regcache.c (regcache_xfree): Remove.
2952 (do_regcache_xfree): Use delete.
2953 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
2954 * linux-fork.c (free_fork): Use delete.
2955 (fork_save_infrun_state): Likewise.
2956 * jit.c (jit_dealloc_cache): Use delete.
2957 * infrun.c (discard_infcall_suspend_state): Use delete.
2958
791199cc
TT
29592017-09-25 Tom Tromey <tom@tromey.com>
2960
2961 * regcache.h (regcache_xmalloc): Don't declare.
2962 (regcache_raw_set_cached_value): Update comment.
2963 * regcache.c (regcache_xmalloc): Remove.
2964 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
2965 * jit.c (jit_frame_sniffer): Use new.
2966 * frame.c (frame_save_as_regcache): Use new.
2967
289e23aa
AA
29682017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2969
2970 * NEWS: Advertise support for guarded-storage registers on IBM z.
2971
1b63490c
AA
29722017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2973
2974 * s390-linux-nat.c (have_regset_gs): New static variable.
2975 (s390_linux_fetch_inferior_registers): Handle guarded-storage
2976 control block and guarded-storage broadcast control regsets.
2977 (s390_read_description): Detect whether the target has
2978 guarded-storage support, return appropriate tdesc.
2979 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
2980 (features/s390x-gs-linux64.c): Likewise.
2981 (struct gdbarch_tdep) <have_gs>: New field.
2982 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
2983 (s390_gsbc_regset): New variables.
2984 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
2985 and s390_gsbc_regset, if applicable.
2986 (s390_core_read_description): Check whether core file was from a
2987 target with guarded-storage support; include appropriate regsets.
2988 (s390_gdbarch_init): Add registers for guarded-storage support.
2989 (_initialize_s390_tdep): Initialize new target descriptions that
2990 include registers for guarded-storage support.
2991 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
2992 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
2993 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
2994 (S390_NUM_REGS): Adjust macro definition.
2995 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
2996 (tdesc_s390x_gs_linux64): New declarations.
2997
96235dc1
AA
29982017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
2999
3000 * features/s390-gs-linux64.xml: New file.
3001 * features/s390-gs.xml: New file.
3002 * features/s390-gsbc.xml: New file.
3003 * features/s390x-gs-linux64.xml: New file.
3004 * features/Makefile (WHICH): Add s390-gs-linux64 and
3005 s390x-gs-linux64.
3006 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
3007 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
3008 * features/s390-gs-linux64.c: New generated file.
3009 * features/s390x-gs-linux64.c: New file.
3010 * regformats/s390-gs-linux64.dat: New file.
3011 * regformats/s390x-gs-linux64.dat: New file.
3012
b4a7c699
TT
30132017-09-23 Tom Tromey <tom@tromey.com>
3014
3015 * defs.h (make_cleanup_override_quit_handler): Don't declare.
3016
c2f97536
TT
30172017-09-22 Tom Tromey <tom@tromey.com>
3018
3019 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
3020 type to scoped_restore_tmpl.
3021 <scoped_input_handler>: Initialize m_quit_handler directly.
3022
43573013
SDJ
30232017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
3024
3025 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
3026 (cd_command): Likewise. Free "current_directory" before
3027 assigning to it.
3028 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
3029 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
3030 * top.c (gdb_dirbuf): Remove global declaration.
3031 * top.h (gdb_dirbuf): Likewise.
3032
6ec2e0f5
SDJ
30332017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
3034
3035 * gnulib/aclocal.m4: Regenerate.
3036 * gnulib/config.in: Regenerate.
3037 * gnulib/configure: Regenerate.
3038 * gnulib/import/Makefile.am: Regenerate.
3039 * gnulib/import/Makefile.in: Regenerate.
3040 * gnulib/import/assure.h: New file.
3041 * gnulib/import/at-func.c: Likewise
3042 * gnulib/import/chdir-long.c: New file.
3043 * gnulib/import/chdir-long.h: New file.
3044 * gnulib/import/cloexec.c: New file.
3045 * gnulib/import/cloexec.h: New file.
3046 * gnulib/import/close.c: New file.
3047 * gnulib/import/closedir.c: New file.
3048 * gnulib/import/dirent-private.h: New file.
3049 * gnulib/import/dup-safer.c: New file.
3050 * gnulib/import/dup.c: New file.
3051 * gnulib/import/dup2.c: New file.
3052 * gnulib/import/error.c: New file.
3053 * gnulib/import/error.h: New file.
3054 * gnulib/import/exitfail.c: New file.
3055 * gnulib/import/exitfail.h: New file.
3056 * gnulib/import/fchdir.c: New file.
3057 * gnulib/import/fcntl.c: New file.
3058 * gnulib/import/fcntl.in.h: New file.
3059 * gnulib/import/fd-hook.c: New file.
3060 * gnulib/import/fd-hook.h: New file.
3061 * gnulib/import/fd-safer.c: New file.
3062 * gnulib/import/fdopendir.c: New file.
3063 * gnulib/import/filename.h: New file.
3064 * gnulib/import/filenamecat-lgpl.c: New file.
3065 * gnulib/import/filenamecat.h: New file.
3066 * gnulib/import/fstat.c: New file.
3067 * gnulib/import/fstatat.c: New file.
3068 * gnulib/import/getcwd-lgpl.c: New file.
3069 * gnulib/import/getcwd.c: New file.
3070 * gnulib/import/getdtablesize.c: New file.
3071 * gnulib/import/getlogin_r.c: New file.
3072 * gnulib/import/getprogname.c: New file.
3073 * gnulib/import/getprogname.h: New file.
3074 * gnulib/import/gettext.h: New file.
3075 * gnulib/import/glob-libc.h: New file.
3076 * gnulib/import/glob.c: New file.
3077 * gnulib/import/glob.in.h: New file.
3078 * gnulib/import/intprops.h: New file.
3079 * gnulib/import/m4/chdir-long.m4: New file.
3080 * gnulib/import/m4/close.m4: New file.
3081 * gnulib/import/m4/closedir.m4: New file.
3082 * gnulib/import/m4/d-ino.m4: New file.
3083 * gnulib/import/m4/d-type.m4: New file.
3084 * gnulib/import/m4/dup.m4: New file.
3085 * gnulib/import/m4/dup2.m4: New file.
3086 * gnulib/import/m4/error.m4: New file.
3087 * gnulib/import/m4/fchdir.m4: New file.
3088 * gnulib/import/m4/fcntl.m4: New file.
3089 * gnulib/import/m4/fcntl_h.m4: New file.
3090 * gnulib/import/m4/fdopendir.m4: New file.
3091 * gnulib/import/m4/filenamecat.m4: New file.
3092 * gnulib/import/m4/fstat.m4: New file.
3093 * gnulib/import/m4/fstatat.m4: New file.
3094 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
3095 * gnulib/import/m4/getcwd-path-max.m4: New file.
3096 * gnulib/import/m4/getcwd.m4: New file.
3097 * gnulib/import/m4/getdtablesize.m4: New file.
3098 * gnulib/import/m4/getlogin_r.m4: New file.
3099 * gnulib/import/m4/getprogname.m4: New file.
3100 * gnulib/import/m4/glob.m4: New file.
3101 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3102 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3103 * gnulib/import/m4/mempcpy.m4: New file.
3104 * gnulib/import/m4/memrchr.m4: New file.
3105 * gnulib/import/m4/mode_t.m4: New file.
3106 * gnulib/import/m4/msvc-inval.m4: New file.
3107 * gnulib/import/m4/msvc-nothrow.m4: New file.
3108 * gnulib/import/m4/open.m4: New file.
3109 * gnulib/import/m4/openat.m4: New file.
3110 * gnulib/import/m4/opendir.m4: New file.
3111 * gnulib/import/m4/readdir.m4: New file.
3112 * gnulib/import/m4/realloc.m4: New file.
3113 * gnulib/import/m4/rewinddir.m4: New file.
3114 * gnulib/import/m4/save-cwd.m4: New file.
3115 * gnulib/import/m4/strdup.m4: New file.
3116 * gnulib/import/m4/strerror.m4: New file.
3117 * gnulib/import/m4/unistd-safer.m4: New file.
3118 * gnulib/import/mempcpy.c: New file.
3119 * gnulib/import/memrchr.c: New file.
3120 * gnulib/import/msvc-inval.c: New file.
3121 * gnulib/import/msvc-inval.h: New file.
3122 * gnulib/import/msvc-nothrow.c: New file.
3123 * gnulib/import/msvc-nothrow.h: New file.
3124 * gnulib/import/open.c: New file.
3125 * gnulib/import/openat-die.c: New file.
3126 * gnulib/import/openat-priv.h: New file.
3127 * gnulib/import/openat-proc.c: New file.
3128 * gnulib/import/openat.c: New file.
3129 * gnulib/import/openat.h: New file.
3130 * gnulib/import/opendir.c: New file.
3131 * gnulib/import/pipe-safer.c: New file.
3132 * gnulib/import/readdir.c: New file.
3133 * gnulib/import/realloc.c: New file.
3134 * gnulib/import/rewinddir.c: New file.
3135 * gnulib/import/save-cwd.c: New file.
3136 * gnulib/import/save-cwd.h: New file.
3137 * gnulib/import/strdup.c: New file.
3138 * gnulib/import/strerror-override.c: New file.
3139 * gnulib/import/strerror-override.h: New file.
3140 * gnulib/import/strerror.c: New file.
3141 * gnulib/import/unistd--.h: New file.
3142 * gnulib/import/unistd-safer.h: New file.
3143 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
3144 "getcwd" and "glob".
3145 * ser-tcp.c: Undefine "close" before redefining it.
3146
432ae719
SM
31472017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3148
3149 * guile/scm-value.c (gdbscm_value_address): Initialize address,
3150 get rid of res_val.
3151
4fa7574e
RO
31522017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3153
3154 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
3155 <sol2,sparc>: Likewise.
3156 <sol2-64,i386>: Likewise.
3157
3158 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
3159 -Wdeprecated-declarations on *-*-solaris*.
3160 * configure: Regenerate.
3161
3162 * procfs.c: Include "nat/inferior.h".
3163 (procfs_info_proc): Fix typo.
3164
f6327dcb
KB
31652017-09-21 Kevin Buettner <kevinb@redhat.com>
3166
3167 * remote.c (vector): Include.
3168 (struct private_thread_info): Add field, thread_handle.
3169 (free_private_thread_info): Deallocate storage associated with
3170 thread handle.
3171 (get_private_info_thread): Initialize `thread_handle' field.
3172 (struct thread_item): Add field, thread_handle.
3173 (clear_threads_listing_context): Deallocate storage associated
3174 with thread handle.
3175 (start_thread): Add support for "handle" attribute.
3176 (thread_attributes): Add "handle".
3177 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
3178 field.
3179 (remote_update_thread_list): Update thread_handle.
3180 (remote_thread_handle_to_thread_info): New function.
3181 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
3182
fbbe5337
KB
31832017-09-21 Kevin Buettner <kevinb@redhat.com>
3184
3185 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
3186 function.
3187 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
3188 * python/python-internal.h (thread_object_type): Declare.
3189
e04ee09e
KB
31902017-09-21 Kevin Buettner <kevinb@redhat.com>
3191
3192 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
3193 (target_thread_handle_to_thread_info): Declare.
3194 * target.c (target_thread_handle_to_thread_info): New function.
3195 * target-delegates.c: Regenerate.
3196 * gdbthread.h (find_thread_by_handle): Declare.
3197 * thread.c (find_thread_by_handle): New function.
3198 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
3199 function.
3200 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
3201
1e5b66ed
SM
32022017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3203
3204 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
3205
ebe48ba0
SM
32062017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3207
3208 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
3209
0a0bf5dc
YQ
32102017-09-21 Yao Qi <yao.qi@linaro.org>
3211
3212 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
3213 to gdb_target_obs.
3214
d1b0a7bf
TT
32152017-09-20 Tom Tromey <tom@tromey.com>
3216
3217 * breakpoint.c (struct counted_command_line): Remove.
3218 (breakpoint_commands): Update.
3219 (alloc_counted_command_line, incref_counted_command_line)
3220 (decref_counted_command_line, do_cleanup_counted_command_line)
3221 (make_cleanup_decref_counted_command_line): Remove.
3222 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
3223 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
3224 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
3225 (save_breakpoints): Update.
3226 * breakpoint.h (counted_command_line): Now a typedef to
3227 shared_ptr.
3228 (struct breakpoint) <commands>: Now a counted_command_line.
3229 (struct bpstats) <command>: Likewise.
3230
48649e1b
TT
32312017-09-20 Tom Tromey <tom@tromey.com>
3232
3233 * breakpoint.c (struct commands_info, do_map_commands_command):
3234 Remove.
3235 (commands_command_1): Update.
3236 (iterate_over_related_breakpoints): Take a function_view.
3237 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
3238 (delete_command): Update.
3239 (map_breakpoint_numbers): Take a function_view.
3240 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
3241 (disable_command): Update.
3242 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
3243 (enable_command): Update.
3244 (struct disp_data, do_enable_breakpoint_disp)
3245 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
3246 (do_map_enable_delete_breakpoint): Remove.
3247 (enable_once_command, enable_count_command, enable_delete_command)
3248 (delete_trace_variable_command): Update.
3249
04afa70c
TT
32502017-09-20 Tom Tromey <tom@tromey.com>
3251
3252 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
3253 (bpstat_clear): Use delete.
3254 (bpstats): New constructors.
3255 (bpstat_copy, bpstat_stop_status): Use new.
3256 (dprintf_after_condition_true): Update.
3257 * breakpoint.h (bpstats::bpstats): Add constructors.
3258 (bpstats::~bpstats): Add destructor.
3259
c83833f4
PA
32602017-09-20 Pedro Alves <palves@redhat.com>
3261
3262 * eval.c (make_params): Delete, refactored as ...
3263 (class fake_method): ... this new type's ctor.
3264 (fake_method::~fake_method): New.
3265 (evaluate_subexp_standard): Use 'fake_method'.
3266
223ffa71
TT
32672017-09-20 Tom Tromey <tom@tromey.com>
3268
3269 * windows-nat.c (get_windows_debug_event, windows_wait)
3270 (do_initial_windows_stuff, windows_attach): Update.
3271 * utils.c (vwarning, internal_vproblem): Update.
3272 (ui_unregister_input_event_handler_cleanup)
3273 (prepare_to_handle_input): Remove.
3274 (class scoped_input_handler): New.
3275 (defaulted_query, prompt_for_continue): Update.
3276 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
3277 Update.
3278 * top.c (undo_terminal_modifications_before_exit): Update.
3279 * target/target.h (target_terminal_init, target_terminal_inferior)
3280 (target_terminal_ours): Don't declare.
3281 (class target_terminal): New.
3282 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
3283 (target_terminal_ours_for_output)
3284 (make_cleanup_restore_target_terminal): Don't declare.
3285 (target_terminal_info): Remove.
3286 * target.c (enum terminal_state, terminal_state): Remove.
3287 (target_terminal::terminal_state): Define.
3288 (target_terminal::init): Rename from target_terminal_init.
3289 (target_terminal::inferior): Rename from
3290 target_terminal_inferior.
3291 (target_terminal::ours): Rename from target_terminal_ours.
3292 (target_terminal::ours_for_output): Rename from
3293 target_terminal_ours_for_output.
3294 (target_terminal::info): New method.
3295 (cleanup_restore_target_terminal)
3296 (make_cleanup_restore_target_terminal): Remove.
3297 * solib.c (handle_solib_event): Update.
3298 * remote.c (remote_serial_quit_handler): Update.
3299 (remote_terminal_inferior, remote_wait_as): Update.
3300 * record-full.c (record_full_wait_1): Update.
3301 * nto-procfs.c (procfs_create_inferior): Update.
3302 * nat/fork-inferior.c (startup_inferior): Update.
3303 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
3304 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
3305 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
3306 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
3307 (mi_breakpoint_created, mi_breakpoint_deleted)
3308 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
3309 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
3310 (mi_user_selected_context_changed, report_initial_inferior):
3311 Update.
3312 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
3313 (linux_nat_terminal_inferior): Update.
3314 * infrun.c (follow_fork_inferior)
3315 (handle_vfork_child_exec_or_exit, do_target_resume)
3316 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
3317 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
3318 Update.
3319 * inflow.c (child_terminal_init, info_terminal_command): Update.
3320 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
3321 (attach_command): Update.
3322 * infcall.c (call_thread_fsm_should_stop): Update.
3323 * gnu-nat.c (gnu_attach): Update.
3324 * extension.c (struct active_ext_lang_state)
3325 (restore_active_ext_lang): Update.
3326 * exceptions.c (print_flush): Update.
3327 * event-top.c (async_enable_stdin, default_quit_handler): Update.
3328 (struct quit_handler_cleanup_data, restore_quit_handler)
3329 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
3330 Remove.
3331 * cp-support.c (gdb_demangle): Update.
3332 * breakpoint.c (update_inserted_breakpoint_locations)
3333 (insert_breakpoint_locations, handle_jit_event)
3334 (disable_breakpoints_in_unloaded_shlib): Update.
3335 * annotate.c (annotate_breakpoints_invalid)
3336 (annotate_frames_invalid): Update.
3337
013af3fc
TT
33382017-09-20 Tom Tromey <tom@tromey.com>
3339
3340 * main.c (catch_command_errors): Rename from
3341 catch_command_errors_const.
3342 (captured_main_1): Update.
3343
06871ae8
PA
33442017-09-20 Pedro Alves <palves@redhat.com>
3345
3346 * cli/cli-cmds.c (list_command): Use print_sal_location.
3347 (print_sal_location): New function.
3348 (ambiguous_line_spec): Use print_sal_location.
3349 * linespec.c (symbol_to_sal): Record the symbol in the sal.
3350 * symtab.c (find_function_start_sal): Likewise.
3351 * symtab.h (symtab_and_line::symbol): New field.
3352
e5f25bc5
PA
33532017-09-20 Pedro Alves <palves@redhat.com>
3354
3355 * linespec.c (minsym_found): Handle non-text minsyms.
3356 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
3357
1b7fa39e
WT
33582017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
3359
3360 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
3361 backslash.
3362
37dd0825
WT
33632017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
3364
3365 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
3366 vmovups instead vmovaps.
3367 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
3368
4e5a4f58
JB
33692017-09-19 John Baldwin <jhb@FreeBSD.org>
3370
3371 * NEWS (Changes since GDB 8.0): Add starti.
3372 * infcmd.c (enum run_break): New.
3373 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
3374 case.
3375 (run_command): Use enum run_how.
3376 (start_command): Likewise.
3377 (starti_command): New function.
3378 (RUN_ARGS_HELP): New macro.
3379 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
3380 commands. Add starti command.
3381
aa70c9f1
YQ
33822017-09-19 Yao Qi <yao.qi@linaro.org>
3383
3384 * Makefile.in (monitor.o): Remove the rule.
3385
d6541620
YQ
33862017-09-19 Yao Qi <yao.qi@linaro.org>
3387
3388 * annotate.h (struct annotate_arg_emitter): Use
3389 DISABLE_COPY_AND_ASSIGN.
3390 * common/refcounted-object.h (refcounted_object): Likewise.
3391 * completer.h (struct completion_result): Likewise.
3392 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
3393 * filename-seen-cache.h (filename_seen_cache): Likewise.
3394 * gdbcore.h (thread_section_name): Likewise.
3395 * gdb_regex.h (compiled_regex): Likewise.
3396 * gdbthread.h (scoped_restore_current_thread): Likewise.
3397 * inferior.h (scoped_restore_current_inferior): Likewise.
3398 * jit.c (jit_reader): Likewise.
3399 * linespec.h (struct linespec_result): Likewise.
3400 * mi/mi-parse.h (struct mi_parse): Likewise.
3401 * nat/fork-inferior.c (execv_argv): Likewise.
3402 * progspace.h (scoped_restore_current_program_space): Likewise.
3403 * python/python-internal.h (class gdbpy_enter): Likewise.
3404 * regcache.h (regcache): Likewise.
3405 * target-descriptions.c (struct tdesc_reg): Likewise.
3406 (struct tdesc_type): Likewise.
3407 (struct tdesc_feature): Likewise.
3408 * ui-out.h (ui_out_emit_type): Likewise.
3409
0615127c
SM
34102017-09-18 Simon Marchi <simon.marchi@ericsson.com>
3411
3412 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
3413 label abort_expression.
3414
5e187554
SM
34152017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3416
3417 * common/buffer.c (buffer_xml_printf): Adjust.
3418 * common/xml-utils.c (xml_escape_text): Change return type to
3419 std::string, update code accordingly.
3420 * common/xml-utils.h (xml_escape_text): Change return type to
3421 std::string.
3422 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
3423 * windows-tdep.c (windows_xfer_shared_library): Adjust.
3424 * unittests/xml-utils-selftests.c (test_xml_escape_text):
3425 Adjust.
3426
c3d7b541
SM
34272017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3428
3429 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
3430 (SUBDIR_UNITTESTS_OBS): Add new object file.
3431 * unittests/xml-utils-selftests.c: New file.
3432
1526853e
SM
34332017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3434
3435 * common/selftest.h (selftest): New struct/interface.
3436 (register_test): Add name parameter, add new overload.
3437 (run_tests): Add filter parameter.
3438 (for_each_selftest_ftype): New typedef.
3439 (for_each_selftest): New declaration.
3440 * common/selftest.c (tests): Change type to
3441 map<string, unique_ptr<selftest>>.
3442 (simple_selftest): New struct.
3443 (register_test): New function.
3444 (register_test): Add name parameter and use it.
3445 (run_tests): Add filter parameter and use it. Add prints.
3446 Adjust to vector -> map change.
3447 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
3448 registering selftests.
3449 * arm-tdep.c (_initialize_arm_tdep): Likewise.
3450 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
3451 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
3452 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
3453 * findvar.c (_initialize_findvar): Likewise.
3454 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
3455 * maint.c (maintenance_selftest): Update call to run_tests.
3456 (maintenance_info_selftests): New function.
3457 (_initialize_maint_cmds): Register "maintenance info selftests"
3458 command. Update "maintenance selftest" doc.
3459 * regcache.c (_initialize_regcache): Add names when registering
3460 selftests.
3461 * rust-exp.y (_initialize_rust_exp): Likewise.
3462 * selftest-arch.c (gdbarch_selftest): New struct.
3463 (gdbarch_tests): Remove.
3464 (register_test_foreach_arch): Add name parameter. Call
3465 register_test.
3466 (tests_with_arch): Remove, move most content to
3467 gdbarch_selftest::operator().
3468 (_initialize_selftests_foreach_arch): Remove.
3469 * selftest-arch.h (register_test_foreach_arch): Add name
3470 parameter.
3471 (run_tests_with_arch): New declaration.
3472 * utils-selftests.c (_initialize_utils_selftests): Add names
3473 when registering selftests.
3474 * utils.c (_initialize_utils): Likewise.
3475 * unittests/array-view-selftests.c
3476 (_initialize_array_view_selftests): Likewise.
3477 * unittests/environ-selftests.c (_initialize_environ_selftests):
3478 Likewise.
3479 * unittests/function-view-selftests.c
3480 (_initialize_function_view_selftests): Likewise.
3481 * unittests/offset-type-selftests.c
3482 (_initialize_offset_type_selftests): Likewise.
3483 * unittests/optional-selftests.c
3484 (_initialize_optional_selftests): Likewise.
3485 * unittests/scoped_restore-selftests.c
3486 (_initialize_scoped_restore_selftests): Likewise.
3487 * NEWS: Document "maintenance selftest" and "maint info
3488 selftests".
3489
5846367a
SM
34902017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3491
3492 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
3493 scoped_restore.
3494
bd77e8ff
SM
34952017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3496
3497 * mi/mi-main.c (mi_load_progress): Make uiout variable
3498 a unique_ptr.
3499
26a67918
PA
35002017-09-15 Pedro Alves <palves@redhat.com>
3501
3502 * compile/compile-c-types.c (convert_enum, convert_int)
3503 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
3504
3f8a7804
SM
35052017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3506
3507 * dwarf2read.c (copy_string): Remove.
3508 (parse_macro_definition): Replace copy_string with savestring.
3509
8d200706
YQ
35102017-09-15 Yao Qi <yao.qi@linaro.org>
3511
3512 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
3513 gdb_target_obs.
3514 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
3515 Likewise.
3516 (i[34567]86-*-linux*): Likewise.
3517
d185219d
SM
35182017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3519
3520 * dwarf2expr.h (dwarf_stack_value): Add constructor.
3521 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
3522 <stack>: Change type to std::vector.
3523 <stack_len, stack_allocated>: Remove.
3524 <grow_stack>: Remove.
3525 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
3526 (dwarf_expr_context::~dwarf_expr_context): Remove.
3527 (dwarf_expr_context::grow_stack): Remove.
3528 (dwarf_expr_context::push): Adjust.
3529 (dwarf_expr_context::pop): Adjust.
3530 (dwarf_expr_context::fetch): Adjust.
3531 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
3532 (dwarf_expr_context::stack_empty_p): Adjust.
3533 (dwarf_expr_context::execute_stack_op): Adjust.
3534
eccd80d6
SM
35352017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3536
3537 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
3538 return type to bool.
3539 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
3540
69009882
SM
35412017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3542
3543 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
3544 Change type to bool.
3545 (dwarf_stack_value) <in_stack_memory>: Likewise.
3546 (dwarf_expr_context) <push_address>: Change parameter type to
3547 bool.
3548 <fetch_in_stack_memory>: Change return type to bool.
3549 <push>: Change parameter type to bool.
3550 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
3551 to bool.
3552 (dwarf_expr_context::push_address): Likewise.
3553 (dwarf_expr_context::fetch_in_stack_memory): Change return type
3554 to bool.
3555 (dwarf_expr_context::execute_stack_op): Adjust.
3556 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
3557
1e467161
SM
35582017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3559
3560 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
3561 (struct dwarf_expr_context) <n_pieces>: Remove.
3562 <pieces>: Change type to std::vector.
3563 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
3564 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
3565 pieces.
3566 (dwarf_expr_context::add_piece): Adjust.
3567 * dwarf2loc.c (struct piece_closure): Initialize fields.
3568 <n_pieces>: Remove.
3569 <pieces>: Change type to std::vector.
3570 (allocate_piece_closure): Adjust, change parameter to
3571 std::vector rvalue and std::move it to piece_closure.
3572 (rw_pieced_value): Adjust.
3573 (check_pieced_synthetic_pointer): Adjust.
3574 (indirect_synthetic_pointer): Adjust.
3575 (coerce_pieced_ref): Adjust.
3576 (free_pieced_value_closure): Adjust. Use delete to free
3577 piece_closure.
3578 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
3579 to allocate_piece_closure.
3580 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
3581
0782db84
SM
35822017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3583
3584 * probe.h (probe_ops_cp): Remove typedef.
3585 (DEF_VEC_P (probe_ops_cp)): Remove.
3586 (all_probe_ops): Change type to std::vector.
3587 * probe.c (info_probes_for_ops): Adjust to vector change.
3588 (probe_linespec_to_ops): Likewise.
3589 (all_probe_ops): Change type to std::vector.
3590 (_initialize_probe): Adjust to vector change.
3591 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
3592 * elfread.c (elf_get_probes): Likewise.
3593 * stap-probe.c (_initialize_stap_probe): Likewise.
3594
1eac6bea
SM
35952017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3596
3597 * probe.h (struct bound_probe): Define constructors.
3598 * probe.c (bound_probe_s): Remove typedef.
3599 (DEF_VEC_O (bound_probe_s)): Remove VEC.
3600 (collect_probes): Change return type to std::vector, remove
3601 cleanup.
3602 (compare_probes): Return bool, change parameter type. Change
3603 semantic to "less than".
3604 (gen_ui_out_table_header_info): Change parameter to std::vector
3605 and update.
3606 (exists_probe_with_pops): Likewise.
3607 (info_probes_for_ops): Update to std::vector change.
3608 (enable_probes_command): Likewise.
3609 (disable_probes_command): Likewise.
3610
aaa63a31
SM
36112017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3612
3613 * probe.h (struct probe_ops) <get_probes>: Change parameter from
3614 vec to std::vector.
3615 * probe.c (parse_probes_in_pspace): Update.
3616 (find_probes_in_objfile): Update.
3617 (find_probe_by_pc): Update.
3618 (collect_probes): Update.
3619 (probe_any_get_probes): Update.
3620 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
3621 return type to reference to std::vector.
3622 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
3623 std::vector and update.
3624 (dtrace_process_dof): Likewise.
3625 (dtrace_get_probes): Likewise.
3626 * elfread.c (elf_get_probes): Change return type to std::vector,
3627 store an std::vector in bfd_data.
3628 (probe_key_free): Update to std::vector.
3629 * stap-probe.c (handle_stap_probe): Change parameter to
3630 std::vector and update.
3631 (stap_get_probes): Likewise.
3632 * symfile-debug.c (debug_sym_get_probes): Change return type to
3633 std::vector and update.
3634
cb85b21b
TT
36352017-09-11 Tom Tromey <tom@tromey.com>
3636
3637 * breakpoint.c (program_breakpoint_here_p): Update.
3638 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
3639 from make_show_memory_breakpoints_cleanup. Return a
3640 scoped_restore_tmpl<int>.
3641 (restore_show_memory_breakpoints): Remove.
3642 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
3643 * mem-break.c (memory_validate_breakpoint): Update.
3644 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
3645 (ia64_memory_remove_breakpoint): Update.
3646 (ia64_breakpoint_from_pc): Update.
3647 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
3648 from make_show_memory_breakpoints_cleanup.
3649
8fbc99ef
TT
36502017-09-11 Tom Tromey <tom@tromey.com>
3651
3652 * d-namespace.c (d_lookup_symbol): Use std::string.
3653 (find_symbol_in_baseclass): Likewise.
3654
50feb4bd
TT
36552017-09-11 Tom Tromey <tom@tromey.com>
3656
3657 * ctf.c (ctf_start): Use std::string.
3658
c6dc63a1
TT
36592017-09-11 Tom Tromey <tom@tromey.com>
3660
3661 * ada-lang.c (is_known_support_routine): Update.
3662 (ada_unhandled_exception_name_addr_from_raise): Update.
3663 * guile/scm-frame.c (gdbscm_frame_name): Update.
3664 * python/py-frame.c (frapy_name): Update.
3665 (frapy_function): Update.
3666 * stack.h (find_frame_funname): Update.
3667 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
3668 (print_frame): Update.
3669
d6b9b80f
TT
36702017-09-11 Tom Tromey <tom@tromey.com>
3671
3672 * findcmd.c (put_bits): Take a gdb::byte_vector.
3673 (parse_find_args): Return gdb::byte_vector. "args" now const.
3674 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
3675 cleanups.
3676 (find_command): Update.
3677
a9921622
TT
36782017-09-11 Tom Tromey <tom@tromey.com>
3679
3680 * cli/cli-script.c (class scoped_restore_hook_in): New.
3681 (clear_hook_in_cleanup): Remove.
3682 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
3683 scoped_restore_hook_in.
3684
be0d7abb
TT
36852017-09-11 Tom Tromey <tom@tromey.com>
3686
3687 * cli/cli-script.c (restore_interp): Remove.
3688 (read_command_lines): Use scoped_restore_interp.
3689 * interps.c (scoped_restore_interp::set_temp): Rename from
3690 interp_set_temp.
3691 * interps.h (class scoped_restore_interp): New.
3692 (interp_set_temp): Remove.
3693
00f675ff
TT
36942017-09-11 Tom Tromey <tom@tromey.com>
3695
3696 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
3697 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
3698 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
3699 scoped_restore.
3700 (mi_cmd_break_insert_1): Update.
3701 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
3702 scoped_restore.
3703
cb791d59
TT
37042017-09-11 Tom Tromey <tom@tromey.com>
3705
3706 * demangle.c (demangle_command): Update.
3707 * breakpoint.c (disable_command): Update.
3708 (enable_command): Update.
3709 (find_location_by_number): Make "number" const. Use
3710 get_number_trailer.
3711 * cli/cli-utils.c (extract_arg): Return std::string.
3712 * probe.c (parse_probe_linespec): Update. Change types.
3713 (collect_probes): Take string arguments.
3714 (parse_probe_linespec): Likewise.
3715 (info_probes_for_ops): Update.
3716 (enable_probes_command): Update.
3717 (disable_probes_command): Update.
3718 * break-catch-sig.c (catch_signal_split_args): Update.
3719 * mi/mi-parse.c (mi_parse): Update.
3720
2039bd9f
TT
37212017-09-11 Tom Tromey <tom@tromey.com>
3722
3723 * language.h (language_enum): Make argument const.
3724 * language.c (language_enum): Make argument const.
3725
f1735a53
TT
37262017-09-11 Tom Tromey <tom@tromey.com>
3727
3728 * common/common-utils.h (skip_to_space): Remove macro, redeclare
3729 as function.
3730 (skip_to_space): Rename from skip_to_space_const.
3731 * common/common-utils.c (skip_to_space): New function.
3732 (skip_to_space): Rename from skip_to_space_const.
3733 * cli/cli-utils.h (get_number): Rename from get_number_const.
3734 (extract_arg): Rename from extract_arg_const.
3735 * cli/cli-utils.c (get_number): Rename from get_number_const.
3736 (extract_arg): Rename from extract_arg_const.
3737 (number_or_range_parser::get_number): Use ::get_number.
3738 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
3739 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
3740 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
3741 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
3742 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
3743 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
3744 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
3745 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
3746
7d221d74
TT
37472017-09-11 Tom Tromey <tom@tromey.com>
3748
3749 * python/python.c (do_start_initialization): Use
3750 py-event-types.def to initialize types.
3751 Define all object type structures.
3752 * python/python-internal.h: Don't declare event initialization
3753 functions.
3754 * python/py-threadevent.c (thread_event_object_type): Don't
3755 define.
3756 * python/py-stopevent.c (stop_event_object_type): Don't define.
3757 * python/py-signalevent.c (signal_event_object_type): Don't
3758 declare or define.
3759 * python/py-newobjfileevent.c (new_objfile_event_object_type)
3760 (clear_objfiles_event_object_type): Don't declare or define.
3761 * python/py-infevents.c (inferior_call_pre_event_object_type)
3762 (inferior_call_post_event_object_type)
3763 (register_changed_event_object_type)
3764 (memory_changed_event_object_type): Don't declare or define.
3765 * python/py-inferior.c (new_thread_event_object_type)
3766 (new_inferior_event_object_type)
3767 (inferior_deleted_event_object_type): Don't declare or define.
3768 * python/py-exitedevent.c (exited_event_object_type): Don't
3769 declare or define.
3770 * python/py-evts.c (gdbpy_initialize_py_events): Use
3771 py-all-events.def.
3772 * python/py-events.h (thread_event_object_type): Don't declare.
3773 (events_object): Use py-all-events.def.
3774 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
3775 py-event-types.def.
3776 * python/py-event-types.def: New file.
3777 * python/py-continueevent.c (create_continue_event_object): Don't
3778 declare or define.
3779 * python/py-bpevent.c (breakpoint_event_object_type): Don't
3780 declare or define.
3781 * python/py-all-events.def: New file.
3782
35c61a1d
TT
37832017-09-11 Tom Tromey <tom@tromey.com>
3784
3785 * python/py-threadevent.c (create_thread_event_object): Return
3786 gdbpy_ref.
3787 * python/py-stopevent.h (create_stop_event_object)
3788 (create_breakpoint_event_object, create_signal_event_object):
3789 Update.
3790 * python/py-stopevent.c (create_stop_event_object): Return
3791 gdbpy_ref.
3792 (emit_stop_event): Update.
3793 * python/py-signalevent.c (create_signal_event_object): Return
3794 gdbpy_ref.
3795 * python/py-infevents.c (create_inferior_call_event_object):
3796 Update.
3797 * python/py-event.h (create_event_object)
3798 (create_thread_event_object): Update.
3799 * python/py-event.c (create_event_object): Return gdbpy_ref.
3800 * python/py-continueevent.c: Return gdbpy_ref.
3801 * python/py-bpevent.c (create_breakpoint_event_object): Return
3802 gdbpy_ref.
3803
7c96f8c1
TT
38042017-09-11 Tom Tromey <tom@tromey.com>
3805
3806 PR python/15622:
3807 * NEWS: Add entry.
3808 * python/python.c (do_start_initialization): Initialize new event
3809 types.
3810 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
3811 (gdbpy_initialize_inferior_deleted_event)
3812 (gdbpy_initialize_new_thread_event): Declare.
3813 * python/py-threadevent.c (create_thread_event_object): Add option
3814 "thread" parameter.
3815 * python/py-inferior.c (new_thread_event_object_type)
3816 (new_inferior_event_object_type)
3817 (inferior_deleted_event_object_type): Declare.
3818 (python_new_inferior, python_inferior_deleted): New functions.
3819 (add_thread_object): Emit new_thread event.
3820 (gdbpy_initialize_inferior): Attach new functions to corresponding
3821 observers.
3822 (new_thread, new_inferior, inferior_deleted): Define new event
3823 types.
3824 * python/py-evts.c (gdbpy_initialize_py_events): Add new
3825 registries.
3826 * python/py-events.h (events_object) <new_inferior,
3827 inferior_deleted, new_thread>: New fields.
3828 * python/py-event.h (create_thread_event_breakpoint): Add optional
3829 "thread" parameter.
3830
72542b8e
AB
38312017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
3832
3833 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
3834 check current_ui instead.
3835 (internal_vproblem): Likewise.
3836
0d64823e
SM
38372017-09-09 Simon Marchi <simon.marchi@ericsson.com>
3838
3839 * thread.c (print_thread_info_1): Remove unnecessary calls to
3840 uiout->is_mi_like_p.
3841
eb1e02fd
TT
38422017-09-09 Tom Tromey <tom@tromey.com>
3843
3844 * namespace.h (add_using_directive): Update.
3845 * namespace.c (add_using_directive): Change type of excludes to
3846 std::vector.
3847 * dwarf2read.c (read_import_statement): Use std::vector.
3848 (read_namespace): Update.
3849 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3850
0fc21fd8
TT
38512017-09-09 Tom Tromey <tom@tromey.com>
3852
3853 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
3854
49663d05
TT
38552017-09-09 Tom Tromey <tom@tromey.com>
3856
3857 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
3858
0b868b60
TT
38592017-09-09 Tom Tromey <tom@tromey.com>
3860
3861 * stack.c (func_command): Use gdb::def_vector.
3862
c0470d48
TT
38632017-09-09 Tom Tromey <tom@tromey.com>
3864
3865 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
3866 ui_out_emit_list, ui_out_emit_tuple.
3867 (mi_cmd_var_update): Likewise.
3868
ca5909c7
TT
38692017-09-09 Tom Tromey <tom@tromey.com>
3870
3871 * mi/mi-interp.c (mi_user_selected_context_changed): Use
3872 ui_out_redirect_pop.
3873 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
3874 ui_out_redirect_pop.
3875 * utils.c (do_ui_out_redirect_pop)
3876 (make_cleanup_ui_out_redirect_pop): Remove.
3877 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
3878 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
3879 * ui-out.h (ui_out_redirect_pop): New class.
3880
e6a2252a
TT
38812017-09-09 Tom Tromey <tom@tromey.com>
3882
3883 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
3884 (list_available_thread_groups, mi_cmd_list_thread_groups)
3885 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
3886 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
3887 Likewise.
3888
393702cd
TT
38892017-09-09 Tom Tromey <tom@tromey.com>
3890
3891 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
3892 ui_out_emit_tuple.
3893
76f9c9cf
TT
38942017-09-09 Tom Tromey <tom@tromey.com>
3895
3896 * target.c (flash_erase_command): Use ui_out_emit_tuple.
3897 * stack.c (print_frame): Use ui_out_emit_tuple.
3898 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
3899 (info_spu_mailbox_command, info_spu_dma_command)
3900 (info_spu_proxydma_command): Likewise.
3901 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
3902 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
3903 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
3904 ui_out_emit_tuple.
3905 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
3906
dc9fe180
TT
39072017-09-09 Tom Tromey <tom@tromey.com>
3908
3909 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
3910 (class ui_out_emit_table): Update comment.
3911 * ui-out.c (do_cleanup_table_end)
3912 (make_cleanup_ui_out_table_begin_end): Remove.
3913 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
3914 (info_spu_dma_cmdlist): Likewise.
3915 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
3916 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
3917 ui_out_emit_table.
3918
f8cc3da6
TT
39192017-09-09 Tom Tromey <tom@tromey.com>
3920
3921 * thread.c (print_thread_info_1): Use ui_out_emit_table,
3922 ui_out_emit_list, gdb::optional.
3923
481695ed
JB
39242017-09-09 John Baldwin <jhb@FreeBSD.org>
3925
3926 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
3927 prototype.
3928 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
3929 prototype.
3930 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
3931 prototype.
3932 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
3933 * ada-exp.y: Remove _initialize_ada_exp prototype.
3934 * ada-lang.c: Remove _initialize_ada_language prototype.
3935 * ada-tasks.c: Remove _initialize_tasks prototype.
3936 * addrmap.c: Remove _initialize_addrmap prototype.
3937 * agent.c: Remove _initialize_agent prototype.
3938 * aix-thread.c: Remove _initialize_aix_thread prototype.
3939 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
3940 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
3941 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
3942 prototype.
3943 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
3944 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
3945 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
3946 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
3947 prototype.
3948 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
3949 prototype.
3950 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
3951 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
3952 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
3953 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
3954 prototype.
3955 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
3956 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
3957 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
3958 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
3959 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
3960 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
3961 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
3962 prototype.
3963 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
3964 prototype.
3965 * annotate.c: Remove _initialize_annotate prototype.
3966 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
3967 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
3968 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
3969 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
3970 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
3971 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
3972 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
3973 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
3974 prototype.
3975 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
3976 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
3977 * auto-load.c: Remove _initialize_auto_load prototype.
3978 * auxv.c: Remove _initialize_auxv prototype.
3979 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
3980 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
3981 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
3982 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
3983 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
3984 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
3985 prototype.
3986 * break-catch-throw.c: Remove _initialize_break_catch_throw
3987 prototype.
3988 * breakpoint.c: Remove _initialize_breakpoint prototype.
3989 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
3990 * btrace.c: Remove _initialize_btrace prototype.
3991 * charset.c: Remove _initialize_charset prototype.
3992 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
3993 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
3994 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
3995 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
3996 * cli/cli-script.c: Remove _initialize_cli_script prototype.
3997 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
3998 * coffread.c: Remove _initialize_coffread prototype.
3999 * compile/compile.c: Remove _initialize_compile prototype.
4000 * complaints.c: Remove _initialize_complaints prototype.
4001 * completer.c: Remove _initialize_completer prototype.
4002 * copying.awk: Remove _initialize_copying prototype.
4003 * copying.c: Regenerate.
4004 * core-regset.c: Remove _initialize_core_regset prototype.
4005 * corefile.c: Remove _initialize_core prototype.
4006 * corelow.c: Remove _initialize_corelow prototype.
4007 * cp-abi.c: Remove _initialize_cp_abi prototype.
4008 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
4009 * cp-support.c: Remove _initialize_cp_support prototype.
4010 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
4011 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
4012 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
4013 * ctf.c: Remove _initialize_ctf prototype.
4014 * d-lang.c: Remove _initialize_d_language prototype.
4015 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
4016 prototype.
4017 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
4018 * dbxread.c: Remove _initialize_dbxread prototype.
4019 * dcache.c: Remove _initialize_dcache prototype.
4020 * demangle.c: Remove _initialize_demangler prototype.
4021 * disasm-selftests.c: Remove _initialize_disasm_selftests
4022 prototype.
4023 * disasm.c: Remove _initialize_disasm prototype.
4024 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
4025 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
4026 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
4027 prototype.
4028 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
4029 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
4030 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
4031 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
4032 * elfread.c: Remove _initialize_elfread prototype.
4033 * exec.c: Remove _initialize_exec prototype.
4034 * extension.c: Remove _initialize_extension prototype.
4035 * f-lang.c: Remove _initialize_f_language prototype.
4036 * f-valprint.c: Remove _initialize_f_valprint prototype.
4037 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
4038 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
4039 * filesystem.c: Remove _initialize_filesystem prototype.
4040 * findcmd.c: Remove _initialize_mem_search prototype.
4041 * fork-child.c: Remove _initialize_fork_child prototype.
4042 * frame-base.c: Remove _initialize_frame_base prototype.
4043 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
4044 * frame.c: Remove _initialize_frame prototype.
4045 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
4046 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
4047 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
4048 * gcore.c: Remove _initialize_gcore prototype.
4049 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
4050 * gdbarch.c: Regenerate.
4051 * gdbarch.sh: Remove _initialize_gdbarch prototype.
4052 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
4053 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
4054 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
4055 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
4056 * go-lang.c: Remove _initialize_go_language prototype.
4057 * go32-nat.c: Remove _initialize_go32_nat prototype.
4058 * guile/guile.c: Remove _initialize_guile prototype.
4059 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
4060 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
4061 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
4062 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
4063 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
4064 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
4065 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
4066 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
4067 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
4068 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
4069 prototype.
4070 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
4071 prototype.
4072 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
4073 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
4074 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
4075 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
4076 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
4077 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
4078 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
4079 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
4080 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
4081 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
4082 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
4083 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
4084 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
4085 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
4086 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
4087 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
4088 prototype.
4089 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
4090 prototype.
4091 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
4092 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
4093 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
4094 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
4095 * infcall.c: Remove _initialize_infcall prototype.
4096 * infcmd.c: Remove _initialize_infcmd prototype.
4097 * inferior.c: Remove _initialize_inferiors prototype.
4098 * inflow.c: Remove _initialize_inflow prototype.
4099 * infrun.c: Remove _initialize_infrun prototype.
4100 * interps.c: Remove _initialize_interpreter prototype.
4101 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
4102 * jit.c: Remove _initialize_jit prototype.
4103 * language.c: Remove _initialize_language prototype.
4104 * linux-fork.c: Remove _initialize_linux_fork prototype.
4105 * linux-nat.c: Remove _initialize_linux_nat prototype.
4106 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
4107 * linux-thread-db.c: Remove _initialize_thread_db prototype.
4108 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
4109 * m2-lang.c: Remove _initialize_m2_language prototype.
4110 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
4111 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
4112 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
4113 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
4114 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
4115 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
4116 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
4117 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
4118 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
4119 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
4120 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
4121 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
4122 * machoread.c: Remove _initialize_machoread prototype.
4123 * macrocmd.c: Remove _initialize_macrocmd prototype.
4124 * macroscope.c: Remove _initialize_macroscope prototype.
4125 * maint.c: Remove _initialize_maint_cmds prototype.
4126 * mdebugread.c: Remove _initialize_mdebugread prototype.
4127 * memattr.c: Remove _initialize_mem prototype.
4128 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
4129 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
4130 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
4131 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
4132 * mi/mi-main.c: Remove _initialize_mi_main prototype.
4133 * microblaze-linux-tdep.c: Remove
4134 _initialize_microblaze_linux_tdep prototype.
4135 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
4136 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
4137 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
4138 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
4139 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
4140 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
4141 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
4142 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
4143 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
4144 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
4145 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
4146 prototype.
4147 * mipsread.c: Remove _initialize_mipsread prototype.
4148 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
4149 prototype.
4150 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
4151 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
4152 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
4153 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
4154 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
4155 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
4156 prototype.
4157 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
4158 * nto-procfs.c: Remove _initialize_procfs prototype.
4159 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
4160 * objc-lang.c: Remove _initialize_objc_language prototype.
4161 * objfiles.c: Remove _initialize_objfiles prototype.
4162 * observer.c: Remove observer_test_first_notification_function,
4163 observer_test_second_notification_function,
4164 observer_test_third_notification_function, and
4165 _initialize_observer prototypes.
4166 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
4167 * osabi.c: Remove _initialize_gdb_osabi prototype.
4168 * osdata.c: Remove _initialize_osdata prototype.
4169 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
4170 * parse.c: Remove _initialize_parse prototype.
4171 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
4172 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
4173 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
4174 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
4175 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
4176 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
4177 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
4178 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
4179 * printcmd.c: Remove _initialize_printcmd prototype.
4180 * probe.c: Remove _initialize_probe prototype.
4181 * proc-api.c: Remove _initialize_proc_api prototype.
4182 * proc-events.c: Remove _initialize_proc_events prototype.
4183 * proc-service.c: Remove _initialize_proc_service prototype.
4184 * procfs.c: Remove _initialize_procfs prototype.
4185 * psymtab.c: Remove _initialize_psymtab prototype.
4186 * python/python.c: Remove _initialize_python prototype.
4187 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
4188 * record-btrace.c: Remove _initialize_record_btrace prototype.
4189 * record-full.c: Remove _initialize_record_full prototype.
4190 * record.c: Remove _initialize_record prototype.
4191 * regcache.c: Remove _initialize_regcache prototype.
4192 * reggroups.c: Remove _initialize_reggroup prototype.
4193 * remote-notif.c: Remove _initialize_notif prototype.
4194 * remote-sim.c: Remove _initialize_remote_sim prototype.
4195 * remote.c: Remove _initialize_remote prototype.
4196 * reverse.c: Remove _initialize_reverse prototype.
4197 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
4198 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
4199 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
4200 prototype.
4201 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
4202 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
4203 * rust-exp.y: Remove _initialize_rust_exp prototype.
4204 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
4205 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
4206 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
4207 * score-tdep.c: Remove _initialize_score_tdep prototype.
4208 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
4209 prototype.
4210 * ser-go32.c: Remove _initialize_ser_dos prototype.
4211 * ser-mingw.c: Remove _initialize_ser_windows prototype.
4212 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
4213 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
4214 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
4215 * serial.c: Remove _initialize_serial prototype.
4216 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
4217 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
4218 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
4219 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
4220 * skip.c: Remove _initialize_step_skip prototype.
4221 * sol-thread.c: Remove _initialize_sol_thread prototype.
4222 * solib-aix.c: Remove _initialize_solib_aix prototype.
4223 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
4224 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
4225 * solib-frv.c: Remove _initialize_frv_solib prototype.
4226 * solib-spu.c: Remove _initialize_spu_solib prototype.
4227 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
4228 * solib-target.c: Remove _initialize_solib_target prototype.
4229 * solib.c: Remove _initialize_solib prototype.
4230 * source.c: Remove _initialize_source prototype.
4231 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
4232 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
4233 prototype.
4234 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
4235 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
4236 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
4237 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
4238 prototype.
4239 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
4240 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
4241 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
4242 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
4243 prototype.
4244 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
4245 prototype.
4246 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
4247 prototype.
4248 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
4249 prototype.
4250 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
4251 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
4252 prototype.
4253 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
4254 prototype.
4255 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
4256 prototype.
4257 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
4258 prototype.
4259 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
4260 prototype.
4261 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
4262 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
4263 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
4264 * stabsread.c: Remove _initialize_stabsread prototype.
4265 * stack.c: Remove _initialize_stack prototype.
4266 * stap-probe.c: Remove _initialize_stap_probe prototype.
4267 * std-regs.c: Remove _initialize_frame_reg prototype.
4268 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
4269 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
4270 * symfile.c: Remove _initialize_symfile prototype.
4271 * symmisc.c: Remove _initialize_symmisc prototype.
4272 * symtab.c: Remove _initialize_symtab prototype.
4273 * target-dcache.c: Remove _initialize_target_dcache prototype.
4274 * target-descriptions.c: Remove _initialize_target_descriptions
4275 prototype.
4276 * thread.c: Remove _initialize_thread prototype.
4277 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
4278 prototype.
4279 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
4280 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
4281 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
4282 prototype.
4283 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
4284 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
4285 * tracefile.c: Remove _initialize_tracefile prototype.
4286 * tracepoint.c: Remove _initialize_tracepoint prototype.
4287 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
4288 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
4289 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
4290 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
4291 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
4292 * tui/tui-win.c: Remove _initialize_tui_win prototype.
4293 * tui/tui.c: Remove _initialize_tui prototype.
4294 * typeprint.c: Remove _initialize_typeprint prototype.
4295 * user-regs.c: Remove _initialize_user_regs prototype.
4296 * utils.c: Remove _initialize_utils prototype.
4297 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
4298 * valarith.c: Remove _initialize_valarith prototype.
4299 * valops.c: Remove _initialize_valops prototype.
4300 * valprint.c: Remove _initialize_valprint prototype.
4301 * value.c: Remove _initialize_values prototype.
4302 * varobj.c: Remove _initialize_varobj prototype.
4303 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
4304 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
4305 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
4306 * windows-nat.c: Remove _initialize_windows_nat,
4307 _initialize_check_for_gdb_ini, and _initialize_loadable
4308 prototypes.
4309 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
4310 * xcoffread.c: Remove _initialize_xcoffread prototype.
4311 * xml-support.c: Remove _initialize_xml_support prototype.
4312 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
4313 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
4314 prototype.
4315 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
4316 prototype.
4317 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
4318
a611b5cb
KS
43192017-09-08 Keith Seitz <keiths@redhat.com>
4320
4321 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
4322 field.
4323
469412dd
CW
43242017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
4325
4326 * f-valprint.c (f_val_print): Remove check for one byte
4327 sized integers. Remove printing of character type.
4328
a5ad232b
FP
43292017-09-08 Frank Penczek <frank.penczek@intel.com>
4330 Christoph Weinmann <christoph.t.weinmann@intel.com>
4331 Bernhard Heckel <bernhard.heckel@intel.com>
4332
4333 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
4334 to maintain proper indentation when printing pointers/refs.
4335
e5014227
JB
43362017-09-07 Joel Brobecker <brobecker@adacore.com>
4337
4338 GDB 8.0.1 released.
4339
63c99141
JB
43402017-09-07 Joel Brobecker <brobecker@adacore.com>
4341
4342 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
4343
69c1e056
TT
43442017-09-05 Tom Tromey <tom@tromey.com>
4345
4346 * parse.c (funcall_chain): Now a std::vector.
4347 (start_arglist, end_arglist): Simplify.
4348 (free_funcalls): Remove.
4349 (parse_exp_in_context_1): Remove cleanup.
4350
fef704bf
TT
43512017-09-05 Tom Tromey <tom@tromey.com>
4352
4353 * go-exp.y (go_parse): Don't create a cleanup.
4354
5613c585
TT
43552017-09-05 Tom Tromey <tom@tromey.com>
4356
4357 * d-exp.y (PrimaryExpression): Use std::string.
4358 (d_parse): Don't create a cleanup.
4359
eae49211
TT
43602017-09-05 Tom Tromey <tom@tromey.com>
4361
4362 * utils.c (do_clear_parser_state): Remove.
4363 (make_cleanup_clear_parser_state): Remove.
4364 * p-exp.y (pascal_parse): Use scoped_restore.
4365 * m2-exp.y (m2_parse): Use scoped_restore.
4366 * f-exp.y (f_parse): Use scoped_restore.
4367 * d-exp.y (d_parse): Use scoped_restore.
4368 * c-exp.y (c_parse): Use scoped_restore.
4369 * ada-exp.y (ada_parse): Use scoped_restore.
4370 * utils.h (make_cleanup_clear_parser_state): Remove.
4371
73b9be8b
KS
43722017-09-06 Keith Seitz <keiths@redhat.com>
4373
4374 * dwarf2read.c (dw2_linkage_name_attr): New function.
4375 (dw2_linkage_name): New function.
4376 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
4377 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
4378 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
4379
a102602b
KR
43802017-09-06 Kamil Rytarowski <n54@gmx.com>
4381
4382 * config/djgpp/djconfig.sh: Correct shell portability issue.
4383
28ad437d
KR
43842017-09-06 Kamil Rytarowski <n54@gmx.com>
4385
4386 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
4387
351787dd
JB
43882017-09-06 John Baldwin <jhb@FreeBSD.org>
4389
4390 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
4391 * NEWS: Mention new FreeBSD/mips native configuration.
4392 * configure.host: Add aarch64*-*-freebsd*.
4393 * configure.nat: Likewise.
4394 * aarch64-fbsd-nat.c: New file.
4395
c0f84956
JB
43962017-09-06 John Baldwin <jhb@FreeBSD.org>
4397
4398 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
4399 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
4400 * NEWS: Mention new FreeBSD/aarch64 target.
4401 * configure.tgt: Add aarch64*-*-freebsd*.
4402 * aarch64-fbsd-tdep.c: New file.
4403 * aarch64-fbsd-tdep.h: New file.
4404
7610297a
KR
44052017-09-06 Kamil Rytarowski <n54@gmx.com>
4406
4407 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
4408
fbd1b771
JK
44092017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4410
4411 * parse.c (find_minsym_type_and_address): Don't relocate addresses
4412 of TLS symbols.
4413
5ca79eae
PW
44142017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4415
4416 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
4417 call.
4418
bf93d7ba
SM
44192017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4420
4421 * infrun.c (follow_exec): Call add_thread after
4422 target_find_description.
4423
1bb7c059
SM
44242017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4425
4426 * infrun.c (handle_inferior_event_1): When exec'ing, read
4427 stop_pc after follow_exec.
4428
fc809827
SM
44292017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4430
4431 * remote.c (process_g_packet): Update error message.
4432
d2fcdd85
YQ
44332017-09-05 Yao Qi <yao.qi@linaro.org>
4434
4435 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
4436 targets.
4437
e69570ee
PA
44382017-09-05 Pedro Alves <palves@redhat.com>
4439
4440 * eval.c (eval_call, evaluate_funcall): New functions, factored
4441 out from ...
4442 (evaluate_subexp_standard): ... this.
4443
22916b07
YQ
44442017-09-05 Yao Qi <yao.qi@linaro.org>
4445
4446 * amd64-tdep.c (amd64_target_description): Create target
4447 descriptions.
4448 (_initialize_amd64_tdep): Don't call functions
4449 initialize_tdesc_amd64_*. Add self tests.
4450 * arch/amd64.c (amd64_create_target_description): Add parameter
4451 is_linux. Call set_tdesc_osabi if is_linux is true.
4452 * arch/amd64.h (amd64_create_target_description): Update the
4453 declaration.
4454 * arch/i386.c (i386_create_target_description): Add parameter
4455 is_linux. Call set_tdesc_osabi if is_linux is true.
4456 * arch/i386.h (i386_create_target_description): Update
4457 declaration.
4458 * configure.tgt: Add i386.o to gdb_target_obs.
4459 * features/Makefile (XMLTOC): Remove i386/*.xml.
4460 * features/i386/amd64-avx-avx512.c: Remove.
4461 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
4462 * features/i386/amd64-avx-mpx.c: Remove.
4463 * features/i386/amd64-avx.c: Remove.
4464 * features/i386/amd64-mpx.c: Remove.
4465 * features/i386/amd64.c: Remove.
4466 * features/i386/i386-avx-avx512.c: Remove.
4467 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
4468 * features/i386/i386-avx-mpx.c: Remove.
4469 * features/i386/i386-avx.c: Remove.
4470 * features/i386/i386-mmx.c: Remove.
4471 * features/i386/i386-mpx.c: Remove.
4472 * features/i386/i386.c: Remove.
4473 * i386-tdep.c: Don't include features/i386/i386*.c., include
4474 target-descriptions.h and arch/i386.h.
4475 (i386_target_description): Create target descriptions.
4476 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
4477 functions. Do self tests.
4478
0854b7b1
YQ
44792017-09-05 Yao Qi <yao.qi@linaro.org>
4480
4481 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
4482 * features/i386/amd64-avx-avx512-linux.c: Removed.
4483 * features/i386/amd64-avx-linux.c: Removed.
4484 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
4485 * features/i386/amd64-avx-mpx-linux.c: Removed.
4486 * features/i386/amd64-linux.c: Removed.
4487 * features/i386/amd64-mpx-linux.c: Removed.
4488 * features/i386/x32-avx-avx512-linux.c: Removed.
4489 * features/i386/x32-avx-linux.c: Removed.
4490 * features/i386/x32-linux.c: Removed.
4491
b4570e4b
YQ
44922017-09-05 Yao Qi <yao.qi@linaro.org>
4493
4494 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
4495 features/i386/*.c.
4496 (amd64_linux_read_description): Call
4497 amd64_create_target_description.
4498 * arch/amd64.c: New file.
4499 * arch/amd64.h: New file.
4500 * configure.tgt (x86_64-*-linux*): Append amd64.o.
4501 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
4502
6c73f67f
YQ
45032017-09-05 Yao Qi <yao.qi@linaro.org>
4504
4505 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
4506 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
4507 (amd64_linux_read_description): Create target descriptions.
4508 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
4509 functions. Add unit tests.
4510 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
4511 x32-core.xml.
4512 * features/i386/64bit-avx.c: Generated.
4513 * features/i386/64bit-avx512.c: Generated.
4514 * features/i386/64bit-core.c: Generated.
4515 * features/i386/64bit-linux.c: Generated.
4516 * features/i386/64bit-mpx.c: Generated.
4517 * features/i386/64bit-pkeys.c: Generated.
4518 * features/i386/64bit-segments.c: Generated.
4519 * features/i386/64bit-sse.c: Generated.
4520 * features/i386/x32-core.c: Generated.
4521 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
4522 c files for amd64-linux and x32-linux.
4523
9d3d478b
YQ
45242017-09-05 Yao Qi <yao.qi@linaro.org>
4525
4526 * amd64-linux-tdep.c (amd64_linux_read_description): New
4527 function.
4528 (amd64_linux_core_read_description): Call
4529 amd64_linux_read_description.
4530 (amd64_linux_init_abi): Likewise.
4531 (amd64_x32_linux_init_abi): Likewise.
4532 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
4533 * x86-linux-nat.c (x86_linux_read_description): Call
4534 amd64_linux_read_description.
4535
b9f1d50f
YQ
45362017-09-05 Yao Qi <yao.qi@linaro.org>
4537
4538 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
4539 comments.
4540
188c9e6d
YQ
45412017-09-05 Yao Qi <yao.qi@linaro.org>
4542
4543 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
4544 * features/i386/i386-avx-avx512-linux.c: Remove.
4545 * features/i386/i386-avx-linux.c: Remove.
4546 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
4547 * features/i386/i386-avx-mpx-linux.c: Remove.
4548 * features/i386/i386-linux.c: Remove.
4549 * features/i386/i386-mmx-linux.c: Remove.
4550 * features/i386/i386-mpx-linux.c: Remove.
4551
5f035c07
YQ
45522017-09-05 Yao Qi <yao.qi@linaro.org>
4553
4554 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
4555 (SFILES): Add arch/i386.c.
4556 (HFILES_NO_SRCDIR): Add arch/i386.h.
4557 * arch/i386.c: New file.
4558 * arch/i386.h: New file.
4559 * arch/tdesc.h (allocate_target_description): Declare.
4560 (set_tdesc_architecture): Declare.
4561 (set_tdesc_osabi): Declare.
4562 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
4563 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
4564 include arch/i386.h.
4565 (i386_linux_read_description): Remove code and call
4566 i386_create_target_description.
4567 (set_tdesc_architecture): New function.
4568 (set_tdesc_osabi): New function.
4569 * target-descriptions.h (allocate_target_description): Remove.
4570
0abe8a89
YQ
45712017-09-05 Yao Qi <yao.qi@linaro.org>
4572
4573 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
4574 * target-descriptions.c (tdesc_create_feature): Likewise, and
4575 adjust code.
4576 * features/i386/32bit-avx.c: Re-generated.
4577 * features/i386/32bit-avx512.c: Re-generated.
4578 * features/i386/32bit-core.c: Re-generated.
4579 * features/i386/32bit-linux.c: Re-generated.
4580 * features/i386/32bit-mpx.c: Re-generated.
4581 * features/i386/32bit-pkeys.c: Re-generated.
4582 * features/i386/32bit-sse.c: Re-generated.
4583
0a188386
YQ
45842017-09-05 Yao Qi <yao.qi@linaro.org>
4585
4586 * regformats/regdef.h (struct reg): Override operator == and !=.
4587
f49ff000
YQ
45882017-09-05 Yao Qi <yao.qi@linaro.org>
4589
4590 * arch/tdesc.h: New file.
4591 * regformats/regdat.sh: Generate code using tdesc_create_reg.
4592 * target-descriptions.c: Update comments.
4593 * target-descriptions.h: Include "arch/tdesc.h". Remove the
4594 declarations.
4595 * features/i386/32bit-avx.c: Re-generated.
4596 * features/i386/32bit-avx512.c: Re-generated.
4597 * features/i386/32bit-core.c: Re-generated.
4598 * features/i386/32bit-linux.c: Re-generated.
4599 * features/i386/32bit-mpx.c: Re-generated.
4600 * features/i386/32bit-pkeys.c: Re-generated.
4601 * features/i386/32bit-sse.c: Re-generated.
4602
f7000548
YQ
46032017-09-05 Yao Qi <yao.qi@linaro.org>
4604
4605 * regformats/regdat.sh: Update generated code.
4606
c9a5e2a5
YQ
46072017-09-05 Yao Qi <yao.qi@linaro.org>
4608
4609 * regformats/regdat.sh: Adjust code order.
4610
d6b687ac
SM
46112017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4612
4613 * expprint.c (dump_subexp_body_standard): Use constant format
4614 string in fprintf_filtered call.
4615
a379bfd0
JB
46162017-09-04 John Baldwin <jhb@FreeBSD.org>
4617
4618 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
4619 NetBSD/i386.
4620 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
4621
f7efc967
JB
46222017-09-04 John Baldwin <jhb@FreeBSD.org>
4623
4624 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
4625
c49fbc6c
JB
46262017-09-04 John Baldwin <jhb@FreeBSD.org>
4627
4628 * bsd-kvm.o: Define _KMEMUSER.
4629 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
4630 * configure: Regenerate.
4631
26562e73
JB
46322017-09-04 John Baldwin <jhb@FreeBSD.org>
4633
4634 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
4635 * i386-fbsd-nat.c: Likewise.
4636
31cf1487
JB
46372017-09-04 John Baldwin <jhb@FreeBSD.org>
4638
4639 * unittests/array-view-selftests.c: Add include of <array>.
4640
5b9f8a7c
JB
46412017-09-04 John Baldwin <jhb@FreeBSD.org>
4642
4643 * spu-tdep.c (flush_ea_cache): Add missing argument to
4644 call_function_by_hand.
4645
d69cf9b2
PA
46462017-09-04 Pedro Alves <palves@redhat.com>
4647
4648 * NEWS (Safer support for debugging with no debug info): New.
4649
3693fdb3
PA
46502017-09-04 Pedro Alves <palves@redhat.com>
4651
4652 * c-exp.y (function_method, function_method_void): Add current
4653 instance flags to TYPE_INSTANCE.
4654 * dwarf2read.c (check_modifier): New.
4655 (compute_delayed_physnames): Assert that only C++ adds delayed
4656 physnames. Mark fn_fields as const/volatile depending on
4657 physname.
4658 * eval.c (make_params): New type_instance_flags parameter. Use
4659 it as the new type's instance flags.
4660 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
4661 flags element and pass it to make_params.
4662 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
4663 instance flags element.
4664 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
4665 * gdbtypes.h: Include "enum-flags.h".
4666 (type_instance_flags): New enum-flags type.
4667 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
4668 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
4669 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
4670 (follow_type_instance_flags): New function.
4671 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
4672 * parser-defs.h (follow_type_instance_flags): Declare.
4673 * valops.c (value_struct_elt_for_reference): const/volatile must
4674 match too.
4675
e68cb8e0
PA
46762017-09-04 Pedro Alves <palves@redhat.com>
4677
4678 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
4679 function/method scopes; lookup the nested name as a function local
4680 static variable.
4681
858be34c
PA
46822017-09-04 Pedro Alves <palves@redhat.com>
4683
4684 (%type <voidval>): Add function_method.
4685 * c-exp.y (exp): New production for calls with no arguments.
4686 (function_method, function_method_void_or_typelist): New
4687 productions.
4688 (exp): New production for "method()::static_var".
4689 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
4690 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4691 Handle OP_FUNC_STATIC_VAR.
4692 * parse.c (operator_length_standard):
4693 Handle OP_FUNC_STATIC_VAR.
4694
dd5901a6
PA
46952017-09-04 Pedro Alves <palves@redhat.com>
4696
4697 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
4698 handling.
4699 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4700 Ditto.
4701 * parse.c (operator_length_standard, operator_check_standard):
4702 Ditto.
4703 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
4704
46a4882b
PA
47052017-09-04 Pedro Alves <palves@redhat.com>
4706
4707 * ax-gdb.c: Include "typeprint.h".
4708 (gen_expr_for_cast): New function.
4709 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
4710 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
4711 type is unknown.
4712 * dwarf2read.c (new_symbol_full): Fallback to int instead of
4713 nodebug_data_symbol.
4714 * eval.c: Include "typeprint.h".
4715 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
4716 Error out if symbol has unknown type.
4717 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
4718 evaluate_subexp_for_cast.
4719 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
4720 OP_VAR_MSYM_VALUE.
4721 (evaluate_subexp_for_cast): New function.
4722 * gdbtypes.c (init_nodebug_var_type): New function.
4723 (objfile_type): Use it to initialize types of variables with no
4724 debug info.
4725 * typeprint.c (error_unknown_type): New.
4726 * typeprint.h (error_unknown_type): New declaration.
4727 * compile/compile-c-types.c (convert_type_basic): Handle
4728 TYPE_CODE_ERROR; warn and fallback to int for variables with
4729 unknown type.
4730
fe13dfec
PA
47312017-09-04 Pedro Alves <palves@redhat.com>
4732
4733 * eval.c (evaluate_var_value): New function, factored out from ...
4734 (evaluate_subexp_standard): ... here.
4735
d008ee21
PA
47362017-09-04 Pedro Alves <palves@redhat.com>
4737
4738 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
4739 Remove useless assignments to 'op'.
4740
827d0c51
PA
47412017-09-04 Pedro Alves <palves@redhat.com>
4742
4743 * eval.c (eval_skip_value): New function.
4744 (evaluate_subexp_standard): Use it.
4745
2c5a2be1
PA
47462017-09-04 Pedro Alves <palves@redhat.com>
4747
4748 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
4749 function name from symbol/minsym and pass it to
4750 error_call_unknown_return_type.
4751
74ea4be4
PA
47522017-09-04 Pedro Alves <palves@redhat.com>
4753
4754 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
4755 * ax-gdb.c (gen_msym_var_ref): New function.
4756 (gen_expr): Handle OP_VAR_MSYM_VALUE.
4757 * eval.c (evaluate_var_msym_value): New function.
4758 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
4759 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
4760 to call_function_by_hand.
4761 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4762 Handle OP_VAR_MSYM_VALUE.
4763 (union exp_element) <msymbol>: New field.
4764 * minsyms.h (struct type): Forward declare.
4765 (find_minsym_type_and_address): Declare.
4766 * parse.c (write_exp_elt_msym): New function.
4767 (write_exp_msymbol): Delete, refactored as ...
4768 (find_minsym_type_and_address): ... this new function.
4769 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
4770 (operator_length_standard, operator_check_standard): Handle
4771 OP_VAR_MSYM_VALUE.
4772 * std-operator.def (OP_VAR_MSYM_VALUE): New.
4773
7022349d
PA
47742017-09-04 Pedro Alves <palves@redhat.com>
4775
4776 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
4777 TYPE_GNU_IFUNC specially here. Throw error if return type is
4778 unknown.
4779 * ada-typeprint.c (print_func_type): Handle functions with unknown
4780 return type.
4781 * c-typeprint.c (c_type_print_base): Handle functions and methods
4782 with unknown return type.
4783 * compile/compile-c-symbols.c (convert_symbol_bmsym)
4784 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
4785 * compile/compile-c-types.c: Include "objfiles.h".
4786 (convert_func): For functions with unknown return type, warn and
4787 default to int.
4788 * compile/compile-object-run.c (compile_object_run): Adjust call
4789 to call_function_by_hand_dummy.
4790 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
4791 call_function_by_hand.
4792 * eval.c (evaluate_subexp_standard): Adjust calls to
4793 call_function_by_hand. Handle functions and methods with unknown
4794 return type. Pass expect_type to call_function_by_hand.
4795 * f-typeprint.c (f_type_print_base): Handle functions with unknown
4796 return type.
4797 * gcore.c (call_target_sbrk): Adjust call to
4798 call_function_by_hand.
4799 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
4800 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
4801 an integer address type instead of nodebug.
4802 * guile/scm-value.c (gdbscm_value_call): Adjust call to
4803 call_function_by_hand.
4804 * infcall.c (error_call_unknown_return_type): New function.
4805 (call_function_by_hand): New "default_return_type" parameter.
4806 Pass it down.
4807 (call_function_by_hand_dummy): New "default_return_type"
4808 parameter. Use it instead of defaulting to int. If there's no
4809 default and the return type is unknown, throw an error. If
4810 there's a default return type, and the called function has no
4811 debug info, then assume the function is prototyped.
4812 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
4813 New "default_return_type" parameter.
4814 (error_call_unknown_return_type): New declaration.
4815 * linux-fork.c (call_lseek): Cast return type of lseek.
4816 (inferior_call_waitpid, checkpoint_command): Adjust calls to
4817 call_function_by_hand.
4818 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
4819 calls to call_function_by_hand.
4820 * m2-typeprint.c (m2_procedure): Handle functions with unknown
4821 return type.
4822 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4823 (value_nsstring, print_object_command): Adjust calls to
4824 call_function_by_hand.
4825 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
4826 functions with unknown return type.
4827 (pascal_type_print_func_varspec_suffix): New function.
4828 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
4829 TYPE_CODE_METHOD>: Use it.
4830 * python/py-value.c (valpy_call): Adjust call to
4831 call_function_by_hand.
4832 * rust-lang.c (rust_evaluate_funcall): Adjust call to
4833 call_function_by_hand.
4834 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
4835 call_function_by_hand.
4836 * valops.c (value_allocate_space_in_inferior): Adjust call to
4837 call_function_by_hand.
4838 * typeprint.c (type_print_unknown_return_type): New function.
4839 * typeprint.h (type_print_unknown_return_type): New declaration.
4840
54990598
PA
48412017-09-04 Pedro Alves <palves@redhat.com>
4842
4843 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
4844 types with more than one parameter as prototyped.
4845
9a24775b
PA
48462017-09-04 Pedro Alves <palves@redhat.com>
4847
4848 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
4849 (disassemble_command): Use gdb_disassembly_flags instead of bare
4850 int.
4851 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
4852 (dump_insns, do_mixed_source_and_assembly_deprecated)
4853 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
4854 Use gdb_disassembly_flags instead of bare int.
4855 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
4856 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
4857 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
4858 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
4859 (enum gdb_disassembly_flag): ... values of this new enumeration.
4860 (gdb_disassembly_flags): Define.
4861 (gdb_disassembly)
4862 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
4863 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
4864 gdb_disassembly_flags instead of bare int.
4865 * record-btrace.c (btrace_insn_history)
4866 (record_btrace_insn_history, record_btrace_insn_history_range)
4867 (record_btrace_insn_history_from): Use gdb_disassembly_flags
4868 instead of bare int.
4869 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
4870 Use gdb_disassembly_flags instead of bare int.
4871 * target-debug.h (target_debug_print_gdb_disassembly_flags):
4872 Define.
4873 * target-delegates.c: Regenerate.
4874 * target.c (target_insn_history, target_insn_history_from)
4875 (target_insn_history_range): Use gdb_disassembly_flags instead of
4876 bare int.
4877 * target.h: Include "disasm.h".
4878 (struct target_ops) <to_insn_history, to_insn_history_from,
4879 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
4880 int.
4881 (target_insn_history, target_insn_history_from)
4882 (target_insn_history_range): Use gdb_disassembly_flags instead of
4883 bare int.
4884
80a65e9b
SM
48852017-09-04 Simon Marchi <simon.marchi@ericsson.com>
4886
4887 * cli/cli-script.c (build_command_line): For if/while commands,
4888 check whether args is empty.
4889
6b66338c
SM
48902017-09-04 Simon Marchi <simon.marchi@ericsson.com>
4891
4892 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
4893 (enum command_control_type): Likewise.
4894 (struct command_line): Likewise.
4895 (free_command_lines): Likewise.
4896 (struct command_lines_deleter): Likewise.
4897 (command_line_up): Likewise.
4898 (read_command_lines): Likewise.
4899 (read_command_lines_1): Likewise.
4900 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
4901 (enum command_control_type): Likewise.
4902 (struct command_line): Likewise.
4903 (free_command_lines): Likewise.
4904 (struct command_lines_deleter): Likewise.
4905 (command_line_up): Likewise.
4906 (read_command_lines): Likewise.
4907 (read_command_lines_1): Likewise.
4908 * breakpoint.h: Include cli/cli-script.h.
4909 * extension-priv.h: Likewise.
4910 * gdbcmd.h: Likewise.
4911
51abb421
PA
49122017-09-04 Pedro Alves <palves@redhat.com>
4913
4914 * ada-lang.c (is_known_support_routine): Move sal declaration to
4915 where it is initialized.
4916 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
4917 (parse_breakpoint_sals, decode_static_tracepoint_spec)
4918 (clear_command, update_static_tracepoint): Remove init_sal
4919 references. Move declarations closer to initializations.
4920 * cli/cli-cmds.c (list_command): Move sal declarations closer to
4921 initializations.
4922 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
4923 references. Move sal declarations closer to initializations.
4924 * frame.c (find_frame_sal): Return a symtab_and_line via function
4925 return instead of output parameter. Remove init_sal references.
4926 * frame.h (find_frame_sal): Return a symtab_and_line via function
4927 return instead of output parameter.
4928 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
4929 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
4930 instead of memset.
4931 (gdbscm_find_pc_line): Remove init_sal reference.
4932 * infcall.c (call_function_by_hand_dummy): Remove init_sal
4933 references. Move declarations closer to initializations.
4934 * infcmd.c (set_step_frame): Update. Move declarations closer to
4935 initializations.
4936 (finish_backward): Remove init_sal references. Move declarations
4937 closer to initializations.
4938 * infrun.c (process_event_stop_test, handle_step_into_function)
4939 (insert_hp_step_resume_breakpoint_at_frame)
4940 (insert_step_resume_breakpoint_at_caller): Likewise.
4941 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
4942 (symbol_to_sal): Likewise.
4943 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
4944 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
4945 to its initialization.
4946 * reverse.c (save_bookmark_command): Use new/delete. Remove
4947 init_sal references. Move declarations closer to initializations.
4948 * source.c (get_current_source_symtab_and_line): Remove brace
4949 initialization.
4950 (set_current_source_symtab_and_line): Now takes the sal by const
4951 reference. Remove brace initialization.
4952 (line_info): Remove init_sal reference.
4953 * source.h (set_current_source_symtab_and_line): Now takes a
4954 symtab_and_line via const reference.
4955 * stack.c (set_current_sal_from_frame): Adjust.
4956 (print_frame_info): Adjust.
4957 (get_last_displayed_sal): Return the sal via function return
4958 instead of via output parameter. Simplify.
4959 (frame_info): Adjust.
4960 * stack.h (get_last_displayed_sal): Return the sal via function
4961 return instead of via output parameter.
4962 * symtab.c (init_sal): Delete.
4963 (find_pc_sect_line): Remove init_sal references. Move
4964 declarations closer to initializations.
4965 (find_function_start_sal): Remove init_sal references. Move
4966 declarations closer to initializations.
4967 * symtab.h (struct symtab_and_line): In-class initialize all
4968 fields.
4969 * tracepoint.c (set_traceframe_context)
4970 (print_one_static_tracepoint_marker): Remove init_sal references.
4971 Move declarations closer to initializations.
4972 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
4973 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
4974 declarations closer to initializations.
4975 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
4976 init_sal references. Adjust.
4977
6c5b2ebe
PA
49782017-09-04 Pedro Alves <palves@redhat.com>
4979
4980 * ax-gdb.c (agent_command_1): Use range-for.
4981 * break-catch-throw.c (re_set_exception_catchpoint): Update.
4982 * breakpoint.c: Include "common/array-view.h".
4983 (init_breakpoint_sal, create_breakpoint_sal): Change sals
4984 parameter from struct symtabs_and_lines to
4985 array_view<symtab_and_line>. Adjust. Use range-for. Update.
4986 (breakpoint_sals_to_pc): Change sals parameter from struct
4987 symtabs_and_lines to std::vector reference.
4988 (check_fast_tracepoint_sals): Change sals parameter from struct
4989 symtabs_and_lines to std::array_view. Use range-for.
4990 (decode_static_tracepoint_spec): Return a std::vector instead of
4991 symtabs_and_lines. Update.
4992 (create_breakpoint): Update.
4993 (break_range_command, until_break_command, clear_command): Update.
4994 (base_breakpoint_decode_location, bkpt_decode_location)
4995 (bkpt_probe_create_sals_from_location)
4996 (bkpt_probe_decode_location, tracepoint_decode_location)
4997 (tracepoint_probe_decode_location)
4998 (strace_marker_create_sals_from_location): Return a std::vector
4999 instead of symtabs_and_lines.
5000 (strace_marker_create_breakpoints_sal): Update.
5001 (strace_marker_decode_location): Return a std::vector instead of
5002 symtabs_and_lines. Update.
5003 (update_breakpoint_locations): Change struct symtabs_and_lines
5004 parameters to gdb::array_view. Adjust.
5005 (location_to_sals): Return a std::vector instead of
5006 symtabs_and_lines. Update.
5007 (breakpoint_re_set_default): Use std::vector instead of struct
5008 symtabs_and_lines.
5009 (decode_location_default): Return a std::vector instead of
5010 symtabs_and_lines. Update.
5011 * breakpoint.h: Include "common/array-view.h".
5012 (struct breakpoint_ops) <decode_location>: Now returns a
5013 std::vector instead of returning a symtabs_and_lines via output
5014 parameter.
5015 (update_breakpoint_locations): Change sals parameters to use
5016 gdb::array_view.
5017 * cli/cli-cmds.c (edit_command, list_command): Update to use
5018 std::vector and gdb::array_view.
5019 (ambiguous_line_spec): Adjust to use gdb::array_view and
5020 range-for.
5021 (compare_symtabs): Rename to ...
5022 (cmp_symtabs): ... this. Change parameters to symtab_and_line
5023 const reference and adjust.
5024 (filter_sals): Rewrite using std::vector and standard algorithms.
5025 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
5026 (jump_command): Update to use std::vector.
5027 * linespec.c (struct linespec_state) <canonical_names>: Update
5028 comment.
5029 (add_sal_to_sals_basic): Delete.
5030 (add_sal_to_sals, filter_results, convert_results_to_lsals)
5031 (decode_line_2, create_sals_line_offset)
5032 (convert_address_location_to_sals, convert_linespec_to_sals)
5033 (convert_explicit_location_to_sals, parse_linespec)
5034 (event_location_to_sals, decode_line_full, decode_line_1)
5035 (decode_line_with_current_source)
5036 (decode_line_with_last_displayed, decode_objc)
5037 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
5038 (linespec_result::~linespec_result): Adjust to use std::vector
5039 instead of symtabs_and_lines.
5040 * linespec.h (linespec_sals::sals): Now a std::vector.
5041 (struct linespec_result): Use std::vector, bool, and in-class
5042 initialization.
5043 (decode_line_1, decode_line_with_current_source)
5044 (decode_line_with_last_displayed): Return std::vector.
5045 * macrocmd.c (info_macros_command): Use std::vector.
5046 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
5047 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
5048 std::vector.
5049 * probe.h (parse_probes): Return a std::vector.
5050 * python/python.c (gdbpy_decode_line): Use std::vector and
5051 gdb::array_view.
5052 * source.c (select_source_symtab, line_info): Use std::vector.
5053 * stack.c (func_command): Use std::vector.
5054 * symtab.h (struct symtabs_and_lines): Delete.
5055 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
5056
7c44b49c
PA
50572017-09-04 Pedro Alves <palves@redhat.com>
5058
5059 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5060 unittests/array-view-selftests.c.
5061 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
5062 * common/array-view.h: New file.
5063 * unittests/array-view-selftests.c: New file.
5064
e439fa14
PA
50652017-09-04 Pedro Alves <palves@redhat.com>
5066
5067 * cli/cli-cmds.c (edit_command): Pass message to
5068 ambiguous_line_spec.
5069 (list_command): Pass message to ambiguous_line_spec. Say
5070 "first"/"last" instead of "start" and "end" to be consistent with
5071 the manual.
5072 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
5073 them to print formatted message.
5074
7525b645
PA
50752017-09-04 Pedro Alves <palves@redhat.com>
5076
5077 * btrace.c (ftrace_add_pt): Pass btrace_insn to
5078 ftrace_update_insns by reference instead of pointer.
5079
badc0020
YQ
50802017-09-04 Yao Qi <yao.qi@linaro.org>
5081
5082 * i386-go32-tdep.c: Include x86-xstate.h.
5083 (i386_go32_init_abi): Call i386_target_description.
5084 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
5085 if xcr0 is X86_XSTATE_X87_MASK.
5086 * i386-tdep.h (tdesc_i386): Remove the declaration.
5087 (tdesc_i386_mmx): Likewise.
5088
d78bdb54
YQ
50892017-09-04 Yao Qi <yao.qi@linaro.org>
5090
5091 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
5092 X86_XSTATE_SSE_MASK instead of 0.
5093
ca1fa5ee
YQ
50942017-09-04 Yao Qi <yao.qi@linaro.org>
5095
5096 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
5097 i386_target_description.
5098 * i386-fbsd-nat.c (i386fbsd_read_description): Call
5099 i386_target_description.
5100 * i386-tdep.c (i386_gdbarch_init): Likewise.
5101
2434b019
YQ
51022017-09-04 Yao Qi <yao.qi@linaro.org>
5103
5104 * amd64-darwin-tdep.c: Include "x86-xstate.h".
5105 (x86_darwin_init_abi_64): Call amd64_target_description.
5106 * amd64-dicos-tdep.c: Likewise.
5107 * amd64-fbsd-nat.c: Likewise.
5108 * amd64-fbsd-tdep.c: Likewise.
5109 * amd64-nbsd-tdep.c: Likewise.
5110 * amd64-obsd-tdep.c: Likewise.
5111 * amd64-sol2-tdep.c: Likewise.
5112 * amd64-windows-tdep.c: Likewise.
5113 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
5114
0860c437
SM
51152017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5116
5117 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
5118 (btrace_function) <insn>: Change type to use std::vector.
5119 * btrace.c (ftrace_debug, ftrace_call_num_insn,
5120 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
5121 ftrace_update_insns, ftrace_compute_global_level_offset,
5122 btrace_stitch_bts, btrace_clear, btrace_insn_get,
5123 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
5124 change to std::vector.
5125 (ftrace_update_insns): Adjust to change to std::vector, change
5126 type of INSN parameter.
5127 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
5128 * record-btrace.c (btrace_call_history_insn_range,
5129 btrace_compute_src_line_range,
5130 record_btrace_frame_prev_register): Adjust to change to
5131 std::vector.
5132 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
5133 to change to std::vector.
5134
0638b7f9
TT
51352017-09-03 Tom Tromey <tom@tromey.com>
5136
5137 * corefile.c (reopen_exec_file): Use std::string.
5138
8f84fb0e
TT
51392017-09-03 Tom Tromey <tom@tromey.com>
5140
5141 * compile/compile.c (compile_register_name_mangled): Return
5142 std::string.
5143 * compile/compile-loc2c.c (pushf_register_address): Update.
5144 (pushf_register): Update.
5145 * compile/compile-c-types.c (convert_array): Update.
5146 * compile/compile-c-symbols.c (generate_vla_size): Update.
5147 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
5148 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
5149 (convert_one_symbol): Update.
5150 (generate_c_for_for_one_variable): Update.
5151 * compile/compile-c-support.c (c_get_range_decl_name): Return a
5152 std::string.
5153 (generate_register_struct): Update.
5154 * compile/compile-internal.h (c_get_range_decl_name): Return a
5155 std::string.
5156 (compile_register_name_mangled): Return std::string.
5157
18e9961f
TT
51582017-09-03 Tom Tromey <tom@tromey.com>
5159
5160 * utils.c (perror_string): Return a std::string.
5161 (throw_perror_with_name, perror_warning_with_name): Update.
5162
45343786
TT
51632017-09-03 Tom Tromey <tom@tromey.com>
5164
5165 * demangle.c (demangle_command): Use std::string,
5166 unique_xmalloc_ptr.
5167
b57af503
TT
51682017-09-03 Tom Tromey <tom@tromey.com>
5169
5170 * cli/cli-setshow.c (do_set_command): Use std::string.
5171
6eecf35f
TT
51722017-09-03 Tom Tromey <tom@tromey.com>
5173
5174 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
5175
56496dd4
TT
51762017-09-03 Tom Tromey <tom@tromey.com>
5177
5178 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
5179
e91a1fa7
TT
51802017-09-03 Tom Tromey <tom@tromey.com>
5181
5182 * mi/mi-cmd-env.c (env_execute_cli_command): Use
5183 gdb::unique_xmalloc_ptr.
5184
7ffd83d7
TT
51852017-09-03 Tom Tromey <tom@tromey.com>
5186
5187 * thread.c (print_thread_info_1): Use string_printf.
5188 (thread_apply_command, thread_apply_all_command): Use
5189 std::string.
5190
1ccbe998
TT
51912017-09-03 Tom Tromey <tom@tromey.com>
5192
5193 * valprint.c (val_print_string): Update.
5194 * gdbcore.h (memory_error_message): Return std::string.
5195 * corefile.c (memory_error_message): Return std::string.
5196 (memory_error): Update.
5197 * breakpoint.c (insert_bp_location): Update.
5198
23fdd69e
SM
51992017-09-03 Simon Marchi <simon.marchi@ericsson.com>
5200
5201 * target/waitstatus.h (target_waitstatus_to_string): Change
5202 return type to std::string.
5203 * target/waitstatus.c (target_waitstatus_to_string): Return
5204 std::string.
5205 * target.h (target_waitstatus_to_string): Remove declaration.
5206 * infrun.c (resume, clear_proceed_status_thread,
5207 print_target_wait_results, do_target_wait, save_waitstatus,
5208 stop_all_threads): Adjust.
5209 * record-btrace.c (record_btrace_wait): Adjust.
5210 * target-debug.h
5211 (target_debug_print_struct_target_waitstatus_p): Adjust.
5212
5c811d30
JK
52132017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5214
5215 PR gdb/22046
5216 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
5217 detection.
5218
0a2dde4a
SDJ
52192017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
5220
5221 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
5222 for setting/unsetting environment variables on the remote target.
5223 (New remote packets): Add entries for QEnvironmentHexEncoded,
5224 QEnvironmentUnset and QEnvironmentReset.
5225 * common/environ.c (gdb_environ::operator=): Extend method to
5226 handle m_user_set_env_list and m_user_unset_env_list.
5227 (gdb_environ::clear): Likewise.
5228 (match_var_in_string): Change type of first parameter from 'char
5229 *' to 'const char *'.
5230 (gdb_environ::set): Extend method to handle
5231 m_user_set_env_list and m_user_unset_env_list.
5232 (gdb_environ::unset): Likewise.
5233 (gdb_environ::clear_user_set_env): New method.
5234 (gdb_environ::user_set_envp): Likewise.
5235 (gdb_environ::user_unset_envp): Likewise.
5236 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
5237 m_user_unset_env_list on move constructor/assignment.
5238 (unset): Add new default parameter 'update_unset_list = true'.
5239 (clear_user_set_env): New method.
5240 (user_set_envp): Likewise.
5241 (user_unset_envp): Likewise.
5242 (m_user_set_env_list): New std::set.
5243 (m_user_unset_env_list): Likewise.
5244 * common/rsp-low.c (hex2str): New function.
5245 (bin2hex): New overload for bin2hex function.
5246 * common/rsp-low.c (hex2str): New prototype.
5247 (str2hex): New overload prototype.
5248 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
5249 QEnvironmentUnset and QEnvironmentReset.
5250 (remote_protocol_features): Add QEnvironmentHexEncoded,
5251 QEnvironmentUnset and QEnvironmentReset packets.
5252 (send_environment_packet): New function.
5253 (extended_remote_environment_support): Likewise.
5254 (extended_remote_create_inferior): Call
5255 extended_remote_environment_support.
5256 (_initialize_remote): Add QEnvironmentHexEncoded,
5257 QEnvironmentUnset and QEnvironmentReset packet configs.
5258 * unittests/environ-selftests.c (gdb_selftest_env_var):
5259 New variable.
5260 (test_vector_initialization): New function.
5261 (test_init_from_host_environ): Likewise.
5262 (test_reinit_from_host_environ): Likewise.
5263 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
5264 Likewise.
5265 (test_unset_set_empty_vector): Likewise.
5266 (test_vector_clear): Likewise.
5267 (test_std_move): Likewise.
5268 (test_move_constructor):
5269 (test_self_move): Likewise.
5270 (test_set_unset_reset): Likewise.
5271 (run_tests): Rewrite in terms of the functions above.
5272
654670a4
WP
52732017-08-31 Weimin Pan <weimin.pan@oracle.com>
5274
5275 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
5276 (adi_available): Use a temp variable of type CORE_ADDR as argument
5277 3 when calling target_auxv_search.
5278 (adi_normalize_address): Use masks and xor operators to calculate
5279 normalized address.
5280 (adi_read_versions, adi_write_versions, adi_print_versions)
5281 (do_examine, do_assign): Use paddress.
5282
7755ddb7
JB
52832017-08-29 John Baldwin <jhb@FreeBSD.org>
5284
5285 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
5286 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
5287 out of loop and add supply of FIR.
5288 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
5289 add collect of FIR.
5290
fd437cbc
SM
52912017-08-28 Simon Marchi <simon.marchi@ericsson.com>
5292
3804a343 5293 PR gdb/21827
fd437cbc
SM
5294 * cli/cli-script.c (define_command): Don't convert command name
5295 to lower case.
5296
988f6b3d
JB
52972017-08-25 Joel Brobecker <brobecker@adacore.com>
5298
5299 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
5300 Update all callers accordingly. Remove all code blocks handling
5301 the case where DISPP is not NULL.
5302
663c44ac
JK
53032017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5304
5305 PR symtab/22003
5306 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
5307 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
5308 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
5309
f1902523
JK
53102017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5311
5312 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
5313 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
5314 (read_comp_units_from_section): New parameter abbrev_section, use
5315 read_and_check_comp_unit_head, allocate signatured_type if needed.
5316 (create_all_comp_units): Update read_comp_units_from_section caller.
5317
87215ad1
SDJ
53182017-08-23 Pedro Alves <palves@redhat.com>
5319
5320 PR remote/21852
5321 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
5322 to null_ptid and switch to thread without reading the registers
5323 after adding the inferior.
5324
6e41ddec
JK
53252017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5326
5327 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
5328 compile-gcc.
5329 * compile/compile.c (compile_gcc, show_compile_gcc): New.
5330 (compile_to_object): Implement compile_gcc.
5331 (_initialize_compile): Install "set compile-gcc". Initialize
5332 compile_gcc.
5333
e68c32d5
JK
53342017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5335
5336 * compile/compile.c (compile_to_object): Conditionally call
5337 set_verbose. Conditionally call compile or compile_v0.
5338
58afddc6
WP
53392017-08-07 Weimin Pan <weimin.pan@oracle.com>
5340
5341 * sparc64-tdep.h: (adi_normalize_address): New export.
5342 * sparc-nat.h: (open_adi_tag_fd): New export.
5343 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
5344 * sparc64-linux-tdep.c:
5345 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
5346 (sparc64_linux_handle_segmentation_fault): New function.
5347 (sparc64_linux_init_abi): Register
5348 sparc64_linux_handle_segmentation_fault
5349 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
5350 (sparc64_addr_bits_remove): New function.
5351 (sparc64_init_abi): Register sparc64_addr_bits_remove.
5352 (MAX_PROC_NAME_SIZE): New macro.
5353 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
5354 (sparc64adilist): New variable.
5355 (adi_proc_list): New variable.
5356 (find_adi_info): New function.
5357 (add_adi_info): New function.
5358 (get_adi_info_proc): New function.
5359 (get_adi_info): New function.
5360 (info_adi_command): New function.
5361 (read_maps_entry): New function.
5362 (adi_available): New function.
5363 (adi_normalize_address): New function.
5364 (adi_align_address): New function.
5365 (adi_convert_byte_count): New function.
5366 (adi_tag_fd): New function.
5367 (adi_is_addr_mapped): New function.
5368 (adi_read_versions): New function.
5369 (adi_write_versions): New function.
5370 (adi_print_versions): New function.
5371 (do_examine): New function.
5372 (do_assign): New function.
5373 (adi_examine_command): New function.
5374 (adi_assign_command): New function.
5375 (_initialize_sparc64_adi_tdep): New function.
5376
11db9430
SM
53772017-08-22 Simon Marchi <simon.marchi@ericsson.com>
5378
5379 * breakpoint.c (breakpoints_info): Rename to ...
5380 (info_breakpoints_command): ... this.
5381 (watchpoints_info): Rename to ...
5382 (info_watchpoints_command): ... this.
5383 (tracepoints_info): Rename to ...
5384 (info_tracepoints_command): ... this.
5385 (_initialize_breakpoint): Adjust.
5386 * dcache.c (dcache_info): Rename to ...
5387 (info_display_command): ... this.
5388 (_initialize_dcache): Adjust.
5389 * frame.h (args_info): Rename to ...
5390 (info_args_command): ... this.
5391 (locals_info): Rename to ...
5392 (info_locals_command): ... this.
5393 * infcmd.c (nofp_registers_info): Rename to ...
5394 (info_registers_command): ... this.
5395 (float_info): Rename to ...
5396 (info_float_command): ... this.
5397 (program_info): Rename to ...
5398 (info_program_command): ... this.
5399 (all_registers_info): Rename to ...
5400 (info_all_registers_command): ... this.
5401 (vector_info): Rename to ...
5402 (info_vector_command): ... this.
5403 (float_info): Rename to ...
5404 (info_float_command): ... this.
5405 (_initialize_infcmd): Adjust.
5406 * inferior.h (term_info): Rename to ...
5407 (info_terminal_command): ... this.
5408 * inflow.c (term_info): Rename to ...
5409 (info_terminal_command): ... this.
5410 (_initialize_inflow): Adjust.
5411 * infrun.c (signals_info): Rename to ...
5412 (info_signals_command): ... this.
5413 (_initialize_infrun): Adjust.
5414 * objc-lang.c (classes_info): Rename to ...
5415 (info_classes_command): ... this.
5416 (selectors_info): Rename to ...
5417 (info_selectors_command): ... this.
5418 (_initialize_objc_language): Adjust.
5419 * printcmd.c (sym_info): Rename to ...
5420 (info_symbol_command): ... this.
5421 (address_info): Rename to ...
5422 (info_address_command): ... this.
5423 (display_info): Rename to ...
5424 (info_display_command): ... this.
5425 (_initialize_printcmd): Adjust.
5426 * reverse.c (bookmarks_info): Rename to ...
5427 (info_breakpoints_command): ... this.
5428 (_initialize_reverse): Adjust.
5429 * ser-go32.c (dos_info): Rename to ...
5430 (info_serial_command): ... this.
5431 (_initialize_ser_dos): Adjust.
5432 * skip.c (skip_info): Rename to ...
5433 (info_skip_command): ... this.
5434 (_initialize_step_skip): Adjust.
5435 * source.c (line_info): Rename to ...
5436 (info_line_command): ... this.
5437 (source_info): Rename to ...
5438 (info_source_command)
5439 * stack.c (frame_info): Rename to ...
5440 (info_frame_command): ... this.
5441 (locals_info): Rename to ...
5442 (info_locals_command): ... this.
5443 (args_info): Rename to ...
5444 (info_args_command): ... this.
5445 (_initialize_stack): Adjust.
5446 * symtab.c (sources_info): Rename to ...
5447 (info_sources_command): ... this.
5448 (variables_info): Rename to ...
5449 (info_variables_command): ... this.
5450 (functions_info): Rename to ...
5451 (info_functions_command): ... this.
5452 (types_info): Rename to ...
5453 (info_types_command): ... this.
5454 (_initialize_symtab): Adjust.
5455 * target.c (target_info): Rename to ...
5456 (info_target_command): ... this.
5457 (initialize_targets): Adjust.
5458 * tracepoint.c (tvariables_info): Rename to ...
5459 (info_tvariables_command): ... this.
5460 (scope_info): Rename to ...
5461 (info_scope_command): ... this.
5462 (trace_dump_actions): Adjust.
5463 (_initialize_tracepoint): Adjust.
5464
b270e6f9
TT
54652017-08-22 Tom Tromey <tom@tromey.com>
5466
5467 * breakpoint.h (install_breakpoint): Update.
5468 * breakpoint.c (add_solib_catchpoint): Update.
5469 (install_breakpoint): Change argument to a std::unique_ptr.
5470 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
5471 (create_breakpoint_sal, create_breakpoint): Update.
5472 (watch_command_1, catch_exec_command_1)
5473 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
5474 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
5475 Return the breakpoint.
5476 (set_raw_breakpoint_without_location, set_raw_breakpoint)
5477 (new_single_step_breakpoint): Update.
5478 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
5479 std::unique_ptr.
5480 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
5481 std::unique_ptr.
5482 * break-catch-sig.c (create_signal_catchpoint): Use
5483 std::unique_ptr.
5484 * ada-lang.c (create_ada_exception_catchpoint): Use
5485 std::unique_ptr.
5486
36bd8eaa
TT
54872017-08-22 Tom Tromey <tom@tromey.com>
5488
5489 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
5490
56f37645
TT
54912017-08-22 Tom Tromey <tom@tromey.com>
5492
5493 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
5494 (lookup_partial_symbol): Update.
5495
0b581c69
TT
54962017-08-22 Tom Tromey <tom@tromey.com>
5497
5498 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
5499 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
5500 (find_and_open_source, symtab_to_fullname): Update.
5501 * psymtab.c (psymtab_to_fullname): Update.
5502
14278e1f
TT
55032017-08-22 Tom Tromey <tom@tromey.com>
5504
5505 * exec.c (exec_file_attach): Update.
5506 * linux-thread-db.c (try_thread_db_load): Update.
5507 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
5508 * utils.c (gdb_realpath): Change return type.
5509 (gdb_realpath_keepfile): Update.
5510 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
5511 (_initialize_utils): Register the new self test.
5512 * source.c (openp): Update.
5513 (find_and_open_source): Update.
5514 * nto-tdep.c (nto_find_and_open_solib): Update.
5515 * main.c (set_gdb_data_directory): Update.
5516 (captured_main_1): Update.
5517 * dwarf2read.c (dwarf2_get_dwz_file): Update
5518 (dw2_map_symbol_filenames): Update.
5519 * auto-load.c (auto_load_safe_path_vec_update): Update.
5520 (filename_is_in_auto_load_safe_path_vec): Change type of
5521 "filename_realp".
5522 (auto_load_objfile_script): Update.
5523 (file_is_auto_load_safe): Update. Use std::string.
5524 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
5525
4971c9a7
TT
55262017-08-22 Tom Tromey <tom@tromey.com>
5527
5528 * utils.c (gdb_realpath_keepfile): Return a
5529 gdb::unique_xmalloc_ptr.
5530 * exec.c (exec_file_attach): Update.
5531 * utils.h (gdb_realpath_keepfile): Return a
5532 gdb::unique_xmalloc_ptr.
5533
e3e41d58
TT
55342017-08-22 Tom Tromey <tom@tromey.com>
5535
5536 * compile/compile.c (compile_file_command): Use
5537 gdb::unique_xmalloc_ptr, std::string.
5538 * utils.c (gdb_abspath): Change return type.
5539 * source.c (openp): Update.
5540 * objfiles.c (allocate_objfile): Update.
5541 * main.c (set_gdb_data_directory): Update.
5542 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
5543
0d999a6e
ZZ
55442017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
5545
5546 * cli-cmds.c (list_commands): List actual code around more than
5547 one location.
5548
329d5e7e
JB
55492017-08-21 John Baldwin <jhb@FreeBSD.org>
5550
5551 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
5552
bf223d3e
PA
55532017-08-21 Pedro Alves <palves@redhat.com>
5554
5555 PR gdb/19487
5556 * c-exp.y (variable production): Handle function aliases.
5557 * minsyms.c (msymbol_is_text): New function.
5558 * minsyms.h (msymbol_is_text): Declare.
5559 * symtab.c (find_function_alias_target): New function.
5560 * symtab.h (find_function_alias_target): Declare.
5561
c973d0aa
PA
55622017-08-21 Pedro Alves <palves@redhat.com>
5563
5564 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
5565 typedefs.
5566 * typeprint.c (whatis_exp): If handling "whatis", and expression
5567 is OP_TYPE, strip one typedef level. Otherwise don't strip
5568 typedefs here.
5569 * valops.c (value_cast): Save "to" type before resolving
5570 stubs/typedefs. Use that type as resulting value's type.
5571
2989a365
TT
55722017-08-18 Tom Tromey <tom@tromey.com>
5573 Pedro Alves <palves@redhat.com>
5574
5575 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
5576 * sol-thread.c (sol_thread_resume, sol_thread_wait)
5577 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
5578 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
5579 * proc-service.c (ps_xfer_memory): Use scoped_restore.
5580 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
5581 (linux_get_siginfo_data): Add "thread" argument. Use
5582 scoped_restore.
5583 * linux-nat.c (linux_child_follow_fork)
5584 (check_stopped_by_watchpoint): Use scoped_restore.
5585 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
5586 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
5587 (restore_inferior_ptid, save_inferior_ptid): Remove.
5588 * btrace.c (btrace_fetch): Use scoped_restore.
5589 * bsd-uthread.c (bsd_uthread_fetch_registers)
5590 (bsd_uthread_store_registers): Use scoped_restore.
5591 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
5592 scoped_restore.
5593 * aix-thread.c (aix_thread_resume, aix_thread_wait)
5594 (aix_thread_xfer_partial): Use scoped_restore.
5595 * inferior.h (save_inferior_ptid): Remove.
5596
e60eb288
YQ
55972017-08-18 Yao Qi <yao.qi@linaro.org>
5598
5599 PR tdep/21818
5600 * arm-tdep.c (gdb_print_insn_arm): Mark
5601 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
5602
6d580b63
YQ
56032017-08-18 Yao Qi <yao.qi@linaro.org>
5604
5605 * NEWS: Mention GDBserver's new option "--selftest".
5606 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
5607 * selftest.c: Move it to common/selftest.c.
5608 * selftest.h: Move it to common/selftest.h.
5609 * selftest-arch.c (reset): New function.
5610 (tests_with_arch): Call reset.
5611
86dcbf50
YQ
56122017-08-18 Yao Qi <yao.qi@linaro.org>
5613
5614 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
5615 instead of exception_fprintf and printf_filtered.
5616
7649770c
YQ
56172017-08-18 Yao Qi <yao.qi@linaro.org>
5618
5619 * selftest.c (register_self_test): Rename it to
5620 selftests::register_test.
5621 (run_self_tests): selftest::run_tests.
5622 * selftest.h: Update declarations.
5623 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
5624 selftests::register_test_foreach_arch.
5625 * selftest-arch.h: Update declaration.
5626 * aarch64-tdep.c: Update.
5627 * arm-tdep.c: Likewise.
5628 * disasm-selftests.c: Likewise.
5629 * dwarf2loc.c: Likewise.
5630 * dwarf2-frame.c: Likewise.
5631 * findvar.c: Likewise.
5632 * gdbarch-selftests.c: Likewise.
5633 * maint.c (maintenance_selftest): Likewise.
5634 * regcache.c: Likewise.
5635 * rust-exp.y: Likewise.
5636 * selftest-arch.c: Likewise.
5637 * unittests/environ-selftests.c: Likewise.
5638 * unittests/function-view-selftests.c: Likewise.
5639 * unittests/offset-type-selftests.c: Likewise.
5640 * unittests/optional-selftests.c: Likewise.
5641 * unittests/scoped_restore-selftests.c: Likewise.
5642 * utils-selftests.c: Likewise.
5643
b0cba12e
PA
56442017-08-17 Pedro Alves <palves@redhat.com>
5645
5646 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
5647 local.
5648
4c8aa72d
PA
56492017-08-17 Pedro Alves <palves@redhat.com>
5650
5651 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
5652 field.
5653 (reset_die_in_process): Delete, replaced by ...
5654 (process_die_scope): ... this new class. Make it responsible for
5655 freeing cu->line_header too.
5656 (process_die): Use process_die_scope.
5657 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
5658 cu->line_header_die_owner. Don't release the line header if it's
5659 owned by the CU.
5660 (setup_type_unit_groups): Make the CU/DIE own the line header.
5661 Don't release the line header here.
5662
ba713918
AL
56632017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
5664
5665 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
5666
44d0fb3a
RK
56672017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
5668
5669 * NEWS: Mention new shortcuts for nexti and stepi in TUI
5670 Single-Key mode
5671
a5afdb16
RK
56722017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
5673
5674 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
5675 mode command list.
5676
47613aeb
SH
56772017-08-15 Stafford Horne <shorne@gmail.com>
5678
5679 * MAINTAINERS (Write After Approval): Add Stafford Horne.
5680
9c3cc999
SH
56812017-08-15 Stafford Horne <shorne@gmail.com>
5682
5683 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
5684
206726fb
SDJ
56852017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
5686
5687 PR gdb/21954
5688 * infcmd.c (unset_environment_command): Use the 'clear' method on
5689 the environment instead of resetting it.
5690
0335ac6d
JB
56912017-08-15 John Baldwin <jhb@FreeBSD.org>
5692
5693 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
5694 platforms.
5695
d3abe1c8
TT
56962017-08-14 Tom Tromey <tom@tromey.com>
5697
5698 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
5699 (print_binary_chars): Likewise.
5700 (BITS_IN_BYTES): Remove.
5701
d6382fff
TT
57022017-08-14 Tom Tromey <tom@tromey.com>
5703
5704 PR gdb/21675
5705 * valprint.c (LOW_ZERO): Change value to 034.
5706 (print_octal_chars): Add static_asserts for octal constants.
5707 * printcmd.c (print_scalar_formatted): Add 'd' case.
5708
f978cb06
TT
57092017-08-11 Tom Tromey <tom@tromey.com>
5710
5711 * symfile.c (add_symbol_file_command): Use std::vector.
5712
2f5404b3
TT
57132017-08-14 Tom Tromey <tom@tromey.com>
5714
5715 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
5716 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
5717 std::move.
5718 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
5719
de7985c3
PA
57202017-08-11 Pedro Alves <palves@redhat.com>
5721
5722 * infrun.c (process_event_stop_test): Adjust
5723 function_name_is_marked_for_skip call.
5724 * skip.c: Include <list>.
5725 (skiplist_entry): Make it a class with private fields, and
5726 getters/setters.
5727 (skiplist_entry_chain): Delete.
5728 (skiplist_entries): New.
5729 (skiplist_entry_count): Delete.
5730 (highest_skiplist_entry_num): New.
5731 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
5732 (add_skiplist_entry): Delete.
5733 (skiplist_entry::skiplist_entry): New.
5734 (skiplist_entry::add_entry): New.
5735 (skip_file_command, skip_function): Adjust.
5736 (compile_skip_regexp): Delete.
5737 (skip_command): Don't compile regexp here. Adjust to use
5738 skiplist_entry::add_entry.
5739 (skip_info): Adjust to use range-for and getters.
5740 (skip_enable_command, skip_disable_command): Adjust to use
5741 range-for and setters.
5742 (skip_delete_command): Adjust to use std::list.
5743 (add_skiplist_entry): Delete.
5744 (skip_file_p): Delete, refactored as ...
5745 (skiplist_entry::do_skip_file_p): ... this new method.
5746 (skip_gfile_p): Delete, refactored as ...
5747 (skiplist_entry::do_gskip_file_p): ... this new method.
5748 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
5749 (skiplist_entry::skip_function_p): ... this new method.
5750 (function_name_is_marked_for_skip): Now returns bool, and takes
5751 the function sal by const reference. Adjust to use range-for and
5752 skiplist_entry methods.
5753 (_initialize_step_skip): Remove references to
5754 skiplist_entry_chain, skiplist_entry_count.
5755 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
5756 takes the function sal by const reference.
5757
be7d3cd5
YQ
57582017-08-11 Yao Qi <yao.qi@linaro.org>
5759
5760 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
5761 (dwarf2_frame_cache): Remove reset_cache_cleanup.
5762 (dwarf2_frame_cache):
5763 * frame-unwind.c (frame_unwind_try_unwinder): Catch
5764 RETURN_MASK_ALL and set *this_case to NULL.
5765 * frame-unwind.h: Update comments.
5766
1c90d9f0
YQ
57672017-08-11 Yao Qi <yao.qi@linaro.org>
5768
5769 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
5770 (dwarf2_frame_state_copy_regs): Remove.
5771 (dwarf2_frame_state_free_regs): Remove.
5772 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
5773 (dwarf2_restore_rule): Call method .alloc_regs instead of
5774 dwarf2_frame_state_alloc_regs.
5775 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
5776 constructor. Call std::move.
5777 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
5778 (dwarf2_frame_cache): Likewise.
5779
5780 [GDB_SELF_TEST]: Include selftest.h and
5781 selftest-arch.h.
5782 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
5783 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
5784 execute_cfa_program_test.
5785
5786 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
5787 copy ctor, assignment operator, move assignment.
5788 <alloc_regs>: New method.
5789 <swap>: New method.
5790 (struct dwarf2_frame_state): Delete dtor.
5791 (dwarf2_frame_state_alloc_regs): Remove declaration.
5792 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
5793 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
5794
afe37d6b
YQ
57952017-08-11 Yao Qi <yao.qi@linaro.org>
5796
5797 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
5798 (dwarf2_frame_state::dwarf2_frame_state): New.
5799 (dwarf2_frame_state::~dwarf2_frame_state): New.
5800 (dwarf2_fetch_cfa_info): Update.
5801 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
5802 rather than a pointer. Update code.
5803 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
5804 dtor.
5805 <data_align, code_align, retaddr_column>: Change them to const.
5806 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
5807 to bool.
5808
b348037f
YQ
58092017-08-11 Yao Qi <yao.qi@linaro.org>
5810
5811 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
5812 <loc.exp>: New field.
5813 * dwarf2-frame.c (execute_cfa_program): Update.
5814 (dwarf2_frame_prev_register): Update.
5815
e7c9de26
PA
58162017-08-10 Pedro Alves <palves@redhat.com>
5817
5818 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
5819
e8c6b620
JB
58202017-08-09 John Baldwin <jhb@FreeBSD.org>
5821
5822 * fbsd-nat.c (struct fbsd_fork_info): Remove.
5823 (fbsd_pending_children): Use std::list.
5824 (fbsd_remember_child): Likewise.
5825 (fbsd_is_child_pending): Likewise.
5826 (fbsd_pending_vfork_done): Use std::forward_list.
5827 (fbsd_add_vfork_done): Likewise.
5828 (fbsd_is_vfork_done_pending): Likewise.
5829 (fbsd_next_vfork_done): Likewise.
5830
e4a26669
JB
58312017-08-09 John Baldwin <jhb@FreeBSD.org>
5832
5833 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
5834 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
5835 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
5836 for `mapfilename'.
5837 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 5838 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 5839
142311d3
JB
58402017-08-09 John Baldwin <jhb@FreeBSD.org>
5841
5842 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
5843 "filestuff.h".
5844 (fbsd_find_memory_regions): Fix `mapfile' initialization.
5845
42fa2e0e
TT
58462017-08-09 Tom Tromey <tom@tromey.com>
5847
5848 * skip.c (skiplist_entry): New constructor.
5849 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
5850 (skiplist_entry::file_is_glob): Now bool.
5851 (skiplist_entry::file, skiplist_entry::function): Now
5852 std::string.
5853 (make_skip_entry): Return a unique_ptr. Use new.
5854 (free_skiplist_entry, free_skiplist_entry_cleanup)
5855 (make_free_skiplist_entry_cleanup): Remove.
5856 (skip_command, skip_disable_command, add_skiplist_entry)
5857 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
5858 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
5859 (function_name_is_marked_for_skip): Update.
5860 (skip_delete_command): Update. Use delete.
5861
cd3af38d
JW
58622017-08-09 Jiong Wang <jiong.wang@arm.com>
5863
5864 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
5865 (aarch64_linux_core_read_description): New function.
5866 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
5867
29592bde
PA
58682017-08-09 Pedro Alves <palves@redhat.com>
5869
5870 * cp-name-parser.y (cp_comp_to_string): Return a
5871 gdb::unique_xmalloc_ptr<char>.
5872 * cp-support.c (replace_typedefs_qualified_name)
5873 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
5874 (cp_canonicalize_string_full): Use op= instead of explicit
5875 convertion.
5876 (cp_class_name_from_physname, method_name_from_physname)
5877 (cp_func_name, cp_remove_params): Adjust to use
5878 gdb::unique_xmalloc_ptr<char>.
5879 * cp-support.h (cp_comp_to_string): Return a
5880 gdb::unique_xmalloc_ptr<char>.
5881 * python/py-type.c (typy_lookup_type): Adjust to use
5882 gdb::unique_xmalloc_ptr<char>.
5883
b3340438
L
58842017-08-09 H.J. Lu <hongjiu.lu@intel.com>
5885
5886 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
5887
e88e8651
YQ
58882017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
5889 Yao Qi <yao.qi@linaro.org>
5890
5891 * cp-support.c (cp_canonicalize_string_full): Use
5892 gdb::unique_xmalloc_ptr<char>.
5893 (cp_canonicalize_string): Likewise.
5894
f5a29eb0
YQ
58952017-08-09 Yao Qi <yao.qi@linaro.org>
5896
5897 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
5898 * regformats/i386/amd64-avx-avx512.dat: Remove.
5899 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
5900 * regformats/i386/amd64-avx-mpx.dat:Remove.
5901 * regformats/i386/amd64-avx.dat: Remove.
5902 * regformats/i386/amd64-mpx.dat: Remove.
5903 * regformats/i386/i386-avx-avx512.dat: Remove.
5904 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
5905 * regformats/i386/i386-avx-mpx.dat: Remove.
5906 * regformats/i386/i386-mmx.dat: Remove.
5907 * regformats/i386/i386-mpx.dat: Remove.
5908
57757c2f
YQ
59092017-08-09 Yao Qi <yao.qi@linaro.org>
5910
5911 * amd64-tdep.h (tdesc_x32): Remove the declaration.
5912 * amd64-tdep.c: Don't include features/i386/x32*.c.
5913 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
5914 functions.
5915 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
5916 and i386/x32-avx-avx512.
5917 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
5918 and i386/x32.xml.
5919 * features/i386/x32-avx-avx512.c: Removed.
5920 * features/i386/x32-avx-avx512.xml: Removed.
5921 * features/i386/x32-avx.c: Removed.
5922 * features/i386/x32-avx.xml: Removed.
5923 * features/i386/x32.c: Removed.
5924 * features/i386/x32.xml: Removed.
5925 * regformats/i386/x32-avx-avx512.dat: Removed.
5926 * regformats/i386/x32-avx.dat: Removed.
5927 * regformats/i386/x32.dat: Removed.
5928
ba7b109b
MR
59292017-08-07 Maciej W. Rozycki <macro@imgtec.com>
5930
5931 PR breakpoints/21886
5932 * mem-break.c (default_memory_insert_breakpoint): Use
5933 `->placed_address' rather than `->reqstd_address' for the
5934 breakpoint location.
5935
e347efc3
MR
59362017-08-07 Maciej W. Rozycki <macro@imgtec.com>
5937
5938 * arch-utils.c (default_print_insn): Remove arch/mach/endian
5939 assertions.
5940
0dba2a6c
MR
59412017-08-07 Maciej W. Rozycki <macro@imgtec.com>
5942
5943 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
5944 a union of `tdep_info', `tdesc_data' and `id'.
5945 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
5946 rather than `info.tdep_info'.
5947 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
5948 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
5949 * i386-tdep.c (i386_gdbarch_init): Likewise.
5950 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
5951 * mips-tdep.c (mips_gdbarch_init): Likewise.
5952 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
5953 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5954 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
5955 `info.tdep_info'.
5956 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
5957 `info.tdep_info'.
5958 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
5959 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
5960 `info.tdep_info'.
5961 * spu-tdep.c (spu_gdbarch_init): Likewise.
5962 * gdbarch.h: Regenerate.
5963
16eb6b2d
LS
59642017-08-07 Leszek Swirski <leszeks@google.com>
5965
7b005726 5966 PR symtab/20899
16eb6b2d
LS
5967 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
5968
74cbb09e
SM
59692017-08-07 Simon Marchi <simon.marchi@ericsson.com>
5970
5971 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
5972 (gdbsim_open): Rename gdb_argv args object to argv.
5973
ee0c3293
TT
59742017-08-05 Tom Tromey <tom@tromey.com>
5975
5976 * compile/compile-object-load.c (compile_object_load): Use
5977 gdb::unique_xmalloc_ptr.
5978 * cli/cli-dump.c (scan_filename): Rename from
5979 scan_filename_with_cleanup. Change return type.
5980 (scan_expression): Rename from scan_expression_with_cleanup.
5981 Change return type.
5982 (dump_memory_to_file, dump_value_to_file, restore_command):
5983 Use gdb::unique_xmalloc_ptr. Update.
5984 * cli/cli-cmds.c (find_and_open_script): Use
5985 gdb::unique_xmalloc_ptr.
5986 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
5987 * symmisc.c (maintenance_print_symbols)
5988 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
5989 * symfile.c (symfile_bfd_open, generic_load)
5990 (add_symbol_file_command, remove_symbol_file_command): Use
5991 gdb::unique_xmalloc_ptr.
5992 * source.c (openp): Use gdb::unique_xmalloc_ptr.
5993 * psymtab.c (maintenance_print_psymbols): Use
5994 gdb::unique_xmalloc_ptr.
5995 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
5996 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
5997 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
5998 (reload_shared_libraries_1): Likewise.
5999
3232fabd
TT
60002017-08-05 Tom Tromey <tom@tromey.com>
6001
6002 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
6003 (rust_op_vector, rust_set_vector): New typedefs.
6004 (current_parser): New global.
6005 (work_obstack): Change to pointer type. Update all users.
6006 (rust_ast, pstate): Remove globals.
6007 (struct rust_parser): New.
6008 (%union) <params, field_inits>: Change type.
6009 (start, tuple_expr, unit_expr, struct_expr_list, literal)
6010 (field_expr, expr_list, maybe_expr_list, type_list): Update.
6011 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
6012 (convert_params_to_types, convert_params_to_expression): Change
6013 type of "params".
6014 (ast_string): Change type of "fields".
6015 (rust_parse): Make a rust_parser. Remove cleanups.
6016 (rust_lex_tests): Make and install an auto_obstack.
6017
f02fd774
YQ
60182017-08-04 Yao Qi <yao.qi@linaro.org>
6019
6020 * configure.srv (ipa_x32_linux_regobj): New.
6021 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
6022 instead of X86_TDESC_AVX512.
6023 (initialize_low_tracepoint): Call
6024 init_registers_x32_avx_avx512_linux.
6025
91975afd
YQ
60262017-08-04 Yao Qi <yao.qi@linaro.org>
6027
6028 * utils.h (gdb_argv): Add namespace std for nullptr_t.
6029
2331fa3a
RK
60302017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
6031
6032 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
6033
744e4fe1
TT
60342017-08-03 Tom Tromey <tom@tromey.com>
6035
6036 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
6037 Remove.
6038 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
6039
1c034b67
TT
60402017-08-03 Tom Tromey <tom@tromey.com>
6041
6042 * python/py-param.c (compute_enum_values): Use gdb_argv.
6043
773a1edc
TT
60442017-08-03 Tom Tromey <tom@tromey.com>
6045
6046 * utils.h (struct gdb_argv_deleter): New.
6047 (gdb_argv): New class.
6048 * utils.c (gdb_argv::reset): New method.
6049 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
6050 * tracefile.c (tsave_command): Use gdb_argv.
6051 * top.c (new_ui_command): Use gdb_argv.
6052 * symmisc.c (maintenance_print_symbols)
6053 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
6054 * symfile.c (symbol_file_command, generic_load)
6055 (remove_symbol_file_command): Use gdb_argv.
6056 * stack.c (backtrace_command): Use gdb_argv.
6057 * source.c (add_path, show_substitute_path_command)
6058 (unset_substitute_path_command, set_substitute_path_command):
6059 Use gdb_argv.
6060 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
6061 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
6062 * remote.c (extended_remote_run, remote_put_command)
6063 (remote_get_command, remote_delete_command): Use gdb_argv.
6064 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
6065 (gdbsim_open): Use gdb_argv.
6066 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
6067 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
6068 * procfs.c (procfs_info_proc): Use gdb_argv.
6069 * interps.c (interpreter_exec_cmd): Use gdb_argv.
6070 * infrun.c (handle_command): Use gdb_argv.
6071 * inferior.c (add_inferior_command, clone_inferior_command):
6072 Use gdb_argv.
6073 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
6074 * exec.c (exec_file_command): Use gdb_argv.
6075 * cli/cli-cmds.c (alias_command): Use gdb_argv.
6076 * compile/compile.c (build_argc_argv): Use gdb_argv.
6077
0d50bde3
TT
60782017-08-03 Tom Tromey <tom@tromey.com>
6079
6080 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
6081
7f968c89
TT
60822017-08-03 Tom Tromey <tom@tromey.com>
6083
6084 * python/python.c (compute_python_string): Return std::string.
6085 (gdbpy_eval_from_control_command): Update.
6086 (do_start_initialization): Use std::string.
6087 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
6088 xstrprintf.
6089 * python/py-breakpoint.c (local_setattro): Use string_printf, not
6090 xstrprintf.
6091
3c9ebddd
TT
60922017-08-03 Tom Tromey <tom@tromey.com>
6093
6094 * top.h (do_restore_instream_cleanup): Remove.
6095 * top.c (do_restore_instream_cleanup): Remove.
6096 (read_command_file): Use scoped_restore.
6097 * cli/cli-script.c (execute_user_command): Use scoped_restore.
6098
b51b225e
TT
60992017-08-03 Tom Tromey <tom@tromey.com>
6100
6101 * cli/cli-script.c (execute_user_command)
6102 (execute_control_command): Use scoped_restore.
6103
ac991630
TT
61042017-08-03 Tom Tromey <tom@tromey.com>
6105
6106 * cli/cli-script.c (do_restore_user_call_depth): Remove.
6107 (execute_user_command): Remove user_call_depth; use
6108 user_args_stack's size instead.
6109
898e0c8e
TT
61102017-08-03 Tom Tromey <tom@tromey.com>
6111
6112 * top.h (in_user_command): Remove.
6113 * top.c (in_user_command): Remove.
6114 * cli/cli-script.c (do_restore_user_call_depth)
6115 (execute_user_command): Update.
6116
26fcd5d7
TT
61172017-08-03 Tom Tromey <tom@tromey.com>
6118
6119 * valops.c (search_struct_method): Use gdb::byte_vector.
6120 * valarith.c (value_concat): Use std::vector.
6121 * target.c (memory_xfer_partial): Use gdb::byte_vector.
6122 (simple_search_memory): Likewise.
6123 * printcmd.c (find_string_backward): Use gdb::byte_vector.
6124 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
6125 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
6126 * elfread.c (elf_rel_plt_read): Use std::string.
6127 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
6128 * cli/cli-dump.c (restore_section_callback): Use
6129 gdb::byte_vector.
6130
7c218e6c
TT
61312017-08-03 Tom Tromey <tom@tromey.com>
6132
6133 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
6134
31b68d4a
TT
61352017-08-03 Tom Tromey <tom@tromey.com>
6136
6137 * tui/tui-regs.c (tui_restore_gdbout): Remove.
6138 (tui_register_format): Use scoped_restore.
6139
2ec845e7
TT
61402017-08-03 Tom Tromey <tom@tromey.com>
6141
6142 * reverse.c (exec_direction_default): Remove.
6143 (exec_reverse_once): Use scoped_restore.
6144 * remote.c (restore_remote_timeout): Remove.
6145 (remote_flash_erase, remote_flash_write, remote_flash_done)
6146 (readchar, remote_serial_write): Use scoped_restore.
6147 * cli/cli-script.c (struct source_cleanup_lines_args)
6148 (source_cleanup_lines): Remove.
6149 (script_from_file): Use scoped_restore.
6150 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
6151 (source_command): Use scoped_restore.
6152
b3bc8453
TT
61532017-08-03 Tom Tromey <tom@tromey.com>
6154
6155 * utils.h (make_cleanup_free_so): Remove.
6156 * utils.c (do_free_so, make_cleanup_free_so): Remove.
6157 * solist.h (struct so_deleter): New.
6158 (so_list_up): New typedef.
6159 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
6160
e3ad2841
TT
61612017-08-03 Tom Tromey <tom@tromey.com>
6162
6163 * utils.h (make_cleanup_restore_current_language): Remove.
6164 * utils.c (do_restore_current_language)
6165 (make_cleanup_restore_current_language): Remove.
6166 * parse.c (parse_exp_in_context_1)
6167 (parse_expression_with_language): Use
6168 scoped_restore_current_language.
6169 * mi/mi-main.c (mi_cmd_execute): Use
6170 scoped_restore_current_language.
6171 * language.h (scoped_restore_current_language): New class.
6172
b80cf838
TT
61732017-08-03 Tom Tromey <tom@tromey.com>
6174
6175 * compile/compile.c (cleanup_unlink_file): Remove.
6176 (compile_to_object): Use gdb::unlinker.
6177 (eval_compile_command): Likewise.
6178
fad0444a
TT
61792017-08-03 Tom Tromey <tom@tromey.com>
6180
6181 * utils.h (make_cleanup_fclose): Remove.
6182 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
6183
6e7bc05c
TT
61842017-08-03 Tom Tromey <tom@tromey.com>
6185
6186 * top.c (open_terminal_stream): Return gdb_file_up.
6187 (new_ui_command): Update.
6188
4a45905b
TT
61892017-08-03 Tom Tromey <tom@tromey.com>
6190
6191 * source.c (print_source_lines_base, forward_search_command)
6192 (reverse_search_command): Use gdb_file_up.
6193
7cd06d6e
TT
61942017-08-03 Tom Tromey <tom@tromey.com>
6195
6196 * fbsd-nat.c (fbsd_find_memory_regions): Update.
6197
ed166945
TT
61982017-08-03 Tom Tromey <tom@tromey.com>
6199
6200 * cli/cli-cmds.c (find_and_open_script): Change return type.
6201 Remove "streamp" and "full_path" parameters.
6202 (source_script_with_search): Update.
6203 * auto-load.c (source_script_file): Update.
6204 * cli/cli-cmds.h (find_and_open_script): Change type.
6205 (open_script): New struct.
6206
d419f42d
TT
62072017-08-03 Tom Tromey <tom@tromey.com>
6208
6209 * xml-support.c (xml_fetch_content_from_file): Update.
6210 * ui-file.c (stdio_file::open): Update.
6211 * tracefile-tfile.c (tfile_start): Update.
6212 * remote.c (remote_file_put, remote_file_get): Update.
6213 * nat/linux-procfs.c (linux_proc_get_int)
6214 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
6215 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
6216 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
6217 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6218 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
6219 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
6220 * linux-nat.c (linux_proc_pending_signals): Update.
6221 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
6222 (file_closer): Remove.
6223 * compile/compile.c (compile_to_object): Update.
6224 * common/filestuff.h (struct gdb_file_deleter): New.
6225 (gdb_file_up): New typedef.
6226 (gdb_fopen_cloexec): Change return type.
6227 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
6228 * cli/cli-dump.c (fopen_with_cleanup): Remove.
6229 (dump_binary_file, restore_binary_file): Update.
6230 * auto-load.c (auto_load_objfile_script_1): Update.
6231
4a2b031d
TT
62322017-08-03 Tom Tromey <tom@tromey.com>
6233
6234 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
6235 (info_static_tracepoint_markers_command): Likewise.
6236 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
6237 * skip.c (skip_info): Use ui_out_emit_table.
6238 * progspace.c (print_program_space): Use ui_out_emit_table.
6239 * osdata.c (info_osdata): Use ui_out_emit_table.
6240 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
6241 ui_out_emit_table.
6242 * linux-thread-db.c (info_auto_load_libthread_db): Use
6243 ui_out_emit_table.
6244 * inferior.c (print_inferior): Use ui_out_emit_table.
6245 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
6246 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
6247 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
6248 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
6249 * ui-out.h (class ui_out_emit_table): New.
6250
a4f320fd
MR
62512017-08-02 Maciej W. Rozycki <macro@imgtec.com>
6252
6253 * mips-tdep.c (mips_fpu_type_str): New function.
6254 (mips_dump_tdep): Call it.
6255
a2f1f308
MR
62562017-08-01 Maciej W. Rozycki <macro@imgtec.com>
6257
6258 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
6259 `->mips_fpu_type'.
6260
7e5ed83b
XR
62612017-07-31 Xavier Roirand <roirand@adacore.com>
6262
6263 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6264
4c9dc811
XR
62652017-07-27 Xavier Roirand <roirand@adacore.com>
6266
6267 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
6268
27d41eac
YQ
62692017-07-26 Yao Qi <yao.qi@linaro.org>
6270
6271 * cli/cli-cmds.c (maintenancechecklist): New variable.
6272 * gdbcmd.h (maintenancechecklist): Declare it.
6273 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
6274 Call i386_linux_read_description with different masks.
6275 * maint.c (maintenance_check_command): New function.
6276 (_initialize_maint_cmds): Call add_prefix_cmd.
6277 * target-descriptions.c (tdesc_reg): override operator != and ==.
6278 (tdesc_type): Likewise.
6279 (tdesc_feature): Likewise.
6280 (target_desc): Likewise.
6281 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
6282 (maintenance_check_xml_descriptions): New function.
6283 (_initialize_target_descriptions) Add command "xml-descriptions".
6284 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
6285
ea03d0d3
YQ
62862017-07-26 Yao Qi <yao.qi@linaro.org>
6287
6288 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
6289 Include features/i386/32bit-*.c.
6290 (i386_linux_read_description): Generate target description if it
6291 doesn't exist.
6292 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
6293 functions.
6294 * features/i386/32bit-linux.c: Re-generated.
6295 * features/i386/32bit-sse.c: Likewise.
6296 * target-descriptions.c (print_c_feature::visit): Print code to
6297 set register number if needed.
6298 (print_c_feature) <m_next_regnum>: New field.
6299
25aa13e5
YQ
63002017-07-26 Yao Qi <yao.qi@linaro.org>
6301
6302 * features/Makefile (CFILES): Rename with TDESC_CFILES.
6303 (FEATURE_XMLFILES): New.
6304 (FEATURE_CFILES): New.
6305 New rules.
6306 (clean-cfiles): Remove generated c files.
6307 * features/i386/32bit-avx.c: Generated.
6308 * features/i386/32bit-avx512.c: Generated.
6309 * features/i386/32bit-core.c: Generated.
6310 * features/i386/32bit-linux.c: Generated.
6311 * features/i386/32bit-mpx.c: Generated.
6312 * features/i386/32bit-pkeys.c: Generated.
6313 * features/i386/32bit-sse.c: Generated.
6314 * target-descriptions.c: Include algorithm.
6315 (tdesc_element_visitor): Add method visit_end.
6316 (print_c_tdesc): Implement visit_end.
6317 (print_c_tdesc:: m_filename_after_features): Move it to
6318 protected.
6319 (print_c_feature): New class.
6320 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
6321 name starts with "i386/32bit-".
6322
6eb1e6a8
YQ
63232017-07-26 Yao Qi <yao.qi@linaro.org>
6324
6325 * target-descriptions.c (tdesc_element_visitor): New class.
6326 (tdesc_element): New class.
6327 (tdesc_reg): Inherit from tdesc_element.
6328 (tdesc_reg::accept): New function.
6329 (tdesc_type): Inherit from tdesc_element.
6330 (tdesc_type::accept): New function.
6331 (tdesc_feature): Inherit from tdesc_element.
6332 (tdesc_feature::accept): New function.
6333 (target_desc): Inherit from tdesc_element.
6334 (target_desc::target_desc): New.
6335 (target_desc::~target_desc): New.
6336 (target_desc::accept): New.
6337 (allocate_target_description): Use new.
6338 (free_target_description): Use delete.
6339 (print_c_tdesc): New class.
6340 (maint_print_c_tdesc_cmd): Adjust.
6341
6342 * features/aarch64.c: Re-generated.
6343 * features/arc-arcompact.c: Re-generated.
6344 * features/arc-v2.c: Re-generated.
6345 * features/arm/arm-with-iwmmxt.c: Re-generated.
6346 * features/arm/arm-with-m.c: Re-generated.
6347 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
6348 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
6349 * features/arm/arm-with-neon.c: Re-generated.
6350 * features/arm/arm-with-vfpv2.c: Re-generated.
6351 * features/arm/arm-with-vfpv3.c: Re-generated.
6352 * features/i386/amd64-avx-avx512.c: Re-generated.
6353 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
6354 * features/i386/amd64-avx.c: Re-generated.
6355 * features/i386/amd64-avx-linux.c: Re-generated.
6356 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
6357 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
6358 * features/i386/amd64-avx-mpx.c: Re-generated.
6359 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
6360 * features/i386/amd64.c: Re-generated.
6361 * features/i386/amd64-linux.c: Re-generated.
6362 * features/i386/amd64-mpx.c: Re-generated.
6363 * features/i386/amd64-mpx-linux.c: Re-generated.
6364 * features/i386/i386-avx-avx512.c: Re-generated.
6365 * features/i386/i386-avx-avx512-linux.c: Re-generated.
6366 * features/i386/i386-avx.c: Re-generated.
6367 * features/i386/i386-avx-linux.c: Re-generated.
6368 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
6369 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
6370 * features/i386/i386-avx-mpx.c: Re-generated.
6371 * features/i386/i386-avx-mpx-linux.c: Re-generated.
6372 * features/i386/i386.c: Re-generated.
6373 * features/i386/i386-linux.c: Re-generated.
6374 * features/i386/i386-mmx.c: Re-generated.
6375 * features/i386/i386-mmx-linux.c: Re-generated.
6376 * features/i386/i386-mpx.c: Re-generated.
6377 * features/i386/i386-mpx-linux.c: Re-generated.
6378 * features/i386/x32-avx-avx512.c: Re-generated.
6379 * features/i386/x32-avx-avx512-linux.c: Re-generated.
6380 * features/i386/x32-avx.c: Re-generated.
6381 * features/i386/x32-avx-linux.c: Re-generated.
6382 * features/i386/x32.c: Re-generated.
6383 * features/i386/x32-linux.c: Re-generated.
6384 * features/microblaze.c: Re-generated.
6385 * features/microblaze-with-stack-protect.c: Re-generated.
6386 * features/mips64-dsp-linux.c: Re-generated.
6387 * features/mips64-linux.c: Re-generated.
6388 * features/mips-dsp-linux.c: Re-generated.
6389 * features/mips-linux.c: Re-generated.
6390 * features/nds32.c: Re-generated.
6391 * features/nios2.c: Re-generated.
6392 * features/nios2-linux.c: Re-generated.
6393 * features/rs6000/powerpc-32.c: Re-generated.
6394 * features/rs6000/powerpc-32l.c: Re-generated.
6395 * features/rs6000/powerpc-403.c: Re-generated.
6396 * features/rs6000/powerpc-403gc.c : Re-generated.
6397 * features/rs6000/powerpc-405.c: Re-generated.
6398 * features/rs6000/powerpc-505.c: Re-generated.
6399 * features/rs6000/powerpc-601.c: Re-generated.
6400 * features/rs6000/powerpc-602.c: Re-generated.
6401 * features/rs6000/powerpc-603.c: Re-generated.
6402 * features/rs6000/powerpc-604.c: Re-generated.
6403 * features/rs6000/powerpc-64.c: Re-generated.
6404 * features/rs6000/powerpc-64l.c: Re-generated.
6405 * features/rs6000/powerpc-7400.c: Re-generated.
6406 * features/rs6000/powerpc-750.c: Re-generated.
6407 * features/rs6000/powerpc-860.c: Re-generated.
6408 * features/rs6000/powerpc-altivec32.c: Re-generated.
6409 * features/rs6000/powerpc-altivec32l.c: Re-generated.
6410 * features/rs6000/powerpc-altivec64.c: Re-generated.
6411 * features/rs6000/powerpc-altivec64l.c: Re-generated.
6412 * features/rs6000/powerpc-cell32l.c: Re-generated.
6413 * features/rs6000/powerpc-cell64l.c: Re-generated.
6414 * features/rs6000/powerpc-e500.c: Re-generated.
6415 * features/rs6000/powerpc-e500l.c: Re-generated.
6416 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
6417 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
6418 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
6419 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
6420 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
6421 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
6422 * features/rs6000/powerpc-vsx32.c: Re-generated.
6423 * features/rs6000/powerpc-vsx32l.c: Re-generated.
6424 * features/rs6000/powerpc-vsx64.c: Re-generated.
6425 * features/rs6000/powerpc-vsx64l.c: Re-generated.
6426 * features/rs6000/rs6000.c: Re-generated.
6427 * features/s390-linux32.c: Re-generated.
6428 * features/s390-linux32v1.c: Re-generated.
6429 * features/s390-linux32v2.c: Re-generated.
6430 * features/s390-linux64.c: Re-generated.
6431 * features/s390-linux64v1.c: Re-generated.
6432 * features/s390-linux64v2.c: Re-generated.
6433 * features/s390-te-linux64.c: Re-generated.
6434 * features/s390-tevx-linux64.c: Re-generated.
6435 * features/s390-vx-linux64.c: Re-generated.
6436 * features/s390x-linux64.c: Re-generated.
6437 * features/s390x-linux64v1.c: Re-generated.
6438 * features/s390x-linux64v2.c: Re-generated.
6439 * features/s390x-te-linux64.c: Re-generated.
6440 * features/s390x-tevx-linux64.c: Re-generated.
6441 * features/s390x-vx-linux64.c: Re-generated.
6442 * features/sparc/sparc32-solaris.c: Re-generated.
6443 * features/sparc/sparc64-solaris.c: Re-generated.
6444 * features/tic6x-c62x.c: Re-generated.
6445 * features/tic6x-c62x-linux.c: Re-generated.
6446 * features/tic6x-c64x.c: Re-generated.
6447 * features/tic6x-c64x-linux.c: Re-generated.
6448 * features/tic6x-c64xp.c: Re-generated.
6449 * features/tic6x-c64xp-linux.c: Re-generated.
6450
35b4818d
YQ
64512017-07-26 Yao Qi <yao.qi@linaro.org>
6452
6453 * i386-linux-tdep.c (i386_linux_read_description): New function.
6454 (i386_linux_core_read_description): Call
6455 i386_linux_read_description.
6456 * i386-linux-tdep.h (i386_linux_read_description): Declare.
6457 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
6458 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
6459 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
6460 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
6461 * x86-linux-nat.c (x86_linux_read_description): Call
6462 i386_linux_read_description.
6463
8e2141c6
YQ
64642017-07-26 Yao Qi <yao.qi@linaro.org>
6465
6466 * NEWS: Mention it.
6467 * features/Makefile (%.c: %.xml): Pass the xml file name to
6468 command "maint print c-tdesc".
6469 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
6470 name from 'arg'.
6471
b468ff4c
YQ
64722017-07-26 Yao Qi <yao.qi@linaro.org>
6473
6474 * target-descriptions.c (target_desc): Add ctor and dtor. Do
6475 in-class initialization.
6476 (tdesc_create_feature): Call new instead of XCNEW.
6477 (free_target_description): Ue delete.
6478
b9c0e1b4
JB
64792017-07-25 John Baldwin <jhb@FreeBSD.org>
6480
6481 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
6482
a04b5337
YQ
64832017-07-25 Yao Qi <yao.qi@linaro.org>
6484
6485 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
6486 constant.
6487 (amd64_x32_init_abi): Likewise.
6488 * amd64-tdep.h (amd64_init_abi): Update declaration.
6489 (amd64_x32_init_abi): Likewise.
6490
02ad7fc2
YQ
64912017-07-25 Yao Qi <yao.qi@linaro.org>
6492
6493 PR tdep/21717
6494 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
6495 condition for FPSCR.
6496 (arm_linux_store_inferior_registers): Likewise.
6497
b6f48cb0
TT
64982017-07-22 Tom Tromey <tom@tromey.com>
6499
6500 * break-catch-syscall.c (struct catch_syscall_inferior_data)
6501 <syscalls_counts>: Now a std::vector.
6502 (get_catch_syscall_inferior_data): Use "new".
6503 (catch_syscall_inferior_data_cleanup): Use "delete".
6504 (insert_catch_syscall, remove_catch_syscall)
6505 (clear_syscall_counts): Update.
6506
e12c9b7a
TT
65072017-07-22 Tom Tromey <tom@tromey.com>
6508
6509 * break-catch-syscall.c (syscall_catchpoint)
6510 <syscalls_to_be_caught>: Now a std::vector<int>
6511 (~syscall_catchpoint): Remove.
6512 (insert_catch_syscall, remove_catch_syscall)
6513 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
6514 (print_mention_catch_syscall, print_recreate_catch_syscall):
6515 Update.
6516 (create_syscall_event_catchpoint): Change type of "filter"
6517 parameter.
6518 (catch_syscall_split_args): Return a std::vector.
6519 (catch_syscall_command_1, catching_syscall_number_1): Update.
6520
4fa8aeac
TT
65212017-07-22 Tom Tromey <tom@tromey.com>
6522
6523 * break-catch-throw.c (struct exception_catchpoint)
6524 <exception_rx>: Now a std::string.
6525 (~exception_catchpoint): Remove.
6526 (print_one_detail_exception_catchpoint): Update.
6527 (handle_gnu_v3_exceptions): Change type of except_rx.
6528 (extract_exception_regexp): Return a std::string.
6529 (catch_exception_command_1): Update.
6530
f746a154
TT
65312017-07-22 Tom Tromey <tom@tromey.com>
6532
6533 * break-catch-sig.c (gdb_signal_type): Remove typedef.
6534 (struct signal_catchpoint) <signals_to_be_caught>: Now a
6535 std::vector.
6536 <catch_all>: Now a bool.
6537 (~signal_catchpoint): Remove.
6538 (signal_catchpoint_insert_location)
6539 (signal_catchpoint_remove_location)
6540 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
6541 (signal_catchpoint_print_mention)
6542 (signal_catchpoint_print_recreate)
6543 (signal_catchpoint_explains_signal): Update.
6544 (create_signal_catchpoint): Change type of "filter" and
6545 "catch_all".
6546 (catch_signal_split_args): Return a std::vector. Change type of
6547 "catch_all".
6548 (catch_signal_command): Update.
6549
47e77640
PA
65502017-07-20 Pedro Alves <palves@redhat.com>
6551
6552 * ada-lang.c (ada_language_defn): Make extern.
6553 (_initialize_ada_language): Remove add_language call.
6554 * c-lang.c (c_language_defn, cplus_language_defn)
6555 (asm_language_defn, minimal_language_defn): Make extern.
6556 (_initialize_c_language): Delete.
6557 * completer.c (compare_cstrings): Delete, moved to utils.h.
6558 * d-lang.c (d_language_defn): Make extern.
6559 (_initialize_d_language): Remove add_language calls.
6560 * defs.h (enum language): Add comment.
6561 * f-lang.c (f_language_defn): Make extern.
6562 (_initialize_f_language): Remove add_language call.
6563 * go-lang.c (go_language_defn): Make extern.
6564 (_initialize_go_language): Remove add_language call.
6565 * language.c: Include <algorithm>.
6566 (languages): Redefine as const array.
6567 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
6568 (set_language_command): Handle "local". Use for-range loop.
6569 (set_language): Remove loop.
6570 (language_enum): Rewrite.
6571 (language_def, language_str): Remove loops.
6572 (add_language): Delete.
6573 (add_set_language_command): New, based on add_languages.
6574 (skip_language_trampoline): Adjust.
6575 (local_language_defn): Delete.
6576 (language_gdbarch_post_init): Adjust.
6577 (_initialize_language): Remove add_language calls. Call
6578 add_set_language_command.
6579 * language.h (add_language): Delete.
6580 (auto_language_defn)
6581 (unknown_language_defn, minimal_language_defn, ada_language_defn)
6582 (asm_language_defn, c_language_defn, cplus_language_defn)
6583 (d_language_defn, f_language_defn, go_language_defn)
6584 (m2_language_defn, objc_language_defn, opencl_language_defn)
6585 (pascal_language_defn, rust_language_defn): Declare.
6586 * m2-lang.c (m2_language_defn): Make extern.
6587 (_initialize_m2_language): Remove add_language call.
6588 * objc-lang.c (objc_language_defn): Make extern.
6589 (_initialize_objc_language): Remove add_language call.
6590 * opencl-lang.c (opencl_language_defn): Make extern.
6591 (_initialize_opencl_language): Remove add_language call.
6592 * p-lang.c (pascal_language_defn): Make extern.
6593 (_initialize_pascal_language): Delete.
6594 * rust-lang.c (rust_language_defn): Make extern.
6595 (_initialize_rust_language): Delete.
6596 * utils.h (compare_cstrings): New static inline function.
6597
edb0c9cb
PA
65982017-07-20 Pedro Alves <palves@redhat.com>
6599
6600 * ada-lang.c (ada_to_fixed_type_1): Adjust.
6601 (get_var_value): Constify parameters.
6602 (get_int_var_value): Change prototype.
6603 (to_fixed_range_type): Adjust.
6604 * ada-lang.h (get_int_var_value): Change prototype.
6605
a778f165
PA
66062017-07-20 Pedro Alves <palves@redhat.com>
6607
6608 * dwarf2read.c (dw2_lookup_symbol): Use
6609 SYMBOL_MATCHES_SEARCH_NAME.
6610 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
6611
42edd901
PA
66122017-07-20 Pedro Alves <palves@redhat.com>
6613
6614 * block.c (block_iter_name_step, block_iter_name_first)
6615 (block_iter_name_next): Delete.
6616 (block_lookup_symbol_primary): Adjust to use
6617 dict_iter_match_first/dict_iter_match_next.
6618 * block.h (block_iter_name_first, block_iter_name_next): Delete
6619 declarations.
6620 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
6621 dict_iter_match_first/dict_iter_match_next.
6622
cf325299
PA
66232017-07-20 Pedro Alves <palves@redhat.com>
6624
6625 * cp-support.c (cp_find_first_component_aux): Add missing case for
6626 end of string.
6627
c5ed0576
DB
66282017-07-18 David Blaikie <dblaikie@gmail.com>
6629
6630 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
6631 of dwo_cu's dwo_file.
6632
27841e76
YQ
66332017-07-18 Yao Qi <yao.qi@linaro.org>
6634
6635 * remote.c (store_registers_using_G): Remove one line comment.
6636
cfb7e58b
YQ
66372017-07-18 Yao Qi <yao.qi@linaro.org>
6638
6639 * regcache.c (regcache_cpy): Simplify it.
6640 (regcache::cpy_no_passthrough): Remove it.
6641 * regcache.h (cpy_no_passthrough): Remove it.
6642 (regcache_dup, regcache_cpy): Update comments.
6643
386535dd
PA
66442017-07-18 Pedro Alves <palves@redhat.com>
6645
6646 * remote-sim.c (sim_command_completer): Adjust to work with a
6647 completion_tracker instead of a VEC.
6648
c45ec17c
PA
66492017-07-17 Pedro Alves <palves@redhat.com>
6650
6651 * completer.c (complete_source_filenames): New function.
6652 (complete_address_and_linespec_locations): New function.
6653 (location_completer): Use complete_address_and_linespec_locations.
6654 (completion_tracker::build_completion_result): Honor the tracker's
6655 request to suppress append.
6656 * completer.h (completion_tracker::suppress_append_ws)
6657 (completion_tracker::set_suppress_append_ws): New methods.
6658 (completion_tracker::m_suppress_append_ws): New field.
6659 (complete_source_filenames): New declaration.
6660 * linespec.c (linespec_complete_what): New.
6661 (struct ls_parser) <complete_what, completion_word,
6662 completion_quote_char, completion_quote_end, completion_tracker>:
6663 New fields.
6664 (string_find_incomplete_keyword_at_end): New.
6665 (linespec_lexer_lex_string): Record quote char. If in completion
6666 mode, don't throw.
6667 (linespec_lexer_consume_token): Advance the completion word point.
6668 (linespec_lexer_peek_token): Save/restore completion info.
6669 (save_stream_and_consume_token): New.
6670 (set_completion_after_number): New.
6671 (linespec_parse_basic): Set what to complete next depending on
6672 token. Handle function and label completions specially.
6673 (parse_linespec): Disable objc shortcut in completion mode. Set
6674 what to complete next depending on token type. Skip keyword if in
6675 completion mode.
6676 (complete_linespec_component, linespec_complete): New.
6677 * linespec.h (linespec_complete): Declare.
6678
be966d42
PA
66792017-07-17 Pedro Alves <palves@redhat.com>
6680
6681 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
6682 Handle 'operator<' / 'operator<<'.
6683
a2459270
PA
66842017-07-17 Pedro Alves <palves@redhat.com>
6685
6686 * completer.c (collect_explicit_location_matches): Handle
6687 MATCH_LABEL.
6688 (convert_explicit_location_to_linespec): New, factored out from
6689 ...
6690 (convert_explicit_location_to_sals): ... this.
6691 (complete_label): New.
6692 (linespec_complete_label, find_label_symbols_in_block): New.
6693 (find_label_symbols): Add completion_mode parameter and adjust to
6694 call find_label_symbols_in_block.
6695 * linespec.h (linespec_complete_label): Declare.
6696
c6756f62
PA
66972017-07-17 Pedro Alves <palves@redhat.com>
6698
6699 * ada-lang.c (ada_collect_symbol_completion_matches): Add
6700 complete_symbol_mode parameter.
6701 * cli/cli-cmds.c (complete_command): Get the completion result out
6702 of the handle_brkchars tracker if used a custom word point.
6703 * completer.c: Include "linespec.h".
6704 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
6705 (advance_to_expression_complete_word_point): New.
6706 (completion_tracker::completes_to_completion_word): New.
6707 (complete_files_symbols): Pass down
6708 complete_symbol_mode::EXPRESSION.
6709 (explicit_options, probe_options): New.
6710 (collect_explicit_location_matches): Complete on the
6711 explictit_loc->foo instead of word. Use
6712 linespec_complete_function. Handle MATCH_LINE. Handle offering
6713 keyword and options completions.
6714 (backup_text_ptr): Delete.
6715 (skip_keyword): New.
6716 (complete_explicit_location): Remove 'word' parameter. Add
6717 language, quoted_arg_start and quoted_arg_end parameters.
6718 Rewrite, parsing left to right.
6719 (location_completer): Rewrite.
6720 (location_completer_handle_brkchars): New function.
6721 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
6722 (enum complete_line_internal_reason): Adjust comments.
6723 (completion_tracker::discard_completions): New.
6724 (completer_handle_brkchars_func_for_completer): Handle
6725 location_completer.
6726 (gdb_custom_word_point_brkchars)
6727 (gdb_org_rl_basic_quote_characters): New.
6728 (gdb_completion_word_break_characters_throw)
6729 (completion_find_completion_word): Handle trackers that use a
6730 custom word point.
6731 (completion_tracker::advance_custom_word_point_by): New.
6732 (completion_tracker::build_completion_result): Don't rely on
6733 readline appending the quote char.
6734 (gdb_rl_attempted_completion_function_throw): Handle trackers that
6735 use a custom word point.
6736 (gdb_rl_attempted_completion_function): Restore
6737 rl_basic_quote_characters.
6738 * completer.h (class completion_tracker): Extend intro comment.
6739 (completion_tracker::set_quote_char)
6740 (completion_tracker::quote_char)
6741 (completion_tracker::set_use_custom_word_point)
6742 (completion_tracker::use_custom_word_point)
6743 (completion_tracker::custom_word_point)
6744 (completion_tracker::set_custom_word_point)
6745 (completion_tracker::advance_custom_word_point_by)
6746 (completion_tracker::completes_to_completion_word)
6747 (completion_tracker::discard_completions): New methods.
6748 (completion_tracker::m_quote_char)
6749 (completion_tracker::m_use_custom_word_point)
6750 (completion_tracker::m_custom_word_point): New fields.
6751 (advance_to_expression_complete_word_point): Declare.
6752 * f-lang.c (f_collect_symbol_completion_matches): Add
6753 complete_symbol_mode parameter.
6754 * language.h (struct language_defn)
6755 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
6756 parameter.
6757 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
6758 (linespec_complete_function): New function.
6759 (linespec_lexer_lex_keyword): Adjust.
6760 * linespec.h (linespec_keywords, linespec_complete_function): New
6761 declarations.
6762 * location.c (find_end_quote): New function.
6763 (explicit_location_lex_one): Add explicit_completion_info
6764 parameter. Save quoting info. Don't throw if being called for
6765 completion. Don't handle Ada operators here.
6766 (is_cp_operator, skip_op_false_positives, first_of)
6767 (explicit_location_lex_one_function): New function.
6768 (string_to_explicit_location): Replace 'dont_throw' parameter with
6769 an explicit_completion_info pointer parameter. Handle it. Don't
6770 use explicit_location_lex_one to lex function names. Use
6771 explicit_location_lex_one_function instead.
6772 * location.h (struct explicit_completion_info): New.
6773 (string_to_explicit_location): Replace 'dont_throw' parameter with
6774 an explicit_completion_info pointer parameter.
6775 * symtab.c (default_collect_symbol_completion_matches_break_on):
6776 Add complete_symbol_mode parameter. Handle LINESPEC mode.
6777 (default_collect_symbol_completion_matches)
6778 (collect_symbol_completion_matches): Add complete_symbol_mode
6779 parameter.
6780 (collect_symbol_completion_matches_type): Pass down
6781 complete_symbol_mode::EXPRESSION.
6782 (collect_file_symbol_completion_matches): Add complete_symbol_mode
6783 parameter. Handle LINESPEC mode.
6784 * symtab.h (complete_symbol_mode): New.
6785 (default_collect_symbol_completion_matches_break_on)
6786 (default_collect_symbol_completion_matches)
6787 (collect_symbol_completion_matches)
6788 (collect_file_symbol_completion_matches): Add complete_symbol_mode
6789 parameter.
6790
1d550c82
PA
67912017-07-17 Pedro Alves <palves@redhat.com>
6792
6793 * utils.c (enum class strncmp_iw_mode): New.
6794 (strcmp_iw): Rename to ...
6795 (strncmp_iw_with_mode): ... this. Add string2_len and mode
6796 parameters. Handle them.
6797 (strncmp_iw): New.
6798 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
6799 * utils.h (strncmp_iw): Declare.
6800 (strcmp_iw): Move describing comments here.
6801
8090b426
PA
68022017-07-17 Pedro Alves <palves@redhat.com>
6803
6804 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
6805 CP_OPERATOR_STR.
6806 * c-typeprint.c (is_type_conversion_operator): Use
6807 CP_OPERATOR_STR.
6808 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
6809 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
6810 CP_OPERATOR_LEN.
6811 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
6812 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
6813 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
6814 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
6815 CP_OPERATOR_STR.
6816 * location.c: Include "cp-support.h".
6817 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
6818 CP_OPERATOR_STR.
6819 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
6820 CP_OPERATOR_LEN.
6821
6a2c1b87
PA
68222017-07-17 Pedro Alves <palves@redhat.com>
6823
6824 * cli/cli-cmds.c (complete_command): Use a completion tracker
6825 along with completion_find_completion_word for handle_brkchars
6826 phase.
6827 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
6828 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
6829 (struct gdb_rl_completion_word_info): New.
6830 (gdb_rl_find_completion_word): New.
6831 (completion_find_completion_word): New.
6832 * completer.h (completion_find_completion_word): Declare.
6833
eb3ff9a5
PA
68342017-07-17 Pedro Alves <palves@redhat.com>
6835
6836 * ada-lang.c (symbol_completion_match): Adjust comments.
6837 (symbol_completion_add): Replace vector parameter with
6838 completion_tracker parameter. Use it.
6839 (ada_make_symbol_completion_list): Rename to...
6840 (ada_collect_symbol_completion_matches): ... this. Add
6841 completion_tracker parameter and use it.
6842 (ada_language_defn): Adjust.
6843 * break-catch-syscall.c (catch_syscall_completer): Adjust
6844 prototype and work with completion_tracker instead of VEC.
6845 * breakpoint.c (condition_completer): Adjust prototype and work
6846 with completion_tracker instead of VEC.
6847 * c-lang.c (c_language_defn, cplus_language_defn)
6848 (asm_language_defn, minimal_language_defn): Adjust to renames.
6849 * cli/cli-cmds.c (complete_command): Rework using
6850 completion_tracker. Catch exceptions when completing.
6851 * cli/cli-decode.c (integer_unlimited_completer)
6852 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
6853 with completion_tracker instead of VEC.
6854 * command.h (struct completion_tracker): Forward declare.
6855 (completer_ftype, completer_handle_brkchars_ftype): Change
6856 types.
6857 (complete_on_cmdlist, complete_on_enum): Adjust.
6858 * completer.c: Include <algorithm>.
6859 (struct gdb_completer_state): New.
6860 (current_completion): New global.
6861 (readline_line_completion_function): Delete.
6862 (noop_completer, filename_completer)
6863 (filename_completer_handle_brkchars, complete_files_symbols)
6864 (linespec_location_completer): Adjust to work with a
6865 completion_tracker instead of a VEC.
6866 (string_or_empty): New.
6867 (collect_explicit_location_matches): Adjust to work with a
6868 completion_tracker instead of a VEC.
6869 (explicit_location_completer): Rename to ...
6870 (complete_explicit_location): ... this and adjust to work with a
6871 completion_tracker instead of a VEC.
6872 (location_completer): Adjust to work with a completion_tracker
6873 instead of a VEC.
6874 (add_struct_fields): Adjust to work with a completion_list instead
6875 of VEC.
6876 (expression_completer): Rename to ...
6877 (complete_expression): ... this and adjust to work with a
6878 completion_tracker instead of a VEC. Use complete_files_symbols.
6879 (expression_completer): Reimplement on top of complete_expression.
6880 (symbol_completer): Adjust to work with a completion_tracker
6881 instead of a VEC.
6882 (enum complete_line_internal_reason): Add describing comments.
6883 (complete_line_internal_normal_command): Adjust to work with a
6884 completion_tracker instead of a VEC.
6885 (complete_line_internal): Rename to ...
6886 (complete_line_internal_1): ... this and adjust to work with a
6887 completion_tracker instead of a VEC. Assert TEXT is NULL in the
6888 handle_brkchars phase.
6889 (new_completion_tracker): Delete.
6890 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
6891 complete_line_internal_1.
6892 (free_completion_tracker): Delete.
6893 (INITIAL_COMPLETION_HTAB_SIZE): New.
6894 (completion_tracker::completion_tracker)
6895 (completion_tracker::~completion_tracker): New.
6896 (maybe_add_completion): Delete.
6897 (completion_tracker::maybe_add_completion)
6898 (completion_tracker::add_completion)
6899 (completion_tracker::add_completions): New.
6900 (throw_max_completions_reached_error): Delete.
6901 (complete_line): Adjust to work with a completion_tracker instead
6902 of a VEC. Don't create a completion_tracker_t or check for max
6903 completions here.
6904 (command_completer, command_completer_handle_brkchars)
6905 (signal_completer, reg_or_group_completer_1)
6906 (reg_or_group_completer, default_completer_handle_brkchars):
6907 Adjust to work with a completion_tracker.
6908 (gdb_completion_word_break_characters_throw): New.
6909 (gdb_completion_word_break_characters): Reimplement.
6910 (line_completion_function): Delete.
6911 (completion_tracker::recompute_lowest_common_denominator)
6912 (expand_preserving_ws)
6913 (completion_tracker::build_completion_result)
6914 (completion_result::completion_result)
6915 (completion_result::completion_result)
6916 (completion_result::~completion_result)
6917 (completion_result::completion_result)
6918 (completion_result::release_match_list, compare_cstrings)
6919 (completion_result::sort_match_list)
6920 (completion_result::reset_match_list)
6921 (gdb_rl_attempted_completion_function_throw)
6922 (gdb_rl_attempted_completion_function): New.
6923 * completer.h (completion_list, struct completion_result)
6924 (class completion_tracker): New.
6925 (complete_line): Add completion_tracker parameter.
6926 (readline_line_completion_function): Delete.
6927 (gdb_rl_attempted_completion_function): New.
6928 (noop_completer, filename_completer, expression_completer)
6929 (location_completer, symbol_completer, command_completer)
6930 (signal_completer, reg_or_group_completer): Update prototypes.
6931 (completion_tracker_t, new_completion_tracker)
6932 (make_cleanup_free_completion_tracker): Delete.
6933 (enum maybe_add_completion_enum): Delete.
6934 (maybe_add_completion): Delete.
6935 (throw_max_completions_reached_error): Delete.
6936 * corefile.c (complete_set_gnutarget): Adjust to work with a
6937 completion_tracker instead of a VEC.
6938 * cp-abi.c (cp_abi_completer): Adjust to work with a
6939 completion_tracker instead of a VEC.
6940 * d-lang.c (d_language_defn): Adjust.
6941 * disasm.c (disassembler_options_completer): Adjust to work with a
6942 completion_tracker instead of a VEC.
6943 * f-lang.c (f_make_symbol_completion_list): Rename to ...
6944 (f_collect_symbol_completion_matches): ... this. Adjust to work
6945 with a completion_tracker instead of a VEC.
6946 (f_language_defn): Adjust.
6947 * go-lang.c (go_language_defn): Adjust.
6948 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
6949 Adjust to work with a completion_tracker instead of a VEC.
6950 * infrun.c (handle_completer): Likewise.
6951 * interps.c (interpreter_completer): Likewise.
6952 * interps.h (interpreter_completer): Likewise.
6953 * language.c (unknown_language_defn, auto_language_defn)
6954 (local_language_defn): Adjust.
6955 * language.h (language_defn::la_make_symbol_completion_list):
6956 Rename to ...
6957 (language_defn::la_collect_symbol_completion_matches): ... this
6958 and adjust to work with a completion_tracker instead of a VEC.
6959 * m2-lang.c (m2_language_defn): Adjust.
6960 * objc-lang.c (objc_language_defn): Adjust.
6961 * opencl-lang.c (opencl_language_defn): Adjust.
6962 * p-lang.c (pascal_language_defn): Adjust.
6963 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
6964 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
6965 with a completion_tracker.
6966 * rust-lang.c (rust_language_defn): Adjust.
6967 * symtab.c (free_completion_list, do_free_completion_list)
6968 (return_val, completion_tracker): Delete.
6969 (completion_list_add_name, completion_list_add_symbol)
6970 (completion_list_add_msymbol, completion_list_objc_symbol)
6971 (completion_list_add_fields, add_symtab_completions): Add
6972 completion_tracker parameter and use it.
6973 (default_make_symbol_completion_list_break_on_1): Rename to...
6974 (default_collect_symbol_completion_matches_break_on): ... this.
6975 Add completion_tracker parameter and use it instead of allocating
6976 a completion tracker here.
6977 (default_make_symbol_completion_list_break_on): Delete old
6978 implementation.
6979 (default_make_symbol_completion_list): Delete.
6980 (default_collect_symbol_completion_matches): New.
6981 (make_symbol_completion_list): Delete.
6982 (collect_symbol_completion_matches): New.
6983 (make_symbol_completion_type): Rename to ...
6984 (collect_symbol_completion_matches_type): ... this. Add
6985 completion_tracker parameter and use it instead of VEC.
6986 (make_file_symbol_completion_list_1): Rename to...
6987 (collect_file_symbol_completion_matches): ... this. Add
6988 completion_tracker parameter and use it instead of VEC.
6989 (make_file_symbol_completion_list): Delete.
6990 (add_filename_to_list): Use completion_list instead of a VEC.
6991 (add_partial_filename_data::list): Now a completion_list.
6992 (make_source_files_completion_list): Work with a completion_list
6993 instead of a VEC.
6994 * symtab.h: Include "completer.h".
6995 (default_make_symbol_completion_list_break_on)
6996 (default_make_symbol_completion_list, make_symbol_completion_list)
6997 (make_symbol_completion_type, make_file_symbol_completion_list)
6998 (make_source_files_completion_list): Delete.
6999 (default_collect_symbol_completion_matches_break_on)
7000 (default_collect_symbol_completion_matches)
7001 (collect_symbol_completion_matches)
7002 (collect_symbol_completion_matches_type)
7003 (collect_file_symbol_completion_matches)
7004 (make_source_files_completion_list): New.
7005 * top.c (init_main): Don't install a rl_completion_entry_function
7006 hook. Install a rl_attempted_completion_function hook instead.
7007 * tui/tui-layout.c (layout_completer): Adjust to work with a
7008 completion_tracker.
7009 * tui/tui-regs.c (tui_reggroup_completer):
7010 * tui/tui-win.c (window_name_completer, focus_completer)
7011 (winheight_completer): Adjust to work with a completion_tracker.
7012 * value.c: Include "completer.h".
7013 (complete_internalvar): Adjust to work with a completion_tracker.
7014 * value.h (complete_internalvar): Likewise.
7015
6e1dbf8c
PA
70162017-07-17 Pedro Alves <palves@redhat.com>
7017
7018 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
7019 renames.
7020 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
7021 comments to completer_ftype's declaration.
7022 <completer_handle_brkchars>: Change type to
7023 completer_handle_brkchars_ftype.
7024 * command.h (completer_ftype): Add describing comment and give
7025 names to parameters.
7026 (completer_ftype_void): Rename to ...
7027 (completer_handle_brkchars_ftype) ... this. Add describing comment.
7028 (set_cmd_completer_handle_brkchars): Adjust.
7029 * completer.c (filename_completer_handle_brkchars): New function.
7030 (complete_line_internal_normal_command): New function, factored
7031 out from ...
7032 (complete_line_internal): ... here.
7033 (command_completer_handle_brkchars)
7034 (default_completer_handle_brkchars)
7035 (completer_handle_brkchars_func_for_completer): New functions.
7036 * completer.h (set_gdb_completion_word_break_characters): Delete
7037 declaration.
7038 (completer_handle_brkchars_func_for_completer): New declaration.
7039 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
7040 completer_handle_brkchars_func_for_completer.
7041
78b13106
PA
70422017-07-17 Pedro Alves <palves@redhat.com>
7043
7044 * completer.c (symbol_completer): New function, based on
7045 make_symbol_completion_list_fn.
7046 * completer.h (symbol_completer): New declaration.
7047 * guile/scm-cmd.c (cmdscm_completers): Adjust.
7048 * python/py-cmd.c (completers): Adjust.
7049 * symtab.c (make_symbol_completion_list_fn): Delete.
7050 * symtab.h (make_symbol_completion_list_fn): Delete.
7051 * cli/cli-decode.c (add_cmd): Adjust.
7052
bbf2f4df
PA
70532017-07-17 Pedro Alves <palves@redhat.com>
7054
7055 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
7056 * dwarf2read.c: Include "filename-seen-cache.h".
7057 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
7058 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
7059 * filename-seen-cache.c: New file.
7060 * filename-seen-cache.h: New file.
7061 * symtab.c: Include "filename-seen-cache.h".
7062 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
7063 (create_filename_seen_cache, clear_filename_seen_cache)
7064 (delete_filename_seen_cache, filename_seen): Delete, parts moved
7065 to filename-seen-cache.h/filename-seen-cache.c.
7066 (output_source_filename, sources_info)
7067 (maybe_add_partial_symtab_filename)
7068 (make_source_files_completion_list): Adjust to use
7069 filename_seen_cache.
7070
330cdd98
PA
70712017-07-17 Pedro Alves <palves@redhat.com>
7072
7073 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
7074 fields.
7075 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
7076 dwarf2_debug_sections*)): New.
7077 (dwarf2_per_objfile::dwarf2_per_objfile(const
7078 dwarf2_per_objfile&)): Declare as deleted.
7079 (dwarf2_per_objfile::operator=): Declare as deleted.
7080 (dwarf2_per_objfile::dwarf2_per_objfile)
7081 (dwarf2_per_objfile::~dwarf2_per_objfile)
7082 (dwarf2_per_objfile::free_cached_comp_units): New.
7083 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
7084 ctor. Call dwarf2_per_objfile's ctor manually.
7085 (dwarf2_locate_sections): Deleted/refactored as ...
7086 (dwarf2_per_objfile::locate_sections): ... this new method.
7087 (free_cached_comp_units): Defer to
7088 dwarf2_per_objfile::free_cached_comp_units.
7089 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
7090
8880f2a9
TT
70912017-07-14 Tom Tromey <tom@tromey.com>
7092
7093 PR rust/21764:
7094 * rust-exp.y (convert_ast_to_expression): Add "want_type"
7095 parameter.
7096 <UNOP_SIZEOF>: Split into separate case.
7097 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
7098
65547233
TT
70992017-07-14 Tom Tromey <tom@tromey.com>
7100
7101 PR rust/21763:
7102 * symtab.c (symbol_matches_domain): Add language_rust to special
7103 case.
7104 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
7105 treat LOC_TYPEDEF symbols as variables.
7106
8f14146e
PA
71072017-07-14 Pedro Alves <palves@redhat.com>
7108
7109 * symtab.c (make_file_symbol_completion_list_1): Iterate over
7110 symtabs matching all symtabs with SRCFILE as file name instead of
7111 only considering the first hit, with lookup_symtab.
7112
2347965c
SM
71132017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7114
7115 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
7116 operator_name parameters.
7117 (gen_expr): Update function call.
7118
40f4af28
SM
71192017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7120
7121 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
7122 parameter.
7123 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
7124 Likewise.
7125 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
7126 parameter, use agent_expr::gdbarch instead, update function
7127 calls.
7128 (locexpr_tracepoint_var_ref): Likewise.
7129 (loclist_tracepoint_var_ref): Likewise.
7130 * ax-gdb.c (gen_trace_static_fields): Likewise.
7131 (gen_traced_pop): Likewise.
7132 (gen_frame_args_address): Likewise.
7133 (gen_frame_locals_address): Likewise.
7134 (gen_var_ref): Likewise.
7135 (gen_struct_ref_recursive): Likewise.
7136 (gen_static_field): Likewise.
7137 (gen_maybe_namespace_elt): Likewise.
7138 (gen_expr): Likewise.
7139 (gen_trace_for_var): Likewise.
7140 (gen_trace_for_expr): Likewise.
7141 (gen_trace_for_return_address): Likewise.
7142
053f8057
SM
71432017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7144
7145 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
7146 parameter.
7147 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
7148
6661ad48
SM
71492017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7150
7151 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
7152 from ax, update calls.
7153 (gen_usual_arithmetic): Likewise.
7154 (gen_integral_promotions): Likewise.
7155 (gen_bitfield_ref): Likewise.
7156 (gen_primitive_field): Likewise.
7157 (gen_struct_ref_recursive): Likewise.
7158 (gen_struct_ref): Likewise.
7159 (gen_maybe_namespace_elt): Likewise.
7160 (gen_struct_elt_for_reference): Likewise.
7161 (gen_namespace_elt): Likewise.
7162 (gen_aggregate_elt_ref): Likewise.
7163 (gen_expr): Get gdbarch from ax, update calls.
7164 (gen_expr_binop_rest): Likewise.
7165
c55a47e7
PA
71662017-07-13 Pedro Alves <palves@redhat.com>
7167
7168 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
7169 as default tdesc.
7170 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
7171 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
7172 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
7173 tdesc_amd64_linux as default tdesc. Get final tdesc from the
7174 tdep.
7175 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
7176 Get final tdesc from the tdep.
7177 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
7178 default tdesc.
7179 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
7180 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
7181 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
7182 Use it as default tdesc.
7183 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
7184 down to amd_init_abi. No longer handle fallback tdesc here.
7185 * amd64-tdep.h (tdesc_x32): Declare.
7186 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
7187 parameter.
7188 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
7189 as default tdesc.
7190
55efceab
AA
71912017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7192
7193 * s390-linux-tdep.c (s390_process_record): Add support for
7194 instructions new in arch12.
7195
0aa37b65
JB
71962017-07-11 John Baldwin <jhb@FreeBSD.org>
7197
7198 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
7199 PT_GETFSBASE and PT_GETGSBASE.
7200 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
7201 PT_SETGSBASE.
7202
48aeef91
JB
72032017-07-11 John Baldwin <jhb@FreeBSD.org>
7204
7205 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
7206 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
7207 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
7208 those rules.
7209 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
7210 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
7211 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
7212 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
7213 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
7214 * features/i386/amd64.xml: Add 64bit-segments.xml.
7215 * features/i386/amd64-avx-avx512.c: Regenerated.
7216 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
7217 * features/i386/amd64-avx-mpx.c: Regenerated.
7218 * features/i386/amd64-avx.c: Regenerated.
7219 * features/i386/amd64-mpx.c: Regenerated.
7220 * features/i386/amd64.c: Regenerated.
7221 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
7222 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
7223 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
7224 * regformats/i386/amd64-avx.dat: Regenerated.
7225 * regformats/i386/amd64-mpx.dat: Regenerated.
7226 * regformats/i386/amd64.dat: Regenerated.
7227
77c501bc
YQ
72282017-07-10 Yao Qi <yao.qi@linaro.org>
7229
7230 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
7231 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
7232
6dc8d757
AK
72332017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
7234
7235 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
7236 unsetenv.
7237 * gnulib/aclocal.m4: Regenerate.
7238 * gnulib/config.in: Regenerate.
7239 * gnulib/configure: Regenerate.
7240 * gnulib/import/Makefile.am: Regenerate.
7241 * gnulib/import/Makefile.in: Regenerate.
7242 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
7243 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
7244 * gnulib/import/m4/environ.m4: New file.
7245 * gnulib/import/m4/setenv.m4: New file.
7246 * gnulib/import/setenv.c: New file.
7247 * gnulib/import/unsetenv.c: New file.
7248
266934d1
SM
72492017-07-09 Simon Marchi <simon.marchi@ericsson.com>
7250
7251 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
7252 address when op is DW_OP_addr.
7253
03278692
TT
72542017-07-09 Tom Tromey <tom@tromey.com>
7255
7256 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
7257 check and apply to outer type.
7258
4b654465
JB
72592017-07-07 John Baldwin <jhb@FreeBSD.org>
7260
7261 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
7262 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
7263 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
7264 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
7265
2af9fc44
JB
72662017-07-07 John Baldwin <jhb@FreeBSD.org>
7267
7268 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
7269
382b69bb
JB
72702017-07-07 John Baldwin <jhb@FreeBSD.org>
7271
7272 * corelow.c (get_core_siginfo): Remove.
7273 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
7274 instead of get_core_siginfo.
7275 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
7276 * gdbarch.h: Re-generate.
7277 * gdbarch.c: Re-generate.
7278 * linux-tdep.c (linux_core_xfer_siginfo): New.
7279 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
7280
6e5eab33
JB
72812017-07-07 John Baldwin <jhb@FreeBSD.org>
7282
7283 * corelow.c (thread_section_name): Move to ...
7284 * gdbcore.h (thread_section_name): ... here.
7285
929edea9
JB
72862017-07-07 John Baldwin <jhb@FreeBSD.org>
7287
7288 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
7289 (struct siginfo32): New.
7290 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
7291 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
7292 via ptrace(PT_LWPINFO).
7293
762c974a
JB
72942017-07-07 John Baldwin <jhb@FreeBSD.org>
7295
7296 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
7297 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
7298 (fbsd_get_siginfo_type): New.
7299 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
7300 (_initialize_fbsd_tdep): New.
7301
33c5cd75
DB
73022017-07-06 David Blaikie <dblaikie@gmail.com>
7303
7304 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
7305 a singular dwo_unit*) to support multiple CUs in the same way that
7306 multiple TUs are supported.
7307 (create_cus_hash_table): Replace create_dwo_cu with a function for
7308 parsing multiple CUs from a DWO file.
7309 (open_and_init_dwo_file): Use create_cus_hash_table rather than
7310 create_dwo_cu.
7311 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
7312 htab_find, rather than comparing the signature to a singleton CU in
7313 the dwo_file.
7314
8455d262
PA
73152017-07-06 Pedro Alves <palves@redhat.com>
7316
7317 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
7318
4da3eb35
PA
73192017-07-04 Pedro Alves <palves@redhat.com>
7320
7321 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
7322 * gdbtypes.h (TYPE_STATIC): Delete.
7323 (struct fn_field) <is_public, is_abstract, is_static, is_final,
7324 is_synchronized, is_native>: Delete.
7325 <dummy>: Bump.
7326 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
7327 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
7328 (TYPE_FN_FIELD_ABSTRACT): Delete.
7329
5bfd255c
SM
73302017-07-03 Simon Marchi <simon.marchi@ericsson.com>
7331
7332 * buffer.h (buffer_finish): Fix spelling mistakes.
7333
25c54127
EZ
73342017-07-01 Eli Zaretskii <eliz@gnu.org>
7335
7336 * .dir-locals.el: Automatically switch to C-style comments in
7337 versions of Emacs that support the feature.
7338
dc4bde35
SDJ
73392017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
7340 Pedro Alves <palves@redhat.com>
7341
7342 PR cli/21688
7343 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
7344 (process_next_line): New variable 'inline_cmd'.
7345 Adjust 'if' clauses for "python", "compile" and "guile" to use
7346 'command_name_equals' and check for '!inline_cmd'.
7347
51ed89aa
SDJ
73482017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
7349
7350 PR cli/21688
7351 * cli/cli-script.c (command_name_equals_not_inline): New function.
7352 (process_next_line): Adjust 'if' clauses for "python", "compile"
7353 and "guile" to use command_name_equals_not_inline.
7354
eb17d413
PA
73552017-06-29 Pedro Alves <palves@redhat.com>
7356
7357 * completer.c (expression_completer): Call
7358 linespec_location_completer instead of location_completer.
7359
195bcdd5
PA
73602017-06-29 Pedro Alves <palves@redhat.com>
7361
7362 * completer.c (expression_completer): Remove code that recomputes
7363 'text' from 'word'.
7364
adc764e7
YQ
73652017-06-29 Yao Qi <yao.qi@linaro.org>
7366
7367 * regformats/regdat.sh: Generate code with
7368 "ifndef IN_PROCESS_AGENT".
7369
6e75794e
PA
73702017-06-28 Pedro Alves <palves@redhat.com>
7371
7372 * command.h: Include "common/scoped_restore.h".
7373
bc491f2e
YQ
73742017-06-28 Yao Qi <yao.qi@linaro.org>
7375
7376 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
7377 instead of obstack_grow.
7378
41664b45
DG
73792017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
7380
7381 PR gdb/21337
7382 * symfile.c (reread_symbols): Call objfiles_changed just before
7383 read_symbols.
7384
6da67eb1
PA
73852017-06-27 Pedro Alves <palves@redhat.com>
7386
7387 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
7388 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
7389 (completion_list_add_symbol, completion_list_add_msymbol):
7390 ... these new functions.
7391 (add_symtab_completions)
7392 (default_make_symbol_completion_list_break_on_1): Adjust.
7393
23732b1e
PA
73942017-06-27 Pedro Alves <palves@redhat.com>
7395
7396 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
7397 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
7398 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
7399 dtor.
7400 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
7401 'storage_obstack' field an auto_obstack. In-class initialize all
7402 non-bitfield fields. Make minsyms_read bool.
7403 * symfile.c (read_symbols): Adjust.
7404
a4d1e79a
AH
74052017-06-27 Alan Hayward <alan.hayward@arm.com>
7406
7407 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
7408 (gdbsim_store_register): Likewise.
7409
8268c778
PA
74102017-06-27 Pedro Alves <palves@redhat.com>
7411
7412 * c-exp.y (name_obstack): Now an auto_obstack.
7413 (yylex): Use auto_obstack::clear.
7414 (c_parse): Use auto_obstack::clear instead of reinitializing and
7415 freeing the obstack.
7416 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
7417 * d-exp.y (name_obstack): Now an auto_obstack.
7418 (yylex): Use auto_obstack::clear.
7419 (d_parse): Use auto_obstack::clear instead of reinitializing and
7420 freeing the obstack.
7421 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
7422 auto_obstack.
7423 * dwarf2read.c (create_addrmap_from_index)
7424 (dwarf2_build_psymtabs_hard)
7425 (update_enumeration_type_from_children): Likewise.
7426 * gdb_obstack.h (auto_obstack): New type.
7427 * go-exp.y (name_obstack): Now an auto_obstack.
7428 (build_packaged_name): Use auto_obstack::clear.
7429 (go_parse): Use auto_obstack::clear instead of reinitializing and
7430 freeing the obstack.
7431 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
7432 auto_obstack.
7433 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
7434 * rust-exp.y (work_obstack): Now an auto_obstack.
7435 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
7436 reinitializing and freeing the obstack.
7437 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
7438 (host_char_to_target): Use auto_obstack.
7439 * utils.h (make_cleanup_obstack_free): Delete declaration.
7440 * valprint.c (generic_emit_char, generic_printstr): Use
7441 auto_obstack.
7442
db665f42
SM
74432017-06-27 Simon Marchi <simon.marchi@ericsson.com>
7444
7445 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
7446 thread.
7447 (darwin_init_thread_list): Don't update dummy thread.
7448 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
7449
873c0814
SM
74502017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7451
7452 * record-full.c (netorder16): Remove.
7453
8b5a7a6e
SM
74542017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7455
7456 * common/diagnostics.h: Define macros for GCC.
7457 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
7458 * common/vec.h: Include diagnostics.h.
7459 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
7460 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
7461 warning.
7462
d1435379
SM
74632017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7464
7465 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
7466 New macro.
7467 * ada-lex.l: Ignore deprecated register warnings.
7468
cc75e0fd
SM
74692017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7470
7471 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
7472 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
7473
07809eaf
SM
74742017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7475
7476 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
7477 its own line.
7478
f076f034
SM
74792017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7480
7481 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
7482
0dd5cbc5
AH
74832017-06-23 Alan Hayward <alan.hayward@arm.com>
7484
7485 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
7486 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
7487 (xtensa_register_read_masked): Likewise.
7488
d4c6ce5b
SDJ
74892017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
7490
7491 * common/environ.c (gdb_environ::unset): Update comment.
7492
16892a03
AH
74932017-06-22 Alan Hayward <alan.hayward@arm.com>
7494
7495 * python/py-unwind.c (pyuw_sniffer): Allocate space for
7496 registers.
7497
d7dcbefc
AH
74982017-06-22 Alan Hayward <alan.hayward@arm.com>
7499
7500 * record-full.c (record_full_exec_insn): Use byte_vector.
7501
b30ff123
YQ
75022017-06-22 Yao Qi <yao.qi@linaro.org>
7503
7504 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
7505 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
7506
4fa847d7
AH
75072017-06-22 Alan Hayward <alan.hayward@arm.com>
7508
7509 * remote.c (cached_reg): Move from here...
7510 * regcache.h (cached_reg): ...to here.
7511 * python/py-unwind.c (struct reg_info): Remove.
7512 (cached_frame_info): Use cached_reg_t.
7513 (pyuw_prev_register): Likewise.
7514 (pyuw_sniffer): Use cached_reg_t and allocate registers.
7515 (pyuw_dealloc_cache): Free all registers.
7516
f4906a9a
PA
75172017-06-22 Pedro Alves <palves@redhat.com>
7518 Simon Marchi <simon.marchi@ericsson.com>
7519
7520 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
7521 warning.
7522 * common/diagnostics.h: New file.
7523
b45a1208
PA
75242017-06-22 Pedro Alves <palves@redhat.com>
7525
7526 * common/agent.h: Add include guards.
7527
e4da2c61
SM
75282017-06-21 Simon Marchi <simon.marchi@ericsson.com>
7529
7530 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
7531 talk about addressable units instead of bytes.
7532
96160d60
SDJ
75332017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7534
7535 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
7536 of '::const_iterator'.
7537
9a6c7d9c
SDJ
75382017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7539
7540 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7541 'unittests/environ-selftests.c'.
7542 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
7543 * charset.c (find_charset_names): Declare object 'iconv_env'.
7544 Update code to use 'iconv_env' object. Remove call to
7545 'free_environ'.
7546 * common/environ.c: Include <utility>.
7547 (make_environ): Delete function.
7548 (free_environ): Delete function.
7549 (gdb_environ::clear): New function.
7550 (gdb_environ::operator=): New function.
7551 (gdb_environ::get): Likewise.
7552 (environ_vector): Delete function.
7553 (set_in_environ): Delete function.
7554 (gdb_environ::set): New function.
7555 (unset_in_environ): Delete function.
7556 (gdb_environ::unset): New function.
7557 (gdb_environ::envp): Likewise.
7558 * common/environ.h: Include <vector>.
7559 (struct gdb_environ): Delete; transform into...
7560 (class gdb_environ): ... this class.
7561 (free_environ): Delete prototype.
7562 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
7563 environ_vector): Likewise.
7564 * infcmd.c (run_command_1): Update code to call
7565 'envp' from 'gdb_environ' class.
7566 (environment_info): Update code to call methods from 'gdb_environ'
7567 class.
7568 (unset_environment_command): Likewise.
7569 (path_info): Likewise.
7570 (path_command): Likewise.
7571 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
7572 (inferior::inferior): Initialize 'environment' using the host's
7573 information.
7574 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
7575 Include "environ.h".
7576 (class inferior) <environment>: Change type from 'struct
7577 gdb_environ' to 'gdb_environ'.
7578 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
7579 methods from 'gdb_environ' class.
7580 * solib.c (solib_find_1): Likewise
7581 * unittests/environ-selftests.c: New file.
7582
75c554cf
YQ
75832017-06-20 Yao Qi <yao.qi@linaro.org>
7584
7585 * features/i386/i386-linux.xml: Exchange the order of including
7586 32bit-linux.xml and 32bit-sse.xml.
7587 * features/i386/i386-linux.c: Regenerated.
7588
72ddacb7
YQ
75892017-06-20 Yao Qi <yao.qi@linaro.org>
7590
7591 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
7592 Delete copy ctor and assignment operator.
7593 (tdesc_type): Likewise.
7594 (tdesc_feature): Likewise.
7595 (tdesc_free_reg): Remove.
7596 (tdesc_create_reg): Use new.
7597 (tdesc_free_type): Remove.
7598 (tdesc_create_vector): Use new.
7599 (tdesc_create_union): Likewise.
7600 (tdesc_create_flags): Likewise.
7601 (tdesc_create_enum): Likewise.
7602 (tdesc_free_feature): Delete.
7603 (free_target_description): Use delete.
7604
325c9fd4
JB
76052017-06-19 John Baldwin <jhb@FreeBSD.org>
7606
7607 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
7608 registers.
7609
16b7a719
PA
76102017-06-19 Pedro Alves <palves@redhat.com>
7611
7612 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
7613 after gdb::unlinker.
7614
1c8e01c9
SDJ
76152017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
7616
7617 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
7618 gdb_environ to access an environment variable.
7619
ffce45d2
TP
76202017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7621
7622 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
7623 gdb_byte*.
7624
1d4fbac9
SM
76252017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7626
7627 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
7628
8465943a
SM
76292017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7630
7631 * configure: Re-generate.
7632 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
7633
3e019bdc
SM
76342017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7635
7636 * configure: Re-generate.
7637 * warning.m4: Pass -Werror to compiler when checking for
7638 supported warning flags.
7639
cf0dd6f0
SM
76402017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7641
7642 * Makefile.in (COMPILE.pre): Add "-x c++".
7643
6f98355c
YQ
76442017-06-16 Alan Hayward <alan.hayward@arm.com>
7645 Pedro Alves <palves@redhat.com>
7646 Yao Qi <yao.qi@linaro.org>
7647
7648 * defs.h (RequireLongest): New.
7649 (extract_integer): Declare function template.
7650 (extract_signed_integer): Remove the declaration, but define it
7651 static inline.
7652 (extract_unsigned_integer): Likewise.
7653 (store_integer): Declare function template.
7654 (store_signed_integer): Remove the declaration, but define it
7655 static inline.
7656 (store_unsigned_integer): Likewise.
7657 * findvar.c (extract_integer): New function template.
7658 (extract_signed_integer): Remove.
7659 (extract_unsigned_integer): Remove.
7660 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
7661 instantiations.
7662 (store_integer): New function template.
7663 (store_signed_integer): Remove.
7664 (store_unsigned_integer): Remove.
7665 (store_integer): Explicit instantiations.
7666 * regcache.c (regcache_raw_read_signed): Update.
7667 (regcache::raw_read): New function.
7668 (regcache::raw_read_signed): Remove.
7669 (regcache::raw_read_unsigned): Remove.
7670 (regcache_raw_read_unsigned): Update.
7671 (regcache_raw_write_unsigned): Update.
7672 (regcache::raw_write_signed): Remove.
7673 (regcache::raw_write): New function.
7674 (regcache_cooked_read_signed): Update.
7675 (regcache::raw_write_unsigned): Remove.
7676 (regcache::cooked_read_signed): Remove.
7677 (regcache_cooked_read_unsigned): Update.
7678 (regcache::cooked_read_unsigned): Remove.
7679 (regcache_cooked_write_signed): Update.
7680 (regcache_cooked_write_unsigned): Update.
7681 * regcache.h (regcache) <raw_read_signed>: Remove.
7682 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
7683 <raw_read, raw_write>: New.
7684 <cooked_read_signed, cooked_write_signed>: Remove.
7685 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
7686 <cooked_read, cooked_write>: New.
7687 * sh64-tdep.c (sh64_pseudo_register_read): Update.
7688 (sh64_pseudo_register_write): Update.
7689
a87dc45a
AK
76902017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
7691
7692 * arc-tdep.c (arc_disassembler_options): New variable.
7693 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
7694 of default_print_insn.
7695 (arc_delayed_print_insn): Set info->section when needed,
7696 use default_print_insn to retrieve a disassembler.
7697
45159d6a
SDJ
76982017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
7699
7700 PR gdb/21574
7701 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
7702 to mention $SHELL and startup-with-shell.
7703
b46c4cf0
MF
77042017-06-14 Max Filippov <jcmvbkbc@gmail.com>
7705
7706 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
7707
6394c606
YQ
77082017-06-14 Yao Qi <yao.qi@linaro.org>
7709
7710 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
7711 default_print_insn instead of print_insn_aarch64.
7712 * arm-tdep.c (gdb_print_insn_arm): Call
7713 default_print_insn instead of print_insn_big_arm
7714 and print_insn_little_arm.
7715 * i386-tdep.c (i386_print_insn): Call default_print_insn
7716 instead of print_insn_i386.
7717 * ia64-tdep.c (ia64_print_insn): Call
7718 default_print_insn instead of print_insn_ia64.
7719 * mips-tdep.c (gdb_print_insn_mips): Call
7720 default_print_insn instead of print_insn_big_mips
7721 and print_insn_little_mips.
7722 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
7723 instead of print_insn_spu.
7724
d5722aa2
PA
77252017-06-14 Pedro Alves <palves@redhat.com>
7726
7727 * ada-lang.c: Include "common/byte-vector.h".
7728 (ada_value_primitive_packed_val): Use gdb::byte_vector.
7729 * charset.c (wchar_iterator::iterate): Resize the vector instead
7730 of reserving it.
7731 * common/byte-vector.h: Include "common/def-vector.h".
7732 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
7733 * cli/cli-dump.c: Include "common/byte-vector.h".
7734 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
7735 * common/byte-vector.h: New file.
7736 * common/def-vector.h: New file.
7737 * common/default-init-alloc.h: New file.
7738 * dwarf2loc.c: Include "common/byte-vector.h".
7739 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
7740 instead of reserving it.
7741 * dwarf2read.c: Include "common/byte-vector.h".
7742 (data_buf::m_vec): Now a gdb::byte_vector.
7743 * gdb_regex.c: Include "common/def-vector.h".
7744 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
7745 * mi/mi-main.c: Include "common/byte-vector.h".
7746 (mi_cmd_data_read_memory): Use gdb::byte_vector.
7747 * printcmd.c: Include "common/byte-vector.h".
7748 (print_scalar_formatted): Use gdb::byte_vector.
7749 * valprint.c: Include "common/byte-vector.h".
7750 (maybe_negate_by_bytes, print_decimal_chars): Use
7751 gdb::byte_vector.
7752
01ec7a27
SM
77532017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7754
7755 * darwin-nat.c: Include "nat/fork-inferior.h".
7756
848d9074
SM
77572017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7758
7759 * configure.nat: Factor out Darwin bits that are not
7760 architecture-specific. Add fork-inferior.o.
7761
3b912944
SM
77622017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7763
7764 * configure.nat: Factor out AIX bits that are not
7765 architecture-specific. Add fork-inferior.o.
7766
55acdf22
AA
77672017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7768
7769 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
7770 (read_pieced_value, write_pieced_value): ...here. Reduce to
7771 wrappers that just call rw_pieced_value.
7772
f65e2044
AA
77732017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7774
7775 * dwarf2loc.c (write_pieced_value): When writing the data for a
7776 memory piece, use write_memory_with_notification instead of
7777 write_memory.
7778
23f945bf
AA
77792017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7780
7781 * valops.c (read_value_memory): Change embedded_offset to
7782 represent a bit offset instead of a byte offset.
7783 * value.h (read_value_memory): Adjust comment.
7784
f236533e
AA
77852017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7786
7787 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
7788 dest_offset_bits and source_offset_bits.
7789 (write_pieced_value): Likewise.
7790
65d84b76
AA
77912017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7792
7793 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
7794 given by DW_OP_bit_piece.
7795 (write_pieced_value): Likewise.
7796
242d31ab
AA
77972017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7798
7799 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
7800 some other preparations to the places where sufficient information
7801 is available.
7802 (write_pieced_value): Likewise.
7803
03c8af18
AA
78042017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7805
7806 * dwarf2loc.c (bits_to_bytes): New function.
7807 (read_pieced_value): Fix offset calculations for register pieces
7808 on big-endian targets.
7809 (write_pieced_value): Likewise.
7810
840989c1
AA
78112017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7812
7813 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
7814 (write_pieced_value): Likewise.
7815
359b19bb
AA
78162017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7817
7818 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
7819 transfer the source value's least significant bits, instead of its
7820 lowest-addressed ones. Rename type_len to max_offset.
7821 (read_pieced_value): Mirror above changes to write_pieced_value as
7822 applicable.
7823
07c9ca3b
AA
78242017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7825
7826 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
7827 truncate full bytes from dest_offset_bits before using it as an
7828 offset into the buffer.
7829
f1cc9874
AA
78302017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7831
7832 * dwarf2loc.c (write_pieced_value): Include transfer size in
7833 byte-wise check.
7834
cdaac320
AA
78352017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7836
7837 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
7838 calculation of this_size.
7839
af547a96
AA
78402017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7841
7842 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
7843 when targeting a bit-field.
7844 (write_pieced_value): Likewise.
7845
ddd7882a
AA
78462017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7847
7848 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
7849 (allocate_piece_closure): Drop addr_size parameter.
7850 (dwarf2_evaluate_loc_desc_full): Adjust call to
7851 allocate_piece_closure.
7852
e9352324
AA
78532017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7854
7855 PR gdb/21226
7856 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
7857 the LSB end, independent of endianness.
7858
d5d1163e
AA
78592017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7860
7861 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
7862 size capping.
7863
032bb6ea
YQ
78642017-06-13 Yao Qi <yao.qi@linaro.org>
7865
7866 * mips-linux-nat.c: Move include features/mips*-linux.c to
7867 mips-linux-tdep.c.
7868 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
7869 to mips-linux-tdep.c.
7870 * mips-linux-tdep.c: Include features/mips*-linux.c
7871 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
7872 functions.
7873 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
7874 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
7875 (tdesc_mips64_dsp_linux): Declare.
7876
f12f6bad
TT
78772017-06-12 Tom Tromey <tom@tromey.com>
7878
7879 * valprint.h (val_print_type_code_int): Remove.
7880 * valprint.c (generic_val_print_int): Always call
7881 val_print_scalar_formatted.
7882 (val_print_type_code_int): Remove.
7883 * printcmd.c (print_scalar_formatted): Handle options->format==0.
7884 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
7885 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
7886 * ada-valprint.c (ada_val_print_num): Use
7887 val_print_scalar_formatted.
7888
d9109c80
TT
78892017-06-12 Tom Tromey <tom@tromey.com>
7890
7891 * printcmd.c (print_scalar_formatted): Unify the two switches.
7892 Don't convert scalars to LONGEST.
7893
4ac0cb1c
TT
78942017-06-12 Tom Tromey <tom@tromey.com>
7895
7896 PR exp/16225:
7897 * valprint.h (print_decimal_chars): Update.
7898 * valprint.c (maybe_negate_by_bytes): New function.
7899 (print_decimal_chars): Add "is_signed" argument.
7900 * printcmd.c (print_scalar_formatted): Update.
7901
30a25466
TT
79022017-06-12 Tom Tromey <tom@tromey.com>
7903
7904 PR exp/16225:
7905 * valprint.h (print_binary_chars, print_hex_chars): Update.
7906 * valprint.c (val_print_type_code_int): Update.
7907 (print_binary_chars): Add "zero_pad" argument.
7908 (emit_octal_digit): New function.
7909 (print_octal_chars): Don't zero-pad.
7910 (print_decimal_chars): Likewise.
7911 (print_hex_chars): Add "zero_pad" argument.
7912 * sh64-tdep.c (sh64_do_fp_register): Update.
7913 * regcache.c (regcache::dump): Update.
7914 * printcmd.c (print_scalar_formatted): Update.
7915 * infcmd.c (default_print_one_register_info): Update.
7916
b3464d03
PA
79172017-06-12 Pedro Alves <palves@redhat.com>
7918 Alan Hayward <alan.hayward@arm.com>
7919
7920 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
7921 (mips_eabi_push_dummy_call): Rename local 'regsize' to
7922 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
7923 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
7924 Assert that abi_regsize bytes fit in 'ref_valbuf'.
7925
4b76cda9
PA
79262017-06-12 Pedro Alves <palves@redhat.com>
7927
7928 * dwarf2read.c (mapped_symtab::data): Now a vector of
7929 symtab_index_entry instead of vector of
7930 std::unique_ptr<symtab_index_entry>. All users adjusted to check
7931 whether an element's name is NULL instead of checking whether the
7932 element itself is NULL.
7933 (find_slot): Change return type. Adjust.
7934 (hash_expand, , add_index_entry, uniquify_cu_indices)
7935 (write_hash_table): Adjust.
7936
e8f8bcb3
PA
79372017-06-12 Pedro Alves <palves@redhat.com>
7938
7939 * dwarf2read.c (recursively_count_psymbols): New function.
7940 (write_psymtabs_to_index): Call it to compute number of psyms and
7941 pass estimate size of psyms_seen to unordered_set's ctor.
7942
70a1152b
PA
79432017-06-12 Pedro Alves <palves@redhat.com>
7944
7945 * dwarf2read.c (write_hash_table): Check if key already exists
7946 before emplacing.
7947
c2f134ac
PA
79482017-06-12 Pedro Alves <palves@redhat.com>
7949
7950 * dwarf2read.c (data_buf::append_space): Rename to...
7951 (data_buf::grow): ... this, and make private. Adjust all callers.
7952 (data_buf::append_uint): New method.
7953 (add_address_entry, write_one_signatured_type)
7954 (write_psymtabs_to_index): Use it.
7955
a81e6d4d
PA
79562017-06-12 Pedro Alves <palves@redhat.com>
7957
7958 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
7959 (file_write (FILE *, const std::vector<Elem>&)): Delete.
7960 (data_buf::file_write): Call ::fwrite directly.
7961
6fd931f2
PA
79622017-06-12 Pedro Alves <palves@redhat.com>
7963
7964 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
7965 std::vector::erase.
7966
bc8f2430
JK
79672017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7968
7969 Code cleanup: C++ify .gdb_index producer.
7970 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
7971 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
7972 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
7973 (create_strtab, add_string): Remove.
7974 (file_write, data_buf): New.
7975 (struct symtab_index_entry): Use std::vector for cu_indices.
7976 (struct mapped_symtab): Use std::vector for data.
7977 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
7978 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
7979 Remove.
7980 (find_slot): Change return type. Update it to the new data structures.
7981 (hash_expand, add_index_entry): Update it to the new data structures.
7982 (offset_type_compare): Remove.
7983 (uniquify_cu_indices): Update it to the new data structures.
7984 (c_str_view, c_str_view_hasher, vector_hasher): New.
7985 (add_indices_to_cpool): Remove.
7986 (write_hash_table): Update it to the new data structures.
7987 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
7988 (eq_psymtab_cu_index): Remove.
7989 (psym_index_map): New typedef.
7990 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
7991 reference and std::unordered_map for cu_index_htab.
7992 (add_address_entry, add_address_entry_worker, write_address_map)
7993 (write_psymbols): Update it to the new data structures.
7994 (write_obstack): Remove.
7995 (struct signatured_type_index_data): Change types_list to a data_buf
7996 reference and psyms_seen to a std::unordered_set reference.
7997 (write_one_signatured_type, recursively_write_psymbols)
7998 (write_psymtabs_to_index): Update it to the new data structures.
7999
c4dcb155
SM
80002017-06-11 Simon Marchi <simon.marchi@ericsson.com>
8001
8002 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
8003 separate-debug-file commands.
8004 * symfile.h (separate_debug_file_debug): New global.
8005 * symfile.c (separate_debug_file_debug): New global.
8006 (separate_debug_file_exists, find_separate_debug_file): Add
8007 debug output.
8008 (_initialize_symfile): Add "set debug separate-debug-file"
8009 command.
8010 * build-id.c (build_id_to_debug_bfd,
8011 find_separate_debug_file_by_buildid): Add debug output.
8012
6d45d4b4
SM
80132017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
8014
8015 * gdbarch.sh (displaced_step_free_closure): Remove.
8016 * gdbarch.h, gdbarch.c: Re-generate.
8017 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
8018 displaced_step_free_closure.
8019 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
8020 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8021 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8022 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
8023 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
8024 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8025 * arch-utils.h (simple_displaced_step_free_closure): Remove.
8026 * arch-utils.c (simple_displaced_step_free_closure): Remove.
8027 * infrun.c (displaced_step_clear): Call xfree instead of
8028 gdbarch_displaced_step_free_closure.
8029
2f91880f
SDJ
80302017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
8031
8032 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
8033 NULL".
8034
b8b6e72f
AH
80352017-06-08 Alan Hayward <alan.hayward@arm.com>
8036
8037 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
8038 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
8039 (mn10300_push_dummy_call): Likewise.
8040
5369082e
AH
80412017-06-08 Alan Hayward <alan.hayward@arm.com>
8042
8043 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
8044
ff4ca5ac
AH
80452017-06-08 Alan Hayward <alan.hayward@arm.com>
8046
8047 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
8048
aefd8b33
SDJ
80492017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8050
8051 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
8052 able to start inferiors using a shell.
8053 (New remote packets): Announce new packet "QStartupWithShell".
8054 * remote.c: Add PACKET_QStartupWithShell.
8055 (extended_remote_create_inferior): Handle new
8056 PACKET_QStartupWithShell.
8057 (remote_protocol_features) <QStartupWithShell>: New entry for
8058 PACKET_QStartupWithShell.
8059 (_initialize_remote): Call "add_packet_config_cmd" for
8060 QStartupShell.
8061
2090129c
SDJ
80622017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8063 Pedro Alves <palves@redhat.com>
8064
8065 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
8066 and "nat/fork-inferior.h".
8067 * common/common-inferior.h: New file, with contents from
8068 "gdb/inferior.h".
8069 * commom/common-utils.c: Include "common-utils.h".
8070 (stringify_argv): New function.
8071 * common/common-utils.h (stringify_argv): New prototype.
8072 * configure.nat: Add "fork-inferior.o" as a dependency for
8073 "*linux*", "fbsd*" and "nbsd*" hosts.
8074 * corefile.c (get_exec_file): Update comment.
8075 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
8076 instead of "startup_inferior".
8077 (darwin_create_inferior): Call "add_thread_silent" after
8078 "fork_inferior".
8079 * fork-child.c: Cleanup unnecessary includes.
8080 (SHELL_FILE): Move to "common/common-fork-child.c".
8081 (environ): Likewise.
8082 (exec_wrapper): Initialize.
8083 (get_exec_wrapper): New function.
8084 (breakup_args): Move to "common/common-fork-child.c"; rename to
8085 "breakup_args_for_exec".
8086 (escape_bang_in_quoted_argument): Move to
8087 "common/common-fork-child.c".
8088 (saved_ui): New variable.
8089 (prefork_hook): New function.
8090 (postfork_hook): Likewise.
8091 (postfork_child_hook): Likewise.
8092 (gdb_startup_inferior): Likewise.
8093 (fork_inferior): Move to "common/common-fork-child.c". Update
8094 function to support gdbserver.
8095 (startup_inferior): Likewise.
8096 * gdbcore.h (get_exec_file): Remove declaration.
8097 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
8098 instead of "startup_inferior". Call "add_thread_silent" after
8099 "fork_inferior".
8100 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
8101 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
8102 instead of "startup_inferior". Call "add_thread_silent" after
8103 "fork_inferior".
8104 * inferior.h: Include "common-inferior.h".
8105 (trace_start_error): Move to "common/common-utils.h".
8106 (trace_start_error_with_name): Likewise.
8107 (fork_inferior): Move prototype to "nat/fork-inferior.h".
8108 (startup_inferior): Likewise.
8109 (gdb_startup_inferior): New prototype.
8110 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
8111 * nat/fork-inferior.h: New file.
8112 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
8113 instead of "startup_inferior". Call "add_thread_silent" after
8114 "fork_inferior".
8115 * target.h (target_terminal_init): Move prototype to
8116 "target/target.h".
8117 (target_terminal_inferior): Likewise.
8118 (target_terminal_ours): Likewise.
8119 * target/target.h (target_terminal_init): New prototype, moved
8120 from "target.h".
8121 (target_terminal_inferior): Likewise.
8122 (target_terminal_ours): Likewise.
8123 * utils.c (gdb_flush_out_err): New function.
8124
043a4934
SDJ
81252017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8126
8127 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
8128 * common/common-gdbthread.h: New file, with parts from
8129 "gdb/gdbthread.h".
8130 * gdbthread.h: Include "common-gdbthread.h".
8131 (switch_to_thread): Moved to "common/common-gdbthread.h".
8132
15652511
SDJ
81332017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8134
8135 * Makefile.in (SFILES): Add "common/job-control.c".
8136 (HFILES_NO_SRCDIR): Add "common/job-control.h".
8137 (COMMON_OBS): Add "job-control.o".
8138 * common/job-control.c: New file, with contents from
8139 "gdb/inflow.c".
8140 * common/job-control.h: New file, with contents from "terminal.h".
8141 * fork-child.c: Include "job-control.h".
8142 * inflow.c: Include "job-control.h".
8143 (gdb_setpgid): Move to "common/common-inflow.c".
8144 (_initialize_inflow): Move setting of "job_control" to
8145 "handle_job_control".
8146 * terminal.h (job_control): Moved to "common/common-terminal.h".
8147 (gdb_setpgid): Likewise.
8148 * top.c: Include "job_control.h".
8149 * utils.c: Likewise.
8150 (job_control): Moved to "job-control.c".
8151
2d7cc5c7
PA
81522017-06-07 Pedro Alves <palves@redhat.com>
8153
8154 * Makefile.in (SFILES): Add gdb_regex.c.
8155 (COMMON_OBS): Add gdb_regex.o.
8156 * ada-lang.c (ada_add_standard_exceptions)
8157 (ada_add_exceptions_from_frame, name_matches_regex)
8158 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
8159 parameter type to compiled_regex. Adjust.
8160 (ada_exceptions_list): Use compiled_regex.
8161 * break-catch-throw.c (exception_catchpoint::pattern): Now a
8162 std::unique_ptr<compiled_regex>.
8163 (exception_catchpoint::~exception_catchpoint): Remove regfree
8164 call.
8165 (check_status_exception_catchpoint): Adjust to use compiled_regex.
8166 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
8167 * breakpoint.c (solib_catchpoint::compiled): Now a
8168 std::unique_ptr<compiled_regex>.
8169 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
8170 (check_status_catch_solib): Adjust to use compiled_regex.
8171 (add_solib_catchpoint): Adjust to use compiled_regex.
8172 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
8173 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
8174 compiled_regex reference. Adjust to use it.
8175 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
8176 declaration. Include "gdb_regex.h".
8177 (apropos_cmd): Change regex parameter to compiled_regex reference.
8178 * gdb_regex.c: New file.
8179 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
8180 declarations.
8181 (class compiled_regex): New.
8182 * linux-tdep.c: Include "common/gdb_optional.h".
8183 (struct mapping_regexes): New, factored out from
8184 mapping_is_anonymous_p, and adjusted to use compiled_regex.
8185 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
8186 gdb::optional and remove cleanups. Adjust to compiled_regex.
8187 * probe.c: Include "common/gdb_optional.h".
8188 (collect_probes): Use compiled_regex and gdb::optional and remove
8189 cleanups.
8190 * skip.c: Include "common/gdb_optional.h".
8191 (skiplist_entry::compiled_function_regexp): Now a
8192 gdb::optional<compiled_regex>.
8193 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
8194 (free_skiplist_entry): Remove regfree call.
8195 (compile_skip_regexp, skip_rfunction_p): Adjust to use
8196 compiled_regex and gdb::optional.
8197 * symtab.c: Include "common/gdb_optional.h".
8198 (search_symbols): Use compiled_regex and gdb::optional.
8199 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
8200 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
8201 to gdb_regex.c.
8202
50d6adef
AH
82032017-06-07 Alan Hayward <alan.hayward@arm.com>
8204
8205 * regcache.c (regcache::save): Avoid buffer use.
8206 (regcache::dump): Likewise.
8207
4a8a33c8
AH
82082017-06-07 Alan Hayward <alan.hayward@arm.com>
8209
8210 * sh-tdep.c (sh_pseudo_register_read): Remove
8211 MAX_REGISTER_SIZE.
8212 (sh_pseudo_register_write): Likewise.
8213 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
8214 (sh64_pseudo_register_write): Likewise
8215
d1be909e
AH
82162017-06-07 Alan Hayward <alan.hayward@arm.com>
8217
8218 * aarch64-tdep.c (aarch64_store_return_value): Use
8219 V_REGISTER_SIZE.
8220 (aarch64_pseudo_read_value): Likewise.
8221 (aarch64_pseudo_write): Likewise.
8222
f4a65042
YQ
82232017-06-06 Yao Qi <yao.qi@linaro.org>
8224
8225 * regformats/regdef.h (set_register_cache): Remove the
8226 declaration.
8227
9f7fb0aa
AH
82282017-06-06 Alan Hayward <alan.hayward@arm.com>
8229
8230 * frame.c (frame_unwind_register_signed): Use
8231 frame_unwind_register_value.
8232
e1e01040
PA
82332017-06-06 Pedro Alves <palves@redhat.com>
8234
8235 PR breakpoints/21553
8236 * breakpoint.c (create_breakpoints_sal_default)
8237 (init_breakpoint_sal, create_breakpoint_sal): Use
8238 gdb::unique_xmalloc_ptr for string parameters.
8239 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8240 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
8241 (base_breakpoint_create_breakpoints_sal)
8242 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
8243 (strace_marker_create_breakpoints_sal)
8244 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
8245 string parameters.
8246 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
8247 gdb::unique_xmalloc_ptr for string parameters.
8248 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8249 parameters.
8250
fbe654c8
AH
82512017-06-06 Alan Hayward <alan.hayward@arm.com>
8252
8253 * alpha-tdep.c (alpha_register_to_value): Use
8254 get_frame_register_value.
8255 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
8256
ae0d01d6
AH
82572017-06-06 Alan Hayward <alan.hayward@arm.com>
8258
8259 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
8260 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
8261 (ia64_value_to_register): Likewise.
8262 (ia64_extract_return_value): Likewise.
8263 (ia64_store_return_value): Likewise.
8264 (ia64_push_dummy_call): Likewise.
8265
49cf576c
JB
82662017-06-04 Joel Brobecker <brobecker@adacore.com>
8267
8268 GDB 8.0 released.
8269
26b6a6ab
SM
82702017-06-03 Simon Marchi <simon.marchi@ericsson.com>
8271
8272 * x86-linux-nat.c (struct arch_lwp_info): Remove.
8273
22827c51
SM
82742017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
8275
8276 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
8277 parameter.
8278 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
8279
0e05cf3a
SM
82802017-06-02 Simon Marchi <simon.marchi@ericsson.com>
8281
8282 * event-loop.c (poll_timers): Unallocate timer using delete
8283 instead of xfree.
8284
c1fc2657
SM
82852017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8286
8287 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
8288 (struct breakpoint) <~breakpoint>: New.
8289 (struct watchpoint): Inherit from breakpoint.
8290 <~watchpoint>: New.
8291 <base>: Remove.
8292 (struct tracepoint): Inherit from breakpoint.
8293 <base>: Remove.
8294 * breakpoint.c (longjmp_breakpoint_ops): Remove.
8295 (struct longjmp_breakpoint): Inherit from breakpoint.
8296 <~longjmp_breakpoint>: New.
8297 <base>: Remove.
8298 (new_breakpoint_from_type): Remove casts.
8299 (watchpoint_in_thread_scope): Remove reference to base field.
8300 (watchpoint_del_at_next_stop): Likewise.
8301 (update_watchpoint): Likewise.
8302 (watchpoint_check): Likewise.
8303 (bpstat_check_watchpoint): Likewise.
8304 (set_longjmp_breakpoint): Likewise.
8305 (struct fork_catchpoint): Inherit from breakpoint.
8306 <base>: Remove.
8307 (struct solib_catchpoint): Inherit from breakpoint.
8308 <~solib_catchpoint>: New.
8309 <base>: Remove.
8310 (dtor_catch_solib): Change to ...
8311 (solib_catchpoint::~solib_catchpoint): ... this.
8312 (breakpoint_hit_catch_solib): Remove reference to base field.
8313 (add_solib_catchpoint): Likewise.
8314 (create_fork_vfork_event_catchpoint): Likewise.
8315 (struct exec_catchpoint): Inherit from breakpoint.
8316 <~exec_catchpoint>: New.
8317 <base>: Remove.
8318 (dtor_catch_exec): Change to ...
8319 (exec_catchpoint::~exec_catchpoint): ... this.
8320 (dtor_watchpoint): Change to ...
8321 (watchpoint::~watchpoint): ... this.
8322 (watch_command_1): Remove reference to base field.
8323 (catch_exec_command_1): Likewise.
8324 (base_breakpoint_dtor): Change to ...
8325 (breakpoint::~breakpoint): ... this.
8326 (base_breakpoint_ops): Remove dtor field value.
8327 (longjmp_bkpt_dtor): Change to ...
8328 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
8329 (strace_marker_create_breakpoints_sal): Remove reference to base
8330 field.
8331 (delete_breakpoint): Don't manually call breakpoint destructor.
8332 (create_tracepoint_from_upload): Remove reference to base field.
8333 (trace_pass_set_count): Likewise.
8334 (initialize_breakpoint_ops): Don't initialize
8335 momentary_breakpoint_ops, don't set dtors.
8336 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
8337 <~ada_catchpoint>: New.
8338 <base>: Remove.
8339 (create_excep_cond_exprs): Remove reference to base field.
8340 (dtor_exception): Change to ...
8341 (ada_catchpoint::~ada_catchpoint): ... this.
8342 (dtor_catch_exception): Remove.
8343 (dtor_catch_exception_unhandled): Remove.
8344 (dtor_catch_assert): Remove.
8345 (create_ada_exception_catchpoint): Remove reference to base
8346 field.
8347 (initialize_ada_catchpoint_ops): Don't set dtors.
8348 * break-catch-sig.c (struct signal_catchpoint): Inherit from
8349 breakpoint.
8350 <~signal_catchpoint>: New.
8351 <base>: Remove.
8352 (signal_catchpoint_dtor): Change to ...
8353 (signal_catchpoint::~signal_catchpoint): ... this.
8354 (create_signal_catchpoint): Remove reference to base field.
8355 (initialize_signal_catchpoint_ops): Don't set dtor.
8356 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
8357 from breakpoint.
8358 <~syscall_catchpoint>: New.
8359 <base>: Remove.
8360 (dtor_catch_syscall): Change to ...
8361 (syscall_catchpoint::~syscall_catchpoint): ... this.
8362 (create_syscall_event_catchpoint): Remove reference to base
8363 field.
8364 (initialize_syscall_catchpoint_ops): Don't set dtor.
8365 * break-catch-throw.c (struct exception_catchpoint): Inherit
8366 from breakpoint.
8367 <~exception_catchpoint>: New.
8368 <base>: Remove.
8369 (dtor_exception_catchpoint): Change to ...
8370 (exception_catchpoint::~exception_catchpoint): ... this.
8371 (handle_gnu_v3_exceptions): Remove reference to base field.
8372 (initialize_throw_catchpoint_ops): Don't set dtor.
8373 * ctf.c (ctf_get_traceframe_address): Remove reference to base
8374 field.
8375 * remote.c (remote_get_tracepoint_status): Likewise.
8376 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
8377 * tracefile.c (tracefile_fetch_registers): Likewise.
8378 * tracepoint.c (actions_command): Likewise.
8379 (validate_actionline): Likewise.
8380 (tfind_1): Likewise.
8381 (get_traceframe_location): Likewise.
8382 (find_matching_tracepoint_location): Likewise.
8383 (parse_tracepoint_status): Likewise.
8384 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
8385
3b0871f4
SM
83862017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8387
8388 * breakpoint.c (struct longjmp_breakpoint): New struct.
8389 (is_tracepoint_type): Change return type to bool.
8390 (is_longjmp_type): New function.
8391 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
8392 (set_raw_breakpoint_without_location): Use
8393 new_breakpoint_from_type.
8394 (set_raw_breakpoint): Likewise.
8395
a5e364af
SM
83962017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8397
8398 * breakpoint.c (new_breakpoint_from_type): New function.
8399 (create_breakpoint_sal): Use new_breakpoint_from_type and
8400 unique_ptr.
8401 (create_breakpoint): Likewise.
8402
ae3b3f34
SM
84032017-05-31 Simon Marchi <simon.marchi@ericsson.com>
8404
8405 * memattr.c (mem_info_command): Rename to ...
8406 (info_mem_command): ... this.
8407 (mem_enable_command): Rename to ...
8408 (enable_mem_command): ... this.
8409 (mem_disable_command): Rename to ...
8410 (disable_mem_command): ... this.
8411 (mem_delete_command): Rename to ...
8412 (delete_mem_command): ... this.
8413 (_initialize_mem): Adjust function names.
8414
13ace077
MM
84152017-05-31 Markus Metzger <markus.t.metzger@intel.com>
8416
8417 * btrace.c (handle_pt_insn_events): New.
8418 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
8419 STATUS. Split into this and ...
8420 (handle_pt_insn_event_flags): ... this.
8421
c56ccc05
MM
84222017-05-31 Markus Metzger <markus.t.metzger@intel.com>
8423
8424 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
8425 and struct pt_insn.resynced.
8426 * configure: Regenerated.
8427 * config.in: Regenerated.
8428
08c3f6d2
TW
84292017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8430
8431 * btrace.c (ftrace_find_call_by_number): New function.
8432 (ftrace_new_function): Store objects, not pointers.
8433 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
8434 ftrace_new_gap, ftrace_update_function,
8435 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
8436 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
8437 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
8438 btrace_ends_with_single_insn, btrace_call_get): Account for
8439 btrace_thread_info::functions now storing objects.
8440 * btrace.h (struct btrace_thread_info): Add constructor.
8441 (struct btrace_thread_info) <functions>: Make std::vector.
8442 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
8443 Initialize with default values.
8444 * record-btrace.c (record_btrace_frame_sniffer): Account for
8445 btrace_thread_info::functions now storing objects.
8446
8ffd39f2
TW
84472017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8448
8449 * btrace.c: Remove typedef bfun_s.
8450 (ftrace_new_gap): Directly add gaps to the list of gaps.
8451 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
8452 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
8453 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
8454 instead of gdb VEC.
8455
4aeb0dfc
TW
84562017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8457
8458 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
8459 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
8460 with btrace_thread_info::next_segment and
8461 btrace_thread_info::prev_segment.
8462 * btrace.h: Remove struct btrace_func_link.
8463 (struct btrace_function): Replace pair of function segment pointers
8464 with pair of indices.
8465 * python/py-record-btrace.c (btpy_call_prev_sibling,
8466 btpy_call_next_sibling): Replace references to
8467 btrace_thread_info::segment with btrace_thread_info::next_segment and
8468 btrace_thread_info::prev_segment.
8469 * record-btrace.c (record_btrace_frame_this_id): Use
8470 btrace_find_call_by_number.
8471
eb8f2b9c
TW
84722017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8473
8474 * btrace.c (ftrace_new_function, ftrace_fixup_level,
8475 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
8476 btrace_insn_next, btrace_insn_prev): Remove references to
8477 btrace_thread_info::flow.
8478 * btrace.h (struct btrace_function): Remove FLOW.
8479
42bfe59e
TW
84802017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8481
8482 * btrace.c (ftrace_find_call_by_number): New function.
8483 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
8484 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
8485 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
8486 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
8487 index.
8488 * btrace.h (struct btrace_function): Turn UP into an index.
8489 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
8490 as an index.
8491 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
8492 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
8493 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
8494
b54b03bd
TW
84952017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8496
8497 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
8498 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
8499 ftrace_update_function, ftrace_compute_global_level_offset,
8500 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
8501 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
8502 btrace_insn_end, btrace_is_empty): Remove references to
8503 btrace_thread_info::begin and btrace_thread_info::end.
8504 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
8505 (struct btrace_thread_info) <functions>: Adjust comment.
8506 * record-btrace.c (record_btrace_start_replaying): Remove reference to
8507 btrace_thread_info::begin.
8508
8286623c
TW
85092017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8510
8511 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
8512 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
8513 ftrace_update_function): Remove arguments that implicitly were always
8514 BTINFO->END.
8515 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
8516 Don't pass BTINFO->END.
8517
a0f1b963
TW
85182017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8519
8520 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
8521 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
8522 btrace_find_insn_by_number): Replace function segment pointer with
8523 index.
8524 (btrace_insn_cmp): Simplify.
8525 * btrace.h: (struct btrace_insn_iterator) Rename index to
8526 insn_index. Replace function segment pointer with index into function
8527 segment vector.
8528 * record-btrace.c (record_btrace_call_history): Replace function
8529 segment pointer use with index.
8530 (record_btrace_frame_sniffer): Retrieve function call segment through
8531 vector.
8532 (record_btrace_set_replay): Remove defunc't safety check.
8533
f158f208
TW
85342017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8535
8536 * btrace.c (btrace_ends_with_single_insn): New function.
8537 (btrace_call_get, btrace_call_number, btrace_call_begin,
8538 btrace_call_end, btrace_call_next, btrace_call_prev,
8539 btrace_find_call_by_number): Use index into call segment vector
8540 instead of pointer.
8541 (btrace_call_cmp): Simplify.
8542 * btrace.h (struct btrace_call_iterator): Replace function call segment
8543 pointer with index into vector.
8544 * record-btrace.c (record_btrace_call_history): Use index instead of
8545 pointer.
8546
521103fd
TW
85472017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8548
8549 * btrace.c (btrace_insn_begin, btrace_insn_end,
8550 btrace_find_insn_by_number): Add btinfo to iterator.
8551 * btrace.h (struct btrace_insn_iterator): Add btinfo.
8552
17b89b34
TW
85532017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8554
8555 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
8556 and save pointers directly.
8557 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
8558 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
8559 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
8560 changed signature of functions.
8561 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
8562 (btrace_fetch): Remove code that adds btrace_function pointers to
8563 vector of btrace_functions.
8564 (btrace_clear): Simplify freeing vector of btrace_functions.
8565
2b51eddc
TW
85662017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8567
8568 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
8569 Replace VEC_* with std::vector functions.
8570 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
8571 (struct btrace_thread_info)<functions>: Change type to std::vector.
8572
db6be0d5
SM
85732017-05-30 Simon Marchi <simon.marchi@ericsson.com>
8574
8575 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
8576 "Removed targets and native configurations" up. Merge duplicate
8577 "New commands" sub-sections. Add "New options" sub-sections.
8578
b057297a
AH
85792017-05-26 Alan Hayward <alan.hayward@arm.com>
8580
8581 * defs.h (copy_integer_to_size): New declaration.
8582 * findvar.c (copy_integer_to_size): New function.
8583 (do_cint_test): New selftest function.
8584 (copy_integer_to_size_test): Likewise.
8585 (_initialize_findvar): Likewise.
8586 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
8587 (mips_fbsd_collect_reg): Use raw_collect_integer.
8588 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
8589 (mips64_fill_gregset): Use raw_collect_integer
8590 (mips64_fill_fpregset): Use raw_supply_integer.
8591 * regcache.c (regcache::raw_supply_integer): New function.
8592 (regcache::raw_collect_integer): Likewise.
8593 * regcache.h: (regcache::raw_supply_integer): New declaration.
8594 (regcache::raw_collect_integer): Likewise.
8595
b77b02a5
YQ
85962017-05-24 Yao Qi <yao.qi@linaro.org>
8597
8598 * Makefile.in (SFILES): Add gdbarch-selftests.c.
8599 (COMMON_OBS): Add gdbarch-selftests.o.
8600 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
8601 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
8602 * gdbarch-selftests.c: New file.
8603 * regcache.h (regcache) <~regcache>: Mark it virtual if
8604 GDB_SELF_TEST.
8605 <raw_write>: Likewise.
8606
e521e87e
YQ
86072017-05-24 Yao Qi <yao.qi@linaro.org>
8608
8609 * regcache.c (current_regcache): Change it to
8610 regcache::current_regcache.
8611 (regcache_observer_target_changed): Update.
8612 (regcache_thread_ptid_changed): Make it a regcache static
8613 method.
8614 (regcache_thread_ptid_changed): Update.
8615 (class regcache_access): New.
8616 (current_regcache_test): Update.
8617 (_initialize_regcache): Update.
8618 * regcache.h: Include forward_list.
8619 (regcache): Declare regcache_thread_ptid_changed and declare
8620 registers_changed_ptid as friend.
8621
d8e07dda
YQ
86222017-05-24 Yao Qi <yao.qi@linaro.org>
8623
8624 * i387-tdep.c (i387_register_to_value): Use register_size
8625 instead of TYPE_LENGTH.
8626 * m68k-tdep.c (m68k_register_to_value): Likewise.
8627
8c8f9122
YQ
86282017-05-24 Yao Qi <yao.qi@linaro.org>
8629
8630 * i387-tdep.c (i387_convert_register_p): Return false if type
8631 code isn't TYPE_CODE_FLT.
8632
68fce50f
YQ
86332017-05-24 Yao Qi <yao.qi@linaro.org>
8634
8635 * alpha-tdep.c (alpha_convert_register_p): Return true if type
8636 length is 4.
8637 (alpha_register_to_value): Remove type length check.
8638 (alpha_value_to_register): Likewise.
8639
88954b49
YQ
86402017-05-24 Yao Qi <yao.qi@linaro.org>
8641
8642 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
8643 TYPE_CODE_FLT.
8644
e3ec9b69
YQ
86452017-05-24 Yao Qi <yao.qi@linaro.org>
8646
8647 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
8648 TYPE_CODE_FLT or not.
8649
cdd238da
YQ
86502017-05-24 Yao Qi <yao.qi@linaro.org>
8651
8652 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
8653 * avr-tdep.c (avr_gdbarch_init): Likewise.
8654 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8655 * cris-tdep.c (cris_gdbarch_init): Likewise.
8656 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
8657 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8658 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8659 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
8660 * mep-tdep.c (mep_gdbarch_init): Likewise.
8661 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8662 * mips-tdep.c (mips_gdbarch_init): Likewise.
8663 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
8664 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8665 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
8666 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8667 * v850-tdep.c (v850_gdbarch_init): Likewise.
8668
7a3929c4
YQ
86692017-05-24 Yao Qi <yao.qi@linaro.org>
8670
8671 * selftest-arch.c (tests_with_arch): Call registers_changed
8672 and reinit_frame_cache.
8673 * selftest.c (run_self_tests): Likewise.
8674
f4985dba
YQ
86752017-05-24 Yao Qi <yao.qi@linaro.org>
8676
8677 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
8678 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
8679
ab20fa4a
YQ
86802017-05-24 Yao Qi <yao.qi@linaro.org>
8681
8682 * rl78-tdep.c (rl78_gdbarch_init): Don't call
8683 set_gdbarch_print_insn.
8684
f532ab94
YQ
86852017-05-24 Yao Qi <yao.qi@linaro.org>
8686
8687 * h8300-tdep.c (h8300_gdbarch_init): Don't call
8688 set_gdbarch_print_insn.
8689
39503f82
YQ
86902017-05-24 Yao Qi <yao.qi@linaro.org>
8691
8692 * alpha-tdep.c (alpha_gdbarch_init): Don't call
8693 set_gdbarch_print_insn.
8694 * arc-tdep.c (arc_gdbarch_init): Likewise.
8695 * arch-utils.c: include dis-asm.h.
8696 (default_print_insn): New function.
8697 * arch-utils.h (default_print_insn): Declare.
8698 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
8699 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8700 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
8701 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
8702 * frv-tdep.c (frv_gdbarch_init): Likewise.
8703 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
8704 * gdbarch.sh (print_insn): Use default_print_insn.
8705 * gdbarch.c: Regenerated.
8706 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
8707 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
8708 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8709 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
8710 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8711 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
8712 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
8713 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
8714 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
8715 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8716 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
8717 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8718 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
8719 * mt-tdep.c (mt_gdbarch_init): Likewise.
8720 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
8721 * nios2-tdep.c (nios2_print_insn): Remove.
8722 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
8723 * rx-tdep.c (rx_gdbarch_init): Likewise.
8724 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8725 * score-tdep.c (score_print_insn): Remove.
8726 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
8727 * sh-tdep.c (sh_gdbarch_init): Likewise.
8728 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8729 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8730 * tic6x-tdep.c (tic6x_print_insn): Remove.
8731 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
8732 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
8733 * v850-tdep.c (v850_gdbarch_init): Likewise.
8734 * vax-tdep.c (vax_gdbarch_init): Likewise.
8735 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
8736 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
8737
f7241d4f
JB
87382017-05-23 John Baldwin <jhb@FreeBSD.org>
8739
8740 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
8741 (MIPS_FP0_REGNUM): Remove.
8742 (MIPS_FSR_REGNUM): Remove.
8743 (mips_fbsd_supply_fpregs): Use mips_regnum.
8744 (mips_fbsd_supply_gregs): Likewise.
8745 (mips_fbsd_collect_fpregs): Likewise.
8746 (mips_fbsd_collect_gregs): Likewise.
8747
d489d81d
JB
87482017-05-23 John Baldwin <jhb@FreeBSD.org>
8749
8750 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
8751 (getpfpregs_supplies): New function.
8752 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
8753 getfpregs_supplies.
8754 (mips_fbsd_store_inferior_registers): Likewise.
8755
e11b3cdc
PA
87562017-05-22 Pedro Alves <palves@redhat.com>
8757
8758 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
8759 maintainer.
8760
0f068fb5
AH
87612017-05-22 Alan Hayward <alan.hayward@arm.com>
8762
8763 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
8764 (store_register): Likewise.
8765 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
8766 (get_decimal_float_return_value): Likewise.
8767 (do_ppc_sysv_return_value): Likewise.
8768 (ppc64_sysv_abi_push_integer): Likewise.
8769 (ppc64_sysv_abi_push_freg): Likewise.
8770 (ppc64_sysv_abi_return_value_base): Likewise.
8771 (ppc64_sysv_abi_return_value): Likewise.
8772 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
8773 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
8774 * rs6000-nat.c: Likewise.
8775 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
8776 (rs6000_value_to_register): Likewise.
8777 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
8778
e6cf65f2
TT
87792017-05-21 Tom Tromey <tom@tromey.com>
8780
8781 PR rust/21466:
8782 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
8783 arrays as "[T]", not "[T; ]".
8784
43cc5389
TT
87852017-05-19 Tom Tromey <tom@tromey.com>
8786
8787 PR rust/21484:
8788 * rust-lang.c (exp_descriptor_rust): New function.
8789 (rust_language_defn): Use it.
8790 * p-lang.c (pascal_language_defn): Update.
8791 * opencl-lang.c (opencl_language_defn): Update.
8792 * objc-lang.c (objc_language_defn): Update.
8793 * m2-lang.c (m2_language_defn): Update.
8794 * language.h (struct language_defn)
8795 <la_watch_location_expression>: New member.
8796 * language.c (unknown_language_defn, auto_language_defn)
8797 (local_language_defn): Update.
8798 * go-lang.c (go_language_defn): Update.
8799 * f-lang.c (f_language_defn): Update.
8800 * d-lang.c (d_language_defn): Update.
8801 * c-lang.h (c_watch_location_expression): Declare.
8802 * c-lang.c (c_watch_location_expression): New function.
8803 (c_language_defn, cplus_language_defn, asm_language_defn)
8804 (minimal_language_defn): Use it.
8805 * breakpoint.c (watch_command_1): Call
8806 la_watch_location_expression.
8807 * ada-lang.c (ada_language_defn): Update.
8808
7a6e7fcc
RO
88092017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8810
6e7e1744
RO
8811 PR tui/21482
8812 * gdb_curses.h (NOMACROS): Define.
8813 (NCURSES_NOMACROS): Define.
8814
88152017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8816
8817 PR tui/21482
7a6e7fcc
RO
8818 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
8819 arg to char *.
8820 * tui/tui-wingeneral.c (box_win): Likewise.
8821 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
8822 (tui_show_source_line): Likewise.
8823 (tui_show_exec_info_content): Likewise.
8824
1933fd8e
VM
88252017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
8826
8827 * sparc-tdep.c (sparc_structure_return_p)
8828 (sparc_arg_on_registers_p): New functions.
8829 (sparc32_store_arguments): Use them.
8830 * sparc64-tdep.c (sparc64_16_byte_align_p)
8831 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
8832 Handle TYPE_CODE_ARRAY.
8833
21873064
YQ
88342017-05-17 Yao Qi <yao.qi@linaro.org>
8835
8836 * cli/cli-decode.c (add_alias_cmd): New function.
8837 * command.h (add_alias_cmd): Declare.
8838 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
8839 instead call add_alias_cmd.
8840
2b351b19
PA
88412017-05-17 Pedro Alves <palves@redhat.com>
8842
8843 * Makefile.in (nat_extra_makefile_frag): Rename to ...
8844 (nat_makefile_frag): ... this. All references updated.
8845 * configure.ac: Likewise.
8846 * configure.nat: Likewise. Enhance comments.
8847 * configure: Regenerate.
8848
5f2ad7a3
RO
88492017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8850
8851 * procfs.c (procfs_create_inferior): Change prototype to match
8852 definition.
8853
adf3dde5
EZ
88542017-05-13 Eli Zaretskii <eliz@gnu.org>
8855
8856 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
8857 C++ compiler warning.
8858
6830f270
TT
88592017-05-12 Tom Tromey <tom@tromey.com>
8860
8861 PR rust/21483:
8862 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
8863 recurse, just call value_struct_elt directly.
8864
68f2f2e3
TT
88652017-05-12 Tom Tromey <tom@tromey.com>
8866
8867 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
8868 OP_RUST_ARRAY>: Fix.
8869
256afbc2
TT
88702017-05-12 Tom Tromey <tom@tromey.com>
8871
8872 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
8873
94bb8dfe
YQ
88742017-05-09 Yao Qi <yao.qi@linaro.org>
8875
8876 * regcache.c: Include <forward_list>.
8877 (struct regcache_list): Remove.
8878 (current_regcache): Update.
8879 (get_thread_arch_aspace_regcache): Update for std::forward_list.
8880 (regcache_thread_ptid_changed): Likewise.
8881 (registers_changed_ptid): Likewise.
8882 (current_regcache_size): Likewise.
8883
8248946c
YQ
88842017-05-09 Yao Qi <yao.qi@linaro.org>
8885
8886 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
8887 (current_regcache_size): New function.
8888 (current_regcache_test): New function.
8889 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
8890
313c5961
AH
88912017-05-08 Alan Hayward <alan.hayward@arm.com>
8892
8893 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
8894 (print_gp_register_row): Use get_frame_register_value.
8895
27bfc1d1
AH
88962017-05-08 Alan Hayward <alan.hayward@arm.com>
8897
8898 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
8899 (mips_supply_fpregset): Likewise.
8900 (mips64_supply_gregset): Likewise.
8901
146e6c5c
AH
89022017-05-08 Alan Hayward <alan.hayward@arm.com>
8903
8904 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
8905 regcache->raw_supply_zeroed.
8906
e50f25ec
SDJ
89072017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
8908
8909 * configure.nat: Rearrange 'case' statements to match
8910 host before cpu.
8911
21ea5acd
SDJ
89122017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
8913
8914 * Makefile.in: Remove "@host_makefile_frag@". Add variables
8915 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
8916 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
8917 "@nat_extra_makefile_frag@".
8918 (Makefile): Remove dependency on "@frags@".
8919 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
8920 (data-directory/Makefile): Likewise.
8921 * config/aarch64/linux.mh: Deleted; moved contents to
8922 "gdb/configure.nat".
8923 * config/alpha/alpha-linux.mh: Likewise.
8924 * config/alpha/nbsd.mh: Likewise.
8925 * config/arm/linux.mh: Likewise.
8926 * config/arm/nbsdelf.mh: Likewise.
8927 * config/i386/cygwin.mh: Likewise.
8928 * config/i386/cygwin64.mh: Likewise.
8929 * config/i386/darwin.mh: Likewise.
8930 * config/i386/fbsd.mh: Likewise.
8931 * config/i386/fbsd64.mh: Likewise.
8932 * config/i386/go32.mh: Likewise.
8933 * config/i386/i386gnu.mh: Likewise.
8934 * config/i386/i386sol2.mh: Likewise.
8935 * config/i386/linux.mh: Likewise.
8936 * config/i386/linux64.mh: Likewise.
8937 * config/i386/mingw.mh: Likewise.
8938 * config/i386/mingw64.mh: Likewise.
8939 * config/i386/nbsd64.mh: Likewise.
8940 * config/i386/nbsdelf.mh: Likewise.
8941 * config/i386/nto.mh: Likewise.
8942 * config/i386/obsd.mh: Likewise.
8943 * config/i386/obsd64.mh: Likewise.
8944 * config/i386/sol2-64.mh: Likewise.
8945 * config/ia64/linux.mh: Likewise.
8946 * config/m32r/linux.mh: Likewise.
8947 * config/m68k/linux.mh: Likewise.
8948 * config/m68k/nbsdelf.mh: Likewise.
8949 * config/m68k/obsd.mh: Likewise.
8950 * config/m88k/obsd.mh: Likewise.
8951 * config/mips/fbsd.mh: Likewise.
8952 * config/mips/linux.mh: Likewise.
8953 * config/mips/nbsd.mh: Likewise.
8954 * config/mips/obsd64.mh: Likewise.
8955 * config/pa/linux.mh: Likewise.
8956 * config/pa/nbsd.mh: Likewise.
8957 * config/pa/obsd.mh: Likewise.
8958 * config/powerpc/aix.mh: Likewise.
8959 * config/powerpc/fbsd.mh: Likewise.
8960 * config/powerpc/linux.mh: Likewise.
8961 * config/powerpc/nbsd.mh: Likewise.
8962 * config/powerpc/obsd.mh: Likewise.
8963 * config/powerpc/ppc64-linux.mh: Likewise.
8964 * config/powerpc/spu-linux.mh: Likewise.
8965 * config/s390/linux.mh: Likewise.
8966 * config/sh/nbsd.mh: Likewise.
8967 * config/sparc/fbsd.mh: Likewise.
8968 * config/sparc/linux.mh: Likewise.
8969 * config/sparc/linux64.mh: Likewise.
8970 * config/sparc/nbsd64.mh: Likewise.
8971 * config/sparc/nbsdelf.mh: Likewise.
8972 * config/sparc/obsd64.mh: Likewise.
8973 * config/sparc/sol2.mh: Likewise.
8974 * config/tilegx/linux.mh: Likewise.
8975 * config/vax/nbsdelf.mh: Likewise.
8976 * config/vax/obsd.mh: Likewise.
8977 * config/xtensa/linux.mh: Likewise.
8978 * config/i386/i386gnu.mn: New file, with excerpts from
8979 "config/i386/i386gnu.mh".
8980 * configure: Regenerate.
8981 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
8982 *.mh files under "gdb/config".
8983 * configure.nat: New file, with contents from the
8984 "gdb/config/*/*.mh" files.
8985
7ed1acaf
TW
89862017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
8987
8988 * btrace.c (btrace_clear): Free insn vector.
8989
e13cb306
PA
89902017-05-05 Pedro Alves <palves@redhat.com>
8991
8992 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
8993 * configure: Regenerate.
8994
5ed8105e
PA
89952017-05-04 Pedro Alves <palves@redhat.com>
8996
8997 * Makefile.in (SFILES): Add progspace-and-thread.c.
8998 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
8999 (COMMON_OBS): Add progspace-and-thread.o.
9000 * breakpoint.c: Include "progspace-and-thread.h".
9001 (update_inserted_breakpoint_locations)
9002 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
9003 Use scoped_restore_current_pspace_and_thread.
9004 (create_std_terminate_master_breakpoint): Use
9005 scoped_restore_current_program_space.
9006 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
9007 (print_breakpoint_location): Use
9008 scoped_restore_current_program_space.
9009 (bp_loc_is_permanent): Use
9010 scoped_restore_current_pspace_and_thread.
9011 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
9012 (download_tracepoint_locations): Use
9013 scoped_restore_current_pspace_and_thread.
9014 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
9015 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
9016 (enum step_over_calls_kind): Moved from inferior.h.
9017 (class scoped_restore_current_thread): New class.
9018 * gdbthread.h (make_cleanup_restore_current_thread): Delete
9019 declaration.
9020 (scoped_restore_current_thread): New class.
9021 * infcmd.c: Include "common/gdb_optional.h".
9022 (continue_1, proceed_after_attach): Use
9023 scoped_restore_current_thread.
9024 (notice_new_inferior): Use scoped_restore_current_thread.
9025 * inferior.c: Include "progspace-and-thread.h".
9026 (restore_inferior, save_current_inferior): Delete.
9027 (add_inferior_command, clone_inferior_command): Use
9028 scoped_restore_current_pspace_and_thread.
9029 * inferior.h (scoped_restore_current_inferior): New class.
9030 * infrun.c: Include "progspace-and-thread.h" and
9031 "common/gdb_optional.h".
9032 (follow_fork_inferior): Use
9033 scoped_restore_current_pspace_and_thread.
9034 (scoped_restore_exited_inferior): New class.
9035 (handle_vfork_child_exec_or_exit): Use
9036 scoped_restore_exited_inferior,
9037 scoped_restore_current_pspace_and_thread,
9038 scoped_restore_current_thread and scoped_restore.
9039 (fetch_inferior_event): Use scoped_restore_current_thread.
9040 * linespec.c (decode_line_full, decode_line_1): Use
9041 scoped_restore_current_program_space.
9042 * mi/mi-main.c: Include "progspace-and-thread.h".
9043 (exec_continue): Use scoped_restore_current_thread.
9044 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
9045 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
9046 * proc-service.c (ps_pglobal_lookup): Use
9047 scoped_restore_current_program_space.
9048 * progspace-and-thread.c: New file.
9049 * progspace-and-thread.h: New file.
9050 * progspace.c (release_program_space, clone_program_space): Use
9051 scoped_restore_current_program_space.
9052 (restore_program_space, save_current_program_space)
9053 (save_current_space_and_thread): Delete.
9054 (switch_to_program_space_and_thread): Moved to
9055 progspace-and-thread.c.
9056 * progspace.h (save_current_program_space)
9057 (save_current_space_and_thread): Delete declarations.
9058 (scoped_restore_current_program_space): New class.
9059 * remote.c (remote_btrace_maybe_reopen): Use
9060 scoped_restore_current_thread.
9061 * symtab.c: Include "progspace-and-thread.h".
9062 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
9063 * thread.c (print_thread_info_1): Use
9064 scoped_restore_current_thread.
9065 (struct current_thread_cleanup): Delete.
9066 (do_restore_current_thread_cleanup)
9067 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
9068 (scoped_restore_current_thread::~scoped_restore_current_thread):
9069 ... this new dtor.
9070 (make_cleanup_restore_current_thread): Rename/convert to ...
9071 (scoped_restore_current_thread::scoped_restore_current_thread):
9072 ... this new ctor.
9073 (thread_apply_all_command): Use scoped_restore_current_thread.
9074 (thread_apply_command): Use scoped_restore_current_thread.
9075 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
9076 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
9077
f6223dbb
PA
90782017-05-04 Pedro Alves <palves@redhat.com>
9079
9080 * thread.c (make_cleanup_restore_current_thread): Move
9081 find_thread_ptid call before the is_stopped call. Assert that the
9082 thread is found. Replace is_stopped call by checking the thread's
9083 state directly. Remove unnecessary NULL-thread check.
9084
3c3ae77e
PA
90852017-05-04 Pedro Alves <palves@redhat.com>
9086
9087 * corelow.c (thread_section_name): New class.
9088 (get_core_register_section, get_core_siginfo): Use it.
9089
45eba0ab
AA
90902017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9091
9092 * corelow.c (sniff_core_bfd): Remove extra semicolon.
9093 (get_core_register_section): Remove xfree of NULL pointer.
9094
f81fdd35
AH
90952017-05-03 Alan Hayward <alan.hayward@arm.com>
9096
9097 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
9098 * regcache.c (regcache::raw_supply_zeroed): New function.
9099 * regcache.h (regcache::raw_supply_zeroed): New declaration.
9100
35837774
SM
91012017-05-03 Simon Marchi <simon.marchi@ericsson.com>
9102
9103 * gdbarch.sh: Remove commented out definition of
9104 TARGET_CHAR_BIT.
9105 * gdbarch.h: Re-generate.
9106
c94fee56
SDJ
91072017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
9108
9109 * configure: Regenerate.
9110
d17f7b36
SM
91112017-05-02 Simon Marchi <simon.marchi@ericsson.com>
9112
9113 * solib-target.c (solib_target_relocate_section_addresses):
9114 Remove num_section_bases, num_bases, segment_bases variables.
9115
b560ebd6
SM
91162017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9117
9118 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
9119
f2f46dfc
SM
91202017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9121
9122 * solib-target.c: Include <vector>
9123 (struct lm_info_target) <~lm_info_target>: Remove.
9124 <segment_bases, section_bases>: Change type to
9125 std::vector<CORE_ADDR>.
9126 (library_list_start_segment, library_list_start_section,
9127 library_list_end_library,
9128 solib_target_relocate_section_addresses): Adjust.
9129
a0ff9e1a
SM
91302017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9131
9132 * gdbarch.sh (software_single_step): Change return type to
9133 std::vector<CORE_ADDR>.
9134 * gdbarch.c, gdbarch.h: Re-generate.
9135 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
9136 Adjust.
9137 (arm_deal_with_atomic_sequence_raw): Adjust.
9138 (thumb_get_next_pcs_raw): Adjust.
9139 (arm_get_next_pcs_raw): Adjust.
9140 (arm_get_next_pcs): Adjust.
9141 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
9142 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
9143 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
9144 (alpha_software_single_step): Adjust.
9145 * alpha-tdep.h (alpha_software_single_step): Adjust.
9146 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
9147 * arm-tdep.c (arm_software_single_step): Adjust.
9148 (arm_breakpoint_kind_from_current_state): Adjust.
9149 * arm-tdep.h (arm_software_single_step): Adjust.
9150 * breakpoint.c (insert_single_step_breakpoint): Adjust.
9151 * cris-tdep.c (cris_software_single_step): Adjust.
9152 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
9153 (micromips_deal_with_atomic_sequence): Adjust.
9154 (deal_with_atomic_sequence): Adjust.
9155 (mips_software_single_step): Adjust.
9156 * mips-tdep.h (mips_software_single_step): Adjust.
9157 * moxie-tdep.c (moxie_software_single_step): Adjust.
9158 * nios2-tdep.c (nios2_software_single_step): Adjust.
9159 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
9160 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
9161 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
9162 * s390-linux-tdep.c (s390_software_single_step): Adjust.
9163 * sparc-tdep.c (sparc_software_single_step): Adjust.
9164 * spu-tdep.c (spu_software_single_step): Adjust.
9165 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
9166
ea480a30
SM
91672017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9168
9169 * gdbarch.sh: Use semi-colon as field separator instead of colon.
9170 * gdbarch.h: Re-generate.
9171
d050f7d7
TW
91722017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9173
9174 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
9175 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
9176 * python/py-instruction.c, python/py-instruction.h: New file.
9177 * python/py-record.c: Add py-instruction.h include.
9178 (gdbpy_initialize_record): Make gdb.Instruction a super class of
9179 gdb.RecordInstruction.
9180 * python/python-internal.h: Add gdbpy_initialize_instruction
9181 declaration.
9182 * python/python.c (do_start_initialization): Add
9183 gdbpy_initialize_instruction.
9184
14f819c8
TW
91852017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9186
9187 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
9188 Remove.
9189 (btrace_func_from_recpy_func): New function.
9190 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
9191 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
9192 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
9193 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
9194 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
9195 Also, use new helper functions.
9196 (btpy_list_item): Use new helper functions.
9197 (recpy_bt_function_call_history): Use new type name.
9198 (btpy_call_getset): Remove.
9199 (gdbpy_initialize_btrace): Remove code to initialize
9200 gdb.BtraceFunctionCall.
9201 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
9202 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
9203 recpy_bt_func_prev, recpy_bt_func_next): New export.
9204 * python/py-record.c (recpy_func_type): New static object.
9205 (recpy_func_new, recpy_func_level, recpy_func_symbol,
9206 recpy_func_instructions, recpy_func_up, recpy_func_prev,
9207 recpy_func_next): New function.
9208 (recpy_element_hash, recpy_element_richcompare): Updated comment.
9209 (recpy_func_getset): New static object.
9210 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
9211 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
9212
0ed5da75
TW
92132017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9214
9215 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
9216 (btpy_object, btpy_insn_type, btpy_new): Remove.
9217 (btpy_list_object): Use gdb.RecordInstruction type instead of
9218 gdb.BtraceInstruction type.
9219 (btrace_insn_from_recpy_insn): New function.
9220 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
9221 btpy_new.
9222 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
9223 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
9224 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
9225 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
9226 instead of btpy_object.
9227 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9228 btpy_insn_data, btpy_insn_decode): Rename to ...
9229 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
9230 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
9231 recpy_bt_insn_decode): This. Also, use new helper functions.
9232 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
9233 recpy_insn_type.
9234 (btpy_insn_getset): Remove.
9235 (gdbpy_initialize_btrace): Remove code to initialize
9236 gdb.BtraceInstruction. Use recpy_element_object.
9237 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
9238 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
9239 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
9240 * python/py-record.c (recpy_insn_type): New static object.
9241 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
9242 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
9243 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
9244 New function.
9245 (recpy_insn_getset): New static object.
9246 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
9247 * python/py-record.h (recpy_element_object): New typedef.
9248 (recpy_insn_type, recpy_insn_new): New export.
9249
913aeadd
TW
92502017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9251
9252 * py-record-btrace.c (btpy_insn_new): Removed.
9253 (btpy_insn_or_gap_new): New function.
9254 (btpy_insn_error): Removed.
9255 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9256 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
9257 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
9258 btpy_insn_or_gap_new instead of btpy_insn_new.
9259 (btpy_insn_getset): Remove btpy_insn_error.
9260 * py-record.c (recpy_gap_type): New static object.
9261 (recpy_gap_object): New typedef.
9262 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
9263 recpy_gap_reason_string): New function.
9264 (recpy_gap_getset): New static object.
9265 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
9266 * py-record.h (recpy_gap_new): New export.
9267
a3be24ad
TW
92682017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9269
9270 * python/py-record.c (recpy_ptid): Remove.
9271 (recpy_record_getset): Remove recpy_ptid.
9272
ae20e79a
TW
92732017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9274
9275 * btrace.c (btrace_fetch): Set inferior_ptid.
9276 * python/py-record-btrace.c: Add "py-record.h" include.
9277 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
9278 recpy_bt_end, recpy_bt_instruction_history,
9279 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
9280 in gdb.Record object instead of current ptid.
9281 * python/py-record.c: Include new "py-record.h" file.
9282 (recpy_record_object): Moved to py-record.h.
9283 * python/py-record.h: New file.
9284
8d0050ea
TW
92852017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9286
9287 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
9288 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
9289 indentation.
9290
3f380b50
JB
92912017-05-01 Joel Brobecker <brobecker@adacore.com>
9292
9293 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
9294 the past maintainers section.
9295
07495424
YQ
92962017-04-28 Yao Qi <yao.qi@linaro.org>
9297
9298 * infcmd.c (get_return_value): Use regcache ctor, and remove
9299 cleanup.
9300
deb1fa3e
YQ
93012017-04-28 Yao Qi <yao.qi@linaro.org>
9302 Pedro Alves <palves@redhat.com>
9303
9304 * regcache.c (regcache::regcache): New tag dispatch ctor.
9305 (do_cooked_read): Moved above.
9306 (regcache_dup): Use the tag dispatch ctor..
9307 * regcache.h (regcache): Declare ctor, delete copy ctor and
9308 assignment operator, remove friend regcache_dup.
9309
b421c83c
YQ
93102017-04-28 Yao Qi <yao.qi@linaro.org>
9311
9312 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
9313 call method save instead of regcache_cpy.
9314 * regcache.h (struct regcache): Make regcache_dup a friend.
9315
ef79d9a3
YQ
93162017-04-28 Yao Qi <yao.qi@linaro.org>
9317
9318 * regcache.c (struct regcache): Move to regcache.h
9319 (regcache::arch): New method.
9320 (regcache_get_ptid): Update.
9321 (get_regcache_arch): Call arch method.
9322 (get_regcache_aspace): Call method aspace.
9323 (register_buffer): Change it to method.
9324 (regcache_save): Change it to regcache::save.
9325 (regcache_restore): Likewise.
9326 (regcache_cpy_no_passthrough): Remove the declaration.
9327 (regcache_cpy): Call methods restore and cpy_no_passthrough.
9328 (regcache_cpy_no_passthrough): Change it to method
9329 cpy_no_passthrough.
9330 (regcache_register_status): Change it to method
9331 get_register_status.
9332 (regcache_invalidate): Change it to method invalidate.
9333 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
9334 (regcache_raw_update): Change it to method raw_update.
9335 (regcache_raw_read): Likewise.
9336 (regcache_raw_read_signed): Likewise.
9337 (regcache_raw_read_unsigned): Likewise.
9338 (regcache_raw_write_signed): Likewise.
9339 (regcache_raw_write_unsigned): Likewise.
9340 (regcache_cooked_read): Likewise.
9341 (regcache_cooked_read_value): Likewise.
9342 (regcache_cooked_read_signed): Likewise.
9343 (regcache_cooked_read_unsigned): Likewise.
9344 (regcache_cooked_write_signed): Likewise.
9345 (regcache_cooked_write_unsigned): Likewise.
9346 (regcache_raw_set_cached_value): Likewise.
9347 (regcache_raw_write): Likewise.
9348 (regcache_cooked_write): Likewise.
9349 (regcache_xfer_part): Likewise.
9350 (regcache_raw_read_part): Likewise.
9351 (regcache_raw_write_part): Likewise.
9352 (regcache_cooked_read_part): Likewise.
9353 (regcache_cooked_write_part): Likewise.
9354 (regcache_raw_supply): Likewise.
9355 (regcache_raw_collect): Likewise.
9356 (regcache_transfer_regset): Likewise.
9357 (regcache_supply_regset): Likewise.
9358 (regcache_collect_regset): Likewise.
9359 (regcache_debug_print_register): Likewise.
9360 (enum regcache_dump_what): Move it to regcache.h.
9361 (regcache_dump): Change it to method dump.
9362 * regcache.h (enum regcache_dump_what): New.
9363 (class regcache): New.
9364 * target.c (target_fetch_registers): Call method
9365 debug_print_register.
9366 (target_store_registers): Likewise.
9367
f8fdb78e
SM
93682017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9369
9370 * windows-nat.c (struct lm_info_windows): Initialize field.
9371 (windows_make_so): Allocate lm_info_windows with new.
9372 (windows_free_so): Free lm_info_windows with delete.
9373
9ccbfd7b
SM
93742017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9375
9376 * solib-darwin.c (struct lm_info_darwin): Initialize field.
9377 (darwin_current_sos): Allocate lm_info_darwin with new, remove
9378 cleanup.
9379 (darwin_free_so): Free lm_info_darwin with delete.
9380
76e75227
SM
93812017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9382
9383 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
9384 <l_addr_p>: Change type to bool.
9385 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
9386 (svr4_free_so): Free lm_info_svr4 with delete.
9387 (svr4_copy_library_list): Replace memcpy with call to copy
9388 constructor.
9389 (library_list_start_library, svr4_default_sos): Allocate
9390 lm_info_svr4 with new.
9391
51046d9e
SM
93922017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9393
9394 * solib-target.c (struct lm_info_target): Add destructor,
9395 initialize fields.
9396 <name>: Change type to std::string.
9397 (library_list_start_library): Allocate lm_info_target with new.
9398 (solib_target_free_library_list): Free lm_info_target with
9399 delete.
9400 (solib_target_current_sos): Adapt to std::string.
9401 (solib_target_free_so): Free lm_info_target with delete.
9402
4023ae76
SM
94032017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9404
9405 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
9406 fields.
9407 (frv_current_sos): Allocate lm_info_frv with new.
9408 (frv_relocate_main_executable): Free lm_info_frv with delete,
9409 allocate with new.
9410 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
9411
af43057b
SM
94122017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9413
9414 * solib-frv.c (struct lm_info_frv): Fix indentation.
9415
b0911207
SM
94162017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9417
9418 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
9419 map field.
9420 (dsbt_current_sos): Allocate lm_info_dsbt with new.
9421 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
9422 and allocate with new.
9423 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
9424
6c401f72
SM
94252017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9426
9427 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
9428 <filename, member_name>: Change type to std::string.
9429 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
9430 (library_list_start_library): Allocate lm_info_aix with new.
9431 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
9432 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
9433 with copy constructor.
9434
d0e449a1
SM
94352017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9436
9437 * solist.h (struct lm_info): Remove.
9438 (struct lm_info_base): New class.
9439 (struct so_list) <lm_info>: Change type to lm_info_base *.
9440 * nto-tdep.c (struct lm_info): Remove.
9441 (lm_addr): Adjust.
9442 * solib-aix.c (struct lm_info): Rename to ...
9443 (struct lm_info_aix): ... this. Extend lm_info_base.
9444 (lm_info_p): Rename to ...
9445 (lm_info_aix_p): ... this, and adjust.
9446 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
9447 solib_aix_parse_libraries, library_list_start_library,
9448 solib_aix_free_library_list, solib_aix_parse_libraries,
9449 solib_aix_get_library_list,
9450 solib_aix_relocate_section_addresses, solib_aix_free_so,
9451 solib_aix_get_section_offsets,
9452 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
9453 Adjust.
9454 (struct solib_aix_inferior_data) <library_list>: Adjust.
9455 * solib-darwin.c (struct lm_info): Rename to ...
9456 (struct lm_info_darwin): ... this. Extend lm_info_base.
9457 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
9458 * solib-dsbt.c (struct lm_info): Rename to ...
9459 (struct lm_info_dsbt): ... this. Extend lm_info_base.
9460 (struct dsbt_info) <main_executable_lm_info): Adjust.
9461 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
9462 dsbt_relocate_section_addresses): Adjust.
9463 * solib-frv.c (struct lm_info): Rename to ...
9464 (struct lm_info_frv): ... this. Extend lm_info_base.
9465 (main_executable_lm_info): Adjust.
9466 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
9467 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
9468 find_canonical_descriptor_in_load_object,
9469 frv_fdpic_find_canonical_descriptor): Adjust.
9470 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
9471 to lm_info_svr4.
9472 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
9473 svr4_clear_so, svr4_copy_library_list,
9474 library_list_start_library, svr4_default_sos, svr4_read_so_list,
9475 svr4_current_sos, svr4_fetch_objfile_link_map,
9476 solist_update_incremental): Adjust.
9477 * solib-svr4.h (struct lm_info_svr4): Move here from
9478 solib-svr4.c.
9479 * solib-target.c (struct lm_info): Rename to ...
9480 (struct lm_info_target): ... this. Extend lm_info_base.
9481 (lm_info_p): Rename to ...
9482 (lm_info_target_p): ... this.
9483 (solib_target_parse_libraries, library_list_start_segment,
9484 library_list_start_section, library_list_start_library,
9485 library_list_end_library, solib_target_free_library_list,
9486 solib_target_current_sos, solib_target_free_so,
9487 solib_target_relocate_section_addresses): Adjust.
9488 * windows-nat.c (struct lm_info): Rename to ...
9489 (struct lm_info_windows): ... this. Extend lm_info_base.
9490 (windows_make_so, handle_load_dll, handle_unload_dll,
9491 windows_xfer_shared_libraries): Adjust.
9492
434a4023
SM
94932017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9494
9495 * solib-darwin.c (struct darwin_so_list): Remove.
9496 (darwin_current_sos): Allocate an so_list object instead of a
9497 darwin_so_list, separately allocate an lm_info object.
9498 (darwin_free_so): Free lm_info.
9499
428544e8
JB
95002017-04-28 John Baldwin <jhb@FreeBSD.org>
9501
9502 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
9503 with fprintf_filtered.
9504
4621115f
YQ
95052017-04-28 Yao Qi <yao.qi@linaro.org>
9506
9507 * regcache.c (regcache::regcache): New function.
9508 (regcache::~regcache): New function.
9509 (regcache_xmalloc_1): Remove.
9510 (regcache_xmalloc): Call new regcache.
9511 (regcache_xfree): Call delete regcache.
9512 (get_thread_arch_aspace_regcache): Call new regcache.
9513
339053c2
YQ
95142017-04-28 Yao Qi <yao.qi@linaro.org>
9515
9516 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
9517 lwp instead of ptid_get_lwp.
9518
7974a605
YQ
95192017-04-28 Yao Qi <yao.qi@linaro.org>
9520
9521 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
9522 lwp_info instead of getting from inferior_ptid.
9523
e15c3eb4
KS
95242017-04-27 Keith Seitz <keiths@redhat.com>
9525
9526 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
9527 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
9528 (CV_CONVERSION_BADNESS): Define.
9529 (rank_one_type): Remove overly restrictive rvalue reference
9530 rank checks.
9531 Add cv-qualifier checks and subranks for type equality.
9532 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
9533 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
9534 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
9535
72bc1d24
SM
95362017-04-27 Simon Marchi <simon.marchi@ericsson.com>
9537
9538 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
9539 count when creating the object.
9540
55bcecda
UW
95412017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
9542 Ulrich Weigand <uweigand@de.ibm.com>
9543
9544 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
9545 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
9546 is used in AIX.
9547 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
9548 (process_xcoff_symbol): Likewise.
9549 (scan_xcoff_symtab): Likewise.
9550
5c99fcf8
AH
95512017-04-26 Alan Hayward <alan.hayward@arm.com>
9552
9553 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
9554 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
9555 (ia64_access_reg): Use get_frame_register_unsigned.
9556 (ia64_access_rse_reg): Likewise.
9557 (ia64_libunwind_frame_prev_register): Likewise.
9558
b41c5a85
JW
95592017-04-26 Jiong Wang <jiong.wang@arm.com>
9560
9561 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
9562 * gdbarch.c: Regenerated.
9563 * gdbarch.h: Regenerated.
9564 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
9565 visibility external.
9566 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
9567 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
9568 (enum cfa_how_kind): Move to ...
9569 (struct dwarf2_frame_state_reg_info): Likewise.
9570 (struct dwarf2_frame_state): Likewise.
9571 * dwarf2-frame.h: ... here.
9572 (dwarf2_frame_state_alloc_regs): New declaration.
9573 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
9574 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
9575
c185f580
AH
95762017-04-26 Alan Hayward <alan.hayward@arm.com>
9577
9578 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
9579 regcache_raw_read_unsigned.
9580 (xtensa_pseudo_register_write): Likewise.
9581
19c45594
AH
95822017-04-26 Alan Hayward <alan.hayward@arm.com>
9583
9584 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
9585 (nds32_pseudo_register_write): Likewise.
9586
4658f12e
YQ
95872017-04-25 Yao Qi <yao.qi@linaro.org>
9588
9589 * regcache.c (struct regcache) <readonly_p>: Change its type
9590 to bool.
9591 (regcache_xmalloc_1): Update parameter type and callers update.
9592
d581dda8
YQ
95932017-04-25 Yao Qi <yao.qi@linaro.org>
9594
9595 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9596 set_gdbarch_wchar_bit.
9597 * arm-tdep.c (arm_gdbarch_init): Likewise.
9598
debed3db
PA
95992017-04-25 Pedro Alves <palves@redhat.com>
9600
9601 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
9602 (BothAreRelocatable, memcopy, memmove): Don't define.
9603 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
9604 macros.
9605
b0b92aeb
PA
96062017-04-25 Pedro Alves <palves@redhat.com>
9607
9608 * common/common-defs.h: Include "common/poison.h".
9609 * common/function-view.h: (Not, Or, Requires): Move to traits.h
9610 and adjust.
9611 * common/poison.h: New file.
9612 * common/traits.h: Include <type_traits>.
9613 (Not, Or, Requires): New, moved from common/function-view.h.
9614
16c4d54a
PA
96152017-04-25 Pedro Alves <palves@redhat.com>
9616
9617 * breakpoint.h (struct breakpoint): In-class initialize all
9618 fields. Make boolean fields "bool".
9619 * breakpoint.c (init_raw_breakpoint_without_location): Remove
9620 memset call and initializations no longer necessary.
9621
b5c36682
PA
96222017-04-25 Pedro Alves <palves@redhat.com>
9623
9624 * btrace.c (pt_btrace_insn_flags): Change parameter type to
9625 reference.
9626 (pt_btrace_insn): New function.
9627 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
9628
5625a286
PA
96292017-04-25 Pedro Alves <palves@redhat.com>
9630
9631 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
9632 "base" field and inherit from "bp_location" instead. Add
9633 non-default ctor.
9634 (allocate_location_exception): Use new non-default ctor.
9635 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
9636 (init_bp_location): Convert to ...
9637 (bp_location::bp_location): ... this new ctor, and remove memset
9638 call.
9639 (base_breakpoint_allocate_location): Use the new non-default ctor.
9640 * breakpoint.h (bp_location): Now a class. Declare default and
9641 non-default ctors. In-class initialize all members.
9642 (init_bp_location): Remove declaration.
9643
23bcc18f
PA
96442017-04-25 Pedro Alves <palves@redhat.com>
9645
9646 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
9647 assignment operator.
9648
e1ba3053
YQ
96492017-04-24 Yao Qi <yao.qi@linaro.org>
9650
9651 * doublest.c (convert_doublest_to_floatformat): Call
9652 floatformat_totalsize_bytes.
9653
10f489e5
TT
96542017-04-22 Tom Tromey <tom@tromey.com>
9655
9656 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
9657 ui_out_emit_list.
9658 * stack.c (print_frame): Use ui_out_emit_list.
9659 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
9660 ui_out_emit_list.
9661 * mi/mi-main.c (print_one_inferior)
9662 (mi_cmd_data_list_register_names)
9663 (mi_cmd_data_list_register_values, mi_cmd_list_features)
9664 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
9665 ui_out_emit_list.
9666 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
9667 (mi_output_solib_attribs): Use ui_out_emit_list,
9668 ui_out_emit_tuple.
9669 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
9670 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9671 (mi_cmd_stack_list_args, list_args_or_locals): Use
9672 ui_out_emit_list.
9673 * disasm.c (do_assembly_only): Use ui_out_emit_list.
9674 * breakpoint.c (print_solib_event, output_thread_groups): Use
9675 ui_out_emit_list.
9676
0092b74d
TT
96772017-04-22 Tom Tromey <tom@tromey.com>
9678
9679 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
9680 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
9681 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
9682
a14a62dd
TT
96832017-04-22 Tom Tromey <tom@tromey.com>
9684
9685 * tracepoint.c (tvariables_info_1)
9686 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
9687
46b9c129
TT
96882017-04-22 Tom Tromey <tom@tromey.com>
9689
9690 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
9691 annotate_arg_emitter.
9692 * breakpoint.c (print_mention_watchpoint)
9693 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
9694 * annotate.h (struct annotate_arg_emitter): New.
9695
2e783024
TT
96962017-04-22 Tom Tromey <tom@tromey.com>
9697
9698 * record-btrace.c (record_btrace_insn_history)
9699 (record_btrace_insn_history_range, record_btrace_call_history)
9700 (record_btrace_call_history_range): Use ui_out_emit_tuple.
9701 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
9702 ui_out_emit_tuple.
9703 * stack.c (print_frame_info): Use ui_out_emit_tuple.
9704 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
9705 * skip.c (skip_info): Use ui_out_emit_tuple.
9706 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
9707 * progspace.c (print_program_space): Use ui_out_emit_tuple.
9708 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
9709 * osdata.c (info_osdata): Use ui_out_emit_tuple.
9710 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
9711 ui_out_emit_tuple.
9712 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
9713 (output_register, mi_cmd_data_read_memory)
9714 (mi_cmd_data_read_memory_bytes, mi_load_progress)
9715 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
9716 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
9717 Use ui_out_emit_tuple.
9718 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
9719 ui_out_emit_tuple.
9720 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
9721 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
9722 * linux-thread-db.c (info_auto_load_libthread_db): Use
9723 ui_out_emit_tuple.
9724 * inferior.c (print_inferior): Use ui_out_emit_tuple.
9725 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
9726 * disasm.c (do_mixed_source_and_assembly_deprecated)
9727 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
9728 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
9729 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
9730 * breakpoint.c (print_one_breakpoint_location)
9731 (print_one_breakpoint): Use ui_out_emit_tuple.
9732 * auto-load.c (print_script, info_auto_load_cmd): Use
9733 ui_out_emit_tuple.
9734 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
9735
9be21bb4
SM
97362017-04-21 Simon Marchi <simon.marchi@ericsson.com>
9737
9738 * thread.c (print_thread_info_1): Remove dead code.
9739
0d4c07af
JK
97402017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9741
9742 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
9743 GDB_SELF_TEST.
9744 * arm-tdep.c (selftests::arm_record_test): Likewise.
9745
4daf993d
YQ
97462017-04-21 Yao Qi <yao.qi@linaro.org>
9747
9748 * regcache.c (regcache_restore): Remove argument 2. Replace
9749 argument 3 with regcache. Get register status from
9750 src->register_status and get register contents from
9751 register_buffer (src, regnum).
9752 (regcache_cpy): Update.
9753
a6c21d4a
PA
97542017-04-19 Pedro Alves <palves@redhat.com>
9755
9756 * gdbthread.h (thread): Add missing closing parenthesis in
9757 comment.
9758
3a3fd0fd
PA
97592017-04-19 Pedro Alves <palves@redhat.com>
9760
9761 * common/refcounted-object.h: New file.
9762 * gdbthread.h: Include "common/refcounted-object.h".
9763 (thread_info): Inherit from refcounted_object and add comments.
9764 (thread_info::incref, thread_info::decref)
9765 (thread_info::m_refcount): Delete.
9766 (thread_info::deletable): Use the refcounted_object::refcount()
9767 method.
9768 * inferior.c (current_inferior_): Add comment.
9769 (set_current_inferior): Increment/decrement refcounts.
9770 (prune_inferiors, remove_inferior_command): Skip inferiors marked
9771 not-deletable instead of comparing with the current inferior.
9772 (initialize_inferiors): Increment the initial inferior's refcount.
9773 * inferior.h (struct inferior): Forward declare.
9774 Include "common/refcounted-object.h".
9775 (current_inferior, set_current_inferior): Move declaration to
9776 before struct inferior's definition, and fix comment.
9777 (inferior): Inherit from refcounted_object. Add comments.
9778 * thread.c (switch_to_thread_no_regs): Reference the thread's
9779 inferior pointer directly instead of doing a ptid lookup.
9780 (switch_to_no_thread): New function.
9781 (switch_to_thread(thread_info *)): New function, factored out
9782 from ...
9783 (switch_to_thread(ptid_t)): ... this.
9784 (restore_current_thread): Delete.
9785 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
9786 fields, and add 'inf' field.
9787 (do_restore_current_thread_cleanup): Check whether old->inf is
9788 alive instead of looking up an inferior by ptid. Use
9789 switch_to_thread and switch_to_no_thread.
9790 (restore_current_thread_cleanup_dtor): Use old->inf directly
9791 instead of lookup up an inferior by id. Decref the inferior.
9792 Don't restore 'removable'.
9793 (make_cleanup_restore_current_thread): Same the inferior pointer
9794 in old, instead of the inferior number. Incref the inferior.
9795 Don't save/clear 'removable'.
9796
9bcb1f16
PA
97972017-04-19 Pedro Alves <palves@redhat.com>
9798
9799 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9800 unittests/scoped_restore-selftests.c.
9801 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
9802 * common/scoped_restore.h (scoped_restore_base): Make "class".
9803 (scoped_restore_base::release): New public method.
9804 (scoped_restore_base::scoped_restore_base): New protected ctor.
9805 (scoped_restore_base::m_saved_var): New protected field.
9806 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
9807 scoped_restore_base base class instead of m_saved_var directly.
9808 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
9809 (scoped_restore_tmpl::scoped_restore_tmpl(const
9810 scoped_restore_tmpl<T>&)): Likewise.
9811 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
9812 method.
9813 (scoped_restore_tmpl::saved_var): New method.
9814 (scoped_restore_tmpl::m_saved_var): Delete.
9815 * inferior.h (inferior::detaching): Now a bool.
9816 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
9817 cleanup.
9818 * unittests/scoped_restore-selftests.c: New file.
9819
26fcd539
PA
98202017-04-19 Pedro Alves <palves@redhat.com>
9821
9822 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
9823 Re-sort in alphabetic order.
9824
fdd243b0
PA
98252017-04-18 Pedro Alves <palves@redhat.com>
9826
9827 * xml-support.c (obstack_xml_printf): Delete.
9828 * xml-support.h (obstack_xml_printf): Delete.
9829
4895cde2
PA
98302017-04-18 Pedro Alves <palves@redhat.com>
9831
9832 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
9833 vdebug, verror, body_text, start_element, end_element, name,
9834 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
9835 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
9836 is_xinclude>: Make private and add m_ prefix.
9837 (gdb_xml_parser::body_text): New method, based on ...
9838 (gdb_xml_body_text): ... this. Adjust.
9839 (gdb_xml_parser::vdebug): New method, based on ...
9840 (gdb_xml_debug): ... this. Adjust.
9841 (gdb_xml_parser::verror): New method, based on ...
9842 (gdb_xml_error): ... this. Adjust.
9843 (gdb_xml_parser::start_element): New method, based on ...
9844 (gdb_xml_start_element): ... this. Adjust.
9845 (gdb_xml_start_element_wrapper): Defer to
9846 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
9847 (gdb_xml_parser::end_element): New method, based on ...
9848 (gdb_xml_end_element_wrapper): ... this. Adjust.
9849 (gdb_xml_parser::~gdb_xml_parser): Adjust.
9850 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
9851 (gdb_xml_parser::use_dtd): New method, based on ...
9852 (gdb_xml_use_dtd): ... this. Adjust.
9853 (gdb_xml_parser::parse): New method, based on ...
9854 (gdb_xml_parse): ... this. Adjust.
9855 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
9856 (xinclude_start_include): Adjust to call the parser's name method.
9857 (xml_xinclude_default, xml_xinclude_start_doctype)
9858 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
9859 method.
9860 (xml_process_xincludes): Adjust to call parser methods.
9861 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
9862 declarations.
9863
bd8a901f
PA
98642017-04-18 Pedro Alves <palves@redhat.com>
9865
9866 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
9867 gdb::optional<std::string>.
9868 * xml-support.c: Include <string>.
9869 (scope_level::scope_level(scope_level &&))
9870 (scope_level::~scope_level): Delete.
9871 (scope_level::body): Now a std::string.
9872 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
9873 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
9874 parameter.
9875 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
9876 (xinclude_parsing_data::output): Now a std::string reference.
9877 (xinclude_start_include): Adjust.
9878 (xml_xinclude_default): Adjust.
9879 (xml_process_xincludes): Add 'output' parameter, and return bool.
9880 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
9881 and return bool.
9882 * xml-tdesc.c: Include <unordered_map> and <string>.
9883 (tdesc_xml_cache): Delete.
9884 (tdesc_xml_cache_s): Delete.
9885 (xml_cache): Now an std::unordered_map.
9886 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
9887 (target_fetch_description_xml): Change return type to
9888 gdb::optional<std::string>, and adjust.
9889 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
9890 (target_fetch_description_xml): Change return type to
9891 gdb::optional<std::string>.
9892
d35d1958
PA
98932017-04-18 Pedro Alves <palves@redhat.com>
9894
9895 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9896 unittests/optional-selftests.c.
9897 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
9898 * unittests/optional-selftests.c: New file.
9899 * unittests/optional/assignment/1.cc: New file.
9900 * unittests/optional/assignment/2.cc: New file.
9901 * unittests/optional/assignment/3.cc: New file.
9902 * unittests/optional/assignment/4.cc: New file.
9903 * unittests/optional/assignment/5.cc: New file.
9904 * unittests/optional/assignment/6.cc: New file.
9905 * unittests/optional/assignment/7.cc: New file.
9906 * unittests/optional/cons/copy.cc: New file.
9907 * unittests/optional/cons/default.cc: New file.
9908 * unittests/optional/cons/move.cc: New file.
9909 * unittests/optional/cons/value.cc: New file.
9910 * unittests/optional/in_place.cc: New file.
9911 * unittests/optional/observers/1.cc: New file.
9912 * unittests/optional/observers/2.cc: New file.
9913
22796e97
PA
99142017-04-18 Pedro Alves <palves@redhat.com>
9915
9916 * common/gdb_optional.h: Include common/traits.h.
9917 (in_place_t): New type.
9918 (in_place): New constexpr variable.
9919 (optional::optional): Remove member initialization of
9920 m_instantiated.
9921 (optional::optional(in_place_t...)): New constructor.
9922 (optional::~optional): Use reset.
9923 (optional::optional(const optional&)): New.
9924 (optional::optional(const optional&&)): New.
9925 (optional::optional(T &)): New.
9926 (optional::optional(T &&)): New.
9927 (operator::operator=(const optional &)): New.
9928 (operator::operator=(optional &&)): New.
9929 (operator::operator= (const T &))
9930 (operator::operator= (T &&))
9931 (operator::emplace (Args &&... args)): Return a T&. Use reset.
9932 (operator::reset): New.
9933 (operator::m_instantiated):: Add in-class initializer.
9934 * common/traits.h: Include <type_traits>.
9935 (struct And): New types.
9936
a7fc9b61
PA
99372017-04-18 Pedro Alves <palves@redhat.com>
9938
9939 * xml-support.c: Include <vector>.
9940 (scope_level::scope_level(const gdb_xml_element *))
9941 (scope_level::scope_level(scope_level&&)): New.
9942 (scope_level::~scope_level): New.
9943 (scope_level_s): Delete.
9944 (gdb_xml_parser::scopes): Now a std::vector.
9945 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
9946 Use std::vector.
9947 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
9948 scope cleanup code.
9949 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
9950 of the scopes member. Use std::vector::emplace_back.
9951
010151c9
PA
99522017-04-18 Pedro Alves <palves@redhat.com>
9953
9954 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
9955 a bool.
9956 (gdb_xml_end_element): Change type of first parameter.
9957 (gdb_xml_cleanup): Rename to ...
9958 (gdb_xml_parser::~gdb_xml_parser): ... this.
9959 (gdb_xml_create_parser_and_cleanup): Delete with ...
9960 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
9961 to this new ctor.
9962 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
9963 using gdb_xml_create_parser_and_cleanup.
9964 (xinclude_parsing_data): Add ctor/dtor.
9965 (xml_xinclude_cleanup): Delete.
9966 (xml_process_xincludes): Create a local xinclude_parsing_data
9967 instead of heap-allocating one. Create a local gdb_xml_parser
9968 instead of heap-allocating one with
9969 gdb_xml_create_parser_and_cleanup.
9970
d56060f0
JB
99712017-04-18 John Baldwin <jhb@FreeBSD.org>
9972
9973 PR threads/20743
9974 * fbsd-nat.c (resume_one_thread_cb): Remove.
9975 (resume_all_threads_cb): Remove.
9976 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
9977 iterate_over_threads.
9978
305d16a9
JB
99792017-04-17 Joel Brobecker <brobecker@adacore.com>
9980
9981 * NEWS: Create a new section for the next release branch.
9982 Rename the section of the current branch, now that it has
9983 been cut.
9984
8bb57231
JB
99852017-04-17 Joel Brobecker <brobecker@adacore.com>
9986
9987 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
9988 * version.in: Bump version to 8.0.50.DATE-git.
9989
096c92dd
SDJ
99902017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
9991
9992 PR gdb/21385
9993 * windows-nat.c (windows_create_inferior): Declare 'allargs'
9994 independently of the host, and fix build breakage on Cygwin.
9995
0550c955
PA
99962017-04-13 Pedro Alves <palves@redhat.com>
9997
9998 * inferior.c (free_inferior): Convert to ...
9999 (inferior::~inferior): ... this dtor.
10000 (inferior::inferior): New ctor, factored out from ...
10001 (add_inferior_silent): ... here. Allocate the inferior with a new
10002 expression.
10003 (delete_inferior): Call delete instead of free_inferior.
10004 * inferior.h (gdb_environ, continuation): Forward declare.
10005 (inferior): Now a class. Add in-class initialization to all
10006 members. Make boolean fields bool, except 'detaching'.
10007 (inferior::inferior): New explicit ctor.
10008 (inferior::~inferior): New.
10009
e3d60dfc
PA
100102017-04-13 Pedro Alves <palves@redhat.com>
10011
10012 * inferior.c (init_inferior_list): Delete.
10013 * inferior.h (init_inferior_list): Delete.
10014
5fd69d0a
PA
100152017-04-13 Pedro Alves <palves@redhat.com>
10016
10017 PR threads/13217
10018 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
10019 (top level): Call it twice, with different thread sets.
10020
c6609450
PA
100212017-04-13 Pedro Alves <palves@redhat.com>
10022
10023 * thread.c: Include <algorithm>.
10024 (thread_array_cleanup): Delete.
10025 (scoped_inc_dec_ref): New class.
10026 (live_threads_count): New function.
10027 (set_thread_refcount): Delete.
10028 (tp_array_compar_ascending): Now a bool.
10029 (tp_array_compar): Convert to a std::sort comparison function.
10030 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
10031 and live_threads_count.
10032
2a00d7ce
PA
100332017-04-13 Pedro Alves <palves@redhat.com>
10034
10035 * infrun.c (follow_fork_inferior): Also switch the current
10036 inferior.
10037
441d7c93
PA
100382017-04-13 Pedro Alves <palves@redhat.com>
10039
10040 * breakpoint.c (watch_command_1): Save watchpoint-frame info
10041 before calling create_internal_breakpoint.
10042
808480f6
PA
100432017-04-13 Pedro Alves <palves@redhat.com>
10044
10045 * fork-child.c (execv_argv): New class.
10046 (breakup_args): Refactored as ...
10047 (execv_argv::init_for_no_shell): .. this method of execv_argv.
10048 Copy arguments to storage and replace separators with NULL
10049 terminators in place.
10050 (escape_bang_in_quoted_argument): Adjust to return bool.
10051 (execv_argv::execv_argv): New ctor.
10052 (execv_argv::init_for_shell): New method, factored out from
10053 fork_inferior. Don't strdup strings into the vector.
10054 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
10055 Remove free_vector_argv call.
10056
ad3d022a
YQ
100572017-04-13 Yao Qi <yao.qi@linaro.org>
10058
10059 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
10060 tdep->rx_psw_type.
10061
e6ddc3bf
YQ
100622017-04-13 Yao Qi <yao.qi@linaro.org>
10063
10064 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
10065 * rx-tdep.c (rx_gdbarch_init): Likewise.
10066
bfb8cf90
PA
100672017-04-13 Pedro Alves <palves@redhat.com>
10068
10069 * breakpoint.h (struct breakpoint): Reindent.
10070
f5336ca5
PA
100712017-04-13 Pedro Alves <palves@redhat.com>
10072
10073 * breakpoint.c (bp_location): Rename to ...
10074 (bp_locations): ... this. All references updated.
10075 (bp_location_count): Rename to ...
10076 (bp_locations_count): ... this. All references updated.
10077 (bp_location_placed_address_before_address_max): Rename to ...
10078 (bp_locations_placed_address_before_address_max): ... this. All
10079 references updated.
10080 (bp_location_shadow_len_after_address_max): Rename to ...
10081 (bp_locations_shadow_len_after_address_max): ... this. All
10082 references updated.
10083 (bp_location_compare_addrs): Rename to ...
10084 (bp_locations_compare_addrs): ... this. All references updated.
10085 (bp_location_compare):Rename to ...
10086 (bp_locations_compare): ... this. All references updated.
10087 (bp_location_target_extensions_update): Rename to ...
10088 (bp_locations_target_extensions_update): ... this. All references
10089 updated.
10090
be628ab8
SDJ
100912017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10092
10093 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
10094 * common/common.m4: Check headers 'termios.h', 'termio.h' and
10095 'sgtty.h'.
10096 * common/gdb_termios.h: New file, with parts of "terminal.h".
10097 * inflow.c: Include "gdb_termios.h".
10098 * ser-unix.c: Include "gdb_termios.h".
10099 * terminal.h: Move terminal-related defines to
10100 "common/gdb_termios.h".
10101
8e9e35b1
TT
101022017-04-12 Tom Tromey <tom@tromey.com>
10103
10104 * probe.c (parse_probes): Update.
10105 * location.h (delete_event_location): Don't declare.
10106 (event_location_deleter::operator()): Update.
10107 * location.c (event_location_deleter::operator()): Rename from
10108 delete_event_location.
10109 * linespec.h (linespec_result) <location>: Change type to
10110 event_location_up.
10111 * linespec.c (canonicalize_linespec, event_location_to_sals)
10112 (decode_objc): Update.
10113 (linespec_result): Don't call delete_event_location.
10114 * breakpoint.c (create_breakpoints_sal)
10115 (bkpt_probe_create_sals_from_location)
10116 (strace_marker_create_sals_from_location): Update.
10117
16e802b9
TT
101182017-04-12 Tom Tromey <tom@tromey.com>
10119
10120 * linespec.h (struct linespec_result): Add constructor and
10121 destructor.
10122 (init_linespec_result, destroy_linespec_result)
10123 (make_cleanup_destroy_linespec_result): Don't declare.
10124 * linespec.c (init_linespec_result): Remove.
10125 (linespec_result::~linespec_result): Rename from
10126 destroy_linespec_result. Update.
10127 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
10128 Remove.
10129 * breakpoint.c (create_breakpoint, break_range_command)
10130 (decode_location_default): Update.
10131 * ax-gdb.c (agent_command_1): Update.
10132
d28cd78a
TT
101332017-04-12 Tom Tromey <tom@tromey.com>
10134
10135 * remote.c (remote_download_tracepoint): Update.
10136 * python/py-breakpoint.c (bppy_get_location): Update.
10137 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
10138 (gdbscm_breakpoint_location): Update.
10139 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
10140 * breakpoint.h (struct breakpoint) <location, location_range_end>:
10141 Change type to event_location_up.
10142 * breakpoint.c (create_overlay_event_breakpoint)
10143 (create_longjmp_master_breakpoint)
10144 (create_std_terminate_master_breakpoint)
10145 (create_exception_master_breakpoint)
10146 (breakpoint_event_location_empty_p, print_breakpoint_location)
10147 (print_one_breakpoint_location, create_thread_event_breakpoint)
10148 (init_breakpoint_sal, create_breakpoint)
10149 (print_recreate_ranged_breakpoint, break_range_command)
10150 (init_ada_exception_breakpoint, say_where): Update.
10151 (base_breakpoint_dtor): Don't call delete_event_location.
10152 (bkpt_print_recreate, tracepoint_print_recreate)
10153 (dprintf_print_recreate, update_static_tracepoint)
10154 (breakpoint_re_set_default): Update.
10155
711799d5
TT
101562017-04-12 Tom Tromey <tom@tromey.com>
10157
10158 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
10159 type of "to_do". Update.
10160 (compute_stack_depth): Use std::vector.
10161
52d214d3
TT
101622017-04-12 Tom Tromey <tom@tromey.com>
10163
10164 * printcmd.c (find_instruction_backward): Use std::vector.
10165
4c404b8b
TT
101662017-04-12 Tom Tromey <tom@tromey.com>
10167
10168 * symfile.c (objfilep): Remove typedef.
10169 (reread_symbols): Use a std::vector.
10170
156d9eab
TT
101712017-04-12 Tom Tromey <tom@tromey.com>
10172
10173 * mi/mi-main.c (exec_direction_forward): Remove.
10174 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
10175 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
10176 scoped_restore.
10177 * guile/guile.c (guile_repl_command, guile_command)
10178 (gdbscm_execute_gdb_command): Use scoped_restore.
10179 * go-exp.y (go_parse): Use scoped_restore.
10180 * d-exp.y (d_parse): Use scoped_restore.
10181 * cli/cli-decode.c (cmd_func): Use scoped_restore.
10182 * c-exp.y (c_parse): Use scoped_restore.
10183
4d89769a
TT
101842017-04-12 Tom Tromey <tom@tromey.com>
10185
10186 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
10187 (mi_parse): Update return type.
10188 (mi_parse_free): Remove.
10189 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
10190 (mi_parse::~mi_parse): Rename from mi_parse_free.
10191 (mi_parse_cleanup): Remove.
10192 (mi_parse): Return a unique_ptr. Use new.
10193 * mi/mi-main.c (mi_execute_command): Update.
10194
4b217cc7
TT
101952017-04-12 Tom Tromey <tom@tromey.com>
10196
10197 * location.c (explicit_location_lex_one): Return a
10198 unique_xmalloc_ptr.
10199 (string_to_explicit_location): Update. Remove cleanups.
10200
59d3651b
TT
102012017-04-12 Tom Tromey <tom@tromey.com>
10202
10203 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
10204 (compare_value_and_voffset): Change type. Update.
10205 (compute_vtable_size): Change type of "offset_vec".
10206 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
10207 (gnuv3_get_typeid): Remove extraneous declaration.
10208
b24b0d6c
TT
102092017-04-12 Tom Tromey <tom@tromey.com>
10210
10211 * charset.h (wchar_iterator): Fix comment.
10212
80a3b8c5
TT
102132017-04-12 Tom Tromey <tom@tromey.com>
10214
10215 * charset.c (iconv_wrapper): New class.
10216 (cleanup_iconv): Remove.
10217 (convert_between_encodings): Use it.
10218
c83dd867
TT
102192017-04-12 Tom Tromey <tom@tromey.com>
10220
10221 * symfile.h (increment_reading_symtab): Update type.
10222 * symfile.c (decrement_reading_symtab): Remove.
10223 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
10224 * psymtab.c (psymtab_to_symtab): Update.
10225 * dwarf2read.c (dw2_instantiate_symtab): Update.
10226
0e8621a0
TT
102272017-04-12 Tom Tromey <tom@tromey.com>
10228
10229 * jit.c (struct jit_reader): Declare separately. Add constructor
10230 and destructor. Change type of "handle".
10231 (loaded_jit_reader): Define separately.
10232 (jit_reader_load): Update. New "new".
10233 (jit_reader_unload_command): Use "delete".
10234 * gdb-dlfcn.h (struct dlclose_deleter): New.
10235 (gdb_dlhandle_up): New typedef.
10236 (gdb_dlopen, gdb_dlsym): Update types.
10237 (gdb_dlclose): Remove.
10238 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
10239 (gdb_dlsym): Change type of "handle".
10240 (make_cleanup_dlclose): Remove.
10241 (dlclose_deleter::operator()): Rename from gdb_dlclose.
10242 * compile/compile-c-support.c (load_libcc): Update.
10243
67d89901
TT
102442017-04-12 Tom Tromey <tom@tromey.com>
10245
10246 * symtab.h (find_pcs_for_symtab_line): Change return type.
10247 * symtab.c (find_pcs_for_symtab_line): Change return type.
10248 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
10249 type of "vec". Update.
10250 (ltpy_get_pcs_for_line): Update.
10251 * linespec.c (decode_digits_ordinary): Update.
10252
93921405
TT
102532017-04-12 Tom Tromey <tom@tromey.com>
10254
10255 * tracepoint.c (actions_command): Update.
10256 * python/python.c (python_command, python_interactive_command):
10257 Update.
10258 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
10259 * guile/guile.c (guile_command): Update.
10260 * defs.h (read_command_lines, read_command_lines_1): Return
10261 command_line_up.
10262 (command_lines_deleter): New struct.
10263 (command_line_up): New typedef.
10264 * compile/compile.c (compile_code_command)
10265 (compile_print_command): Update.
10266 * cli/cli-script.h (get_command_line, copy_command_lines): Return
10267 command_line_up.
10268 (make_cleanup_free_command_lines): Remove.
10269 * cli/cli-script.c (get_command_line, read_command_lines_1)
10270 (copy_command_lines): Return command_line_up.
10271 (while_command, if_command, read_command_lines, define_command)
10272 (document_command): Update.
10273 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
10274 Remove.
10275 * breakpoint.h (breakpoint_set_commands): Change type of
10276 "commands".
10277 * breakpoint.c (breakpoint_set_commands): Change type of
10278 "commands". Update.
10279 (do_map_commands_command, update_dprintf_command_list)
10280 (create_tracepoint_from_upload): Update.
10281
ffc2605c
TT
102822017-04-12 Tom Tromey <tom@tromey.com>
10283
10284 * tracepoint.c (scope_info): Update.
10285 * spu-tdep.c (spu_catch_start): Update.
10286 * python/python.c (gdbpy_decode_line): Update.
10287 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
10288 * python/py-breakpoint.c (bppy_init): Update.
10289 * probe.c (parse_probes): Update.
10290 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
10291 * location.h (event_location_deleter): New struct.
10292 (event_location_up): New typedef.
10293 (new_linespec_location, new_address_location, new_probe_location)
10294 (new_explicit_location, copy_event_location)
10295 (string_to_event_location, string_to_event_location_basic)
10296 (string_to_explicit_location): Update return type.
10297 (make_cleanup_delete_event_location): Remove.
10298 * location.c (new_linespec_location, new_address_location)
10299 (new_probe_location, new_explicit_location, copy_event_location):
10300 Return event_location_up.
10301 (delete_event_location_cleanup)
10302 (make_cleanup_delete_event_location): Remove.
10303 (string_to_explicit_location, string_to_event_location_basic)
10304 (string_to_event_location): Return event_location_up.
10305 * linespec.c (canonicalize_linespec, event_location_to_sals)
10306 (decode_line_with_current_source)
10307 (decode_line_with_last_displayed, decode_objc): Update.
10308 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10309 * completer.c (location_completer): Update.
10310 * cli/cli-cmds.c (edit_command, list_command): Update.
10311 * breakpoint.c (create_overlay_event_breakpoint)
10312 (create_longjmp_master_breakpoint)
10313 (create_std_terminate_master_breakpoint)
10314 (create_exception_master_breakpoint)
10315 (create_thread_event_breakpoint): Update.
10316 (init_breakpoint_sal): Update. Remove some dead code.
10317 (create_breakpoint_sal): Change type of "location". Update.
10318 (create_breakpoints_sal, create_breakpoint, break_command_1)
10319 (dprintf_command, break_range_command, until_break_command)
10320 (init_ada_exception_breakpoint)
10321 (strace_marker_create_sals_from_location)
10322 (update_static_tracepoint, trace_command, ftrace_command)
10323 (strace_command, create_tracepoint_from_upload): Update.
10324 * break-catch-throw.c (re_set_exception_catchpoint): Update.
10325 * ax-gdb.c (agent_command_1): Update.
10326
8f10c932
PA
103272017-04-12 Pedro Alves <palves@redhat.com>
10328
10329 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
10330 * configure.tgt: Handle i[34567]86-*-go32* and
10331 i[34567]86-*-msdosdjgpp*.
10332 * i386-tdep.c (i386_svr4_reg_to_regnum):
10333 Make extern.
10334 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
10335 i386-go32-tdep.c.
10336 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
10337 * i386-go32-tdep.c: New file.
10338 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
10339 declarations.
10340
0a31ccfb
SM
103412017-04-12 Simon Marchi <simon.marchi@ericsson.com>
10342
10343 * aix-thread.c (pd_status2str): Change return type to const char *.
10344
e9bb3fbb
PA
103452017-04-12 Pedro Alves <palves@redhat.com>
10346
10347 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
10348 calls to set_gdbarch_gnu_triplet_regexp.
10349
53375380
PA
103502017-04-12 Pedro Alves <palves@redhat.com>
10351
10352 PR gdb/21323
10353 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
10354 New enum value.
10355 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
10356 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
10357 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
10358 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
10359 * gdbarch.h, gdbarch.c: Regenerate.
10360 * aarch64-tdep.c (aarch64_gdbarch_init): Override
10361 gdbarch_wchar_bit and gdbarch_wchar_signed.
10362 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
10363 * arm-tdep.c (arm_gdbarch_init): Likewise.
10364 * avr-tdep.c (avr_gdbarch_init): Likewise.
10365 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10366 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
10367 * i386-tdep.c (i386_go32_init_abi): Likewise.
10368 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10369 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10370 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
10371 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
10372 * sh-tdep.c (sh_gdbarch_init): Likewise.
10373 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10374 * sparc64-tdep.c (sparc64_init_abi): Likewise.
10375 * windows-tdep.c (windows_init_abi): Likewise.
10376 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10377
53e710ac
PA
103782017-04-12 Pedro Alves <palves@redhat.com>
10379
10380 PR c++/21323
10381 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
10382 cplus_primitive_type_char32_t>: New enum values.
10383 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
10384 and cplus_primitive_type_char32_t.
10385 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
10386 32, use the archtecture's built-in type for char16_t and char32_t,
10387 respectively. Otherwise, fallback to init_integer_type as before,
10388 but make the type unsigned, and issue a complaint.
10389 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
10390
ab0538b8
AH
103912017-04-12 Alan Hayward <alan.hayward@arm.com>
10392
5e0e0422 10393 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
10394 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
10395
5430098f
SDJ
103962017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10397
10398 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
10399 'const char *'.
10400
7c5ded6a
SDJ
104012017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10402
10403 * common/common-utils.c (free_vector_argv): New function.
10404 * common/common-utils.h: Include <vector>.
10405 (free_vector_argv): New prototype.
10406 * darwin-nat.c (darwin_create_inferior): Rewrite function
10407 prototype in order to constify "exec_file" and accept a
10408 "std::string" for "allargs".
10409 * fork-child.c: Include <vector>.
10410 (breakup_args): Rewrite function, using C++.
10411 (fork_inferior): Rewrite function header, constify "exec_file_arg"
10412 and accept "std::string" for "allargs". Update the code to
10413 calculate "argv" based on "allargs". Update calls to "exec_fun"
10414 and "execvp".
10415 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
10416 order to constify "exec_file" and accept a "std::string" for
10417 "allargs".
10418 * go32-nat.c (go32_create_inferior): Likewise.
10419 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
10420 * infcmd.c (run_command_1): Constify "exec_file". Use
10421 "std::string" for inferior arguments.
10422 * inferior.h (fork_inferior): Update prototype.
10423 * linux-nat.c (linux_nat_create_inferior): Rewrite function
10424 prototype in order to constify "exec_file" and accept a
10425 "std::string" for "allargs".
10426 * nto-procfs.c (procfs_create_inferior): Likewise.
10427 * procfs.c (procfs_create_inferior): Likewise.
10428 * remote-sim.c (gdbsim_create_inferior): Likewise.
10429 * remote.c (extended_remote_run): Update code to accept
10430 "std::string" as argument.
10431 (extended_remote_create_inferior): Rewrite function prototype in
10432 order to constify "exec_file" and accept a "std::string" for
10433 "allargs".
10434 * rs6000-nat.c (super_create_inferior): Likewise.
10435 (rs6000_create_inferior): Likewise.
10436 * target.h (struct target_ops) <to_create_inferior>: Likewise.
10437 * windows-nat.c (windows_create_inferior): Likewise.
10438
ae0eee42
PA
104392017-04-11 Pedro Alves <palves@redhat.com>
10440
10441 * thread.c: Fix whitespace throughout.
10442
a6acac06
PR
104432017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
10444
10445 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
10446
64403bd1
AH
104472017-04-11 Alan Hayward <alan.hayward@arm.com>
10448
10449 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
10450
a5bef50f
SDJ
104512017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
10452
10453 PR gdb/21364
10454 * osdata.c (info_osdata): Check if 'type' is an empty string
10455 instead of NULL.
10456
9295a5a9
PA
104572017-04-10 Pedro Alves <palves@redhat.com>
10458
10459 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
10460 (ptid_to_global_thread_id, in_thread_list)
10461 (do_captured_list_thread_ids, set_resumed, set_running)
10462 (set_executing, set_stop_requested, finish_thread_state)
10463 (validate_registers_access, can_access_registers_ptid)
10464 (print_thread_info_1, switch_to_thread)
10465 (do_restore_current_thread_cleanup)
10466 (make_cleanup_restore_current_thread, thread_command)
10467 (thread_name_command): Use operator== instead of ptid_equal.
10468
996812e3
PA
104692017-04-10 Pedro Alves <palves@redhat.com>
10470
10471 * thread.c (struct current_thread_cleanup) <next>: Delete field.
10472 (current_thread_cleanup_chain): Delete.
10473 (restore_current_thread_cleanup_dtor)
10474 (make_cleanup_restore_current_thread): Remove references to
10475 current_thread_cleanup_chain.
10476
845b344f
AH
104772017-04-10 Alan Hayward <alan.hayward@arm.com>
10478
10479 * msp430-tdep.c (msp430_pseudo_register_read): Never return
10480 REG_UNKNOWN.
10481
803bdfe4
YQ
104822017-04-10 Yao Qi <yao.qi@linaro.org>
10483
10484 PR gdb/19942
10485 * gdbthread.h (thread_info::deletable): New method.
10486 (thread_info::incref): New method.
10487 (thread_info::decref): New method.
10488 (thread_info::refcount): Move it to private.
10489 * infrun.c (save_stop_context): Call inc_refcount.
10490 (release_stop_context_cleanup): Likewise.
10491 * thread.c (set_thread_exited): New function.
10492 (init_thread_list): Delete "tp" only it is deletable, otherwise
10493 call set_thread_exited.
10494 (delete_thread_1): Call set_thread_exited.
10495 (current_thread_cleanup) <inferior_pid>: Remove.
10496 <thread>: New field.
10497 (restore_current_thread_ptid_changed): Removed.
10498 (do_restore_current_thread_cleanup): Adjust.
10499 (restore_current_thread_cleanup_dtor): Don't call
10500 find_thread_ptid.
10501 (set_thread_refcount): Use dec_refcount.
10502 (make_cleanup_restore_current_thread): Adjust.
10503 (thread_apply_all_command): Call inc_refcount.
10504 (_initialize_thread): Don't call
10505 observer_attach_thread_ptid_changed.
10506
8c25b497
YQ
105072017-04-10 Yao Qi <yao.qi@linaro.org>
10508
10509 * thread.c (delete_thread_1): Hoist code on marking thread as
10510 exited.
10511
8473b447
SM
105122017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10513
10514 * windows-nat.c (windows_detach): Initialize ptid with
10515 minus_one_ptid.
10516
6670ec13
SM
105172017-04-07 Simon Marchi <simon.marchi@ericsson.com>
10518
10519 * unittests/ptid-selftests.c: Fix erroneous assert messages.
10520
ba2f91bb
AH
105212017-04-07 Alan Hayward <alan.hayward@arm.com>
10522
10523 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
10524 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
10525 (bfin_pseudo_register_write): Likewise
10526
436252de
SM
105272017-04-06 Simon Marchi <simon.marchi@ericsson.com>
10528
10529 * common/ptid.h (struct ptid): Change to...
10530 (class ptid_t): ... this.
10531 <ptid_t>: New constructors.
10532 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
10533 matches>: New methods.
10534 <make_null, make_minus_one>: New static methods.
10535 <pid>: Rename to...
10536 <m_pid>: ...this.
10537 <lwp>: Rename to...
10538 <m_lwp>: ...this.
10539 <tid>: Rename to...
10540 <m_tid>: ...this.
10541 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
10542 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
10543 as references, move comment to class ptid_t.
10544 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
10545 ptid_t static methods.
10546 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
10547 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
10548 Take ptid arguments as references, implement using ptid_t methods.
10549 * unittests/ptid-selftests.c: New file.
10550 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10551 unittests/ptid-selftests.c.
10552 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
10553
0dedf377
TP
105542017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
10555
10556 * python/python.c (python_run_simple_file): Cast mode literal to
10557 non-const char pointer as expected by PyFile_FromString.
10558
4e9868d4
SM
105592017-04-05 Simon Marchi <simon.marchi@ericsson.com>
10560
10561 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
10562 minus_one_ptid and null_ptid.
10563
9bf2a700
PA
105642017-04-05 Pedro Alves <palves@redhat.com>
10565
10566 * warning.m4 (build_warnings): Remove -Wno-write-strings.
10567 * configure: Regenerate.
10568
a121b7c1
PA
105692017-04-05 Pedro Alves <palves@redhat.com>
10570
10571 * ada-exp.y (yyerror): Constify.
10572 * ada-lang.c (bound_name, get_selections)
10573 (ada_variant_discrim_type)
10574 (ada_variant_discrim_name, ada_value_struct_elt)
10575 (ada_lookup_struct_elt_type, is_unchecked_variant)
10576 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
10577 (catch_ada_exception_command_split)
10578 (catch_ada_assert_command_split, catch_assert_command)
10579 (ada_op_name): Constify.
10580 * ada-lang.h (ada_yyerror, get_selections)
10581 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
10582 * arc-tdep.c (arc_print_frame_cache): Constify.
10583 * arm-tdep.c (arm_skip_stub): Constify.
10584 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
10585 (gen_aggregate_elt_ref): Constify.
10586 * bcache.c (print_bcache_statistics): Constify.
10587 * bcache.h (print_bcache_statistics): Constify.
10588 * break-catch-throw.c (catch_exception_command_1):
10589 * breakpoint.c (struct ep_type_description::description):
10590 Constify.
10591 (add_solib_catchpoint): Constify.
10592 (catch_fork_command_1): Add cast.
10593 (add_catch_command): Constify.
10594 * breakpoint.h (add_catch_command, add_solib_catchpoint):
10595 Constify.
10596 * bsd-uthread.c (bsd_uthread_state): Constify.
10597 * buildsym.c (patch_subfile_names): Constify.
10598 * buildsym.h (next_symbol_text_func, patch_subfile_names):
10599 Constify.
10600 * c-exp.y (yyerror): Constify.
10601 (token::oper): Constify.
10602 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
10603 * c-varobj.c (cplus_describe_child): Constify.
10604 * charset.c (find_charset_names): Add cast.
10605 (find_charset_names): Constify array and add const_cast.
10606 * cli/cli-cmds.c (complete_command, cd_command): Constify.
10607 (edit_command): Constify.
10608 * cli/cli-decode.c (lookup_cmd): Constify.
10609 * cli/cli-dump.c (dump_memory_command, dump_value_command):
10610 Constify.
10611 (struct dump_context): Constify.
10612 (add_dump_command, restore_command): Constify.
10613 * cli/cli-script.c (get_command_line): Constify.
10614 * cli/cli-script.h (get_command_line): Constify.
10615 * cli/cli-utils.c (check_for_argument): Constify.
10616 * cli/cli-utils.h (check_for_argument): Constify.
10617 * coff-pe-read.c (struct read_pe_section_data): Constify.
10618 * command.h (lookup_cmd): Constify.
10619 * common/print-utils.c (decimal2str): Constify.
10620 * completer.c (gdb_print_filename): Constify.
10621 * corefile.c (set_gnutarget): Constify.
10622 * cp-name-parser.y (yyerror): Constify.
10623 * cp-valprint.c (cp_print_class_member): Constify.
10624 * cris-tdep.c (cris_register_name, crisv32_register_name):
10625 Constify.
10626 * d-exp.y (yyerror): Constify.
10627 (struct token::oper): Constify.
10628 * d-lang.h (d_yyerror): Constify.
10629 * dbxread.c (struct header_file_location::name): Constify.
10630 (add_old_header_file, add_new_header_file, last_function_name)
10631 (dbx_next_symbol_text, add_bincl_to_list)
10632 (find_corresponding_bincl_psymtab, set_namestring)
10633 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
10634 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
10635 * defs.h (command_line_input, print_address_symbolic)
10636 (deprecated_readline_begin_hook): Constify.
10637 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
10638 Constify.
10639 * event-top.c (handle_line_of_input): Constify and add cast.
10640 * exceptions.c (catch_errors): Constify.
10641 * exceptions.h (catch_errors): Constify.
10642 * expprint.c (print_subexp_standard, op_string, op_name)
10643 (op_name_standard, dump_raw_expression, dump_raw_expression):
10644 * expression.h (op_name, op_string, dump_raw_expression):
10645 Constify.
10646 * f-exp.y (yyerror): Constify.
10647 (struct token::oper): Constify.
10648 (struct f77_boolean_val::name): Constify.
10649 * f-lang.c (f_word_break_characters): Constify.
10650 * f-lang.h (f_yyerror): Constify.
10651 * fork-child.c (fork_inferior): Add cast.
10652 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
10653 (new_variant): Constify.
10654 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
10655 * gdbarch.c: Regenerate.
10656 * gdbcore.h (set_gnutarget): Constify.
10657 * go-exp.y (yyerror): Constify.
10658 (token::oper): Constify.
10659 * go-lang.h (go_yyerror): Constify.
10660 * go32-nat.c (go32_sysinfo): Constify.
10661 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
10662 * guile/scm-cmd.c (cmdscm_function): Constify.
10663 * guile/scm-param.c (pascm_param_value): Constify.
10664 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
10665 (h8300sx_register_name): Constify.
10666 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
10667 Constify.
10668 * ia64-tdep.c (ia64_register_names): Constify.
10669 * infcmd.c (construct_inferior_arguments): Constify.
10670 (path_command, attach_post_wait): Constify.
10671 * language.c (show_range_command, show_case_command)
10672 (unk_lang_error): Constify.
10673 * language.h (language_defn::la_error)
10674 (language_defn::la_name_of_this): Constify.
10675 * linespec.c (decode_line_2): Constify.
10676 * linux-thread-db.c (thread_db_err_str): Constify.
10677 * lm32-tdep.c (lm32_register_name): Constify.
10678 * m2-exp.y (yyerror): Constify.
10679 * m2-lang.h (m2_yyerror): Constify.
10680 * m32r-tdep.c (m32r_register_names): Constify and make static.
10681 * m68hc11-tdep.c (m68hc11_register_names): Constify.
10682 * m88k-tdep.c (m88k_register_name): Constify.
10683 * macroexp.c (appendmem): Constify.
10684 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
10685 (upgrade_type, parse_external, parse_partial_symbols)
10686 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
10687 (new_symbol): Constify.
10688 * memattr.c (mem_info_command): Constify.
10689 * mep-tdep.c (register_name_from_keyword): Constify.
10690 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
10691 Constify.
10692 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
10693 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
10694 * mi/mi-main.c (captured_mi_execute_command): Constify and add
10695 cast.
10696 (mi_execute_async_cli_command): Constify.
10697 * mips-tdep.c (mips_register_name): Constify.
10698 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
10699 (am33_register_name, am33_2_register_name)
10700 * moxie-tdep.c (moxie_register_names): Constify.
10701 * nat/linux-osdata.c (osdata_type): Constify fields.
10702 * nto-tdep.c (nto_parse_redirection): Constify.
10703 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
10704 (lookup_child_selector): Constify.
10705 (objc_methcall::name): Constify.
10706 * objc-lang.h (lookup_objc_class, lookup_child_selector)
10707 (lookup_struct_typedef): Constify.
10708 * objfiles.c (pc_in_section): Constify.
10709 * objfiles.h (pc_in_section): Constify.
10710 * p-exp.y (struct token::oper): Constify.
10711 (yyerror): Constify.
10712 * p-lang.h (pascal_yyerror): Constify.
10713 * parser-defs.h (op_name_standard): Constify.
10714 (op_print::string): Constify.
10715 (exp_descriptor::op_name): Constify.
10716 * printcmd.c (print_address_symbolic): Constify.
10717 * psymtab.c (print_partial_symbols): Constify.
10718 * python/py-breakpoint.c (stop_func): Constify.
10719 (bppy_get_expression): Constify.
10720 * python/py-cmd.c (cmdpy_completer::name): Constify.
10721 (cmdpy_function): Constify.
10722 * python/py-event.c (evpy_add_attribute)
10723 (gdbpy_initialize_event_generic): Constify.
10724 * python/py-event.h (evpy_add_attribute)
10725 (gdbpy_initialize_event_generic): Constify.
10726 * python/py-evts.c (add_new_registry): Constify.
10727 * python/py-finishbreakpoint.c (outofscope_func): Constify.
10728 * python/py-framefilter.c (get_py_iter_from_func): Constify.
10729 * python/py-inferior.c (get_buffer): Add cast.
10730 * python/py-param.c (parm_constant::name): Constify.
10731 * python/py-unwind.c (fprint_frame_id): Constify.
10732 * python/python.c (gdbpy_parameter_value): Constify.
10733 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
10734 * remote.c (memory_packet_config::name): Constify.
10735 (show_packet_config_cmd, remote_write_bytes)
10736 (remote_buffer_add_string):
10737 * reverse.c (exec_reverse_once): Constify.
10738 * rs6000-tdep.c (variant::name, variant::description): Constify.
10739 * rust-exp.y (rustyyerror): Constify.
10740 * rust-lang.c (rust_op_name): Constify.
10741 * rust-lang.h (rustyyerror): Constify.
10742 * serial.h (serial_ops::name): Constify.
10743 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
10744 (sh_sh3e_register_name, sh_sh2e_register_name)
10745 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
10746 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
10747 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
10748 (sh_sh4al_dsp_register_name): Constify.
10749 * sh64-tdep.c (sh64_register_name): Constify.
10750 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
10751 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
10752 * stabsread.c (patch_block_stabs, read_type_number)
10753 (ref_map::stabs, ref_add, process_reference)
10754 (symbol_reference_defined, define_symbol, define_symbol)
10755 (error_type, read_type, read_member_functions, read_cpp_abbrev)
10756 (read_one_struct_field, read_struct_fields, read_baseclasses)
10757 (read_tilde_fields, read_struct_type, read_array_type)
10758 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
10759 (read_huge_number, read_range_type, read_args, common_block_start)
10760 (find_name_end): Constify.
10761 * stabsread.h (common_block_start, define_symbol)
10762 (process_one_symbol, symbol_reference_defined, ref_add):
10763 * symfile.c (get_section_index, add_symbol_file_command):
10764 * symfile.h (get_section_index): Constify.
10765 * target-descriptions.c (tdesc_type::name): Constify.
10766 (tdesc_free_type): Add cast.
10767 * target.c (find_default_run_target):
10768 (add_deprecated_target_alias, find_default_run_target)
10769 (target_announce_detach): Constify.
10770 (do_option): Constify.
10771 * target.h (add_deprecated_target_alias): Constify.
10772 * thread.c (print_thread_info_1): Constify.
10773 * top.c (deprecated_readline_begin_hook, command_line_input):
10774 Constify.
10775 (init_main): Add casts.
10776 * top.h (handle_line_of_input): Constify.
10777 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
10778 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
10779 (tfind_command): Rename to ...
10780 (tfind_command_1): ... this and constify.
10781 (tfind_command): New function.
10782 (tfind_end_command, tfind_start_command): Adjust.
10783 (encode_source_string): Constify.
10784 * tracepoint.h (encode_source_string): Constify.
10785 * tui/tui-data.c (tui_partial_win_by_name): Constify.
10786 * tui/tui-data.h (tui_partial_win_by_name): Constify.
10787 * tui/tui-source.c (tui_set_source_content_nil): Constify.
10788 * tui/tui-source.h (tui_set_source_content_nil): Constify.
10789 * tui/tui-win.c (parse_scrolling_args): Constify.
10790 * tui/tui-windata.c (tui_erase_data_content): Constify.
10791 * tui/tui-windata.h (tui_erase_data_content): Constify.
10792 * tui/tui-winsource.c (tui_erase_source_content): Constify.
10793 * tui/tui.c (tui_enable): Add cast.
10794 * utils.c (defaulted_query): Constify.
10795 (init_page_info): Add cast.
10796 (puts_debug, subset_compare): Constify.
10797 * utils.h (subset_compare): Constify.
10798 * varobj.c (varobj_format_string): Constify.
10799 * varobj.h (varobj_format_string): Constify.
10800 * vax-tdep.c (vax_register_name): Constify.
10801 * windows-nat.c (windows_detach): Constify.
10802 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
10803 * xml-support.c (gdb_xml_end_element): Constify.
10804 * xml-tdesc.c (tdesc_start_reg): Constify.
10805 * xstormy16-tdep.c (xstormy16_register_name): Constify.
10806 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
10807 * xtensa-tdep.h (xtensa_register_t::name): Constify.
10808
995816ba
PA
108092017-04-05 Pedro Alves <palves@redhat.com>
10810
10811 * proc-api.c (struct trans): Constify.
10812 (procfs_note): Constify.
10813 * proc-events.c (struct trans, syscall_table):
10814 * proc-flags.c (struct trans): Constify.
10815 * proc-utils.h (procfs_note): Constify.
10816 * proc-why.c (struct trans): Constify.
10817 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
10818 (procfs_detach): Constify.
10819 * sol-thread.c (struct string_map): Constify.
10820 (td_err_string, td_state_string): Constify.
10821
3e83a920
PA
108222017-04-05 Pedro Alves <palves@redhat.com>
10823
10824 * proc-api.c (procfs_filename): Don't initialize
10825 procfs_filename.
10826 (prepare_to_trace): Assume procfs_filename is non-NULL.
10827 (_initialize_proc_api): Give procfs_filename a default value here.
10828
63160a43
PA
108292017-04-05 Pedro Alves <palves@redhat.com>
10830
10831 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
10832 'cond_string' parameter.
10833 (extract_exception_regexp): Constify 'string' parameter.
10834 (catch_exception_command_1): Constify.
10835 * breakpoint.c (init_catchpoint)
10836 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
10837 parameter.
10838 (ep_parse_optional_if_clause, catch_fork_command_1)
10839 (catch_exec_command_1): Constify.
10840 * breakpoint.h (init_catchpoint): Constify 'cond_string'
10841 parameter.
10842 (ep_parse_optional_if_clause): Constify.
10843 * cli/cli-utils.c (remove_trailing_whitespace)
10844 (check_for_argument): Constify.
10845 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
10846 non-const overload.
10847 (check_for_argument): Likewise.
10848
9b2eba3d
PA
108492017-04-05 Pedro Alves <palves@redhat.com>
10850
10851 * event-top.c (command_line_handler): Add cast to execute_command
10852 call.
10853 * record-btrace.c (cmd_record_btrace_bts_start)
10854 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
10855 (cmd_record_btrace_start): Add cast to execute_command call.
10856 * record-full.c (record_full_goto_insn):
10857 * record.c (record_start, record_stop): Add cast to
10858 execute_command_to_string calls.
10859 (cmd_record_start): Add cast to execute_command calls.
10860
2adadf51
PA
108612017-04-05 Pedro Alves <palves@redhat.com>
10862
10863 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
10864 static inline function.
10865 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
10866 array and use gdb_PyArg_ParseTupleAndKeywords.
10867 * python/py-cmd.c (cmdpy_init): Likewise.
10868 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
10869 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
10870 (infpy_search_memory): Likewise.
10871 * python/py-objfile.c (objfpy_add_separate_debug_file)
10872 (gdbpy_lookup_objfile): Likewise.
10873 * python/py-symbol.c (gdbpy_lookup_symbol)
10874 (gdbpy_lookup_global_symbol): Likewise.
10875 * python/py-type.c (gdbpy_lookup_type): Likewise.
10876 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
10877 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
10878 Likewise.
10879
0d1f4ceb
PA
108802017-04-05 Pedro Alves <palves@redhat.com>
10881
10882 * python/python-internal.h (gdb_PyGetSetDef): New type.
10883 * python/py-block.c (block_object_getset)
10884 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
10885 * python/py-event.c (event_object_getset)
10886 (finish_breakpoint_object_getset): Likewise.
10887 * python/py-inferior.c (inferior_object_getset): Likewise.
10888 * python/py-infthread.c (thread_object_getset): Likewise.
10889 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
10890 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
10891 * python/py-objfile.c (objfile_getset): Likewise.
10892 * python/py-progspace.c (pspace_getset): Likewise.
10893 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
10894 Likewise.
10895 * python/py-record.c (recpy_record_getset): Likewise.
10896 * python/py-symbol.c (symbol_object_getset): Likewise.
10897 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
10898 Likewise.
10899 * python/py-type.c (type_object_getset, field_object_getset):
10900 Likewise.
10901 * python/py-value.c (value_object_getset): Likewise.
10902
4d759979
PA
109032017-04-05 Pedro Alves <palves@redhat.com>
10904
10905 * python/python-internal.h (gdb_PyObject_CallMethod)
10906 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
10907 New functions.
10908 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
10909 (PySys_GetObject, PySys_SetPath): New macros.
10910
fdf9e36f
PA
109112017-04-05 Pedro Alves <palves@redhat.com>
10912
10913 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
10914 info_osdata_command.
10915 * osdata.c (info_osdata_command): Rename to ...
10916 (info_osdata): ... this. Constify 'type' parameter, and remove
10917 the 'from_tty' parameter. Accept NULL TYPE.
10918 (info_osdata_command): New function.
10919 * osdata.h (info_osdata_command): Remove declaration.
10920 (info_osdata): New declaration.
10921
9f33b8b7
PA
109222017-04-05 Pedro Alves <palves@redhat.com>
10923
10924 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
10925 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
10926 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
10927 parameter.
10928 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
10929 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
10930 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
10931 parameter.
10932 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
10933 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
10934 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10935 (mi_cmd_file_list_exec_source_files)
10936 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
10937 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
10938 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
10939 parameter.
10940 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
10941 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
10942 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10943 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
10944 (mi_cmd_stack_info_frame): Constify 'command' parameter.
10945 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
10946 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
10947 'command' parameter.
10948 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
10949 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
10950 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
10951 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
10952 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
10953 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
10954 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
10955 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
10956 (mi_cmd_var_set_update_range): Constify 'command' parameter.
10957 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
10958 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
10959 parameter.
10960 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
10961 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
10962 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
10963 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
10964 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
10965 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
10966 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
10967 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
10968 (mi_cmd_data_list_changed_registers)
10969 (mi_cmd_data_write_register_values)
10970 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
10971 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
10972 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
10973 (mi_cmd_list_features, mi_cmd_list_target_features)
10974 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
10975 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
10976 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
10977 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
10978 (mi_cmd_trace_frame_collected): Constify 'command'
10979 parameter.
10980 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
10981 'command' parameter.
10982
67cb5b2d
PA
109832017-04-05 Pedro Alves <palves@redhat.com>
10984
10985 * ada-lang.c (ada_completer_word_break_characters): Now a const
10986 array.
10987 (ada_get_gdb_completer_word_break_characters): Constify.
10988 * completer.c (gdb_completer_command_word_break_characters)
10989 (gdb_completer_file_name_break_characters)
10990 (gdb_completer_quote_characters): Now const arrays.
10991 (get_gdb_completer_quote_characters): Constify.
10992 (set_rl_completer_word_break_characters): New function.
10993 (set_gdb_completion_word_break_characters)
10994 (complete_line_internal): Use it.
10995 * completer.h (get_gdb_completer_quote_characters): Constify.
10996 (set_rl_completer_word_break_characters): Declare.
10997 * f-lang.c (f_word_break_characters): Constify.
10998 * language.c (default_word_break_characters): Constify.
10999 * language.h (language_defn::la_word_break_characters): Constify.
11000 (default_word_break_characters): Constify.
11001 * top.c (init_main): Use set_rl_completer_word_break_characters.
11002
7a114964
PA
110032017-04-05 Pedro Alves <palves@redhat.com>
11004
11005 * aix-thread.c (aix_thread_pid_to_str)
11006 (aix_thread_extra_thread_info): Constify.
11007 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
11008 * bsd-uthread.c (bsd_uthread_extra_thread_info)
11009 (bsd_uthread_pid_to_str): Constify.
11010 * corelow.c (core_pid_to_str): Constify.
11011 * darwin-nat.c (darwin_pid_to_str): Constify.
11012 * fbsd-nat.c (fbsd_pid_to_str): Constify.
11013 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
11014 Constify.
11015 * gnu-nat.c (gnu_pid_to_str): Constify.
11016 * go32-nat.c (go32_pid_to_str): Constify.
11017 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
11018 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
11019 * inferior.c (inferior_pid_to_str): Constify.
11020 * linux-nat.c (linux_nat_pid_to_str): Constify.
11021 * linux-tdep.c (linux_core_pid_to_str): Constify.
11022 * linux-thread-db.c (thread_db_pid_to_str)
11023 (thread_db_extra_thread_info): Constify.
11024 * nto-tdep.c (nto_extra_thread_info): Constify.
11025 * nto-tdep.h (nto_extra_thread_info): Constify.
11026 * obsd-nat.c (obsd_pid_to_str): Constify.
11027 * procfs.c (procfs_pid_to_str): Constify.
11028 * ravenscar-thread.c (ravenscar_extra_thread_info)
11029 (ravenscar_pid_to_str): Constify.
11030 * remote-sim.c (gdbsim_pid_to_str): Constify.
11031 * remote.c (remote_threads_extra_info, remote_pid_to_str):
11032 Constify.
11033 * sol-thread.c (solaris_pid_to_str): Constify.
11034 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
11035 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
11036 * target.c (default_pid_to_str, target_pid_to_str)
11037 (normal_pid_to_str, default_pid_to_str): Constify.
11038 * target.h (target_ops::to_pid_to_str)
11039 (target_ops::to_extra_thread_info): Constify.
11040 (target_pid_to_str, normal_pid_to_str): Constify.
11041 * windows-nat.c (windows_pid_to_str): Constify.
11042 * gdbarch.sh (core_pid_to_str): Constify.
11043 * target-delegates.c: Regenerate.
11044 * gdbarch.h, gdbarch.c: Regenerate.
11045
69bbf465
PA
110462017-04-05 Pedro Alves <palves@redhat.com>
11047
11048 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
11049 the memory of the temporary warning_pre_print override.
11050 * utils.c (warning_pre_print): Constify.
11051 * utils.h (warning_pre_print): Constify.
11052
be47f9e8
PA
110532017-04-05 Pedro Alves <palves@redhat.com>
11054
11055 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
11056 (shell_command): New function.
11057 (make_command): Use std::string.
11058 (init_cli_cmds): Register shell_command instead of shell_escape.
11059
bde6261a
PA
110602017-04-05 Pedro Alves <palves@redhat.com>
11061
11062 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
11063 * tracepoint.c (default_collect): Don't initialize.
11064
b38ef47f
PA
110652017-04-05 Pedro Alves <palves@redhat.com>
11066
11067 * macroexp.c (macro_buffer::shared): Now a bool.
11068 (init_buffer): Update.
11069 (init_shared_buffer): Constify 'addr' parameter.
11070 (substitute_args, expand, macro_expand, macro_expand_next): Remove
11071 casts.
11072
f995bbe8
PA
110732017-04-05 Pedro Alves <palves@redhat.com>
11074
11075 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
11076 * disasm.c (set_disassembler_options): Constify local.
11077 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
11078
4a596fe2
SDJ
110792017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
11080
11081 PR gdb/21352
11082 * tracefile.c (tsave_command): Fix argument parsing for '-r'
11083 option.
11084
2cad08ea
YQ
110852017-04-05 Yao Qi <yao.qi@linaro.org>
11086
11087 * frame.c (frame_unwind_register_unsigned): Call
11088 frame_unwind_register_value.
11089
55a98976
YQ
110902017-04-05 Yao Qi <yao.qi@linaro.org>
11091
11092 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
11093 Use gdb_test_multiple, and don't match anchor.
11094
4ac40124
PA
110952017-04-05 Pedro Alves <palves@redhat.com>
11096
11097 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
11098 (Write After Approval): Remove Simon Marchi.
11099
c053b654
PA
111002017-04-05 Pedro Alves <palves@redhat.com>
11101
11102 * common/gdb_optional.h (optional::optional): Make constexpr and
11103 initialize m_dummy.
11104
4c7bf4f9
JB
111052017-04-04 John Baldwin <jhb@FreeBSD.org>
11106
11107 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
11108 (amd64fbsd_jmp_buf_reg_offset): Remove.
11109 (amd64fbsd_supply_uthread): Remove function.
11110 (amd64fbsd_collect_uthread): Remove function.
11111 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
11112 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
11113 (x86_64-*-freebsd*): Remove bsd-uthread.o.
11114 (fbsd-nat.c): Update comment.
11115 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
11116 (i386fbsd_jmp_buf_reg_offset): Remove.
11117 (i386fbsd_supply_uthread): Remove function.
11118 (i386fbsd_collect_uthread): Remove function.
11119 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
11120
1e1a8bef
JB
111212017-04-04 John Baldwin <jhb@FreeBSD.org>
11122
11123 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
11124 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
11125 * NEWS: Mention that support for FreeBSD/alpha was removed.
11126 * alpha-fbsd-tdep.c: Delete file.
11127 * config/alpha/fbsd.mh: Delete file.
11128 * configure.host: Delete alpha*-*-freebsd* and
11129 alpha*-*-kfreebsd*-gnu.
11130 * configure.tgt: Delete alpha*-*-freebsd* and
11131 alpha*-*-kfreebsd*-gnu.
11132
49907934
JB
111332017-04-04 John Baldwin <jhb@FreeBSD.org>
11134
11135 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
11136 amd64bsd_store_inferior_registers): Use ptid from regcache.
11137
6f77053d
PA
111382017-04-04 Pedro Alves <palves@redhat.com>
11139
11140 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
11141 data fields, make them private and add "m_" prefixes.
11142 (lnp_state_machine::lnp_state_machine): New ctor.
11143 (record_line, check_line_address, handle_set_discriminator)
11144 (handle_set_address, handle_advance_pc, handle_special_opcode)
11145 (handle_advance_line, handle_set_file, handle_negate_stmt)
11146 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
11147 (end_sequence, advance_line): New methods.
11148 (m_gdbarch, m_record_lines_p): New fields.
11149 (lnp_reader_state): Delete.
11150 (dwarf_record_line): Rename to ...
11151 (lnp_state_machine::record_line): ... adjust.
11152 (init_lnp_state_machine): Delete.
11153 (lnp_state_machine::lnp_state_machine): New.
11154 (check_line_address): Rename to ...
11155 (lnp_state_machine::check_line_address): This.
11156 (dwarf_decode_lines_1): Remove reference to "reader_state".
11157 Adjust lnp_state_machine having a non-default ctor. Use bool.
11158 State machine internal state manipulation moved to
11159 lnp_state_machine methods.
11160
9c541725
PA
111612017-04-04 Pedro Alves <palves@redhat.com>
11162
11163 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11164 unittests/offset-type-selftests.c.
11165 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
11166 * common/offset-type.h: New file.
11167 * common/preprocessor.h: New file.
11168 * common/traits.h: New file.
11169 * common/valid-expr.h: New file.
11170 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
11171 sect_offset and cu_offset strong typedefs throughout.
11172 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
11173 typedefs throughout.
11174 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
11175 sect_offset and cu_offset strong typedefs throughout.
11176 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
11177 typedefs throughout.
11178 * gdbtypes.h: Include "common/offset-type.h".
11179 (cu_offset): Now an offset type (strong typedef) instead of a
11180 struct.
11181 (sect_offset): Likewise.
11182 (union call_site_parameter_u): Rename "param_offset" field to
11183 "param_cu_off".
11184 * unittests/offset-type-selftests.c: New file.
11185
ecfb656c
PA
111862017-04-04 Pedro Alves <palves@redhat.com>
11187
11188 * common/underlying.h: New file.
11189 * dwarf2read.c: Include "common/gdb_optional.h" and
11190 "common/underlying.h".
11191 (dir_index, file_name_index): New types.
11192 (file_entry): Use them.
11193 (file_entry::include): Use to_underlying.
11194 (line_header::add_file_name): Use dir_index.
11195 (read_formatted_entries): Use gdb::optional. Read form before
11196 writting to file_entry.
11197 (dwarf_decode_line_header): Use dir_index.
11198 (lnp_state_machine::current_file): Use to_underlying.
11199 (lnp_state_machine::file): Change type to file_name_index.
11200 (dwarf_record_line): Use to_underlying.
11201 (init_lnp_state_machine): Use file_name_index.
11202 (dwarf_decode_lines_1): Use dir_index and file_name_index.
11203
d194f1fe
PA
112042017-04-04 Pedro Alves <palves@redhat.com>
11205
11206 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
11207 operator bool, has_value and get methods.
11208
fff8551c
PA
112092017-04-04 Pedro Alves <palves@redhat.com>
11210
11211 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
11212 fields.
11213 (line_header): Initialize all data fields. Change type of
11214 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
11215 Change type of include_dirs to std::vector<const char *>. Remove
11216 num_include_dirs, include_dirs_size. Change type of file_names to
11217 std::vector<file_entry>. Remove num_file_names, file_names_size.
11218 (line_header::line_header): New.
11219 (line_header::add_include_dir, line_header::add_file_name): New
11220 methods.
11221 (line_header::include_dir_at): Remove NULL check.
11222 (line_header::file_name_at): Add const overload.
11223 (line_header_up): New unique_ptr typedef.
11224 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
11225 std::vector. Remove free_line_header call.
11226 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
11227 free_line_header call.
11228 (free_cu_line_header): Delete.
11229 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
11230 (setup_type_unit_groups): Use line_header_up instead of cleanups.
11231 Adjust to use std::vector.
11232 (free_line_header): Delete.
11233 (free_line_header_voidp): Use delete.
11234 (add_include_dir): Replace with ...
11235 (line_header::add_include_dir): ... this method. Use std::vector.
11236 (add_file_name): Replace with ...
11237 (line_header::add_file_name): ... this method. Use std::vector.
11238 (add_include_dir_stub): Delete.
11239 (read_formatted_entries): Remove memset.
11240 (dwarf_decode_line_header): Return a line_header_up instead of a
11241 raw pointer. Remove cleanup handling. Pass lambdas to
11242 read_formatted_entries. Adjust to use line_header methods.
11243 (dwarf_decode_lines_1): Adjust to use line_header methods.
11244 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
11245 use std::vector.
11246
d62a8ae2
SM
112472017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
11248
11249 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
11250 instead of struct ptid.
11251
db3a1dc7
AH
112522017-05-04 Alan Hayward <alan.hayward@arm.com>
11253
11254 * frame.c (get_frame_register_bytes): Unwind using value.
11255 (put_frame_register_bytes): Likewise.
11256
b1b45502
IB
112572017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
11258
11259 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
11260 aggregate-like.
11261
ec13808e
JK
112622017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11263
11264 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
11265
12316564
YQ
112662017-03-29 Yao Qi <yao.qi@linaro.org>
11267
11268 * gdbthread.h (struct thread_info): Declare constructor and
11269 destructor. Add some in-class member initializers.
11270 * thread.c (free_thread): Remove.
11271 (init_thread_list): Call delete instead of free_thread.
11272 (new_thread): Call thread_info constructor.
11273 (thread_info::thread_info): New function.
11274 (thread_info::~thread_info): New function.
11275 (delete_thread_1): Call delete instead of free_thread.
11276 (make_cleanup_restore_current_thread): Move tp and frame to
11277 inner block.
11278
fe5f7374
AK
112792017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11280
11281 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
11282 (arc_skip_prologue): Likewise.
11283 (arc_make_frame_cache): Likewise.
11284 (arc_pv_get_operand): New function.
11285 (arc_is_in_prologue): Likewise.
11286 (arc_analyze_prologue): Likewise.
11287 (arc_print_frame_cache): Likewise.
11288 (MAX_PROLOGUE_LENGTH): New constant.
11289
eea78757
AK
112902017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11291
11292 * configure.tgt: Add arc-insn.o.
11293 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
11294 (dump_arc_instruction_command): New function.
11295 (arc_fprintf_disasm): Likewise.
11296 (arc_disassemble_info): Likewise.
11297 (arc_insn_get_operand_value): Likewise.
11298 (arc_insn_get_operand_value_signed): Likewise.
11299 (arc_insn_get_memory_base_reg): Likewise.
11300 (arc_insn_get_memory_offset): Likewise.
11301 (arc_insn_get_branch_target): Likewise.
11302 (arc_insn_dump): Likewise.
11303 (arc_insn_get_linear_next_pc): Likewise.
11304 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
11305 (arc_disassemble_info): Likewise.
11306 (arc_insn_get_branch_target): Likewise.
11307 (arc_insn_get_linear_next_pc): Likewise.
11308 * NEWS: Mention new "maint print arc arc-instruction".
11309
3be78afd
AK
113102017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11311
11312 * arc-tdep (maintenance_print_arc_list): New variable.
11313 (maintenance_print_arc_command): New function.
11314
296ec4fa
AK
113152017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11316
11317 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
11318 Add "limm" and "reserved".
11319 (arc_cannot_fetch_register, arc_cannot_store_register): Add
11320 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
11321 * arc-tdep.h (arc_regnum): Likewise.
11322
f74f865e
MF
113232017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11324
11325 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
11326 for THREADPTR register.
11327 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
11328 register.
11329 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
11330 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
11331 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
11332
0d0bf81a
MF
113332017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11334
11335 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
11336 registers above gdbarch_num_regs (gdbarch) as privileged in
11337 call0 ABI.
11338
0ce4291e
MF
113392017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11340
11341 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
11342 for a single specified register or for all registers in
11343 a0_base..a0_base + C0_NREGS range.
11344 (supply_gregset_reg): Call regcache_raw_supply for a single
11345 specified register or for all registers in a0_base..a0_base +
11346 C0_NREGS range.
11347
c56054f9
MF
113482017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11349
11350 * arch/xtensa.h (C0_NREGS): Add definition.
11351 * xtensa-tdep.c (C0_NREGS): Remove definition.
11352
a4398628
MF
113532017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11354
11355 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
11356 Drop xtensa_default_isa initialization.
11357 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
11358
8c43009f
PA
113592017-03-27 Pedro Alves <palves@redhat.com>
11360
11361 * dwarf2read.c (file_entry) <dir_index>: Add comment.
11362 (file_entry::include_dir): New method.
11363 (line_header::include_dir_at, line_header::file_name_at): New
11364 methods.
11365 (setup_type_unit_groups, setup_type_unit_groups)
11366 (psymtab_include_file_name): Simplify using the new methods.
11367 (lnp_state_machine) <the_line_header>: New field.
11368 <file>: Add comment.
11369 (lnp_state_machine::current_file): New method.
11370 (dwarf_record_line): Simplify using the new methods.
11371 (init_lnp_state_machine): Initialize the "the_line_header" field.
11372 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
11373 Simplify using the new methods.
11374
a7e80b9e
PA
113752017-03-27 Pedro Alves <palves@redhat.com>
11376
11377 * cp-name-parser.y (make_empty): Delete.
11378 (demangler_special, nested_name, ptr_operator, array_indicator)
11379 (direct_declarator, declarator_1): Use fill_comp instead of
11380 make_empty.
11381
21047726
PA
113822017-03-27 Pedro Alves <palves@redhat.com>
11383
11384 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
11385 to ATTRIBUTE_PRINTF.
11386 * solib-target.c (library_list_start_list): Print "string" not
11387 "version".
11388 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
11389 gdb_xml_error call.
11390
d721ba37
PA
113912017-03-27 Pedro Alves <palves@redhat.com>
11392
11393 * dwarf2read.c (struct file_and_directory): New.
11394 (dwarf2_get_dwz_file): Adjust to use std::string.
11395 (dw2_get_file_names_reader): Adjust to use file_and_directory.
11396 (find_file_and_directory): Adjust to return a file_and_directory
11397 object.
11398 (read_file_scope): Adjust to use file_and_directory. Remove
11399 make_cleanup/do_cleanups calls.
11400 (open_and_init_dwp_file): Adjust to use std::string. Remove
11401 make_cleanup/do_cleanups calls.
11402 * python/python.c (do_start_initialization): Adjust to ldirname
11403 returning a std::string.
11404 * utils.c (ldirname): Now returns a std::string.
11405 * utils.h (ldirname): Change return type to std::string.
11406 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
11407 returning a std::string.
11408 * xml-tdesc.c (file_read_description_xml): Likewise.
11409
ed771251
AH
114102017-03-24 Alan Hayward <alan.hayward@arm.com>
11411
11412 * regcache.c (regcache_debug_print_register): New function.
11413 * regcache.h (regcache_debug_print_register): New declaration.
11414 * target.c (debug_print_register): Remove.
11415 (target_fetch_registers): Call regcache_debug_print_register.
11416 (target_store_registers): Likewise.
11417
568c1b9f
PB
114182017-03-24 Pádraig Brady <pbrady@fb.com>
11419
11420 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
11421 reference beyond the 'lh->include_dirs' array before accessing to
11422 it.
11423 (psymtab_include_file_name): Likewise.
11424 (dwarf_decode_lines_1): Likewise.
11425 (dwarf_decode_lines): Likewise.
11426 (file_file_name): Likewise.
11427
3e00d44f
SM
114282017-03-23 Simon Marchi <simon.marchi@ericsson.com>
11429
11430 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
11431 inferior_ptid.
11432 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
11433 ps_lsetfpregs): Likewise.
11434 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
11435 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
11436 ps_lsetfpregs): Likewise.
11437 * target.c (target_fetch_registers, target_store_registers):
11438 Remove asserts.
11439
077ae656
AH
114402017-03-23 Alan Hayward <alan.hayward@arm.com>
11441
11442 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
11443
1e2b521d
YQ
114442017-03-23 Yao Qi <yao.qi@linaro.org>
11445
11446 * aarch64-tdep.c (aarch64_process_record_test): Declare.
11447 (_initialize_aarch64_tdep): Register it.
11448 (aarch64_record_load_store): Handle PRFM instruction.
11449 (aarch64_process_record_test): New function.
11450
33877125
YQ
114512017-03-23 Yao Qi <yao.qi@linaro.org>
11452
11453 * aarch64-tdep.c (aarch64_record_load_store): Fix code
11454 indentation.
11455
a0eef940
YQ
114562017-03-23 Yao Qi <yao.qi@linaro.org>
11457
11458 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
11459
3f2a3564
PR
114602017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11461
11462 python/python.c (do_start_initialization): Fix memory leak.
11463
b67aeab0
SM
114642017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11465
11466 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
11467 using get_ptrace_pid.
11468 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
11469 inferior_ptid.
11470 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
11471 inferior_ptid instead of pid.
11472
ffdbe864
YQ
114732017-03-22 Yao Qi <yao.qi@linaro.org>
11474
11475 * aarch64-tdep.c: Wrap locally used classes in anonymous
11476 namespace.
11477 * arm-tdep.c: Likewise.
11478 * linespec.c: Likewise.
11479 * ui-out.c: Likewise.
11480
9d736fbf
JG
114812017-03-22 Jonah Graham <jonah@kichwacoders.com>
11482
11483 PR gdb/19637
11484 * python/lib/gdb/printer/bound_registers.py: Import sys.
11485
3de88e9a
SM
114862017-03-21 Simon Marchi <simon.marchi@ericsson.com>
11487
11488 * windows-nat.c (do_windows_fetch_inferior_registers): Add
11489 windows_thread_info parameter and use it instead of
11490 current_thread.
11491 (windows_fetch_inferior_registers): Don't set current_thread,
11492 pass the thread to do_windows_fetch_inferior_registers. Use
11493 ptid from regcache instead of inferior_ptid.
11494 (do_windows_store_inferior_registers): Add windows_thread_info
11495 parameter and use it instead of current_thread.
11496 (windows_store_inferior_registers): Don't set current_thread,
11497 pass the thread to do_windows_store_inferior_registers. Use
11498 ptid from regcache instead of inferior_ptid.
11499
0e7b8f61
SM
115002017-03-21 Simon Marchi <simon.marchi@ericsson.com>
11501
11502 * ser-mingw.c (ser_windows_raw): Remove reference to
11503 struct serial::current_timeout.
11504
5badf10a
IR
115052017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
11506
11507 PR tdep/20928
11508 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
11509 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
11510 (sparc64_fsr_type): Fix %fsr decoding.
11511
cee59b3f
TW
115122017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
11513
11514 * python/py-record-btrace.c (btpy_insn_data): Change return type
11515 for Python 2.
11516
639a9038
SM
115172017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
11518
11519 * spu-linux-nat.c (spu_fetch_inferior_registers,
11520 spu_store_inferior_registers): Use ptid from regcache, set and
11521 restore inferior_ptid.
11522 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
11523 Likewise.
11524
bcc0c096
SM
115252017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
11526
11527 * i386-linux-nat.c (fetch_register, store_register,
11528 i386_linux_fetch_inferior_registers,
11529 i386_linux_store_inferior_registers): Use ptid from regcache.
11530 * ia64-linux-nat.c (ia64_linux_fetch_register,
11531 ia64_linux_store_register): Likewise.
11532 * inf-ptrace.c (inf_ptrace_fetch_register,
11533 inf_ptrace_store_register): Likewise.
11534 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
11535 m32r_linux_store_inferior_registers): Likewise.
11536 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
11537 m68kbsd_store_inferior_registers): Likewise.
11538 * m68k-linux-nat.c (fetch_register, store_register,
11539 m68k_linux_fetch_inferior_registers,
11540 m68k_linux_store_inferior_registers): Likewise.
11541 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
11542 m88kbsd_store_inferior_registers): Likewise.
11543 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
11544 mips_fbsd_store_inferior_registers): Likewise.
11545 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
11546 mips64_linux_regsets_store_registers): Likewise.
11547 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
11548 mipsnbsd_store_inferior_registers): Likewise.
11549 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
11550 mips64obsd_store_inferior_registers): Likewise.
11551 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
11552 Likewise.
11553 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
11554 ppcfbsd_store_inferior_registers): Likewise.
11555 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
11556 ppc_linux_store_inferior_registers): Likewise.
11557 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
11558 ppcnbsd_store_inferior_registers): Likewise.
11559 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
11560 ppcobsd_store_registers): Likewise.
11561 * procfs.c (procfs_fetch_registers, procfs_store_registers):
11562 Likewise.
11563 * ravenscar-thread.c (ravenscar_fetch_registers,
11564 ravenscar_store_registers, ravenscar_prepare_to_store):
11565 Likewise.
11566 * record-btrace.c (record_btrace_fetch_registers,
11567 record_btrace_store_registers, record_btrace_prepare_to_store):
11568 Likewise.
11569 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
11570 Lookup inferior using ptid from regcache, instead of
11571 current_inferior.
11572 * remote.c (remote_fetch_registers, remote_store_registers): Use
11573 ptid from regcache.
11574 * rs6000-nat.c (fetch_register, store_register): Likewise.
11575 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
11576 s390_linux_store_inferior_registers): Likewise.
11577 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
11578 shnbsd_store_inferior_registers): Likewise.
11579 * sol-thread.c (sol_thread_fetch_registers,
11580 sol_thread_store_registers): Likewise.
11581 * sparc-nat.c (sparc_fetch_inferior_registers,
11582 sparc_store_inferior_registers): Likewise.
11583 * tilegx-linux-nat.c (fetch_inferior_registers,
11584 store_inferior_registers): Likewise.
11585 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
11586 vaxbsd_store_inferior_registers): Likewise.
11587 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
11588 store_xtregs): Likewise.
11589
c0f55cc6
AV
115902017-03-20 Artemiy Volkov <artemiyv@acm.org>
11591
11592 PR gdb/14441
11593 * NEWS: Mention support for rvalue references in GDB and python.
11594 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
11595 supports both lvalue and rvalue references.
11596
15c0a2a9
AV
115972017-03-20 Artemiy Volkov <artemiyv@acm.org>
11598
11599 PR gdb/14441
11600 * gdbtypes.c (rank_one_type): Implement overloading
11601 resolution rules regarding rvalue references.
11602
aa006118
AV
116032017-03-20 Artemiy Volkov <artemiyv@acm.org>
11604
11605 PR gdb/14441
11606 * aarch64-tdep.c (aarch64_type_align)
11607 (aarch64_extract_return_value, aarch64_store_return_value): Change
11608 lvalue reference type checks to general reference type checks.
11609 * amd64-tdep.c (amd64_classify): Likewise.
11610 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
11611 Likewise.
11612 * arm-tdep.c (arm_type_align, arm_extract_return_value)
11613 (arm_store_return_value): Likewise.
11614 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
11615 * c-typeprint.c (c_print_type): Likewise.
11616 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
11617 (cplus_number_of_children, cplus_describe_child): Likewise.
11618 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
11619 * completer.c (expression_completer): Likewise.
11620 * cp-support.c (make_symbol_overload_list_adl_namespace):
11621 Likewise.
11622 * darwin-nat-info.c (info_mach_region_command): Likewise.
11623 * dwarf2loc.c (entry_data_value_coerce_ref)
11624 (value_of_dwarf_reg_entry): Likewise.
11625 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
11626 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
11627 Likewise.
11628 * findvar.c (extract_typed_address, store_typed_address):
11629 Likewise.
11630 * gdbtypes.c (rank_one_type): Likewise.
11631 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
11632 * infcall.c (value_arg_coerce): Likewise.
11633 * language.c (pointer_type): Likewise.
11634 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
11635 Likewise.
11636 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
11637 * mn10300-tdep.c (mn10300_type_align): Likewise.
11638 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
11639 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
11640 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
11641 Likewise.
11642 * printcmd.c (print_formatted, x_command): Likewise.
11643 * python/py-type.c (typy_get_composite, typy_template_argument):
11644 Likewise.
11645 * python/py-value.c (valpy_referenced_value)
11646 (valpy_get_dynamic_type, value_has_field): Likewise.
11647 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
11648 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
11649 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
11650 * spu-tdep.c (spu_scalar_value_p): Likewise.
11651 * symtab.c (lookup_symbol_aux): Likewise.
11652 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
11653 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
11654 Likewise.
11655 * valops.c (value_cast_pointers, value_cast)
11656 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
11657 (value_struct_elt, value_struct_elt_bitpos)
11658 (value_find_oload_method_list, find_overload_match)
11659 (value_rtti_indirect_type): Likewise.
11660 * valprint.c (val_print_scalar_type_p, generic_val_print):
11661 Likewise.
11662 * value.c (value_actual_type, value_as_address, unpack_long)
11663 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
11664 (coerce_ref): Likewise.
11665 * varobj.c (varobj_get_value_type): Likewise.
11666
3fcf899d
AV
116672017-03-20 Artemiy Volkov <artemiyv@acm.org>
11668
11669 PR gdb/14441
11670 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
11671 table of constants.
11672 * python/lib/gdb/command/explore.py: Support exploring values
11673 of rvalue reference types.
11674 * python/lib/gdb/types.py: Implement get_basic_type() for
11675 rvalue reference types.
11676 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
11677 constant.
11678 * python/py-value.c (valpy_getitem): Add an rvalue reference
11679 check.
11680 (valpy_reference_value): Add new parameter "refcode".
11681 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
11682 New wrappers for valpy_reference_value().
11683 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
11684 (gdbpy_invoke_xmethod): Likewise.
11685
4297a3f0
AV
116862017-03-20 Artemiy Volkov <artemiyv@acm.org>
11687
11688 PR gdb/14441
11689 * dwarf2read.c (process_die, read_type_die_1): Handle the
11690 DW_TAG_rvalue_reference_type DIE.
11691 (read_tag_reference_type): Add new parameter "refcode".
11692
e1cb3213
AV
116932017-03-20 Artemiy Volkov <artemiyv@acm.org>
11694
11695 PR gdb/14441
11696 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
11697 (c_type_print_modifier, c_type_print_varspec_suffix)
11698 (c_type_print_base): Support printing rvalue reference types.
11699 * c-valprint.c (c_val_print, c_value_print): Support printing
11700 rvalue reference values.
11701
e4347c89
AV
117022017-03-20 Artemiy Volkov <artemiyv@acm.org>
11703
11704 PR gdb/14441
11705 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
11706 typename.
11707 * cp-support.c (replace_typedefs): Handle
11708 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
11709 * python/py-type.c (typy_lookup_type): Likewise.
11710
53cc15f5
AV
117112017-03-20 Artemiy Volkov <artemiyv@acm.org>
11712
11713 PR gdb/14441
11714 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
11715 * parse.c (insert_type): Change assert statement.
11716 (follow_types): Handle rvalue reference types.
11717 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
11718 constant.
11719
a65cfae5
AV
117202017-03-20 Artemiy Volkov <artemiyv@acm.org>
11721
11722 PR gdb/14441
11723 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
11724 value_ref() interface.
11725 * c-valprint.c (c_value_print): Likewise.
11726 * infcall.c (value_arg_coerce): Likewise.
11727 * python/py-value.c (valpy_reference_value): Likewise.
11728 * valops.c (value_cast, value_reinterpret_cast)
11729 (value_dynamic_cast, typecmp): Likewise.
11730 (value_ref): Parameterize by kind of return value reference type.
11731 * value.h (value_ref): Add new parameter "refcode".
11732
3b224330
AV
117332017-03-20 Artemiy Volkov <artemiyv@acm.org>
11734
11735 PR gdb/14441
11736 * dwarf2read.c (read_tag_reference_type): Use
11737 lookup_lvalue_reference_type() instead of lookup_reference_type().
11738 * eval.c (evaluate_subexp_standard): Likewise.
11739 * f-exp.y: Likewise.
11740 * gdbtypes.c (make_reference_type, lookup_reference_type):
11741 Generalize with rvalue reference types.
11742 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
11743 convenience wrappers for lookup_reference_type().
11744 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
11745 reference kind parameter.
11746 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
11747 wrappers for lookup_reference_type().
11748 * guile/scm-type.c (gdbscm_type_reference): Use
11749 lookup_lvalue_reference_type() instead of lookup_reference_type().
11750 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
11751 * parse.c (follow_types): Likewise.
11752 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
11753 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
11754 Likewise.
11755 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
11756 (gdbpy_invoke_xmethod): Likewise.
11757 * stabsread.c: Provide extra argument to make_reference_type()
11758 call.
11759 * valops.c (value_ref, value_rtti_indirect_type): Use
11760 lookup_lvalue_reference_type() instead of lookup_reference_type().
11761
f9aeb8d4
AV
117622017-03-20 Artemiy Volkov <artemiyv@acm.org>
11763
11764 PR gdb/14441
11765 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
11766 (TYPE_IS_REFERENCE): New macro.
11767 (struct type): Add rvalue_reference_type field.
11768 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
11769
51457a05
MAL
117702017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
11771
11772 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
11773 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
11774 New function definition.
11775 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
11776 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
11777 New function declaration.
11778 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
11779 * mi/mi-interp.h: New file.
11780 * solib.c (info_sharedlibrary_command): Replace for loop with
11781 ALL_SO_LIBS macro
11782 * solib.h (update_solib_list): New function declaration.
11783 (so_list_head): Move macro.
11784 * solist.h (ALL_SO_LIBS): New macro.
11785
e696b3ad
MAL
117862017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
11787
11788 * infcmd.c (post_create_inferior): Remove unused argument in
11789 call to solib_add.
11790 * remote.c (remote_start_remote): Likewise.
11791 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
11792 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
11793 (enable_break): Likewise.
11794 * solib.c (update_solib_list): Remove unused target argument
11795 and its documentation.
11796 (solib_add): Remove unused target argument. Remove unused
11797 argument in call to update_solib_list.
11798 (info_sharedlibrary_command): Remove unused argument in call
11799 to update_solib_list.
11800 (sharedlibrary_command): Remove unused argument in call to
11801 solib_add.
11802 (handle_solib_event): Likewise.
11803 (reload_shared_libraries): Likewise.
11804 * solib.h (solib_add): Remove unused target argument.
11805
dcb84eda
AA
118062017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
11807
11808 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
11809 (s390_displaced_step_fixup): Cover relative branches with the
11810 default fixup handling. This fixes lack of support for some
11811 relative branch instructions.
11812
d9cb6cdc
SM
118132017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11814
11815 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
11816 ptid from regcache.
11817
1afaf9f4
SM
118182017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11819
11820 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
11821 i386_darwin_store_inferior_registers): Use ptid from regcache.
11822
aac12e24
SM
118232017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11824
11825 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
11826 i386bsd_store_inferior_registers): Use ptid from regcache.
11827
bbe1eef1
SM
118282017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11829
11830 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
11831 hppaobsd_store_registers): Use ptid from regcache.
11832
10799020
SM
118332017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11834
11835 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
11836 hppanbsd_store_registers): Use ptid from regcache.
11837
00204cf7
SM
118382017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11839
11840 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
11841 from regcache. Use get_ptrace_pid.
11842
11a33714
SM
118432017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11844
11845 * corelow.c (get_core_register_section): Use ptid from regcache,
11846 update doc.
11847
317cd492
SM
118482017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11849
11850 * bsd-uthread.c (bsd_uthread_fetch_registers,
11851 bsd_uthread_store_registers): Use ptid from regcache, set and
11852 restore inferior_ptid.
11853
9ac8a7c2
SM
118542017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11855
11856 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
11857 fetch_fp_regs, store_register, store_regs, store_fp_register,
11858 store_fp_regs): Use ptid from regcache.
11859
4ac4bb6a
SM
118602017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11861
11862 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
11863 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
11864 store_vfp_regs): Use ptid from regcache.
11865
9bcbdca8
PA
118662017-03-17 Pedro Alves <palves@redhat.com>
11867
11868 PR remote/21188
11869 * ser-base.c (ser_base_wait_for): Add comment.
11870 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
11871 version.
11872 * ser-unix.c (hardwire_raw): Remove reference to
11873 scb->current_timeout.
11874 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
11875 (hardwire_ops): Install ser_base_readchar instead of
11876 hardwire_readchar.
11877 * serial.h (struct serial) <current_timeout, timeout_remaining>:
11878 Remove fields.
11879
7503099f
JG
118802017-03-17 Jonah Graham <jonah@kichwacoders.com>
11881
11882 PR gdb/19637
11883 * python/lib/gdb/printer/bound_registers.py: Add support for
11884 Python 3.
11885
7942e96e
AA
118862017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
11887
11888 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
11889 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
11890 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
11891 byte_offset to subobj_byte_offset. Fix the handling of
11892 DWARF_VALUE_STACK on big-endian targets when coming via an
11893 implicit pointer.
11894 (dwarf2_evaluate_loc_desc): Adjust call to
11895 dwarf2_evaluate_loc_desc_full.
11896 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
11897 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
11898
ba14f379
YQ
118992017-03-16 Yao Qi <yao.qi@linaro.org>
11900
11901 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
11902 and REVSH instructions.
11903
b121eeb9
YQ
119042017-03-16 Yao Qi <yao.qi@linaro.org>
11905
11906 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
11907 (arm_record_test): Declare.
11908 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
11909 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
11910 align with the manual.
11911 (thumb_record_misc): Adjust the code order to align with the
11912 manual.
11913 (thumb2_record_decode_insn_handler): Fix instruction matching.
11914 (instruction_reader_thumb): New class.
11915 (arm_record_test): New function.
11916
728a7913
YQ
119172017-03-16 Yao Qi <yao.qi@linaro.org>
11918
11919 * arm-tdep.c (abstract_memory_reader): New class.
11920 (instruction_reader): New class.
11921 (extract_arm_insn): Add argument 'reader'. Callers updated.
11922 (decode_insn): Likewise.
11923
34b43320
DE
119242017-03-16 Doug Evans <dje@google.com>
11925
a7c0469f
DE
11926 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
11927 member. Change type of TYPE member to SCM. All uses updated.
11928 (lsscm_make_lazy_string_smob): Add assert.
11929 (lsscm_make_lazy_string): Flag bad length values.
11930 (lsscm_elt_type): New function.
11931 (gdbscm_lazy_string_to_value): Rewrite to use
11932 lsscm_safe_lazy_string_to_value.
11933 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
11934 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
11935 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
11936 in incoming type.
11937 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
11938 * guile/scm-type.c (tyscm_scm_to_type): New function.
11939
119402017-03-15 Doug Evans <dje@google.com>
11941
34b43320
DE
11942 PR python/17728, python/18439, python/18779
11943 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
11944 member. Change type of TYPE member to PyObject *. All uses updated.
11945 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
11946 (gdbpy_create_lazy_string_object): Flag bad length values.
11947 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
11948 Handle typedefs in incoming type.
11949 (stpy_lazy_string_elt_type): New function.
11950 (gdbpy_extract_lazy_string): Call it.
11951 * python/py-value.c (valpy_lazy_string): Flag bad length values.
11952 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
11953 typedefs in incoming type.
11954
a3a5fecc
DE
119552017-03-16 Doug Evans <dje@google.com>
11956
11957 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
11958 * guile/scm-type.c (tyscm_scm_to_type): New function.
11959
28f1c605
JW
119602017-03-16 Jiong Wang <jiong.wang@arm.com>
11961
11962 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
11963 "ULONGEST" for "skip".
11964
87c336f6
AA
119652017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
11966
11967 PR gdb/21220
11968 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
11969 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
11970 (inf_ptrace_peek_poke): ...here. New function. Now also loop
11971 over ptrace peek/poke until end of buffer or error.
11972
cf81cf60
SM
119732017-03-14 Simon Marchi <simon.marchi@ericsson.com>
11974
11975 * parse.c (length_of_subexp): Make static.
11976 * parser-defs.h (length_of_subexp): Remove.
11977
a379284a
AA
119782017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
11979
11980 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
11981 as well.
11982
8a6200ba
PA
119832017-03-14 Pedro Alves <palves@redhat.com>
11984
11985 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
11986 (main): Use std::unique_ptr. Remove calls to
11987 cp_demangled_name_parse_free.
11988
f79ec206
SM
119892017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11990
11991 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
11992 alphabsd_store_inferior_registers): Use regcache->ptid instead
11993 of inferior_ptid.
11994
edb5fb00
SM
119952017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11996
11997 * aix-thread.c (aix_thread_fetch_registers,
11998 aix_thread_store_registers): Use regcache->ptid instead of
11999 inferior_ptid.
12000
55119686
SM
120012017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12002
12003 * aarch64-linux-nat.c (fetch_gregs_from_thread,
12004 store_gregs_to_thread, fetch_fpregs_from_thread,
12005 store_fpregs_to_thread): Use regcache->ptid instead of
12006 inferior_ptid.
12007
6a06fbb7
SM
120082017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12009
12010 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
12011 amd64_linux_fetch_inferior_registers): Use regcache->ptid
12012 instead of inferior_ptid.
12013
c6386875
SM
120142017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12015
12016 * target.c (target_fetch_registers, target_store_registers): Add
12017 assert.
12018
ddaaf0fb
SM
120192017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12020
12021 * regcache.h (regcache_get_ptid): New function.
12022 * regcache.c (regcache_get_ptid): New function.
12023
b9da89d1 120242017-03-13 Mark Wielaard <mark@klomp.org>
12025
12026 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
12027
5f4d1085
KS
120282017-03-10 Keith Seitz <keiths@redhat.com>
12029
12030 PR c++/8218
12031 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
12032
c65d6b55
PA
120332017-03-08 Pedro Alves <palves@redhat.com>
12034
12035 PR gdb/18360
12036 * infrun.c (start_step_over, do_target_resume, resume)
12037 (restart_threads): Assert we're not resuming a thread that is
12038 meant to be stopped.
12039 (infrun_thread_stop_requested_callback): Delete.
12040 (infrun_thread_stop_requested): If the thread is internally
12041 stopped, queue a pending stop event and clear the thread's
12042 inline-frame state.
12043 (handle_stop_requested): New function.
12044 (handle_syscall_event, handle_inferior_event_1): Use
12045 handle_stop_requested.
12046 (handle_stop_requested): New function.
12047 (handle_signal_stop): Set the thread's stop_signal here instead of
12048 at caller.
12049 (finish_step_over): Clear step over info unconditionally.
12050 (handle_signal_stop): If the user had interrupted the event
12051 thread, consider the stop a random signal.
12052 (handle_signal_stop) <signal arrived while stepping over
12053 breakpoint>: Don't restart threads here.
12054 (stop_waiting): Don't clear step-over info here.
12055
15c22686
PA
120562017-03-08 Pedro Alves <palves@redhat.com>
12057
12058 PR 21206
12059 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
12060 goes to argument 2, not 1.
12061
6e5d74e7
PA
120622017-03-08 Pedro Alves <palves@redhat.com>
12063
12064 PR cli/21218
12065 * top.c (gdb_readline_wrapper): Avoid passing NULL to
12066 display_gdb_prompt.
12067 (command_line_input): Add comment.
12068
9753a2f6
PA
120692017-03-08 Pedro Alves <palves@redhat.com>
12070
12071 PR tui/21216
12072 * tui/tui-file.c (tui_file::write): New.
12073 * tui/tui-file.h (tui_file): Override "write".
12074 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
12075 factored out from ...
12076 (tui_puts): ... here.
12077 (tui_putc): Use them.
12078 (tui_write): New function.
12079 * tui/tui-io.h (tui_write): Declare.
12080
1672e0d9
SDJ
120812017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
12082
12083 * Makefile.in (SFILES): Replace "environ.c" with
12084 "common/environ.c".
12085 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
12086 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
12087 to...
12088 * common/environ.c: ... here.
12089 * environ.h: Moved to...
12090 * common/environ.h: ... here.
12091
f7bb4e3a
PB
120922017-03-07 Peter Bergner <bergner@vnet.ibm.com>
12093
12094 * gdbarch.sh (pstring_ptr): New static function.
12095 (gdbarch_disassembler_options): Use it.
12096 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
12097 not valid_disassembler_option->name.
12098 * gdbarch.c: Regenerate.
12099
e45ced6c
PB
121002017-03-07 Peter Bergner <bergner@vnet.ibm.com>
12101
12102 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
12103
5f6fd321
PA
121042017-03-07 Pedro Alves <palves@redhat.com>
12105
12106 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
12107
6dbb839a 121082017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
12109
12110 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
12111 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
12112 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 12113 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 12114
d274ecf4
SM
121152017-03-06 Simon Marchi <simon.marchi@ericsson.com>
12116
12117 * xtensa-linux-nat.c (fetch_gregs): Remove const.
12118
df97be55
SM
121192017-03-03 Simon Marchi <simon.marchi@ericsson.com>
12120
12121 * remote.c (remote_add_target_side_commands): Use range-based
12122 for loop.
12123
7d45f3df
YQ
121242017-03-03 Yao Qi <yao.qi@linaro.org>
12125
12126 PR gdb/21165
12127 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
12128 value is lazy.
12129 * valprint.c (common_val_print): Likewise.
12130
65b48a81
PB
121312017-02-28 Peter Bergner <bergner@vnet.ibm.com>
12132
12133 * NEWS: Mention new set/show disassembler-options commands.
12134 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
12135 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
12136 (prospective_options): New static variable.
12137 (gdb_disassembler::gdb_disassembler): Initialize
12138 m_di.disassembler_options.
12139 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
12140 (get_disassembler_options): New function.
12141 (set_disassembler_options): Likewise.
12142 (set_disassembler_options_sfunc): Likewise.
12143 (show_disassembler_options_sfunc): Likewise.
12144 (disassembler_options_completer): Likewise.
12145 (_initialize_disasm): Likewise.
12146 * disasm.h (get_disassembler_options): New prototype.
12147 (set_disassembler_options): Likewise.
12148 * gdbarch.sh (gdbarch_disassembler_options): New variable.
12149 (gdbarch_verify_disassembler_options): Likewise.
12150 * gdbarch.c: Regenerate.
12151 * gdbarch.h: Likewise.
12152 * arm-tdep.c (num_disassembly_options): Delete.
12153 (set_disassembly_style): Likewise.
12154 (arm_disassembler_options): New static variable.
12155 (set_disassembly_style_sfunc): Convert short style name into long
12156 option name. Call set_disassembler_options.
12157 (show_disassembly_style_sfunc): New function.
12158 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
12159 set_gdbarch_verify_disassembler_options.
12160 (_initialize_arm_tdep): Delete regnames variable and update callers.
12161 (arm_disassembler_options): Initialize.
12162 (disasm_options): New variable.
12163 (num_disassembly_options): Rename from this...
12164 (num_disassembly_styles): ...to this. Compute by scanning through
12165 disasm_options.
12166 (valid_disassembly_styles): Initialize using disasm_options.
12167 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
12168 set_arm_regname_option.
12169 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
12170 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
12171 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
12172 set_gdbarch_verify_disassembler_options.
12173 * s390-tdep.c (s390_disassembler_options): New static variable.
12174 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
12175 set_gdbarch_verify_disassembler_options.
12176
d538e36d
SM
121772017-02-27 Simon Marchi <simon.marchi@ericsson.com>
12178
12179 * remote.c (remote_add_target_side_condition): Remove "struct"
12180 keyword from range-based for loop.
12181
83621223
SM
121822017-02-27 Simon Marchi <simon.marchi@ericsson.com>
12183
12184 * remote.c (remote_add_target_side_condition): Use range-based
12185 for loop. Update comment.
12186
2123df0e
YQ
121872017-02-27 Yao Qi <yao.qi@linaro.org>
12188
12189 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
12190
8e368124
AH
121912017-02-26 Alan Hayward <alan.hayward@arm.com>
12192
12193 * regcache.c (regcache_raw_update): New function.
12194 (regcache_raw_read): Move code to regcache_raw_update.
12195 * regcache.h (regcache_raw_update): New declaration.
12196 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
12197
a49dd8dd
JK
121982017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
12199
12200 * dwarf2read.c (create_debug_type_hash_table): Initialize
12201 header.signature and header.type_offset_in_tu.
12202
34e4bae9
PA
122032017-02-24 Pedro Alves <palves@redhat.com>
12204
12205 * symtab.c (make_file_symbol_completion_list_1): Use
12206 add_symtab_completions.
12207
b0e4b369
AH
122082017-02-24 Alan Hayward <alan.hayward@arm.com>
12209
12210 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
12211
975c21ab
AH
122122017-02-24 Alan Hayward <alan.hayward@arm.com>
12213
12214 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
12215 I386_MAX_REGISTER_SIZE.
12216 (i386_pseudo_register_write): Likewise.
12217 (i386_process_record): Likewise.
12218 * i387-tdep.c (i387_supply_xsave): Likewise.
12219 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
12220 (store_register): Likewise.
12221
14bc53a8
PA
122222017-02-23 Pedro Alves <palves@redhat.com>
12223
12224 * ada-lang.c: Include "common/function-view.h".
12225 (ada_iterate_over_symbols): Adjust to use function_view as
12226 callback type.
12227 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
12228 (ada_make_symbol_completion_list): Use a lambda.
12229 (ada_exc_search_name_matches): Delete.
12230 (name_matches_regex): New.
12231 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
12232 * compile/compile-c-support.c: Include "common/function-view.h".
12233 (print_one_macro): Change prototype to accept a ui_file pointer.
12234 (write_macro_definitions): Use a lambda.
12235 * dwarf2read.c: Include "common/function-view.h".
12236 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
12237 (dw2_expand_symtabs_matching): Adjust to use function_view as
12238 callback type.
12239 * language.h: Include "common/function-view.h".
12240 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
12241 function_view as callback type.
12242 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
12243 * linespec.c: Include "common/function-view.h".
12244 (collect_info::add_symbol): New method.
12245 (struct symbol_and_data_callback, iterate_inline_only, struct
12246 symbol_matcher_data, iterate_name_matcher): Delete.
12247 (iterate_over_all_matching_symtabs): Adjust to use function_view
12248 as callback type and lambdas.
12249 (iterate_over_file_blocks): Adjust to use function_view as
12250 callback type.
12251 (decode_compound_collector): Now a class with private fields.
12252 (decode_compound_collector::release_symbols): New method.
12253 (collect_one_symbol): Rename to...
12254 (decode_compound_collector::operator()): ... this and adjust.
12255 (lookup_prefix_sym): decode_compound_collector construction bits
12256 move to decode_compound_collector ctor. Pass the
12257 decode_compound_collector object directly as callback. Remove
12258 cleanups and use decode_compound_collector::release_symbols
12259 instead.
12260 (symtab_collector): Now a class with private fields.
12261 (symtab_collector::release_symtabs): New method.
12262 (add_symtabs_to_list): Rename to...
12263 (symtab_collector::operator()): ... this and adjust.
12264 (collect_symtabs_from_filename): symtab_collector construction
12265 bits move to symtab_collector ctor. Pass the symtab_collector
12266 object directly as callback. Remove cleanups and use
12267 symtab_collector::release_symtabs instead.
12268 (collect_symbols): Delete.
12269 (add_matching_symbols_to_info): Use lambdas.
12270 * macrocmd.c (print_macro_callback): Delete.
12271 (info_macro_command): Use a lambda.
12272 (info_macros_command): Pass print_macro_definition as callable
12273 directly.
12274 (print_one_macro): Remove 'ignore' parameter.
12275 (macro_list_command): Adjust.
12276 * macrotab.c (macro_for_each_data::fn): Now a function_view.
12277 (macro_for_each_data::user_data): Delete field.
12278 (foreach_macro): Adjust to call the function_view.
12279 (macro_for_each): Adjust to use function_view as callback type.
12280 (foreach_macro_in_scope): Adjust to call the function_view.
12281 (macro_for_each_in_scope): Adjust to use function_view as callback
12282 type.
12283 * macrotab.h: Include "common/function-view.h".
12284 (macro_callback_fn): Declare a prototype instead of a pointer.
12285 Remove "user_data" parameter.
12286 (macro_for_each, macro_for_each_in_scope): Adjust to use
12287 function_view as callback type.
12288 * psymtab.c (partial_map_expand_apply)
12289 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
12290 Adjust to use function_view as callback type and to return bool.
12291 (psym_expand_symtabs_matching): Adjust to use function_view as
12292 callback types.
12293 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
12294 to use function_view as callback type and to return bool.
12295 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
12296 callback types.
12297 * symfile.c (expand_symtabs_matching): Adjust to use function_view
12298 as callback types.
12299 * symfile.h: Include "common/function-view.h".
12300 (expand_symtabs_file_matcher_ftype)
12301 (expand_symtabs_symbol_matcher_ftype)
12302 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
12303 return bool.
12304 (quick_symbol_functions::map_symtabs_matching_filename)
12305 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
12306 function_view as callback type and return bool.
12307 (expand_symtabs_matching): Adjust to use function_view as callback
12308 type.
12309 (maintenance_expand_name_matcher)
12310 (maintenance_expand_file_matcher): Delete.
12311 (maintenance_expand_symtabs): Use lambdas.
12312 * symtab.c (iterate_over_some_symtabs): Adjust to use
12313 function_view as callback types and return bool.
12314 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
12315 of a cleanup.
12316 (lookup_symtab_callback): Delete.
12317 (lookup_symtab): Use a lambda.
12318 (iterate_over_symbols): Adjust to use function_view as callback
12319 type.
12320 (struct search_symbols_data, search_symbols_file_matches)
12321 (search_symbols_name_matches): Delete.
12322 (search_symbols): Use a pair of lambdas.
12323 (struct add_name_data, add_macro_name, symbol_completion_matcher)
12324 (symtab_expansion_callback): Delete.
12325 (default_make_symbol_completion_list_break_on_1): Use lambdas.
12326 * symtab.h: Include "common/function-view.h".
12327 (iterate_over_some_symtabs): Adjust to use function_view as
12328 callback type and return bool.
12329 (iterate_over_symtabs): Adjust to use function_view as callback
12330 type.
12331 (symbol_found_callback_ftype): Remove 'data' parameter and return
12332 bool.
12333 (iterate_over_symbols): Adjust to use function_view as callback
12334 type.
12335
07e253aa
PA
123362017-02-23 Pedro Alves <palves@redhat.com>
12337
12338 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
12339 (%.o) <unittests/%.c>: New pattern.
12340 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
12341 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
12342 * common/function-view.h: New file.
12343 * unittests/function-view-selftests.c: New file.
12344 * configure: Regenerate.
12345
8eaf5320
SM
123462017-02-23 Simon Marchi <simon.marchi@ericsson.com>
12347
12348 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
12349 inferior_ptid.
12350 * go32-nat.c (go32_thread_alive): Likewise.
12351
38768751
YQ
123522017-02-23 Yao Qi <yao.qi@linaro.org>
12353
12354 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
12355 delete.
12356
0a8beaba
YQ
123572017-02-23 Yao Qi <yao.qi@linaro.org>
12358
12359 * varobj.c (varobj_clear_saved_item): Use delete instead of
12360 xfree.
12361 (update_dynamic_varobj_children): Likewise.
12362
58fdfd2c
JK
123632017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12364
12365 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
12366
1b90b139
SM
123672017-02-21 Simon Marchi <simon.marchi@ericsson.com>
12368
12369 * common/enum-flags.h (enum_flags::enum_flags): Initialize
12370 m_enum_value to 0 in default constructor.
12371
2039d74e
EBM
123722017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12373
12374 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
12375 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
12376 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
12377 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
12378 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
12379 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
12380 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
12381 IS_STORE_CONDITIONAL_INSN.
12382
7814882a
JK
123832017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12384
12385 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
12386
0ae60b63
JK
123872017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12388
12389 * NEWS (Changes since GDB 7.12): Add DWARF-5.
12390
0224619f
JK
123912017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12392
12393 * dwarf2read.c (skip_one_die, read_attribute_value)
12394 (dwarf2_const_value_attr, dump_die_shallow)
12395 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
12396 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
12397
0af92d60
JK
123982017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12399
12400 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
12401 (dwarf_parse_macro_header): Accept DWARF version 5.
12402 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
12403
216f72a1
JK
124042017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12405
12406 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
12407 DW_AT_GNU_*.
12408 * common/common-exceptions.h (enum errors): Likewise.
12409 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
12410 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
12411 (dwarf_expr_context::execute_stack_op): Likewise.
12412 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
12413 Likewise.
12414 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
12415 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12416 (show_entry_values_debug, call_site_to_target_addr)
12417 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
12418 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
12419 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
12420 (value_of_dwarf_block_entry, indirect_pieced_value)
12421 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
12422 (disassemble_dwarf_expression): Likewise.
12423 * dwarf2read.c (process_die, inherit_abstract_dies)
12424 (read_call_site_scope): Likewise.
12425 * gdbtypes.h (struct func_type, struct call_site_parameter)
12426 (struct call_site): Likewise.
12427 * stack.c (read_frame_arg): Likewise.
12428 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
12429
43988095
JK
124302017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12431
12432 * defs.h (read_unsigned_leb128): New declaration.
12433 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
12434 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
12435 (dwarf2_find_location_expression): Call also
12436 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
12437 * dwarf2loc.h (dwarf2_version): New declaration.
12438 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
12439 rnglists.
12440 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
12441 .debug_rnglists.
12442 (struct dwop_section_names): Add loclists_dwo.
12443 (dwop_section_names): Add .debug_loclists.dwo.
12444 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
12445 (struct dwarf2_per_cu_data): Add dwarf_version.
12446 (struct dwo_sections): Add loclists.
12447 (struct attr_abbrev): Add implicit_const.
12448 (read_indirect_line_string): New declaration.
12449 (read_unsigned_leb128): Delete declaration.
12450 (rcuh_kind): New definition.
12451 (read_and_check_comp_unit_head): Change parameter
12452 is_debug_types_section to section_kind.
12453 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
12454 (read_comp_unit_head): Change parameter abfd to section, add parameter
12455 section_kind. Handle DWARF-5.
12456 (error_check_comp_unit_head): Accept also DWARF version 5.
12457 (read_and_check_comp_unit_head): Change parameter
12458 is_debug_types_section to section_kind.
12459 (read_and_check_type_unit_head): Delete function.
12460 (read_abbrev_offset): Handle DWARF-5.
12461 (create_debug_type_hash_table): Add parameter section_kind. Process
12462 only DW_UT_type. Use signature and type_offset_in_tu from struct
12463 comp_unit_head.
12464 (create_debug_types_hash_table): Update create_debug_type_hash_table
12465 caller.
12466 (create_all_type_units): Call create_debug_type_hash_table.
12467 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
12468 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
12469 caller.
12470 (skip_one_die): Handle DW_FORM_implicit_const.
12471 (dwarf2_rnglists_process): New function.
12472 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
12473 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
12474 (read_attribute_value): Handle DW_FORM_implicit_const,
12475 DW_FORM_line_strp.
12476 (read_attribute): Handle DW_FORM_implicit_const.
12477 (read_indirect_string_at_offset_from): New function from
12478 read_indirect_string_at_offset.
12479 (read_indirect_string_at_offset): Call
12480 read_indirect_string_at_offset_from.
12481 (read_indirect_line_string_at_offset): New function.
12482 (read_indirect_string): New function comment.
12483 (read_indirect_line_string): New function.
12484 (read_unsigned_leb128): Make it global.
12485 (dwarf2_string_attr): Handle DWARF-5.
12486 (add_include_dir_stub, read_formatted_entries): New functions.
12487 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
12488 Handle DWARF-5.
12489 (per_cu_header_read_in): Update read_comp_unit_head caller.
12490 (dwarf2_version): New function.
12491 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
12492 rnglists.
12493 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
12494 fields.
12495
22d2f3ab
JK
124962017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12497
12498 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
12499
5f46c5a5
JK
125002017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12501
12502 * dwarf2read.c (dwarf2_ranges_process): New function from
12503 dwarf2_ranges_read.
12504 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
12505 dwarf2_ranges_process.
12506
78d4d2c5
JK
125072017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12508
12509 * dwarf2read.c (create_debug_type_hash_table): New function from
12510 create_debug_types_hash_table.
12511 (create_debug_types_hash_table): Call create_debug_type_hash_table.
12512 (create_all_type_units, open_and_init_dwo_file): Update
12513 create_debug_types_hash_table callers.
12514
1b076f25
SDJ
125152017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12516
12517 PR gdb/16188
12518 * fork-child.c (trace_start_error): Fix thinko. va_end should
12519 refer to 'ap', not 'args'.
12520
0db8980c
SDJ
125212017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12522 Pedro Alves <palves@redhat.com>
12523
12524 PR gdb/16188
12525 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
12526 calls succeeded.
12527 * fork-child.c (trace_start_error): New function.
12528 (trace_start_error_with_name): Likewise.
12529 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
12530 * inf-ptrace.c (inf_ptrace_me): Likewise.
12531 * inferior.h (trace_start_error): New prototype.
12532 (trace_start_error_with_name): Likewise.
12533
99e8a4f9
SDJ
125342017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
12535
12536 PR gdb/21164
12537 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
12538 NULL before using it.
12539 * symmisc.c (maintenance_print_symbols): Likewise.
12540 (maintenance_print_msymbols): Likewise.
12541
4e746bb6
TW
125422017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12543
12544 * NEWS: Add record Python bindings entry.
12545
125462017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12547
12548 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
12549 py-record-full.o.
12550 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
12551 * python/py-record-btrace.c, python/py-record-btrace.h,
12552 python/py-record-full.c, python/py-record-full.h: New file.
12553 * python/py-record.c: Add include for py-record-btrace.h and
12554 py-record-full.h.
12555 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
12556 recpy_instruction_history, recpy_function_call_history, recpy_begin,
12557 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
12558 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
12559 New definition.
12560 (gdbpy_initialize_btrace): New export.
12561 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
12562
125632017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12564
12565 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
12566 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
12567 * python/py-record.c: New file.
12568 * python/python-internal.h (gdbpy_start_recording,
12569 gdbpy_current_recording, gdpy_stop_recording,
12570 gdbpy_initialize_record): New export.
12571 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
12572 (python_GdbMethods): Add gdbpy_start_recording,
12573 gdbpy_current_recording and gdbpy_stop_recording.
12574
125752017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12576
12577 * record-btrace.c (record_btrace_record_method): New function.
12578 (init_record_btrace_ops): Initialize to_record_method.
12579 * record-full.c (record_full_record_method): New function.
12580 (init_record_full_ops, init_record_full_core_ops): Add
12581 record_full_record_method.
12582 * record.h (enum record_method): New enum.
12583 * target-debug.h (target_debug_print_enum_record_method: New define.
12584 * target-delegates.c: Regenerate.
12585 * target.c (target_record_method): New function.
12586 * target.h: Include record.h.
12587 (struct target_ops) <to_record_method>: New field.
12588 (target_record_method): New export.
12589
125902017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12591
12592 * record.h (record_start, record_stop): New export.
12593 * record.c (record_start, record_stop): New function.
12594
125952017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12596
12597 * btrace.c (btrace_fetch): Copy function call segments pointer
12598 into a vector.
12599 (btrace_clear): Clear the vector.
12600 (btrace_find_insn_by_number): Use binary search to find the correct
12601 function call segment.
12602 * btrace.h (brace_fun_p): New typedef.
12603 (struct btrace_thread_info) <functions>: New field.
12604
126052017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12606
12607 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
12608 * btrace.c (btrace_decode_error): ... here. New function.
12609 * btrace.h (btrace_decode_error): New export.
12610
126112017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12612
12613 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
12614 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
12615 btrace_find_insn_by_number): Remove special case for gaps.
12616 * btrace.h (btrace_insn_get_error): New export.
12617 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
12618 * record-btrace.c (btrace_insn_history): Print number for gaps.
12619 (record_btrace_info, record_btrace_goto): Handle gaps.
12620
3f77c769
TT
126212017-02-14 Tom Tromey <tom@tromey.com>
12622
12623 PR python/13598:
12624 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
12625 event.
12626 * python/py-evts.c (gdbpy_initialize_py_events): Add
12627 before_prompt registry.
12628 * python/py-events.h (events_object) <before_prompt>: New field.
12629
4c2c7ac6
MM
126302017-02-14 Markus Metzger <markus.t.metzger@intel.com>
12631
12632 * btrace.c (ftrace_new_switch): Preserve up link and flags.
12633
5cf30ebf
LM
126342017-02-13 Luis Machado <lgustavo@codesourcery.com>
12635
12636 * symfile (_initialize_symfile): Add usage text to the load command's
12637 help text.
12638
26a06916
SM
126392017-02-10 Simon Marchi <simon.marchi@ericsson.com>
12640
12641 * utils.c (defaulted_query): Don't query on secondary UIs.
12642
0b145e37
TT
126432017-02-10 Tom Tromey <tom@tromey.com>
12644
12645 * rust-lang.c (rust_get_disr_info): Remove unused variable.
12646
2d8365c4
TT
126472017-02-10 Tom Tromey <tom@tromey.com>
12648
12649 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
12650 "cleanup" local.
12651 * python/py-type.c (typy_legacy_template_argument): Remove
12652 unnecessary "cleanup" local.
12653
2bb8f231
TT
126542017-02-10 Tom Tromey <tom@tromey.com>
12655
12656 * python/python.c (do_start_initialization): New function, from
12657 _initialize_python.
12658 (_initialize_python): Call do_start_initialization.
12659 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
12660 goto.
12661
1bdfaf42
TT
126622017-02-10 Tom Tromey <tom@tromey.com>
12663
12664 * python/py-prettyprint.c (pretty_print_one_value): Use
12665 gdbpy_ref.
12666
88b6faea
TT
126672017-02-10 Tom Tromey <tom@tromey.com>
12668
12669 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
12670 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
12671 gdbpy_ref.
12672 * python/py-type.c (field_new): Use gdbpy_ref.
12673 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
12674 gdbpy_ref.
12675 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
12676 (py_free_pspace): Likewise.
12677 (pspace_to_pspace_object): Likewise.
12678 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
12679 (py_free_objfile): Likewise.
12680 (objfile_to_objfile_object): Likewise.
12681 * python/py-inferior.c (delete_thread_object): Use
12682 gdbpy_ref.
12683 (infpy_read_memory): Likewise.
12684 (py_free_inferior): Likewise.
12685 * python/py-evtregistry.c (create_eventregistry_object): Use
12686 gdbpy_ref.
12687 * python/py-event.c (create_event_object): Use gdbpy_ref.
12688
7780f186
TT
126892017-02-10 Tom Tromey <tom@tromey.com>
12690
12691 * python/py-ref.h (gdbpy_ref_policy): Now a template.
12692 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
12693 used.
12694 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
12695 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
12696 python/py-exitedevent.c, python/py-finishbreakpoint.c,
12697 python/py-framefilter.c, python/py-function.c,
12698 python/py-inferior.c, python/py-infevents.c,
12699 python/py-linetable.c, python/py-newobjfileevent.c,
12700 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
12701 python/py-signalevent.c, python/py-stopevent.c,
12702 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
12703 python/py-unwind.c, python/py-utils.c, python/py-value.c,
12704 python/py-varobj.c, python/py-xmethods.c, python/python.c,
12705 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
12706
d4b0bb18
TT
127072017-02-10 Tom Tromey <tom@tromey.com>
12708
12709 * ui-out.h (ui_out_emit_type): New class.
12710 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
12711 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
12712 and ui_out_emit_tuple.
12713 (enumerate_locals): Likewise.
12714 (py_mi_print_variables, py_print_locals, py_print_args): Use
12715 ui_out_emit_list.
12716 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
12717 ui_out_emit_list.
12718 * common/gdb_optional.h: New file.
12719
f67f945c
MG
127202017-02-10 Martin Galvan <martingalvan@sourceware.org>
12721
12722 * MAINTAINERS (Write After Approval): Update my e-mail address.
12723
18da0c51
MG
127242017-02-10 Martin Galvan <martingalvan@sourceware.org>
12725
12726 PR gdb/21122
12727 * breakpoint.c (_initialize_breakpoint): Update the help description
12728 of the 'commands' command to indicate that it takes a list argument.
12729
62c14536
SM
127302017-02-09 Simon Marchi <simon.marchi@ericsson.com>
12731
12732 * interps.c (current_interp_set_logging): Remove "return".
12733
ff6fa247
GB
127342017-02-09 Gary Benson <gbenson@redhat.com>
12735
12736 * symtab.c (add_symtab_completions): Prevent NULL pointer
12737 dereference.
12738
a474bd8e
PA
127392017-02-08 Pedro Alves <palves@redhat.com>
12740
12741 * interps.c (interp::interp): Remove reference to quiet_p.
12742 (interp_set): Make static. Remove dead "Switching to" output
12743 code.
12744 (interp_quiet_p, interp_set_quiet): Delete.
12745 (interpreter_exec_cmd): Don't set the interpreter quiet.
12746 * interps.h (interp_quiet_p): Make static.
12747 (class interp) <quiet_p>: Remove field
12748
3d7b173c
JG
127492017-02-08 Jerome Guitton <guitton@adacore.com>
12750
604c4576
JG
12751 * cli/cli-decode.c (find_command_name_length): Make it extern.
12752 * cli/cli-decode.h (find_command_name_length): Declare.
12753 * cli/cli-script.c (command_name_equals, line_first_arg):
12754 New functions.
12755 (process_next_line): Use cli-decode to parse command names.
12756 (build_command_line): Make args a constant pointer.
12757
127582017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 12759
3d7b173c
JG
12760 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
12761 Remove case-insensitive search.
12762
1291063d
JM
127632017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
12764
12765 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
12766 at the end of the line. Avoids an ARI warning.
12767
20b477a7
LM
127682017-02-06 Luis Machado <lgustavo@codesourcery.com>
12769
12770 * NEWS: Mention support for record/replay of Intel 64 rdrand and
12771 rdseed instructions.
12772 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
12773
3f7b46f2
IR
127742017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
12775
12776 PR tdep/20936
12777 Provide and use sparc32 and sparc64 target description XML files.
12778 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
12779 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
12780 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
12781 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
12782 * features/sparc/sparc32-solaris.xml: New file.
12783 * features/sparc/sparc64-solaris.xml: New file.
12784 * features/sparc/sparc32-solaris.c: Generated.
12785 * features/sparc/sparc64-solaris.c: Generated.
12786 * sparc-tdep.h: Account for differences in target descriptions.
12787 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
12788 (sparc32_register_type): Use target provided registers.
12789 (validate_tdesc_registers): New function.
12790 (sparc32_gdbarch_init): Use tdesc_has_registers.
12791 Set pseudoregister functions.
12792 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
12793 (sparc64_register_type): Use target provided registers.
12794 (sparc64_init_abi): Set pseudoregister functions.
12795
f0fd41c1
TT
127962017-02-03 Tom Tromey <tom@tromey.com>
12797
12798 PR rust/21097:
12799 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
12800 with a single member.
12801
d6f9b0fb
PA
128022017-02-03 Pedro Alves <palves@redhat.com>
12803
12804 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
12805 (cli_interp_base::~cli_interp_base): New.
12806 (cli_interp): New struct.
12807 (as_cli_interp): Cast the interp itself to cli_interp.
12808 (cli_interpreter_pre_command_loop): Rename to ...
12809 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
12810 parameter.
12811 (cli_interpreter_init): Rename to ...
12812 (cli_interp::init): ... this. Remove 'self' parameter. Use
12813 boolean. Make extern.
12814 (cli_interpreter_resume): Rename to ...
12815 (cli_interp::resume): ... this. Remove 'data' parameter. Make
12816 extern.
12817 (cli_interpreter_suspend): Rename to ...
12818 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
12819 extern.
12820 (cli_interpreter_exec): Rename to ...
12821 (cli_interp::exec): ... this. Remove 'data' parameter. Make
12822 extern.
12823 (cli_interpreter_supports_command_editing): Rename to ...
12824 (cli_interp_base::supports_command_editing): ... this. Remove
12825 'interp' parameter. Make extern.
12826 (cli_ui_out): Rename to ...
12827 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
12828 Make extern.
12829 (cli_set_logging): Rename to ...
12830 (cli_interp_base::set_logging): ... this. Remove 'interp'
12831 parameter. Make extern.
12832 (cli_interp_procs): Delete.
12833 (cli_interp_factory): Adjust to use "new".
12834 * cli/cli-interp.h: Include "interps.h".
12835 (struct cli_interp_base): New struct.
12836 * interps.c (struct interp): Delete. Fields moved to interps.h.
12837 (interp_new): Delete.
12838 (interp::interp, interp::~interp): New.
12839 (interp_set): Use bool, and return void. Assume the interpreter
12840 has suspend, init and resume methods, and that the all return
12841 void.
12842 (set_top_level_interpreter): interp_set returns void.
12843 (interp_ui_out): Adapt.
12844 (current_interp_set_logging): Adapt.
12845 (interp_data): Delete.
12846 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
12847 (interp_exec): Adapt.
12848 (top_level_interpreter_data): Delete.
12849 * interps.h (interp_init_ftype, interp_resume_ftype)
12850 (interp_suspend_ftype, interp_exec_ftype)
12851 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
12852 (class interp): New.
12853 (interp_new): Delete.
12854 (interp_set): Now returns void. Use bool.
12855 (interp_data, top_level_interpreter_data): Delete.
12856 * mi/mi-common.h: Include interps.h.
12857 (class mi_interp): Inherit from interp. Define a ctor. Declare
12858 init, resume, suspect, exec, interp_ui_out, set_logging and
12859 pre_command_loop methods.
12860 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
12861 (mi_interpreter_init): Rename to ...
12862 (mi_interp::init): ... this. Remove the 'interp' parameter, use
12863 bool, return void and make extern. Adjust.
12864 (mi_interpreter_resume): ... Rename to ...
12865 (mi_interp::resume): ... this. Remove the 'data' parameter,
12866 return void and make extern. Adjust.
12867 (mi_interpreter_suspend): ... Rename to ...
12868 (mi_interp::suspend): ... this. Remove the 'data' parameter,
12869 return void and make extern. Adjust.
12870 (mi_interpreter_exec): ... Rename to ...
12871 (mi_interp::exec): ... this. Remove the 'data' parameter and make
12872 extern. Adjust.
12873 (mi_interpreter_pre_command_loop): ... Rename to ...
12874 (mi_interp::pre_command_loop): ... this. Remove the 'self'
12875 parameter and make extern.
12876 (mi_on_normal_stop_1): Adjust.
12877 (mi_ui_out): Rename to ...
12878 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
12879 parameter and make extern. Adjust.
12880 (mi_set_logging): Rename to ...
12881 (mi_interp::set_logging): ... this. Remove the 'interp'
12882 parameter and make extern. Adjust.
12883 (mi_interp_procs): Delete.
12884 (mi_interp_factory): Adjust to use 'new'.
12885 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
12886 (mi_print_exception, mi_execute_command, mi_load_progress):
12887 Adjust.
12888 * tui/tui-interp.c (tui_interp): New class.
12889 (as_tui_interp): Return a tui_interp pointer.
12890 (tui_on_normal_stop, tui_on_signal_received)
12891 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
12892 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
12893 to use interp::interp_ui_out.
12894 (tui_init): Rename to ...
12895 (tui_interp::init): ... this. Remove the 'self' parameter, use
12896 bool, return void and make extern. Adjust.
12897 (tui_resume): Rename to ...
12898 (tui_interp::resume): ... this. Remove the 'data' parameter,
12899 return void and make extern. Adjust.
12900 (tui_suspend): Rename to ...
12901 (tui_interp::suspend): ... this. Remove the 'data' parameter,
12902 return void and make extern. Adjust.
12903 (tui_ui_out): Rename to ...
12904 (tui_interp::interp_ui_out): ... this. Remove the 'self'
12905 parameter, and make extern. Adjust.
12906 (tui_exec): Rename to ...
12907 (tui_interp::exec): ... this. Remove the 'data' parameter and
12908 make extern.
12909 (tui_interp_procs): Delete.
12910 (tui_interp_factory): Use "new".
12911
65c40c95
TT
129122017-02-02 Tom Tromey <tom@tromey.com>
12913
12914 * rust-exp.y (ends_raw_string, space_then_number)
12915 (rust_identifier_start_p): Return bool.
12916 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
12917 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
12918 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
12919 (rust_chartype_p): Return bool.
12920 (val_print_struct, rust_print_struct_def, rust_print_type):
12921 Update.
12922 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
12923 Return bool.
12924
b50f188d
TT
129252017-02-02 Tom Tromey <tom@tromey.com>
12926
12927 * rust-lang.c: Reindent.
12928
03c85b11
TT
129292017-02-02 Tom Tromey <tom@tromey.com>
12930
12931 * rust-lang.h (rust_crate_for_block): Update.
12932 * rust-lang.c (rust_crate_for_block): Return std::string.
12933 (rust_get_disr_info): Use std:;string, not
12934 gdb::unique_xmalloc_ptr.
12935 * rust-exp.y (crate_name): Update.
12936
9b6da501
PA
129372017-02-02 Pedro Alves <palves@redhat.com>
12938
12939 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
12940 field out of gdb_disassembler_test and make it static.
12941
ec4cb20b
PA
129422017-02-02 Pedro Alves <palves@redhat.com>
12943
12944 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
12945 mi1_interp and mi_interp fields.
12946
5be5dbf0
PA
129472017-02-02 Pedro Alves <palves@redhat.com>
12948
616268b6
PA
12949 * cli/cli-interp.c (struct saved_output_files, saved_output):
12950 Moved from cli/cli-logging.c.
12951 (cli_set_logging): New function.
12952 (cli_interp_procs): Install cli_set_logging.
12953 * cli/cli-interp.h (make_logging_output, cli_set_logging):
12954 Declare.
12955 * cli/cli-logging.c (struct saved_output_files, saved_output):
12956 Moved to cli/cli-interp.c.
12957 (pop_output_files): Don't save outputs here.
12958 (make_logging_output): New function.
12959 (handle_redirections): Don't build tee nor save previous outputs
12960 here.
12961 * interps.c (current_interp_set_logging): Change prototype.
12962 Assume there's always a set_logging_proc method installed.
12963 * interps.h (interp_set_logging_ftype): Change prototype.
12964 (current_interp_set_logging): Change prototype and adjust comment.
12965 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
12966 use make_logging_output.
12967 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
129682017-02-02 Pedro Alves <palves@redhat.com>
12969
5be5dbf0
PA
12970 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
12971 from ...
12972 (set_logging_overwrite): ... here.
12973 (logging_no_redirect_file): Delete.
12974 (set_logging_redirect): Don't handle redirection on the fly.
12975 Instead warn that "logging off" / "logging on" is necessary.
12976 (pop_output_files): Delete references to logging_no_redirect_file.
12977 (show_logging_command): Always speak in terms of what will happen
12978 once logging is reenabled.
12979
c99cc448
PA
129802017-02-02 Pedro Alves <palves@redhat.com>
12981
12982 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
12983
8b172ce7
PA
129842017-02-02 Pedro Alves <palves@redhat.com>
12985
12986 * disasm.c (gdb_pretty_print_insn): Rename to ...
12987 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
12988 Remove gdbarch parameter. Adapt to clear the object's buffers
12989 instead of allocating new buffers, and to print using the object's
12990 gdb_disassembler instead of calling gdb_print_insn.
12991 (dump_insns): Use gdb_pretty_print_disassembler.
12992 * disasm.h (gdb_pretty_print_insn): Delete declaration.
12993 (gdb_pretty_print_disassembler): New class.
12994 * record-btrace.c (btrace_insn_history): Use
12995 gdb_pretty_print_disassembler.
12996
d7e74731
PA
129972017-02-02 Pedro Alves <palves@redhat.com>
12998
12999 * ada-lang.c (type_as_string): Use string_file.
13000 * ada-valprint.c (ada_print_floating): Use string_file.
13001 * ada-varobj.c (ada_varobj_scalar_image)
13002 (ada_varobj_get_value_image): Use string_file.
13003 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
13004 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
13005 * breakpoint.c (update_inserted_breakpoint_locations)
13006 (insert_breakpoint_locations, reattach_breakpoints)
13007 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
13008 (print_it_watchpoint): Use string_file.
13009 (save_breakpoints): Use stdio_file.
13010 * c-exp.y (oper): Use string_file.
13011 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
13012 tee_file.
13013 (pop_output_files): Use delete.
13014 (handle_redirections): Use stdio_file and tee_file.
13015 * cli/cli-setshow.c (do_show_command): Use string_file.
13016 * compile/compile-c-support.c (c_compute_program): Use
13017 string_file.
13018 * compile/compile-c-symbols.c (generate_vla_size): Take a
13019 'string_file &' instead of a 'ui_file *'.
13020 (generate_c_for_for_one_variable): Take a 'string_file &' instead
13021 of a 'ui_file *'. Use string_file.
13022 (generate_c_for_variable_locations): Take a 'string_file &'
13023 instead of a 'ui_file *'.
13024 * compile/compile-internal.h (generate_c_for_for_one_variable):
13025 Take a 'string_file &' instead of a 'ui_file *'.
13026 * compile/compile-loc2c.c (push, pushf, unary, binary)
13027 (print_label, pushf_register_address, pushf_register)
13028 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
13029 'ui_file *'. Adjust.
13030 * compile/compile.c (compile_to_object): Use string_file.
13031 * compile/compile.h (compile_dwarf_expr_to_c)
13032 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
13033 'ui_file *'.
13034 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
13035 (replace_typedefs_qualified_name): Use string_file and
13036 obstack_copy0.
13037 * disasm.c (gdb_pretty_print_insn): Use string_file.
13038 (gdb_disassembly): Adjust reference the null_stream global.
13039 (do_ui_file_delete): Delete.
13040 (gdb_insn_length): Use null_stream.
13041 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
13042 * dwarf2loc.c (dwarf2_compile_property_to_c)
13043 (locexpr_generate_c_location, loclist_generate_c_location): Take a
13044 'string_file &' instead of a 'ui_file *'.
13045 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
13046 * dwarf2read.c (do_ui_file_peek_last): Delete.
13047 (dwarf2_compute_name): Use string_file.
13048 * event-top.c (gdb_setup_readline): Use stdio_file.
13049 * gdbarch.sh (verify_gdbarch): Use string_file.
13050 * gdbtypes.c (safe_parse_type): Use null_stream.
13051 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
13052 string_file.
13053 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
13054 'string_file *' instead of a 'ui_file *'.
13055 (gdbscm_arch_disassemble): Use string_file.
13056 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
13057 * guile/scm-ports.c (class ioscm_file_port): Now a class that
13058 inherits from ui_file.
13059 (ioscm_file_port_delete, ioscm_file_port_rewind)
13060 (ioscm_file_port_put): Delete.
13061 (ioscm_file_port_write): Rename to ...
13062 (ioscm_file_port::write): ... this. Remove file_port_magic
13063 checks.
13064 (ioscm_file_port_new): Delete.
13065 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
13066 ui_file_up.
13067 * guile/scm-type.c (tyscm_type_name): Use string_file.
13068 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
13069 Use string_file.
13070 * infcmd.c (print_return_value_1): Use string_file.
13071 * infrun.c (print_target_wait_results): Use string_file.
13072 * language.c (add_language): Use string_file.
13073 * location.c (explicit_to_string_internal): Use string_file.
13074 * main.c (captured_main_1): Use null_file.
13075 * maint.c (maintenance_print_architecture): Use stdio_file.
13076 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
13077 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
13078 event_channel>: Change type to mi_console_file pointer.
13079 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
13080 (mi_console_file_delete): Delete.
13081 (struct mi_console_file): Delete.
13082 (mi_console_file_magic): Delete.
13083 (mi_console_file_new): Delete.
13084 (mi_console_file::mi_console_file): New.
13085 (mi_console_file_delete): Delete.
13086 (mi_console_file_fputs): Delete.
13087 (mi_console_file::write): New.
13088 (mi_console_raw_packet): Delete.
13089 (mi_console_file::flush): New.
13090 (mi_console_file_flush): Delete.
13091 (mi_console_set_raw): Rename to ...
13092 (mi_console_file::set_raw): ... this.
13093 * mi/mi-console.h (class mi_console_file): New class.
13094 (mi_console_file_new, mi_console_set_raw): Delete.
13095 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
13096 (mi_set_logging): Use delete and tee_file. Adjust.
13097 * mi/mi-main.c (output_register): Use string_file.
13098 (mi_cmd_data_evaluate_expression): Use string_file.
13099 (mi_cmd_data_read_memory): Use string_file.
13100 (mi_cmd_execute, print_variable_or_computed): Use string_file.
13101 * mi/mi-out.c (mi_ui_out::main_stream): New.
13102 (mi_ui_out::rewind): Use main_stream and
13103 string_file.
13104 (mi_ui_out::put): Use main_stream and string_file.
13105 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
13106 Allocate a 'string_file' instead.
13107 (mi_out_new): Don't allocate a mem_fileopen stream here.
13108 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
13109 (mi_ui_out::main_stream): Declare method.
13110 * printcmd.c (eval_command): Use string_file.
13111 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
13112 * python/py-arch.c (archpy_disassemble): Use string_file.
13113 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
13114 * python/py-frame.c (frapy_str): Use string_file.
13115 * python/py-framefilter.c (py_print_type, py_print_single_arg):
13116 Use string_file.
13117 * python/py-type.c (typy_str): Use string_file.
13118 * python/py-unwind.c (unwind_infopy_str): Use string_file.
13119 * python/py-value.c (valpy_str): Use string_file.
13120 * record-btrace.c (btrace_insn_history): Use string_file.
13121 * regcache.c (regcache_print): Use stdio_file.
13122 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
13123 * remote.c (escape_buffer): Use string_file.
13124 * rust-lang.c (rust_get_disr_info): Use string_file.
13125 * serial.c (serial_open_ops_1): Use stdio_file.
13126 (do_serial_close): Use delete.
13127 * stack.c (print_frame_arg): Use string_file.
13128 (print_frame_args): Remove local mem_fileopen stream, not used.
13129 (print_frame): Use string_file.
13130 * symmisc.c (maintenance_print_symbols): Use stdio_file.
13131 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
13132 Take a 'string_file *' instead of a 'ui_file *'.
13133 * top.c (new_ui): Use stdio_file and stderr_file.
13134 (free_ui): Use delete.
13135 (execute_command_to_string): Use string_file.
13136 (quit_confirm): Use string_file.
13137 * tracepoint.c (collection_list::append_exp): Use string_file.
13138 * tui/tui-disasm.c (tui_disassemble): Use string_file.
13139 * tui/tui-file.c: Don't include "ui-file.h".
13140 (enum streamtype, struct tui_stream): Delete.
13141 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
13142 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
13143 (tui_file::tui_file): New method.
13144 (tui_file_fputs): Delete.
13145 (tui_file_get_strbuf): Delete.
13146 (tui_file::puts): New method.
13147 (tui_file_adjust_strbuf): Delete.
13148 (tui_file_flush): Delete.
13149 (tui_file::flush): New method.
13150 * tui/tui-file.h: Tweak intro comment.
13151 Include ui-file.h.
13152 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
13153 (tui_file_adjust_strbuf): Delete declarations.
13154 (class tui_file): New class.
13155 * tui/tui-io.c (tui_initialize_io): Use tui_file.
13156 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
13157 (tui_register_format): Use string_stream.
13158 * tui/tui-stack.c (tui_make_status_line): Use string_file.
13159 (tui_get_function_from_frame): Use string_file.
13160 * typeprint.c (type_to_string): Use string_file.
13161 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
13162 (null_stream): New global.
13163 (ui_file_delete): Delete.
13164 (ui_file::ui_file): New.
13165 (null_file_isatty): Delete.
13166 (ui_file::~ui_file): New.
13167 (null_file_rewind): Delete.
13168 (ui_file::printf): New.
13169 (null_file_put): Delete.
13170 (null_file_flush): Delete.
13171 (ui_file::putstr): New.
13172 (null_file_write): Delete.
13173 (ui_file::putstrn): New.
13174 (null_file_read): Delete.
13175 (ui_file::putc): New.
13176 (null_file_fputs): Delete.
13177 (null_file_write_async_safe): Delete.
13178 (ui_file::vprintf): New.
13179 (null_file_delete): Delete.
13180 (null_file::write): New.
13181 (null_file_fseek): Delete.
13182 (null_file::puts): New.
13183 (ui_file_data): Delete.
13184 (null_file::write_async_safe): New.
13185 (gdb_flush, ui_file_isatty): Adjust.
13186 (ui_file_put, ui_file_rewind): Delete.
13187 (ui_file_write): Adjust.
13188 (ui_file_write_for_put): Delete.
13189 (ui_file_write_async_safe, ui_file_read): Adjust.
13190 (ui_file_fseek): Delete.
13191 (fputs_unfiltered): Adjust.
13192 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
13193 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
13194 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
13195 (set_ui_file_data): Delete.
13196 (string_file::~string_file, string_file::write)
13197 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
13198 (do_ui_file_as_string, ui_file_as_string): Delete.
13199 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
13200 (struct mem_file): Delete.
13201 (mem_file_new): Delete.
13202 (stdio_file::stdio_file): New.
13203 (mem_file_delete): Delete.
13204 (stdio_file::stdio_file): New.
13205 (mem_fileopen): Delete.
13206 (stdio_file::~stdio_file): New.
13207 (mem_file_rewind): Delete.
13208 (stdio_file::set_stream): New.
13209 (mem_file_put): Delete.
13210 (stdio_file::open): New.
13211 (mem_file_write): Delete.
13212 (stdio_file_magic, struct stdio_file): Delete.
13213 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
13214 (stdio_file::flush): New.
13215 (stdio_file_read): Rename to ...
13216 (stdio_file::read): ... this. Adjust.
13217 (stdio_file_write): Rename to ...
13218 (stdio_file::write): ... this. Adjust.
13219 (stdio_file_write_async_safe): Rename to ...
13220 (stdio_file::write_async_safe) ... this. Adjust.
13221 (stdio_file_fputs): Rename to ...
13222 (stdio_file::puts) ... this. Adjust.
13223 (stdio_file_isatty): Delete.
13224 (stdio_file_fseek): Delete.
13225 (stdio_file::isatty): New.
13226 (stderr_file_write): Rename to ...
13227 (stderr_file::write) ... this. Adjust.
13228 (stderr_file_fputs): Rename to ...
13229 (stderr_file::puts) ... this. Adjust.
13230 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
13231 (stderr_file::stderr_file): New.
13232 (tee_file_magic): Delete.
13233 (struct tee_file): Delete.
13234 (tee_file::tee_file): New.
13235 (tee_file_new): Delete.
13236 (tee_file::~tee_file): New.
13237 (tee_file_delete): Delete.
13238 (tee_file_flush): Rename to ...
13239 (tee_file::flush): ... this. Adjust.
13240 (tee_file_write): Rename to ...
13241 (tee_file::write): ... this. Adjust.
13242 (tee_file::write_async_safe): New.
13243 (tee_file_fputs): Rename to ...
13244 (tee_file::puts): ... this. Adjust.
13245 (tee_file_isatty): Rename to ...
13246 (tee_file::isatty): ... this. Adjust.
13247 * ui-file.h (struct obstack, struct ui_file): Don't
13248 forward-declare.
13249 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
13250 (ui_file_write_ftype)
13251 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
13252 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
13253 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
13254 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
13255 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
13256 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
13257 (set_ui_file_fseek): Delete.
13258 (ui_file_data, ui_file_delete, ui_file_rewind)
13259 (struct ui_file): New.
13260 (ui_file_up): New.
13261 (class null_file): New.
13262 (null_stream): Declare.
13263 (ui_file_write_for_put, ui_file_put): Delete.
13264 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
13265 Delete.
13266 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
13267 (gdb_fopen, tee_file_new): Delete.
13268 (struct string_file): New.
13269 (struct stdio_file): New.
13270 (stdio_file_up): New.
13271 (struct stderr_file): New.
13272 (class tee_file): New.
13273 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
13274 of a 'ui_file *'. Adjust.
13275 * ui-out.h (class ui_out) <field_stream>: Likewise.
13276 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
13277 (null_stream): Delete.
13278 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
13279 Adjust.
13280 * utils.h (struct ui_file): Delete forward declaration..
13281 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
13282 (error_stream): Take a 'string_file &' instead of a
13283 'ui_file *'.
13284 * varobj.c (varobj_value_get_print_value): Use string_file.
13285 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
13286 * gdbarch.c: Regenerate.
13287
187808b0
PA
132882017-02-02 Pedro Alves <palves@redhat.com>
13289
13290 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
13291 (gdb_pretty_print_insn): ... this. Now a free function. Add back
13292 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
13293 Adjust to call gdb_print_insn instead of
13294 gdb_disassembler::print_insn.
13295 (dump_insns, do_mixed_source_and_assembly_deprecated)
13296 (do_mixed_source_and_assembly, do_assembly_only): Add back a
13297 'gdbarch' parameter. Remove gdb_disassembler parameter.
13298 (gdb_disassembly): Don't allocate a gdb_disassembler here.
13299 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
13300 declaration.
13301 (gdb_pretty_print_insn): Re-add declaration.
13302 * record-btrace.c (btrace_insn_history): Don't allocate a
13303 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
13304
7a8eb317
SM
133052017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
13306
13307 * disasm.h (gdb_disassembly): Remove file_string parameter.
13308 * disasm.c (gdb_disassembly): Likewise.
13309 * cli/cli-cmds.c (print_disassembly): Adapt.
13310 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
13311 * stack.c (do_gdb_disassembly): Likewise.
13312
7346ef59
AA
133132017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
13314
13315 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
13316 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
13317 targets. And if the implicit value is longer than needed, extract
13318 the first bytes instead of the "least significant" ones.
13319
cd4007e4
MM
133202017-02-01 Markus Metzger <markus.t.metzger@intel.com>
13321
13322 * btrace.c (btrace_enable): Do not call btrace_add_pc for
13323 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
13324 (btrace_fetch): Assert can_access_registers_ptid.
13325 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
13326 validate_registers_access.
13327
cf77c34e
MM
133282017-02-01 Markus Metzger <markus.t.metzger@intel.com>
13329
13330 * gdbthread.h (can_access_registers_ptid): New.
13331 * thread.c (can_access_registers_ptid): New.
13332
be85ce7d
PA
133332017-02-01 Pedro Alves <palves@redhat.com>
13334
13335 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
13336
29b0b251
PA
133372017-01-31 Pedro Alves <palves@redhat.com>
13338
13339 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
13340 Fix typos.
13341
289b5b24
PA
133422017-01-31 Pedro Alves <palves@redhat.com>
13343
13344 * stack.c (print_frame_args): Remove local mem_fileopen stream,
13345 not used.
13346
b47413b4
PA
133472017-01-31 Pedro Alves <palves@redhat.com>
13348
13349 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
13350
60adb36c
PA
133512017-01-31 Pedro Alves <palves@redhat.com>
13352
13353 * common/scoped_restore.h
13354 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
13355 change the value's parameter type to T2.
13356 (make_scoped_restore): Likewise.
13357
2735833d
WT
133582017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13359 Richard Henderson <rth@redhat.com>
13360
13361 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
13362 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
13363 GS_BASE for older kernels.
13364 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
13365 GS_BASE for older kernels.
13366 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
13367 and GS_BASE to the offset table.
13368 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
13369 system register group.
13370 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
13371 for older kernels.
13372 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
13373 amd64 ABI.
13374 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
13375 AMD64_GSBASE_REGNUM.
13376 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
13377 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
13378 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
13379 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
13380 i386/64bit-segments.xml in those rules.
13381 * features/i386/64bit-segments.xml: New file.
13382 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
13383 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
13384 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
13385 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
13386 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
13387 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
13388 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
13389 * features/i386/amd64-avx-linux.c: Regenerated.
13390 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
13391 * features/i386/amd64-avx-mpx.c: Regenerated.
13392 * features/i386/amd64-avx512-linux.c: Regenerated.
13393 * features/i386/amd64-linux.c: Regenerated.
13394 * features/i386/amd64-mpx-linux.c: Regenerated.
13395 * features/i386/i386-avx-mpx-linux.c: Regenerated.
13396 * features/i386/i386-avx-mpx.c: Regenerated.
13397 * features/i386/x32-avx-linux.c: Regenerated.
13398 * features/i386/x32-avx512-linux.c: Regenerated.
13399 * regformats/i386/amd64-avx-linux.dat: Regenerated.
13400 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
13401 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
13402 * regformats/i386/amd64-linux.dat: Regenerated.
13403 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
13404 * regformats/i386/x32-avx-linux.dat: Regenerated.
13405 * regformats/i386/x32-avx512-linux.dat: Regenerated.
13406 * regformats/i386/x32-linux.dat: Regenerated.
13407
8884e97e
WT
134082017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13409
13410 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
13411 Set to AMD64_NUM_REGS.
13412
7005d26a
WT
134132017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13414
13415 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
13416 that checks validity of a register number.
13417
4bd2e1b2
KC
134182017-01-27 Kees Cook <keescook@google.com>
13419
13420 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
13421 fetch_fpregs if target has fpa registers.
13422 (arm_linux_store_inferior_registers): Call store_fpregs if target
13423 has fpa registers.
13424
7cf1de6c
AA
134252017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
13426
13427 * cris-tdep.c (cris_gdbarch_init): Remove check for
13428 info.byte_order and force it to BFD_ENDIAN_LITTLE.
13429
874a1c8c
AT
134302017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
13431
13432 * corelow.c (get_core_register_section): Check for regset
13433 existence before checking for REGSET_VARIABLE_SIZE.
13434
d8b49cf0
YQ
134352017-01-26 Yao Qi <yao.qi@linaro.org>
13436 Pedro Alves <palves@redhat.com>
13437
13438 PR gdb/20939
13439 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
13440 call memory_error, save memaddr instead.
13441 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
13442 negative, cal memory_error.
13443 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
13444
658ca58c
YQ
134452017-01-26 Yao Qi <yao.qi@linaro.org>
13446
13447 * disasm-selftests.c (memory_error_test): New function.
13448 (_initialize_disasm_selftests): Register memory_error_test.
13449
79843d45
YQ
134502017-01-26 Yao Qi <yao.qi@linaro.org>
13451
13452 * Makefile.in (SFILES): Add disasm-selftests.c and
13453 selftest-arch.c.
13454 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
13455 * disasm-selftests.c: New file.
13456 * selftest-arch.c: New file.
13457 * selftest-arch.h: New file.
13458
8cafda32
YQ
134592017-01-26 Yao Qi <yao.qi@linaro.org>
13460
13461 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
13462 to bfd_arch_mep. Don't return 0 if section is not
13463 found. Call print_insn_mep.
13464
e47ad6c0
YQ
134652017-01-26 Pedro Alves <palves@redhat.com>
13466 Yao Qi <yao.qi@linaro.org>
13467
13468 * arm-tdep.c: Include "disasm.h".
13469 (gdb_print_insn_arm): Update code to get gdbarch.
13470 * disasm.c (dis_asm_read_memory): Change it to
13471 gdb_disassembler::dis_asm_read_memory.
13472 (dis_asm_memory_error): Likewise.
13473 (dis_asm_print_address): Likewise.
13474 (gdb_pretty_print_insn): Change it to
13475 gdb_disassembler::pretty_print_insn.
13476 (dump_insns): Add one argument gdb_disassemlber. All
13477 callers updated.
13478 (do_mixed_source_and_assembly_deprecated): Likewise.
13479 (do_mixed_source_and_assembly): Likewise.
13480 (do_assembly_only): Likewise.
13481 (gdb_disassembler::gdb_disassembler): New.
13482 (gdb_disassembler::print_insn): New.
13483 * disasm.h (class gdb_disassembler): New.
13484 (gdb_pretty_print_insn): Remove declaration.
13485 (gdb_disassemble_info): Likewise.
13486 * guile/scm-disasm.c (class gdbscm_disassembler): New.
13487 (gdbscm_disasm_read_memory_worker): Update.
13488 (gdbscm_disasm_read_memory): Update.
13489 (gdbscm_disasm_memory_error): Remove.
13490 (gdbscm_disasm_print_address): Remove.
13491 (gdbscm_disassembler::gdbscm_disassembler): New.
13492 (gdbscm_print_insn_from_port): Update.
13493 * mips-tdep.c: Include disasm.h.
13494 (gdb_print_insn_mips): Update code to get gdbarch.
13495 * record-btrace.c (btrace_insn_history): Update.
13496 * spu-tdep.c: Include disasm.h.
13497 (struct spu_dis_asm_data): Remove.
13498 (struct spu_dis_asm_info): New.
13499 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
13500 SPU id.
13501 (gdb_print_insn_spu): Cast disassemble_info to
13502 spu_dis_asm_info.
13503
80d75874
YQ
135042017-01-26 Yao Qi <yao.qi@linaro.org>
13505
13506 * disasm.c (do_ui_file_delete): Delete.
13507 (gdb_insn_length): Move code creating stream to ...
13508 * utils.c (null_stream): ... here. New function.
13509 * utils.h (null_stream): Declare.
13510
60685cd0
SM
135112017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13512
13513 * python/py-inferior.c (find_thread_object): Return directly
13514 from the loop. Remove "found" variable.
13515
eb1cdb62
JB
135162017-01-21 Joel Brobecker <brobecker@adacore.com>
13517
13518 GDB 7.12.1 released.
13519
b1ce6568
SM
135202017-01-20 Simon Marchi <simon.marchi@ericsson.com>
13521
13522 * python/py-function.c (fnpy_call): Reorder declarations to have
13523 the gdbpy_enter object declared first.
13524 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
13525
6f8b0407
SM
135262017-01-20 Simon Marchi <simon.marchi@ericsson.com>
13527
fec93fb1 13528 PR python/21068
6f8b0407
SM
13529 * python/python-internal.h (PyMem_RawMalloc): Define for
13530 Python < 3.4.
13531 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
13532 PyMem_RawMalloc instead of PyMem_Malloc.
13533
78cbbba8
LM
135342017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
13535 Luis Machado <lgustavo@codesourcery.com>
13536
13537 * NEWS (New commands): Mention flash-erase.
13538 (New MI commands): Mention target-flash-erase.
13539 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
13540 command.
13541 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
13542 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
13543 * target.c (flash_erase_command): New function.
13544 (initialize_targets): Add new flash-erase command.
13545 * target.h (flash_erase_command): New declaration.
13546
2132fe85
JB
135472017-01-20 Joel Brobecker <brobecker@adacore.com>
13548
13549 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
13550 HAVE_SYS_PROCFS_H is defined.
13551
d1dff226
AH
135522017-01-18 Alan Hayward <alan.hayward@arm.com>
13553
13554 * remote.c (struct cached_reg): Change data into a pointer.
13555 * (stop_reply_dtr): Free data pointers before deleting vector.
13556 (process_stop_reply): Likewise.
13557 (remote_parse_stop_reply): Allocate space for data
13558
9890e433
AH
135592017-01-18 Alan Hayward <alan.hayward@arm.com>
13560
13561 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
13562 MAX_REGISTER_SIZE.
13563 (amd64_pseudo_register_read_value): Likewise.
13564 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
13565 (store_register_using_P): Likewise.
13566 * regcache.c (regcache_xfer_part): Likewise.
13567
7a36499a
IR
135682017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
13569
13570 Split real and pseudo registers.
13571 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
13572 (sparc32_pseudo_regnum): New enum.
13573 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
13574 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
13575 (SPARC32_CP0_REGISTERS): New macro.
13576 (sparc32_pseudo_register_name): New function.
13577 (sparc32_register_name): Use sparc32_pseudo_register_name.
13578 (sparc32_pseudo_register_type): New function.
13579 (sparc32_register_type): Use sparc32_pseudo_register_type.
13580 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
13581 pseudo register numbers.
13582 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
13583 (SPARC64_CP0_REGISTERS): New macro.
13584 (sparc64_pseudo_register_name): New function.
13585 (sparc64_register_name): Use sparc64_pseudo_register_name.
13586 (sparc64_pseudo_register_type): New function.
13587 (sparc64_register_type): Use sparc64_pseudo_register_type.
13588 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
13589 pseudo register numbers.
13590 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
13591 sparc64_store_arguments): Handle pseudo register numbers.
13592
6f8976bf
YQ
135932017-01-13 Yao Qi <yao.qi@linaro.org>
13594
13595 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
13596 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
13597 output.
13598 (getpkt_or_notif_sane_1): Likewise.
13599
e4241ace
YQ
136002017-01-13 Yao Qi <yao.qi@linaro.org>
13601
13602 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
13603 of CC. Pass "-x c++-header" instead of "-x c".
13604
3015c064
SM
136052017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13606
13607 * remote.c (remote_can_async_p): Update comment.
13608
fde1b17d
SM
136092017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13610
13611 * linux-nat.c (linux_nat_can_async_p): Update comment.
13612
ca1ca08b
SM
136132017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13614
13615 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
13616
4ad2da73
SM
136172017-01-11 Simon Marchi <simon.marchi@ericsson.com>
13618
13619 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
13620
c8b23b3f
TT
136212017-01-10 Tom Tromey <tom@tromey.com>
13622
13623 * python/py-type.c (typy_legacy_template_argument): Update.
13624 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
13625 ~demangle_parse_info): Declare new members.
13626 (cp_demangled_name_to_comp): Return unique_ptr.
13627 (cp_demangled_name_parse_free)
13628 (make_cleanup_cp_demangled_name_parse_free)
13629 (cp_new_demangle_parse_info): Remove.
13630 * cp-support.c (do_demangled_name_parse_free_cleanup)
13631 (make_cleanup_cp_demangled_name_parse_free): Remove.
13632 (inspect_type, cp_canonicalize_string_full)
13633 (cp_canonicalize_string): Update.
13634 (mangled_name_to_comp): Change return type.
13635 (cp_class_name_from_physname, method_name_from_physname)
13636 (cp_func_name, cp_remove_params): Update.
13637 * cp-name-parser.y (demangle_parse_info): New constructor, from
13638 cp_new_demangle_parse_info.
13639 (~demangle_parse_info): New destructor, from
13640 cp_demangled_name_parse_free.
13641 (cp_merge_demangle_parse_infos): Update.
13642 (cp_demangled_name_to_comp): Change return type.
13643
1ac32117
TT
136442017-01-10 Tom Tromey <tom@tromey.com>
13645
13646 * top.c (prevent_dont_repeat): Change return type.
13647 * python/python.c (execute_gdb_command): Use std::string.
13648 Update.
13649 * guile/guile.c (gdbscm_execute_gdb_command): Update.
13650 * command.h (prevent_dont_repeat): Change return type.
13651 * breakpoint.c (bpstat_do_actions_1): Update.
13652
0cf08227
TT
136532017-01-10 Tom Tromey <tom@tromey.com>
13654
13655 * value.h (scoped_value_mark::~scoped_value_mark): Call
13656 free_to_mark.
13657 (scoped_value_mark::free_to_mark): New method.
13658 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
13659 scoped_value_mark.
13660
eb115069
TT
136612017-01-10 Tom Tromey <tom@tromey.com>
13662
13663 * python/py-value.c (valpy_dereference, valpy_referenced_value)
13664 (valpy_reference_value, valpy_const_value, valpy_get_address)
13665 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
13666 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
13667 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
13668 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
13669 scoped_value_mark.
13670 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
13671 * value.h (scoped_value_mark): New class.
13672
906768f9
TT
136732017-01-10 Tom Tromey <tom@tromey.com>
13674
13675 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
13676 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
13677 * psymtab.c (discard_psymtabs_upto): Remove.
13678 (make_cleanup_discard_psymtabs): Remove.
13679 (struct psymtab_state): Remove.
13680
bef155c3
TT
136812017-01-10 Tom Tromey <tom@tromey.com>
13682
13683 * record-full.c (record_full_save_cleanups): Remove.
13684 (record_full_save): Use gdb::unlinker.
13685 * gcore.c (do_bfd_delete_cleanup): Remove.
13686 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
13687 cleanups.
13688 * dwarf2read.c (unlink_if_set): Remove.
13689 (write_psymtabs_to_index): Use gdb::unlinker.
13690 * common/gdb_unlinker.h: New file.
13691
192b62ce
TT
136922017-01-10 Tom Tromey <tom@tromey.com>
13693
13694 * windows-tdep.c (windows_xfer_shared_library): Update.
13695 * windows-nat.c (windows_make_so): Update.
13696 * utils.h (make_cleanup_bfd_unref): Remove.
13697 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
13698 * symfile.h (symfile_bfd_open)
13699 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
13700 * symfile.c (read_symbols, symbol_file_add)
13701 (separate_debug_file_exists): Update.
13702 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
13703 (generic_load, reread_symbols): Update.
13704 * symfile-mem.c (symbol_file_add_from_memory): Update.
13705 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
13706 (spu_symbol_file_add_from_memory): Update.
13707 * solist.h (struct target_so_ops) <bfd_open>: Return
13708 gdb_bfd_ref_ptr.
13709 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
13710 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
13711 gdb_bfd_ref_ptr.
13712 (solib_map_sections, reload_shared_libraries_1): Update.
13713 * solib-svr4.c (enable_break): Update.
13714 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
13715 * solib-frv.c (enable_break2): Update.
13716 * solib-dsbt.c (enable_break): Update.
13717 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
13718 gdb_bfd_ref_ptr.
13719 (darwin_solib_get_all_image_info_addr_at_init): Update.
13720 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
13721 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
13722 * record-full.c (record_full_save): Update.
13723 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
13724 * procfs.c (insert_dbx_link_bpt_in_file): Update.
13725 * minidebug.c (find_separate_debug_file_in_section): Return
13726 gdb_bfd_ref_ptr.
13727 * machoread.c (macho_add_oso_symfile): Change abfd to
13728 gdb_bfd_ref_ptr.
13729 (macho_symfile_read_all_oso): Update.
13730 (macho_check_dsym): Return gdb_bfd_ref_ptr.
13731 (macho_symfile_read): Update.
13732 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
13733 (jit_bfd_try_read_symtab): Update.
13734 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
13735 (gdb_bfd_openw, gdb_bfd_openr_iovec)
13736 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
13737 gdb_bfd_ref_ptr.
13738 (gdb_bfd_ref_policy): New struct.
13739 (gdb_bfd_ref_ptr): New typedef.
13740 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
13741 (gdb_bfd_openw, gdb_bfd_openr_iovec)
13742 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
13743 gdb_bfd_ref_ptr.
13744 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
13745 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
13746 (gcore_command): Update.
13747 * exec.c (exec_file_attach): Update.
13748 * elfread.c (elf_symfile_read): Update.
13749 * dwarf2read.c (dwarf2_get_dwz_file): Update.
13750 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
13751 (open_and_init_dwo_file): Update.
13752 (open_dwp_file): Return gdb_bfd_ref_ptr.
13753 (open_and_init_dwp_file): Update.
13754 * corelow.c (core_open): Update.
13755 * compile/compile-object-load.c (compile_object_load): Update.
13756 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
13757 * coffread.c (coff_symfile_read): Update.
13758 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
13759 gdb_bfd_ref_ptr. Rename.
13760 (dump_bfd_file, restore_command): Update.
13761 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
13762 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
13763 (find_separate_debug_file_by_buildid): Update.
13764
50315b21
TT
137652017-01-10 Tom Tromey <tom@tromey.com>
13766
13767 * common/gdb_ref_ptr.h: New file.
13768 * python/py-ref.h (struct gdbpy_ref_policy): New.
13769 (gdbpy_ref): Now a typedef.
13770
fc4007c9
TT
137712017-01-10 Tom Tromey <tom@tromey.com>
13772
13773 * utils.h (make_cleanup_htab_delete): Don't declare.
13774 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
13775 Remove.
13776 * linespec.c (decode_compound_collector): Add constructor,
13777 destructor.
13778 (lookup_prefix_sym): Remove cleanup.
13779 (symtab_collector): Add constructor, destructor.
13780 (collect_symtabs_from_filename): Remove cleanup.
13781 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
13782 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
13783 Use htab_up.
13784 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
13785 * dwarf2read.c (dw2_expand_symtabs_matching)
13786 (dw2_map_symbol_filenames, dwarf_decode_macros)
13787 (write_psymtabs_to_index): Use htab_up.
13788 * dwarf2loc.c (func_verify_no_selftailcall)
13789 (call_site_find_chain_1, func_verify_no_selftailcall)
13790 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
13791 std::vector, gdb::unique_xmalloc_ptr.
13792 (call_sitep): Remove typedef.
13793 (dwarf2_locexpr_baton_eval): Remove unused variable.
13794
8dbcee67
TT
137952017-01-10 Tom Tromey <tom@tromey.com>
13796
13797 * python/python-internal.h (make_cleanup_py_decref)
13798 (make_cleanup_py_xdecref): Don't declare.
13799 * python/py-utils.c (py_decref, make_cleanup_py_decref)
13800 (py_xdecref, make_cleanup_py_xdecref): Remove.
13801
13df46cc
TT
138022017-01-10 Tom Tromey <tom@tromey.com>
13803
13804 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
13805 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
13806
06fc9bf7
TT
138072017-01-10 Tom Tromey <tom@tromey.com>
13808
13809 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
13810
830a4934
TT
138112017-01-10 Tom Tromey <tom@tromey.com>
13812
13813 * python/py-utils.c (unicode_to_encoded_string)
13814 (python_string_to_target_string)
13815 (python_string_to_target_python_string)
13816 (python_string_to_host_string, gdbpy_obj_to_string)
13817 (get_addr_from_python): Use gdbpy_ref.
13818
4586d543
TT
138192017-01-10 Tom Tromey <tom@tromey.com>
13820
13821 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
13822 gdbpy_ref.
13823
59876f8f
TT
138242017-01-10 Tom Tromey <tom@tromey.com>
13825
13826 * python/python.c (eval_python_command, gdbpy_decode_line)
13827 (gdbpy_run_events, gdbpy_start_type_printers)
13828 (gdbpy_apply_type_printers): Use gdbpy_ref.
13829
97d83487
TT
138302017-01-10 Tom Tromey <tom@tromey.com>
13831
13832 * python/py-param.c (get_doc_string, compute_enum_values): Use
13833 gdbpy_ref.
13834
9205649a
TT
138352017-01-10 Tom Tromey <tom@tromey.com>
13836
13837 * python/py-inferior.c (find_thread_object, build_inferior_list):
13838 Use gdbpy_ref.
13839
74c49d45
TT
138402017-01-10 Tom Tromey <tom@tromey.com>
13841
13842 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
13843
16361ffb
TT
138442017-01-10 Tom Tromey <tom@tromey.com>
13845
13846 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
13847 gdbpy_ref.
13848
905f2cca
TT
138492017-01-10 Tom Tromey <tom@tromey.com>
13850
13851 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
13852 extra incref.
13853 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
13854 Use gdbpy_ref.
13855
64081434
TT
138562017-01-10 Tom Tromey <tom@tromey.com>
13857
13858 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
13859 gdbpy_ref.
13860
59e9e831
TT
138612017-01-10 Tom Tromey <tom@tromey.com>
13862
13863 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
13864 decref results of PyArg_ParseTupleAndKeywords.
13865
9de10f6d
TT
138662017-01-10 Tom Tromey <tom@tromey.com>
13867
13868 * python/python.c (python_run_simple_file): Use
13869 unique_xmalloc_ptr, gdbpy_ref.
13870
2bd5759d
TT
138712017-01-10 Tom Tromey <tom@tromey.com>
13872
13873 * python/py-prettyprint.c (print_stack_unless_memory_error)
13874 (print_string_repr, print_children): Use gdbpy_ref.
13875 (dummy_python_frame): New class.
13876 (dummy_python_frame::dummy_python_frame): Rename from
13877 push_dummy_python_frame.
13878 (py_restore_tstate): Remove.
13879
3b4e0e01
TT
138802017-01-10 Tom Tromey <tom@tromey.com>
13881
13882 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
13883
17a22718
TT
138842017-01-10 Tom Tromey <tom@tromey.com>
13885
13886 * python/python.c (ensure_python_env, restore_python_env):
13887 Remove.
13888 * python/python-internal.h (ensure_python_env): Don't declare.
13889 * varobj.h (varobj_ensure_python_env): Don't declare.
13890 * varobj.c (varobj_ensure_python_env): Remove.
13891
68cdc557
TT
138922017-01-10 Tom Tromey <tom@tromey.com>
13893
13894 * varobj.c (varobj_value_get_print_value): Use
13895 gdbpy_enter_varobj.
13896
1eba6383
TT
138972017-01-10 Tom Tromey <tom@tromey.com>
13898
13899 * python/py-prettyprint.c (print_string_repr, print_children):
13900 Update.
13901 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
13902 of "encoding".
13903 * varobj.c (varobj_value_get_print_value): Update.
13904 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
13905
bde7b3e3
TT
139062017-01-10 Tom Tromey <tom@tromey.com>
13907
13908 * varobj.c (varobj_get_display_hint)
13909 (dynamic_varobj_has_child_method, install_new_value_visualizer)
13910 (varobj_set_visualizer, free_variable): Use
13911 gdbpy_enter_varobj.
13912
a7785f8c
TT
139132017-01-10 Tom Tromey <tom@tromey.com>
13914
13915 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
13916 (do_finish_initialization): New function. Use gdbpy_ref.
13917 (gdbpy_finish_initialization): Use gdbpy_enter. Call
13918 do_finish_initialization.
13919
2865bfce
TT
139202017-01-10 Tom Tromey <tom@tromey.com>
13921
13922 * python/py-param.c (get_set_value, get_show_value): Use
13923 gdbpy_enter, gdbpy_ref.
13924
0e9dcc75
TT
139252017-01-10 Tom Tromey <tom@tromey.com>
13926
13927 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
13928
12a5cedd
TT
139292017-01-10 Tom Tromey <tom@tromey.com>
13930
13931 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
13932
788f2586
TT
139332017-01-10 Tom Tromey <tom@tromey.com>
13934
13935 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
13936 Use gdbpy_enter_varobj.
13937
6cd67bea
TT
139382017-01-10 Tom Tromey <tom@tromey.com>
13939
13940 * varobj.c (gdbpy_enter_varobj): New constructor.
13941 * python/python-internal.h (gdbpy_enter_varobj): New class.
13942 * python/py-varobj.c (py_varobj_get_iterator): Use
13943 gdbpy_enter_varobj.
13944
14b122bf
TT
139452017-01-10 Tom Tromey <tom@tromey.com>
13946
13947 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
13948 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
13949 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
13950 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
13951 unique_xmalloc_ptr.
13952 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
13953
bf1ca3b9
TT
139542017-01-10 Tom Tromey <tom@tromey.com>
13955
13956 * python/py-xmethods.c (invoke_match_method): Use
13957 gdbpy_ref.
13958
572a5524
TT
139592017-01-10 Tom Tromey <tom@tromey.com>
13960
13961 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
13962 gdbpy_enter, gdbpy_ref.
13963
396a78b6
TT
139642017-01-10 Tom Tromey <tom@tromey.com>
13965
13966 * python/python.c (python_interactive_command): Use gdbpy_enter.
13967
a88b13c7
TT
139682017-01-10 Tom Tromey <tom@tromey.com>
13969
13970 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
13971 gdbpy_ref.
13972
e9f0c363
TT
139732017-01-10 Tom Tromey <tom@tromey.com>
13974
13975 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
13976 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
13977
6349f452
TT
139782017-01-10 Tom Tromey <tom@tromey.com>
13979
13980 * utils.h (htab_deleter): New struct.
13981 (htab_up): New typedef.
13982 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
13983 gdbpy_enter, gdbpy_ref, htab_up.
13984
c0171de6
TT
139852017-01-10 Tom Tromey <tom@tromey.com>
13986
13987 * python/py-unwind.c (pending_frame_invalidate): Remove.
13988 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
13989
f18e226f
TT
139902017-01-10 Tom Tromey <tom@tromey.com>
13991
13992 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
13993 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
13994
c57af3f1
TT
139952017-01-10 Tom Tromey <tom@tromey.com>
13996
13997 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
13998
60e600ec
TT
139992017-01-10 Tom Tromey <tom@tromey.com>
14000
14001 * python/python.c (gdbpy_eval_from_control_command)
14002 (gdbpy_source_script, gdbpy_run_events)
14003 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
14004 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
14005 gdbpy_enter.
14006
bf7da5b0
TT
140072017-01-10 Tom Tromey <tom@tromey.com>
14008
14009 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
14010
2d38bced
TT
140112017-01-10 Tom Tromey <tom@tromey.com>
14012
14013 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
14014
07bc7329
TT
140152017-01-10 Tom Tromey <tom@tromey.com>
14016
14017 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
14018 (python_on_inferior_call_pre, python_on_inferior_call_post)
14019 (python_on_memory_change, python_on_register_change)
14020 (python_inferior_exit, python_new_objfile, add_thread_object)
14021 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
14022
6e7c365e
TT
140232017-01-10 Tom Tromey <tom@tromey.com>
14024
14025 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
14026 (bpfinishpy_handle_exit): Use gdbpy_enter.
14027
6ba0cd40
TT
140282017-01-10 Tom Tromey <tom@tromey.com>
14029
14030 * python/py-cmd.c (cmdpy_destroyer)
14031 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
14032 gdbpy_enter.
14033
de2dc875
TT
140342017-01-10 Tom Tromey <tom@tromey.com>
14035
14036 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
14037 gdbpy_enter.
14038 (gdbpy_breakpoint_has_cond): Likewise.
14039
4ecee2c4
TT
140402017-01-10 Tom Tromey <tom@tromey.com>
14041
14042 * python/python.c (gdbpy_enter): New constructor.
14043 (~gdbpy_enter): New destructor.
14044 (restore_python_env, ensure_python_env): Rewrite.
14045 * python/python-internal.h (gdbpy_enter): New class.
14046
37fce74f
TT
140472017-01-10 Tom Tromey <tom@tromey.com>
14048
14049 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
14050
53a0cca3
TT
140512017-01-10 Tom Tromey <tom@tromey.com>
14052
14053 * python/py-value.c (value_has_field, get_field_flag)
14054 (get_field_type, valpy_getitem, convert_value_from_python): Use
14055 gdbpy_ref.
14056
ff3724f5
TT
140572017-01-10 Tom Tromey <tom@tromey.com>
14058
14059 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
14060 gdbpy_ref.
14061
0700aea5
TT
140622017-01-10 Tom Tromey <tom@tromey.com>
14063
14064 * python/py-prettyprint.c (search_pp_list)
14065 (find_pretty_printer_from_objfiles)
14066 (find_pretty_printer_from_progspace)
14067 (find_pretty_printer_from_gdb, find_pretty_printer)
14068 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
14069 gdbpy_ref.
14070
1bb44c9f
TT
140712017-01-10 Tom Tromey <tom@tromey.com>
14072
14073 * python/py-param.c (call_doc_function): Use gdbpy_ref.
14074
87ce03fd
TT
140752017-01-10 Tom Tromey <tom@tromey.com>
14076
14077 * python/py-linetable.c (build_line_table_tuple_from_pcs)
14078 (ltpy_get_all_source_lines): Use gdbpy_ref.
14079
ee0a3fb8
TT
140802017-01-10 Tom Tromey <tom@tromey.com>
14081
14082 * python/py-framefilter.c (extract_sym, extract_value)
14083 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
14084 gdbpy_ref.
14085
bf2a52fa
TT
140862017-01-10 Tom Tromey <tom@tromey.com>
14087
14088 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
14089
f59fe7f8
TT
140902017-01-10 Tom Tromey <tom@tromey.com>
14091
14092 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
14093
80bd970a
TT
140942017-01-10 Tom Tromey <tom@tromey.com>
14095
14096 * python/py-function.c (convert_values_to_python, fnpy_init): Use
14097 gdbpy_ref.
14098
d1b3de2e
TT
140992017-01-10 Tom Tromey <tom@tromey.com>
14100
14101 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
14102
3bb43384
TT
141032017-01-10 Tom Tromey <tom@tromey.com>
14104
14105 * python/py-type.c (convert_field, make_fielditem, typy_fields)
14106 (typy_range): Use gdbpy_ref.
14107
abf5651e
TT
141082017-01-10 Tom Tromey <tom@tromey.com>
14109
14110 * python/py-threadevent.c (create_thread_event_object): Use
14111 gdbpy_ref.
14112 * python/py-stopevent.c (create_stop_event_object): Simplify.
14113 (emit_stop_event): Use gdbpy_ref.
14114 * python/py-signalevent.c (create_signal_event_object): Use
14115 gdbpy_ref.
14116 * python/py-newobjfileevent.c (create_new_objfile_event_object)
14117 (emit_new_objfile_event, create_clear_objfiles_event_object)
14118 (emit_clear_objfiles_event): Use gdbpy_ref.
14119 * python/py-infevents.c (create_inferior_call_event_object)
14120 (create_register_changed_event_object)
14121 (create_memory_changed_event_object, emit_inferior_call_event)
14122 (emit_memory_changed_event, emit_register_changed_event): Use
14123 gdbpy_ref.
14124 * python/py-exitedevent.c (create_exited_event_object)
14125 (emit_exited_event): Use gdbpy_ref.
14126 * python/py-event.h (evpy_emit_event): Remove
14127 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
14128 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
14129 * python/py-continueevent.c (emit_continue_event): Use
14130 gdbpy_ref.
14131 * python/py-breakpoint.c (gdbpy_breakpoint_created)
14132 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
14133 gdbpy_ref.
14134 * python/py-bpevent.c (create_breakpoint_event_object): Use
14135 gdbpy_ref.
14136
a68ff33e
TT
141372017-01-10 Tom Tromey <tom@tromey.com>
14138
14139 * python/py-ref.h: New file.
14140
7becfd03
SM
141412017-01-10 Simon Marchi <simon.marchi@ericsson.com>
14142
14143 * cli-out.c (cli_ui_out::do_redirect): Change return type to
14144 void.
14145 * cli-out.h (cli_ui_out::do_redirect): Likewise.
14146 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
14147 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
14148 * ui-out.c (ui_out::redirect): Likewise.
14149 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
14150 * cli/cli-logging.c (set_logging_redirect): Update call site of
14151 ui_out::redirect.
14152 (handle_redirections): Likewise.
14153 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
14154 * top.c (execute_command_to_string): Likewise.
14155 * utils.c (do_ui_out_redirect_pop): Likewise.
14156
df294654
SM
141572017-01-10 Simon Marchi <simon.marchi@ericsson.com>
14158
14159 * stack.c (_initialize_stack): Update "frame" command help message.
14160
f5e6296e
IB
141612017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
14162
14163 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
14164
0e2d6fa6
YQ
141652017-01-06 Yao Qi <yao.qi@linaro.org>
14166
14167 * x86-linux-nat.h: Include gdb_proc_service.h.
14168
44d6d3f9
YQ
141692017-01-06 Yao Qi <yao.qi@linaro.org>
14170
14171 * ser-base.h: Include serial.h.
14172
656731fe
YQ
141732017-01-06 Yao Qi <yao.qi@linaro.org>
14174
14175 * ppc-linux-tdep.h: Include ppc-tdep.h.
14176
1ca8f924
YQ
141772017-01-06 Yao Qi <yao.qi@linaro.org>
14178
14179 * nat/amd64-linux-siginfo.h: Include signal.h.
14180
bc3008c4
YQ
141812017-01-06 Yao Qi <yao.qi@linaro.org>
14182
14183 * nat/aarch64-linux-hw-point.h: Include break-common.h.
14184
66c80d03
YQ
141852017-01-06 Yao Qi <yao.qi@linaro.org>
14186
14187 * mi/mi-parse.h: Include mi-cmds.h.
14188
051d2dda
YQ
141892017-01-06 Yao Qi <yao.qi@linaro.org>
14190
14191 * inf-loop.c: Don't include "target.h".
14192 * inf-loop.h: Include it here.
14193
8018d34f
YQ
141942017-01-06 Yao Qi <yao.qi@linaro.org>
14195
14196 * dfp.h: Include "dboulest.h" and "expression.h".
14197
c0b8369c
YQ
141982017-01-06 Yao Qi <yao.qi@linaro.org>
14199
14200 * ax-gdb.h: Include "ax.h".
14201
ad5cba2a
YQ
142022017-01-06 Yao Qi <yao.qi@linaro.org>
14203
14204 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
14205 with nat/gdb_ptrace.h.
14206
1c33cd7f
YQ
142072017-01-05 Yao Qi <yao.qi@linaro.org>
14208
14209 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
14210 new line.
14211 (mips64_fbsd_sigframe_init): Likewise.
14212
c988ac1d
JB
142132017-01-04 John Baldwin <jhb@FreeBSD.org>
14214
14215 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
14216 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
14217
b268007c
JB
142182017-01-04 John Baldwin <jhb@FreeBSD.org>
14219
14220 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
14221 * NEWS: Mention new FreeBSD/mips native configuration.
14222 * config/mips/fbsd.mh: New file.
14223 * configure.host: Add mips*-*-freebsd*.
14224 * mips-fbsd-nat.c: New file.
14225
387360da
JB
142262017-01-04 John Baldwin <jhb@FreeBSD.org>
14227
14228 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
14229 (ALLDEPFILES): Add mips-fbsd-tdep.c.
14230 * NEWS: Mention new FreeBSD/mips target.
14231 * configure.tgt: Add mips*-*-freebsd*.
14232 * mips-fbsd-tdep.c: New file.
14233 * mips-fbsd-tdep.h: New file.
14234
2aaaf250
YQ
142352017-01-04 Yao Qi <yao.qi@linaro.org>
14236
14237 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
14238 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
14239
61baf725
JB
142402017-01-01 Joel Brobecker <brobecker@adacore.com>
14241
6dbb839a 14242 Update copyright year range in all GDB files.
61baf725 14243
c113e7ff 142442017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 14245
c113e7ff 14246 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 14247
c113e7ff 14248For older changes see ChangeLog-2016.
c906108c
SS
14249\f
14250Local Variables:
14251mode: change-log
14252left-margin: 8
14253fill-column: 74
14254version-control: never
57da7796 14255coding: utf-8
c906108c 14256End:
This page took 3.273163 seconds and 4 git commands to generate.