]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
s/get_regcache_aspace (regcache)/regcache->aspace ()/g
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a01bda52
YQ
12017-11-02 Yao Qi <yao.qi@linaro.org>
2
3 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
4 * frame.c (create_sentinel_frame): Likewise.
5 * infrun.c (displaced_step_prepare_throw): Likewise.
6 (resume): Likewise.
7 (thread_still_needs_step_over_bp): Likewise.
8 (proceed): Likewise.
9 (do_target_wait): Likewise.
10 (adjust_pc_after_break): Likewise.
11 (handle_syscall_event): Likewise.
12 (save_waitstatus): Likewise.
13 (handle_inferior_event_1): Likewise.
14 (handle_signal_stop): Likewise.
15 (keep_going_pass_signal): Likewise.
16 * linux-nat.c (status_callback): Likewise.
17 (save_stop_reason): Likewise.
18 (resume_stopped_resumed_lwps): Likewise.
19 * record-full.c (record_full_exec_insn): Likewise.
20 (record_full_wait_1): Likewise.
21 * regcache.c (get_regcache_aspace): Remove.
22 * regcache.h (get_regcache_aspace): Remove.
23
d999647b
YQ
242017-11-02 Yao Qi <yao.qi@linaro.org>
25
26 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
27 (init_regcache_descr): Use gdbarch_num_regs.
28 (regcache::regcache): Likewise.
29 (regcache::get_register_status): Likewise.
30 (regcache::assert_raw_regnum): Likewise.
31 (regcache::cooked_read): Likewise.
32 (regcache::cooked_read_value): Likewise.
33 (regcache::cooked_write): Likewise.
34 (regcache::dump): Likewise.
35 (regcache::num_raw_registers): New method.
36 * regcache.h (class regcache) <num_raw_registers>: New.
37
4e888c28
YQ
382017-11-02 Yao Qi <yao.qi@linaro.org>
39
40 * regcache.c (regcache::assert_regnum): New method.
41 (regcache::invalidate): Call assert_regnum.
42 (regcache::raw_update): Likewise.
43 (regcache::raw_write): Likewise.
44 (regcache::raw_read_part): Likewise.
45 (regcache::raw_write_part): Likewise.
46 (regcache::raw_supply): Likewise.
47 (regcache::raw_supply_integer): Likewise.
48 (regcache::raw_supply_zeroed): Likewise.
49 (regcache::raw_collect): Likewise.
50 (regcache::raw_collect_integer): Likewise.
51 * regcache.h (regcache::assert_regnum): Declare.
52
2e1b49b3
YQ
532017-11-02 Yao Qi <yao.qi@linaro.org>
54
55 * regcache.c (regcache::dump): Remove code.
56
6c5218df
YQ
572017-11-02 Yao Qi <yao.qi@linaro.org>
58
59 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
60 Remove.
61 <sizeof_cooked_register_status>: Remove.
62 (init_regcache_descr): Update.
63 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
64 (regcache::save): Likewise.
65 (regcache::dump): Likewise.
66
dcc31d28
JB
672017-11-01 James Bowman <james.bowman@ftdichip.com>
68
69 * ft32-tdep.c (ft32_fetch_instruction): New function.
70 (ft32_analyze_prologue): Use ft32_fetch_instruction().
71
3a87ae65
SM
722017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
73
74 * cli/cli-script.c (execute_control_command): Rename to ...
75 (execute_control_command_1): ... this.
76 (execute_control_command): New function.
77
09b847f3
SM
782017-10-31 Simon Marchi <simon.marchi@ericsson.com>
79
80 * tracepoint.c (tfind_command): Remove const_cast.
81
f871c485
MG
822017-10-30 Mike Gulick <mgulick@mathworks.com>
83
84 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
85
b020ff80
SM
862017-10-30 Simon Marchi <simon.marchi@ericsson.com>
87
88 * common/common-utils.h (in_inclusive_range): New function.
89 * arm-tdep.c (arm_record_extension_space): Use
90 in_inclusive_range.
91 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
92 * cris-tdep.c (cris_spec_reg_applicable): Use
93 in_inclusive_range.
94
1b81856f
PA
952017-10-30 Pedro Alves <palves@redhat.com>
96 Simon Marchi <simon.marchi@ericsson.com>
97
98 * remote.c (remote_set_syscall_catchpoint): Build a std::string
99 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
100
31b833b3
PA
1012017-10-30 Pedro Alves <palves@redhat.com>
102
103 * common/common-utils.c (string_appendf, string_vappendf): New
104 functions.
105 * common/common-utils.h (string_appendf, string_vappendf): New
106 declarations.
107 * unittests/common-utils-selftests.c (string_appendf_func)
108 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
109 (string_vappendf_tests): New functions.
110 (_initialize_common_utils_selftests): Register "string_appendf" and
111 "string_vappendf tests".
112
4a250334
PA
1132017-10-30 Pedro Alves <palves@redhat.com>
114
115 * unittests/common-utils-selftests.c (format_func): New typedef.
116 (string_printf_tests, string_vprintf_tests): Tests factored out
117 and merged to ...
118 (test_format_func): ... this new function.
119 (string_printf_tests, string_vprintf_tests): Reimplement on top of
120 test_format_func.
121
16c5c17e
SM
1222017-10-29 Simon Marchi <simon.marchi@ericsson.com>
123
124 * darwin-nat.c: Remove include of gdb.h.
125
7ca51576
SM
1262017-10-29 Simon Marchi <simon.marchi@ericsson.com>
127
128 * xtensa-xtregs.c: Fix formatting issues.
129
c1342859
SM
1302017-10-29 Simon Marchi <simon.marchi@ericsson.com>
131
132 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
133
484d8d36
MD
1342017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
135
136 PR python/21213
137 * python/py-infthread.c (thpy_get_inferior): Increment reference
138 of inferior before returning it.
139
b5540b5f
SM
1402017-10-27 Simon Marchi <simon.marchi@ericsson.com>
141
142 * unittests/common-utils-selftests.c (format): Add
143 ATTRIBUTE_PRINTF.
144
5a9dcda1
SM
1452017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
146
147 * xml-syscall.c (struct syscall_desc): Add constructor.
148 <name>: Change type to std::string.
149 (syscall_desc_up): New typedef.
150 (syscall_desc_p): Remove typeder.
151 (DEF_VEC_P(syscall_desc_p)): Remove.
152 (struct syscall_group_desc): Add constructor.
153 <name>: Change type to std::string.
154 <syscalls>: Change type to std::vector.
155 (syscall_group_desc_up): New typedef.
156 (syscall_group_desc_p): Remove typedef.
157 (DEF_VEC_P(syscall_group_desc_p)): Remove.
158 (struct syscalls_info) <syscalls>: Change type to std::vector of
159 unique_ptr.
160 <groups>: Likewise.
161 <my_gdb_datadir>: Change type to std::string.
162 (syscalls_info_up): New typedef.
163 (allocate_syscalls_info): Remove.
164 (syscalls_info_free_syscalls_desc): Remove.
165 (syscalls_info_free_syscall_group_desc): Remove.
166 (free_syscalls_info): Remove.
167 (make_cleanup_free_syscalls_info): Remove.
168 (syscall_group_create_syscall_group_desc): Adjust.
169 (syscall_group_add_syscall): Adjust.
170 (syscall_create_syscall_desc): Adjust.
171 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
172 (init_syscalls_info): Adjust.
173 (syscall_group_get_group_by_name): Adjust.
174 (xml_get_syscall_number): Adjust.
175 (xml_get_syscall_name): Adjust.
176 (xml_list_of_syscalls): Adjust.
177 (xml_list_syscalls_by_group): Adjust.
178 (xml_list_of_groups): Adjust.
179
45461e0d
SM
1802017-10-27 Simon Marchi <simon.marchi@ericsson.com>
181
182 * probe.h: Don't include gdb_vecs.h.
183 (DEF_VEC_P (probe_p)): Remove.
184 (find_probes_in_objfile): Return an std::vector.
185 * probe.c (find_probes_in_objfile): Likewise.
186 * breakpoint.c (breakpoint_objfile_data)
187 <longjmp_probes>: Change type to std::vector.
188 <exception_probes>: Likewise.
189 (free_breakpoint_probes): Don't manually free vectors.
190 (create_longjmp_master_breakpoint): Adjust.
191 (create_exception_master_breakpoint): Adjust.
192 * solib-svr4.c (svr4_create_probe_breakpoints): Change
193 parameter type, adjust.
194 (svr4_create_solib_event_breakpoints): Adjust.
195
43dce439
SM
1962017-10-27 Simon Marchi <simon.marchi@ericsson.com>
197
198 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
199 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
200 with new.
201 (free_breakpoint_probes): Rename to ...
202 (free_breakpoint_objfile_data): ... this, and call delete on
203 bp_objfile_data..
204
6a1b9516
SM
2052017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
206
207 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
208 (loaded_script_ptr): Remove typedef.
209 (DEF_VEC_P (loaded_script_ptr)): Remove.
210 (struct collect_matching_scripts_data): Add constructor.
211 <scripts_p>: Change type to (pointer to) std::vector.
212 (collect_matching_scripts_data): Adjust.
213 (sort_scripts_by_name): Make suitable for std::sort.
214 (print_scripts): Don't sort vector, adjust to std::vector.
215 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
216
593e3209
SM
2172017-10-27 Simon Marchi <simon.marchi@ericsson.com>
218
219 * symfile.c (filename_language): Make struct, not typedef. Add
220 constructor.
221 <ext>: Change type to std::string.
222 (DEF_VEC_O (filename_language)): Remove.
223 (filename_language_table): Change type to std::vector.
224 (add_filename_language): Adjust.
225 (set_ext_lang_command): Adjust.
226 (info_ext_lang_command): Adjust.
227 (deduce_language_from_filename): Adjust.
228 (class scoped_restore_filename_language_table): Remove.
229 (test_filename_language): Use scoped_restore.
230 (test_set_ext_lang_command): Use scoped_restore, adjust to
231 std::vector change.
232
32fa66eb
SM
2332017-10-27 Simon Marchi <simon.marchi@ericsson.com>
234
235 * symfile.c: Include selftest.h.
236 (class scoped_restore_filename_language_table): New.
237 (test_filename_language): New test.
238 (test_set_ext_lang_command): New test.
239 (_initialize_symfile): Register tests.
240
4a27f119
KS
2412017-10-27 Keith Seitz <keiths@redhat.com>
242
243 * breakpoint.c (print_breakpoint_location): Use the symbol saved
244 in the bp_location, falling back to find_pc_sect_function when
245 needed.
246 (add_location_to_breakpoint): Save sal->symbol.
247 * breakpoint.h (struct bp_location) <symbol>: New field.
248 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
249 * symtab.h (struct symtab_and_line) <symbol>: New field.
250
a43f3893
PF
2512017-10-26 Patrick Frants <osscontribute@gmail.com>
252
7453e6b2 253 PR gdb/13669
a43f3893
PF
254 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
255 to rewind obstack.
256
23cc4e1b
PA
2572017-10-26 Pedro Alves <palves@redhat.com>
258
259 * remote.c (remote_async_terminal_ours_p): Delete.
260 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
261 Remove references to 'remote_async_terminal_ours_p'.
262
6abc18bb
YQ
2632017-10-26 Yao Qi <yao.qi@linaro.org>
264
265 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
266
bd522513
YQ
2672017-10-26 Yao Qi <yao.qi@linaro.org>
268
269 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
270 aspace const.
271 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
272 Likewise.
273 * breakpoint.c (bpstat_check_location): Remove cast.
274 (breakpoint_hit_catch_fork): Make aspce const.
275 (breakpoint_hit_catch_solib): Likewise.
276 (breakpoint_hit_catch_exec): Likewise.
277 (breakpoint_hit_ranged_breakpoint): Likewise.
278 (breakpoint_hit_watchpoint): Likewise.
279 (base_breakpoint_breakpoint_hit): Likewise.
280 (bkpt_breakpoint_hit): Likewise.
281 (dprintf_breakpoint_hit): Likewise.
282 (tracepoint_breakpoint_hit): Likewise.
283 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
284
accd0bcd
YQ
2852017-10-26 Yao Qi <yao.qi@linaro.org>
286
287 * breakpoint.c (breakpoint_location_address_match): Change
288 "struct address_space *" to "const address_space".
289 (breakpoint_location_address_range_overlap): Likewise.
290 (breakpoint_here_p): Likewise.
291 (breakpoint_in_range_p): Likewise.
292 (moribund_breakpoint_here_p): Likewise.
293 (bp_location_inserted_here_p): Likewise.
294 (software_breakpoint_inserted_here_p): Likewise.
295 (hardware_breakpoint_inserted_here_p): Likewise.
296 (hardware_watchpoint_inserted_in_range): Likewise.
297 (bpstat_check_location): Likewise.
298 (bpstat_stop_status): Likewise.
299 (breakpoint_address_match): Likewise.
300 (breakpoint_address_match_range): Likewise.
301 (breakpoint_location_address_match): Likewise.
302 (breakpoint_location_address_range_overlap): Likewise.
303 (insert_single_step_breakpoint): Likewise.
304 (breakpoint_has_location_inserted_here): Likewise.
305 (single_step_breakpoint_inserted_here_p): Likewise.
306 (pc_at_non_inline_function): Likewise.
307 * breakpoint.h (bpstat_stop_status): Update declaration.
308 (breakpoint_here_p): Likewise.
309 (breakpoint_in_range_p): Likewise.
310 (moribund_breakpoint_here_p): Likewise.
311 (breakpoint_inserted_here_p): Likewise.
312 (software_breakpoint_inserted_here_p): Likewise.
313 (hardware_breakpoint_inserted_here_p): Likewise.
314 (breakpoint_has_location_inserted_here): Likewise.
315 (single_step_breakpoint_inserted_here_p): Likewise.
316 (hardware_watchpoint_inserted_in_range): Likewise.
317 (breakpoint_address_match): Likewise.
318 (insert_single_step_breakpoint): Likewise.
319 (pc_at_non_inline_function): Likewise.
320 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
321 * record.c (record_check_stopped_by_breakpoint): Likewise.
322 * record.h (record_check_stopped_by_breakpoint): Likewise.
323 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
324
ac7936df
YQ
3252017-10-25 Yao Qi <yao.qi@linaro.org>
326
327 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
328 regcache->arch () instead get_regcache_arch.
329 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
330 Likewise.
331 (aarch64_fbsd_store_inferior_registers): Likewise.
332 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
333 (store_gregs_to_thread): Likewise.
334 (fetch_fpregs_from_thread): Likewise.
335 (store_fpregs_to_thread): Likewise.
336 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
337 (aarch64_store_return_value): Likewise.
338 (aarch64_software_single_step): Likewise.
339 * aix-thread.c (aix_thread_wait): Likewise.
340 (supply_reg32): Likewise.
341 (supply_sprs64): Likewise.
342 (supply_sprs32): Likewise.
343 (fill_gprs64): Likewise.
344 (fill_gprs32): Likewise.
345 (fill_sprs64): Likewise.
346 (fill_sprs32): Likewise.
347 (store_regs_user_thread): Likewise.
348 (store_regs_kernel_thread): Likewise.
349 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
350 (alphabsd_store_inferior_registers): Likewise.
351 * alpha-tdep.c (alpha_extract_return_value): Likewise.
352 (alpha_store_return_value): Likewise.
353 (alpha_deal_with_atomic_sequence): Likewise.
354 (alpha_next_pc): Likewise.
355 (alpha_software_single_step): Likewise.
356 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
357 (amd64bsd_store_inferior_registers): Likewise.
358 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
359 Likewise.
360 (amd64_linux_store_inferior_registers): Likewise.
361 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
362 (amd64_collect_native_gregset): Likewise.
363 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
364 (amd64obsd_collect_uthread): Likewise.
365 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
366 (amd64_collect_fpregset): Likewise.
367 (amd64_supply_fxsave): Likewise.
368 (amd64_supply_xsave): Likewise.
369 (amd64_collect_fxsave): Likewise.
370 (amd64_collect_xsave): Likewise.
371 * arc-tdep.c (arc_write_pc): Likewise.
372 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
373 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
374 (arm_fbsd_store_inferior_registers): Likewise.
375 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
376 (store_vfp_regs): Likewise.
377 (arm_linux_fetch_inferior_registers): Likewise.
378 (arm_linux_store_inferior_registers): Likewise.
379 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
380 (arm_linux_sigreturn_next_pc): Likewise.
381 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
382 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
383 (fetch_register): Likewise.
384 (store_register): Likewise.
385 * arm-tdep.c (arm_is_thumb): Likewise.
386 (displaced_in_arm_mode): Likewise.
387 (bx_write_pc): Likewise.
388 (arm_get_next_pcs_addr_bits_remove): Likewise.
389 (arm_software_single_step): Likewise.
390 (arm_extract_return_value): Likewise.
391 (arm_store_return_value): Likewise.
392 (arm_write_pc): Likewise.
393 * bfin-tdep.c (bfin_extract_return_value): Likewise.
394 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
395 (bsd_uthread_store_registers): Likewise.
396 * core-regset.c (fetch_core_registers): Likewise.
397 * corelow.c (get_core_registers): Likewise.
398 * cris-tdep.c (cris_store_return_value): Likewise.
399 (cris_extract_return_value): Likewise.
400 (find_step_target): Likewise.
401 (find_step_target): Likewise.
402 (cris_software_single_step): Likewise.
403 * ctf.c (ctf_fetch_registers): Likewise.
404 * darwin-nat.c (cancel_breakpoint): Likewise.
405 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
406 * frv-tdep.c (frv_extract_return_value): Likewise.
407 * ft32-tdep.c (ft32_store_return_value): Likewise.
408 (ft32_extract_return_value): Likewise.
409 * go32-nat.c (fetch_register): Likewise.
410 (go32_fetch_registers): Likewise.
411 (go32_store_registers): Likewise.
412 (store_register): Likewise.
413 * h8300-tdep.c (h8300_extract_return_value): Likewise.
414 (h8300_store_return_value): Likewise.
415 * hppa-linux-nat.c (fetch_register): Likewise.
416 (store_register): Likewise.
417 (hppa_linux_fetch_inferior_registers): Likewise.
418 (hppa_linux_store_inferior_registers): Likewise.
419 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
420 (i386_darwin_store_inferior_registers): Likewise.
421 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
422 (gnu_store_registers): Likewise.
423 * i386-linux-nat.c (fetch_register): Likewise.
424 (store_register): Likewise.
425 (supply_gregset): Likewise.
426 (fill_gregset): Likewise.
427 (i386_linux_fetch_inferior_registers): Likewise.
428 (i386_linux_store_inferior_registers): Likewise.
429 (i386_linux_resume): Likewise.
430 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
431 Likewise.
432 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
433 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
434 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
435 (i386obsd_collect_uthread): Likewise.
436 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
437 (i386_supply_gregset): Likewise.
438 (i386_collect_gregset): Likewise.
439 (i386_supply_fpregset): Likewise.
440 (i386_collect_fpregset): Likewise.
441 (i386_mpx_bd_base): Likewise.
442 * i386-v4-nat.c (supply_fpregset): Likewise.
443 (fill_fpregset): Likewise.
444 * i387-tdep.c (i387_supply_fsave): Likewise.
445 (i387_collect_fsave): Likewise.
446 (i387_supply_fxsave): Likewise.
447 (i387_collect_fxsave): Likewise.
448 (i387_supply_xsave): Likewise.
449 (i387_collect_xsave): Likewise.
450 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
451 (ia64_linux_store_registers): Likewise.
452 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
453 (ia64_extract_return_value): Likewise.
454 (ia64_store_return_value): Likewise.
455 (find_func_descr): Likewise.
456 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
457 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
458 (inf_ptrace_store_registers): Likewise.
459 * infrun.c (use_displaced_stepping): Likewise.
460 (displaced_step_prepare_throw): Likewise.
461 (resume): Likewise.
462 (proceed): Likewise.
463 (do_target_wait): Likewise.
464 (adjust_pc_after_break): Likewise.
465 (handle_inferior_event_1): Likewise.
466 (handle_signal_stop): Likewise.
467 (save_infcall_suspend_state): Likewise.
468 (restore_infcall_suspend_state): Likewise.
469 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
470 * jit.c (jit_frame_prev_register): Likewise.
471 * linux-nat.c (save_stop_reason): Likewise.
472 (linux_nat_wait_1): Likewise.
473 (resume_stopped_resumed_lwps): Likewise.
474 * linux-record.c (record_linux_sockaddr): Likewise.
475 (record_linux_msghdr): Likewise.
476 (record_linux_system_call): Likewise.
477 * linux-tdep.c (linux_collect_thread_registers): Likewise.
478 * lm32-tdep.c (lm32_extract_return_value): Likewise.
479 (lm32_store_return_value): Likewise.
480 * m32c-tdep.c (m32c_read_flg): Likewise.
481 (m32c_pseudo_register_read): Likewise.
482 (m32c_pseudo_register_write): Likewise.
483 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
484 (m32r_linux_collect_gregset): Likewise.
485 * m32r-tdep.c (m32r_store_return_value): Likewise.
486 (m32r_extract_return_value): Likewise.
487 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
488 (m68kbsd_collect_fpregset): Likewise.
489 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
490 * m68k-linux-nat.c (fetch_register): Likewise.
491 (old_fetch_inferior_registers): Likewise.
492 (old_store_inferior_registers): Likewise.
493 (store_regs): Likewise.
494 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
495 (m68k_svr4_store_return_value): Likewise.
496 * m88k-tdep.c (m88k_store_arguments): Likewise.
497 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
498 (mi_cmd_data_write_register_values): Likewise.
499 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
500 (mips_fbsd_store_inferior_registers): Likewise.
501 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
502 (mips_fbsd_supply_gregs): Likewise.
503 (mips_fbsd_collect_fpregs): Likewise.
504 (mips_fbsd_collect_gregs): Likewise.
505 (mips_fbsd_supply_fpregset): Likewise.
506 (mips_fbsd_collect_fpregset): Likewise.
507 (mips_fbsd_supply_gregset): Likewise.
508 (mips_fbsd_collect_gregset): Likewise.
509 * mips-linux-nat.c (supply_gregset): Likewise.
510 (fill_gregset): Likewise.
511 (supply_fpregset): Likewise.
512 (fill_fpregset): Likewise.
513 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
514 (mips_fill_gregset): Likewise.
515 (mips_supply_fpregset): Likewise.
516 (mips_fill_fpregset): Likewise.
517 (mips64_supply_gregset): Likewise.
518 (micromips_linux_sigframe_validate): Likewise.
519 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
520 (mipsnbsd_fetch_inferior_registers): Likewise.
521 (mipsnbsd_store_inferior_registers): Likewise.
522 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
523 (mipsnbsd_supply_gregset): Likewise.
524 (mipsnbsd_iterate_over_regset_sections): Likewise.
525 (mipsnbsd_supply_reg): Likewise.
526 (mipsnbsd_supply_fpreg): Likewise.
527 * mips-tdep.c (mips_in_frame_stub): Likewise.
528 (mips_dummy_id): Likewise.
529 (is_octeon_bbit_op): Likewise.
530 (micromips_bc1_pc): Likewise.
531 (extended_mips16_next_pc): Likewise.
532 (mips16_next_pc): Likewise.
533 (deal_with_atomic_sequence): Likewise.
534 * moxie-tdep.c (moxie_process_readu): Likewise.
535 * nios2-tdep.c (nios2_get_next_pc): Likewise.
536 * nto-procfs.c (procfs_store_registers): Likewise.
537 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
538 (ppcfbsd_store_inferior_registers): Likewise.
539 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
540 (fetch_altivec_register): Likewise.
541 (get_spe_registers): Likewise.
542 (fetch_spe_register): Likewise.
543 (fetch_altivec_registers): Likewise.
544 (fetch_all_gp_regs): Likewise.
545 (fetch_all_fp_regs): Likewise.
546 (store_vsx_register): Likewise.
547 (store_altivec_register): Likewise.
548 (set_spe_registers): Likewise.
549 (store_spe_register): Likewise.
550 (store_altivec_registers): Likewise.
551 (store_all_gp_regs): Likewise.
552 (store_all_fp_regs): Likewise.
553 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
554 (ppc_linux_collect_gregset): Likewise.
555 (ppc_canonicalize_syscall): Likewise.
556 (ppc_linux_record_signal): Likewise.
557 (ppu2spu_prev_register): Likewise.
558 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
559 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
560 (ppcobsd_store_registers): Likewise.
561 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
562 Likewise.
563 (ppc_ravenscar_generic_store_registers): Likewise.
564 * procfs.c (procfs_fetch_registers): Likewise.
565 (procfs_store_registers): Likewise.
566 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
567 (ravenscar_store_registers): Likewise.
568 (ravenscar_prepare_to_store): Likewise.
569 * record-btrace.c (record_btrace_fetch_registers): Likewise.
570 * record-full.c (record_full_wait_1): Likewise.
571 (record_full_registers_change): Likewise.
572 (record_full_store_registers): Likewise.
573 (record_full_core_fetch_registers): Likewise.
574 (record_full_save): Likewise.
575 (record_full_goto_insn): Likewise.
576 * regcache.c (regcache_register_size): Likewise.
577 (get_regcache_arch): Remove.
578 (regcache_read_pc): Likewise.
579 * regcache.h (get_regcache_arch): Remove.
580 * remote-sim.c (gdbsim_fetch_register): Likewise.
581 (gdbsim_store_register): Likewise.
582 * remote.c (fetch_register_using_p): Likewise.
583 (send_g_packet): Likewise.
584 (remote_prepare_to_store): Likewise.
585 (store_registers_using_G): Likewise.
586 * reverse.c (save_bookmark_command): Likewise.
587 (goto_bookmark_command): Likewise.
588 * rs6000-aix-tdep.c (branch_dest): Likewise.
589 * rs6000-nat.c (rs6000_ptrace64): Likewise.
590 (fetch_register): Likewise.
591 * rs6000-tdep.c (ppc_supply_reg): Likewise.
592 (ppc_collect_reg): Likewise.
593 (ppc_collect_gregset): Likewise.
594 (ppc_collect_fpregset): Likewise.
595 (ppc_collect_vsxregset): Likewise.
596 (ppc_collect_vrregset): Likewise.
597 (ppc_displaced_step_hw_singlestep): Likewise.
598 (rs6000_pseudo_register_read): Likewise.
599 (rs6000_pseudo_register_write): Likewise.
600 * s390-linux-nat.c (supply_gregset): Likewise.
601 (fill_gregset): Likewise.
602 (s390_linux_fetch_inferior_registers): Likewise.
603 * s390-linux-tdep.c (s390_write_pc): Likewise.
604 (s390_software_single_step): Likewise.
605 (s390_all_but_pc_registers_record): Likewise.
606 (s390_linux_syscall_record): Likewise.
607 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
608 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
609 (shnbsd_store_inferior_registers): Likewise.
610 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
611 (sh_extract_return_value_fpu): Likewise.
612 (sh_store_return_value_nofpu): Likewise.
613 (sh_corefile_supply_regset): Likewise.
614 (sh_corefile_collect_regset): Likewise.
615 * sh64-tdep.c (sh64_extract_return_value): Likewise.
616 (sh64_store_return_value): Likewise.
617 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
618 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
619 (sparc_store_inferior_registers): Likewise.
620 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
621 (sparc_ravenscar_prepare_to_store): Likewise.
622 * sparc-tdep.c (sparc32_store_arguments): Likewise.
623 (sparc_analyze_control_transfer): Likewise.
624 (sparc_step_trap): Likewise.
625 (sparc_software_single_step): Likewise.
626 (sparc32_gdbarch_init): Likewise.
627 (sparc_supply_rwindow): Likewise.
628 (sparc_collect_rwindow): Likewise.
629 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
630 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
631 (sparc64nbsd_collect_gregset): Likewise.
632 (sparc64nbsd_supply_fpregset): Likewise.
633 (sparc64nbsd_collect_fpregset): Likewise.
634 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
635 (sparc64_supply_gregset): Likewise.
636 (sparc64_collect_gregset): Likewise.
637 (sparc64_supply_fpregset): Likewise.
638 (sparc64_collect_fpregset): Likewise.
639 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
640 * spu-tdep.c (spu_unwind_sp): Likewise.
641 (spu2ppu_prev_register): Likewise.
642 (spu_memory_remove_breakpoint): Likewise.
643 * stack.c (return_command): Likewise.
644 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
645 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
646 * tracefile.c (trace_save_ctf): Likewise.
647 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
648 (do_windows_store_inferior_registers): Likewise.
649 (windows_resume): Likewise.
650 * xtensa-linux-nat.c (fill_gregset): Likewise.
651 (supply_gregset_reg): Likewise.
652 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
653 (xtensa_register_read_masked): Likewise.
654 (xtensa_supply_gregset): Likewise.
655 (xtensa_extract_return_value): Likewise.
656 (xtensa_store_return_value): Likewise.
657
edd079d9
UW
6582017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
659
660 * doublest.c (floatformat_from_string): New function.
661 * doublest.h (floatformat_from_string): Add prototype.
662
663 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
664 (OP_FLOAT): ... this.
665 * expression.h: Do not include "doublest.h".
666 (union exp_element): Replace doubleconst and decfloatconst by
667 new element floatconst.
668 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
669 (ada_evaluate_subexp): Likewise.
670 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
671 OP_DOUBLE and OP_DECFLOAT.
672 * expprint.c (print_subexp_standard): Likewise.
673 (dump_subexp_body_standard): Likewise.
674 * breakpoint.c (watchpoint_exp_is_const): Likewise.
675
676 * parse.c: Include "dfp.h".
677 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
678 (write_exp_elt_floatcst): New function.
679 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
680 and OP_DECFLOAT.
681 (operator_check_standard): Likewise.
682 (parse_float): Do not accept suffix. Take type as input. Return bool.
683 Return target format buffer instead of host DOUBLEST.
684 Use floatformat_from_string and decimal_from_string to parse
685 either binary or decimal floating-point types.
686 (parse_c_float): Remove.
687 * parser-defs.h: Do not include "doublest.h".
688 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
689 (write_exp_elt_floatcst): Add prototype.
690 (parse_float): Update prototype.
691 (parse_c_float): Remove.
692
693 * c-exp.y: Do not include "dfp.h".
694 (typed_val_float): Use byte buffer instead of DOUBLEST.
695 (typed_val_decfloat): Remove.
696 (DECFLOAT): Remove.
697 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
698 (parse_number): Update to new parse_float interface.
699 Parse suffixes and determine type before calling parse_float.
700 Handle decimal and binary FP types the same way.
701
702 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
703 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
704 (parse_number): Update to new parse_float interface.
705 Parse suffixes and determine type before calling parse_float.
706
707 * f-exp.y: Replace dval by typed_val_float.
708 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
709 (parse_number): Use parse_float instead of atof.
710
711 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
712 (parse_go_float): Remove.
713 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
714 (parse_number): Call parse_float instead of parse_go_float.
715 Parse suffixes and determine type before calling parse_float.
716
717 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
718 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
719 (parse_number): Update to new parse_float interface.
720 Parse suffixes and determine type before calling parse_float.
721
722 * m2-exp.y: Replace dval by byte buffer val.
723 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
724 (parse_number): Call parse_float instead of atof.
725
726 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
727 (lex_number): Call parse_float instead of strtod.
728 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
729 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
730 Use write_exp_elt_floatcst.
731 (unit_testing): Remove static variable.
732 (rust_type): Do not check unit_testing.
733 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
734
735 * ada-exp.y (type_float, type_double): Remove.
736 (typed_val_float): Use byte buffer instead of DOUBLEST.
737 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
738 * ada-lex.l (processReal): Use parse_float instead of sscanf.
739
cc628f3d
AH
7402017-10-25 Alan Hayward <alan.hayward@arm.com>
741
742 * aarch64-tdep.h (enum aarch64_regnum): Remove.
743 * arch/aarch64.h: New file.
744
09a7c6aa
UW
7452017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
746
747 * dfp.h (decimal_from_string): Use const reference for argument.
748 * dfp.c (decimal_from_string): Likewise.
749
8ba0dd51
UW
7502017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
751
752 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
753 * sh64-tdep.c (sh64_do_fp_register): Likewise.
754 * mips-tdep.c (mips_print_fp_register): Likewise.
755
16e812b2
UW
7562017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
757
758 * common/format.h (enum argclass): Replace decfloat_arg by
759 dec32float_arg, dec64float_arg, and dec128float_arg.
760 * common/format.c (parse_format_string): Update to return
761 new decimal float argument classes.
762
763 * printcmd.c (printf_decfloat): Rename to ...
764 (printf_floating): ... this. Add argclass argument, and use it
765 instead of parsing the format string again. Add support for
766 binary floating-point values, using floatformat_to_string.
767 Convert value to the target format if it doesn't already match.
768 (ui_printf): Call printf_floating instead of printf_decfloat,
769 also for double_arg / long_double_arg. Pass argclass.
770
771 * dfp.c (decimal_to_string): Add format string argument.
772 * dfp.h (decimal_to_string): Likewise.
773
774 * doublest.c (floatformat_to_string): Add format string argument.
775 * doublest.h (floatformat_to_string): Likewise.
776
fdf0cbc2
UW
7772017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
778
779 * doublest.c (floatformat_precision): New routine.
780 (floatformat_to_string): Likewise.
781 * doublest.c (floatformat_to_string): Add prototype.
782
783 * printcmd.c (print_scalar_formatted): Only call print_floating
784 on floating-point types.
785 * valprint.c: Do not include "floatformat.h".
786 (generic_val_print_decfloat): Remove.
787 (generic_val_print): Call generic_val_print_float for both
788 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
789 (print_floating): Use floatformat_to_string. Handle decimal float.
790 (print_decimal_floating): Remove, merge into floatformat_to_string.
791 * value.h (print_decimal_floating): Remove.
792
793 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
794
5033013f
UW
7952017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
796
797 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
798
a664f67e
SM
7992017-10-21 Simon Marchi <simon.marchi@ericsson.com>
800
801 * memattr.h: Don't include vec.h.
802 (struct mem_attrib): Initialize fields.
803 <unknown>: New static method.
804 (struct mem_region): Add constructors, operator<, initialize
805 fields.
806 * memattr.c: Include algorithm.
807 (default_mem_attrib, unknown_mem_attrib): Remove.
808 (user_mem_region_list): New global.
809 (target_mem_region_list, mem_region_list): Change type to
810 std::vector<mem_region>.
811 (mem_use_target): Now a function.
812 (target_mem_regions_valid): Change type to bool.
813 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
814 (require_user_regions): Adjust.
815 (require_target_regions): Adjust.
816 (create_mem_region): Adjust.
817 (lookup_mem_region): Adjust.
818 (invalidate_target_mem_regions): Adjust.
819 (mem_clear): Rename to...
820 (user_mem_clear): ... this, and adjust.
821 (mem_command): Adjust.
822 (info_mem_command): Adjust.
823 (mem_enable, enable_mem_command, mem_disable,
824 disable_mem_command): Adjust.
825 (mem_delete): Adjust.
826 (delete_mem_command): Adjust.
827 * memory-map.h (parse_memory_map): Return an std::vector.
828 * memory-map.c (parse_memory_map): Likewise.
829 (struct memory_map_parsing_data): Add constructor.
830 <memory_map>: Point to std::vector.
831 (memory_map_start_memory): Adjust.
832 (memory_map_end_memory): Adjust.
833 (memory_map_end_property): Adjust.
834 (clear_result): Remove.
835 * remote.c (remote_memory_map): Return an std::vector.
836 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
837 Remove.
838 (target_debug_print_mem_region_vector): New.
839 * target-delegates.c: Regenerate.
840 * target.h (mem_region_vector): New typedef.
841 (to_memory_map): Return mem_region_vector.
842 (target_memory_map): Return an std::vector.
843 * target.c (target_memory_map): Return an std::vector.
844 (flash_erase_command): Adjust.
845
6e17c565
SM
8462017-10-21 Simon Marchi <simon.marchi@ericsson.com>
847
848 * memory-map.c (struct memory_map_parsing_data) <property_name>:
849 Change type to std::string.
850 (memory_map_start_property): Adjust.
851 (memory_map_end_property): Adjust.
852
cfba9872
SM
8532017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
854
855 * infrun.h: Include common/byte-vector.h.
856 (struct displaced_step_closure): New struct.
857 (struct buf_displaced_step_closure): New struct.
858 * infrun.c (displaced_step_closure::~displaced_step_closure):
859 Provide default implementation.
860 (displaced_step_clear): Deallocate step closure with delete.
861 * aarch64-tdep.c (displaced_step_closure): Rename to ...
862 (aarch64_displaced_step_closure): ... this, extend
863 displaced_step_closure.
864 (aarch64_displaced_step_data) <dsc>: Change type to
865 aarch64_displaced_step_closure.
866 (aarch64_displaced_step_copy_insn): Adjust to type change, use
867 unique_ptr.
868 (aarch64_displaced_step_fixup): Add cast for displaced step
869 closure.
870 * amd64-tdep.c (displaced_step_closure): Rename to ...
871 (amd64_displaced_step_closure): ... this, extend
872 displaced_step_closure.
873 <insn_buf>: Change type to std::vector<gdb_byte>.
874 <max_len>: Remove.
875 (fixup_riprel): Change type of DSC parameter, adjust to type
876 change of insn_buf.
877 (fixup_displaced_copy): Change type of DSC parameter.
878 (amd64_displaced_step_copy_insn): Instantiate
879 amd64_displaced_step_closure.
880 (amd64_displaced_step_fixup): Add cast for closure type, adjust
881 to type change of insn_buf.
882 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
883 parameter DSC.
884 (arm_linux_copy_svc): Likewise.
885 (cleanup_kernel_helper_return): Likewise.
886 (arm_catch_kernel_helper_return): Likewise.
887 (arm_linux_displaced_step_copy_insn): Instantiate
888 arm_displaced_step_closure.
889 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
890 (displaced_read_reg): Change type of parameter DSC.
891 (branch_write_pc): Likewise.
892 (load_write_pc): Likewise.
893 (alu_write_pc): Likewise.
894 (displaced_write_reg): Likewise.
895 (arm_copy_unmodified): Likewise.
896 (thumb_copy_unmodified_32bit): Likewise.
897 (thumb_copy_unmodified_16bit): Likewise.
898 (cleanup_preload): Likewise.
899 (install_preload): Likewise.
900 (arm_copy_preload): Likewise.
901 (thumb2_copy_preload): Likewise.
902 (install_preload_reg): Likewise.
903 (arm_copy_preload_reg): Likewise.
904 (cleanup_copro_load_store): Likewise.
905 (install_copro_load_store): Likewise.
906 (arm_copy_copro_load_store) Likewise.
907 (thumb2_copy_copro_load_store): Likewise.
908 (cleanup_branch): Likewise.
909 (install_b_bl_blx): Likewise.
910 (arm_copy_b_bl_blx): Likewise.
911 (thumb2_copy_b_bl_blx): Likewise.
912 (thumb_copy_b): Likewise.
913 (install_bx_blx_reg): Likewise.
914 (arm_copy_bx_blx_reg): Likewise.
915 (thumb_copy_bx_blx_reg): Likewise.
916 (cleanup_alu_imm): Likewise.
917 (arm_copy_alu_imm): Likewise.
918 (thumb2_copy_alu_imm): Likewise.
919 (cleanup_alu_reg): Likewise.
920 (install_alu_reg): Likewise.
921 (arm_copy_alu_reg): Likewise.
922 (thumb_copy_alu_reg): Likewise.
923 (cleanup_alu_shifted_reg): Likewise.
924 (install_alu_shifted_reg): Likewise.
925 (arm_copy_alu_shifted_reg): Likewise.
926 (cleanup_load): Likewise.
927 (cleanup_store): Likewise.
928 (arm_copy_extra_ld_st): Likewise.
929 (install_load_store): Likewise.
930 (thumb2_copy_load_literal): Likewise.
931 (thumb2_copy_load_reg_imm): Likewise.
932 (arm_copy_ldr_str_ldrb_strb): Likewise.
933 (cleanup_block_load_all): Likewise.
934 (cleanup_block_store_pc): Likewise.
935 (cleanup_block_load_pc): Likewise.
936 (arm_copy_block_xfer): Likewise.
937 (thumb2_copy_block_xfer): Likewise.
938 (cleanup_svc): Likewise.
939 (install_svc): Likewise.
940 (arm_copy_svc): Likewise.
941 (thumb_copy_svc): Likewise.
942 (arm_copy_undef): Likewise.
943 (thumb_32bit_copy_undef): Likewise.
944 (arm_copy_unpred): Likewise.
945 (arm_decode_misc_memhint_neon): Likewise.
946 (arm_decode_unconditional): Likewise.
947 (arm_decode_miscellaneous): Likewise.
948 (arm_decode_dp_misc): Likewise.
949 (arm_decode_ld_st_word_ubyte): Likewise.
950 (arm_decode_media): Likewise.
951 (arm_decode_b_bl_ldmstm): Likewise.
952 (arm_decode_ext_reg_ld_st): Likewise.
953 (thumb2_decode_dp_shift_reg): Likewise.
954 (thumb2_decode_ext_reg_ld_st): Likewise.
955 (arm_decode_svc_copro): Likewise.
956 (thumb2_decode_svc_copro): Likewise.
957 (install_pc_relative): Likewise.
958 (thumb_copy_pc_relative_16bit): Likewise.
959 (thumb_decode_pc_relative_16bit): Likewise.
960 (thumb_copy_pc_relative_32bit): Likewise.
961 (thumb_copy_16bit_ldr_literal): Likewise.
962 (thumb_copy_cbnz_cbz): Likewise.
963 (thumb2_copy_table_branch): Likewise.
964 (cleanup_pop_pc_16bit_all): Likewise.
965 (thumb_copy_pop_pc_16bit): Likewise.
966 (thumb_process_displaced_16bit_insn): Likewise.
967 (decode_thumb_32bit_ld_mem_hints): Likewise.
968 (thumb_process_displaced_32bit_insn): Likewise.
969 (thumb_process_displaced_insn): Likewise.
970 (arm_process_displaced_insn): Likewise.
971 (arm_displaced_init_closure): Likewise.
972 (arm_displaced_step_fixup): Add cast for closure.
973 * arm-tdep.h: Include infrun.h.
974 (displaced_step_closure): Rename to ...
975 (arm_displaced_step_closure): ... this, extend
976 displaced_step_closure.
977 <u::svc::copy_svc_os>: Change type of parameter DSC.
978 <cleanup>: Likewise.
979 (arm_process_displaced_insn): Likewise.
980 (arm_displaced_init_closure): Likewise.
981 (displaced_read_reg): Likewise.
982 (displaced_write_reg): Likewise.
983 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
984 Adjust.
985 * i386-tdep.h: Include infrun.h.
986 (i386_displaced_step_closure): New typedef.
987 * i386-tdep.c (i386_displaced_step_copy_insn): Use
988 i386_displaced_step_closure.
989 (i386_displaced_step_fixup): Adjust.
990 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
991 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
992 and unique_ptr.
993 (ppc_displaced_step_fixup): Adjust.
994 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
995 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
996 and unique_ptr.
997 (s390_displaced_step_fixup): Adjust.
998
b392b304
SM
9992017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1000
1001 * interps.h (interp_resume, interp_suspend, interp_set_temp):
1002 Remove declarations.
1003
d5833c62
TT
10042017-10-20 Tom Tromey <tom@tromey.com>
1005
1006 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
1007 std::vector.
1008 (gdb_bfd_record_inclusion): Update.
1009 (bfdp): Remove typedef.
1010
06d5bbc8
TT
10112017-10-20 Tom Tromey <tom@tromey.com>
1012
1013 * gdb_bfd.c (gdb_bfd_ref): Use new.
1014 (struct gdb_bfd_data): Add constructor, destructor, and member
1015 initializers.
1016 (gdb_bfd_unref): Use delete.
1017
2712ce2e
TT
10182017-10-20 Tom Tromey <tom@tromey.com>
1019
1020 * exec.c (exec_file_attach): Use new_bfd_ref.
1021 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
1022 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
1023 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
1024 new_bfd_ref.
1025 * gdb_bfd.h (new_bfd_ref): New function.
1026
fcc8fb2f
PA
10272017-10-20 Pedro Alves <palves@redhat.com>
1028
1029 * main.c (captured_command_loop): Add attribute noinline.
1030
4c2287b0
SM
10312017-10-19 Simon Marchi <simon.marchi@ericsson.com>
1032
1033 * interps.c (struct interp_factory): Add constructor.
1034 (interp_factory_p): Remove typedef.
1035 (DEF_VEC_P(interp_factory_p)): Remove.
1036 (interpreter_factories): Change type to std::vector.
1037 (interp_factory_register): Adjust.
1038 (interp_lookup): Adjust.
1039 (interpreter_completer): Adjust.
1040
3d415c26
TT
10412017-10-19 Tom Tromey <tom@tromey.com>
1042
1043 * break-catch-syscall.c (catch_syscall_completer): Use
1044 std::string, gdb::unique_xmalloc_ptr.
1045
395423c4
TT
10462017-10-19 Tom Tromey <tom@tromey.com>
1047
1048 * infcall.c (call_function_by_hand_dummy): Use std::string.
1049
54f70bc1
TT
10502017-10-19 Tom Tromey <tom@tromey.com>
1051
1052 * mi/mi-main.c (mi_cmd_execute): Update.
1053 * top.h (prepare_execute_command): Return scoped_value_mark.
1054 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
1055 Add move constructor.
1056 * top.c (prepare_execute_command): Return scoped_value_mark.
1057 (execute_command): Update.
1058
63929e84
PA
10592017-10-19 Pedro Alves <palves@redhat.com>
1060
1061 * xml-support.c (xml_fetch_content_from_file): Check fread's
1062 return.
1063
a75868f5
PA
10642017-10-19 Pedro Alves <palves@redhat.com>
1065
1066 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
1067 async.
1068 (handle_error_fd): New function.
1069 (ser_base_async): Add/delete an event loop file handler for
1070 error_fd.
1071
2edf834e
PA
10722017-10-19 Pedro Alves <palves@redhat.com>
1073
1074 * xml-support.c (xml_fetch_content_from_file): Don't read in
1075 chunks. Instead use fseek to determine the file's size, and read
1076 it in one go.
1077
c8ba13ad
KS
10782017-11-18 Keith Seitz <keiths@redhat.com>
1079
1080 * c-exp.y (oper): Canonicalize conversion operators of user-defined
1081 types.
1082 Add whitespace to front of type name.
1083
37534686
KS
10842017-10-18 Keith Seitz <keiths@redhat.com>
1085
1086 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
1087 DW_AT_accessibility.
1088
28c7c158
YQ
10892017-10-18 Yao Qi <yao.qi@linaro.org>
1090
1091 * features/tic6x-c62x-linux.c: Remove.
1092
30f0b101
TT
10932017-10-17 Tom Tromey <tom@tromey.com>
1094
1095 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
1096 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
1097 (do_mixed_source_and_assembly): Likewise.
1098
57e12da9
TT
10992017-10-17 Tom Tromey <tom@tromey.com>
1100
1101 * regcache.c (regcache::xfer_part): Remove assertion.
1102
7b700999
PA
11032017-10-17 Pedro Alves <palves@redhat.com>
1104
1105 * xml-support.c (xml_fetch_content_from_file): Call
1106 unique_ptr::release() instead unique_ptr::get() when passing
1107 through xrealloc.
1108
d3037ba6
YQ
11092017-10-17 Yao Qi <yao.qi@linaro.org>
1110
1111 * regcache.c (regcache::xfer_part): Remove parameters read and
1112 write, add parameter is_raw. All callers are updated.
1113
83d5a34d
KS
11142017-10-16 Keith Seitz <keiths@redhat.com>
1115
1116 * c-typeprint.c (enum access_specifier): Moved here from
1117 c_type_print_base.
1118 (output_access_specifier): New function.
1119 (c_type_print_base): Consider typedefs when assessing
1120 whether access labels are needed.
1121 Use output_access_specifier as needed.
1122 Output access specifier for typedefs, if needed.
1123 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
1124 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
1125 fields.
1126 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
1127 accessor macros.
1128
87028b87
TT
11292017-10-16 Tom Tromey <tom@tromey.com>
1130
1131 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
1132 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
1133 * target.c (target_fileio_read_stralloc): Update.
1134 * sparc64-tdep.c (adi_is_addr_mapped): Update.
1135 * target.h (target_fileio_read_stralloc): Return
1136 unique_xmalloc_ptr.
1137
b7b030ad
TT
11382017-10-16 Tom Tromey <tom@tromey.com>
1139
1140 * xml-syscall.c (xml_init_syscalls_info): Update.
1141 * xml-support.c (xinclude_start_include): Update.
1142 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
1143 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
1144 (xml_fetch_content_from_file): Likewise.
1145 * osdata.c (get_osdata): Update.
1146 * target.h (target_read_stralloc, target_get_osdata): Return
1147 unique_xmalloc_ptr.
1148 * solib-aix.c (solib_aix_get_library_list): Update.
1149 * solib-target.c (solib_target_current_sos): Update.
1150 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
1151 * xml-tdesc.c (fetch_available_features_from_target): Update.
1152 (target_fetch_description_xml): Update.
1153 (file_read_description_xml): Update.
1154 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
1155 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
1156 (remote_pid_to_exec_file): Update.
1157 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
1158 (target_get_osdata): Likewise.
1159
b80406ac
TT
11602017-10-16 Tom Tromey <tom@tromey.com>
1161
1162 * remote.c (remote_register_number_and_offset): Use std::vector.
1163 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
1164 (putpkt_binary): Use gdb::def_vector.
1165 (compare_sections_command): Use gdb::byte_vector.
1166
a90ecff8
TT
11672017-10-16 Tom Tromey <tom@tromey.com>
1168
1169 * ppc-linux-nat.c (hwdebug_insert_point): Use
1170 gdb::unique_xmalloc_ptr, XDUP.
1171
2dc0e219
TT
11722017-10-16 Tom Tromey <tom@tromey.com>
1173
1174 * probe.c (parse_probes): Use std::string.
1175 (info_probes_for_ops, enable_probes_command)
1176 (disable_probes_command): Remove cleanups.
1177
b05628f0
TT
11782017-10-16 Tom Tromey <tom@tromey.com>
1179
1180 * buildsym.c (block_compar): Remove.
1181 (end_symtab_get_static_block): Use std::vector.
1182
a79b1bc6
SM
11832017-10-16 Simon Marchi <simon.marchi@ericsson.com>
1184
1185 * memrange.h (struct mem_range): Define operator< and operator==.
1186 (mem_range_s): Remove.
1187 (DEF_VEC_O (mem_range_s)): Remove.
1188 (normalize_mem_ranges): Change parameter type to std::vector.
1189 * memrange.c (compare_mem_ranges): Remove.
1190 (normalize_mem_ranges): Change parameter type to std::vector,
1191 adjust to vector change.
1192 * exec.c (section_table_available_memory): Return vector, remove
1193 parameter.
1194 (section_table_read_available_memory): Adjust to std::vector
1195 change.
1196 * remote.c (remote_read_bytes): Adjust to std::vector
1197 change.
1198 * tracepoint.h (traceframe_available_memory): Change parameter
1199 type to std::vector.
1200 * tracepoint.c (traceframe_available_memory): Change parameter
1201 type to std::vector, adjust.
1202 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
1203 std::vector change.
1204 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1205 unittests/memrange-selftests.c.
1206 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
1207 * gdb/unittests/memrange-selftests.c: New file.
1208
63f0e930
PA
12092017-10-16 Pedro Alves <palves@redhat.com>
1210
1211 * elfread.c (probe_key_free): Rename range-for variable.
1212 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
1213 (find_probe_by_pc, collect_probes): Rename range-for variable.
1214
c40c7bfc
YQ
12152017-10-16 Yao Qi <yao.qi@linaro.org>
1216
1217 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
1218 * features/tic6x-c62x.c: Remove.
1219 * features/tic6x-c64x-linux.c: Remove.
1220 * features/tic6x-c64x.c: Remove.
1221 * features/tic6x-c64xp-linux.c: Remove.
1222 * features/tic6x-c64xp.c: Remove.
1223 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
1224 initialize_tdesc_tic6x_*_linux functions.
1225 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
1226 initialize_tdesc_tic6x_* functions.
1227
df27ae6a
YQ
12282017-10-16 Yao Qi <yao.qi@linaro.org>
1229
1230 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
1231 tic6x-c62x.
1232 * regformats/tic6x-c62x.dat: Remove.
1233 * regformats/tic6x-c64x.dat: Remove.
1234 * regformats/tic6x-c64xp.dat: Remove.
1235
86766165
SM
12362017-10-15 Simon Marchi <simon.marchi@ericsson.com>
1237
1238 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
1239 (the !HAVE_LIBEXPAT version).
1240
824dfcc3
SM
12412017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1242
1243 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
1244 const.
1245
2098b393
SM
12462017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1247
1248 * target.h: Include tracepoint.h.
1249 (enum trace_find_type): Move to tracepoint.h.
1250 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
1251 * tracepoint.h: Don't include target.h
1252 (enum trace_find_type): Move from target.h.
1253 (parse_traceframe_info): Return a unique ptr.
1254 * tracepoint.c (current_traceframe_info): Change type to unique
1255 ptr.
1256 (free_traceframe_info): Remove.
1257 (clear_traceframe_info): Don't manually free
1258 current_traceframe_info.
1259 (free_result): Remove.
1260 (parse_traceframe_info): Return a unique ptr.
1261 (get_traceframe_info): Adjust to unique ptr.
1262 * ctf.c (ctf_traceframe_info): Return a unique ptr.
1263 * remote.c (remote_traceframe_info): Return a unique ptr.
1264 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
1265 ptr.
1266 * target-debug.h (target_debug_print_traceframe_info_up): New
1267 macro.
1268 * target-delegates.c: Regenerate.
1269
4cdd21a8
SM
12702017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1271
1272 * memrange.h (struct mem_range): Add constructors.
1273 * tracepoint.h (struct traceframe_info) <memory>: Change type to
1274 std::vector<mem_range>.
1275 * tracepoint.c (free_traceframe_info): Don't manually free
1276 vector.
1277 (traceframe_info_start_memory): Adjust to vector change.
1278 (traceframe_available_memory): Likewise.
1279 * tracefile-tfile.c (build_traceframe_info): Likewise.
1280 * ctf.c (ctf_traceframe_info): Likewise.
1281
d0d292a2
SM
12822017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1283
1284 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
1285 std::vector<int>.
1286 * tracepoint.c (free_traceframe_info): Deallocate with delete.
1287 (traceframe_info_start_tvar): Adjust to vector change.
1288 (parse_traceframe_info): Allocate with new.
1289 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
1290 vector change.
1291 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
1292 change.
1293 tfile_traceframe_info): Allocate with new.
1294 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
1295 change.
1296
8d3c73ef
SM
12972017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1298
1299 * tracepoint.c (traceframe_info): Rename to...
1300 (current_traceframe_info): ...this.
1301 (clear_traceframe_info): Adjust.
1302 (get_traceframe_info): Adjust.
1303
b129dcac
SM
13042017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1305
1306 * nat/linux-osdata.c: Include algorithm.
1307 (compare_processes): Remove.
1308 (struct pid_pgid_entry): New struct.
1309 (linux_xfer_osdata_processgroups): Use std::vector instead of
1310 XNEWVEC.
1311
af5bf4ad
SM
13122017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1313
1314 * objfiles.h: Don't include symfile.h.
1315 (struct partial_symbol): Remove forward-declaration.
1316 (struct objfile) <global_psymbols, static_psymbols>: Change type
1317 to std::vector<partial_symbol *>.
1318 * objfiles.c (objfile::objfile): Don't memset those fields.
1319 (objfile::~objfile): Don't free those fields.
1320 * psympriv.h (struct psymbol_allocation_list): Remove
1321 forward-declaration.
1322 (add_psymbol_to_list): Change psymbol_allocation_list parameter
1323 to std::vector.
1324 (start_psymtab_common): Change parameters to std::vector.
1325 * psymtab.c: Include algorithm.
1326 (require_partial_symbols): Call shrink_to_fit.
1327 (find_pc_sect_psymbol): Adjust to vector change.
1328 (match_partial_symbol): Likewise.
1329 (lookup_partial_symbol): Likewise.
1330 (psym_relocate): Likewise.
1331 (dump_psymtab): Likewise.
1332 (recursively_search_psymtabs): Likewise.
1333 (compare_psymbols): Remove.
1334 (sort_pst_symbols): Adjust to vector change.
1335 (start_psymtab_common): Likewise.
1336 (end_psymtab_common): Likewise.
1337 (psymbol_bcache_full): De-constify return value.
1338 (add_psymbol_to_bcache): Likewise.
1339 (extend_psymbol_list): Remove.
1340 (append_psymbol_to_list): Adjust to vector change.
1341 (add_psymbol_to_list): Likewise.
1342 (init_psymbol_list): Likewise.
1343 (maintenance_info_psymtabs): Likewise.
1344 (maintenance_check_psymtabs): Likewise.
1345 * symfile.h (struct psymbol_allocation_list): Remove.
1346 * symfile.c (reread_symbols): Adjust to vector change.
1347 * dbxread.c (start_psymtab): Change type of parameters.
1348 (dbx_symfile_read): Adjust to vector change.
1349 (read_dbx_symtab): Likewise.
1350 (start_psymtab): Change type of parameters.
1351 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
1352 (create_partial_symtab): Likewise.
1353 (add_partial_symbol): Likewise.
1354 (write_one_signatured_type): Likewise.
1355 (recursively_write_psymbols): Likewise.
1356 * mdebugread.c (parse_partial_symbols): Likewise.
1357 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
1358 (scan_xcoff_symtab): Adjust to vector change.
1359 (xcoff_initial_scan): Likewise.
1360
3ec5942f
SM
13612017-10-13 Simon Marchi <simon.marchi@ericsson.com>
1362
1363 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
1364
2399fe6a
YQ
13652017-10-13 Yao Qi <yao.qi@linaro.org>
1366
1367 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
1368 Remove s390x-*-expedite, add s390x-expedite.
1369
4bf3f4a8
YQ
13702017-10-13 Yao Qi <yao.qi@linaro.org>
1371
1372 * features/s390-gs-linux64.c: Regenerated.
1373 * features/s390x-gs-linux64.c: Regenerated.
1374
9e86da07
TT
13752017-10-13 Tom Tromey <tom@tromey.com>
1376
1377 * compile/compile-object-run.c (do_module_cleanup): Use delete.
1378 * solib.c (update_solib_list, reload_shared_libraries_1): Use
1379 delete.
1380 * symfile.c (symbol_file_add_with_addrs): Use new.
1381 (symbol_file_add_separate): Update comment.
1382 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
1383 * jit.c (jit_object_close_impl): Use new.
1384 (jit_unregister_code): Use delete.
1385 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
1386 (~objfile): Rename from free_objfile.
1387 (free_objfile_separate_debug, do_free_objfile_cleanup)
1388 (free_all_objfiles, objfile_purge_solibs): Use delete.
1389 * objfiles.h (struct objfile): Add constructor and destructor.
1390 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
1391 (allocate_objfile, free_objfile): Don't declare.
1392 (struct objstats): Add initializers.
1393
c2508e90
SM
13942017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1395
1396 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
1397 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
1398 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
1399 * gdbarch.h: Regenerate.
1400 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
1401 Adjust comment.
1402 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
1403 (i386_displaced_step_fixup): Adjust comment.
1404 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
1405
a900ff72
TT
14062017-10-12 Tom Tromey <tom@tromey.com>
1407
1408 * prologue-value.h (pv_area::store_would_trash): Return bool.
1409 (pv_area::find_reg): Likewise.
1410 * prologue-value.c (pv_area::store_would_trash): Return bool.
1411 (pv_area::find_reg): Likewise.
1412
f7b7ed97
TT
14132017-10-12 Tom Tromey <tom@tromey.com>
1414
1415 * s390-linux-tdep.c (s390_store, s390_load)
1416 (s390_check_for_saved, s390_analyze_prologue): Update.
1417 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
1418 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
1419 * prologue-value.h (class pv_area): Move from prologue-value.c.
1420 Change names of members. Add constructor, destructor, member
1421 functions.
1422 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
1423 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
1424 (pv_area_fetch, pv_area_scan): Don't declare.
1425 * prologue-value.c (struct pv_area::area_entry): Now member of
1426 pv_area.
1427 (struct pv_area): Move to prologue-value.h.
1428 (pv_area::pv_area): Rename from make_pv_area.
1429 (pv_area::~pv_area): Rename from free_pv_area.
1430 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
1431 (clear_entries, find_entry, overlaps, store_would_trash, store)
1432 (fetch, find_reg, scan): Now member of pv_area.
1433 Remove "area" argument. Update.
1434 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
1435 Update.
1436 * mn10300-tdep.c (push_reg, check_for_saved)
1437 (mn10300_analyze_prologue): Update.
1438 * mep-tdep.c (is_arg_spill, check_for_saved)
1439 (mep_analyze_prologue): Update.
1440 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
1441 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
1442 (m32c_is_struct_return, m32c_analyze_prologue): Update.
1443 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
1444 Update.
1445 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
1446 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
1447
466eecee
SM
14482017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1449
1450 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
1451 * linux-nat.c (linux_nat_delete_thread): New variable.
1452 (lwp_free): Invoke linux_nat_delete_thread if set.
1453 (linux_nat_set_delete_thread): New function.
1454 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
1455 thread delete callback.
1456 * arm-linux-nat.c (arm_linux_delete_thread): New function.
1457 (_initialize_arm_linux_nat): Assign thread delete callback.
1458 * s390-linux-nat.c (s390_delete_thread): New function.
1459 (_initialize_s390_nat): Assign thread delete callback.
1460 * x86-linux-nat.c (x86_linux_add_target): Likewise.
1461 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
1462 function.
1463 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
1464 declaration.
1465 * nat/x86-linux.c (x86_linux_delete_thread): New function.
1466 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
1467
f71c8822
TT
14682017-10-09 Tom Tromey <tom@tromey.com>
1469
1470 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
1471 std::string.
1472 * tui/tui-layout.c (enum tui_status): Use std::string.
1473
981a3fb3
TT
14742017-10-11 Tom Tromey <tom@tromey.com>
1475
1476 * gdbthread.h (thread_command): Constify.
1477 * inferior.h (detach_command): Constify.
1478 * top.h (set_history, show_history): Constify.
1479 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
1480 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
1481 * bsd-kvm.c (bsd_kvm_cmd): Constify.
1482 * printcmd.c (set_command): Constify.
1483 (non_const_set_command): New function.
1484 * dcache.c (set_dcache_command, show_dcache_command): Constify.
1485 * breakpoint.c (enable_command, disable_command, delete_command)
1486 (catch_command, tcatch_command, set_breakpoint_cmd)
1487 (show_breakpoint_cmd): Constify.
1488 * macrocmd.c (macro_command): Constify.
1489 * infcmd.c (unset_command, kill_command, detach_command)
1490 (info_proc_cmd): Constify.
1491 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
1492 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
1493 (info_auto_load_cmd): Constify.
1494 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
1495 (unset_tdesc_cmd): Constify.
1496 * ada-lang.c (set_ada_command, show_ada_command)
1497 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
1498 * guile/guile.c (set_guile_command, show_guile_command)
1499 (info_guile_command): Constify.
1500 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
1501 Constify.
1502 * skip.c (skip_command): Constify.
1503 * compile/compile.c (_initialize_compile): Constify.
1504 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
1505 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
1506 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
1507 (maint_btrace_pt_show_cmd): Constify.
1508 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
1509 Constify.
1510 * python/python.c (user_show_python, user_set_python): Constify.
1511 * mips-tdep.c (set_mips_command, show_mips_command)
1512 (set_mipsfpu_command): Constify.
1513 * record-btrace.c (cmd_record_btrace_start)
1514 (cmd_set_record_btrace, cmd_show_record_btrace)
1515 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
1516 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
1517 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
1518 Constify.
1519 * symfile.c (overlay_command): Constify.
1520 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
1521 * cli/cli-logging.c (set_logging_command, show_logging_command):
1522 Constify.
1523 * cli/cli-dump.c (dump_command, append_command)
1524 (srec_dump_command, ihex_dump_command, verilog_dump_command)
1525 (tekhex_dump_command, binary_dump_command)
1526 (binary_append_command): Constify.
1527 * cli/cli-decode.c (struct cmd_list_element): Change type of
1528 "fun".
1529 * cli/cli-cmds.c (info_command, show_command, set_debug)
1530 (show_debug): Constify.
1531 (show_command): Add non-const overload.
1532 * top.c (set_history, show_history): Constify.
1533 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
1534 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
1535 * target.c (target_command): Constify.
1536 * sparc64-tdep.c (info_adi_command): Constify.
1537 * record-full.c (cmd_record_full_start): Constify.
1538 (set_record_full_command): Constify. Fix typo.
1539 (show_record_full_command): Constify.
1540 * thread.c (thread_command, thread_apply_command): Constify.
1541 * memattr.c (dummy_cmd): Constify.
1542 * value.c (function_command): Constify.
1543 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
1544 * probe.c (info_probes_command): Constify.
1545 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
1546 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
1547 (show_thread_cmd, set_thread_default_cmd)
1548 (show_thread_default_cmd): Constify.
1549 (check_empty): Constify.
1550 * tracepoint.c (tfind_command): Constify.
1551 * cp-support.c (maint_cplus_command): Constify.
1552 * windows-tdep.c (info_w32_command): Constify.
1553 * record.c (cmd_record_start, set_record_command)
1554 (show_record_command, info_record_command, cmd_record_goto):
1555 Constify.
1556 * ravenscar-thread.c (set_ravenscar_command)
1557 (show_ravenscar_command): Constify.
1558 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
1559 Constify.
1560 (add_internal_problem_command): Remove casts.
1561 * arc-tdep.c (maintenance_print_arc_command): Constify.
1562 * valprint.c (set_print, show_print, set_print_raw)
1563 (show_print_raw): Constify.
1564 * maint.c (maintenance_command, maintenance_info_command)
1565 (maintenance_print_command, maintenance_set_cmd)
1566 (maintenance_show_cmd, set_per_command_cmd)
1567 (show_per_command_cmd, maintenance_check_command): Constify.
1568 * language.c (set_check, show_check): Constify.
1569 * typeprint.c (show_print_type, set_print_type): Constify.
1570 * go32-nat.c (go32_info_dos_command): Constify.
1571
fdf44873
TT
15722017-10-11 Tom Tromey <tom@tromey.com>
1573
1574 * breakpoint.c (prepare_re_set_context): Remove.
1575 (breakpoint_re_set_one): Update. Don't use cleanups.
1576 (breakpoint_re_set): Use scoped_restore, std::string, and
1577 scoped_restore_current_language.
1578
81b1e71c
TT
15792017-10-11 Tom Tromey <tom@tromey.com>
1580
1581 * breakpoint.c (commands_command_1): Use std::string.
1582 (cleanup_executing_breakpoints): Remove.
1583 (bpstat_do_actions_1): Use scoped_restore.
1584 (bpstat_check_watchpoint): Use std::string.
1585 (decode_static_tracepoint_spec): Likewise.
1586 (break_range_command): Likewise.
1587 (watch_command_1): Likewise.
1588 (compare_breakpoints): Change argument types.
1589 (clear_command): Use std::vector.
1590 (cleanup_executing_breakpoints): Remove.
1591 (update_global_location_list): Use unique_xmalloc_ptr.
1592 (strace_command): Remove unused declaration.
1593
4f9d9906
JB
15942017-10-11 John Baldwin <jhb@FreeBSD.org>
1595
1596 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
1597 * NEWS: Mention new FreeBSD/arm native configuration.
1598 * configure.host: Add arm*-*-freebsd*.
1599 * configure.nat: Likewise.
1600 * arm-fbsd-nat.c: New file.
1601
7176dfd2
JB
16022017-10-11 John Baldwin <jhb@FreeBSD.org>
1603
1604 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
1605 (ALLDEPFILES): Add arm-fbsd-tdep.c.
1606 * NEWS: Mention new FreeBSD/arm target.
1607 * configure.tgt: Add arm*-*-freebsd*.
1608 * arm-fbsd-tdep.c: New file.
1609 * arm-fbsd-tdep.h: New file.
1610
fe220226
MR
16112017-10-11 Maciej W. Rozycki <macro@imgtec.com>
1612
1613 * linux-tdep.c (linux_make_corefile_notes): Remove call to
1614 `gdbarch_elfcore_write_linux_prpsinfo'.
1615 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
1616 method.
1617 (elf_internal_linux_prpsinfo): Remove declaration.
1618 * gdbarch.h: Regenerate.
1619 * gdbarch.c: Regenerate.
1620
a2f63b2e
MR
16212017-10-11 Maciej W. Rozycki <macro@imgtec.com>
1622
1623 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
1624 `set_gdbarch_elfcore_write_linux_prpsinfo'.
1625
458ca1d0
PA
16262017-10-11 Pedro Alves <palves@redhat.com>
1627
1628 * breakpoint.c (reattach_breakpoints): Delete.
1629 * breakpoint.h (reattach_breakpoints): Delete.
1630
905014d7
SM
16312017-10-11 Simon Marchi <simon.marchi@ericsson.com>
1632
1633 * symfile.c (registered_sym_fns): Make struct, not typedef.
1634 (DEF_VEC_O (registered_sym_fns)): Remove.
1635 (symtab_fns): Change type to std::vector.
1636 (add_symtab_fns): Adjust.
1637 (find_sym_fns): Adjust.
1638
56d704da
AK
16392017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
1640
1641 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
1642 * arc-tdep.h (arc_arch_is_em): New function.
1643 (arc_arch_is_hs): Likewise.
1644
7fa29be9
EB
16452017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
1646
1647 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
1648 parentheses in the declaration.
1649 (macro_lookup_inclusion): Likewise.
1650 (macro_lookup_definition): Likewise.
1651 * p-lang.h (pascal_builtin_types): Likewise.
1652 * tui/tui-data.c (tui_win_list): Likewise.
1653 * tui/tui-data.h (tui_win_list): Likewise.
1654 * utils.h (make_cleanup_free_section_addr_info): Likewise.
1655
d9b477e3
KB
16562017-10-11 Mark Rages <markrages@gmail.com>
1657
1658 * target-memory.c (block_boundaries): Fix for block address not
1659 aligned on block size.
1660
65630365
PA
16612017-10-10 Pedro Alves <palves@redhat.com>
1662 Tom Tromey <tom@tromey.com>
1663
1664 * breakpoint.c (struct captured_breakpoint_query_args)
1665 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
1666 (print_breakpoint): New.
1667 * breakpoint.h (print_breakpoint): Declare.
1668 * common/common-exceptions.h (enum return_reason): Remove
1669 references to catch_exceptions.
1670 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
1671 Delete.
1672 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
1673 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
1674 * gdb.h: Delete.
1675 * gdbthread.h (thread_select): Declare.
1676 * mi/mi-cmd-break.c: Don't include gdb.h.
1677 (breakpoint_notify): Use print_breakpoint.
1678 * mi/mi-cmd-catch.c: Don't include gdb.h.
1679 * mi/mi-interp.c: Don't include gdb.h.
1680 (mi_print_breakpoint_for_event): New.
1681 (mi_breakpoint_created, mi_breakpoint_modified): Use
1682 mi_print_breakpoint_for_event.
1683 * mi/mi-main.c: Don't include gdb.h.
1684 (mi_cmd_thread_select): Parse the global thread ID here. Use
1685 thread_select instead of gdb_thread_select.
1686 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
1687 of using gdb_list_thread_ids.
1688 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
1689 FILEIO_ENOSYS here.
1690 (remote_fileio_request): Use TRY/CATCH instead of
1691 catch_exceptions.
1692 * symfile-mem.c (struct symbol_file_add_from_memory_args)
1693 (symbol_file_add_from_memory_wrapper): Delete.
1694 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
1695 * thread.c: Don't include gdb.h.
1696 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
1697 (thread_alive): Use thread_select.
1698 (do_captured_thread_select): Delete, parts salvaged as ...
1699 (thread_select): ... this new function.
1700 (gdb_thread_select): Delete.
1701
bf469271
PA
17022017-10-10 Pedro Alves <palves@redhat.com>
1703 Tom Tromey <tom@tromey.com>
1704
1705 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
1706 and reverse logic.
1707 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
1708 No longer macros. Instead ...
1709 (enum wp_check_result): They're now values of this new
1710 enumeration.
1711 (watchpoint_check): Change return type to wp_check_result and
1712 parameter type to bpstat.
1713 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
1714 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
1715 catch_errors. Reverse logic of watchpoint_check call.
1716 (breakpoint_re_set_one): Now returns void and takes a breakpoint
1717 pointer as parameter.
1718 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
1719 * common/common-exceptions.c (throw_exception_sjlj): Update
1720 comments to avoid mentioning catch_errors.
1721 * exceptions.c (catch_errors): Delete.
1722 * exceptions.h: Update comments to avoid mentioning catch_errors.
1723 (catch_errors_ftype, catch_errors): Delete.
1724 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
1725 (hook_stop_stub): Delete.
1726 (restore_selected_frame): Change return type to void, and
1727 parameter type to const frame_id &.
1728 (restore_infcall_control_state): Use TRY/CATCH instead of
1729 catch_errors.
1730 * main.c (captured_command_loop): Return void and remove
1731 parameter. Remove references to catch_errors.
1732 (captured_main): Use TRY/CATCH instead of catch_errors.
1733 * objc-lang.c (objc_submethod_helper_data)
1734 (find_objc_msgcall_submethod_helper): Delete.
1735 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
1736 catch_errors.
1737 * record-full.c (record_full_message): Return void.
1738 (record_full_message_args, record_full_message_wrapper): Delete.
1739 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
1740 instead of catch_errors.
1741 * solib-aix.c (solib_aix_open_symbol_file_object): Change
1742 parameter type to int.
1743 * solib-darwin.c (open_symbol_file_object): Ditto.
1744 * solib-dsbt.c (open_symbol_file_object): Ditto.
1745 * solib-frv.c (open_symbol_file_object): Ditto.
1746 * solib-svr4.c (open_symbol_file_object): Ditto.
1747 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
1748 * solib.c (update_solib_list): Use TRY/CATCH instead of
1749 catch_errors.
1750 * solist.h (struct target_so_ops) <open_symbol_file_object>:
1751 Change type.
1752 * symmisc.c (struct print_symbol_args): Remove.
1753 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
1754 (print_symbol): Change type.
1755 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
1756 and remove parameters.
1757 (catch_errors): New.
1758 (get_windows_debug_event): Adjust.
1759
1a56bfa5
TT
17602017-10-09 Tom Tromey <tom@tromey.com>
1761
1762 * mi/mi-main.c (free_splay_tree): Remove.
1763 (list_available_thread_groups): Use splay_tree_up.
1764 * common/gdb_splay_tree.h: New file.
1765
0c478e2d
TT
17662017-10-09 Tom Tromey <tom@tromey.com>
1767
1768 * mi/mi-main.c (do_nothing): Remove.
1769 (list_available_thread_groups): Update.
1770
cbd2b4e3
PA
17712017-10-09 Pedro Alves <palves@redhat.com>
1772
1773 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
1774 reading registers when switching context.
1775
a181c0bf
JB
17762017-10-09 John Baldwin <jhb@FreeBSD.org>
1777
1778 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
1779 (fbsd_convert_siginfo): Likewise.
1780 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
1781
6e66f753
SM
17822017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
1783
1784 * configure.ac (try_guile_versions): Remove guile-2.2.
1785 * configure: Regenerate.
1786
890e9790
TT
17872017-10-09 Tom Tromey <tom@tromey.com>
1788
1789 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
1790 (COMPILE.pre): Use $(CXX).
1791
109483d9
PA
17922017-10-09 Pedro Alves <palves@redhat.com>
1793
1794 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
1795 Use bool.
1796 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
1797 * cp-support.h (cp_remove_params): Now returns a
1798 gdb::unique_xmalloc_ptr.
1799 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
1800 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
1801 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
1802 returning a gdb::unique_xmalloc_ptr.
1803 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
1804 * stack.c (find_frame_funname): Adjust to cp_remove_params
1805 returning a gdb::unique_xmalloc_ptr.
1806
791afaa2
TT
18072017-10-08 Tom Tromey <tom@tromey.com>
1808
1809 * dwarf2read.c (dwarf2_get_dwz_file): Use
1810 gdb::unique_xmalloc_ptr.
1811 (find_slot_in_mapped_hash): Likewise.
1812 (dwarf2_physname): Likewise.
1813 (create_dwo_unit_in_dwp_v1): Use std::string.
1814 (create_dwo_unit_in_dwp_v2): Likewise.
1815 (lookup_dwo_cutu): Likewise.
1816 (inherit_abstract_dies): Use std::vector.
1817 (read_array_type): Likewise.
1818 (dwarf_decode_macros): Remove unused declaration.
1819 (unsigned_int_compar): Remove.
1820 (dwarf2_build_psymtabs_hard): Use scoped_restore.
1821 (psymtabs_addrmap_cleanup): Remove.
1822
30a9c02f
TT
18232017-10-08 Tom Tromey <tom@tromey.com>
1824
1825 * frame-unwind.c (frame_unwind_try_unwinder): Update.
1826 * frame.h (frame_cleanup_after_sniffer): Declare.
1827 (frame_prepare_for_sniffer): Return void.
1828 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
1829 type of argument.
1830 (frame_prepare_for_sniffer): Return void.
1831
757325a3
TT
18322017-10-08 Tom Tromey <tom@tromey.com>
1833
1834 * utils.h (make_cleanup_value_free): Remove.
1835 * utils.c (do_value_free, struct cleanup): Remove.
1836 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
1837 Use gdb_value_up.
1838 * value.h (struct value_deleter): New.
1839 (gdb_value_up): New typedef.
1840
b9c04fb2
TT
18412017-10-08 Tom Tromey <tom@tromey.com>
1842
1843 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
1844 (make_cleanup_free_search_symbols): Remove.
1845 (search_symbols): Return std::vector.
1846 (symbol_search::compare_search_syms): Now member of
1847 symbol_search. Change arguments.
1848 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
1849 (symtab_symbol_info, rbreak_command): Update.
1850 * symtab.h (struct symbol_search) <next>: Remove.
1851 Add constructors.
1852 (symbol_search::operator<): New function.
1853 (symbol_search::operator==): New function.
1854 (search_symbols): Remove std::vector.
1855 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
1856 (symbol_search::compare_search_syms): Declare.
1857
0d28b0a5
YQ
18582017-10-06 Yao Qi <yao.qi@linaro.org>
1859
1860 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
1861 arch/aarch64-insn.o.
1862 Remove one rule.
1863 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
1864
71917808
YQ
18652017-10-06 Yao Qi <yao.qi@linaro.org>
1866
1867 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
1868 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
1869 arch/arm-linux.o respectively.
1870 * configure.tgt: Likewise.
1871
2081b2b2
YQ
18722017-10-06 Yao Qi <yao.qi@linaro.org>
1873
1874 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
1875 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
1876
a1b85d28
PA
18772017-10-06 Pedro Alves <palves@redhat.com>
1878
1879 * windows-nat.c: Include <algorithm>.
1880
d97987e2
YQ
18812017-10-06 Yao Qi <yao.qi@linaro.org>
1882
1883 * configure.tgt (i386_tobjs): New variable.
1884 (amd64_tobjs): New variable.
1885 Set $cpu_obs and $os_obs.
1886
f38307f5
YQ
18872017-10-06 Yao Qi <yao.qi@linaro.org>
1888
1889 * Makefile.in (CONFIG_SRC_SUBDIR): New.
1890 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
1891 (clean): Remove object files and dependency files.
1892 (distclean): Remove the directory.
1893 * configure.ac: Invoke AC_CONFIG_COMMANDS.
1894 * configure: Re-generated.
1895 * configure.tgt: Replace amd64.o with arch/amd64.o.
1896
2f924de6
JM
18972017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
1898
1899 PR build/22188
1900 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
1901 and SETEND.
1902
2fd9d7ca
PA
19032017-10-05 Pedro Alves <palves@redhat.com>
1904
1905 * linux-nat.c (linux_child_follow_fork): When following the parent
1906 and detaching the child, consult the parent thread's architecture
1907 instead of the child's.
1908
d13b8493
UW
19092017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
1910
1911 * ax.h: Do not include "doublest.h".
1912 (union agent_val): Remove.
1913
3b4b2f16
UW
19142017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
1915
1916 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
1917 (decimal_to_string): Return std::string object.
1918 (decimal_from_string): Accept std::string object. Return bool.
1919 (decimal_from_integral, decimal_from_doublest): Remove.
1920 (decimal_from_longest): Add prototype.
1921 (decimal_from_ulongest): Likewise.
1922 (decimal_to_longest): Likewise.
1923 (decimal_from_doublest): Likewise.
1924 * dfp.c: Do not include "gdbtypes.h" or "value.h".
1925 (MAX_DECIMAL_STRING): Move here.
1926 (decimal_to_string): Return std::string object.
1927 (decimal_from_string): Accept std::string object. Return bool.
1928 (decimal_from_integral): Remove, replace by ...
1929 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
1930 (decimal_to_longest): New function.
1931 (decimal_from_floating): Remove, replace by ...
1932 (decimal_from_doublest): ... this new function.
1933 (decimal_to_doublest): Update to new decimal_to_string interface.
1934
1935 * value.c (unpack_long): Use decimal_to_longest.
1936 * valops.c (value_cast): Use decimal_from_doublest instead of
1937 decimal_from_floating. Use decimal_from_[u]longest isntead of
1938 decimal_from_integral.
1939 * valarith.c (value_args_as_decimal): Likewise.
1940 * valprint.c (print_decimal_floating): Update to new
1941 decimal_to_string interface.
1942 * printcmd.c (printf_decfloat): Likewise.
1943 * c-exp.y (parse_number): Update to new decimal_from_string interface.
1944
1841ee5d
UW
19452017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
1946
1947 * doublest.h: Do not include "floatformat.h". Remove stale comments.
1948 * gdbtypes.c: Include "floatformat.h".
1949 * value.c: Likewise.
1950 * m68k-tdep.c: Likewise.
1951
1952 * findvar.c: Do not include "floatformat.h".
1953 * amd64-darwin-tdep.c: Likewise.
1954 * arm-linux-tdep.c: Likewise.
1955 * i386-darwin-tdep.c: Likewise.
1956 * i387-tdep.c: Likewise.
1957 * m68k-linux-tdep.c: Likewise.
1958 * mep-tdep.c: Likewise.
1959 * mips-tdep.c: Likewise.
1960 * nios2-tdep.c: Likewise.
1961 * s390-linux-tdep.c: Likewise.
1962 * sparc-obsd-tdep.c: Likewise.
1963 * sparc-tdep.c: Likewise.
1964 * sparc64-tdep.c: Likewise.
1965 * spu-tdep.c: Likewise.
1966 * tic6x-tdep.c: Likewise.
1967 * tilegx-tdep.c: Likewise.
1968 * vax-tdep.c: Likewise.
1969 * xstormy16-tdep.c: Likewise.
1970 * xtensa-tdep.c: Likewise.
1971
1972 * top.c: Do not include "doublest.h".
1973 * aarch64-tdep.c: Likewise.
1974 * alpha-tdep.c: Likewise.
1975 * arm-linux-tdep.c: Likewise.
1976 * m68k-linux-tdep.c: Likewise.
1977 * tilegx-tdep.c: Likewise.
1978 * xstormy16-tdep.c: Likewise.
1979
a80a6471
JB
19802017-10-05 John Baldwin <jhb@FreeBSD.org>
1981
1982 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
1983 (mipsn32_fbsd_sigframe): Define.
1984 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
1985 for FreeBSD/mipsn32.
1986
12c4bd7f
JB
19872017-10-05 John Baldwin <jhb@FreeBSD.org>
1988
1989 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
1990 AT_HWCAP.
1991
c91933e9
TG
19922017-10-05 Tristan Gingold <tgingold@free.fr>
1993
1994 * MAINTAINERS (Misc): Update my email address.
1995
5cd63fda
PA
19962017-10-04 Pedro Alves <palves@redhat.com>
1997
1998 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
1999 it instead of target_gdbarch.
2000 (get_remote_state, get_remote_packet_size): Adjust
2001 get_remote_arch_state calls, passing down target_gdbarch
2002 explicitly.
2003 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
2004 'gdbarch' and use it instead of target_gdbarch.
2005 (get_memory_packet_size): Adjust get_remote_arch_state calls,
2006 passing down target_gdbarch explicitly.
2007 (struct stop_reply) <arch>: New field.
2008 (remote_parse_stop_reply): Use the stopped thread's architecture,
2009 not the current inferior's. Save the architecture in the
2010 stop_reply.
2011 (process_stop_reply): Use the stop reply's architecture.
2012 (process_g_packet, remote_fetch_registers)
2013 (remote_prepare_to_store, store_registers_using_G)
2014 (remote_store_registers): Adjust get_remote_arch_state calls,
2015 using the regcache's architecture.
2016 (remote_get_trace_status): Adjust get_remote_arch_state calls,
2017 passing down target_gdbarch explicitly.
2018 * spu-multiarch.c (spu_thread_architecture): Defer to the target
2019 beneath instead of calling target_gdbarch.
2020 * target.c (default_thread_architecture): Use the specified
2021 inferior's architecture, instead of the current inferior's
2022 architecture (via target_gdbarch).
2023
ed4227b7
PA
20242017-10-04 Pedro Alves <palves@redhat.com>
2025
2026 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
2027 case.
2028 (regcache_print): Handle !target_has_registers here instead.
2029
55b11ddf
PA
20302017-10-04 Pedro Alves <palves@redhat.com>
2031
2032 * frame.c (create_test_frame): Delete.
2033 * frame.h (create_test_frame): Delete.
2034 * gdbarch-selftests.c: Include gdbthread.h and target.h.
2035 (class regcache_test): Delete.
2036 (test_target_has_registers, test_target_has_stack)
2037 (test_target_has_memory, test_target_prepare_to_store)
2038 (test_target_store_registers): New functions.
2039 (test_target_ops): New class.
2040 (register_to_value_test): Error out if there's already a
2041 process_stratum (or higher) target pushed. Create a fuller mock
2042 environment, with mock target_ops, inferior, address space, thread
2043 and inferior_ptid.
2044 * progspace.c (struct address_space): Move to ...
2045 * progspace.h (struct address_space): ... here.
2046 * regcache.h (regcache::~regcache, regcache::raw_write)
2047 [GDB_SELF_TEST]: No longer virtual.
2048
4c71c105
SM
20492017-10-04 Simon Marchi <simon.marchi@ericsson.com>
2050
2051 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
2052
73dcd72d
PA
20532017-10-04 Pedro Alves <palves@redhat.com>
2054
2055 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
2056 out of 'between TRY and CATCH'.
2057
44704526
PA
20582017-10-04 Pedro Alves <palves@redhat.com>
2059
2060 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
2061 * common/common-exceptions.h (TRY): Open an outermost scope.
2062 Expand intro comment.
2063 (CATCH): Reindent.
2064 (END_CATCH): Close the outermost scope.
2065 * completer.c (complete_line_internal): Add missing END_CATCH.
2066
bc3b087d
SDJ
20672017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2068
2069 * NEWS (Changes since GDB 8.0): Add entry about new
2070 'set-cwd-on-gdbserver' feature.
2071 (New remote packets): Add entry for QSetWorkingDir.
2072 * common/common-inferior.h (set_inferior_cwd): New prototype.
2073 * infcmd.c (set_inferior_cwd): Remove "static".
2074 (show_cwd_command): Expand text to include remote debugging.
2075 * remote.c: Add PACKET_QSetWorkingDir.
2076 (remote_protocol_features) <QSetWorkingDir>: New entry for
2077 PACKET_QSetWorkingDir.
2078 (extended_remote_set_inferior_cwd): New function.
2079 (extended_remote_create_inferior): Call
2080 "extended_remote_set_inferior_cwd".
2081 (_initialize_remote): Call "add_packet_config_cmd" for
2082 QSetWorkingDir.
2083
d092c5a2
SDJ
20842017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2085
2086 * NEWS (New commands): Mention "set/show cwd".
2087 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
2088 "cd" command's help text.
2089 * common/common-inferior.h (get_inferior_cwd): New prototype.
2090 * infcmd.c (inferior_cwd_scratch): New global variable.
2091 (set_inferior_cwd): New function.
2092 (get_inferior_cwd): Likewise.
2093 (set_cwd_command): Likewise.
2094 (show_cwd_command): Likewise.
2095 (_initialize_infcmd): Add "set/show cwd" commands.
2096 * inferior.h (class inferior) <cwd>: New field.
2097 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
2098 (fork_inferior): Change inferior's cwd before its execution.
2099 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
2100 to CreateProcess.
2101
7da0a886
SDJ
21022017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2103
2104 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
2105 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
2106 (COMMON_OBS): Add gdb_tilde_expand.o.
2107 * common/gdb_tilde_expand.c: New file.
2108 * common/gdb_tilde_expand.h: Likewise.
2109
db8dd160
MR
21102017-10-03 Maciej W. Rozycki <macro@imgtec.com>
2111
2112 * gdbarch.sh (objfile): Remove duplicate declaration.
2113 * gdbarch.h: Regenerate.
2114
f8bfbf22
TT
21152017-10-03 Tom Tromey <tom@tromey.com>
2116
2117 * utils.c (internal_vproblem): Use string_vprintf.
2118
5178ed48
TT
21192017-10-03 Tom Tromey <tom@tromey.com>
2120
2121 * printcmd.c (info_symbol_command): Use std::string.
2122
8cff8730
TT
21232017-10-03 Tom Tromey <tom@tromey.com>
2124
2125 * top.c (gdb_safe_append_history): Use std::string.
2126
895b8f30
TT
21272017-10-03 Tom Tromey <tom@tromey.com>
2128
2129 * event-top.c (stdin_event_handler): Update.
2130 * main.c (captured_main_1): Update.
2131 * top.h (make_delete_ui_cleanup): Remove.
2132 (struct ui): Add constructor and destructor.
2133 (new_ui, delete_ui): Remove.
2134 * top.c (make_delete_ui_cleanup): Remove.
2135 (new_ui_command): Use std::unique_ptr.
2136 (delete_ui_cleanup): Remove.
2137 (ui::ui): Rename from new_ui. Update.
2138 (free_ui): Remove.
2139 (ui::~ui): Rename from delete_ui. Update.
2140
0efef640
TT
21412017-10-03 Tom Tromey <tom@tromey.com>
2142
2143 * symfile.c (load_progress): Use gdb::byte_vector.
2144
245ad7d3
TT
21452017-10-03 Tom Tromey <tom@tromey.com>
2146
2147 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
2148 declaration.
2149 * printcmd.c (x_command): Remove unused declaration.
2150 * symfile.c (symbol_file_command): Remove unused declaration.
2151
e05550d7
TT
21522017-10-03 Tom Tromey <tom@tromey.com>
2153
2154 * utils.c (internal_vproblem): Use std::string.
2155 (defaulted_query): Likewise.
2156
b95de2b7
TT
21572017-10-03 Tom Tromey <tom@tromey.com>
2158
2159 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
2160 * top.c (execute_command_to_string): Update.
2161 * utils.c (make_cleanup_restore_page_info): Remove.
2162 (do_restore_page_info_cleanup): Remove.
2163 (set_batch_flag_and_restore_page_info):
2164 New.
2165 (make_cleanup_restore_page_info): Remove.
2166 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
2167 (~set_batch_flag_and_restore_page_info): New
2168 (make_cleanup_restore_uinteger): Remove.
2169 (make_cleanup_restore_integer): Remove.
2170 (struct restore_integer_closure): Remove.
2171 (restore_integer): Remove.
2172 * utils.h (struct set_batch_flag_and_restore_page_info): New
2173 class.
2174 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
2175 (make_cleanup_restore_page_info): Remove.
2176 (make_cleanup_restore_uinteger) Remove.
2177 (make_cleanup_restore_integer) Remove.
2178
07036511
TT
21792017-10-03 Tom Tromey <tom@tromey.com>
2180
2181 * record-full.h (record_full_gdb_operation_disable_set): Return
2182 scoped_restore_tmpl<int>.
2183 * infrun.c (adjust_pc_after_break): Update.
2184 (handle_signal_stop): Update.
2185 * record-full.c (record_full_gdb_operation_disable_set): Return
2186 scoped_restore_tmpl<int>.
2187 (record_full_wait_1, record_full_insert_breakpoint)
2188 (record_full_remove_breakpoint, record_full_save)
2189 (record_full_goto_insn): Update.
2190
45320ffa
TT
21912017-10-02 Tom Tromey <tom@tromey.com>
2192
2193 PR rust/22236:
2194 * rust-lang.c (rust_val_print_str): New function.
2195 (val_print_struct): Call it.
2196 (rust_subscript): Preserve name of slice type.
2197
b3e3859b
TT
21982017-10-02 Tom Tromey <tom@tromey.com>
2199
2200 * rust-lang.c (rust_subscript): Handle slices in
2201 EVAL_AVOID_SIDE_EFFECTS case.
2202
01af5e0d
TT
22032017-10-02 Tom Tromey <tom@tromey.com>
2204
2205 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
2206
888e3ddb
TT
22072017-10-02 Tom Tromey <tom@tromey.com>
2208
2209 * rust-lang.h (rust_slice_type): Add "extern".
2210
cc536b21
PA
22112017-10-02 Tom Tromey <tom@tromey.com>
2212 Pedro Alves <palves@redhat.com>
2213
2214 * ada-lang.h (ada_exc_info::operator<): Make const.
2215 (ada_exc_info::operator==): Make const.
2216 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
2217 Make const.
2218
386c8614
TT
22192017-09-29 Tom Tromey <tom@tromey.com>
2220
2221 * target.c (read_whatever_is_readable): Change type of "result".
2222 Update.
2223 (free_memory_read_result_vector): Remove.
2224 (read_memory_robust): Change return type. Update.
2225 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
2226 bin2hex, std::string.
2227 * target.h (memory_read_result_s): Remove typedef.
2228 (free_memory_read_result_vector): Remove.
2229 (read_memory_robust): Return std::vector.
2230
789c4b5e
TT
22312017-09-29 Tom Tromey <tom@tromey.com>
2232
2233 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
2234
ab816a27
TT
22352017-09-29 Tom Tromey <tom@tromey.com>
2236
2237 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
2238 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
2239 operator< and operator==.
2240 (ada_exceptions_list): Return a std::vector.
2241 * ada-lang.c (ada_exc_info::operator<): Rename from
2242 compare_ada_exception_info.
2243 (ada_exc_info::operator==): New.
2244 (sort_remove_dups_ada_exceptions_list): Change type of
2245 "exceptions".
2246 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
2247 (ada_add_global_exceptions): Likewise.
2248 (ada_exceptions_list_1): Return a std::vector.
2249 (ada_exceptions_list): Likewise.
2250
52f9abe4
TT
22512017-09-29 Tom Tromey <tom@tromey.com>
2252
2253 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
2254 'std::set *'.
2255 (print_one_inferior): Update.
2256 (free_vector_of_ints): Remove.
2257 (list_available_thread_groups): Change "ids" to std::set.
2258 (mi_cmd_list_thread_groups): Update.
2259 (struct collect_cores_data) <core>: Now a std::set.
2260 (collect_cores): Update.
2261 (unique): Remove.
2262 (print_one_inferior): Update.
2263
dcd5ddcc
TT
22642017-09-29 Tom Tromey <tom@tromey.com>
2265
2266 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
2267 (mi_execute_async_cli_command): Likewise.
2268 (mi_cmd_trace_frame_collected): Use field_fmt.
2269
45d288cc
TT
22702017-09-29 Tom Tromey <tom@tromey.com>
2271
2272 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
2273 gdb::byte_vector.
2274
6afe2f4a
TT
22752017-09-29 Tom Tromey <tom@tromey.com>
2276
2277 * mi/mi-parse.c (mi_parse): Remove unused declaration.
2278
9813429a
TT
22792017-09-29 Tom Tromey <tom@tromey.com>
2280
2281 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
2282
2d6960b4
TT
22832017-09-29 Tom Tromey <tom@tromey.com>
2284
2285 * varobj.h (varobj_gen_name): Return std::string.
2286 * varobj.c (varobj_gen_name): Return std::string.
2287 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
2288 (mi_cmd_var_delete): Don't copy "name".
2289
784c453a
TT
22902017-09-29 Tom Tromey <tom@tromey.com>
2291
2292 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
2293 (mi_cmd_break_insert_1): Update.
2294
a9bc57b9
TT
22952017-09-29 Tom Tromey <tom@tromey.com>
2296
2297 * target.h (make_scoped_defer_target_commit_resume): Update.
2298 * target.c (make_scoped_defer_target_commit_resume): Rename from
2299 make_cleanup_defer_target_commit_resume. Return a
2300 scoped_restore.
2301 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
2302
9754d8c4
TT
23032017-09-29 Tom Tromey <tom@tromey.com>
2304
2305 * main.c (captured_main_1): Remove unused declaration.
2306 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
2307
99ef965c
TT
23082017-09-29 Tom Tromey <tom@tromey.com>
2309
2310 * symtab.c (search_symbols): Remove unused outer cleanup.
2311 (make_source_files_completion_list): Remove unused declaration.
2312
42518ba7
TT
23132017-09-29 Tom Tromey <tom@tromey.com>
2314
2315 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
2316
726b2169
TT
23172017-09-29 Tom Tromey <tom@tromey.com>
2318
2319 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
2320 gdb::byte_vector.
2321
55b06432
TT
23222017-09-29 Tom Tromey <tom@tromey.com>
2323
2324 * complaints.c (vcomplaint): Use std::string.
2325
8abcee91
TT
23262017-09-29 Tom Tromey <tom@tromey.com>
2327
2328 * tracepoint.c (trace_variable_command): Use std::string.
2329 (encode_actions_1): Remove unused declarations.
2330 (create_tsv_from_upload): Use std::string.
2331
6ad94bc7
TT
23322017-09-29 Tom Tromey <tom@tromey.com>
2333
2334 * cp-support.c (gdb_demangle): Use std::string.
2335
2003f3d8
TT
23362017-09-29 Tom Tromey <tom@tromey.com>
2337
2338 * stack.c (parse_frame_specification): Use std::string
2339 (info_frame_command): Use gdb::unique_xmalloc_ptr.
2340
8f8accb5
TT
23412017-09-29 Tom Tromey <tom@tromey.com>
2342
2343 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
2344
200aa7b1
TT
23452017-09-29 Tom Tromey <tom@tromey.com>
2346
2347 * utils.c (vfprintf_maybe_filtered): Use std::string.
2348 (vfprintf_unfiltered): Likewise.
2349
606aae8a
TT
23502017-09-29 Tom Tromey <tom@tromey.com>
2351
2352 * event-top.c (top_level_prompt): Return std::string.
2353 (display_gdb_prompt): Update.
2354
bd413795
TT
23552017-09-29 Tom Tromey <tom@tromey.com>
2356
2357 * unittests/common-utils-selftests.c (format): New function.
2358 (string_vprintf_tests): New function.
2359 (_initialize_common_utils_selftests): Register new tests.
2360 * common/common-utils.c (string_vprintf): New function.
2361 * common/common-utils.h (string_vprintf): Declare.
2362
256642e8
PA
23632017-09-29 Pedro Alves <palves@redhat.com>
2364
2365 * common/rsp-low.c (unpack_varlen_hex): Constify.
2366 * common/rsp-low.h (unpack_varlen_hex): Constify.
2367 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
2368 Constify.
2369 * remote.c (remote_set_permissions, read_ptid)
2370 (remote_current_thread, remote_get_threads_with_qthreadinfo)
2371 (remote_static_tracepoint_marker_at)
2372 (remote_static_tracepoint_markers_by_strid)
2373 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
2374 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
2375 (parse_tracepoint_definition, parse_tsv_definition)
2376 (parse_static_tracepoint_marker_definition): Constify.
2377 * tracepoint.h (parse_static_tracepoint_marker_definition)
2378 (parse_trace_status, parse_tracepoint_status)
2379 (parse_tracepoint_definition, parse_tsv_definition): Constify.
2380
b6bb3468
PA
23812017-09-29 Pedro Alves <palves@redhat.com>
2382
2383 * remote.c (target_buf, target_buf_size): Delete.
2384 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
2385 Use the connection's packet buffer instead.
2386 All callers adjusted.
2387 (_initialize_remote): Remove references to target_buf and
2388 target_buf_size.
2389
b2f8eb7a
PA
23902017-09-28 Pedro Alves <palves@redhat.com>
2391
2392 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2393 unittests/common-utils-selftests.c.
2394 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
2395 (COMMON_OBS): Remove utils-selftests.o.
2396 * utils-selftests.c: Move to ...
2397 * unittests/common-utils-selftests.c: ... here and rename self
2398 test to "string_printf".
2399
08302ed2
DE
24002017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
2401
2402 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
2403 having NULL cus or tus.
2404
96a5a1d3
UW
24052017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2406
2407 * arm-tdep.c: (convert_from_extended): Remove.
2408 (convert_to_extended): Likewise.
2409 (arm_extract_return_value): Use convert_typed_floating.
2410 (arm_store_return_value): Likewise.
2411
2412 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
2413 * sh-tdep.c: Do not include "floatformat.h".
2414 (sh_littlebyte_bigword_type): New function.
2415 (sh_register_convert_to_virtual): Use convert_typed_floating.
2416 (sh_register_convert_to_raw): Likewise.
2417 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
2418 (sh64_littlebyte_bigword_type): New function.
2419 (sh64_extract_return_value): Use convert_typed_floating.
2420 (sh64_register_convert_to_virtual): Likewise.
2421 (sh64_register_convert_to_raw): Likewise.
2422
0db7851f
UW
24232017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2424
2425 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
2426 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
2427
2428 * gdbtypes.h (union type_specific): Make field floatformat hold
2429 just a single struct floatformat, not an array.
2430 (floatformat_from_type): Move here.
2431 * gdbtypes.c (floatformat_from_type): Move here. Update to
2432 changed TYPE_FLOATFORMAT definition.
2433 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
2434 (recursive_dump_type): Likewise.
2435 (init_float_type): Install correct floatformat for byte order.
2436 (arch_float_type): Likewise.
2437
77b7c781
UW
24382017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2439
2440 * gdbtypes.c (init_type): Change incoming argument from
2441 length-in-bytes to length-in-bits. Assert length is a
2442 multiple of TARGET_CHAR_BITS.
2443 (arch_type, arch_flags_type): Likewise.
2444 (init_integer_type): Update call to init_type.
2445 (init_character_type): Likewise.
2446 (init_boolean_type): Likewise.
2447 (init_float_type): Likewise.
2448 (init_decfloat_type): Likewise.
2449 (init_complex_type): Likewise.
2450 (init_pointer_type): Likewise.
2451 (objfile_type): Likewise.
2452 (arch_integer_type): Update call to arch_type.
2453 (arch_character_type): Likewise.
2454 (arch_boolean_type): Likewise.
2455 (arch_float_type): Likewise.
2456 (arch_decfloat_type): Likewise.
2457 (arch_complex_type): Likewise.
2458 (arch_pointer_type): Likewise.
2459 (gdbtypes_post_init): Likewise.
2460
2461 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
2462 (read_base_type): Likewise.
2463 * mdebugread.c (basic_type): Likewise.
2464 * stabsread.c (dbx_init_float_type): Likewise.
2465 (rs6000_builtin_type): Likewise.
2466 (read_range_type): Likewise. Also, fix call to init_integer_type
2467 with erroneous length argument.
2468
2469 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
2470 * d-lang.c (build_d_types): Likewise.
2471 * f-lang.c (build_fortran_types): Likewise.
2472 * go-lang.c (build_go_types): Likewise.
2473 * opencl-lang.c (build_opencl_types): Likewise.
2474 * jit.c (finalize_symtab): Likewise.
2475 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2476 (build_std_type_info_type): Likewise.
2477 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
2478 update call to arch_flags_type.
2479
2480 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
2481 arch_type.
2482 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
2483 * windows-tdep.c (windows_get_tlb_type): Likewise.
2484
2485 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
2486 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
2487 * m32c-tdep.c (make_types): Likewise.
2488 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
2489 (rl78_psw_type): Update call to arch_flags_type.
2490 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
2491 * rx-tdep.c (rx_psw_type): Likewise.
2492 (rx_fpsw_type): Likewise.
2493 * sparc-tdep.c (sparc_psr_type): Likewise.
2494 (sparc_fsr_type): Likewise.
2495 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
2496 (sparc64_ccr_type): Likewise.
2497 (sparc64_fsr_type): Likewise.
2498 (sparc64_fprs_type): Likewise.
2499
f21b4d5c
TT
25002017-09-27 Tom Tromey <tom@tromey.com>
2501
2502 * findcmd.c (find_command): Constify.
2503
643c2ffa
TT
25042017-09-27 Tom Tromey <tom@tromey.com>
2505
2506 * ada-tasks.c (task_command_1, task_command): Constify.
2507
510e5e56
TT
25082017-09-27 Tom Tromey <tom@tromey.com>
2509
2510 * symtab.c (maintenance_print_symbol_cache)
2511 (maintenance_flush_symbol_cache)
2512 (maintenance_print_symbol_cache_statistics): Constify.
2513
e503b191
TT
25142017-09-27 Tom Tromey <tom@tromey.com>
2515
2516 * inferior.c (detach_inferior_command, kill_inferior_command)
2517 (inferior_command): Constify.
2518
4e001312
TT
25192017-09-27 Tom Tromey <tom@tromey.com>
2520
2521 * regcache.c (regcache_print, maintenance_print_registers)
2522 (maintenance_print_raw_registers)
2523 (maintenance_print_cooked_registers)
2524 (maintenance_print_register_groups)
2525 (maintenance_print_remote_registers): Constify.
2526
77763700
TT
25272017-09-27 Tom Tromey <tom@tromey.com>
2528
2529 * printcmd.c (map_display_numbers, undisplay_command)
2530 (enable_disable_display_command, enable_display_command)
2531 (disable_display_command): Constify.
2532
4495129a
TT
25332017-09-27 Tom Tromey <tom@tromey.com>
2534
2535 * breakpoint.h (delete_command): Don't declare.
2536 * breakpoint.c (delete_command, enable_once_command)
2537 (enable_count_command, enable_delete_command, breakpoint_1)
2538 (maintenance_info_breakpoints, stopin_command, stopat_command)
2539 (delete_command, delete_trace_command, save_breakpoints)
2540 (save_breakpoints_command, save_tracepoints_command): Constify.
2541
3088cf40
TT
25422017-09-27 Tom Tromey <tom@tromey.com>
2543
2544 * macrocmd.c (macro_expand_command, macro_expand_once_command)
2545 (skip_ws, extract_identifier, macro_define_command)
2546 (macro_undef_command, macro_list_command): Constify.
2547
69f476a3
TT
25482017-09-27 Tom Tromey <tom@tromey.com>
2549
2550 * infcmd.c (environment_info, set_environment_command)
2551 (unset_environment_command, path_info, info_proc_cmd_1)
2552 (info_proc_cmd_mappings, info_proc_cmd_stat)
2553 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
2554 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
2555
c4a3e68e
TT
25562017-09-27 Tom Tromey <tom@tromey.com>
2557
2558 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
2559 Constify.
2560
c9d31bd6
TT
25612017-09-27 Tom Tromey <tom@tromey.com>
2562
2563 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
2564
1f3f85eb
TT
25652017-09-27 Tom Tromey <tom@tromey.com>
2566
2567 * demangle.c (demangle_command): Constify.
2568
9c504b5d
TT
25692017-09-27 Tom Tromey <tom@tromey.com>
2570
2571 * progspace.c (maintenance_info_program_spaces_command):
2572 Constify.
2573
6663cf91
TT
25742017-09-27 Tom Tromey <tom@tromey.com>
2575
2576 * compile/compile.c (check_raw_argument, compile_file_command)
2577 (compile_code_command, compile_print_command): Constify.
2578
34e5fa26
TT
25792017-09-27 Tom Tromey <tom@tromey.com>
2580
2581 * reggroups.c (maintenance_print_reggroups): Constify.
2582
8384c356
TT
25832017-09-27 Tom Tromey <tom@tromey.com>
2584
2585 * dwarf2read.c (save_gdb_index_command): Constify.
2586
884beb0c
TT
25872017-09-27 Tom Tromey <tom@tromey.com>
2588
2589 * stap-probe.c (info_probes_stap_command): Constify.
2590
e0b2930c
TT
25912017-09-27 Tom Tromey <tom@tromey.com>
2592
2593 * fork-child.c (unset_exec_wrapper_command): Constify.
2594
f938677d
TT
25952017-09-27 Tom Tromey <tom@tromey.com>
2596
2597 * btrace.c (get_uint, get_context_size, no_chunk)
2598 (maint_btrace_packet_history_cmd)
2599 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
2600 (maint_info_btrace_cmd): Constify.
2601
8949cb87
TT
26022017-09-27 Tom Tromey <tom@tromey.com>
2603
2604 * reverse.c (delete_bookmark_command): Constify.
2605
ac88e2de
TT
26062017-09-27 Tom Tromey <tom@tromey.com>
2607
2608 * remote.c (set_memory_packet_size)
2609 (set_memory_write_packet_size, show_memory_write_packet_size)
2610 (set_memory_read_packet_size, show_memory_read_packet_size)
2611 (compare_sections_command, packet_command, remote_put_command)
2612 (remote_get_command, remote_delete_command): Constify.
2613
bd4c9dfe
TT
26142017-09-27 Tom Tromey <tom@tromey.com>
2615
2616 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
2617 (set_mipsfpu_double_command, set_mipsfpu_none_command)
2618 (set_mipsfpu_auto_command): Constify.
2619
5e93d4c6
TT
26202017-09-27 Tom Tromey <tom@tromey.com>
2621
2622 * cli/cli-cmds.h (cd_command): Constify.
2623 * cli/cli-cmds.c (cd_command): Constify.
2624
fc41a75b
TT
26252017-09-27 Tom Tromey <tom@tromey.com>
2626
2627 * thread.c (thread_name_command, thread_find_command): Constify.
2628
67810076
TT
26292017-09-27 Tom Tromey <tom@tromey.com>
2630
2631 * probe.c (enable_probes_command, disable_probes_command):
2632 Constify.
2633
1d8b34a7
TT
26342017-09-27 Tom Tromey <tom@tromey.com>
2635
2636 * symfile.c (symbol_file_command): Constify.
2637 * gdbcore.h (deprecated_file_changed_hook): Constify.
2638 * exec.c (deprecated_file_changed_hook, exec_file_command)
2639 (file_command): Constify.
2640 * defs.h (symbol_file_command): Constify.
2641
442019e1
TT
26422017-09-27 Tom Tromey <tom@tromey.com>
2643
2644 * remote-fileio.c (set_system_call_allowed)
2645 (show_system_call_allowed): Constify.
2646
2983f7cb
TT
26472017-09-27 Tom Tromey <tom@tromey.com>
2648
2649 * tracepoint.c (delete_trace_variable_command)
2650 (tfind_end_command, tfind_start_command, tfind_pc_command)
2651 (tfind_tracepoint_command, tfind_line_command)
2652 (tfind_range_command, tfind_outside_command): Constify.
2653
4fd41b24
TT
26542017-09-27 Tom Tromey <tom@tromey.com>
2655
2656 * ax-gdb.c (maint_agent_printf_command, agent_command)
2657 (agent_eval_command): Constify.
2658
f2fc3015
TT
26592017-09-27 Tom Tromey <tom@tromey.com>
2660
2661 * tracepoint.c (info_scope_command): Constify.
2662 * python/python.c (gdbpy_decode_line): Constify.
2663 * python/py-breakpoint.c (bppy_init): Constify.
2664 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
2665 * location.h: (new_linespec_location)
2666 (string_to_event_location_basic, string_to_event_location):
2667 Constify.
2668 * location.c (new_linespec_location)
2669 (string_to_event_location_basic, string_to_event_location):
2670 Constify.
2671 * linespec.h (decode_line_with_current_source)
2672 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
2673 * linespec.c (linespec_lex_to_end)
2674 (decode_line_with_current_source)
2675 (decode_line_with_last_displayed): Constify.
2676 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
2677 Constify.
2678 * cli/cli-cmds.c (edit_command, list_command): Constify.
2679 * breakpoint.h (until_break_command, watch_command_wrapper)
2680 (awatch_command_wrapper, rwatch_command_wrapper)
2681 (init_ada_exception_breakpoint): Constify.
2682 * breakpoint.c (break_command_1, dprintf_command)
2683 (break_range_command, watch_command_wrapper)
2684 (rwatch_command_wrapper, awatch_command_wrapper)
2685 (until_break_command, init_ada_exception_breakpoint)
2686 (strace_marker_create_sals_from_location, trace_command)
2687 (ftrace_command, strace_command, struct tracepoint): Constify.
2688 * ax-gdb.c (agent_command_1): Constify.
2689 * ada-lang.c (ada_exception_sal): Constify.
2690
8c2f95f4
TT
26912017-09-27 Tom Tromey <tom@tromey.com>
2692
2693 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
2694 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
2695 (get_context_size, no_chunk, get_insn_history_modifiers)
2696 (cmd_record_insn_history, get_call_history_modifiers)
2697 (cmd_record_call_history): Constify.
2698
a0d65762
TT
26992017-09-27 Tom Tromey <tom@tromey.com>
2700
2701 * source.c (show_substitute_path_command)
2702 (unset_substitute_path_command, set_substitute_path_command):
2703 Constify.
2704
58971144
TT
27052017-09-27 Tom Tromey <tom@tromey.com>
2706
2707 * typeprint.c (maintenance_print_type): Constify.
2708 * maint.c (maintenance_dump_me, maintenance_demangle)
2709 (maintenance_time_display, maintenance_info_sections)
2710 (maintenance_print_statistics, maintenance_deprecate)
2711 (maintenance_undeprecate): Constify.
2712 (maintenance_do_deprecate): Constify. Use std::string.
2713 (maintenance_selftest): Constify.
2714 * gdbtypes.h (maintenance_print_type): Constify.
2715
c482f52c
TT
27162017-09-27 Tom Tromey <tom@tromey.com>
2717
2718 * hppa-tdep.c (unwind_command): Constify.
2719
e100df1a
TT
27202017-09-27 Tom Tromey <tom@tromey.com>
2721
2722 * target-descriptions.c (unset_tdesc_filename_cmd)
2723 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
2724 Constify.
2725
31d56ade
TT
27262017-09-27 Tom Tromey <tom@tromey.com>
2727
2728 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
2729
b961da0b
TT
27302017-09-27 Tom Tromey <tom@tromey.com>
2731
2732 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
2733
e2d8ae16
TT
27342017-09-27 Tom Tromey <tom@tromey.com>
2735
2736 * tui/tui-regs.c (tui_reg_command): Constify.
2737
863779b0
TT
27382017-09-27 Tom Tromey <tom@tromey.com>
2739
2740 * skip.c (skip_file_command, skip_function_command)
2741 (skip_enable_command, skip_disable_command, skip_delete_command):
2742 Constify.
2743
cdb34d4a
TT
27442017-09-27 Tom Tromey <tom@tromey.com>
2745
2746 * record-btrace.c (cmd_record_btrace_bts_start)
2747 (cmd_record_btrace_pt_start): Constify.
2748
e99c83e7
TT
27492017-09-27 Tom Tromey <tom@tromey.com>
2750
2751 * symmisc.c (maintenance_print_symbols)
2752 (maintenance_print_msymbols, maintenance_print_objfiles)
2753 (maintenance_info_symtabs, maintenance_check_symtabs)
2754 (maintenance_expand_symtabs, maintenance_info_line_tables):
2755 Constify.
2756
32faf971
TT
27572017-09-27 Tom Tromey <tom@tromey.com>
2758
2759 * top.c (new_ui_command): Constify.
2760
2cf311eb
TT
27612017-09-27 Tom Tromey <tom@tromey.com>
2762
2763 * symfile.c (add_symbol_file_command)
2764 (remove_symbol_file_command, list_overlays_command)
2765 (map_overlay_command, unmap_overlay_command)
2766 (overlay_auto_command, overlay_manual_command)
2767 (overlay_off_command, overlay_load_command): Constify.
2768
e6738699
TT
27692017-09-27 Tom Tromey <tom@tromey.com>
2770
2771 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2772 (info_spu_mailbox_command, info_spu_dma_command)
2773 (info_spu_proxydma_command): Constify.
2774
aa360cd5
TT
27752017-09-27 Tom Tromey <tom@tromey.com>
2776
2777 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
2778
898241a5
TT
27792017-09-27 Tom Tromey <tom@tromey.com>
2780
2781 * cli/cli-script.c (user_defined_command): Constify.
2782
2d0ac106
TT
27832017-09-27 Tom Tromey <tom@tromey.com>
2784
2785 * cli/cli-dump.c (dump_memory_command, dump_value_command)
2786 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
2787 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
2788 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
2789 (dump_binary_value, append_binary_memory, append_binary_value):
2790 Constify.
2791 (struct dump_context) <func>: Constify.
2792 (add_dump_command): Update.
2793
dede02ce
TT
27942017-09-27 Tom Tromey <tom@tromey.com>
2795
2796 * cli/cli-cmds.c (show_version, show_configuration)
2797 (source_command, show_user): Constify.
2798
d3cb6b99
TT
27992017-09-27 Tom Tromey <tom@tromey.com>
2800
2801 * target.c (maintenance_print_target_stack): Constify.
2802
1970a12f
TT
28032017-09-27 Tom Tromey <tom@tromey.com>
2804
2805 * interps.c (interpreter_exec_cmd): Constify.
2806
41243651
TT
28072017-09-27 Tom Tromey <tom@tromey.com>
2808
2809 * record-full.c (cmd_record_full_restore): Constify.
2810
4465d9db
TT
28112017-09-27 Tom Tromey <tom@tromey.com>
2812
2813 * memattr.c (enable_mem_command, disable_mem_command)
2814 (delete_mem_command): Constify.
2815
ad25e423
TT
28162017-09-27 Tom Tromey <tom@tromey.com>
2817
2818 * value.c (show_convenience): Constify.
2819
d64097b1
TT
28202017-09-27 Tom Tromey <tom@tromey.com>
2821
2822 * gdbcore.h (core_file_command): Update.
2823 * corefile.c (core_file_command): Constify.
2824
4d4589ef
TT
28252017-09-27 Tom Tromey <tom@tromey.com>
2826
2827 * user-regs.c (maintenance_print_user_registers): Constify.
2828
32a7bf17
TT
28292017-09-27 Tom Tromey <tom@tromey.com>
2830
2831 * cp-namespace.c (maintenance_cplus_namespace): Constify.
2832
4a475551
TT
28332017-09-27 Tom Tromey <tom@tromey.com>
2834
2835 * cp-support.c (first_component_command): Constify.
2836
990b9f9f
TT
28372017-09-27 Tom Tromey <tom@tromey.com>
2838
2839 * psymtab.c (maintenance_print_psymbols)
2840 (maintenance_info_psymtabs, maintenance_check_psymtabs):
2841 Constify.
2842
c281872e
TT
28432017-09-27 Tom Tromey <tom@tromey.com>
2844
2845 * windows-tdep.c (display_tib): Constify.
2846
5b64bf74
TT
28472017-09-27 Tom Tromey <tom@tromey.com>
2848
2849 * linux-fork.c (delete_checkpoint_command)
2850 (detach_checkpoint_command): Constify.
2851
4ada038f
TT
28522017-09-27 Tom Tromey <tom@tromey.com>
2853
2854 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
2855
57f5a81b
TT
28562017-09-27 Tom Tromey <tom@tromey.com>
2857
2858 * arc-tdep.c (dump_arc_instruction_command): Constify.
2859
b0a8e6c4
TT
28602017-09-27 Tom Tromey <tom@tromey.com>
2861
2862 * valprint.c (set_radix, show_radix): Constify.
2863
8d97dc1c
TT
28642017-09-27 Tom Tromey <tom@tromey.com>
2865
2866 * dtrace-probe.c (info_probes_dtrace_command): Constify.
2867
eb7c454d
TT
28682017-09-27 Tom Tromey <tom@tromey.com>
2869
2870 * command.h (not_just_help_class_command): Update.
2871 * cli/cli-decode.h (not_just_help_class_command): Update.
2872 * cli/cli-decode.c (not_just_help_class_command): Constify.
2873
e4e33335
TT
28742017-09-27 Tom Tromey <tom@tromey.com>
2875
2876 * gdb_bfd.c (maintenance_info_bfds): Constify.
2877
0450cc4c
TT
28782017-09-27 Tom Tromey <tom@tromey.com>
2879
2880 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
2881 overloads.
2882 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
2883 (do_const_cfunc): New function.
2884 (cmd_cfunc_eq): New overload.
2885 (cli_user_command_p): Check do_const_cfunc.
2886 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
2887 const_cfunc.
2888 * command.h (add_cmd): Add const overload and no-function
2889 overload.
2890 (set_cmd_cfunc): Add const overload.
2891 (cmd_const_cfunc_ftype): Declare.
2892 (cmd_cfunc_eq): Add const overload.
2893 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
2894 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
2895 overload.
2896
a9bbfbd8
TT
28972017-09-27 Tom Tromey <tom@tromey.com>
2898
2899 * macroexp.c (get_next_token_for_substitution): New function.
2900 (substitute_args): Call it. Check for __VA_OPT__.
2901
5230b05a
WT
29022017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
2903 Pedro Alves <palves@redhat.com>
2904
2905 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
2906 producer_is_icc_lt_14.
2907 (producer_is_icc_lt_14): New function.
2908 (check_producer): Add code for checking version of ICC.
2909 (producer_is_icc): Move to producer.c.
2910 (read_structure_type): Restrict ICC workaround to ICC<14.
2911 * producer.c: Include selftest.h.
2912 (producer_is_icc, producer_parsing_tests, _initialize_producer):
2913 New functions.
2914 * producer.h (producer_is_icc): New declaration.
2915
b32b108a
WT
29162017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
2917
2918 * Makefile.in (SFILES): Add producer.c.
2919 (COMMON_OBS): Add producer.o
2920 * amd64-tdep.c (producer.h): Add new include.
2921 * dwarf2read.c (producer.h): Add new include.
2922 * producer.c: New file.
2923 * producer.h: New file.
2924 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
2925 producer.c.
2926 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
2927 producer.h.
2928
5007d765
MK
29292017-09-26 Matthias Klose <doko@ubuntu.com>
2930
2931 * configure.ac: Search ncursesw before ncurses.
2932 Check ncursesw/ncurses.h before ncurses/ncurses.h.
2933 * gdb_curses.h: Include <ncursesw/ncurses.h>
2934 * config.in, configure: Regenerate.
2935
281c4447
RO
29362017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2937
2938 PR gdb/22185
2939 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
2940 obsolete.
2941 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
2942 Remove i386sol2 support.
2943 * configure.nat <i386sol2>: Remove.
2944 <sol2-64>: Fold into ...
2945 <sol2>: ... this.
2946 Move common settings to default section.
2947 Add sol-thread.o.
2948 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
2949 x86_64-*-solaris2.1[0-9]*>: Rename to ...
2950 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
2951 <i[34567]86-*-solaris*>: Remove.
2952 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
2953
2954 * configure.ac: Remove wctype in libw check.
2955 (_MSE_INT_H): Don't define on Solaris 7-9.
2956 <solaris*>: Remove libthread_db.so.1 check.
2957 * configure: Regenerate.
2958 * config.in: Regenerate.
2959
2960 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
2961 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
2962 (gdb_ps_size_t): Remove.
2963 Use base types in users.
2964 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
2965
2966 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
2967
39b06c20
RO
29682017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2969
2970 PR build/22206
2971 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
2972 (adi_is_addr_mapped): Likewise.
2973 (PSR_ICC): Don't redefine.
2974 (PSR_IMPL): Likewise.
2975
6c3e20f1
TT
29762017-09-25 Tom Tromey <tom@tromey.com>
2977
2978 * regcache.c (regcache::dump): Use string_printf.
2979
b292235f
TT
29802017-09-25 Tom Tromey <tom@tromey.com>
2981
2982 * regcache.c (class regcache_invalidator): New.
2983 (struct register_to_invalidate): Remove.
2984 (make_cleanup_regcache_invalidate): Remove.
2985 (regcache::raw_write): Use regcache_invalidator.
2986
9ac86b52
TT
29872017-09-25 Tom Tromey <tom@tromey.com>
2988
2989 * spu-tdep.c (spu2ppu_sniffer): Update.
2990 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
2991 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
2992 Remove.
2993 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
2994 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
2995 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
2996 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
2997 (frame_pop): Update.
2998
c0e383c6
TT
29992017-09-25 Tom Tromey <tom@tromey.com>
3000
3001 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
3002 * regcache.h (regcache_xfree): Don't declare.
3003 * regcache.c (regcache_xfree): Remove.
3004 (do_regcache_xfree): Use delete.
3005 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
3006 * linux-fork.c (free_fork): Use delete.
3007 (fork_save_infrun_state): Likewise.
3008 * jit.c (jit_dealloc_cache): Use delete.
3009 * infrun.c (discard_infcall_suspend_state): Use delete.
3010
791199cc
TT
30112017-09-25 Tom Tromey <tom@tromey.com>
3012
3013 * regcache.h (regcache_xmalloc): Don't declare.
3014 (regcache_raw_set_cached_value): Update comment.
3015 * regcache.c (regcache_xmalloc): Remove.
3016 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
3017 * jit.c (jit_frame_sniffer): Use new.
3018 * frame.c (frame_save_as_regcache): Use new.
3019
289e23aa
AA
30202017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3021
3022 * NEWS: Advertise support for guarded-storage registers on IBM z.
3023
1b63490c
AA
30242017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3025
3026 * s390-linux-nat.c (have_regset_gs): New static variable.
3027 (s390_linux_fetch_inferior_registers): Handle guarded-storage
3028 control block and guarded-storage broadcast control regsets.
3029 (s390_read_description): Detect whether the target has
3030 guarded-storage support, return appropriate tdesc.
3031 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
3032 (features/s390x-gs-linux64.c): Likewise.
3033 (struct gdbarch_tdep) <have_gs>: New field.
3034 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
3035 (s390_gsbc_regset): New variables.
3036 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
3037 and s390_gsbc_regset, if applicable.
3038 (s390_core_read_description): Check whether core file was from a
3039 target with guarded-storage support; include appropriate regsets.
3040 (s390_gdbarch_init): Add registers for guarded-storage support.
3041 (_initialize_s390_tdep): Initialize new target descriptions that
3042 include registers for guarded-storage support.
3043 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
3044 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
3045 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
3046 (S390_NUM_REGS): Adjust macro definition.
3047 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
3048 (tdesc_s390x_gs_linux64): New declarations.
3049
96235dc1
AA
30502017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3051
3052 * features/s390-gs-linux64.xml: New file.
3053 * features/s390-gs.xml: New file.
3054 * features/s390-gsbc.xml: New file.
3055 * features/s390x-gs-linux64.xml: New file.
3056 * features/Makefile (WHICH): Add s390-gs-linux64 and
3057 s390x-gs-linux64.
3058 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
3059 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
3060 * features/s390-gs-linux64.c: New generated file.
3061 * features/s390x-gs-linux64.c: New file.
3062 * regformats/s390-gs-linux64.dat: New file.
3063 * regformats/s390x-gs-linux64.dat: New file.
3064
b4a7c699
TT
30652017-09-23 Tom Tromey <tom@tromey.com>
3066
3067 * defs.h (make_cleanup_override_quit_handler): Don't declare.
3068
c2f97536
TT
30692017-09-22 Tom Tromey <tom@tromey.com>
3070
3071 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
3072 type to scoped_restore_tmpl.
3073 <scoped_input_handler>: Initialize m_quit_handler directly.
3074
43573013
SDJ
30752017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
3076
3077 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
3078 (cd_command): Likewise. Free "current_directory" before
3079 assigning to it.
3080 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
3081 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
3082 * top.c (gdb_dirbuf): Remove global declaration.
3083 * top.h (gdb_dirbuf): Likewise.
3084
6ec2e0f5
SDJ
30852017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
3086
3087 * gnulib/aclocal.m4: Regenerate.
3088 * gnulib/config.in: Regenerate.
3089 * gnulib/configure: Regenerate.
3090 * gnulib/import/Makefile.am: Regenerate.
3091 * gnulib/import/Makefile.in: Regenerate.
3092 * gnulib/import/assure.h: New file.
3093 * gnulib/import/at-func.c: Likewise
3094 * gnulib/import/chdir-long.c: New file.
3095 * gnulib/import/chdir-long.h: New file.
3096 * gnulib/import/cloexec.c: New file.
3097 * gnulib/import/cloexec.h: New file.
3098 * gnulib/import/close.c: New file.
3099 * gnulib/import/closedir.c: New file.
3100 * gnulib/import/dirent-private.h: New file.
3101 * gnulib/import/dup-safer.c: New file.
3102 * gnulib/import/dup.c: New file.
3103 * gnulib/import/dup2.c: New file.
3104 * gnulib/import/error.c: New file.
3105 * gnulib/import/error.h: New file.
3106 * gnulib/import/exitfail.c: New file.
3107 * gnulib/import/exitfail.h: New file.
3108 * gnulib/import/fchdir.c: New file.
3109 * gnulib/import/fcntl.c: New file.
3110 * gnulib/import/fcntl.in.h: New file.
3111 * gnulib/import/fd-hook.c: New file.
3112 * gnulib/import/fd-hook.h: New file.
3113 * gnulib/import/fd-safer.c: New file.
3114 * gnulib/import/fdopendir.c: New file.
3115 * gnulib/import/filename.h: New file.
3116 * gnulib/import/filenamecat-lgpl.c: New file.
3117 * gnulib/import/filenamecat.h: New file.
3118 * gnulib/import/fstat.c: New file.
3119 * gnulib/import/fstatat.c: New file.
3120 * gnulib/import/getcwd-lgpl.c: New file.
3121 * gnulib/import/getcwd.c: New file.
3122 * gnulib/import/getdtablesize.c: New file.
3123 * gnulib/import/getlogin_r.c: New file.
3124 * gnulib/import/getprogname.c: New file.
3125 * gnulib/import/getprogname.h: New file.
3126 * gnulib/import/gettext.h: New file.
3127 * gnulib/import/glob-libc.h: New file.
3128 * gnulib/import/glob.c: New file.
3129 * gnulib/import/glob.in.h: New file.
3130 * gnulib/import/intprops.h: New file.
3131 * gnulib/import/m4/chdir-long.m4: New file.
3132 * gnulib/import/m4/close.m4: New file.
3133 * gnulib/import/m4/closedir.m4: New file.
3134 * gnulib/import/m4/d-ino.m4: New file.
3135 * gnulib/import/m4/d-type.m4: New file.
3136 * gnulib/import/m4/dup.m4: New file.
3137 * gnulib/import/m4/dup2.m4: New file.
3138 * gnulib/import/m4/error.m4: New file.
3139 * gnulib/import/m4/fchdir.m4: New file.
3140 * gnulib/import/m4/fcntl.m4: New file.
3141 * gnulib/import/m4/fcntl_h.m4: New file.
3142 * gnulib/import/m4/fdopendir.m4: New file.
3143 * gnulib/import/m4/filenamecat.m4: New file.
3144 * gnulib/import/m4/fstat.m4: New file.
3145 * gnulib/import/m4/fstatat.m4: New file.
3146 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
3147 * gnulib/import/m4/getcwd-path-max.m4: New file.
3148 * gnulib/import/m4/getcwd.m4: New file.
3149 * gnulib/import/m4/getdtablesize.m4: New file.
3150 * gnulib/import/m4/getlogin_r.m4: New file.
3151 * gnulib/import/m4/getprogname.m4: New file.
3152 * gnulib/import/m4/glob.m4: New file.
3153 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3154 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3155 * gnulib/import/m4/mempcpy.m4: New file.
3156 * gnulib/import/m4/memrchr.m4: New file.
3157 * gnulib/import/m4/mode_t.m4: New file.
3158 * gnulib/import/m4/msvc-inval.m4: New file.
3159 * gnulib/import/m4/msvc-nothrow.m4: New file.
3160 * gnulib/import/m4/open.m4: New file.
3161 * gnulib/import/m4/openat.m4: New file.
3162 * gnulib/import/m4/opendir.m4: New file.
3163 * gnulib/import/m4/readdir.m4: New file.
3164 * gnulib/import/m4/realloc.m4: New file.
3165 * gnulib/import/m4/rewinddir.m4: New file.
3166 * gnulib/import/m4/save-cwd.m4: New file.
3167 * gnulib/import/m4/strdup.m4: New file.
3168 * gnulib/import/m4/strerror.m4: New file.
3169 * gnulib/import/m4/unistd-safer.m4: New file.
3170 * gnulib/import/mempcpy.c: New file.
3171 * gnulib/import/memrchr.c: New file.
3172 * gnulib/import/msvc-inval.c: New file.
3173 * gnulib/import/msvc-inval.h: New file.
3174 * gnulib/import/msvc-nothrow.c: New file.
3175 * gnulib/import/msvc-nothrow.h: New file.
3176 * gnulib/import/open.c: New file.
3177 * gnulib/import/openat-die.c: New file.
3178 * gnulib/import/openat-priv.h: New file.
3179 * gnulib/import/openat-proc.c: New file.
3180 * gnulib/import/openat.c: New file.
3181 * gnulib/import/openat.h: New file.
3182 * gnulib/import/opendir.c: New file.
3183 * gnulib/import/pipe-safer.c: New file.
3184 * gnulib/import/readdir.c: New file.
3185 * gnulib/import/realloc.c: New file.
3186 * gnulib/import/rewinddir.c: New file.
3187 * gnulib/import/save-cwd.c: New file.
3188 * gnulib/import/save-cwd.h: New file.
3189 * gnulib/import/strdup.c: New file.
3190 * gnulib/import/strerror-override.c: New file.
3191 * gnulib/import/strerror-override.h: New file.
3192 * gnulib/import/strerror.c: New file.
3193 * gnulib/import/unistd--.h: New file.
3194 * gnulib/import/unistd-safer.h: New file.
3195 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
3196 "getcwd" and "glob".
3197 * ser-tcp.c: Undefine "close" before redefining it.
3198
432ae719
SM
31992017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3200
3201 * guile/scm-value.c (gdbscm_value_address): Initialize address,
3202 get rid of res_val.
3203
4fa7574e
RO
32042017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3205
3206 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
3207 <sol2,sparc>: Likewise.
3208 <sol2-64,i386>: Likewise.
3209
3210 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
3211 -Wdeprecated-declarations on *-*-solaris*.
3212 * configure: Regenerate.
3213
3214 * procfs.c: Include "nat/inferior.h".
3215 (procfs_info_proc): Fix typo.
3216
f6327dcb
KB
32172017-09-21 Kevin Buettner <kevinb@redhat.com>
3218
3219 * remote.c (vector): Include.
3220 (struct private_thread_info): Add field, thread_handle.
3221 (free_private_thread_info): Deallocate storage associated with
3222 thread handle.
3223 (get_private_info_thread): Initialize `thread_handle' field.
3224 (struct thread_item): Add field, thread_handle.
3225 (clear_threads_listing_context): Deallocate storage associated
3226 with thread handle.
3227 (start_thread): Add support for "handle" attribute.
3228 (thread_attributes): Add "handle".
3229 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
3230 field.
3231 (remote_update_thread_list): Update thread_handle.
3232 (remote_thread_handle_to_thread_info): New function.
3233 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
3234
fbbe5337
KB
32352017-09-21 Kevin Buettner <kevinb@redhat.com>
3236
3237 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
3238 function.
3239 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
3240 * python/python-internal.h (thread_object_type): Declare.
3241
e04ee09e
KB
32422017-09-21 Kevin Buettner <kevinb@redhat.com>
3243
3244 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
3245 (target_thread_handle_to_thread_info): Declare.
3246 * target.c (target_thread_handle_to_thread_info): New function.
3247 * target-delegates.c: Regenerate.
3248 * gdbthread.h (find_thread_by_handle): Declare.
3249 * thread.c (find_thread_by_handle): New function.
3250 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
3251 function.
3252 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
3253
1e5b66ed
SM
32542017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3255
3256 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
3257
ebe48ba0
SM
32582017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3259
3260 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
3261
0a0bf5dc
YQ
32622017-09-21 Yao Qi <yao.qi@linaro.org>
3263
3264 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
3265 to gdb_target_obs.
3266
d1b0a7bf
TT
32672017-09-20 Tom Tromey <tom@tromey.com>
3268
3269 * breakpoint.c (struct counted_command_line): Remove.
3270 (breakpoint_commands): Update.
3271 (alloc_counted_command_line, incref_counted_command_line)
3272 (decref_counted_command_line, do_cleanup_counted_command_line)
3273 (make_cleanup_decref_counted_command_line): Remove.
3274 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
3275 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
3276 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
3277 (save_breakpoints): Update.
3278 * breakpoint.h (counted_command_line): Now a typedef to
3279 shared_ptr.
3280 (struct breakpoint) <commands>: Now a counted_command_line.
3281 (struct bpstats) <command>: Likewise.
3282
48649e1b
TT
32832017-09-20 Tom Tromey <tom@tromey.com>
3284
3285 * breakpoint.c (struct commands_info, do_map_commands_command):
3286 Remove.
3287 (commands_command_1): Update.
3288 (iterate_over_related_breakpoints): Take a function_view.
3289 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
3290 (delete_command): Update.
3291 (map_breakpoint_numbers): Take a function_view.
3292 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
3293 (disable_command): Update.
3294 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
3295 (enable_command): Update.
3296 (struct disp_data, do_enable_breakpoint_disp)
3297 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
3298 (do_map_enable_delete_breakpoint): Remove.
3299 (enable_once_command, enable_count_command, enable_delete_command)
3300 (delete_trace_variable_command): Update.
3301
04afa70c
TT
33022017-09-20 Tom Tromey <tom@tromey.com>
3303
3304 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
3305 (bpstat_clear): Use delete.
3306 (bpstats): New constructors.
3307 (bpstat_copy, bpstat_stop_status): Use new.
3308 (dprintf_after_condition_true): Update.
3309 * breakpoint.h (bpstats::bpstats): Add constructors.
3310 (bpstats::~bpstats): Add destructor.
3311
c83833f4
PA
33122017-09-20 Pedro Alves <palves@redhat.com>
3313
3314 * eval.c (make_params): Delete, refactored as ...
3315 (class fake_method): ... this new type's ctor.
3316 (fake_method::~fake_method): New.
3317 (evaluate_subexp_standard): Use 'fake_method'.
3318
223ffa71
TT
33192017-09-20 Tom Tromey <tom@tromey.com>
3320
3321 * windows-nat.c (get_windows_debug_event, windows_wait)
3322 (do_initial_windows_stuff, windows_attach): Update.
3323 * utils.c (vwarning, internal_vproblem): Update.
3324 (ui_unregister_input_event_handler_cleanup)
3325 (prepare_to_handle_input): Remove.
3326 (class scoped_input_handler): New.
3327 (defaulted_query, prompt_for_continue): Update.
3328 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
3329 Update.
3330 * top.c (undo_terminal_modifications_before_exit): Update.
3331 * target/target.h (target_terminal_init, target_terminal_inferior)
3332 (target_terminal_ours): Don't declare.
3333 (class target_terminal): New.
3334 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
3335 (target_terminal_ours_for_output)
3336 (make_cleanup_restore_target_terminal): Don't declare.
3337 (target_terminal_info): Remove.
3338 * target.c (enum terminal_state, terminal_state): Remove.
3339 (target_terminal::terminal_state): Define.
3340 (target_terminal::init): Rename from target_terminal_init.
3341 (target_terminal::inferior): Rename from
3342 target_terminal_inferior.
3343 (target_terminal::ours): Rename from target_terminal_ours.
3344 (target_terminal::ours_for_output): Rename from
3345 target_terminal_ours_for_output.
3346 (target_terminal::info): New method.
3347 (cleanup_restore_target_terminal)
3348 (make_cleanup_restore_target_terminal): Remove.
3349 * solib.c (handle_solib_event): Update.
3350 * remote.c (remote_serial_quit_handler): Update.
3351 (remote_terminal_inferior, remote_wait_as): Update.
3352 * record-full.c (record_full_wait_1): Update.
3353 * nto-procfs.c (procfs_create_inferior): Update.
3354 * nat/fork-inferior.c (startup_inferior): Update.
3355 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
3356 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
3357 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
3358 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
3359 (mi_breakpoint_created, mi_breakpoint_deleted)
3360 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
3361 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
3362 (mi_user_selected_context_changed, report_initial_inferior):
3363 Update.
3364 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
3365 (linux_nat_terminal_inferior): Update.
3366 * infrun.c (follow_fork_inferior)
3367 (handle_vfork_child_exec_or_exit, do_target_resume)
3368 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
3369 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
3370 Update.
3371 * inflow.c (child_terminal_init, info_terminal_command): Update.
3372 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
3373 (attach_command): Update.
3374 * infcall.c (call_thread_fsm_should_stop): Update.
3375 * gnu-nat.c (gnu_attach): Update.
3376 * extension.c (struct active_ext_lang_state)
3377 (restore_active_ext_lang): Update.
3378 * exceptions.c (print_flush): Update.
3379 * event-top.c (async_enable_stdin, default_quit_handler): Update.
3380 (struct quit_handler_cleanup_data, restore_quit_handler)
3381 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
3382 Remove.
3383 * cp-support.c (gdb_demangle): Update.
3384 * breakpoint.c (update_inserted_breakpoint_locations)
3385 (insert_breakpoint_locations, handle_jit_event)
3386 (disable_breakpoints_in_unloaded_shlib): Update.
3387 * annotate.c (annotate_breakpoints_invalid)
3388 (annotate_frames_invalid): Update.
3389
013af3fc
TT
33902017-09-20 Tom Tromey <tom@tromey.com>
3391
3392 * main.c (catch_command_errors): Rename from
3393 catch_command_errors_const.
3394 (captured_main_1): Update.
3395
06871ae8
PA
33962017-09-20 Pedro Alves <palves@redhat.com>
3397
3398 * cli/cli-cmds.c (list_command): Use print_sal_location.
3399 (print_sal_location): New function.
3400 (ambiguous_line_spec): Use print_sal_location.
3401 * linespec.c (symbol_to_sal): Record the symbol in the sal.
3402 * symtab.c (find_function_start_sal): Likewise.
3403 * symtab.h (symtab_and_line::symbol): New field.
3404
e5f25bc5
PA
34052017-09-20 Pedro Alves <palves@redhat.com>
3406
3407 * linespec.c (minsym_found): Handle non-text minsyms.
3408 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
3409
1b7fa39e
WT
34102017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
3411
3412 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
3413 backslash.
3414
37dd0825
WT
34152017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
3416
3417 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
3418 vmovups instead vmovaps.
3419 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
3420
4e5a4f58
JB
34212017-09-19 John Baldwin <jhb@FreeBSD.org>
3422
3423 * NEWS (Changes since GDB 8.0): Add starti.
3424 * infcmd.c (enum run_break): New.
3425 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
3426 case.
3427 (run_command): Use enum run_how.
3428 (start_command): Likewise.
3429 (starti_command): New function.
3430 (RUN_ARGS_HELP): New macro.
3431 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
3432 commands. Add starti command.
3433
aa70c9f1
YQ
34342017-09-19 Yao Qi <yao.qi@linaro.org>
3435
3436 * Makefile.in (monitor.o): Remove the rule.
3437
d6541620
YQ
34382017-09-19 Yao Qi <yao.qi@linaro.org>
3439
3440 * annotate.h (struct annotate_arg_emitter): Use
3441 DISABLE_COPY_AND_ASSIGN.
3442 * common/refcounted-object.h (refcounted_object): Likewise.
3443 * completer.h (struct completion_result): Likewise.
3444 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
3445 * filename-seen-cache.h (filename_seen_cache): Likewise.
3446 * gdbcore.h (thread_section_name): Likewise.
3447 * gdb_regex.h (compiled_regex): Likewise.
3448 * gdbthread.h (scoped_restore_current_thread): Likewise.
3449 * inferior.h (scoped_restore_current_inferior): Likewise.
3450 * jit.c (jit_reader): Likewise.
3451 * linespec.h (struct linespec_result): Likewise.
3452 * mi/mi-parse.h (struct mi_parse): Likewise.
3453 * nat/fork-inferior.c (execv_argv): Likewise.
3454 * progspace.h (scoped_restore_current_program_space): Likewise.
3455 * python/python-internal.h (class gdbpy_enter): Likewise.
3456 * regcache.h (regcache): Likewise.
3457 * target-descriptions.c (struct tdesc_reg): Likewise.
3458 (struct tdesc_type): Likewise.
3459 (struct tdesc_feature): Likewise.
3460 * ui-out.h (ui_out_emit_type): Likewise.
3461
0615127c
SM
34622017-09-18 Simon Marchi <simon.marchi@ericsson.com>
3463
3464 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
3465 label abort_expression.
3466
5e187554
SM
34672017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3468
3469 * common/buffer.c (buffer_xml_printf): Adjust.
3470 * common/xml-utils.c (xml_escape_text): Change return type to
3471 std::string, update code accordingly.
3472 * common/xml-utils.h (xml_escape_text): Change return type to
3473 std::string.
3474 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
3475 * windows-tdep.c (windows_xfer_shared_library): Adjust.
3476 * unittests/xml-utils-selftests.c (test_xml_escape_text):
3477 Adjust.
3478
c3d7b541
SM
34792017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3480
3481 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
3482 (SUBDIR_UNITTESTS_OBS): Add new object file.
3483 * unittests/xml-utils-selftests.c: New file.
3484
1526853e
SM
34852017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3486
3487 * common/selftest.h (selftest): New struct/interface.
3488 (register_test): Add name parameter, add new overload.
3489 (run_tests): Add filter parameter.
3490 (for_each_selftest_ftype): New typedef.
3491 (for_each_selftest): New declaration.
3492 * common/selftest.c (tests): Change type to
3493 map<string, unique_ptr<selftest>>.
3494 (simple_selftest): New struct.
3495 (register_test): New function.
3496 (register_test): Add name parameter and use it.
3497 (run_tests): Add filter parameter and use it. Add prints.
3498 Adjust to vector -> map change.
3499 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
3500 registering selftests.
3501 * arm-tdep.c (_initialize_arm_tdep): Likewise.
3502 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
3503 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
3504 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
3505 * findvar.c (_initialize_findvar): Likewise.
3506 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
3507 * maint.c (maintenance_selftest): Update call to run_tests.
3508 (maintenance_info_selftests): New function.
3509 (_initialize_maint_cmds): Register "maintenance info selftests"
3510 command. Update "maintenance selftest" doc.
3511 * regcache.c (_initialize_regcache): Add names when registering
3512 selftests.
3513 * rust-exp.y (_initialize_rust_exp): Likewise.
3514 * selftest-arch.c (gdbarch_selftest): New struct.
3515 (gdbarch_tests): Remove.
3516 (register_test_foreach_arch): Add name parameter. Call
3517 register_test.
3518 (tests_with_arch): Remove, move most content to
3519 gdbarch_selftest::operator().
3520 (_initialize_selftests_foreach_arch): Remove.
3521 * selftest-arch.h (register_test_foreach_arch): Add name
3522 parameter.
3523 (run_tests_with_arch): New declaration.
3524 * utils-selftests.c (_initialize_utils_selftests): Add names
3525 when registering selftests.
3526 * utils.c (_initialize_utils): Likewise.
3527 * unittests/array-view-selftests.c
3528 (_initialize_array_view_selftests): Likewise.
3529 * unittests/environ-selftests.c (_initialize_environ_selftests):
3530 Likewise.
3531 * unittests/function-view-selftests.c
3532 (_initialize_function_view_selftests): Likewise.
3533 * unittests/offset-type-selftests.c
3534 (_initialize_offset_type_selftests): Likewise.
3535 * unittests/optional-selftests.c
3536 (_initialize_optional_selftests): Likewise.
3537 * unittests/scoped_restore-selftests.c
3538 (_initialize_scoped_restore_selftests): Likewise.
3539 * NEWS: Document "maintenance selftest" and "maint info
3540 selftests".
3541
5846367a
SM
35422017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3543
3544 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
3545 scoped_restore.
3546
bd77e8ff
SM
35472017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3548
3549 * mi/mi-main.c (mi_load_progress): Make uiout variable
3550 a unique_ptr.
3551
26a67918
PA
35522017-09-15 Pedro Alves <palves@redhat.com>
3553
3554 * compile/compile-c-types.c (convert_enum, convert_int)
3555 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
3556
3f8a7804
SM
35572017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3558
3559 * dwarf2read.c (copy_string): Remove.
3560 (parse_macro_definition): Replace copy_string with savestring.
3561
8d200706
YQ
35622017-09-15 Yao Qi <yao.qi@linaro.org>
3563
3564 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
3565 gdb_target_obs.
3566 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
3567 Likewise.
3568 (i[34567]86-*-linux*): Likewise.
3569
d185219d
SM
35702017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3571
3572 * dwarf2expr.h (dwarf_stack_value): Add constructor.
3573 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
3574 <stack>: Change type to std::vector.
3575 <stack_len, stack_allocated>: Remove.
3576 <grow_stack>: Remove.
3577 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
3578 (dwarf_expr_context::~dwarf_expr_context): Remove.
3579 (dwarf_expr_context::grow_stack): Remove.
3580 (dwarf_expr_context::push): Adjust.
3581 (dwarf_expr_context::pop): Adjust.
3582 (dwarf_expr_context::fetch): Adjust.
3583 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
3584 (dwarf_expr_context::stack_empty_p): Adjust.
3585 (dwarf_expr_context::execute_stack_op): Adjust.
3586
eccd80d6
SM
35872017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3588
3589 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
3590 return type to bool.
3591 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
3592
69009882
SM
35932017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3594
3595 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
3596 Change type to bool.
3597 (dwarf_stack_value) <in_stack_memory>: Likewise.
3598 (dwarf_expr_context) <push_address>: Change parameter type to
3599 bool.
3600 <fetch_in_stack_memory>: Change return type to bool.
3601 <push>: Change parameter type to bool.
3602 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
3603 to bool.
3604 (dwarf_expr_context::push_address): Likewise.
3605 (dwarf_expr_context::fetch_in_stack_memory): Change return type
3606 to bool.
3607 (dwarf_expr_context::execute_stack_op): Adjust.
3608 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
3609
1e467161
SM
36102017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3611
3612 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
3613 (struct dwarf_expr_context) <n_pieces>: Remove.
3614 <pieces>: Change type to std::vector.
3615 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
3616 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
3617 pieces.
3618 (dwarf_expr_context::add_piece): Adjust.
3619 * dwarf2loc.c (struct piece_closure): Initialize fields.
3620 <n_pieces>: Remove.
3621 <pieces>: Change type to std::vector.
3622 (allocate_piece_closure): Adjust, change parameter to
3623 std::vector rvalue and std::move it to piece_closure.
3624 (rw_pieced_value): Adjust.
3625 (check_pieced_synthetic_pointer): Adjust.
3626 (indirect_synthetic_pointer): Adjust.
3627 (coerce_pieced_ref): Adjust.
3628 (free_pieced_value_closure): Adjust. Use delete to free
3629 piece_closure.
3630 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
3631 to allocate_piece_closure.
3632 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
3633
0782db84
SM
36342017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3635
3636 * probe.h (probe_ops_cp): Remove typedef.
3637 (DEF_VEC_P (probe_ops_cp)): Remove.
3638 (all_probe_ops): Change type to std::vector.
3639 * probe.c (info_probes_for_ops): Adjust to vector change.
3640 (probe_linespec_to_ops): Likewise.
3641 (all_probe_ops): Change type to std::vector.
3642 (_initialize_probe): Adjust to vector change.
3643 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
3644 * elfread.c (elf_get_probes): Likewise.
3645 * stap-probe.c (_initialize_stap_probe): Likewise.
3646
1eac6bea
SM
36472017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3648
3649 * probe.h (struct bound_probe): Define constructors.
3650 * probe.c (bound_probe_s): Remove typedef.
3651 (DEF_VEC_O (bound_probe_s)): Remove VEC.
3652 (collect_probes): Change return type to std::vector, remove
3653 cleanup.
3654 (compare_probes): Return bool, change parameter type. Change
3655 semantic to "less than".
3656 (gen_ui_out_table_header_info): Change parameter to std::vector
3657 and update.
3658 (exists_probe_with_pops): Likewise.
3659 (info_probes_for_ops): Update to std::vector change.
3660 (enable_probes_command): Likewise.
3661 (disable_probes_command): Likewise.
3662
aaa63a31
SM
36632017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3664
3665 * probe.h (struct probe_ops) <get_probes>: Change parameter from
3666 vec to std::vector.
3667 * probe.c (parse_probes_in_pspace): Update.
3668 (find_probes_in_objfile): Update.
3669 (find_probe_by_pc): Update.
3670 (collect_probes): Update.
3671 (probe_any_get_probes): Update.
3672 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
3673 return type to reference to std::vector.
3674 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
3675 std::vector and update.
3676 (dtrace_process_dof): Likewise.
3677 (dtrace_get_probes): Likewise.
3678 * elfread.c (elf_get_probes): Change return type to std::vector,
3679 store an std::vector in bfd_data.
3680 (probe_key_free): Update to std::vector.
3681 * stap-probe.c (handle_stap_probe): Change parameter to
3682 std::vector and update.
3683 (stap_get_probes): Likewise.
3684 * symfile-debug.c (debug_sym_get_probes): Change return type to
3685 std::vector and update.
3686
cb85b21b
TT
36872017-09-11 Tom Tromey <tom@tromey.com>
3688
3689 * breakpoint.c (program_breakpoint_here_p): Update.
3690 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
3691 from make_show_memory_breakpoints_cleanup. Return a
3692 scoped_restore_tmpl<int>.
3693 (restore_show_memory_breakpoints): Remove.
3694 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
3695 * mem-break.c (memory_validate_breakpoint): Update.
3696 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
3697 (ia64_memory_remove_breakpoint): Update.
3698 (ia64_breakpoint_from_pc): Update.
3699 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
3700 from make_show_memory_breakpoints_cleanup.
3701
8fbc99ef
TT
37022017-09-11 Tom Tromey <tom@tromey.com>
3703
3704 * d-namespace.c (d_lookup_symbol): Use std::string.
3705 (find_symbol_in_baseclass): Likewise.
3706
50feb4bd
TT
37072017-09-11 Tom Tromey <tom@tromey.com>
3708
3709 * ctf.c (ctf_start): Use std::string.
3710
c6dc63a1
TT
37112017-09-11 Tom Tromey <tom@tromey.com>
3712
3713 * ada-lang.c (is_known_support_routine): Update.
3714 (ada_unhandled_exception_name_addr_from_raise): Update.
3715 * guile/scm-frame.c (gdbscm_frame_name): Update.
3716 * python/py-frame.c (frapy_name): Update.
3717 (frapy_function): Update.
3718 * stack.h (find_frame_funname): Update.
3719 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
3720 (print_frame): Update.
3721
d6b9b80f
TT
37222017-09-11 Tom Tromey <tom@tromey.com>
3723
3724 * findcmd.c (put_bits): Take a gdb::byte_vector.
3725 (parse_find_args): Return gdb::byte_vector. "args" now const.
3726 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
3727 cleanups.
3728 (find_command): Update.
3729
a9921622
TT
37302017-09-11 Tom Tromey <tom@tromey.com>
3731
3732 * cli/cli-script.c (class scoped_restore_hook_in): New.
3733 (clear_hook_in_cleanup): Remove.
3734 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
3735 scoped_restore_hook_in.
3736
be0d7abb
TT
37372017-09-11 Tom Tromey <tom@tromey.com>
3738
3739 * cli/cli-script.c (restore_interp): Remove.
3740 (read_command_lines): Use scoped_restore_interp.
3741 * interps.c (scoped_restore_interp::set_temp): Rename from
3742 interp_set_temp.
3743 * interps.h (class scoped_restore_interp): New.
3744 (interp_set_temp): Remove.
3745
00f675ff
TT
37462017-09-11 Tom Tromey <tom@tromey.com>
3747
3748 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
3749 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
3750 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
3751 scoped_restore.
3752 (mi_cmd_break_insert_1): Update.
3753 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
3754 scoped_restore.
3755
cb791d59
TT
37562017-09-11 Tom Tromey <tom@tromey.com>
3757
3758 * demangle.c (demangle_command): Update.
3759 * breakpoint.c (disable_command): Update.
3760 (enable_command): Update.
3761 (find_location_by_number): Make "number" const. Use
3762 get_number_trailer.
3763 * cli/cli-utils.c (extract_arg): Return std::string.
3764 * probe.c (parse_probe_linespec): Update. Change types.
3765 (collect_probes): Take string arguments.
3766 (parse_probe_linespec): Likewise.
3767 (info_probes_for_ops): Update.
3768 (enable_probes_command): Update.
3769 (disable_probes_command): Update.
3770 * break-catch-sig.c (catch_signal_split_args): Update.
3771 * mi/mi-parse.c (mi_parse): Update.
3772
2039bd9f
TT
37732017-09-11 Tom Tromey <tom@tromey.com>
3774
3775 * language.h (language_enum): Make argument const.
3776 * language.c (language_enum): Make argument const.
3777
f1735a53
TT
37782017-09-11 Tom Tromey <tom@tromey.com>
3779
3780 * common/common-utils.h (skip_to_space): Remove macro, redeclare
3781 as function.
3782 (skip_to_space): Rename from skip_to_space_const.
3783 * common/common-utils.c (skip_to_space): New function.
3784 (skip_to_space): Rename from skip_to_space_const.
3785 * cli/cli-utils.h (get_number): Rename from get_number_const.
3786 (extract_arg): Rename from extract_arg_const.
3787 * cli/cli-utils.c (get_number): Rename from get_number_const.
3788 (extract_arg): Rename from extract_arg_const.
3789 (number_or_range_parser::get_number): Use ::get_number.
3790 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
3791 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
3792 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
3793 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
3794 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
3795 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
3796 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
3797 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
3798
7d221d74
TT
37992017-09-11 Tom Tromey <tom@tromey.com>
3800
3801 * python/python.c (do_start_initialization): Use
3802 py-event-types.def to initialize types.
3803 Define all object type structures.
3804 * python/python-internal.h: Don't declare event initialization
3805 functions.
3806 * python/py-threadevent.c (thread_event_object_type): Don't
3807 define.
3808 * python/py-stopevent.c (stop_event_object_type): Don't define.
3809 * python/py-signalevent.c (signal_event_object_type): Don't
3810 declare or define.
3811 * python/py-newobjfileevent.c (new_objfile_event_object_type)
3812 (clear_objfiles_event_object_type): Don't declare or define.
3813 * python/py-infevents.c (inferior_call_pre_event_object_type)
3814 (inferior_call_post_event_object_type)
3815 (register_changed_event_object_type)
3816 (memory_changed_event_object_type): Don't declare or define.
3817 * python/py-inferior.c (new_thread_event_object_type)
3818 (new_inferior_event_object_type)
3819 (inferior_deleted_event_object_type): Don't declare or define.
3820 * python/py-exitedevent.c (exited_event_object_type): Don't
3821 declare or define.
3822 * python/py-evts.c (gdbpy_initialize_py_events): Use
3823 py-all-events.def.
3824 * python/py-events.h (thread_event_object_type): Don't declare.
3825 (events_object): Use py-all-events.def.
3826 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
3827 py-event-types.def.
3828 * python/py-event-types.def: New file.
3829 * python/py-continueevent.c (create_continue_event_object): Don't
3830 declare or define.
3831 * python/py-bpevent.c (breakpoint_event_object_type): Don't
3832 declare or define.
3833 * python/py-all-events.def: New file.
3834
35c61a1d
TT
38352017-09-11 Tom Tromey <tom@tromey.com>
3836
3837 * python/py-threadevent.c (create_thread_event_object): Return
3838 gdbpy_ref.
3839 * python/py-stopevent.h (create_stop_event_object)
3840 (create_breakpoint_event_object, create_signal_event_object):
3841 Update.
3842 * python/py-stopevent.c (create_stop_event_object): Return
3843 gdbpy_ref.
3844 (emit_stop_event): Update.
3845 * python/py-signalevent.c (create_signal_event_object): Return
3846 gdbpy_ref.
3847 * python/py-infevents.c (create_inferior_call_event_object):
3848 Update.
3849 * python/py-event.h (create_event_object)
3850 (create_thread_event_object): Update.
3851 * python/py-event.c (create_event_object): Return gdbpy_ref.
3852 * python/py-continueevent.c: Return gdbpy_ref.
3853 * python/py-bpevent.c (create_breakpoint_event_object): Return
3854 gdbpy_ref.
3855
7c96f8c1
TT
38562017-09-11 Tom Tromey <tom@tromey.com>
3857
3858 PR python/15622:
3859 * NEWS: Add entry.
3860 * python/python.c (do_start_initialization): Initialize new event
3861 types.
3862 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
3863 (gdbpy_initialize_inferior_deleted_event)
3864 (gdbpy_initialize_new_thread_event): Declare.
3865 * python/py-threadevent.c (create_thread_event_object): Add option
3866 "thread" parameter.
3867 * python/py-inferior.c (new_thread_event_object_type)
3868 (new_inferior_event_object_type)
3869 (inferior_deleted_event_object_type): Declare.
3870 (python_new_inferior, python_inferior_deleted): New functions.
3871 (add_thread_object): Emit new_thread event.
3872 (gdbpy_initialize_inferior): Attach new functions to corresponding
3873 observers.
3874 (new_thread, new_inferior, inferior_deleted): Define new event
3875 types.
3876 * python/py-evts.c (gdbpy_initialize_py_events): Add new
3877 registries.
3878 * python/py-events.h (events_object) <new_inferior,
3879 inferior_deleted, new_thread>: New fields.
3880 * python/py-event.h (create_thread_event_breakpoint): Add optional
3881 "thread" parameter.
3882
72542b8e
AB
38832017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
3884
3885 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
3886 check current_ui instead.
3887 (internal_vproblem): Likewise.
3888
0d64823e
SM
38892017-09-09 Simon Marchi <simon.marchi@ericsson.com>
3890
3891 * thread.c (print_thread_info_1): Remove unnecessary calls to
3892 uiout->is_mi_like_p.
3893
eb1e02fd
TT
38942017-09-09 Tom Tromey <tom@tromey.com>
3895
3896 * namespace.h (add_using_directive): Update.
3897 * namespace.c (add_using_directive): Change type of excludes to
3898 std::vector.
3899 * dwarf2read.c (read_import_statement): Use std::vector.
3900 (read_namespace): Update.
3901 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3902
0fc21fd8
TT
39032017-09-09 Tom Tromey <tom@tromey.com>
3904
3905 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
3906
49663d05
TT
39072017-09-09 Tom Tromey <tom@tromey.com>
3908
3909 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
3910
0b868b60
TT
39112017-09-09 Tom Tromey <tom@tromey.com>
3912
3913 * stack.c (func_command): Use gdb::def_vector.
3914
c0470d48
TT
39152017-09-09 Tom Tromey <tom@tromey.com>
3916
3917 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
3918 ui_out_emit_list, ui_out_emit_tuple.
3919 (mi_cmd_var_update): Likewise.
3920
ca5909c7
TT
39212017-09-09 Tom Tromey <tom@tromey.com>
3922
3923 * mi/mi-interp.c (mi_user_selected_context_changed): Use
3924 ui_out_redirect_pop.
3925 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
3926 ui_out_redirect_pop.
3927 * utils.c (do_ui_out_redirect_pop)
3928 (make_cleanup_ui_out_redirect_pop): Remove.
3929 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
3930 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
3931 * ui-out.h (ui_out_redirect_pop): New class.
3932
e6a2252a
TT
39332017-09-09 Tom Tromey <tom@tromey.com>
3934
3935 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
3936 (list_available_thread_groups, mi_cmd_list_thread_groups)
3937 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
3938 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
3939 Likewise.
3940
393702cd
TT
39412017-09-09 Tom Tromey <tom@tromey.com>
3942
3943 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
3944 ui_out_emit_tuple.
3945
76f9c9cf
TT
39462017-09-09 Tom Tromey <tom@tromey.com>
3947
3948 * target.c (flash_erase_command): Use ui_out_emit_tuple.
3949 * stack.c (print_frame): Use ui_out_emit_tuple.
3950 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
3951 (info_spu_mailbox_command, info_spu_dma_command)
3952 (info_spu_proxydma_command): Likewise.
3953 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
3954 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
3955 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
3956 ui_out_emit_tuple.
3957 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
3958
dc9fe180
TT
39592017-09-09 Tom Tromey <tom@tromey.com>
3960
3961 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
3962 (class ui_out_emit_table): Update comment.
3963 * ui-out.c (do_cleanup_table_end)
3964 (make_cleanup_ui_out_table_begin_end): Remove.
3965 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
3966 (info_spu_dma_cmdlist): Likewise.
3967 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
3968 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
3969 ui_out_emit_table.
3970
f8cc3da6
TT
39712017-09-09 Tom Tromey <tom@tromey.com>
3972
3973 * thread.c (print_thread_info_1): Use ui_out_emit_table,
3974 ui_out_emit_list, gdb::optional.
3975
481695ed
JB
39762017-09-09 John Baldwin <jhb@FreeBSD.org>
3977
3978 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
3979 prototype.
3980 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
3981 prototype.
3982 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
3983 prototype.
3984 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
3985 * ada-exp.y: Remove _initialize_ada_exp prototype.
3986 * ada-lang.c: Remove _initialize_ada_language prototype.
3987 * ada-tasks.c: Remove _initialize_tasks prototype.
3988 * addrmap.c: Remove _initialize_addrmap prototype.
3989 * agent.c: Remove _initialize_agent prototype.
3990 * aix-thread.c: Remove _initialize_aix_thread prototype.
3991 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
3992 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
3993 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
3994 prototype.
3995 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
3996 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
3997 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
3998 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
3999 prototype.
4000 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
4001 prototype.
4002 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
4003 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
4004 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
4005 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
4006 prototype.
4007 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
4008 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
4009 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
4010 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
4011 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
4012 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
4013 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
4014 prototype.
4015 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
4016 prototype.
4017 * annotate.c: Remove _initialize_annotate prototype.
4018 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
4019 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
4020 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
4021 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
4022 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
4023 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
4024 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
4025 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
4026 prototype.
4027 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
4028 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
4029 * auto-load.c: Remove _initialize_auto_load prototype.
4030 * auxv.c: Remove _initialize_auxv prototype.
4031 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
4032 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
4033 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
4034 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
4035 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
4036 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
4037 prototype.
4038 * break-catch-throw.c: Remove _initialize_break_catch_throw
4039 prototype.
4040 * breakpoint.c: Remove _initialize_breakpoint prototype.
4041 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
4042 * btrace.c: Remove _initialize_btrace prototype.
4043 * charset.c: Remove _initialize_charset prototype.
4044 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
4045 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
4046 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
4047 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
4048 * cli/cli-script.c: Remove _initialize_cli_script prototype.
4049 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
4050 * coffread.c: Remove _initialize_coffread prototype.
4051 * compile/compile.c: Remove _initialize_compile prototype.
4052 * complaints.c: Remove _initialize_complaints prototype.
4053 * completer.c: Remove _initialize_completer prototype.
4054 * copying.awk: Remove _initialize_copying prototype.
4055 * copying.c: Regenerate.
4056 * core-regset.c: Remove _initialize_core_regset prototype.
4057 * corefile.c: Remove _initialize_core prototype.
4058 * corelow.c: Remove _initialize_corelow prototype.
4059 * cp-abi.c: Remove _initialize_cp_abi prototype.
4060 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
4061 * cp-support.c: Remove _initialize_cp_support prototype.
4062 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
4063 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
4064 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
4065 * ctf.c: Remove _initialize_ctf prototype.
4066 * d-lang.c: Remove _initialize_d_language prototype.
4067 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
4068 prototype.
4069 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
4070 * dbxread.c: Remove _initialize_dbxread prototype.
4071 * dcache.c: Remove _initialize_dcache prototype.
4072 * demangle.c: Remove _initialize_demangler prototype.
4073 * disasm-selftests.c: Remove _initialize_disasm_selftests
4074 prototype.
4075 * disasm.c: Remove _initialize_disasm prototype.
4076 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
4077 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
4078 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
4079 prototype.
4080 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
4081 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
4082 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
4083 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
4084 * elfread.c: Remove _initialize_elfread prototype.
4085 * exec.c: Remove _initialize_exec prototype.
4086 * extension.c: Remove _initialize_extension prototype.
4087 * f-lang.c: Remove _initialize_f_language prototype.
4088 * f-valprint.c: Remove _initialize_f_valprint prototype.
4089 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
4090 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
4091 * filesystem.c: Remove _initialize_filesystem prototype.
4092 * findcmd.c: Remove _initialize_mem_search prototype.
4093 * fork-child.c: Remove _initialize_fork_child prototype.
4094 * frame-base.c: Remove _initialize_frame_base prototype.
4095 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
4096 * frame.c: Remove _initialize_frame prototype.
4097 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
4098 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
4099 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
4100 * gcore.c: Remove _initialize_gcore prototype.
4101 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
4102 * gdbarch.c: Regenerate.
4103 * gdbarch.sh: Remove _initialize_gdbarch prototype.
4104 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
4105 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
4106 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
4107 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
4108 * go-lang.c: Remove _initialize_go_language prototype.
4109 * go32-nat.c: Remove _initialize_go32_nat prototype.
4110 * guile/guile.c: Remove _initialize_guile prototype.
4111 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
4112 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
4113 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
4114 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
4115 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
4116 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
4117 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
4118 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
4119 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
4120 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
4121 prototype.
4122 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
4123 prototype.
4124 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
4125 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
4126 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
4127 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
4128 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
4129 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
4130 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
4131 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
4132 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
4133 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
4134 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
4135 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
4136 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
4137 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
4138 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
4139 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
4140 prototype.
4141 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
4142 prototype.
4143 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
4144 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
4145 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
4146 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
4147 * infcall.c: Remove _initialize_infcall prototype.
4148 * infcmd.c: Remove _initialize_infcmd prototype.
4149 * inferior.c: Remove _initialize_inferiors prototype.
4150 * inflow.c: Remove _initialize_inflow prototype.
4151 * infrun.c: Remove _initialize_infrun prototype.
4152 * interps.c: Remove _initialize_interpreter prototype.
4153 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
4154 * jit.c: Remove _initialize_jit prototype.
4155 * language.c: Remove _initialize_language prototype.
4156 * linux-fork.c: Remove _initialize_linux_fork prototype.
4157 * linux-nat.c: Remove _initialize_linux_nat prototype.
4158 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
4159 * linux-thread-db.c: Remove _initialize_thread_db prototype.
4160 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
4161 * m2-lang.c: Remove _initialize_m2_language prototype.
4162 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
4163 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
4164 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
4165 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
4166 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
4167 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
4168 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
4169 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
4170 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
4171 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
4172 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
4173 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
4174 * machoread.c: Remove _initialize_machoread prototype.
4175 * macrocmd.c: Remove _initialize_macrocmd prototype.
4176 * macroscope.c: Remove _initialize_macroscope prototype.
4177 * maint.c: Remove _initialize_maint_cmds prototype.
4178 * mdebugread.c: Remove _initialize_mdebugread prototype.
4179 * memattr.c: Remove _initialize_mem prototype.
4180 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
4181 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
4182 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
4183 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
4184 * mi/mi-main.c: Remove _initialize_mi_main prototype.
4185 * microblaze-linux-tdep.c: Remove
4186 _initialize_microblaze_linux_tdep prototype.
4187 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
4188 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
4189 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
4190 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
4191 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
4192 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
4193 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
4194 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
4195 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
4196 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
4197 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
4198 prototype.
4199 * mipsread.c: Remove _initialize_mipsread prototype.
4200 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
4201 prototype.
4202 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
4203 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
4204 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
4205 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
4206 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
4207 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
4208 prototype.
4209 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
4210 * nto-procfs.c: Remove _initialize_procfs prototype.
4211 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
4212 * objc-lang.c: Remove _initialize_objc_language prototype.
4213 * objfiles.c: Remove _initialize_objfiles prototype.
4214 * observer.c: Remove observer_test_first_notification_function,
4215 observer_test_second_notification_function,
4216 observer_test_third_notification_function, and
4217 _initialize_observer prototypes.
4218 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
4219 * osabi.c: Remove _initialize_gdb_osabi prototype.
4220 * osdata.c: Remove _initialize_osdata prototype.
4221 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
4222 * parse.c: Remove _initialize_parse prototype.
4223 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
4224 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
4225 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
4226 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
4227 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
4228 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
4229 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
4230 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
4231 * printcmd.c: Remove _initialize_printcmd prototype.
4232 * probe.c: Remove _initialize_probe prototype.
4233 * proc-api.c: Remove _initialize_proc_api prototype.
4234 * proc-events.c: Remove _initialize_proc_events prototype.
4235 * proc-service.c: Remove _initialize_proc_service prototype.
4236 * procfs.c: Remove _initialize_procfs prototype.
4237 * psymtab.c: Remove _initialize_psymtab prototype.
4238 * python/python.c: Remove _initialize_python prototype.
4239 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
4240 * record-btrace.c: Remove _initialize_record_btrace prototype.
4241 * record-full.c: Remove _initialize_record_full prototype.
4242 * record.c: Remove _initialize_record prototype.
4243 * regcache.c: Remove _initialize_regcache prototype.
4244 * reggroups.c: Remove _initialize_reggroup prototype.
4245 * remote-notif.c: Remove _initialize_notif prototype.
4246 * remote-sim.c: Remove _initialize_remote_sim prototype.
4247 * remote.c: Remove _initialize_remote prototype.
4248 * reverse.c: Remove _initialize_reverse prototype.
4249 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
4250 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
4251 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
4252 prototype.
4253 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
4254 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
4255 * rust-exp.y: Remove _initialize_rust_exp prototype.
4256 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
4257 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
4258 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
4259 * score-tdep.c: Remove _initialize_score_tdep prototype.
4260 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
4261 prototype.
4262 * ser-go32.c: Remove _initialize_ser_dos prototype.
4263 * ser-mingw.c: Remove _initialize_ser_windows prototype.
4264 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
4265 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
4266 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
4267 * serial.c: Remove _initialize_serial prototype.
4268 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
4269 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
4270 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
4271 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
4272 * skip.c: Remove _initialize_step_skip prototype.
4273 * sol-thread.c: Remove _initialize_sol_thread prototype.
4274 * solib-aix.c: Remove _initialize_solib_aix prototype.
4275 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
4276 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
4277 * solib-frv.c: Remove _initialize_frv_solib prototype.
4278 * solib-spu.c: Remove _initialize_spu_solib prototype.
4279 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
4280 * solib-target.c: Remove _initialize_solib_target prototype.
4281 * solib.c: Remove _initialize_solib prototype.
4282 * source.c: Remove _initialize_source prototype.
4283 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
4284 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
4285 prototype.
4286 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
4287 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
4288 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
4289 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
4290 prototype.
4291 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
4292 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
4293 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
4294 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
4295 prototype.
4296 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
4297 prototype.
4298 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
4299 prototype.
4300 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
4301 prototype.
4302 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
4303 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
4304 prototype.
4305 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
4306 prototype.
4307 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
4308 prototype.
4309 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
4310 prototype.
4311 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
4312 prototype.
4313 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
4314 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
4315 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
4316 * stabsread.c: Remove _initialize_stabsread prototype.
4317 * stack.c: Remove _initialize_stack prototype.
4318 * stap-probe.c: Remove _initialize_stap_probe prototype.
4319 * std-regs.c: Remove _initialize_frame_reg prototype.
4320 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
4321 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
4322 * symfile.c: Remove _initialize_symfile prototype.
4323 * symmisc.c: Remove _initialize_symmisc prototype.
4324 * symtab.c: Remove _initialize_symtab prototype.
4325 * target-dcache.c: Remove _initialize_target_dcache prototype.
4326 * target-descriptions.c: Remove _initialize_target_descriptions
4327 prototype.
4328 * thread.c: Remove _initialize_thread prototype.
4329 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
4330 prototype.
4331 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
4332 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
4333 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
4334 prototype.
4335 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
4336 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
4337 * tracefile.c: Remove _initialize_tracefile prototype.
4338 * tracepoint.c: Remove _initialize_tracepoint prototype.
4339 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
4340 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
4341 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
4342 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
4343 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
4344 * tui/tui-win.c: Remove _initialize_tui_win prototype.
4345 * tui/tui.c: Remove _initialize_tui prototype.
4346 * typeprint.c: Remove _initialize_typeprint prototype.
4347 * user-regs.c: Remove _initialize_user_regs prototype.
4348 * utils.c: Remove _initialize_utils prototype.
4349 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
4350 * valarith.c: Remove _initialize_valarith prototype.
4351 * valops.c: Remove _initialize_valops prototype.
4352 * valprint.c: Remove _initialize_valprint prototype.
4353 * value.c: Remove _initialize_values prototype.
4354 * varobj.c: Remove _initialize_varobj prototype.
4355 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
4356 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
4357 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
4358 * windows-nat.c: Remove _initialize_windows_nat,
4359 _initialize_check_for_gdb_ini, and _initialize_loadable
4360 prototypes.
4361 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
4362 * xcoffread.c: Remove _initialize_xcoffread prototype.
4363 * xml-support.c: Remove _initialize_xml_support prototype.
4364 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
4365 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
4366 prototype.
4367 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
4368 prototype.
4369 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
4370
a611b5cb
KS
43712017-09-08 Keith Seitz <keiths@redhat.com>
4372
4373 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
4374 field.
4375
469412dd
CW
43762017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
4377
4378 * f-valprint.c (f_val_print): Remove check for one byte
4379 sized integers. Remove printing of character type.
4380
a5ad232b
FP
43812017-09-08 Frank Penczek <frank.penczek@intel.com>
4382 Christoph Weinmann <christoph.t.weinmann@intel.com>
4383 Bernhard Heckel <bernhard.heckel@intel.com>
4384
4385 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
4386 to maintain proper indentation when printing pointers/refs.
4387
e5014227
JB
43882017-09-07 Joel Brobecker <brobecker@adacore.com>
4389
4390 GDB 8.0.1 released.
4391
63c99141
JB
43922017-09-07 Joel Brobecker <brobecker@adacore.com>
4393
4394 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
4395
69c1e056
TT
43962017-09-05 Tom Tromey <tom@tromey.com>
4397
4398 * parse.c (funcall_chain): Now a std::vector.
4399 (start_arglist, end_arglist): Simplify.
4400 (free_funcalls): Remove.
4401 (parse_exp_in_context_1): Remove cleanup.
4402
fef704bf
TT
44032017-09-05 Tom Tromey <tom@tromey.com>
4404
4405 * go-exp.y (go_parse): Don't create a cleanup.
4406
5613c585
TT
44072017-09-05 Tom Tromey <tom@tromey.com>
4408
4409 * d-exp.y (PrimaryExpression): Use std::string.
4410 (d_parse): Don't create a cleanup.
4411
eae49211
TT
44122017-09-05 Tom Tromey <tom@tromey.com>
4413
4414 * utils.c (do_clear_parser_state): Remove.
4415 (make_cleanup_clear_parser_state): Remove.
4416 * p-exp.y (pascal_parse): Use scoped_restore.
4417 * m2-exp.y (m2_parse): Use scoped_restore.
4418 * f-exp.y (f_parse): Use scoped_restore.
4419 * d-exp.y (d_parse): Use scoped_restore.
4420 * c-exp.y (c_parse): Use scoped_restore.
4421 * ada-exp.y (ada_parse): Use scoped_restore.
4422 * utils.h (make_cleanup_clear_parser_state): Remove.
4423
73b9be8b
KS
44242017-09-06 Keith Seitz <keiths@redhat.com>
4425
4426 * dwarf2read.c (dw2_linkage_name_attr): New function.
4427 (dw2_linkage_name): New function.
4428 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
4429 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
4430 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
4431
a102602b
KR
44322017-09-06 Kamil Rytarowski <n54@gmx.com>
4433
4434 * config/djgpp/djconfig.sh: Correct shell portability issue.
4435
28ad437d
KR
44362017-09-06 Kamil Rytarowski <n54@gmx.com>
4437
4438 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
4439
351787dd
JB
44402017-09-06 John Baldwin <jhb@FreeBSD.org>
4441
4442 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
4443 * NEWS: Mention new FreeBSD/mips native configuration.
4444 * configure.host: Add aarch64*-*-freebsd*.
4445 * configure.nat: Likewise.
4446 * aarch64-fbsd-nat.c: New file.
4447
c0f84956
JB
44482017-09-06 John Baldwin <jhb@FreeBSD.org>
4449
4450 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
4451 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
4452 * NEWS: Mention new FreeBSD/aarch64 target.
4453 * configure.tgt: Add aarch64*-*-freebsd*.
4454 * aarch64-fbsd-tdep.c: New file.
4455 * aarch64-fbsd-tdep.h: New file.
4456
7610297a
KR
44572017-09-06 Kamil Rytarowski <n54@gmx.com>
4458
4459 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
4460
fbd1b771
JK
44612017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4462
4463 * parse.c (find_minsym_type_and_address): Don't relocate addresses
4464 of TLS symbols.
4465
5ca79eae
PW
44662017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4467
4468 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
4469 call.
4470
bf93d7ba
SM
44712017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4472
4473 * infrun.c (follow_exec): Call add_thread after
4474 target_find_description.
4475
1bb7c059
SM
44762017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4477
4478 * infrun.c (handle_inferior_event_1): When exec'ing, read
4479 stop_pc after follow_exec.
4480
fc809827
SM
44812017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4482
4483 * remote.c (process_g_packet): Update error message.
4484
d2fcdd85
YQ
44852017-09-05 Yao Qi <yao.qi@linaro.org>
4486
4487 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
4488 targets.
4489
e69570ee
PA
44902017-09-05 Pedro Alves <palves@redhat.com>
4491
4492 * eval.c (eval_call, evaluate_funcall): New functions, factored
4493 out from ...
4494 (evaluate_subexp_standard): ... this.
4495
22916b07
YQ
44962017-09-05 Yao Qi <yao.qi@linaro.org>
4497
4498 * amd64-tdep.c (amd64_target_description): Create target
4499 descriptions.
4500 (_initialize_amd64_tdep): Don't call functions
4501 initialize_tdesc_amd64_*. Add self tests.
4502 * arch/amd64.c (amd64_create_target_description): Add parameter
4503 is_linux. Call set_tdesc_osabi if is_linux is true.
4504 * arch/amd64.h (amd64_create_target_description): Update the
4505 declaration.
4506 * arch/i386.c (i386_create_target_description): Add parameter
4507 is_linux. Call set_tdesc_osabi if is_linux is true.
4508 * arch/i386.h (i386_create_target_description): Update
4509 declaration.
4510 * configure.tgt: Add i386.o to gdb_target_obs.
4511 * features/Makefile (XMLTOC): Remove i386/*.xml.
4512 * features/i386/amd64-avx-avx512.c: Remove.
4513 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
4514 * features/i386/amd64-avx-mpx.c: Remove.
4515 * features/i386/amd64-avx.c: Remove.
4516 * features/i386/amd64-mpx.c: Remove.
4517 * features/i386/amd64.c: Remove.
4518 * features/i386/i386-avx-avx512.c: Remove.
4519 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
4520 * features/i386/i386-avx-mpx.c: Remove.
4521 * features/i386/i386-avx.c: Remove.
4522 * features/i386/i386-mmx.c: Remove.
4523 * features/i386/i386-mpx.c: Remove.
4524 * features/i386/i386.c: Remove.
4525 * i386-tdep.c: Don't include features/i386/i386*.c., include
4526 target-descriptions.h and arch/i386.h.
4527 (i386_target_description): Create target descriptions.
4528 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
4529 functions. Do self tests.
4530
0854b7b1
YQ
45312017-09-05 Yao Qi <yao.qi@linaro.org>
4532
4533 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
4534 * features/i386/amd64-avx-avx512-linux.c: Removed.
4535 * features/i386/amd64-avx-linux.c: Removed.
4536 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
4537 * features/i386/amd64-avx-mpx-linux.c: Removed.
4538 * features/i386/amd64-linux.c: Removed.
4539 * features/i386/amd64-mpx-linux.c: Removed.
4540 * features/i386/x32-avx-avx512-linux.c: Removed.
4541 * features/i386/x32-avx-linux.c: Removed.
4542 * features/i386/x32-linux.c: Removed.
4543
b4570e4b
YQ
45442017-09-05 Yao Qi <yao.qi@linaro.org>
4545
4546 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
4547 features/i386/*.c.
4548 (amd64_linux_read_description): Call
4549 amd64_create_target_description.
4550 * arch/amd64.c: New file.
4551 * arch/amd64.h: New file.
4552 * configure.tgt (x86_64-*-linux*): Append amd64.o.
4553 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
4554
6c73f67f
YQ
45552017-09-05 Yao Qi <yao.qi@linaro.org>
4556
4557 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
4558 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
4559 (amd64_linux_read_description): Create target descriptions.
4560 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
4561 functions. Add unit tests.
4562 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
4563 x32-core.xml.
4564 * features/i386/64bit-avx.c: Generated.
4565 * features/i386/64bit-avx512.c: Generated.
4566 * features/i386/64bit-core.c: Generated.
4567 * features/i386/64bit-linux.c: Generated.
4568 * features/i386/64bit-mpx.c: Generated.
4569 * features/i386/64bit-pkeys.c: Generated.
4570 * features/i386/64bit-segments.c: Generated.
4571 * features/i386/64bit-sse.c: Generated.
4572 * features/i386/x32-core.c: Generated.
4573 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
4574 c files for amd64-linux and x32-linux.
4575
9d3d478b
YQ
45762017-09-05 Yao Qi <yao.qi@linaro.org>
4577
4578 * amd64-linux-tdep.c (amd64_linux_read_description): New
4579 function.
4580 (amd64_linux_core_read_description): Call
4581 amd64_linux_read_description.
4582 (amd64_linux_init_abi): Likewise.
4583 (amd64_x32_linux_init_abi): Likewise.
4584 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
4585 * x86-linux-nat.c (x86_linux_read_description): Call
4586 amd64_linux_read_description.
4587
b9f1d50f
YQ
45882017-09-05 Yao Qi <yao.qi@linaro.org>
4589
4590 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
4591 comments.
4592
188c9e6d
YQ
45932017-09-05 Yao Qi <yao.qi@linaro.org>
4594
4595 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
4596 * features/i386/i386-avx-avx512-linux.c: Remove.
4597 * features/i386/i386-avx-linux.c: Remove.
4598 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
4599 * features/i386/i386-avx-mpx-linux.c: Remove.
4600 * features/i386/i386-linux.c: Remove.
4601 * features/i386/i386-mmx-linux.c: Remove.
4602 * features/i386/i386-mpx-linux.c: Remove.
4603
5f035c07
YQ
46042017-09-05 Yao Qi <yao.qi@linaro.org>
4605
4606 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
4607 (SFILES): Add arch/i386.c.
4608 (HFILES_NO_SRCDIR): Add arch/i386.h.
4609 * arch/i386.c: New file.
4610 * arch/i386.h: New file.
4611 * arch/tdesc.h (allocate_target_description): Declare.
4612 (set_tdesc_architecture): Declare.
4613 (set_tdesc_osabi): Declare.
4614 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
4615 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
4616 include arch/i386.h.
4617 (i386_linux_read_description): Remove code and call
4618 i386_create_target_description.
4619 (set_tdesc_architecture): New function.
4620 (set_tdesc_osabi): New function.
4621 * target-descriptions.h (allocate_target_description): Remove.
4622
0abe8a89
YQ
46232017-09-05 Yao Qi <yao.qi@linaro.org>
4624
4625 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
4626 * target-descriptions.c (tdesc_create_feature): Likewise, and
4627 adjust code.
4628 * features/i386/32bit-avx.c: Re-generated.
4629 * features/i386/32bit-avx512.c: Re-generated.
4630 * features/i386/32bit-core.c: Re-generated.
4631 * features/i386/32bit-linux.c: Re-generated.
4632 * features/i386/32bit-mpx.c: Re-generated.
4633 * features/i386/32bit-pkeys.c: Re-generated.
4634 * features/i386/32bit-sse.c: Re-generated.
4635
0a188386
YQ
46362017-09-05 Yao Qi <yao.qi@linaro.org>
4637
4638 * regformats/regdef.h (struct reg): Override operator == and !=.
4639
f49ff000
YQ
46402017-09-05 Yao Qi <yao.qi@linaro.org>
4641
4642 * arch/tdesc.h: New file.
4643 * regformats/regdat.sh: Generate code using tdesc_create_reg.
4644 * target-descriptions.c: Update comments.
4645 * target-descriptions.h: Include "arch/tdesc.h". Remove the
4646 declarations.
4647 * features/i386/32bit-avx.c: Re-generated.
4648 * features/i386/32bit-avx512.c: Re-generated.
4649 * features/i386/32bit-core.c: Re-generated.
4650 * features/i386/32bit-linux.c: Re-generated.
4651 * features/i386/32bit-mpx.c: Re-generated.
4652 * features/i386/32bit-pkeys.c: Re-generated.
4653 * features/i386/32bit-sse.c: Re-generated.
4654
f7000548
YQ
46552017-09-05 Yao Qi <yao.qi@linaro.org>
4656
4657 * regformats/regdat.sh: Update generated code.
4658
c9a5e2a5
YQ
46592017-09-05 Yao Qi <yao.qi@linaro.org>
4660
4661 * regformats/regdat.sh: Adjust code order.
4662
d6b687ac
SM
46632017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4664
4665 * expprint.c (dump_subexp_body_standard): Use constant format
4666 string in fprintf_filtered call.
4667
a379bfd0
JB
46682017-09-04 John Baldwin <jhb@FreeBSD.org>
4669
4670 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
4671 NetBSD/i386.
4672 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
4673
f7efc967
JB
46742017-09-04 John Baldwin <jhb@FreeBSD.org>
4675
4676 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
4677
c49fbc6c
JB
46782017-09-04 John Baldwin <jhb@FreeBSD.org>
4679
4680 * bsd-kvm.o: Define _KMEMUSER.
4681 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
4682 * configure: Regenerate.
4683
26562e73
JB
46842017-09-04 John Baldwin <jhb@FreeBSD.org>
4685
4686 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
4687 * i386-fbsd-nat.c: Likewise.
4688
31cf1487
JB
46892017-09-04 John Baldwin <jhb@FreeBSD.org>
4690
4691 * unittests/array-view-selftests.c: Add include of <array>.
4692
5b9f8a7c
JB
46932017-09-04 John Baldwin <jhb@FreeBSD.org>
4694
4695 * spu-tdep.c (flush_ea_cache): Add missing argument to
4696 call_function_by_hand.
4697
d69cf9b2
PA
46982017-09-04 Pedro Alves <palves@redhat.com>
4699
4700 * NEWS (Safer support for debugging with no debug info): New.
4701
3693fdb3
PA
47022017-09-04 Pedro Alves <palves@redhat.com>
4703
4704 * c-exp.y (function_method, function_method_void): Add current
4705 instance flags to TYPE_INSTANCE.
4706 * dwarf2read.c (check_modifier): New.
4707 (compute_delayed_physnames): Assert that only C++ adds delayed
4708 physnames. Mark fn_fields as const/volatile depending on
4709 physname.
4710 * eval.c (make_params): New type_instance_flags parameter. Use
4711 it as the new type's instance flags.
4712 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
4713 flags element and pass it to make_params.
4714 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
4715 instance flags element.
4716 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
4717 * gdbtypes.h: Include "enum-flags.h".
4718 (type_instance_flags): New enum-flags type.
4719 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
4720 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
4721 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
4722 (follow_type_instance_flags): New function.
4723 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
4724 * parser-defs.h (follow_type_instance_flags): Declare.
4725 * valops.c (value_struct_elt_for_reference): const/volatile must
4726 match too.
4727
e68cb8e0
PA
47282017-09-04 Pedro Alves <palves@redhat.com>
4729
4730 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
4731 function/method scopes; lookup the nested name as a function local
4732 static variable.
4733
858be34c
PA
47342017-09-04 Pedro Alves <palves@redhat.com>
4735
4736 (%type <voidval>): Add function_method.
4737 * c-exp.y (exp): New production for calls with no arguments.
4738 (function_method, function_method_void_or_typelist): New
4739 productions.
4740 (exp): New production for "method()::static_var".
4741 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
4742 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4743 Handle OP_FUNC_STATIC_VAR.
4744 * parse.c (operator_length_standard):
4745 Handle OP_FUNC_STATIC_VAR.
4746
dd5901a6
PA
47472017-09-04 Pedro Alves <palves@redhat.com>
4748
4749 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
4750 handling.
4751 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4752 Ditto.
4753 * parse.c (operator_length_standard, operator_check_standard):
4754 Ditto.
4755 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
4756
46a4882b
PA
47572017-09-04 Pedro Alves <palves@redhat.com>
4758
4759 * ax-gdb.c: Include "typeprint.h".
4760 (gen_expr_for_cast): New function.
4761 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
4762 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
4763 type is unknown.
4764 * dwarf2read.c (new_symbol_full): Fallback to int instead of
4765 nodebug_data_symbol.
4766 * eval.c: Include "typeprint.h".
4767 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
4768 Error out if symbol has unknown type.
4769 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
4770 evaluate_subexp_for_cast.
4771 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
4772 OP_VAR_MSYM_VALUE.
4773 (evaluate_subexp_for_cast): New function.
4774 * gdbtypes.c (init_nodebug_var_type): New function.
4775 (objfile_type): Use it to initialize types of variables with no
4776 debug info.
4777 * typeprint.c (error_unknown_type): New.
4778 * typeprint.h (error_unknown_type): New declaration.
4779 * compile/compile-c-types.c (convert_type_basic): Handle
4780 TYPE_CODE_ERROR; warn and fallback to int for variables with
4781 unknown type.
4782
fe13dfec
PA
47832017-09-04 Pedro Alves <palves@redhat.com>
4784
4785 * eval.c (evaluate_var_value): New function, factored out from ...
4786 (evaluate_subexp_standard): ... here.
4787
d008ee21
PA
47882017-09-04 Pedro Alves <palves@redhat.com>
4789
4790 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
4791 Remove useless assignments to 'op'.
4792
827d0c51
PA
47932017-09-04 Pedro Alves <palves@redhat.com>
4794
4795 * eval.c (eval_skip_value): New function.
4796 (evaluate_subexp_standard): Use it.
4797
2c5a2be1
PA
47982017-09-04 Pedro Alves <palves@redhat.com>
4799
4800 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
4801 function name from symbol/minsym and pass it to
4802 error_call_unknown_return_type.
4803
74ea4be4
PA
48042017-09-04 Pedro Alves <palves@redhat.com>
4805
4806 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
4807 * ax-gdb.c (gen_msym_var_ref): New function.
4808 (gen_expr): Handle OP_VAR_MSYM_VALUE.
4809 * eval.c (evaluate_var_msym_value): New function.
4810 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
4811 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
4812 to call_function_by_hand.
4813 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4814 Handle OP_VAR_MSYM_VALUE.
4815 (union exp_element) <msymbol>: New field.
4816 * minsyms.h (struct type): Forward declare.
4817 (find_minsym_type_and_address): Declare.
4818 * parse.c (write_exp_elt_msym): New function.
4819 (write_exp_msymbol): Delete, refactored as ...
4820 (find_minsym_type_and_address): ... this new function.
4821 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
4822 (operator_length_standard, operator_check_standard): Handle
4823 OP_VAR_MSYM_VALUE.
4824 * std-operator.def (OP_VAR_MSYM_VALUE): New.
4825
7022349d
PA
48262017-09-04 Pedro Alves <palves@redhat.com>
4827
4828 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
4829 TYPE_GNU_IFUNC specially here. Throw error if return type is
4830 unknown.
4831 * ada-typeprint.c (print_func_type): Handle functions with unknown
4832 return type.
4833 * c-typeprint.c (c_type_print_base): Handle functions and methods
4834 with unknown return type.
4835 * compile/compile-c-symbols.c (convert_symbol_bmsym)
4836 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
4837 * compile/compile-c-types.c: Include "objfiles.h".
4838 (convert_func): For functions with unknown return type, warn and
4839 default to int.
4840 * compile/compile-object-run.c (compile_object_run): Adjust call
4841 to call_function_by_hand_dummy.
4842 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
4843 call_function_by_hand.
4844 * eval.c (evaluate_subexp_standard): Adjust calls to
4845 call_function_by_hand. Handle functions and methods with unknown
4846 return type. Pass expect_type to call_function_by_hand.
4847 * f-typeprint.c (f_type_print_base): Handle functions with unknown
4848 return type.
4849 * gcore.c (call_target_sbrk): Adjust call to
4850 call_function_by_hand.
4851 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
4852 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
4853 an integer address type instead of nodebug.
4854 * guile/scm-value.c (gdbscm_value_call): Adjust call to
4855 call_function_by_hand.
4856 * infcall.c (error_call_unknown_return_type): New function.
4857 (call_function_by_hand): New "default_return_type" parameter.
4858 Pass it down.
4859 (call_function_by_hand_dummy): New "default_return_type"
4860 parameter. Use it instead of defaulting to int. If there's no
4861 default and the return type is unknown, throw an error. If
4862 there's a default return type, and the called function has no
4863 debug info, then assume the function is prototyped.
4864 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
4865 New "default_return_type" parameter.
4866 (error_call_unknown_return_type): New declaration.
4867 * linux-fork.c (call_lseek): Cast return type of lseek.
4868 (inferior_call_waitpid, checkpoint_command): Adjust calls to
4869 call_function_by_hand.
4870 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
4871 calls to call_function_by_hand.
4872 * m2-typeprint.c (m2_procedure): Handle functions with unknown
4873 return type.
4874 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4875 (value_nsstring, print_object_command): Adjust calls to
4876 call_function_by_hand.
4877 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
4878 functions with unknown return type.
4879 (pascal_type_print_func_varspec_suffix): New function.
4880 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
4881 TYPE_CODE_METHOD>: Use it.
4882 * python/py-value.c (valpy_call): Adjust call to
4883 call_function_by_hand.
4884 * rust-lang.c (rust_evaluate_funcall): Adjust call to
4885 call_function_by_hand.
4886 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
4887 call_function_by_hand.
4888 * valops.c (value_allocate_space_in_inferior): Adjust call to
4889 call_function_by_hand.
4890 * typeprint.c (type_print_unknown_return_type): New function.
4891 * typeprint.h (type_print_unknown_return_type): New declaration.
4892
54990598
PA
48932017-09-04 Pedro Alves <palves@redhat.com>
4894
4895 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
4896 types with more than one parameter as prototyped.
4897
9a24775b
PA
48982017-09-04 Pedro Alves <palves@redhat.com>
4899
4900 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
4901 (disassemble_command): Use gdb_disassembly_flags instead of bare
4902 int.
4903 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
4904 (dump_insns, do_mixed_source_and_assembly_deprecated)
4905 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
4906 Use gdb_disassembly_flags instead of bare int.
4907 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
4908 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
4909 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
4910 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
4911 (enum gdb_disassembly_flag): ... values of this new enumeration.
4912 (gdb_disassembly_flags): Define.
4913 (gdb_disassembly)
4914 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
4915 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
4916 gdb_disassembly_flags instead of bare int.
4917 * record-btrace.c (btrace_insn_history)
4918 (record_btrace_insn_history, record_btrace_insn_history_range)
4919 (record_btrace_insn_history_from): Use gdb_disassembly_flags
4920 instead of bare int.
4921 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
4922 Use gdb_disassembly_flags instead of bare int.
4923 * target-debug.h (target_debug_print_gdb_disassembly_flags):
4924 Define.
4925 * target-delegates.c: Regenerate.
4926 * target.c (target_insn_history, target_insn_history_from)
4927 (target_insn_history_range): Use gdb_disassembly_flags instead of
4928 bare int.
4929 * target.h: Include "disasm.h".
4930 (struct target_ops) <to_insn_history, to_insn_history_from,
4931 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
4932 int.
4933 (target_insn_history, target_insn_history_from)
4934 (target_insn_history_range): Use gdb_disassembly_flags instead of
4935 bare int.
4936
80a65e9b
SM
49372017-09-04 Simon Marchi <simon.marchi@ericsson.com>
4938
4939 * cli/cli-script.c (build_command_line): For if/while commands,
4940 check whether args is empty.
4941
6b66338c
SM
49422017-09-04 Simon Marchi <simon.marchi@ericsson.com>
4943
4944 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
4945 (enum command_control_type): Likewise.
4946 (struct command_line): Likewise.
4947 (free_command_lines): Likewise.
4948 (struct command_lines_deleter): Likewise.
4949 (command_line_up): Likewise.
4950 (read_command_lines): Likewise.
4951 (read_command_lines_1): Likewise.
4952 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
4953 (enum command_control_type): Likewise.
4954 (struct command_line): Likewise.
4955 (free_command_lines): Likewise.
4956 (struct command_lines_deleter): Likewise.
4957 (command_line_up): Likewise.
4958 (read_command_lines): Likewise.
4959 (read_command_lines_1): Likewise.
4960 * breakpoint.h: Include cli/cli-script.h.
4961 * extension-priv.h: Likewise.
4962 * gdbcmd.h: Likewise.
4963
51abb421
PA
49642017-09-04 Pedro Alves <palves@redhat.com>
4965
4966 * ada-lang.c (is_known_support_routine): Move sal declaration to
4967 where it is initialized.
4968 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
4969 (parse_breakpoint_sals, decode_static_tracepoint_spec)
4970 (clear_command, update_static_tracepoint): Remove init_sal
4971 references. Move declarations closer to initializations.
4972 * cli/cli-cmds.c (list_command): Move sal declarations closer to
4973 initializations.
4974 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
4975 references. Move sal declarations closer to initializations.
4976 * frame.c (find_frame_sal): Return a symtab_and_line via function
4977 return instead of output parameter. Remove init_sal references.
4978 * frame.h (find_frame_sal): Return a symtab_and_line via function
4979 return instead of output parameter.
4980 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
4981 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
4982 instead of memset.
4983 (gdbscm_find_pc_line): Remove init_sal reference.
4984 * infcall.c (call_function_by_hand_dummy): Remove init_sal
4985 references. Move declarations closer to initializations.
4986 * infcmd.c (set_step_frame): Update. Move declarations closer to
4987 initializations.
4988 (finish_backward): Remove init_sal references. Move declarations
4989 closer to initializations.
4990 * infrun.c (process_event_stop_test, handle_step_into_function)
4991 (insert_hp_step_resume_breakpoint_at_frame)
4992 (insert_step_resume_breakpoint_at_caller): Likewise.
4993 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
4994 (symbol_to_sal): Likewise.
4995 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
4996 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
4997 to its initialization.
4998 * reverse.c (save_bookmark_command): Use new/delete. Remove
4999 init_sal references. Move declarations closer to initializations.
5000 * source.c (get_current_source_symtab_and_line): Remove brace
5001 initialization.
5002 (set_current_source_symtab_and_line): Now takes the sal by const
5003 reference. Remove brace initialization.
5004 (line_info): Remove init_sal reference.
5005 * source.h (set_current_source_symtab_and_line): Now takes a
5006 symtab_and_line via const reference.
5007 * stack.c (set_current_sal_from_frame): Adjust.
5008 (print_frame_info): Adjust.
5009 (get_last_displayed_sal): Return the sal via function return
5010 instead of via output parameter. Simplify.
5011 (frame_info): Adjust.
5012 * stack.h (get_last_displayed_sal): Return the sal via function
5013 return instead of via output parameter.
5014 * symtab.c (init_sal): Delete.
5015 (find_pc_sect_line): Remove init_sal references. Move
5016 declarations closer to initializations.
5017 (find_function_start_sal): Remove init_sal references. Move
5018 declarations closer to initializations.
5019 * symtab.h (struct symtab_and_line): In-class initialize all
5020 fields.
5021 * tracepoint.c (set_traceframe_context)
5022 (print_one_static_tracepoint_marker): Remove init_sal references.
5023 Move declarations closer to initializations.
5024 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
5025 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
5026 declarations closer to initializations.
5027 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
5028 init_sal references. Adjust.
5029
6c5b2ebe
PA
50302017-09-04 Pedro Alves <palves@redhat.com>
5031
5032 * ax-gdb.c (agent_command_1): Use range-for.
5033 * break-catch-throw.c (re_set_exception_catchpoint): Update.
5034 * breakpoint.c: Include "common/array-view.h".
5035 (init_breakpoint_sal, create_breakpoint_sal): Change sals
5036 parameter from struct symtabs_and_lines to
5037 array_view<symtab_and_line>. Adjust. Use range-for. Update.
5038 (breakpoint_sals_to_pc): Change sals parameter from struct
5039 symtabs_and_lines to std::vector reference.
5040 (check_fast_tracepoint_sals): Change sals parameter from struct
5041 symtabs_and_lines to std::array_view. Use range-for.
5042 (decode_static_tracepoint_spec): Return a std::vector instead of
5043 symtabs_and_lines. Update.
5044 (create_breakpoint): Update.
5045 (break_range_command, until_break_command, clear_command): Update.
5046 (base_breakpoint_decode_location, bkpt_decode_location)
5047 (bkpt_probe_create_sals_from_location)
5048 (bkpt_probe_decode_location, tracepoint_decode_location)
5049 (tracepoint_probe_decode_location)
5050 (strace_marker_create_sals_from_location): Return a std::vector
5051 instead of symtabs_and_lines.
5052 (strace_marker_create_breakpoints_sal): Update.
5053 (strace_marker_decode_location): Return a std::vector instead of
5054 symtabs_and_lines. Update.
5055 (update_breakpoint_locations): Change struct symtabs_and_lines
5056 parameters to gdb::array_view. Adjust.
5057 (location_to_sals): Return a std::vector instead of
5058 symtabs_and_lines. Update.
5059 (breakpoint_re_set_default): Use std::vector instead of struct
5060 symtabs_and_lines.
5061 (decode_location_default): Return a std::vector instead of
5062 symtabs_and_lines. Update.
5063 * breakpoint.h: Include "common/array-view.h".
5064 (struct breakpoint_ops) <decode_location>: Now returns a
5065 std::vector instead of returning a symtabs_and_lines via output
5066 parameter.
5067 (update_breakpoint_locations): Change sals parameters to use
5068 gdb::array_view.
5069 * cli/cli-cmds.c (edit_command, list_command): Update to use
5070 std::vector and gdb::array_view.
5071 (ambiguous_line_spec): Adjust to use gdb::array_view and
5072 range-for.
5073 (compare_symtabs): Rename to ...
5074 (cmp_symtabs): ... this. Change parameters to symtab_and_line
5075 const reference and adjust.
5076 (filter_sals): Rewrite using std::vector and standard algorithms.
5077 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
5078 (jump_command): Update to use std::vector.
5079 * linespec.c (struct linespec_state) <canonical_names>: Update
5080 comment.
5081 (add_sal_to_sals_basic): Delete.
5082 (add_sal_to_sals, filter_results, convert_results_to_lsals)
5083 (decode_line_2, create_sals_line_offset)
5084 (convert_address_location_to_sals, convert_linespec_to_sals)
5085 (convert_explicit_location_to_sals, parse_linespec)
5086 (event_location_to_sals, decode_line_full, decode_line_1)
5087 (decode_line_with_current_source)
5088 (decode_line_with_last_displayed, decode_objc)
5089 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
5090 (linespec_result::~linespec_result): Adjust to use std::vector
5091 instead of symtabs_and_lines.
5092 * linespec.h (linespec_sals::sals): Now a std::vector.
5093 (struct linespec_result): Use std::vector, bool, and in-class
5094 initialization.
5095 (decode_line_1, decode_line_with_current_source)
5096 (decode_line_with_last_displayed): Return std::vector.
5097 * macrocmd.c (info_macros_command): Use std::vector.
5098 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
5099 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
5100 std::vector.
5101 * probe.h (parse_probes): Return a std::vector.
5102 * python/python.c (gdbpy_decode_line): Use std::vector and
5103 gdb::array_view.
5104 * source.c (select_source_symtab, line_info): Use std::vector.
5105 * stack.c (func_command): Use std::vector.
5106 * symtab.h (struct symtabs_and_lines): Delete.
5107 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
5108
7c44b49c
PA
51092017-09-04 Pedro Alves <palves@redhat.com>
5110
5111 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5112 unittests/array-view-selftests.c.
5113 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
5114 * common/array-view.h: New file.
5115 * unittests/array-view-selftests.c: New file.
5116
e439fa14
PA
51172017-09-04 Pedro Alves <palves@redhat.com>
5118
5119 * cli/cli-cmds.c (edit_command): Pass message to
5120 ambiguous_line_spec.
5121 (list_command): Pass message to ambiguous_line_spec. Say
5122 "first"/"last" instead of "start" and "end" to be consistent with
5123 the manual.
5124 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
5125 them to print formatted message.
5126
7525b645
PA
51272017-09-04 Pedro Alves <palves@redhat.com>
5128
5129 * btrace.c (ftrace_add_pt): Pass btrace_insn to
5130 ftrace_update_insns by reference instead of pointer.
5131
badc0020
YQ
51322017-09-04 Yao Qi <yao.qi@linaro.org>
5133
5134 * i386-go32-tdep.c: Include x86-xstate.h.
5135 (i386_go32_init_abi): Call i386_target_description.
5136 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
5137 if xcr0 is X86_XSTATE_X87_MASK.
5138 * i386-tdep.h (tdesc_i386): Remove the declaration.
5139 (tdesc_i386_mmx): Likewise.
5140
d78bdb54
YQ
51412017-09-04 Yao Qi <yao.qi@linaro.org>
5142
5143 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
5144 X86_XSTATE_SSE_MASK instead of 0.
5145
ca1fa5ee
YQ
51462017-09-04 Yao Qi <yao.qi@linaro.org>
5147
5148 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
5149 i386_target_description.
5150 * i386-fbsd-nat.c (i386fbsd_read_description): Call
5151 i386_target_description.
5152 * i386-tdep.c (i386_gdbarch_init): Likewise.
5153
2434b019
YQ
51542017-09-04 Yao Qi <yao.qi@linaro.org>
5155
5156 * amd64-darwin-tdep.c: Include "x86-xstate.h".
5157 (x86_darwin_init_abi_64): Call amd64_target_description.
5158 * amd64-dicos-tdep.c: Likewise.
5159 * amd64-fbsd-nat.c: Likewise.
5160 * amd64-fbsd-tdep.c: Likewise.
5161 * amd64-nbsd-tdep.c: Likewise.
5162 * amd64-obsd-tdep.c: Likewise.
5163 * amd64-sol2-tdep.c: Likewise.
5164 * amd64-windows-tdep.c: Likewise.
5165 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
5166
0860c437
SM
51672017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5168
5169 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
5170 (btrace_function) <insn>: Change type to use std::vector.
5171 * btrace.c (ftrace_debug, ftrace_call_num_insn,
5172 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
5173 ftrace_update_insns, ftrace_compute_global_level_offset,
5174 btrace_stitch_bts, btrace_clear, btrace_insn_get,
5175 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
5176 change to std::vector.
5177 (ftrace_update_insns): Adjust to change to std::vector, change
5178 type of INSN parameter.
5179 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
5180 * record-btrace.c (btrace_call_history_insn_range,
5181 btrace_compute_src_line_range,
5182 record_btrace_frame_prev_register): Adjust to change to
5183 std::vector.
5184 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
5185 to change to std::vector.
5186
0638b7f9
TT
51872017-09-03 Tom Tromey <tom@tromey.com>
5188
5189 * corefile.c (reopen_exec_file): Use std::string.
5190
8f84fb0e
TT
51912017-09-03 Tom Tromey <tom@tromey.com>
5192
5193 * compile/compile.c (compile_register_name_mangled): Return
5194 std::string.
5195 * compile/compile-loc2c.c (pushf_register_address): Update.
5196 (pushf_register): Update.
5197 * compile/compile-c-types.c (convert_array): Update.
5198 * compile/compile-c-symbols.c (generate_vla_size): Update.
5199 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
5200 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
5201 (convert_one_symbol): Update.
5202 (generate_c_for_for_one_variable): Update.
5203 * compile/compile-c-support.c (c_get_range_decl_name): Return a
5204 std::string.
5205 (generate_register_struct): Update.
5206 * compile/compile-internal.h (c_get_range_decl_name): Return a
5207 std::string.
5208 (compile_register_name_mangled): Return std::string.
5209
18e9961f
TT
52102017-09-03 Tom Tromey <tom@tromey.com>
5211
5212 * utils.c (perror_string): Return a std::string.
5213 (throw_perror_with_name, perror_warning_with_name): Update.
5214
45343786
TT
52152017-09-03 Tom Tromey <tom@tromey.com>
5216
5217 * demangle.c (demangle_command): Use std::string,
5218 unique_xmalloc_ptr.
5219
b57af503
TT
52202017-09-03 Tom Tromey <tom@tromey.com>
5221
5222 * cli/cli-setshow.c (do_set_command): Use std::string.
5223
6eecf35f
TT
52242017-09-03 Tom Tromey <tom@tromey.com>
5225
5226 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
5227
56496dd4
TT
52282017-09-03 Tom Tromey <tom@tromey.com>
5229
5230 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
5231
e91a1fa7
TT
52322017-09-03 Tom Tromey <tom@tromey.com>
5233
5234 * mi/mi-cmd-env.c (env_execute_cli_command): Use
5235 gdb::unique_xmalloc_ptr.
5236
7ffd83d7
TT
52372017-09-03 Tom Tromey <tom@tromey.com>
5238
5239 * thread.c (print_thread_info_1): Use string_printf.
5240 (thread_apply_command, thread_apply_all_command): Use
5241 std::string.
5242
1ccbe998
TT
52432017-09-03 Tom Tromey <tom@tromey.com>
5244
5245 * valprint.c (val_print_string): Update.
5246 * gdbcore.h (memory_error_message): Return std::string.
5247 * corefile.c (memory_error_message): Return std::string.
5248 (memory_error): Update.
5249 * breakpoint.c (insert_bp_location): Update.
5250
23fdd69e
SM
52512017-09-03 Simon Marchi <simon.marchi@ericsson.com>
5252
5253 * target/waitstatus.h (target_waitstatus_to_string): Change
5254 return type to std::string.
5255 * target/waitstatus.c (target_waitstatus_to_string): Return
5256 std::string.
5257 * target.h (target_waitstatus_to_string): Remove declaration.
5258 * infrun.c (resume, clear_proceed_status_thread,
5259 print_target_wait_results, do_target_wait, save_waitstatus,
5260 stop_all_threads): Adjust.
5261 * record-btrace.c (record_btrace_wait): Adjust.
5262 * target-debug.h
5263 (target_debug_print_struct_target_waitstatus_p): Adjust.
5264
5c811d30
JK
52652017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5266
5267 PR gdb/22046
5268 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
5269 detection.
5270
0a2dde4a
SDJ
52712017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
5272
5273 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
5274 for setting/unsetting environment variables on the remote target.
5275 (New remote packets): Add entries for QEnvironmentHexEncoded,
5276 QEnvironmentUnset and QEnvironmentReset.
5277 * common/environ.c (gdb_environ::operator=): Extend method to
5278 handle m_user_set_env_list and m_user_unset_env_list.
5279 (gdb_environ::clear): Likewise.
5280 (match_var_in_string): Change type of first parameter from 'char
5281 *' to 'const char *'.
5282 (gdb_environ::set): Extend method to handle
5283 m_user_set_env_list and m_user_unset_env_list.
5284 (gdb_environ::unset): Likewise.
5285 (gdb_environ::clear_user_set_env): New method.
5286 (gdb_environ::user_set_envp): Likewise.
5287 (gdb_environ::user_unset_envp): Likewise.
5288 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
5289 m_user_unset_env_list on move constructor/assignment.
5290 (unset): Add new default parameter 'update_unset_list = true'.
5291 (clear_user_set_env): New method.
5292 (user_set_envp): Likewise.
5293 (user_unset_envp): Likewise.
5294 (m_user_set_env_list): New std::set.
5295 (m_user_unset_env_list): Likewise.
5296 * common/rsp-low.c (hex2str): New function.
5297 (bin2hex): New overload for bin2hex function.
5298 * common/rsp-low.c (hex2str): New prototype.
5299 (str2hex): New overload prototype.
5300 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
5301 QEnvironmentUnset and QEnvironmentReset.
5302 (remote_protocol_features): Add QEnvironmentHexEncoded,
5303 QEnvironmentUnset and QEnvironmentReset packets.
5304 (send_environment_packet): New function.
5305 (extended_remote_environment_support): Likewise.
5306 (extended_remote_create_inferior): Call
5307 extended_remote_environment_support.
5308 (_initialize_remote): Add QEnvironmentHexEncoded,
5309 QEnvironmentUnset and QEnvironmentReset packet configs.
5310 * unittests/environ-selftests.c (gdb_selftest_env_var):
5311 New variable.
5312 (test_vector_initialization): New function.
5313 (test_init_from_host_environ): Likewise.
5314 (test_reinit_from_host_environ): Likewise.
5315 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
5316 Likewise.
5317 (test_unset_set_empty_vector): Likewise.
5318 (test_vector_clear): Likewise.
5319 (test_std_move): Likewise.
5320 (test_move_constructor):
5321 (test_self_move): Likewise.
5322 (test_set_unset_reset): Likewise.
5323 (run_tests): Rewrite in terms of the functions above.
5324
654670a4
WP
53252017-08-31 Weimin Pan <weimin.pan@oracle.com>
5326
5327 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
5328 (adi_available): Use a temp variable of type CORE_ADDR as argument
5329 3 when calling target_auxv_search.
5330 (adi_normalize_address): Use masks and xor operators to calculate
5331 normalized address.
5332 (adi_read_versions, adi_write_versions, adi_print_versions)
5333 (do_examine, do_assign): Use paddress.
5334
7755ddb7
JB
53352017-08-29 John Baldwin <jhb@FreeBSD.org>
5336
5337 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
5338 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
5339 out of loop and add supply of FIR.
5340 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
5341 add collect of FIR.
5342
fd437cbc
SM
53432017-08-28 Simon Marchi <simon.marchi@ericsson.com>
5344
3804a343 5345 PR gdb/21827
fd437cbc
SM
5346 * cli/cli-script.c (define_command): Don't convert command name
5347 to lower case.
5348
988f6b3d
JB
53492017-08-25 Joel Brobecker <brobecker@adacore.com>
5350
5351 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
5352 Update all callers accordingly. Remove all code blocks handling
5353 the case where DISPP is not NULL.
5354
663c44ac
JK
53552017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5356
5357 PR symtab/22003
5358 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
5359 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
5360 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
5361
f1902523
JK
53622017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5363
5364 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
5365 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
5366 (read_comp_units_from_section): New parameter abbrev_section, use
5367 read_and_check_comp_unit_head, allocate signatured_type if needed.
5368 (create_all_comp_units): Update read_comp_units_from_section caller.
5369
87215ad1
SDJ
53702017-08-23 Pedro Alves <palves@redhat.com>
5371
5372 PR remote/21852
5373 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
5374 to null_ptid and switch to thread without reading the registers
5375 after adding the inferior.
5376
6e41ddec
JK
53772017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5378
5379 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
5380 compile-gcc.
5381 * compile/compile.c (compile_gcc, show_compile_gcc): New.
5382 (compile_to_object): Implement compile_gcc.
5383 (_initialize_compile): Install "set compile-gcc". Initialize
5384 compile_gcc.
5385
e68c32d5
JK
53862017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5387
5388 * compile/compile.c (compile_to_object): Conditionally call
5389 set_verbose. Conditionally call compile or compile_v0.
5390
58afddc6
WP
53912017-08-07 Weimin Pan <weimin.pan@oracle.com>
5392
5393 * sparc64-tdep.h: (adi_normalize_address): New export.
5394 * sparc-nat.h: (open_adi_tag_fd): New export.
5395 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
5396 * sparc64-linux-tdep.c:
5397 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
5398 (sparc64_linux_handle_segmentation_fault): New function.
5399 (sparc64_linux_init_abi): Register
5400 sparc64_linux_handle_segmentation_fault
5401 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
5402 (sparc64_addr_bits_remove): New function.
5403 (sparc64_init_abi): Register sparc64_addr_bits_remove.
5404 (MAX_PROC_NAME_SIZE): New macro.
5405 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
5406 (sparc64adilist): New variable.
5407 (adi_proc_list): New variable.
5408 (find_adi_info): New function.
5409 (add_adi_info): New function.
5410 (get_adi_info_proc): New function.
5411 (get_adi_info): New function.
5412 (info_adi_command): New function.
5413 (read_maps_entry): New function.
5414 (adi_available): New function.
5415 (adi_normalize_address): New function.
5416 (adi_align_address): New function.
5417 (adi_convert_byte_count): New function.
5418 (adi_tag_fd): New function.
5419 (adi_is_addr_mapped): New function.
5420 (adi_read_versions): New function.
5421 (adi_write_versions): New function.
5422 (adi_print_versions): New function.
5423 (do_examine): New function.
5424 (do_assign): New function.
5425 (adi_examine_command): New function.
5426 (adi_assign_command): New function.
5427 (_initialize_sparc64_adi_tdep): New function.
5428
11db9430
SM
54292017-08-22 Simon Marchi <simon.marchi@ericsson.com>
5430
5431 * breakpoint.c (breakpoints_info): Rename to ...
5432 (info_breakpoints_command): ... this.
5433 (watchpoints_info): Rename to ...
5434 (info_watchpoints_command): ... this.
5435 (tracepoints_info): Rename to ...
5436 (info_tracepoints_command): ... this.
5437 (_initialize_breakpoint): Adjust.
5438 * dcache.c (dcache_info): Rename to ...
5439 (info_display_command): ... this.
5440 (_initialize_dcache): Adjust.
5441 * frame.h (args_info): Rename to ...
5442 (info_args_command): ... this.
5443 (locals_info): Rename to ...
5444 (info_locals_command): ... this.
5445 * infcmd.c (nofp_registers_info): Rename to ...
5446 (info_registers_command): ... this.
5447 (float_info): Rename to ...
5448 (info_float_command): ... this.
5449 (program_info): Rename to ...
5450 (info_program_command): ... this.
5451 (all_registers_info): Rename to ...
5452 (info_all_registers_command): ... this.
5453 (vector_info): Rename to ...
5454 (info_vector_command): ... this.
5455 (float_info): Rename to ...
5456 (info_float_command): ... this.
5457 (_initialize_infcmd): Adjust.
5458 * inferior.h (term_info): Rename to ...
5459 (info_terminal_command): ... this.
5460 * inflow.c (term_info): Rename to ...
5461 (info_terminal_command): ... this.
5462 (_initialize_inflow): Adjust.
5463 * infrun.c (signals_info): Rename to ...
5464 (info_signals_command): ... this.
5465 (_initialize_infrun): Adjust.
5466 * objc-lang.c (classes_info): Rename to ...
5467 (info_classes_command): ... this.
5468 (selectors_info): Rename to ...
5469 (info_selectors_command): ... this.
5470 (_initialize_objc_language): Adjust.
5471 * printcmd.c (sym_info): Rename to ...
5472 (info_symbol_command): ... this.
5473 (address_info): Rename to ...
5474 (info_address_command): ... this.
5475 (display_info): Rename to ...
5476 (info_display_command): ... this.
5477 (_initialize_printcmd): Adjust.
5478 * reverse.c (bookmarks_info): Rename to ...
5479 (info_breakpoints_command): ... this.
5480 (_initialize_reverse): Adjust.
5481 * ser-go32.c (dos_info): Rename to ...
5482 (info_serial_command): ... this.
5483 (_initialize_ser_dos): Adjust.
5484 * skip.c (skip_info): Rename to ...
5485 (info_skip_command): ... this.
5486 (_initialize_step_skip): Adjust.
5487 * source.c (line_info): Rename to ...
5488 (info_line_command): ... this.
5489 (source_info): Rename to ...
5490 (info_source_command)
5491 * stack.c (frame_info): Rename to ...
5492 (info_frame_command): ... this.
5493 (locals_info): Rename to ...
5494 (info_locals_command): ... this.
5495 (args_info): Rename to ...
5496 (info_args_command): ... this.
5497 (_initialize_stack): Adjust.
5498 * symtab.c (sources_info): Rename to ...
5499 (info_sources_command): ... this.
5500 (variables_info): Rename to ...
5501 (info_variables_command): ... this.
5502 (functions_info): Rename to ...
5503 (info_functions_command): ... this.
5504 (types_info): Rename to ...
5505 (info_types_command): ... this.
5506 (_initialize_symtab): Adjust.
5507 * target.c (target_info): Rename to ...
5508 (info_target_command): ... this.
5509 (initialize_targets): Adjust.
5510 * tracepoint.c (tvariables_info): Rename to ...
5511 (info_tvariables_command): ... this.
5512 (scope_info): Rename to ...
5513 (info_scope_command): ... this.
5514 (trace_dump_actions): Adjust.
5515 (_initialize_tracepoint): Adjust.
5516
b270e6f9
TT
55172017-08-22 Tom Tromey <tom@tromey.com>
5518
5519 * breakpoint.h (install_breakpoint): Update.
5520 * breakpoint.c (add_solib_catchpoint): Update.
5521 (install_breakpoint): Change argument to a std::unique_ptr.
5522 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
5523 (create_breakpoint_sal, create_breakpoint): Update.
5524 (watch_command_1, catch_exec_command_1)
5525 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
5526 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
5527 Return the breakpoint.
5528 (set_raw_breakpoint_without_location, set_raw_breakpoint)
5529 (new_single_step_breakpoint): Update.
5530 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
5531 std::unique_ptr.
5532 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
5533 std::unique_ptr.
5534 * break-catch-sig.c (create_signal_catchpoint): Use
5535 std::unique_ptr.
5536 * ada-lang.c (create_ada_exception_catchpoint): Use
5537 std::unique_ptr.
5538
36bd8eaa
TT
55392017-08-22 Tom Tromey <tom@tromey.com>
5540
5541 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
5542
56f37645
TT
55432017-08-22 Tom Tromey <tom@tromey.com>
5544
5545 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
5546 (lookup_partial_symbol): Update.
5547
0b581c69
TT
55482017-08-22 Tom Tromey <tom@tromey.com>
5549
5550 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
5551 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
5552 (find_and_open_source, symtab_to_fullname): Update.
5553 * psymtab.c (psymtab_to_fullname): Update.
5554
14278e1f
TT
55552017-08-22 Tom Tromey <tom@tromey.com>
5556
5557 * exec.c (exec_file_attach): Update.
5558 * linux-thread-db.c (try_thread_db_load): Update.
5559 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
5560 * utils.c (gdb_realpath): Change return type.
5561 (gdb_realpath_keepfile): Update.
5562 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
5563 (_initialize_utils): Register the new self test.
5564 * source.c (openp): Update.
5565 (find_and_open_source): Update.
5566 * nto-tdep.c (nto_find_and_open_solib): Update.
5567 * main.c (set_gdb_data_directory): Update.
5568 (captured_main_1): Update.
5569 * dwarf2read.c (dwarf2_get_dwz_file): Update
5570 (dw2_map_symbol_filenames): Update.
5571 * auto-load.c (auto_load_safe_path_vec_update): Update.
5572 (filename_is_in_auto_load_safe_path_vec): Change type of
5573 "filename_realp".
5574 (auto_load_objfile_script): Update.
5575 (file_is_auto_load_safe): Update. Use std::string.
5576 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
5577
4971c9a7
TT
55782017-08-22 Tom Tromey <tom@tromey.com>
5579
5580 * utils.c (gdb_realpath_keepfile): Return a
5581 gdb::unique_xmalloc_ptr.
5582 * exec.c (exec_file_attach): Update.
5583 * utils.h (gdb_realpath_keepfile): Return a
5584 gdb::unique_xmalloc_ptr.
5585
e3e41d58
TT
55862017-08-22 Tom Tromey <tom@tromey.com>
5587
5588 * compile/compile.c (compile_file_command): Use
5589 gdb::unique_xmalloc_ptr, std::string.
5590 * utils.c (gdb_abspath): Change return type.
5591 * source.c (openp): Update.
5592 * objfiles.c (allocate_objfile): Update.
5593 * main.c (set_gdb_data_directory): Update.
5594 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
5595
0d999a6e
ZZ
55962017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
5597
5598 * cli-cmds.c (list_commands): List actual code around more than
5599 one location.
5600
329d5e7e
JB
56012017-08-21 John Baldwin <jhb@FreeBSD.org>
5602
5603 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
5604
bf223d3e
PA
56052017-08-21 Pedro Alves <palves@redhat.com>
5606
5607 PR gdb/19487
5608 * c-exp.y (variable production): Handle function aliases.
5609 * minsyms.c (msymbol_is_text): New function.
5610 * minsyms.h (msymbol_is_text): Declare.
5611 * symtab.c (find_function_alias_target): New function.
5612 * symtab.h (find_function_alias_target): Declare.
5613
c973d0aa
PA
56142017-08-21 Pedro Alves <palves@redhat.com>
5615
5616 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
5617 typedefs.
5618 * typeprint.c (whatis_exp): If handling "whatis", and expression
5619 is OP_TYPE, strip one typedef level. Otherwise don't strip
5620 typedefs here.
5621 * valops.c (value_cast): Save "to" type before resolving
5622 stubs/typedefs. Use that type as resulting value's type.
5623
2989a365
TT
56242017-08-18 Tom Tromey <tom@tromey.com>
5625 Pedro Alves <palves@redhat.com>
5626
5627 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
5628 * sol-thread.c (sol_thread_resume, sol_thread_wait)
5629 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
5630 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
5631 * proc-service.c (ps_xfer_memory): Use scoped_restore.
5632 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
5633 (linux_get_siginfo_data): Add "thread" argument. Use
5634 scoped_restore.
5635 * linux-nat.c (linux_child_follow_fork)
5636 (check_stopped_by_watchpoint): Use scoped_restore.
5637 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
5638 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
5639 (restore_inferior_ptid, save_inferior_ptid): Remove.
5640 * btrace.c (btrace_fetch): Use scoped_restore.
5641 * bsd-uthread.c (bsd_uthread_fetch_registers)
5642 (bsd_uthread_store_registers): Use scoped_restore.
5643 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
5644 scoped_restore.
5645 * aix-thread.c (aix_thread_resume, aix_thread_wait)
5646 (aix_thread_xfer_partial): Use scoped_restore.
5647 * inferior.h (save_inferior_ptid): Remove.
5648
e60eb288
YQ
56492017-08-18 Yao Qi <yao.qi@linaro.org>
5650
5651 PR tdep/21818
5652 * arm-tdep.c (gdb_print_insn_arm): Mark
5653 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
5654
6d580b63
YQ
56552017-08-18 Yao Qi <yao.qi@linaro.org>
5656
5657 * NEWS: Mention GDBserver's new option "--selftest".
5658 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
5659 * selftest.c: Move it to common/selftest.c.
5660 * selftest.h: Move it to common/selftest.h.
5661 * selftest-arch.c (reset): New function.
5662 (tests_with_arch): Call reset.
5663
86dcbf50
YQ
56642017-08-18 Yao Qi <yao.qi@linaro.org>
5665
5666 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
5667 instead of exception_fprintf and printf_filtered.
5668
7649770c
YQ
56692017-08-18 Yao Qi <yao.qi@linaro.org>
5670
5671 * selftest.c (register_self_test): Rename it to
5672 selftests::register_test.
5673 (run_self_tests): selftest::run_tests.
5674 * selftest.h: Update declarations.
5675 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
5676 selftests::register_test_foreach_arch.
5677 * selftest-arch.h: Update declaration.
5678 * aarch64-tdep.c: Update.
5679 * arm-tdep.c: Likewise.
5680 * disasm-selftests.c: Likewise.
5681 * dwarf2loc.c: Likewise.
5682 * dwarf2-frame.c: Likewise.
5683 * findvar.c: Likewise.
5684 * gdbarch-selftests.c: Likewise.
5685 * maint.c (maintenance_selftest): Likewise.
5686 * regcache.c: Likewise.
5687 * rust-exp.y: Likewise.
5688 * selftest-arch.c: Likewise.
5689 * unittests/environ-selftests.c: Likewise.
5690 * unittests/function-view-selftests.c: Likewise.
5691 * unittests/offset-type-selftests.c: Likewise.
5692 * unittests/optional-selftests.c: Likewise.
5693 * unittests/scoped_restore-selftests.c: Likewise.
5694 * utils-selftests.c: Likewise.
5695
b0cba12e
PA
56962017-08-17 Pedro Alves <palves@redhat.com>
5697
5698 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
5699 local.
5700
4c8aa72d
PA
57012017-08-17 Pedro Alves <palves@redhat.com>
5702
5703 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
5704 field.
5705 (reset_die_in_process): Delete, replaced by ...
5706 (process_die_scope): ... this new class. Make it responsible for
5707 freeing cu->line_header too.
5708 (process_die): Use process_die_scope.
5709 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
5710 cu->line_header_die_owner. Don't release the line header if it's
5711 owned by the CU.
5712 (setup_type_unit_groups): Make the CU/DIE own the line header.
5713 Don't release the line header here.
5714
ba713918
AL
57152017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
5716
5717 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
5718
44d0fb3a
RK
57192017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
5720
5721 * NEWS: Mention new shortcuts for nexti and stepi in TUI
5722 Single-Key mode
5723
a5afdb16
RK
57242017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
5725
5726 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
5727 mode command list.
5728
47613aeb
SH
57292017-08-15 Stafford Horne <shorne@gmail.com>
5730
5731 * MAINTAINERS (Write After Approval): Add Stafford Horne.
5732
9c3cc999
SH
57332017-08-15 Stafford Horne <shorne@gmail.com>
5734
5735 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
5736
206726fb
SDJ
57372017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
5738
5739 PR gdb/21954
5740 * infcmd.c (unset_environment_command): Use the 'clear' method on
5741 the environment instead of resetting it.
5742
0335ac6d
JB
57432017-08-15 John Baldwin <jhb@FreeBSD.org>
5744
5745 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
5746 platforms.
5747
d3abe1c8
TT
57482017-08-14 Tom Tromey <tom@tromey.com>
5749
5750 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
5751 (print_binary_chars): Likewise.
5752 (BITS_IN_BYTES): Remove.
5753
d6382fff
TT
57542017-08-14 Tom Tromey <tom@tromey.com>
5755
5756 PR gdb/21675
5757 * valprint.c (LOW_ZERO): Change value to 034.
5758 (print_octal_chars): Add static_asserts for octal constants.
5759 * printcmd.c (print_scalar_formatted): Add 'd' case.
5760
f978cb06
TT
57612017-08-11 Tom Tromey <tom@tromey.com>
5762
5763 * symfile.c (add_symbol_file_command): Use std::vector.
5764
2f5404b3
TT
57652017-08-14 Tom Tromey <tom@tromey.com>
5766
5767 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
5768 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
5769 std::move.
5770 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
5771
de7985c3
PA
57722017-08-11 Pedro Alves <palves@redhat.com>
5773
5774 * infrun.c (process_event_stop_test): Adjust
5775 function_name_is_marked_for_skip call.
5776 * skip.c: Include <list>.
5777 (skiplist_entry): Make it a class with private fields, and
5778 getters/setters.
5779 (skiplist_entry_chain): Delete.
5780 (skiplist_entries): New.
5781 (skiplist_entry_count): Delete.
5782 (highest_skiplist_entry_num): New.
5783 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
5784 (add_skiplist_entry): Delete.
5785 (skiplist_entry::skiplist_entry): New.
5786 (skiplist_entry::add_entry): New.
5787 (skip_file_command, skip_function): Adjust.
5788 (compile_skip_regexp): Delete.
5789 (skip_command): Don't compile regexp here. Adjust to use
5790 skiplist_entry::add_entry.
5791 (skip_info): Adjust to use range-for and getters.
5792 (skip_enable_command, skip_disable_command): Adjust to use
5793 range-for and setters.
5794 (skip_delete_command): Adjust to use std::list.
5795 (add_skiplist_entry): Delete.
5796 (skip_file_p): Delete, refactored as ...
5797 (skiplist_entry::do_skip_file_p): ... this new method.
5798 (skip_gfile_p): Delete, refactored as ...
5799 (skiplist_entry::do_gskip_file_p): ... this new method.
5800 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
5801 (skiplist_entry::skip_function_p): ... this new method.
5802 (function_name_is_marked_for_skip): Now returns bool, and takes
5803 the function sal by const reference. Adjust to use range-for and
5804 skiplist_entry methods.
5805 (_initialize_step_skip): Remove references to
5806 skiplist_entry_chain, skiplist_entry_count.
5807 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
5808 takes the function sal by const reference.
5809
be7d3cd5
YQ
58102017-08-11 Yao Qi <yao.qi@linaro.org>
5811
5812 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
5813 (dwarf2_frame_cache): Remove reset_cache_cleanup.
5814 (dwarf2_frame_cache):
5815 * frame-unwind.c (frame_unwind_try_unwinder): Catch
5816 RETURN_MASK_ALL and set *this_case to NULL.
5817 * frame-unwind.h: Update comments.
5818
1c90d9f0
YQ
58192017-08-11 Yao Qi <yao.qi@linaro.org>
5820
5821 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
5822 (dwarf2_frame_state_copy_regs): Remove.
5823 (dwarf2_frame_state_free_regs): Remove.
5824 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
5825 (dwarf2_restore_rule): Call method .alloc_regs instead of
5826 dwarf2_frame_state_alloc_regs.
5827 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
5828 constructor. Call std::move.
5829 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
5830 (dwarf2_frame_cache): Likewise.
5831
5832 [GDB_SELF_TEST]: Include selftest.h and
5833 selftest-arch.h.
5834 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
5835 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
5836 execute_cfa_program_test.
5837
5838 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
5839 copy ctor, assignment operator, move assignment.
5840 <alloc_regs>: New method.
5841 <swap>: New method.
5842 (struct dwarf2_frame_state): Delete dtor.
5843 (dwarf2_frame_state_alloc_regs): Remove declaration.
5844 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
5845 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
5846
afe37d6b
YQ
58472017-08-11 Yao Qi <yao.qi@linaro.org>
5848
5849 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
5850 (dwarf2_frame_state::dwarf2_frame_state): New.
5851 (dwarf2_frame_state::~dwarf2_frame_state): New.
5852 (dwarf2_fetch_cfa_info): Update.
5853 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
5854 rather than a pointer. Update code.
5855 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
5856 dtor.
5857 <data_align, code_align, retaddr_column>: Change them to const.
5858 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
5859 to bool.
5860
b348037f
YQ
58612017-08-11 Yao Qi <yao.qi@linaro.org>
5862
5863 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
5864 <loc.exp>: New field.
5865 * dwarf2-frame.c (execute_cfa_program): Update.
5866 (dwarf2_frame_prev_register): Update.
5867
e7c9de26
PA
58682017-08-10 Pedro Alves <palves@redhat.com>
5869
5870 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
5871
e8c6b620
JB
58722017-08-09 John Baldwin <jhb@FreeBSD.org>
5873
5874 * fbsd-nat.c (struct fbsd_fork_info): Remove.
5875 (fbsd_pending_children): Use std::list.
5876 (fbsd_remember_child): Likewise.
5877 (fbsd_is_child_pending): Likewise.
5878 (fbsd_pending_vfork_done): Use std::forward_list.
5879 (fbsd_add_vfork_done): Likewise.
5880 (fbsd_is_vfork_done_pending): Likewise.
5881 (fbsd_next_vfork_done): Likewise.
5882
e4a26669
JB
58832017-08-09 John Baldwin <jhb@FreeBSD.org>
5884
5885 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
5886 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
5887 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
5888 for `mapfilename'.
5889 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 5890 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 5891
142311d3
JB
58922017-08-09 John Baldwin <jhb@FreeBSD.org>
5893
5894 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
5895 "filestuff.h".
5896 (fbsd_find_memory_regions): Fix `mapfile' initialization.
5897
42fa2e0e
TT
58982017-08-09 Tom Tromey <tom@tromey.com>
5899
5900 * skip.c (skiplist_entry): New constructor.
5901 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
5902 (skiplist_entry::file_is_glob): Now bool.
5903 (skiplist_entry::file, skiplist_entry::function): Now
5904 std::string.
5905 (make_skip_entry): Return a unique_ptr. Use new.
5906 (free_skiplist_entry, free_skiplist_entry_cleanup)
5907 (make_free_skiplist_entry_cleanup): Remove.
5908 (skip_command, skip_disable_command, add_skiplist_entry)
5909 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
5910 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
5911 (function_name_is_marked_for_skip): Update.
5912 (skip_delete_command): Update. Use delete.
5913
cd3af38d
JW
59142017-08-09 Jiong Wang <jiong.wang@arm.com>
5915
5916 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
5917 (aarch64_linux_core_read_description): New function.
5918 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
5919
29592bde
PA
59202017-08-09 Pedro Alves <palves@redhat.com>
5921
5922 * cp-name-parser.y (cp_comp_to_string): Return a
5923 gdb::unique_xmalloc_ptr<char>.
5924 * cp-support.c (replace_typedefs_qualified_name)
5925 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
5926 (cp_canonicalize_string_full): Use op= instead of explicit
5927 convertion.
5928 (cp_class_name_from_physname, method_name_from_physname)
5929 (cp_func_name, cp_remove_params): Adjust to use
5930 gdb::unique_xmalloc_ptr<char>.
5931 * cp-support.h (cp_comp_to_string): Return a
5932 gdb::unique_xmalloc_ptr<char>.
5933 * python/py-type.c (typy_lookup_type): Adjust to use
5934 gdb::unique_xmalloc_ptr<char>.
5935
b3340438
L
59362017-08-09 H.J. Lu <hongjiu.lu@intel.com>
5937
5938 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
5939
e88e8651
YQ
59402017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
5941 Yao Qi <yao.qi@linaro.org>
5942
5943 * cp-support.c (cp_canonicalize_string_full): Use
5944 gdb::unique_xmalloc_ptr<char>.
5945 (cp_canonicalize_string): Likewise.
5946
f5a29eb0
YQ
59472017-08-09 Yao Qi <yao.qi@linaro.org>
5948
5949 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
5950 * regformats/i386/amd64-avx-avx512.dat: Remove.
5951 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
5952 * regformats/i386/amd64-avx-mpx.dat:Remove.
5953 * regformats/i386/amd64-avx.dat: Remove.
5954 * regformats/i386/amd64-mpx.dat: Remove.
5955 * regformats/i386/i386-avx-avx512.dat: Remove.
5956 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
5957 * regformats/i386/i386-avx-mpx.dat: Remove.
5958 * regformats/i386/i386-mmx.dat: Remove.
5959 * regformats/i386/i386-mpx.dat: Remove.
5960
57757c2f
YQ
59612017-08-09 Yao Qi <yao.qi@linaro.org>
5962
5963 * amd64-tdep.h (tdesc_x32): Remove the declaration.
5964 * amd64-tdep.c: Don't include features/i386/x32*.c.
5965 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
5966 functions.
5967 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
5968 and i386/x32-avx-avx512.
5969 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
5970 and i386/x32.xml.
5971 * features/i386/x32-avx-avx512.c: Removed.
5972 * features/i386/x32-avx-avx512.xml: Removed.
5973 * features/i386/x32-avx.c: Removed.
5974 * features/i386/x32-avx.xml: Removed.
5975 * features/i386/x32.c: Removed.
5976 * features/i386/x32.xml: Removed.
5977 * regformats/i386/x32-avx-avx512.dat: Removed.
5978 * regformats/i386/x32-avx.dat: Removed.
5979 * regformats/i386/x32.dat: Removed.
5980
ba7b109b
MR
59812017-08-07 Maciej W. Rozycki <macro@imgtec.com>
5982
5983 PR breakpoints/21886
5984 * mem-break.c (default_memory_insert_breakpoint): Use
5985 `->placed_address' rather than `->reqstd_address' for the
5986 breakpoint location.
5987
e347efc3
MR
59882017-08-07 Maciej W. Rozycki <macro@imgtec.com>
5989
5990 * arch-utils.c (default_print_insn): Remove arch/mach/endian
5991 assertions.
5992
0dba2a6c
MR
59932017-08-07 Maciej W. Rozycki <macro@imgtec.com>
5994
5995 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
5996 a union of `tdep_info', `tdesc_data' and `id'.
5997 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
5998 rather than `info.tdep_info'.
5999 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
6000 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6001 * i386-tdep.c (i386_gdbarch_init): Likewise.
6002 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
6003 * mips-tdep.c (mips_gdbarch_init): Likewise.
6004 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
6005 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
6006 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
6007 `info.tdep_info'.
6008 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
6009 `info.tdep_info'.
6010 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6011 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
6012 `info.tdep_info'.
6013 * spu-tdep.c (spu_gdbarch_init): Likewise.
6014 * gdbarch.h: Regenerate.
6015
16eb6b2d
LS
60162017-08-07 Leszek Swirski <leszeks@google.com>
6017
7b005726 6018 PR symtab/20899
16eb6b2d
LS
6019 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
6020
74cbb09e
SM
60212017-08-07 Simon Marchi <simon.marchi@ericsson.com>
6022
6023 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
6024 (gdbsim_open): Rename gdb_argv args object to argv.
6025
ee0c3293
TT
60262017-08-05 Tom Tromey <tom@tromey.com>
6027
6028 * compile/compile-object-load.c (compile_object_load): Use
6029 gdb::unique_xmalloc_ptr.
6030 * cli/cli-dump.c (scan_filename): Rename from
6031 scan_filename_with_cleanup. Change return type.
6032 (scan_expression): Rename from scan_expression_with_cleanup.
6033 Change return type.
6034 (dump_memory_to_file, dump_value_to_file, restore_command):
6035 Use gdb::unique_xmalloc_ptr. Update.
6036 * cli/cli-cmds.c (find_and_open_script): Use
6037 gdb::unique_xmalloc_ptr.
6038 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
6039 * symmisc.c (maintenance_print_symbols)
6040 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
6041 * symfile.c (symfile_bfd_open, generic_load)
6042 (add_symbol_file_command, remove_symbol_file_command): Use
6043 gdb::unique_xmalloc_ptr.
6044 * source.c (openp): Use gdb::unique_xmalloc_ptr.
6045 * psymtab.c (maintenance_print_psymbols): Use
6046 gdb::unique_xmalloc_ptr.
6047 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
6048 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
6049 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
6050 (reload_shared_libraries_1): Likewise.
6051
3232fabd
TT
60522017-08-05 Tom Tromey <tom@tromey.com>
6053
6054 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
6055 (rust_op_vector, rust_set_vector): New typedefs.
6056 (current_parser): New global.
6057 (work_obstack): Change to pointer type. Update all users.
6058 (rust_ast, pstate): Remove globals.
6059 (struct rust_parser): New.
6060 (%union) <params, field_inits>: Change type.
6061 (start, tuple_expr, unit_expr, struct_expr_list, literal)
6062 (field_expr, expr_list, maybe_expr_list, type_list): Update.
6063 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
6064 (convert_params_to_types, convert_params_to_expression): Change
6065 type of "params".
6066 (ast_string): Change type of "fields".
6067 (rust_parse): Make a rust_parser. Remove cleanups.
6068 (rust_lex_tests): Make and install an auto_obstack.
6069
f02fd774
YQ
60702017-08-04 Yao Qi <yao.qi@linaro.org>
6071
6072 * configure.srv (ipa_x32_linux_regobj): New.
6073 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
6074 instead of X86_TDESC_AVX512.
6075 (initialize_low_tracepoint): Call
6076 init_registers_x32_avx_avx512_linux.
6077
91975afd
YQ
60782017-08-04 Yao Qi <yao.qi@linaro.org>
6079
6080 * utils.h (gdb_argv): Add namespace std for nullptr_t.
6081
2331fa3a
RK
60822017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
6083
6084 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
6085
744e4fe1
TT
60862017-08-03 Tom Tromey <tom@tromey.com>
6087
6088 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
6089 Remove.
6090 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
6091
1c034b67
TT
60922017-08-03 Tom Tromey <tom@tromey.com>
6093
6094 * python/py-param.c (compute_enum_values): Use gdb_argv.
6095
773a1edc
TT
60962017-08-03 Tom Tromey <tom@tromey.com>
6097
6098 * utils.h (struct gdb_argv_deleter): New.
6099 (gdb_argv): New class.
6100 * utils.c (gdb_argv::reset): New method.
6101 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
6102 * tracefile.c (tsave_command): Use gdb_argv.
6103 * top.c (new_ui_command): Use gdb_argv.
6104 * symmisc.c (maintenance_print_symbols)
6105 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
6106 * symfile.c (symbol_file_command, generic_load)
6107 (remove_symbol_file_command): Use gdb_argv.
6108 * stack.c (backtrace_command): Use gdb_argv.
6109 * source.c (add_path, show_substitute_path_command)
6110 (unset_substitute_path_command, set_substitute_path_command):
6111 Use gdb_argv.
6112 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
6113 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
6114 * remote.c (extended_remote_run, remote_put_command)
6115 (remote_get_command, remote_delete_command): Use gdb_argv.
6116 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
6117 (gdbsim_open): Use gdb_argv.
6118 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
6119 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
6120 * procfs.c (procfs_info_proc): Use gdb_argv.
6121 * interps.c (interpreter_exec_cmd): Use gdb_argv.
6122 * infrun.c (handle_command): Use gdb_argv.
6123 * inferior.c (add_inferior_command, clone_inferior_command):
6124 Use gdb_argv.
6125 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
6126 * exec.c (exec_file_command): Use gdb_argv.
6127 * cli/cli-cmds.c (alias_command): Use gdb_argv.
6128 * compile/compile.c (build_argc_argv): Use gdb_argv.
6129
0d50bde3
TT
61302017-08-03 Tom Tromey <tom@tromey.com>
6131
6132 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
6133
7f968c89
TT
61342017-08-03 Tom Tromey <tom@tromey.com>
6135
6136 * python/python.c (compute_python_string): Return std::string.
6137 (gdbpy_eval_from_control_command): Update.
6138 (do_start_initialization): Use std::string.
6139 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
6140 xstrprintf.
6141 * python/py-breakpoint.c (local_setattro): Use string_printf, not
6142 xstrprintf.
6143
3c9ebddd
TT
61442017-08-03 Tom Tromey <tom@tromey.com>
6145
6146 * top.h (do_restore_instream_cleanup): Remove.
6147 * top.c (do_restore_instream_cleanup): Remove.
6148 (read_command_file): Use scoped_restore.
6149 * cli/cli-script.c (execute_user_command): Use scoped_restore.
6150
b51b225e
TT
61512017-08-03 Tom Tromey <tom@tromey.com>
6152
6153 * cli/cli-script.c (execute_user_command)
6154 (execute_control_command): Use scoped_restore.
6155
ac991630
TT
61562017-08-03 Tom Tromey <tom@tromey.com>
6157
6158 * cli/cli-script.c (do_restore_user_call_depth): Remove.
6159 (execute_user_command): Remove user_call_depth; use
6160 user_args_stack's size instead.
6161
898e0c8e
TT
61622017-08-03 Tom Tromey <tom@tromey.com>
6163
6164 * top.h (in_user_command): Remove.
6165 * top.c (in_user_command): Remove.
6166 * cli/cli-script.c (do_restore_user_call_depth)
6167 (execute_user_command): Update.
6168
26fcd5d7
TT
61692017-08-03 Tom Tromey <tom@tromey.com>
6170
6171 * valops.c (search_struct_method): Use gdb::byte_vector.
6172 * valarith.c (value_concat): Use std::vector.
6173 * target.c (memory_xfer_partial): Use gdb::byte_vector.
6174 (simple_search_memory): Likewise.
6175 * printcmd.c (find_string_backward): Use gdb::byte_vector.
6176 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
6177 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
6178 * elfread.c (elf_rel_plt_read): Use std::string.
6179 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
6180 * cli/cli-dump.c (restore_section_callback): Use
6181 gdb::byte_vector.
6182
7c218e6c
TT
61832017-08-03 Tom Tromey <tom@tromey.com>
6184
6185 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
6186
31b68d4a
TT
61872017-08-03 Tom Tromey <tom@tromey.com>
6188
6189 * tui/tui-regs.c (tui_restore_gdbout): Remove.
6190 (tui_register_format): Use scoped_restore.
6191
2ec845e7
TT
61922017-08-03 Tom Tromey <tom@tromey.com>
6193
6194 * reverse.c (exec_direction_default): Remove.
6195 (exec_reverse_once): Use scoped_restore.
6196 * remote.c (restore_remote_timeout): Remove.
6197 (remote_flash_erase, remote_flash_write, remote_flash_done)
6198 (readchar, remote_serial_write): Use scoped_restore.
6199 * cli/cli-script.c (struct source_cleanup_lines_args)
6200 (source_cleanup_lines): Remove.
6201 (script_from_file): Use scoped_restore.
6202 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
6203 (source_command): Use scoped_restore.
6204
b3bc8453
TT
62052017-08-03 Tom Tromey <tom@tromey.com>
6206
6207 * utils.h (make_cleanup_free_so): Remove.
6208 * utils.c (do_free_so, make_cleanup_free_so): Remove.
6209 * solist.h (struct so_deleter): New.
6210 (so_list_up): New typedef.
6211 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
6212
e3ad2841
TT
62132017-08-03 Tom Tromey <tom@tromey.com>
6214
6215 * utils.h (make_cleanup_restore_current_language): Remove.
6216 * utils.c (do_restore_current_language)
6217 (make_cleanup_restore_current_language): Remove.
6218 * parse.c (parse_exp_in_context_1)
6219 (parse_expression_with_language): Use
6220 scoped_restore_current_language.
6221 * mi/mi-main.c (mi_cmd_execute): Use
6222 scoped_restore_current_language.
6223 * language.h (scoped_restore_current_language): New class.
6224
b80cf838
TT
62252017-08-03 Tom Tromey <tom@tromey.com>
6226
6227 * compile/compile.c (cleanup_unlink_file): Remove.
6228 (compile_to_object): Use gdb::unlinker.
6229 (eval_compile_command): Likewise.
6230
fad0444a
TT
62312017-08-03 Tom Tromey <tom@tromey.com>
6232
6233 * utils.h (make_cleanup_fclose): Remove.
6234 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
6235
6e7bc05c
TT
62362017-08-03 Tom Tromey <tom@tromey.com>
6237
6238 * top.c (open_terminal_stream): Return gdb_file_up.
6239 (new_ui_command): Update.
6240
4a45905b
TT
62412017-08-03 Tom Tromey <tom@tromey.com>
6242
6243 * source.c (print_source_lines_base, forward_search_command)
6244 (reverse_search_command): Use gdb_file_up.
6245
7cd06d6e
TT
62462017-08-03 Tom Tromey <tom@tromey.com>
6247
6248 * fbsd-nat.c (fbsd_find_memory_regions): Update.
6249
ed166945
TT
62502017-08-03 Tom Tromey <tom@tromey.com>
6251
6252 * cli/cli-cmds.c (find_and_open_script): Change return type.
6253 Remove "streamp" and "full_path" parameters.
6254 (source_script_with_search): Update.
6255 * auto-load.c (source_script_file): Update.
6256 * cli/cli-cmds.h (find_and_open_script): Change type.
6257 (open_script): New struct.
6258
d419f42d
TT
62592017-08-03 Tom Tromey <tom@tromey.com>
6260
6261 * xml-support.c (xml_fetch_content_from_file): Update.
6262 * ui-file.c (stdio_file::open): Update.
6263 * tracefile-tfile.c (tfile_start): Update.
6264 * remote.c (remote_file_put, remote_file_get): Update.
6265 * nat/linux-procfs.c (linux_proc_get_int)
6266 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
6267 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
6268 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
6269 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6270 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
6271 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
6272 * linux-nat.c (linux_proc_pending_signals): Update.
6273 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
6274 (file_closer): Remove.
6275 * compile/compile.c (compile_to_object): Update.
6276 * common/filestuff.h (struct gdb_file_deleter): New.
6277 (gdb_file_up): New typedef.
6278 (gdb_fopen_cloexec): Change return type.
6279 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
6280 * cli/cli-dump.c (fopen_with_cleanup): Remove.
6281 (dump_binary_file, restore_binary_file): Update.
6282 * auto-load.c (auto_load_objfile_script_1): Update.
6283
4a2b031d
TT
62842017-08-03 Tom Tromey <tom@tromey.com>
6285
6286 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
6287 (info_static_tracepoint_markers_command): Likewise.
6288 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
6289 * skip.c (skip_info): Use ui_out_emit_table.
6290 * progspace.c (print_program_space): Use ui_out_emit_table.
6291 * osdata.c (info_osdata): Use ui_out_emit_table.
6292 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
6293 ui_out_emit_table.
6294 * linux-thread-db.c (info_auto_load_libthread_db): Use
6295 ui_out_emit_table.
6296 * inferior.c (print_inferior): Use ui_out_emit_table.
6297 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
6298 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
6299 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
6300 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
6301 * ui-out.h (class ui_out_emit_table): New.
6302
a4f320fd
MR
63032017-08-02 Maciej W. Rozycki <macro@imgtec.com>
6304
6305 * mips-tdep.c (mips_fpu_type_str): New function.
6306 (mips_dump_tdep): Call it.
6307
a2f1f308
MR
63082017-08-01 Maciej W. Rozycki <macro@imgtec.com>
6309
6310 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
6311 `->mips_fpu_type'.
6312
7e5ed83b
XR
63132017-07-31 Xavier Roirand <roirand@adacore.com>
6314
6315 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6316
4c9dc811
XR
63172017-07-27 Xavier Roirand <roirand@adacore.com>
6318
6319 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
6320
27d41eac
YQ
63212017-07-26 Yao Qi <yao.qi@linaro.org>
6322
6323 * cli/cli-cmds.c (maintenancechecklist): New variable.
6324 * gdbcmd.h (maintenancechecklist): Declare it.
6325 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
6326 Call i386_linux_read_description with different masks.
6327 * maint.c (maintenance_check_command): New function.
6328 (_initialize_maint_cmds): Call add_prefix_cmd.
6329 * target-descriptions.c (tdesc_reg): override operator != and ==.
6330 (tdesc_type): Likewise.
6331 (tdesc_feature): Likewise.
6332 (target_desc): Likewise.
6333 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
6334 (maintenance_check_xml_descriptions): New function.
6335 (_initialize_target_descriptions) Add command "xml-descriptions".
6336 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
6337
ea03d0d3
YQ
63382017-07-26 Yao Qi <yao.qi@linaro.org>
6339
6340 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
6341 Include features/i386/32bit-*.c.
6342 (i386_linux_read_description): Generate target description if it
6343 doesn't exist.
6344 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
6345 functions.
6346 * features/i386/32bit-linux.c: Re-generated.
6347 * features/i386/32bit-sse.c: Likewise.
6348 * target-descriptions.c (print_c_feature::visit): Print code to
6349 set register number if needed.
6350 (print_c_feature) <m_next_regnum>: New field.
6351
25aa13e5
YQ
63522017-07-26 Yao Qi <yao.qi@linaro.org>
6353
6354 * features/Makefile (CFILES): Rename with TDESC_CFILES.
6355 (FEATURE_XMLFILES): New.
6356 (FEATURE_CFILES): New.
6357 New rules.
6358 (clean-cfiles): Remove generated c files.
6359 * features/i386/32bit-avx.c: Generated.
6360 * features/i386/32bit-avx512.c: Generated.
6361 * features/i386/32bit-core.c: Generated.
6362 * features/i386/32bit-linux.c: Generated.
6363 * features/i386/32bit-mpx.c: Generated.
6364 * features/i386/32bit-pkeys.c: Generated.
6365 * features/i386/32bit-sse.c: Generated.
6366 * target-descriptions.c: Include algorithm.
6367 (tdesc_element_visitor): Add method visit_end.
6368 (print_c_tdesc): Implement visit_end.
6369 (print_c_tdesc:: m_filename_after_features): Move it to
6370 protected.
6371 (print_c_feature): New class.
6372 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
6373 name starts with "i386/32bit-".
6374
6eb1e6a8
YQ
63752017-07-26 Yao Qi <yao.qi@linaro.org>
6376
6377 * target-descriptions.c (tdesc_element_visitor): New class.
6378 (tdesc_element): New class.
6379 (tdesc_reg): Inherit from tdesc_element.
6380 (tdesc_reg::accept): New function.
6381 (tdesc_type): Inherit from tdesc_element.
6382 (tdesc_type::accept): New function.
6383 (tdesc_feature): Inherit from tdesc_element.
6384 (tdesc_feature::accept): New function.
6385 (target_desc): Inherit from tdesc_element.
6386 (target_desc::target_desc): New.
6387 (target_desc::~target_desc): New.
6388 (target_desc::accept): New.
6389 (allocate_target_description): Use new.
6390 (free_target_description): Use delete.
6391 (print_c_tdesc): New class.
6392 (maint_print_c_tdesc_cmd): Adjust.
6393
6394 * features/aarch64.c: Re-generated.
6395 * features/arc-arcompact.c: Re-generated.
6396 * features/arc-v2.c: Re-generated.
6397 * features/arm/arm-with-iwmmxt.c: Re-generated.
6398 * features/arm/arm-with-m.c: Re-generated.
6399 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
6400 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
6401 * features/arm/arm-with-neon.c: Re-generated.
6402 * features/arm/arm-with-vfpv2.c: Re-generated.
6403 * features/arm/arm-with-vfpv3.c: Re-generated.
6404 * features/i386/amd64-avx-avx512.c: Re-generated.
6405 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
6406 * features/i386/amd64-avx.c: Re-generated.
6407 * features/i386/amd64-avx-linux.c: Re-generated.
6408 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
6409 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
6410 * features/i386/amd64-avx-mpx.c: Re-generated.
6411 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
6412 * features/i386/amd64.c: Re-generated.
6413 * features/i386/amd64-linux.c: Re-generated.
6414 * features/i386/amd64-mpx.c: Re-generated.
6415 * features/i386/amd64-mpx-linux.c: Re-generated.
6416 * features/i386/i386-avx-avx512.c: Re-generated.
6417 * features/i386/i386-avx-avx512-linux.c: Re-generated.
6418 * features/i386/i386-avx.c: Re-generated.
6419 * features/i386/i386-avx-linux.c: Re-generated.
6420 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
6421 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
6422 * features/i386/i386-avx-mpx.c: Re-generated.
6423 * features/i386/i386-avx-mpx-linux.c: Re-generated.
6424 * features/i386/i386.c: Re-generated.
6425 * features/i386/i386-linux.c: Re-generated.
6426 * features/i386/i386-mmx.c: Re-generated.
6427 * features/i386/i386-mmx-linux.c: Re-generated.
6428 * features/i386/i386-mpx.c: Re-generated.
6429 * features/i386/i386-mpx-linux.c: Re-generated.
6430 * features/i386/x32-avx-avx512.c: Re-generated.
6431 * features/i386/x32-avx-avx512-linux.c: Re-generated.
6432 * features/i386/x32-avx.c: Re-generated.
6433 * features/i386/x32-avx-linux.c: Re-generated.
6434 * features/i386/x32.c: Re-generated.
6435 * features/i386/x32-linux.c: Re-generated.
6436 * features/microblaze.c: Re-generated.
6437 * features/microblaze-with-stack-protect.c: Re-generated.
6438 * features/mips64-dsp-linux.c: Re-generated.
6439 * features/mips64-linux.c: Re-generated.
6440 * features/mips-dsp-linux.c: Re-generated.
6441 * features/mips-linux.c: Re-generated.
6442 * features/nds32.c: Re-generated.
6443 * features/nios2.c: Re-generated.
6444 * features/nios2-linux.c: Re-generated.
6445 * features/rs6000/powerpc-32.c: Re-generated.
6446 * features/rs6000/powerpc-32l.c: Re-generated.
6447 * features/rs6000/powerpc-403.c: Re-generated.
6448 * features/rs6000/powerpc-403gc.c : Re-generated.
6449 * features/rs6000/powerpc-405.c: Re-generated.
6450 * features/rs6000/powerpc-505.c: Re-generated.
6451 * features/rs6000/powerpc-601.c: Re-generated.
6452 * features/rs6000/powerpc-602.c: Re-generated.
6453 * features/rs6000/powerpc-603.c: Re-generated.
6454 * features/rs6000/powerpc-604.c: Re-generated.
6455 * features/rs6000/powerpc-64.c: Re-generated.
6456 * features/rs6000/powerpc-64l.c: Re-generated.
6457 * features/rs6000/powerpc-7400.c: Re-generated.
6458 * features/rs6000/powerpc-750.c: Re-generated.
6459 * features/rs6000/powerpc-860.c: Re-generated.
6460 * features/rs6000/powerpc-altivec32.c: Re-generated.
6461 * features/rs6000/powerpc-altivec32l.c: Re-generated.
6462 * features/rs6000/powerpc-altivec64.c: Re-generated.
6463 * features/rs6000/powerpc-altivec64l.c: Re-generated.
6464 * features/rs6000/powerpc-cell32l.c: Re-generated.
6465 * features/rs6000/powerpc-cell64l.c: Re-generated.
6466 * features/rs6000/powerpc-e500.c: Re-generated.
6467 * features/rs6000/powerpc-e500l.c: Re-generated.
6468 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
6469 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
6470 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
6471 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
6472 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
6473 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
6474 * features/rs6000/powerpc-vsx32.c: Re-generated.
6475 * features/rs6000/powerpc-vsx32l.c: Re-generated.
6476 * features/rs6000/powerpc-vsx64.c: Re-generated.
6477 * features/rs6000/powerpc-vsx64l.c: Re-generated.
6478 * features/rs6000/rs6000.c: Re-generated.
6479 * features/s390-linux32.c: Re-generated.
6480 * features/s390-linux32v1.c: Re-generated.
6481 * features/s390-linux32v2.c: Re-generated.
6482 * features/s390-linux64.c: Re-generated.
6483 * features/s390-linux64v1.c: Re-generated.
6484 * features/s390-linux64v2.c: Re-generated.
6485 * features/s390-te-linux64.c: Re-generated.
6486 * features/s390-tevx-linux64.c: Re-generated.
6487 * features/s390-vx-linux64.c: Re-generated.
6488 * features/s390x-linux64.c: Re-generated.
6489 * features/s390x-linux64v1.c: Re-generated.
6490 * features/s390x-linux64v2.c: Re-generated.
6491 * features/s390x-te-linux64.c: Re-generated.
6492 * features/s390x-tevx-linux64.c: Re-generated.
6493 * features/s390x-vx-linux64.c: Re-generated.
6494 * features/sparc/sparc32-solaris.c: Re-generated.
6495 * features/sparc/sparc64-solaris.c: Re-generated.
6496 * features/tic6x-c62x.c: Re-generated.
6497 * features/tic6x-c62x-linux.c: Re-generated.
6498 * features/tic6x-c64x.c: Re-generated.
6499 * features/tic6x-c64x-linux.c: Re-generated.
6500 * features/tic6x-c64xp.c: Re-generated.
6501 * features/tic6x-c64xp-linux.c: Re-generated.
6502
35b4818d
YQ
65032017-07-26 Yao Qi <yao.qi@linaro.org>
6504
6505 * i386-linux-tdep.c (i386_linux_read_description): New function.
6506 (i386_linux_core_read_description): Call
6507 i386_linux_read_description.
6508 * i386-linux-tdep.h (i386_linux_read_description): Declare.
6509 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
6510 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
6511 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
6512 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
6513 * x86-linux-nat.c (x86_linux_read_description): Call
6514 i386_linux_read_description.
6515
8e2141c6
YQ
65162017-07-26 Yao Qi <yao.qi@linaro.org>
6517
6518 * NEWS: Mention it.
6519 * features/Makefile (%.c: %.xml): Pass the xml file name to
6520 command "maint print c-tdesc".
6521 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
6522 name from 'arg'.
6523
b468ff4c
YQ
65242017-07-26 Yao Qi <yao.qi@linaro.org>
6525
6526 * target-descriptions.c (target_desc): Add ctor and dtor. Do
6527 in-class initialization.
6528 (tdesc_create_feature): Call new instead of XCNEW.
6529 (free_target_description): Ue delete.
6530
b9c0e1b4
JB
65312017-07-25 John Baldwin <jhb@FreeBSD.org>
6532
6533 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
6534
a04b5337
YQ
65352017-07-25 Yao Qi <yao.qi@linaro.org>
6536
6537 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
6538 constant.
6539 (amd64_x32_init_abi): Likewise.
6540 * amd64-tdep.h (amd64_init_abi): Update declaration.
6541 (amd64_x32_init_abi): Likewise.
6542
02ad7fc2
YQ
65432017-07-25 Yao Qi <yao.qi@linaro.org>
6544
6545 PR tdep/21717
6546 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
6547 condition for FPSCR.
6548 (arm_linux_store_inferior_registers): Likewise.
6549
b6f48cb0
TT
65502017-07-22 Tom Tromey <tom@tromey.com>
6551
6552 * break-catch-syscall.c (struct catch_syscall_inferior_data)
6553 <syscalls_counts>: Now a std::vector.
6554 (get_catch_syscall_inferior_data): Use "new".
6555 (catch_syscall_inferior_data_cleanup): Use "delete".
6556 (insert_catch_syscall, remove_catch_syscall)
6557 (clear_syscall_counts): Update.
6558
e12c9b7a
TT
65592017-07-22 Tom Tromey <tom@tromey.com>
6560
6561 * break-catch-syscall.c (syscall_catchpoint)
6562 <syscalls_to_be_caught>: Now a std::vector<int>
6563 (~syscall_catchpoint): Remove.
6564 (insert_catch_syscall, remove_catch_syscall)
6565 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
6566 (print_mention_catch_syscall, print_recreate_catch_syscall):
6567 Update.
6568 (create_syscall_event_catchpoint): Change type of "filter"
6569 parameter.
6570 (catch_syscall_split_args): Return a std::vector.
6571 (catch_syscall_command_1, catching_syscall_number_1): Update.
6572
4fa8aeac
TT
65732017-07-22 Tom Tromey <tom@tromey.com>
6574
6575 * break-catch-throw.c (struct exception_catchpoint)
6576 <exception_rx>: Now a std::string.
6577 (~exception_catchpoint): Remove.
6578 (print_one_detail_exception_catchpoint): Update.
6579 (handle_gnu_v3_exceptions): Change type of except_rx.
6580 (extract_exception_regexp): Return a std::string.
6581 (catch_exception_command_1): Update.
6582
f746a154
TT
65832017-07-22 Tom Tromey <tom@tromey.com>
6584
6585 * break-catch-sig.c (gdb_signal_type): Remove typedef.
6586 (struct signal_catchpoint) <signals_to_be_caught>: Now a
6587 std::vector.
6588 <catch_all>: Now a bool.
6589 (~signal_catchpoint): Remove.
6590 (signal_catchpoint_insert_location)
6591 (signal_catchpoint_remove_location)
6592 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
6593 (signal_catchpoint_print_mention)
6594 (signal_catchpoint_print_recreate)
6595 (signal_catchpoint_explains_signal): Update.
6596 (create_signal_catchpoint): Change type of "filter" and
6597 "catch_all".
6598 (catch_signal_split_args): Return a std::vector. Change type of
6599 "catch_all".
6600 (catch_signal_command): Update.
6601
47e77640
PA
66022017-07-20 Pedro Alves <palves@redhat.com>
6603
6604 * ada-lang.c (ada_language_defn): Make extern.
6605 (_initialize_ada_language): Remove add_language call.
6606 * c-lang.c (c_language_defn, cplus_language_defn)
6607 (asm_language_defn, minimal_language_defn): Make extern.
6608 (_initialize_c_language): Delete.
6609 * completer.c (compare_cstrings): Delete, moved to utils.h.
6610 * d-lang.c (d_language_defn): Make extern.
6611 (_initialize_d_language): Remove add_language calls.
6612 * defs.h (enum language): Add comment.
6613 * f-lang.c (f_language_defn): Make extern.
6614 (_initialize_f_language): Remove add_language call.
6615 * go-lang.c (go_language_defn): Make extern.
6616 (_initialize_go_language): Remove add_language call.
6617 * language.c: Include <algorithm>.
6618 (languages): Redefine as const array.
6619 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
6620 (set_language_command): Handle "local". Use for-range loop.
6621 (set_language): Remove loop.
6622 (language_enum): Rewrite.
6623 (language_def, language_str): Remove loops.
6624 (add_language): Delete.
6625 (add_set_language_command): New, based on add_languages.
6626 (skip_language_trampoline): Adjust.
6627 (local_language_defn): Delete.
6628 (language_gdbarch_post_init): Adjust.
6629 (_initialize_language): Remove add_language calls. Call
6630 add_set_language_command.
6631 * language.h (add_language): Delete.
6632 (auto_language_defn)
6633 (unknown_language_defn, minimal_language_defn, ada_language_defn)
6634 (asm_language_defn, c_language_defn, cplus_language_defn)
6635 (d_language_defn, f_language_defn, go_language_defn)
6636 (m2_language_defn, objc_language_defn, opencl_language_defn)
6637 (pascal_language_defn, rust_language_defn): Declare.
6638 * m2-lang.c (m2_language_defn): Make extern.
6639 (_initialize_m2_language): Remove add_language call.
6640 * objc-lang.c (objc_language_defn): Make extern.
6641 (_initialize_objc_language): Remove add_language call.
6642 * opencl-lang.c (opencl_language_defn): Make extern.
6643 (_initialize_opencl_language): Remove add_language call.
6644 * p-lang.c (pascal_language_defn): Make extern.
6645 (_initialize_pascal_language): Delete.
6646 * rust-lang.c (rust_language_defn): Make extern.
6647 (_initialize_rust_language): Delete.
6648 * utils.h (compare_cstrings): New static inline function.
6649
edb0c9cb
PA
66502017-07-20 Pedro Alves <palves@redhat.com>
6651
6652 * ada-lang.c (ada_to_fixed_type_1): Adjust.
6653 (get_var_value): Constify parameters.
6654 (get_int_var_value): Change prototype.
6655 (to_fixed_range_type): Adjust.
6656 * ada-lang.h (get_int_var_value): Change prototype.
6657
a778f165
PA
66582017-07-20 Pedro Alves <palves@redhat.com>
6659
6660 * dwarf2read.c (dw2_lookup_symbol): Use
6661 SYMBOL_MATCHES_SEARCH_NAME.
6662 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
6663
42edd901
PA
66642017-07-20 Pedro Alves <palves@redhat.com>
6665
6666 * block.c (block_iter_name_step, block_iter_name_first)
6667 (block_iter_name_next): Delete.
6668 (block_lookup_symbol_primary): Adjust to use
6669 dict_iter_match_first/dict_iter_match_next.
6670 * block.h (block_iter_name_first, block_iter_name_next): Delete
6671 declarations.
6672 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
6673 dict_iter_match_first/dict_iter_match_next.
6674
cf325299
PA
66752017-07-20 Pedro Alves <palves@redhat.com>
6676
6677 * cp-support.c (cp_find_first_component_aux): Add missing case for
6678 end of string.
6679
c5ed0576
DB
66802017-07-18 David Blaikie <dblaikie@gmail.com>
6681
6682 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
6683 of dwo_cu's dwo_file.
6684
27841e76
YQ
66852017-07-18 Yao Qi <yao.qi@linaro.org>
6686
6687 * remote.c (store_registers_using_G): Remove one line comment.
6688
cfb7e58b
YQ
66892017-07-18 Yao Qi <yao.qi@linaro.org>
6690
6691 * regcache.c (regcache_cpy): Simplify it.
6692 (regcache::cpy_no_passthrough): Remove it.
6693 * regcache.h (cpy_no_passthrough): Remove it.
6694 (regcache_dup, regcache_cpy): Update comments.
6695
386535dd
PA
66962017-07-18 Pedro Alves <palves@redhat.com>
6697
6698 * remote-sim.c (sim_command_completer): Adjust to work with a
6699 completion_tracker instead of a VEC.
6700
c45ec17c
PA
67012017-07-17 Pedro Alves <palves@redhat.com>
6702
6703 * completer.c (complete_source_filenames): New function.
6704 (complete_address_and_linespec_locations): New function.
6705 (location_completer): Use complete_address_and_linespec_locations.
6706 (completion_tracker::build_completion_result): Honor the tracker's
6707 request to suppress append.
6708 * completer.h (completion_tracker::suppress_append_ws)
6709 (completion_tracker::set_suppress_append_ws): New methods.
6710 (completion_tracker::m_suppress_append_ws): New field.
6711 (complete_source_filenames): New declaration.
6712 * linespec.c (linespec_complete_what): New.
6713 (struct ls_parser) <complete_what, completion_word,
6714 completion_quote_char, completion_quote_end, completion_tracker>:
6715 New fields.
6716 (string_find_incomplete_keyword_at_end): New.
6717 (linespec_lexer_lex_string): Record quote char. If in completion
6718 mode, don't throw.
6719 (linespec_lexer_consume_token): Advance the completion word point.
6720 (linespec_lexer_peek_token): Save/restore completion info.
6721 (save_stream_and_consume_token): New.
6722 (set_completion_after_number): New.
6723 (linespec_parse_basic): Set what to complete next depending on
6724 token. Handle function and label completions specially.
6725 (parse_linespec): Disable objc shortcut in completion mode. Set
6726 what to complete next depending on token type. Skip keyword if in
6727 completion mode.
6728 (complete_linespec_component, linespec_complete): New.
6729 * linespec.h (linespec_complete): Declare.
6730
be966d42
PA
67312017-07-17 Pedro Alves <palves@redhat.com>
6732
6733 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
6734 Handle 'operator<' / 'operator<<'.
6735
a2459270
PA
67362017-07-17 Pedro Alves <palves@redhat.com>
6737
6738 * completer.c (collect_explicit_location_matches): Handle
6739 MATCH_LABEL.
6740 (convert_explicit_location_to_linespec): New, factored out from
6741 ...
6742 (convert_explicit_location_to_sals): ... this.
6743 (complete_label): New.
6744 (linespec_complete_label, find_label_symbols_in_block): New.
6745 (find_label_symbols): Add completion_mode parameter and adjust to
6746 call find_label_symbols_in_block.
6747 * linespec.h (linespec_complete_label): Declare.
6748
c6756f62
PA
67492017-07-17 Pedro Alves <palves@redhat.com>
6750
6751 * ada-lang.c (ada_collect_symbol_completion_matches): Add
6752 complete_symbol_mode parameter.
6753 * cli/cli-cmds.c (complete_command): Get the completion result out
6754 of the handle_brkchars tracker if used a custom word point.
6755 * completer.c: Include "linespec.h".
6756 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
6757 (advance_to_expression_complete_word_point): New.
6758 (completion_tracker::completes_to_completion_word): New.
6759 (complete_files_symbols): Pass down
6760 complete_symbol_mode::EXPRESSION.
6761 (explicit_options, probe_options): New.
6762 (collect_explicit_location_matches): Complete on the
6763 explictit_loc->foo instead of word. Use
6764 linespec_complete_function. Handle MATCH_LINE. Handle offering
6765 keyword and options completions.
6766 (backup_text_ptr): Delete.
6767 (skip_keyword): New.
6768 (complete_explicit_location): Remove 'word' parameter. Add
6769 language, quoted_arg_start and quoted_arg_end parameters.
6770 Rewrite, parsing left to right.
6771 (location_completer): Rewrite.
6772 (location_completer_handle_brkchars): New function.
6773 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
6774 (enum complete_line_internal_reason): Adjust comments.
6775 (completion_tracker::discard_completions): New.
6776 (completer_handle_brkchars_func_for_completer): Handle
6777 location_completer.
6778 (gdb_custom_word_point_brkchars)
6779 (gdb_org_rl_basic_quote_characters): New.
6780 (gdb_completion_word_break_characters_throw)
6781 (completion_find_completion_word): Handle trackers that use a
6782 custom word point.
6783 (completion_tracker::advance_custom_word_point_by): New.
6784 (completion_tracker::build_completion_result): Don't rely on
6785 readline appending the quote char.
6786 (gdb_rl_attempted_completion_function_throw): Handle trackers that
6787 use a custom word point.
6788 (gdb_rl_attempted_completion_function): Restore
6789 rl_basic_quote_characters.
6790 * completer.h (class completion_tracker): Extend intro comment.
6791 (completion_tracker::set_quote_char)
6792 (completion_tracker::quote_char)
6793 (completion_tracker::set_use_custom_word_point)
6794 (completion_tracker::use_custom_word_point)
6795 (completion_tracker::custom_word_point)
6796 (completion_tracker::set_custom_word_point)
6797 (completion_tracker::advance_custom_word_point_by)
6798 (completion_tracker::completes_to_completion_word)
6799 (completion_tracker::discard_completions): New methods.
6800 (completion_tracker::m_quote_char)
6801 (completion_tracker::m_use_custom_word_point)
6802 (completion_tracker::m_custom_word_point): New fields.
6803 (advance_to_expression_complete_word_point): Declare.
6804 * f-lang.c (f_collect_symbol_completion_matches): Add
6805 complete_symbol_mode parameter.
6806 * language.h (struct language_defn)
6807 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
6808 parameter.
6809 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
6810 (linespec_complete_function): New function.
6811 (linespec_lexer_lex_keyword): Adjust.
6812 * linespec.h (linespec_keywords, linespec_complete_function): New
6813 declarations.
6814 * location.c (find_end_quote): New function.
6815 (explicit_location_lex_one): Add explicit_completion_info
6816 parameter. Save quoting info. Don't throw if being called for
6817 completion. Don't handle Ada operators here.
6818 (is_cp_operator, skip_op_false_positives, first_of)
6819 (explicit_location_lex_one_function): New function.
6820 (string_to_explicit_location): Replace 'dont_throw' parameter with
6821 an explicit_completion_info pointer parameter. Handle it. Don't
6822 use explicit_location_lex_one to lex function names. Use
6823 explicit_location_lex_one_function instead.
6824 * location.h (struct explicit_completion_info): New.
6825 (string_to_explicit_location): Replace 'dont_throw' parameter with
6826 an explicit_completion_info pointer parameter.
6827 * symtab.c (default_collect_symbol_completion_matches_break_on):
6828 Add complete_symbol_mode parameter. Handle LINESPEC mode.
6829 (default_collect_symbol_completion_matches)
6830 (collect_symbol_completion_matches): Add complete_symbol_mode
6831 parameter.
6832 (collect_symbol_completion_matches_type): Pass down
6833 complete_symbol_mode::EXPRESSION.
6834 (collect_file_symbol_completion_matches): Add complete_symbol_mode
6835 parameter. Handle LINESPEC mode.
6836 * symtab.h (complete_symbol_mode): New.
6837 (default_collect_symbol_completion_matches_break_on)
6838 (default_collect_symbol_completion_matches)
6839 (collect_symbol_completion_matches)
6840 (collect_file_symbol_completion_matches): Add complete_symbol_mode
6841 parameter.
6842
1d550c82
PA
68432017-07-17 Pedro Alves <palves@redhat.com>
6844
6845 * utils.c (enum class strncmp_iw_mode): New.
6846 (strcmp_iw): Rename to ...
6847 (strncmp_iw_with_mode): ... this. Add string2_len and mode
6848 parameters. Handle them.
6849 (strncmp_iw): New.
6850 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
6851 * utils.h (strncmp_iw): Declare.
6852 (strcmp_iw): Move describing comments here.
6853
8090b426
PA
68542017-07-17 Pedro Alves <palves@redhat.com>
6855
6856 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
6857 CP_OPERATOR_STR.
6858 * c-typeprint.c (is_type_conversion_operator): Use
6859 CP_OPERATOR_STR.
6860 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
6861 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
6862 CP_OPERATOR_LEN.
6863 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
6864 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
6865 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
6866 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
6867 CP_OPERATOR_STR.
6868 * location.c: Include "cp-support.h".
6869 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
6870 CP_OPERATOR_STR.
6871 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
6872 CP_OPERATOR_LEN.
6873
6a2c1b87
PA
68742017-07-17 Pedro Alves <palves@redhat.com>
6875
6876 * cli/cli-cmds.c (complete_command): Use a completion tracker
6877 along with completion_find_completion_word for handle_brkchars
6878 phase.
6879 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
6880 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
6881 (struct gdb_rl_completion_word_info): New.
6882 (gdb_rl_find_completion_word): New.
6883 (completion_find_completion_word): New.
6884 * completer.h (completion_find_completion_word): Declare.
6885
eb3ff9a5
PA
68862017-07-17 Pedro Alves <palves@redhat.com>
6887
6888 * ada-lang.c (symbol_completion_match): Adjust comments.
6889 (symbol_completion_add): Replace vector parameter with
6890 completion_tracker parameter. Use it.
6891 (ada_make_symbol_completion_list): Rename to...
6892 (ada_collect_symbol_completion_matches): ... this. Add
6893 completion_tracker parameter and use it.
6894 (ada_language_defn): Adjust.
6895 * break-catch-syscall.c (catch_syscall_completer): Adjust
6896 prototype and work with completion_tracker instead of VEC.
6897 * breakpoint.c (condition_completer): Adjust prototype and work
6898 with completion_tracker instead of VEC.
6899 * c-lang.c (c_language_defn, cplus_language_defn)
6900 (asm_language_defn, minimal_language_defn): Adjust to renames.
6901 * cli/cli-cmds.c (complete_command): Rework using
6902 completion_tracker. Catch exceptions when completing.
6903 * cli/cli-decode.c (integer_unlimited_completer)
6904 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
6905 with completion_tracker instead of VEC.
6906 * command.h (struct completion_tracker): Forward declare.
6907 (completer_ftype, completer_handle_brkchars_ftype): Change
6908 types.
6909 (complete_on_cmdlist, complete_on_enum): Adjust.
6910 * completer.c: Include <algorithm>.
6911 (struct gdb_completer_state): New.
6912 (current_completion): New global.
6913 (readline_line_completion_function): Delete.
6914 (noop_completer, filename_completer)
6915 (filename_completer_handle_brkchars, complete_files_symbols)
6916 (linespec_location_completer): Adjust to work with a
6917 completion_tracker instead of a VEC.
6918 (string_or_empty): New.
6919 (collect_explicit_location_matches): Adjust to work with a
6920 completion_tracker instead of a VEC.
6921 (explicit_location_completer): Rename to ...
6922 (complete_explicit_location): ... this and adjust to work with a
6923 completion_tracker instead of a VEC.
6924 (location_completer): Adjust to work with a completion_tracker
6925 instead of a VEC.
6926 (add_struct_fields): Adjust to work with a completion_list instead
6927 of VEC.
6928 (expression_completer): Rename to ...
6929 (complete_expression): ... this and adjust to work with a
6930 completion_tracker instead of a VEC. Use complete_files_symbols.
6931 (expression_completer): Reimplement on top of complete_expression.
6932 (symbol_completer): Adjust to work with a completion_tracker
6933 instead of a VEC.
6934 (enum complete_line_internal_reason): Add describing comments.
6935 (complete_line_internal_normal_command): Adjust to work with a
6936 completion_tracker instead of a VEC.
6937 (complete_line_internal): Rename to ...
6938 (complete_line_internal_1): ... this and adjust to work with a
6939 completion_tracker instead of a VEC. Assert TEXT is NULL in the
6940 handle_brkchars phase.
6941 (new_completion_tracker): Delete.
6942 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
6943 complete_line_internal_1.
6944 (free_completion_tracker): Delete.
6945 (INITIAL_COMPLETION_HTAB_SIZE): New.
6946 (completion_tracker::completion_tracker)
6947 (completion_tracker::~completion_tracker): New.
6948 (maybe_add_completion): Delete.
6949 (completion_tracker::maybe_add_completion)
6950 (completion_tracker::add_completion)
6951 (completion_tracker::add_completions): New.
6952 (throw_max_completions_reached_error): Delete.
6953 (complete_line): Adjust to work with a completion_tracker instead
6954 of a VEC. Don't create a completion_tracker_t or check for max
6955 completions here.
6956 (command_completer, command_completer_handle_brkchars)
6957 (signal_completer, reg_or_group_completer_1)
6958 (reg_or_group_completer, default_completer_handle_brkchars):
6959 Adjust to work with a completion_tracker.
6960 (gdb_completion_word_break_characters_throw): New.
6961 (gdb_completion_word_break_characters): Reimplement.
6962 (line_completion_function): Delete.
6963 (completion_tracker::recompute_lowest_common_denominator)
6964 (expand_preserving_ws)
6965 (completion_tracker::build_completion_result)
6966 (completion_result::completion_result)
6967 (completion_result::completion_result)
6968 (completion_result::~completion_result)
6969 (completion_result::completion_result)
6970 (completion_result::release_match_list, compare_cstrings)
6971 (completion_result::sort_match_list)
6972 (completion_result::reset_match_list)
6973 (gdb_rl_attempted_completion_function_throw)
6974 (gdb_rl_attempted_completion_function): New.
6975 * completer.h (completion_list, struct completion_result)
6976 (class completion_tracker): New.
6977 (complete_line): Add completion_tracker parameter.
6978 (readline_line_completion_function): Delete.
6979 (gdb_rl_attempted_completion_function): New.
6980 (noop_completer, filename_completer, expression_completer)
6981 (location_completer, symbol_completer, command_completer)
6982 (signal_completer, reg_or_group_completer): Update prototypes.
6983 (completion_tracker_t, new_completion_tracker)
6984 (make_cleanup_free_completion_tracker): Delete.
6985 (enum maybe_add_completion_enum): Delete.
6986 (maybe_add_completion): Delete.
6987 (throw_max_completions_reached_error): Delete.
6988 * corefile.c (complete_set_gnutarget): Adjust to work with a
6989 completion_tracker instead of a VEC.
6990 * cp-abi.c (cp_abi_completer): Adjust to work with a
6991 completion_tracker instead of a VEC.
6992 * d-lang.c (d_language_defn): Adjust.
6993 * disasm.c (disassembler_options_completer): Adjust to work with a
6994 completion_tracker instead of a VEC.
6995 * f-lang.c (f_make_symbol_completion_list): Rename to ...
6996 (f_collect_symbol_completion_matches): ... this. Adjust to work
6997 with a completion_tracker instead of a VEC.
6998 (f_language_defn): Adjust.
6999 * go-lang.c (go_language_defn): Adjust.
7000 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
7001 Adjust to work with a completion_tracker instead of a VEC.
7002 * infrun.c (handle_completer): Likewise.
7003 * interps.c (interpreter_completer): Likewise.
7004 * interps.h (interpreter_completer): Likewise.
7005 * language.c (unknown_language_defn, auto_language_defn)
7006 (local_language_defn): Adjust.
7007 * language.h (language_defn::la_make_symbol_completion_list):
7008 Rename to ...
7009 (language_defn::la_collect_symbol_completion_matches): ... this
7010 and adjust to work with a completion_tracker instead of a VEC.
7011 * m2-lang.c (m2_language_defn): Adjust.
7012 * objc-lang.c (objc_language_defn): Adjust.
7013 * opencl-lang.c (opencl_language_defn): Adjust.
7014 * p-lang.c (pascal_language_defn): Adjust.
7015 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
7016 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
7017 with a completion_tracker.
7018 * rust-lang.c (rust_language_defn): Adjust.
7019 * symtab.c (free_completion_list, do_free_completion_list)
7020 (return_val, completion_tracker): Delete.
7021 (completion_list_add_name, completion_list_add_symbol)
7022 (completion_list_add_msymbol, completion_list_objc_symbol)
7023 (completion_list_add_fields, add_symtab_completions): Add
7024 completion_tracker parameter and use it.
7025 (default_make_symbol_completion_list_break_on_1): Rename to...
7026 (default_collect_symbol_completion_matches_break_on): ... this.
7027 Add completion_tracker parameter and use it instead of allocating
7028 a completion tracker here.
7029 (default_make_symbol_completion_list_break_on): Delete old
7030 implementation.
7031 (default_make_symbol_completion_list): Delete.
7032 (default_collect_symbol_completion_matches): New.
7033 (make_symbol_completion_list): Delete.
7034 (collect_symbol_completion_matches): New.
7035 (make_symbol_completion_type): Rename to ...
7036 (collect_symbol_completion_matches_type): ... this. Add
7037 completion_tracker parameter and use it instead of VEC.
7038 (make_file_symbol_completion_list_1): Rename to...
7039 (collect_file_symbol_completion_matches): ... this. Add
7040 completion_tracker parameter and use it instead of VEC.
7041 (make_file_symbol_completion_list): Delete.
7042 (add_filename_to_list): Use completion_list instead of a VEC.
7043 (add_partial_filename_data::list): Now a completion_list.
7044 (make_source_files_completion_list): Work with a completion_list
7045 instead of a VEC.
7046 * symtab.h: Include "completer.h".
7047 (default_make_symbol_completion_list_break_on)
7048 (default_make_symbol_completion_list, make_symbol_completion_list)
7049 (make_symbol_completion_type, make_file_symbol_completion_list)
7050 (make_source_files_completion_list): Delete.
7051 (default_collect_symbol_completion_matches_break_on)
7052 (default_collect_symbol_completion_matches)
7053 (collect_symbol_completion_matches)
7054 (collect_symbol_completion_matches_type)
7055 (collect_file_symbol_completion_matches)
7056 (make_source_files_completion_list): New.
7057 * top.c (init_main): Don't install a rl_completion_entry_function
7058 hook. Install a rl_attempted_completion_function hook instead.
7059 * tui/tui-layout.c (layout_completer): Adjust to work with a
7060 completion_tracker.
7061 * tui/tui-regs.c (tui_reggroup_completer):
7062 * tui/tui-win.c (window_name_completer, focus_completer)
7063 (winheight_completer): Adjust to work with a completion_tracker.
7064 * value.c: Include "completer.h".
7065 (complete_internalvar): Adjust to work with a completion_tracker.
7066 * value.h (complete_internalvar): Likewise.
7067
6e1dbf8c
PA
70682017-07-17 Pedro Alves <palves@redhat.com>
7069
7070 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
7071 renames.
7072 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
7073 comments to completer_ftype's declaration.
7074 <completer_handle_brkchars>: Change type to
7075 completer_handle_brkchars_ftype.
7076 * command.h (completer_ftype): Add describing comment and give
7077 names to parameters.
7078 (completer_ftype_void): Rename to ...
7079 (completer_handle_brkchars_ftype) ... this. Add describing comment.
7080 (set_cmd_completer_handle_brkchars): Adjust.
7081 * completer.c (filename_completer_handle_brkchars): New function.
7082 (complete_line_internal_normal_command): New function, factored
7083 out from ...
7084 (complete_line_internal): ... here.
7085 (command_completer_handle_brkchars)
7086 (default_completer_handle_brkchars)
7087 (completer_handle_brkchars_func_for_completer): New functions.
7088 * completer.h (set_gdb_completion_word_break_characters): Delete
7089 declaration.
7090 (completer_handle_brkchars_func_for_completer): New declaration.
7091 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
7092 completer_handle_brkchars_func_for_completer.
7093
78b13106
PA
70942017-07-17 Pedro Alves <palves@redhat.com>
7095
7096 * completer.c (symbol_completer): New function, based on
7097 make_symbol_completion_list_fn.
7098 * completer.h (symbol_completer): New declaration.
7099 * guile/scm-cmd.c (cmdscm_completers): Adjust.
7100 * python/py-cmd.c (completers): Adjust.
7101 * symtab.c (make_symbol_completion_list_fn): Delete.
7102 * symtab.h (make_symbol_completion_list_fn): Delete.
7103 * cli/cli-decode.c (add_cmd): Adjust.
7104
bbf2f4df
PA
71052017-07-17 Pedro Alves <palves@redhat.com>
7106
7107 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
7108 * dwarf2read.c: Include "filename-seen-cache.h".
7109 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
7110 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
7111 * filename-seen-cache.c: New file.
7112 * filename-seen-cache.h: New file.
7113 * symtab.c: Include "filename-seen-cache.h".
7114 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
7115 (create_filename_seen_cache, clear_filename_seen_cache)
7116 (delete_filename_seen_cache, filename_seen): Delete, parts moved
7117 to filename-seen-cache.h/filename-seen-cache.c.
7118 (output_source_filename, sources_info)
7119 (maybe_add_partial_symtab_filename)
7120 (make_source_files_completion_list): Adjust to use
7121 filename_seen_cache.
7122
330cdd98
PA
71232017-07-17 Pedro Alves <palves@redhat.com>
7124
7125 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
7126 fields.
7127 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
7128 dwarf2_debug_sections*)): New.
7129 (dwarf2_per_objfile::dwarf2_per_objfile(const
7130 dwarf2_per_objfile&)): Declare as deleted.
7131 (dwarf2_per_objfile::operator=): Declare as deleted.
7132 (dwarf2_per_objfile::dwarf2_per_objfile)
7133 (dwarf2_per_objfile::~dwarf2_per_objfile)
7134 (dwarf2_per_objfile::free_cached_comp_units): New.
7135 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
7136 ctor. Call dwarf2_per_objfile's ctor manually.
7137 (dwarf2_locate_sections): Deleted/refactored as ...
7138 (dwarf2_per_objfile::locate_sections): ... this new method.
7139 (free_cached_comp_units): Defer to
7140 dwarf2_per_objfile::free_cached_comp_units.
7141 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
7142
8880f2a9
TT
71432017-07-14 Tom Tromey <tom@tromey.com>
7144
7145 PR rust/21764:
7146 * rust-exp.y (convert_ast_to_expression): Add "want_type"
7147 parameter.
7148 <UNOP_SIZEOF>: Split into separate case.
7149 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
7150
65547233
TT
71512017-07-14 Tom Tromey <tom@tromey.com>
7152
7153 PR rust/21763:
7154 * symtab.c (symbol_matches_domain): Add language_rust to special
7155 case.
7156 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
7157 treat LOC_TYPEDEF symbols as variables.
7158
8f14146e
PA
71592017-07-14 Pedro Alves <palves@redhat.com>
7160
7161 * symtab.c (make_file_symbol_completion_list_1): Iterate over
7162 symtabs matching all symtabs with SRCFILE as file name instead of
7163 only considering the first hit, with lookup_symtab.
7164
2347965c
SM
71652017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7166
7167 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
7168 operator_name parameters.
7169 (gen_expr): Update function call.
7170
40f4af28
SM
71712017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7172
7173 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
7174 parameter.
7175 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
7176 Likewise.
7177 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
7178 parameter, use agent_expr::gdbarch instead, update function
7179 calls.
7180 (locexpr_tracepoint_var_ref): Likewise.
7181 (loclist_tracepoint_var_ref): Likewise.
7182 * ax-gdb.c (gen_trace_static_fields): Likewise.
7183 (gen_traced_pop): Likewise.
7184 (gen_frame_args_address): Likewise.
7185 (gen_frame_locals_address): Likewise.
7186 (gen_var_ref): Likewise.
7187 (gen_struct_ref_recursive): Likewise.
7188 (gen_static_field): Likewise.
7189 (gen_maybe_namespace_elt): Likewise.
7190 (gen_expr): Likewise.
7191 (gen_trace_for_var): Likewise.
7192 (gen_trace_for_expr): Likewise.
7193 (gen_trace_for_return_address): Likewise.
7194
053f8057
SM
71952017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7196
7197 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
7198 parameter.
7199 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
7200
6661ad48
SM
72012017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7202
7203 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
7204 from ax, update calls.
7205 (gen_usual_arithmetic): Likewise.
7206 (gen_integral_promotions): Likewise.
7207 (gen_bitfield_ref): Likewise.
7208 (gen_primitive_field): Likewise.
7209 (gen_struct_ref_recursive): Likewise.
7210 (gen_struct_ref): Likewise.
7211 (gen_maybe_namespace_elt): Likewise.
7212 (gen_struct_elt_for_reference): Likewise.
7213 (gen_namespace_elt): Likewise.
7214 (gen_aggregate_elt_ref): Likewise.
7215 (gen_expr): Get gdbarch from ax, update calls.
7216 (gen_expr_binop_rest): Likewise.
7217
c55a47e7
PA
72182017-07-13 Pedro Alves <palves@redhat.com>
7219
7220 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
7221 as default tdesc.
7222 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
7223 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
7224 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
7225 tdesc_amd64_linux as default tdesc. Get final tdesc from the
7226 tdep.
7227 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
7228 Get final tdesc from the tdep.
7229 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
7230 default tdesc.
7231 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
7232 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
7233 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
7234 Use it as default tdesc.
7235 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
7236 down to amd_init_abi. No longer handle fallback tdesc here.
7237 * amd64-tdep.h (tdesc_x32): Declare.
7238 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
7239 parameter.
7240 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
7241 as default tdesc.
7242
55efceab
AA
72432017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7244
7245 * s390-linux-tdep.c (s390_process_record): Add support for
7246 instructions new in arch12.
7247
0aa37b65
JB
72482017-07-11 John Baldwin <jhb@FreeBSD.org>
7249
7250 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
7251 PT_GETFSBASE and PT_GETGSBASE.
7252 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
7253 PT_SETGSBASE.
7254
48aeef91
JB
72552017-07-11 John Baldwin <jhb@FreeBSD.org>
7256
7257 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
7258 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
7259 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
7260 those rules.
7261 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
7262 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
7263 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
7264 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
7265 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
7266 * features/i386/amd64.xml: Add 64bit-segments.xml.
7267 * features/i386/amd64-avx-avx512.c: Regenerated.
7268 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
7269 * features/i386/amd64-avx-mpx.c: Regenerated.
7270 * features/i386/amd64-avx.c: Regenerated.
7271 * features/i386/amd64-mpx.c: Regenerated.
7272 * features/i386/amd64.c: Regenerated.
7273 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
7274 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
7275 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
7276 * regformats/i386/amd64-avx.dat: Regenerated.
7277 * regformats/i386/amd64-mpx.dat: Regenerated.
7278 * regformats/i386/amd64.dat: Regenerated.
7279
77c501bc
YQ
72802017-07-10 Yao Qi <yao.qi@linaro.org>
7281
7282 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
7283 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
7284
6dc8d757
AK
72852017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
7286
7287 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
7288 unsetenv.
7289 * gnulib/aclocal.m4: Regenerate.
7290 * gnulib/config.in: Regenerate.
7291 * gnulib/configure: Regenerate.
7292 * gnulib/import/Makefile.am: Regenerate.
7293 * gnulib/import/Makefile.in: Regenerate.
7294 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
7295 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
7296 * gnulib/import/m4/environ.m4: New file.
7297 * gnulib/import/m4/setenv.m4: New file.
7298 * gnulib/import/setenv.c: New file.
7299 * gnulib/import/unsetenv.c: New file.
7300
266934d1
SM
73012017-07-09 Simon Marchi <simon.marchi@ericsson.com>
7302
7303 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
7304 address when op is DW_OP_addr.
7305
03278692
TT
73062017-07-09 Tom Tromey <tom@tromey.com>
7307
7308 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
7309 check and apply to outer type.
7310
4b654465
JB
73112017-07-07 John Baldwin <jhb@FreeBSD.org>
7312
7313 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
7314 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
7315 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
7316 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
7317
2af9fc44
JB
73182017-07-07 John Baldwin <jhb@FreeBSD.org>
7319
7320 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
7321
382b69bb
JB
73222017-07-07 John Baldwin <jhb@FreeBSD.org>
7323
7324 * corelow.c (get_core_siginfo): Remove.
7325 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
7326 instead of get_core_siginfo.
7327 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
7328 * gdbarch.h: Re-generate.
7329 * gdbarch.c: Re-generate.
7330 * linux-tdep.c (linux_core_xfer_siginfo): New.
7331 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
7332
6e5eab33
JB
73332017-07-07 John Baldwin <jhb@FreeBSD.org>
7334
7335 * corelow.c (thread_section_name): Move to ...
7336 * gdbcore.h (thread_section_name): ... here.
7337
929edea9
JB
73382017-07-07 John Baldwin <jhb@FreeBSD.org>
7339
7340 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
7341 (struct siginfo32): New.
7342 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
7343 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
7344 via ptrace(PT_LWPINFO).
7345
762c974a
JB
73462017-07-07 John Baldwin <jhb@FreeBSD.org>
7347
7348 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
7349 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
7350 (fbsd_get_siginfo_type): New.
7351 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
7352 (_initialize_fbsd_tdep): New.
7353
33c5cd75
DB
73542017-07-06 David Blaikie <dblaikie@gmail.com>
7355
7356 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
7357 a singular dwo_unit*) to support multiple CUs in the same way that
7358 multiple TUs are supported.
7359 (create_cus_hash_table): Replace create_dwo_cu with a function for
7360 parsing multiple CUs from a DWO file.
7361 (open_and_init_dwo_file): Use create_cus_hash_table rather than
7362 create_dwo_cu.
7363 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
7364 htab_find, rather than comparing the signature to a singleton CU in
7365 the dwo_file.
7366
8455d262
PA
73672017-07-06 Pedro Alves <palves@redhat.com>
7368
7369 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
7370
4da3eb35
PA
73712017-07-04 Pedro Alves <palves@redhat.com>
7372
7373 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
7374 * gdbtypes.h (TYPE_STATIC): Delete.
7375 (struct fn_field) <is_public, is_abstract, is_static, is_final,
7376 is_synchronized, is_native>: Delete.
7377 <dummy>: Bump.
7378 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
7379 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
7380 (TYPE_FN_FIELD_ABSTRACT): Delete.
7381
5bfd255c
SM
73822017-07-03 Simon Marchi <simon.marchi@ericsson.com>
7383
7384 * buffer.h (buffer_finish): Fix spelling mistakes.
7385
25c54127
EZ
73862017-07-01 Eli Zaretskii <eliz@gnu.org>
7387
7388 * .dir-locals.el: Automatically switch to C-style comments in
7389 versions of Emacs that support the feature.
7390
dc4bde35
SDJ
73912017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
7392 Pedro Alves <palves@redhat.com>
7393
7394 PR cli/21688
7395 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
7396 (process_next_line): New variable 'inline_cmd'.
7397 Adjust 'if' clauses for "python", "compile" and "guile" to use
7398 'command_name_equals' and check for '!inline_cmd'.
7399
51ed89aa
SDJ
74002017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
7401
7402 PR cli/21688
7403 * cli/cli-script.c (command_name_equals_not_inline): New function.
7404 (process_next_line): Adjust 'if' clauses for "python", "compile"
7405 and "guile" to use command_name_equals_not_inline.
7406
eb17d413
PA
74072017-06-29 Pedro Alves <palves@redhat.com>
7408
7409 * completer.c (expression_completer): Call
7410 linespec_location_completer instead of location_completer.
7411
195bcdd5
PA
74122017-06-29 Pedro Alves <palves@redhat.com>
7413
7414 * completer.c (expression_completer): Remove code that recomputes
7415 'text' from 'word'.
7416
adc764e7
YQ
74172017-06-29 Yao Qi <yao.qi@linaro.org>
7418
7419 * regformats/regdat.sh: Generate code with
7420 "ifndef IN_PROCESS_AGENT".
7421
6e75794e
PA
74222017-06-28 Pedro Alves <palves@redhat.com>
7423
7424 * command.h: Include "common/scoped_restore.h".
7425
bc491f2e
YQ
74262017-06-28 Yao Qi <yao.qi@linaro.org>
7427
7428 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
7429 instead of obstack_grow.
7430
41664b45
DG
74312017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
7432
7433 PR gdb/21337
7434 * symfile.c (reread_symbols): Call objfiles_changed just before
7435 read_symbols.
7436
6da67eb1
PA
74372017-06-27 Pedro Alves <palves@redhat.com>
7438
7439 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
7440 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
7441 (completion_list_add_symbol, completion_list_add_msymbol):
7442 ... these new functions.
7443 (add_symtab_completions)
7444 (default_make_symbol_completion_list_break_on_1): Adjust.
7445
23732b1e
PA
74462017-06-27 Pedro Alves <palves@redhat.com>
7447
7448 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
7449 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
7450 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
7451 dtor.
7452 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
7453 'storage_obstack' field an auto_obstack. In-class initialize all
7454 non-bitfield fields. Make minsyms_read bool.
7455 * symfile.c (read_symbols): Adjust.
7456
a4d1e79a
AH
74572017-06-27 Alan Hayward <alan.hayward@arm.com>
7458
7459 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
7460 (gdbsim_store_register): Likewise.
7461
8268c778
PA
74622017-06-27 Pedro Alves <palves@redhat.com>
7463
7464 * c-exp.y (name_obstack): Now an auto_obstack.
7465 (yylex): Use auto_obstack::clear.
7466 (c_parse): Use auto_obstack::clear instead of reinitializing and
7467 freeing the obstack.
7468 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
7469 * d-exp.y (name_obstack): Now an auto_obstack.
7470 (yylex): Use auto_obstack::clear.
7471 (d_parse): Use auto_obstack::clear instead of reinitializing and
7472 freeing the obstack.
7473 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
7474 auto_obstack.
7475 * dwarf2read.c (create_addrmap_from_index)
7476 (dwarf2_build_psymtabs_hard)
7477 (update_enumeration_type_from_children): Likewise.
7478 * gdb_obstack.h (auto_obstack): New type.
7479 * go-exp.y (name_obstack): Now an auto_obstack.
7480 (build_packaged_name): Use auto_obstack::clear.
7481 (go_parse): Use auto_obstack::clear instead of reinitializing and
7482 freeing the obstack.
7483 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
7484 auto_obstack.
7485 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
7486 * rust-exp.y (work_obstack): Now an auto_obstack.
7487 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
7488 reinitializing and freeing the obstack.
7489 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
7490 (host_char_to_target): Use auto_obstack.
7491 * utils.h (make_cleanup_obstack_free): Delete declaration.
7492 * valprint.c (generic_emit_char, generic_printstr): Use
7493 auto_obstack.
7494
db665f42
SM
74952017-06-27 Simon Marchi <simon.marchi@ericsson.com>
7496
7497 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
7498 thread.
7499 (darwin_init_thread_list): Don't update dummy thread.
7500 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
7501
873c0814
SM
75022017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7503
7504 * record-full.c (netorder16): Remove.
7505
8b5a7a6e
SM
75062017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7507
7508 * common/diagnostics.h: Define macros for GCC.
7509 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
7510 * common/vec.h: Include diagnostics.h.
7511 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
7512 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
7513 warning.
7514
d1435379
SM
75152017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7516
7517 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
7518 New macro.
7519 * ada-lex.l: Ignore deprecated register warnings.
7520
cc75e0fd
SM
75212017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7522
7523 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
7524 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
7525
07809eaf
SM
75262017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7527
7528 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
7529 its own line.
7530
f076f034
SM
75312017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7532
7533 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
7534
0dd5cbc5
AH
75352017-06-23 Alan Hayward <alan.hayward@arm.com>
7536
7537 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
7538 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
7539 (xtensa_register_read_masked): Likewise.
7540
d4c6ce5b
SDJ
75412017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
7542
7543 * common/environ.c (gdb_environ::unset): Update comment.
7544
16892a03
AH
75452017-06-22 Alan Hayward <alan.hayward@arm.com>
7546
7547 * python/py-unwind.c (pyuw_sniffer): Allocate space for
7548 registers.
7549
d7dcbefc
AH
75502017-06-22 Alan Hayward <alan.hayward@arm.com>
7551
7552 * record-full.c (record_full_exec_insn): Use byte_vector.
7553
b30ff123
YQ
75542017-06-22 Yao Qi <yao.qi@linaro.org>
7555
7556 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
7557 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
7558
4fa847d7
AH
75592017-06-22 Alan Hayward <alan.hayward@arm.com>
7560
7561 * remote.c (cached_reg): Move from here...
7562 * regcache.h (cached_reg): ...to here.
7563 * python/py-unwind.c (struct reg_info): Remove.
7564 (cached_frame_info): Use cached_reg_t.
7565 (pyuw_prev_register): Likewise.
7566 (pyuw_sniffer): Use cached_reg_t and allocate registers.
7567 (pyuw_dealloc_cache): Free all registers.
7568
f4906a9a
PA
75692017-06-22 Pedro Alves <palves@redhat.com>
7570 Simon Marchi <simon.marchi@ericsson.com>
7571
7572 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
7573 warning.
7574 * common/diagnostics.h: New file.
7575
b45a1208
PA
75762017-06-22 Pedro Alves <palves@redhat.com>
7577
7578 * common/agent.h: Add include guards.
7579
e4da2c61
SM
75802017-06-21 Simon Marchi <simon.marchi@ericsson.com>
7581
7582 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
7583 talk about addressable units instead of bytes.
7584
96160d60
SDJ
75852017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7586
7587 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
7588 of '::const_iterator'.
7589
9a6c7d9c
SDJ
75902017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7591
7592 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7593 'unittests/environ-selftests.c'.
7594 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
7595 * charset.c (find_charset_names): Declare object 'iconv_env'.
7596 Update code to use 'iconv_env' object. Remove call to
7597 'free_environ'.
7598 * common/environ.c: Include <utility>.
7599 (make_environ): Delete function.
7600 (free_environ): Delete function.
7601 (gdb_environ::clear): New function.
7602 (gdb_environ::operator=): New function.
7603 (gdb_environ::get): Likewise.
7604 (environ_vector): Delete function.
7605 (set_in_environ): Delete function.
7606 (gdb_environ::set): New function.
7607 (unset_in_environ): Delete function.
7608 (gdb_environ::unset): New function.
7609 (gdb_environ::envp): Likewise.
7610 * common/environ.h: Include <vector>.
7611 (struct gdb_environ): Delete; transform into...
7612 (class gdb_environ): ... this class.
7613 (free_environ): Delete prototype.
7614 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
7615 environ_vector): Likewise.
7616 * infcmd.c (run_command_1): Update code to call
7617 'envp' from 'gdb_environ' class.
7618 (environment_info): Update code to call methods from 'gdb_environ'
7619 class.
7620 (unset_environment_command): Likewise.
7621 (path_info): Likewise.
7622 (path_command): Likewise.
7623 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
7624 (inferior::inferior): Initialize 'environment' using the host's
7625 information.
7626 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
7627 Include "environ.h".
7628 (class inferior) <environment>: Change type from 'struct
7629 gdb_environ' to 'gdb_environ'.
7630 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
7631 methods from 'gdb_environ' class.
7632 * solib.c (solib_find_1): Likewise
7633 * unittests/environ-selftests.c: New file.
7634
75c554cf
YQ
76352017-06-20 Yao Qi <yao.qi@linaro.org>
7636
7637 * features/i386/i386-linux.xml: Exchange the order of including
7638 32bit-linux.xml and 32bit-sse.xml.
7639 * features/i386/i386-linux.c: Regenerated.
7640
72ddacb7
YQ
76412017-06-20 Yao Qi <yao.qi@linaro.org>
7642
7643 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
7644 Delete copy ctor and assignment operator.
7645 (tdesc_type): Likewise.
7646 (tdesc_feature): Likewise.
7647 (tdesc_free_reg): Remove.
7648 (tdesc_create_reg): Use new.
7649 (tdesc_free_type): Remove.
7650 (tdesc_create_vector): Use new.
7651 (tdesc_create_union): Likewise.
7652 (tdesc_create_flags): Likewise.
7653 (tdesc_create_enum): Likewise.
7654 (tdesc_free_feature): Delete.
7655 (free_target_description): Use delete.
7656
325c9fd4
JB
76572017-06-19 John Baldwin <jhb@FreeBSD.org>
7658
7659 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
7660 registers.
7661
16b7a719
PA
76622017-06-19 Pedro Alves <palves@redhat.com>
7663
7664 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
7665 after gdb::unlinker.
7666
1c8e01c9
SDJ
76672017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
7668
7669 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
7670 gdb_environ to access an environment variable.
7671
ffce45d2
TP
76722017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7673
7674 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
7675 gdb_byte*.
7676
1d4fbac9
SM
76772017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7678
7679 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
7680
8465943a
SM
76812017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7682
7683 * configure: Re-generate.
7684 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
7685
3e019bdc
SM
76862017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7687
7688 * configure: Re-generate.
7689 * warning.m4: Pass -Werror to compiler when checking for
7690 supported warning flags.
7691
cf0dd6f0
SM
76922017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7693
7694 * Makefile.in (COMPILE.pre): Add "-x c++".
7695
6f98355c
YQ
76962017-06-16 Alan Hayward <alan.hayward@arm.com>
7697 Pedro Alves <palves@redhat.com>
7698 Yao Qi <yao.qi@linaro.org>
7699
7700 * defs.h (RequireLongest): New.
7701 (extract_integer): Declare function template.
7702 (extract_signed_integer): Remove the declaration, but define it
7703 static inline.
7704 (extract_unsigned_integer): Likewise.
7705 (store_integer): Declare function template.
7706 (store_signed_integer): Remove the declaration, but define it
7707 static inline.
7708 (store_unsigned_integer): Likewise.
7709 * findvar.c (extract_integer): New function template.
7710 (extract_signed_integer): Remove.
7711 (extract_unsigned_integer): Remove.
7712 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
7713 instantiations.
7714 (store_integer): New function template.
7715 (store_signed_integer): Remove.
7716 (store_unsigned_integer): Remove.
7717 (store_integer): Explicit instantiations.
7718 * regcache.c (regcache_raw_read_signed): Update.
7719 (regcache::raw_read): New function.
7720 (regcache::raw_read_signed): Remove.
7721 (regcache::raw_read_unsigned): Remove.
7722 (regcache_raw_read_unsigned): Update.
7723 (regcache_raw_write_unsigned): Update.
7724 (regcache::raw_write_signed): Remove.
7725 (regcache::raw_write): New function.
7726 (regcache_cooked_read_signed): Update.
7727 (regcache::raw_write_unsigned): Remove.
7728 (regcache::cooked_read_signed): Remove.
7729 (regcache_cooked_read_unsigned): Update.
7730 (regcache::cooked_read_unsigned): Remove.
7731 (regcache_cooked_write_signed): Update.
7732 (regcache_cooked_write_unsigned): Update.
7733 * regcache.h (regcache) <raw_read_signed>: Remove.
7734 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
7735 <raw_read, raw_write>: New.
7736 <cooked_read_signed, cooked_write_signed>: Remove.
7737 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
7738 <cooked_read, cooked_write>: New.
7739 * sh64-tdep.c (sh64_pseudo_register_read): Update.
7740 (sh64_pseudo_register_write): Update.
7741
a87dc45a
AK
77422017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
7743
7744 * arc-tdep.c (arc_disassembler_options): New variable.
7745 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
7746 of default_print_insn.
7747 (arc_delayed_print_insn): Set info->section when needed,
7748 use default_print_insn to retrieve a disassembler.
7749
45159d6a
SDJ
77502017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
7751
7752 PR gdb/21574
7753 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
7754 to mention $SHELL and startup-with-shell.
7755
b46c4cf0
MF
77562017-06-14 Max Filippov <jcmvbkbc@gmail.com>
7757
7758 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
7759
6394c606
YQ
77602017-06-14 Yao Qi <yao.qi@linaro.org>
7761
7762 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
7763 default_print_insn instead of print_insn_aarch64.
7764 * arm-tdep.c (gdb_print_insn_arm): Call
7765 default_print_insn instead of print_insn_big_arm
7766 and print_insn_little_arm.
7767 * i386-tdep.c (i386_print_insn): Call default_print_insn
7768 instead of print_insn_i386.
7769 * ia64-tdep.c (ia64_print_insn): Call
7770 default_print_insn instead of print_insn_ia64.
7771 * mips-tdep.c (gdb_print_insn_mips): Call
7772 default_print_insn instead of print_insn_big_mips
7773 and print_insn_little_mips.
7774 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
7775 instead of print_insn_spu.
7776
d5722aa2
PA
77772017-06-14 Pedro Alves <palves@redhat.com>
7778
7779 * ada-lang.c: Include "common/byte-vector.h".
7780 (ada_value_primitive_packed_val): Use gdb::byte_vector.
7781 * charset.c (wchar_iterator::iterate): Resize the vector instead
7782 of reserving it.
7783 * common/byte-vector.h: Include "common/def-vector.h".
7784 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
7785 * cli/cli-dump.c: Include "common/byte-vector.h".
7786 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
7787 * common/byte-vector.h: New file.
7788 * common/def-vector.h: New file.
7789 * common/default-init-alloc.h: New file.
7790 * dwarf2loc.c: Include "common/byte-vector.h".
7791 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
7792 instead of reserving it.
7793 * dwarf2read.c: Include "common/byte-vector.h".
7794 (data_buf::m_vec): Now a gdb::byte_vector.
7795 * gdb_regex.c: Include "common/def-vector.h".
7796 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
7797 * mi/mi-main.c: Include "common/byte-vector.h".
7798 (mi_cmd_data_read_memory): Use gdb::byte_vector.
7799 * printcmd.c: Include "common/byte-vector.h".
7800 (print_scalar_formatted): Use gdb::byte_vector.
7801 * valprint.c: Include "common/byte-vector.h".
7802 (maybe_negate_by_bytes, print_decimal_chars): Use
7803 gdb::byte_vector.
7804
01ec7a27
SM
78052017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7806
7807 * darwin-nat.c: Include "nat/fork-inferior.h".
7808
848d9074
SM
78092017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7810
7811 * configure.nat: Factor out Darwin bits that are not
7812 architecture-specific. Add fork-inferior.o.
7813
3b912944
SM
78142017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7815
7816 * configure.nat: Factor out AIX bits that are not
7817 architecture-specific. Add fork-inferior.o.
7818
55acdf22
AA
78192017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7820
7821 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
7822 (read_pieced_value, write_pieced_value): ...here. Reduce to
7823 wrappers that just call rw_pieced_value.
7824
f65e2044
AA
78252017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7826
7827 * dwarf2loc.c (write_pieced_value): When writing the data for a
7828 memory piece, use write_memory_with_notification instead of
7829 write_memory.
7830
23f945bf
AA
78312017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7832
7833 * valops.c (read_value_memory): Change embedded_offset to
7834 represent a bit offset instead of a byte offset.
7835 * value.h (read_value_memory): Adjust comment.
7836
f236533e
AA
78372017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7838
7839 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
7840 dest_offset_bits and source_offset_bits.
7841 (write_pieced_value): Likewise.
7842
65d84b76
AA
78432017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7844
7845 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
7846 given by DW_OP_bit_piece.
7847 (write_pieced_value): Likewise.
7848
242d31ab
AA
78492017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7850
7851 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
7852 some other preparations to the places where sufficient information
7853 is available.
7854 (write_pieced_value): Likewise.
7855
03c8af18
AA
78562017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7857
7858 * dwarf2loc.c (bits_to_bytes): New function.
7859 (read_pieced_value): Fix offset calculations for register pieces
7860 on big-endian targets.
7861 (write_pieced_value): Likewise.
7862
840989c1
AA
78632017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7864
7865 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
7866 (write_pieced_value): Likewise.
7867
359b19bb
AA
78682017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7869
7870 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
7871 transfer the source value's least significant bits, instead of its
7872 lowest-addressed ones. Rename type_len to max_offset.
7873 (read_pieced_value): Mirror above changes to write_pieced_value as
7874 applicable.
7875
07c9ca3b
AA
78762017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7877
7878 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
7879 truncate full bytes from dest_offset_bits before using it as an
7880 offset into the buffer.
7881
f1cc9874
AA
78822017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7883
7884 * dwarf2loc.c (write_pieced_value): Include transfer size in
7885 byte-wise check.
7886
cdaac320
AA
78872017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7888
7889 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
7890 calculation of this_size.
7891
af547a96
AA
78922017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7893
7894 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
7895 when targeting a bit-field.
7896 (write_pieced_value): Likewise.
7897
ddd7882a
AA
78982017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7899
7900 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
7901 (allocate_piece_closure): Drop addr_size parameter.
7902 (dwarf2_evaluate_loc_desc_full): Adjust call to
7903 allocate_piece_closure.
7904
e9352324
AA
79052017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7906
7907 PR gdb/21226
7908 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
7909 the LSB end, independent of endianness.
7910
d5d1163e
AA
79112017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7912
7913 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
7914 size capping.
7915
032bb6ea
YQ
79162017-06-13 Yao Qi <yao.qi@linaro.org>
7917
7918 * mips-linux-nat.c: Move include features/mips*-linux.c to
7919 mips-linux-tdep.c.
7920 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
7921 to mips-linux-tdep.c.
7922 * mips-linux-tdep.c: Include features/mips*-linux.c
7923 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
7924 functions.
7925 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
7926 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
7927 (tdesc_mips64_dsp_linux): Declare.
7928
f12f6bad
TT
79292017-06-12 Tom Tromey <tom@tromey.com>
7930
7931 * valprint.h (val_print_type_code_int): Remove.
7932 * valprint.c (generic_val_print_int): Always call
7933 val_print_scalar_formatted.
7934 (val_print_type_code_int): Remove.
7935 * printcmd.c (print_scalar_formatted): Handle options->format==0.
7936 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
7937 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
7938 * ada-valprint.c (ada_val_print_num): Use
7939 val_print_scalar_formatted.
7940
d9109c80
TT
79412017-06-12 Tom Tromey <tom@tromey.com>
7942
7943 * printcmd.c (print_scalar_formatted): Unify the two switches.
7944 Don't convert scalars to LONGEST.
7945
4ac0cb1c
TT
79462017-06-12 Tom Tromey <tom@tromey.com>
7947
7948 PR exp/16225:
7949 * valprint.h (print_decimal_chars): Update.
7950 * valprint.c (maybe_negate_by_bytes): New function.
7951 (print_decimal_chars): Add "is_signed" argument.
7952 * printcmd.c (print_scalar_formatted): Update.
7953
30a25466
TT
79542017-06-12 Tom Tromey <tom@tromey.com>
7955
7956 PR exp/16225:
7957 * valprint.h (print_binary_chars, print_hex_chars): Update.
7958 * valprint.c (val_print_type_code_int): Update.
7959 (print_binary_chars): Add "zero_pad" argument.
7960 (emit_octal_digit): New function.
7961 (print_octal_chars): Don't zero-pad.
7962 (print_decimal_chars): Likewise.
7963 (print_hex_chars): Add "zero_pad" argument.
7964 * sh64-tdep.c (sh64_do_fp_register): Update.
7965 * regcache.c (regcache::dump): Update.
7966 * printcmd.c (print_scalar_formatted): Update.
7967 * infcmd.c (default_print_one_register_info): Update.
7968
b3464d03
PA
79692017-06-12 Pedro Alves <palves@redhat.com>
7970 Alan Hayward <alan.hayward@arm.com>
7971
7972 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
7973 (mips_eabi_push_dummy_call): Rename local 'regsize' to
7974 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
7975 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
7976 Assert that abi_regsize bytes fit in 'ref_valbuf'.
7977
4b76cda9
PA
79782017-06-12 Pedro Alves <palves@redhat.com>
7979
7980 * dwarf2read.c (mapped_symtab::data): Now a vector of
7981 symtab_index_entry instead of vector of
7982 std::unique_ptr<symtab_index_entry>. All users adjusted to check
7983 whether an element's name is NULL instead of checking whether the
7984 element itself is NULL.
7985 (find_slot): Change return type. Adjust.
7986 (hash_expand, , add_index_entry, uniquify_cu_indices)
7987 (write_hash_table): Adjust.
7988
e8f8bcb3
PA
79892017-06-12 Pedro Alves <palves@redhat.com>
7990
7991 * dwarf2read.c (recursively_count_psymbols): New function.
7992 (write_psymtabs_to_index): Call it to compute number of psyms and
7993 pass estimate size of psyms_seen to unordered_set's ctor.
7994
70a1152b
PA
79952017-06-12 Pedro Alves <palves@redhat.com>
7996
7997 * dwarf2read.c (write_hash_table): Check if key already exists
7998 before emplacing.
7999
c2f134ac
PA
80002017-06-12 Pedro Alves <palves@redhat.com>
8001
8002 * dwarf2read.c (data_buf::append_space): Rename to...
8003 (data_buf::grow): ... this, and make private. Adjust all callers.
8004 (data_buf::append_uint): New method.
8005 (add_address_entry, write_one_signatured_type)
8006 (write_psymtabs_to_index): Use it.
8007
a81e6d4d
PA
80082017-06-12 Pedro Alves <palves@redhat.com>
8009
8010 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
8011 (file_write (FILE *, const std::vector<Elem>&)): Delete.
8012 (data_buf::file_write): Call ::fwrite directly.
8013
6fd931f2
PA
80142017-06-12 Pedro Alves <palves@redhat.com>
8015
8016 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
8017 std::vector::erase.
8018
bc8f2430
JK
80192017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8020
8021 Code cleanup: C++ify .gdb_index producer.
8022 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
8023 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
8024 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
8025 (create_strtab, add_string): Remove.
8026 (file_write, data_buf): New.
8027 (struct symtab_index_entry): Use std::vector for cu_indices.
8028 (struct mapped_symtab): Use std::vector for data.
8029 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
8030 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
8031 Remove.
8032 (find_slot): Change return type. Update it to the new data structures.
8033 (hash_expand, add_index_entry): Update it to the new data structures.
8034 (offset_type_compare): Remove.
8035 (uniquify_cu_indices): Update it to the new data structures.
8036 (c_str_view, c_str_view_hasher, vector_hasher): New.
8037 (add_indices_to_cpool): Remove.
8038 (write_hash_table): Update it to the new data structures.
8039 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
8040 (eq_psymtab_cu_index): Remove.
8041 (psym_index_map): New typedef.
8042 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
8043 reference and std::unordered_map for cu_index_htab.
8044 (add_address_entry, add_address_entry_worker, write_address_map)
8045 (write_psymbols): Update it to the new data structures.
8046 (write_obstack): Remove.
8047 (struct signatured_type_index_data): Change types_list to a data_buf
8048 reference and psyms_seen to a std::unordered_set reference.
8049 (write_one_signatured_type, recursively_write_psymbols)
8050 (write_psymtabs_to_index): Update it to the new data structures.
8051
c4dcb155
SM
80522017-06-11 Simon Marchi <simon.marchi@ericsson.com>
8053
8054 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
8055 separate-debug-file commands.
8056 * symfile.h (separate_debug_file_debug): New global.
8057 * symfile.c (separate_debug_file_debug): New global.
8058 (separate_debug_file_exists, find_separate_debug_file): Add
8059 debug output.
8060 (_initialize_symfile): Add "set debug separate-debug-file"
8061 command.
8062 * build-id.c (build_id_to_debug_bfd,
8063 find_separate_debug_file_by_buildid): Add debug output.
8064
6d45d4b4
SM
80652017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
8066
8067 * gdbarch.sh (displaced_step_free_closure): Remove.
8068 * gdbarch.h, gdbarch.c: Re-generate.
8069 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
8070 displaced_step_free_closure.
8071 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
8072 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8073 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8074 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
8075 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
8076 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8077 * arch-utils.h (simple_displaced_step_free_closure): Remove.
8078 * arch-utils.c (simple_displaced_step_free_closure): Remove.
8079 * infrun.c (displaced_step_clear): Call xfree instead of
8080 gdbarch_displaced_step_free_closure.
8081
2f91880f
SDJ
80822017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
8083
8084 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
8085 NULL".
8086
b8b6e72f
AH
80872017-06-08 Alan Hayward <alan.hayward@arm.com>
8088
8089 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
8090 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
8091 (mn10300_push_dummy_call): Likewise.
8092
5369082e
AH
80932017-06-08 Alan Hayward <alan.hayward@arm.com>
8094
8095 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
8096
ff4ca5ac
AH
80972017-06-08 Alan Hayward <alan.hayward@arm.com>
8098
8099 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
8100
aefd8b33
SDJ
81012017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8102
8103 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
8104 able to start inferiors using a shell.
8105 (New remote packets): Announce new packet "QStartupWithShell".
8106 * remote.c: Add PACKET_QStartupWithShell.
8107 (extended_remote_create_inferior): Handle new
8108 PACKET_QStartupWithShell.
8109 (remote_protocol_features) <QStartupWithShell>: New entry for
8110 PACKET_QStartupWithShell.
8111 (_initialize_remote): Call "add_packet_config_cmd" for
8112 QStartupShell.
8113
2090129c
SDJ
81142017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8115 Pedro Alves <palves@redhat.com>
8116
8117 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
8118 and "nat/fork-inferior.h".
8119 * common/common-inferior.h: New file, with contents from
8120 "gdb/inferior.h".
8121 * commom/common-utils.c: Include "common-utils.h".
8122 (stringify_argv): New function.
8123 * common/common-utils.h (stringify_argv): New prototype.
8124 * configure.nat: Add "fork-inferior.o" as a dependency for
8125 "*linux*", "fbsd*" and "nbsd*" hosts.
8126 * corefile.c (get_exec_file): Update comment.
8127 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
8128 instead of "startup_inferior".
8129 (darwin_create_inferior): Call "add_thread_silent" after
8130 "fork_inferior".
8131 * fork-child.c: Cleanup unnecessary includes.
8132 (SHELL_FILE): Move to "common/common-fork-child.c".
8133 (environ): Likewise.
8134 (exec_wrapper): Initialize.
8135 (get_exec_wrapper): New function.
8136 (breakup_args): Move to "common/common-fork-child.c"; rename to
8137 "breakup_args_for_exec".
8138 (escape_bang_in_quoted_argument): Move to
8139 "common/common-fork-child.c".
8140 (saved_ui): New variable.
8141 (prefork_hook): New function.
8142 (postfork_hook): Likewise.
8143 (postfork_child_hook): Likewise.
8144 (gdb_startup_inferior): Likewise.
8145 (fork_inferior): Move to "common/common-fork-child.c". Update
8146 function to support gdbserver.
8147 (startup_inferior): Likewise.
8148 * gdbcore.h (get_exec_file): Remove declaration.
8149 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
8150 instead of "startup_inferior". Call "add_thread_silent" after
8151 "fork_inferior".
8152 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
8153 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
8154 instead of "startup_inferior". Call "add_thread_silent" after
8155 "fork_inferior".
8156 * inferior.h: Include "common-inferior.h".
8157 (trace_start_error): Move to "common/common-utils.h".
8158 (trace_start_error_with_name): Likewise.
8159 (fork_inferior): Move prototype to "nat/fork-inferior.h".
8160 (startup_inferior): Likewise.
8161 (gdb_startup_inferior): New prototype.
8162 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
8163 * nat/fork-inferior.h: New file.
8164 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
8165 instead of "startup_inferior". Call "add_thread_silent" after
8166 "fork_inferior".
8167 * target.h (target_terminal_init): Move prototype to
8168 "target/target.h".
8169 (target_terminal_inferior): Likewise.
8170 (target_terminal_ours): Likewise.
8171 * target/target.h (target_terminal_init): New prototype, moved
8172 from "target.h".
8173 (target_terminal_inferior): Likewise.
8174 (target_terminal_ours): Likewise.
8175 * utils.c (gdb_flush_out_err): New function.
8176
043a4934
SDJ
81772017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8178
8179 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
8180 * common/common-gdbthread.h: New file, with parts from
8181 "gdb/gdbthread.h".
8182 * gdbthread.h: Include "common-gdbthread.h".
8183 (switch_to_thread): Moved to "common/common-gdbthread.h".
8184
15652511
SDJ
81852017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8186
8187 * Makefile.in (SFILES): Add "common/job-control.c".
8188 (HFILES_NO_SRCDIR): Add "common/job-control.h".
8189 (COMMON_OBS): Add "job-control.o".
8190 * common/job-control.c: New file, with contents from
8191 "gdb/inflow.c".
8192 * common/job-control.h: New file, with contents from "terminal.h".
8193 * fork-child.c: Include "job-control.h".
8194 * inflow.c: Include "job-control.h".
8195 (gdb_setpgid): Move to "common/common-inflow.c".
8196 (_initialize_inflow): Move setting of "job_control" to
8197 "handle_job_control".
8198 * terminal.h (job_control): Moved to "common/common-terminal.h".
8199 (gdb_setpgid): Likewise.
8200 * top.c: Include "job_control.h".
8201 * utils.c: Likewise.
8202 (job_control): Moved to "job-control.c".
8203
2d7cc5c7
PA
82042017-06-07 Pedro Alves <palves@redhat.com>
8205
8206 * Makefile.in (SFILES): Add gdb_regex.c.
8207 (COMMON_OBS): Add gdb_regex.o.
8208 * ada-lang.c (ada_add_standard_exceptions)
8209 (ada_add_exceptions_from_frame, name_matches_regex)
8210 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
8211 parameter type to compiled_regex. Adjust.
8212 (ada_exceptions_list): Use compiled_regex.
8213 * break-catch-throw.c (exception_catchpoint::pattern): Now a
8214 std::unique_ptr<compiled_regex>.
8215 (exception_catchpoint::~exception_catchpoint): Remove regfree
8216 call.
8217 (check_status_exception_catchpoint): Adjust to use compiled_regex.
8218 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
8219 * breakpoint.c (solib_catchpoint::compiled): Now a
8220 std::unique_ptr<compiled_regex>.
8221 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
8222 (check_status_catch_solib): Adjust to use compiled_regex.
8223 (add_solib_catchpoint): Adjust to use compiled_regex.
8224 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
8225 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
8226 compiled_regex reference. Adjust to use it.
8227 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
8228 declaration. Include "gdb_regex.h".
8229 (apropos_cmd): Change regex parameter to compiled_regex reference.
8230 * gdb_regex.c: New file.
8231 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
8232 declarations.
8233 (class compiled_regex): New.
8234 * linux-tdep.c: Include "common/gdb_optional.h".
8235 (struct mapping_regexes): New, factored out from
8236 mapping_is_anonymous_p, and adjusted to use compiled_regex.
8237 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
8238 gdb::optional and remove cleanups. Adjust to compiled_regex.
8239 * probe.c: Include "common/gdb_optional.h".
8240 (collect_probes): Use compiled_regex and gdb::optional and remove
8241 cleanups.
8242 * skip.c: Include "common/gdb_optional.h".
8243 (skiplist_entry::compiled_function_regexp): Now a
8244 gdb::optional<compiled_regex>.
8245 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
8246 (free_skiplist_entry): Remove regfree call.
8247 (compile_skip_regexp, skip_rfunction_p): Adjust to use
8248 compiled_regex and gdb::optional.
8249 * symtab.c: Include "common/gdb_optional.h".
8250 (search_symbols): Use compiled_regex and gdb::optional.
8251 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
8252 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
8253 to gdb_regex.c.
8254
50d6adef
AH
82552017-06-07 Alan Hayward <alan.hayward@arm.com>
8256
8257 * regcache.c (regcache::save): Avoid buffer use.
8258 (regcache::dump): Likewise.
8259
4a8a33c8
AH
82602017-06-07 Alan Hayward <alan.hayward@arm.com>
8261
8262 * sh-tdep.c (sh_pseudo_register_read): Remove
8263 MAX_REGISTER_SIZE.
8264 (sh_pseudo_register_write): Likewise.
8265 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
8266 (sh64_pseudo_register_write): Likewise
8267
d1be909e
AH
82682017-06-07 Alan Hayward <alan.hayward@arm.com>
8269
8270 * aarch64-tdep.c (aarch64_store_return_value): Use
8271 V_REGISTER_SIZE.
8272 (aarch64_pseudo_read_value): Likewise.
8273 (aarch64_pseudo_write): Likewise.
8274
f4a65042
YQ
82752017-06-06 Yao Qi <yao.qi@linaro.org>
8276
8277 * regformats/regdef.h (set_register_cache): Remove the
8278 declaration.
8279
9f7fb0aa
AH
82802017-06-06 Alan Hayward <alan.hayward@arm.com>
8281
8282 * frame.c (frame_unwind_register_signed): Use
8283 frame_unwind_register_value.
8284
e1e01040
PA
82852017-06-06 Pedro Alves <palves@redhat.com>
8286
8287 PR breakpoints/21553
8288 * breakpoint.c (create_breakpoints_sal_default)
8289 (init_breakpoint_sal, create_breakpoint_sal): Use
8290 gdb::unique_xmalloc_ptr for string parameters.
8291 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8292 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
8293 (base_breakpoint_create_breakpoints_sal)
8294 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
8295 (strace_marker_create_breakpoints_sal)
8296 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
8297 string parameters.
8298 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
8299 gdb::unique_xmalloc_ptr for string parameters.
8300 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8301 parameters.
8302
fbe654c8
AH
83032017-06-06 Alan Hayward <alan.hayward@arm.com>
8304
8305 * alpha-tdep.c (alpha_register_to_value): Use
8306 get_frame_register_value.
8307 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
8308
ae0d01d6
AH
83092017-06-06 Alan Hayward <alan.hayward@arm.com>
8310
8311 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
8312 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
8313 (ia64_value_to_register): Likewise.
8314 (ia64_extract_return_value): Likewise.
8315 (ia64_store_return_value): Likewise.
8316 (ia64_push_dummy_call): Likewise.
8317
49cf576c
JB
83182017-06-04 Joel Brobecker <brobecker@adacore.com>
8319
8320 GDB 8.0 released.
8321
26b6a6ab
SM
83222017-06-03 Simon Marchi <simon.marchi@ericsson.com>
8323
8324 * x86-linux-nat.c (struct arch_lwp_info): Remove.
8325
22827c51
SM
83262017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
8327
8328 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
8329 parameter.
8330 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
8331
0e05cf3a
SM
83322017-06-02 Simon Marchi <simon.marchi@ericsson.com>
8333
8334 * event-loop.c (poll_timers): Unallocate timer using delete
8335 instead of xfree.
8336
c1fc2657
SM
83372017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8338
8339 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
8340 (struct breakpoint) <~breakpoint>: New.
8341 (struct watchpoint): Inherit from breakpoint.
8342 <~watchpoint>: New.
8343 <base>: Remove.
8344 (struct tracepoint): Inherit from breakpoint.
8345 <base>: Remove.
8346 * breakpoint.c (longjmp_breakpoint_ops): Remove.
8347 (struct longjmp_breakpoint): Inherit from breakpoint.
8348 <~longjmp_breakpoint>: New.
8349 <base>: Remove.
8350 (new_breakpoint_from_type): Remove casts.
8351 (watchpoint_in_thread_scope): Remove reference to base field.
8352 (watchpoint_del_at_next_stop): Likewise.
8353 (update_watchpoint): Likewise.
8354 (watchpoint_check): Likewise.
8355 (bpstat_check_watchpoint): Likewise.
8356 (set_longjmp_breakpoint): Likewise.
8357 (struct fork_catchpoint): Inherit from breakpoint.
8358 <base>: Remove.
8359 (struct solib_catchpoint): Inherit from breakpoint.
8360 <~solib_catchpoint>: New.
8361 <base>: Remove.
8362 (dtor_catch_solib): Change to ...
8363 (solib_catchpoint::~solib_catchpoint): ... this.
8364 (breakpoint_hit_catch_solib): Remove reference to base field.
8365 (add_solib_catchpoint): Likewise.
8366 (create_fork_vfork_event_catchpoint): Likewise.
8367 (struct exec_catchpoint): Inherit from breakpoint.
8368 <~exec_catchpoint>: New.
8369 <base>: Remove.
8370 (dtor_catch_exec): Change to ...
8371 (exec_catchpoint::~exec_catchpoint): ... this.
8372 (dtor_watchpoint): Change to ...
8373 (watchpoint::~watchpoint): ... this.
8374 (watch_command_1): Remove reference to base field.
8375 (catch_exec_command_1): Likewise.
8376 (base_breakpoint_dtor): Change to ...
8377 (breakpoint::~breakpoint): ... this.
8378 (base_breakpoint_ops): Remove dtor field value.
8379 (longjmp_bkpt_dtor): Change to ...
8380 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
8381 (strace_marker_create_breakpoints_sal): Remove reference to base
8382 field.
8383 (delete_breakpoint): Don't manually call breakpoint destructor.
8384 (create_tracepoint_from_upload): Remove reference to base field.
8385 (trace_pass_set_count): Likewise.
8386 (initialize_breakpoint_ops): Don't initialize
8387 momentary_breakpoint_ops, don't set dtors.
8388 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
8389 <~ada_catchpoint>: New.
8390 <base>: Remove.
8391 (create_excep_cond_exprs): Remove reference to base field.
8392 (dtor_exception): Change to ...
8393 (ada_catchpoint::~ada_catchpoint): ... this.
8394 (dtor_catch_exception): Remove.
8395 (dtor_catch_exception_unhandled): Remove.
8396 (dtor_catch_assert): Remove.
8397 (create_ada_exception_catchpoint): Remove reference to base
8398 field.
8399 (initialize_ada_catchpoint_ops): Don't set dtors.
8400 * break-catch-sig.c (struct signal_catchpoint): Inherit from
8401 breakpoint.
8402 <~signal_catchpoint>: New.
8403 <base>: Remove.
8404 (signal_catchpoint_dtor): Change to ...
8405 (signal_catchpoint::~signal_catchpoint): ... this.
8406 (create_signal_catchpoint): Remove reference to base field.
8407 (initialize_signal_catchpoint_ops): Don't set dtor.
8408 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
8409 from breakpoint.
8410 <~syscall_catchpoint>: New.
8411 <base>: Remove.
8412 (dtor_catch_syscall): Change to ...
8413 (syscall_catchpoint::~syscall_catchpoint): ... this.
8414 (create_syscall_event_catchpoint): Remove reference to base
8415 field.
8416 (initialize_syscall_catchpoint_ops): Don't set dtor.
8417 * break-catch-throw.c (struct exception_catchpoint): Inherit
8418 from breakpoint.
8419 <~exception_catchpoint>: New.
8420 <base>: Remove.
8421 (dtor_exception_catchpoint): Change to ...
8422 (exception_catchpoint::~exception_catchpoint): ... this.
8423 (handle_gnu_v3_exceptions): Remove reference to base field.
8424 (initialize_throw_catchpoint_ops): Don't set dtor.
8425 * ctf.c (ctf_get_traceframe_address): Remove reference to base
8426 field.
8427 * remote.c (remote_get_tracepoint_status): Likewise.
8428 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
8429 * tracefile.c (tracefile_fetch_registers): Likewise.
8430 * tracepoint.c (actions_command): Likewise.
8431 (validate_actionline): Likewise.
8432 (tfind_1): Likewise.
8433 (get_traceframe_location): Likewise.
8434 (find_matching_tracepoint_location): Likewise.
8435 (parse_tracepoint_status): Likewise.
8436 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
8437
3b0871f4
SM
84382017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8439
8440 * breakpoint.c (struct longjmp_breakpoint): New struct.
8441 (is_tracepoint_type): Change return type to bool.
8442 (is_longjmp_type): New function.
8443 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
8444 (set_raw_breakpoint_without_location): Use
8445 new_breakpoint_from_type.
8446 (set_raw_breakpoint): Likewise.
8447
a5e364af
SM
84482017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8449
8450 * breakpoint.c (new_breakpoint_from_type): New function.
8451 (create_breakpoint_sal): Use new_breakpoint_from_type and
8452 unique_ptr.
8453 (create_breakpoint): Likewise.
8454
ae3b3f34
SM
84552017-05-31 Simon Marchi <simon.marchi@ericsson.com>
8456
8457 * memattr.c (mem_info_command): Rename to ...
8458 (info_mem_command): ... this.
8459 (mem_enable_command): Rename to ...
8460 (enable_mem_command): ... this.
8461 (mem_disable_command): Rename to ...
8462 (disable_mem_command): ... this.
8463 (mem_delete_command): Rename to ...
8464 (delete_mem_command): ... this.
8465 (_initialize_mem): Adjust function names.
8466
13ace077
MM
84672017-05-31 Markus Metzger <markus.t.metzger@intel.com>
8468
8469 * btrace.c (handle_pt_insn_events): New.
8470 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
8471 STATUS. Split into this and ...
8472 (handle_pt_insn_event_flags): ... this.
8473
c56ccc05
MM
84742017-05-31 Markus Metzger <markus.t.metzger@intel.com>
8475
8476 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
8477 and struct pt_insn.resynced.
8478 * configure: Regenerated.
8479 * config.in: Regenerated.
8480
08c3f6d2
TW
84812017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8482
8483 * btrace.c (ftrace_find_call_by_number): New function.
8484 (ftrace_new_function): Store objects, not pointers.
8485 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
8486 ftrace_new_gap, ftrace_update_function,
8487 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
8488 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
8489 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
8490 btrace_ends_with_single_insn, btrace_call_get): Account for
8491 btrace_thread_info::functions now storing objects.
8492 * btrace.h (struct btrace_thread_info): Add constructor.
8493 (struct btrace_thread_info) <functions>: Make std::vector.
8494 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
8495 Initialize with default values.
8496 * record-btrace.c (record_btrace_frame_sniffer): Account for
8497 btrace_thread_info::functions now storing objects.
8498
8ffd39f2
TW
84992017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8500
8501 * btrace.c: Remove typedef bfun_s.
8502 (ftrace_new_gap): Directly add gaps to the list of gaps.
8503 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
8504 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
8505 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
8506 instead of gdb VEC.
8507
4aeb0dfc
TW
85082017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8509
8510 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
8511 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
8512 with btrace_thread_info::next_segment and
8513 btrace_thread_info::prev_segment.
8514 * btrace.h: Remove struct btrace_func_link.
8515 (struct btrace_function): Replace pair of function segment pointers
8516 with pair of indices.
8517 * python/py-record-btrace.c (btpy_call_prev_sibling,
8518 btpy_call_next_sibling): Replace references to
8519 btrace_thread_info::segment with btrace_thread_info::next_segment and
8520 btrace_thread_info::prev_segment.
8521 * record-btrace.c (record_btrace_frame_this_id): Use
8522 btrace_find_call_by_number.
8523
eb8f2b9c
TW
85242017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8525
8526 * btrace.c (ftrace_new_function, ftrace_fixup_level,
8527 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
8528 btrace_insn_next, btrace_insn_prev): Remove references to
8529 btrace_thread_info::flow.
8530 * btrace.h (struct btrace_function): Remove FLOW.
8531
42bfe59e
TW
85322017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8533
8534 * btrace.c (ftrace_find_call_by_number): New function.
8535 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
8536 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
8537 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
8538 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
8539 index.
8540 * btrace.h (struct btrace_function): Turn UP into an index.
8541 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
8542 as an index.
8543 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
8544 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
8545 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
8546
b54b03bd
TW
85472017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8548
8549 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
8550 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
8551 ftrace_update_function, ftrace_compute_global_level_offset,
8552 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
8553 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
8554 btrace_insn_end, btrace_is_empty): Remove references to
8555 btrace_thread_info::begin and btrace_thread_info::end.
8556 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
8557 (struct btrace_thread_info) <functions>: Adjust comment.
8558 * record-btrace.c (record_btrace_start_replaying): Remove reference to
8559 btrace_thread_info::begin.
8560
8286623c
TW
85612017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8562
8563 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
8564 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
8565 ftrace_update_function): Remove arguments that implicitly were always
8566 BTINFO->END.
8567 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
8568 Don't pass BTINFO->END.
8569
a0f1b963
TW
85702017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8571
8572 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
8573 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
8574 btrace_find_insn_by_number): Replace function segment pointer with
8575 index.
8576 (btrace_insn_cmp): Simplify.
8577 * btrace.h: (struct btrace_insn_iterator) Rename index to
8578 insn_index. Replace function segment pointer with index into function
8579 segment vector.
8580 * record-btrace.c (record_btrace_call_history): Replace function
8581 segment pointer use with index.
8582 (record_btrace_frame_sniffer): Retrieve function call segment through
8583 vector.
8584 (record_btrace_set_replay): Remove defunc't safety check.
8585
f158f208
TW
85862017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8587
8588 * btrace.c (btrace_ends_with_single_insn): New function.
8589 (btrace_call_get, btrace_call_number, btrace_call_begin,
8590 btrace_call_end, btrace_call_next, btrace_call_prev,
8591 btrace_find_call_by_number): Use index into call segment vector
8592 instead of pointer.
8593 (btrace_call_cmp): Simplify.
8594 * btrace.h (struct btrace_call_iterator): Replace function call segment
8595 pointer with index into vector.
8596 * record-btrace.c (record_btrace_call_history): Use index instead of
8597 pointer.
8598
521103fd
TW
85992017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8600
8601 * btrace.c (btrace_insn_begin, btrace_insn_end,
8602 btrace_find_insn_by_number): Add btinfo to iterator.
8603 * btrace.h (struct btrace_insn_iterator): Add btinfo.
8604
17b89b34
TW
86052017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8606
8607 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
8608 and save pointers directly.
8609 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
8610 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
8611 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
8612 changed signature of functions.
8613 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
8614 (btrace_fetch): Remove code that adds btrace_function pointers to
8615 vector of btrace_functions.
8616 (btrace_clear): Simplify freeing vector of btrace_functions.
8617
2b51eddc
TW
86182017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8619
8620 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
8621 Replace VEC_* with std::vector functions.
8622 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
8623 (struct btrace_thread_info)<functions>: Change type to std::vector.
8624
db6be0d5
SM
86252017-05-30 Simon Marchi <simon.marchi@ericsson.com>
8626
8627 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
8628 "Removed targets and native configurations" up. Merge duplicate
8629 "New commands" sub-sections. Add "New options" sub-sections.
8630
b057297a
AH
86312017-05-26 Alan Hayward <alan.hayward@arm.com>
8632
8633 * defs.h (copy_integer_to_size): New declaration.
8634 * findvar.c (copy_integer_to_size): New function.
8635 (do_cint_test): New selftest function.
8636 (copy_integer_to_size_test): Likewise.
8637 (_initialize_findvar): Likewise.
8638 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
8639 (mips_fbsd_collect_reg): Use raw_collect_integer.
8640 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
8641 (mips64_fill_gregset): Use raw_collect_integer
8642 (mips64_fill_fpregset): Use raw_supply_integer.
8643 * regcache.c (regcache::raw_supply_integer): New function.
8644 (regcache::raw_collect_integer): Likewise.
8645 * regcache.h: (regcache::raw_supply_integer): New declaration.
8646 (regcache::raw_collect_integer): Likewise.
8647
b77b02a5
YQ
86482017-05-24 Yao Qi <yao.qi@linaro.org>
8649
8650 * Makefile.in (SFILES): Add gdbarch-selftests.c.
8651 (COMMON_OBS): Add gdbarch-selftests.o.
8652 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
8653 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
8654 * gdbarch-selftests.c: New file.
8655 * regcache.h (regcache) <~regcache>: Mark it virtual if
8656 GDB_SELF_TEST.
8657 <raw_write>: Likewise.
8658
e521e87e
YQ
86592017-05-24 Yao Qi <yao.qi@linaro.org>
8660
8661 * regcache.c (current_regcache): Change it to
8662 regcache::current_regcache.
8663 (regcache_observer_target_changed): Update.
8664 (regcache_thread_ptid_changed): Make it a regcache static
8665 method.
8666 (regcache_thread_ptid_changed): Update.
8667 (class regcache_access): New.
8668 (current_regcache_test): Update.
8669 (_initialize_regcache): Update.
8670 * regcache.h: Include forward_list.
8671 (regcache): Declare regcache_thread_ptid_changed and declare
8672 registers_changed_ptid as friend.
8673
d8e07dda
YQ
86742017-05-24 Yao Qi <yao.qi@linaro.org>
8675
8676 * i387-tdep.c (i387_register_to_value): Use register_size
8677 instead of TYPE_LENGTH.
8678 * m68k-tdep.c (m68k_register_to_value): Likewise.
8679
8c8f9122
YQ
86802017-05-24 Yao Qi <yao.qi@linaro.org>
8681
8682 * i387-tdep.c (i387_convert_register_p): Return false if type
8683 code isn't TYPE_CODE_FLT.
8684
68fce50f
YQ
86852017-05-24 Yao Qi <yao.qi@linaro.org>
8686
8687 * alpha-tdep.c (alpha_convert_register_p): Return true if type
8688 length is 4.
8689 (alpha_register_to_value): Remove type length check.
8690 (alpha_value_to_register): Likewise.
8691
88954b49
YQ
86922017-05-24 Yao Qi <yao.qi@linaro.org>
8693
8694 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
8695 TYPE_CODE_FLT.
8696
e3ec9b69
YQ
86972017-05-24 Yao Qi <yao.qi@linaro.org>
8698
8699 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
8700 TYPE_CODE_FLT or not.
8701
cdd238da
YQ
87022017-05-24 Yao Qi <yao.qi@linaro.org>
8703
8704 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
8705 * avr-tdep.c (avr_gdbarch_init): Likewise.
8706 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8707 * cris-tdep.c (cris_gdbarch_init): Likewise.
8708 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
8709 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8710 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8711 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
8712 * mep-tdep.c (mep_gdbarch_init): Likewise.
8713 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8714 * mips-tdep.c (mips_gdbarch_init): Likewise.
8715 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
8716 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8717 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
8718 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8719 * v850-tdep.c (v850_gdbarch_init): Likewise.
8720
7a3929c4
YQ
87212017-05-24 Yao Qi <yao.qi@linaro.org>
8722
8723 * selftest-arch.c (tests_with_arch): Call registers_changed
8724 and reinit_frame_cache.
8725 * selftest.c (run_self_tests): Likewise.
8726
f4985dba
YQ
87272017-05-24 Yao Qi <yao.qi@linaro.org>
8728
8729 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
8730 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
8731
ab20fa4a
YQ
87322017-05-24 Yao Qi <yao.qi@linaro.org>
8733
8734 * rl78-tdep.c (rl78_gdbarch_init): Don't call
8735 set_gdbarch_print_insn.
8736
f532ab94
YQ
87372017-05-24 Yao Qi <yao.qi@linaro.org>
8738
8739 * h8300-tdep.c (h8300_gdbarch_init): Don't call
8740 set_gdbarch_print_insn.
8741
39503f82
YQ
87422017-05-24 Yao Qi <yao.qi@linaro.org>
8743
8744 * alpha-tdep.c (alpha_gdbarch_init): Don't call
8745 set_gdbarch_print_insn.
8746 * arc-tdep.c (arc_gdbarch_init): Likewise.
8747 * arch-utils.c: include dis-asm.h.
8748 (default_print_insn): New function.
8749 * arch-utils.h (default_print_insn): Declare.
8750 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
8751 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8752 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
8753 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
8754 * frv-tdep.c (frv_gdbarch_init): Likewise.
8755 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
8756 * gdbarch.sh (print_insn): Use default_print_insn.
8757 * gdbarch.c: Regenerated.
8758 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
8759 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
8760 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8761 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
8762 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8763 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
8764 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
8765 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
8766 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
8767 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8768 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
8769 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8770 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
8771 * mt-tdep.c (mt_gdbarch_init): Likewise.
8772 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
8773 * nios2-tdep.c (nios2_print_insn): Remove.
8774 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
8775 * rx-tdep.c (rx_gdbarch_init): Likewise.
8776 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8777 * score-tdep.c (score_print_insn): Remove.
8778 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
8779 * sh-tdep.c (sh_gdbarch_init): Likewise.
8780 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8781 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8782 * tic6x-tdep.c (tic6x_print_insn): Remove.
8783 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
8784 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
8785 * v850-tdep.c (v850_gdbarch_init): Likewise.
8786 * vax-tdep.c (vax_gdbarch_init): Likewise.
8787 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
8788 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
8789
f7241d4f
JB
87902017-05-23 John Baldwin <jhb@FreeBSD.org>
8791
8792 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
8793 (MIPS_FP0_REGNUM): Remove.
8794 (MIPS_FSR_REGNUM): Remove.
8795 (mips_fbsd_supply_fpregs): Use mips_regnum.
8796 (mips_fbsd_supply_gregs): Likewise.
8797 (mips_fbsd_collect_fpregs): Likewise.
8798 (mips_fbsd_collect_gregs): Likewise.
8799
d489d81d
JB
88002017-05-23 John Baldwin <jhb@FreeBSD.org>
8801
8802 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
8803 (getpfpregs_supplies): New function.
8804 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
8805 getfpregs_supplies.
8806 (mips_fbsd_store_inferior_registers): Likewise.
8807
e11b3cdc
PA
88082017-05-22 Pedro Alves <palves@redhat.com>
8809
8810 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
8811 maintainer.
8812
0f068fb5
AH
88132017-05-22 Alan Hayward <alan.hayward@arm.com>
8814
8815 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
8816 (store_register): Likewise.
8817 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
8818 (get_decimal_float_return_value): Likewise.
8819 (do_ppc_sysv_return_value): Likewise.
8820 (ppc64_sysv_abi_push_integer): Likewise.
8821 (ppc64_sysv_abi_push_freg): Likewise.
8822 (ppc64_sysv_abi_return_value_base): Likewise.
8823 (ppc64_sysv_abi_return_value): Likewise.
8824 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
8825 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
8826 * rs6000-nat.c: Likewise.
8827 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
8828 (rs6000_value_to_register): Likewise.
8829 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
8830
e6cf65f2
TT
88312017-05-21 Tom Tromey <tom@tromey.com>
8832
8833 PR rust/21466:
8834 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
8835 arrays as "[T]", not "[T; ]".
8836
43cc5389
TT
88372017-05-19 Tom Tromey <tom@tromey.com>
8838
8839 PR rust/21484:
8840 * rust-lang.c (exp_descriptor_rust): New function.
8841 (rust_language_defn): Use it.
8842 * p-lang.c (pascal_language_defn): Update.
8843 * opencl-lang.c (opencl_language_defn): Update.
8844 * objc-lang.c (objc_language_defn): Update.
8845 * m2-lang.c (m2_language_defn): Update.
8846 * language.h (struct language_defn)
8847 <la_watch_location_expression>: New member.
8848 * language.c (unknown_language_defn, auto_language_defn)
8849 (local_language_defn): Update.
8850 * go-lang.c (go_language_defn): Update.
8851 * f-lang.c (f_language_defn): Update.
8852 * d-lang.c (d_language_defn): Update.
8853 * c-lang.h (c_watch_location_expression): Declare.
8854 * c-lang.c (c_watch_location_expression): New function.
8855 (c_language_defn, cplus_language_defn, asm_language_defn)
8856 (minimal_language_defn): Use it.
8857 * breakpoint.c (watch_command_1): Call
8858 la_watch_location_expression.
8859 * ada-lang.c (ada_language_defn): Update.
8860
7a6e7fcc
RO
88612017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8862
6e7e1744
RO
8863 PR tui/21482
8864 * gdb_curses.h (NOMACROS): Define.
8865 (NCURSES_NOMACROS): Define.
8866
88672017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8868
8869 PR tui/21482
7a6e7fcc
RO
8870 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
8871 arg to char *.
8872 * tui/tui-wingeneral.c (box_win): Likewise.
8873 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
8874 (tui_show_source_line): Likewise.
8875 (tui_show_exec_info_content): Likewise.
8876
1933fd8e
VM
88772017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
8878
8879 * sparc-tdep.c (sparc_structure_return_p)
8880 (sparc_arg_on_registers_p): New functions.
8881 (sparc32_store_arguments): Use them.
8882 * sparc64-tdep.c (sparc64_16_byte_align_p)
8883 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
8884 Handle TYPE_CODE_ARRAY.
8885
21873064
YQ
88862017-05-17 Yao Qi <yao.qi@linaro.org>
8887
8888 * cli/cli-decode.c (add_alias_cmd): New function.
8889 * command.h (add_alias_cmd): Declare.
8890 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
8891 instead call add_alias_cmd.
8892
2b351b19
PA
88932017-05-17 Pedro Alves <palves@redhat.com>
8894
8895 * Makefile.in (nat_extra_makefile_frag): Rename to ...
8896 (nat_makefile_frag): ... this. All references updated.
8897 * configure.ac: Likewise.
8898 * configure.nat: Likewise. Enhance comments.
8899 * configure: Regenerate.
8900
5f2ad7a3
RO
89012017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8902
8903 * procfs.c (procfs_create_inferior): Change prototype to match
8904 definition.
8905
adf3dde5
EZ
89062017-05-13 Eli Zaretskii <eliz@gnu.org>
8907
8908 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
8909 C++ compiler warning.
8910
6830f270
TT
89112017-05-12 Tom Tromey <tom@tromey.com>
8912
8913 PR rust/21483:
8914 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
8915 recurse, just call value_struct_elt directly.
8916
68f2f2e3
TT
89172017-05-12 Tom Tromey <tom@tromey.com>
8918
8919 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
8920 OP_RUST_ARRAY>: Fix.
8921
256afbc2
TT
89222017-05-12 Tom Tromey <tom@tromey.com>
8923
8924 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
8925
94bb8dfe
YQ
89262017-05-09 Yao Qi <yao.qi@linaro.org>
8927
8928 * regcache.c: Include <forward_list>.
8929 (struct regcache_list): Remove.
8930 (current_regcache): Update.
8931 (get_thread_arch_aspace_regcache): Update for std::forward_list.
8932 (regcache_thread_ptid_changed): Likewise.
8933 (registers_changed_ptid): Likewise.
8934 (current_regcache_size): Likewise.
8935
8248946c
YQ
89362017-05-09 Yao Qi <yao.qi@linaro.org>
8937
8938 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
8939 (current_regcache_size): New function.
8940 (current_regcache_test): New function.
8941 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
8942
313c5961
AH
89432017-05-08 Alan Hayward <alan.hayward@arm.com>
8944
8945 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
8946 (print_gp_register_row): Use get_frame_register_value.
8947
27bfc1d1
AH
89482017-05-08 Alan Hayward <alan.hayward@arm.com>
8949
8950 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
8951 (mips_supply_fpregset): Likewise.
8952 (mips64_supply_gregset): Likewise.
8953
146e6c5c
AH
89542017-05-08 Alan Hayward <alan.hayward@arm.com>
8955
8956 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
8957 regcache->raw_supply_zeroed.
8958
e50f25ec
SDJ
89592017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
8960
8961 * configure.nat: Rearrange 'case' statements to match
8962 host before cpu.
8963
21ea5acd
SDJ
89642017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
8965
8966 * Makefile.in: Remove "@host_makefile_frag@". Add variables
8967 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
8968 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
8969 "@nat_extra_makefile_frag@".
8970 (Makefile): Remove dependency on "@frags@".
8971 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
8972 (data-directory/Makefile): Likewise.
8973 * config/aarch64/linux.mh: Deleted; moved contents to
8974 "gdb/configure.nat".
8975 * config/alpha/alpha-linux.mh: Likewise.
8976 * config/alpha/nbsd.mh: Likewise.
8977 * config/arm/linux.mh: Likewise.
8978 * config/arm/nbsdelf.mh: Likewise.
8979 * config/i386/cygwin.mh: Likewise.
8980 * config/i386/cygwin64.mh: Likewise.
8981 * config/i386/darwin.mh: Likewise.
8982 * config/i386/fbsd.mh: Likewise.
8983 * config/i386/fbsd64.mh: Likewise.
8984 * config/i386/go32.mh: Likewise.
8985 * config/i386/i386gnu.mh: Likewise.
8986 * config/i386/i386sol2.mh: Likewise.
8987 * config/i386/linux.mh: Likewise.
8988 * config/i386/linux64.mh: Likewise.
8989 * config/i386/mingw.mh: Likewise.
8990 * config/i386/mingw64.mh: Likewise.
8991 * config/i386/nbsd64.mh: Likewise.
8992 * config/i386/nbsdelf.mh: Likewise.
8993 * config/i386/nto.mh: Likewise.
8994 * config/i386/obsd.mh: Likewise.
8995 * config/i386/obsd64.mh: Likewise.
8996 * config/i386/sol2-64.mh: Likewise.
8997 * config/ia64/linux.mh: Likewise.
8998 * config/m32r/linux.mh: Likewise.
8999 * config/m68k/linux.mh: Likewise.
9000 * config/m68k/nbsdelf.mh: Likewise.
9001 * config/m68k/obsd.mh: Likewise.
9002 * config/m88k/obsd.mh: Likewise.
9003 * config/mips/fbsd.mh: Likewise.
9004 * config/mips/linux.mh: Likewise.
9005 * config/mips/nbsd.mh: Likewise.
9006 * config/mips/obsd64.mh: Likewise.
9007 * config/pa/linux.mh: Likewise.
9008 * config/pa/nbsd.mh: Likewise.
9009 * config/pa/obsd.mh: Likewise.
9010 * config/powerpc/aix.mh: Likewise.
9011 * config/powerpc/fbsd.mh: Likewise.
9012 * config/powerpc/linux.mh: Likewise.
9013 * config/powerpc/nbsd.mh: Likewise.
9014 * config/powerpc/obsd.mh: Likewise.
9015 * config/powerpc/ppc64-linux.mh: Likewise.
9016 * config/powerpc/spu-linux.mh: Likewise.
9017 * config/s390/linux.mh: Likewise.
9018 * config/sh/nbsd.mh: Likewise.
9019 * config/sparc/fbsd.mh: Likewise.
9020 * config/sparc/linux.mh: Likewise.
9021 * config/sparc/linux64.mh: Likewise.
9022 * config/sparc/nbsd64.mh: Likewise.
9023 * config/sparc/nbsdelf.mh: Likewise.
9024 * config/sparc/obsd64.mh: Likewise.
9025 * config/sparc/sol2.mh: Likewise.
9026 * config/tilegx/linux.mh: Likewise.
9027 * config/vax/nbsdelf.mh: Likewise.
9028 * config/vax/obsd.mh: Likewise.
9029 * config/xtensa/linux.mh: Likewise.
9030 * config/i386/i386gnu.mn: New file, with excerpts from
9031 "config/i386/i386gnu.mh".
9032 * configure: Regenerate.
9033 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
9034 *.mh files under "gdb/config".
9035 * configure.nat: New file, with contents from the
9036 "gdb/config/*/*.mh" files.
9037
7ed1acaf
TW
90382017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
9039
9040 * btrace.c (btrace_clear): Free insn vector.
9041
e13cb306
PA
90422017-05-05 Pedro Alves <palves@redhat.com>
9043
9044 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
9045 * configure: Regenerate.
9046
5ed8105e
PA
90472017-05-04 Pedro Alves <palves@redhat.com>
9048
9049 * Makefile.in (SFILES): Add progspace-and-thread.c.
9050 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
9051 (COMMON_OBS): Add progspace-and-thread.o.
9052 * breakpoint.c: Include "progspace-and-thread.h".
9053 (update_inserted_breakpoint_locations)
9054 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
9055 Use scoped_restore_current_pspace_and_thread.
9056 (create_std_terminate_master_breakpoint): Use
9057 scoped_restore_current_program_space.
9058 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
9059 (print_breakpoint_location): Use
9060 scoped_restore_current_program_space.
9061 (bp_loc_is_permanent): Use
9062 scoped_restore_current_pspace_and_thread.
9063 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
9064 (download_tracepoint_locations): Use
9065 scoped_restore_current_pspace_and_thread.
9066 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
9067 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
9068 (enum step_over_calls_kind): Moved from inferior.h.
9069 (class scoped_restore_current_thread): New class.
9070 * gdbthread.h (make_cleanup_restore_current_thread): Delete
9071 declaration.
9072 (scoped_restore_current_thread): New class.
9073 * infcmd.c: Include "common/gdb_optional.h".
9074 (continue_1, proceed_after_attach): Use
9075 scoped_restore_current_thread.
9076 (notice_new_inferior): Use scoped_restore_current_thread.
9077 * inferior.c: Include "progspace-and-thread.h".
9078 (restore_inferior, save_current_inferior): Delete.
9079 (add_inferior_command, clone_inferior_command): Use
9080 scoped_restore_current_pspace_and_thread.
9081 * inferior.h (scoped_restore_current_inferior): New class.
9082 * infrun.c: Include "progspace-and-thread.h" and
9083 "common/gdb_optional.h".
9084 (follow_fork_inferior): Use
9085 scoped_restore_current_pspace_and_thread.
9086 (scoped_restore_exited_inferior): New class.
9087 (handle_vfork_child_exec_or_exit): Use
9088 scoped_restore_exited_inferior,
9089 scoped_restore_current_pspace_and_thread,
9090 scoped_restore_current_thread and scoped_restore.
9091 (fetch_inferior_event): Use scoped_restore_current_thread.
9092 * linespec.c (decode_line_full, decode_line_1): Use
9093 scoped_restore_current_program_space.
9094 * mi/mi-main.c: Include "progspace-and-thread.h".
9095 (exec_continue): Use scoped_restore_current_thread.
9096 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
9097 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
9098 * proc-service.c (ps_pglobal_lookup): Use
9099 scoped_restore_current_program_space.
9100 * progspace-and-thread.c: New file.
9101 * progspace-and-thread.h: New file.
9102 * progspace.c (release_program_space, clone_program_space): Use
9103 scoped_restore_current_program_space.
9104 (restore_program_space, save_current_program_space)
9105 (save_current_space_and_thread): Delete.
9106 (switch_to_program_space_and_thread): Moved to
9107 progspace-and-thread.c.
9108 * progspace.h (save_current_program_space)
9109 (save_current_space_and_thread): Delete declarations.
9110 (scoped_restore_current_program_space): New class.
9111 * remote.c (remote_btrace_maybe_reopen): Use
9112 scoped_restore_current_thread.
9113 * symtab.c: Include "progspace-and-thread.h".
9114 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
9115 * thread.c (print_thread_info_1): Use
9116 scoped_restore_current_thread.
9117 (struct current_thread_cleanup): Delete.
9118 (do_restore_current_thread_cleanup)
9119 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
9120 (scoped_restore_current_thread::~scoped_restore_current_thread):
9121 ... this new dtor.
9122 (make_cleanup_restore_current_thread): Rename/convert to ...
9123 (scoped_restore_current_thread::scoped_restore_current_thread):
9124 ... this new ctor.
9125 (thread_apply_all_command): Use scoped_restore_current_thread.
9126 (thread_apply_command): Use scoped_restore_current_thread.
9127 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
9128 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
9129
f6223dbb
PA
91302017-05-04 Pedro Alves <palves@redhat.com>
9131
9132 * thread.c (make_cleanup_restore_current_thread): Move
9133 find_thread_ptid call before the is_stopped call. Assert that the
9134 thread is found. Replace is_stopped call by checking the thread's
9135 state directly. Remove unnecessary NULL-thread check.
9136
3c3ae77e
PA
91372017-05-04 Pedro Alves <palves@redhat.com>
9138
9139 * corelow.c (thread_section_name): New class.
9140 (get_core_register_section, get_core_siginfo): Use it.
9141
45eba0ab
AA
91422017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9143
9144 * corelow.c (sniff_core_bfd): Remove extra semicolon.
9145 (get_core_register_section): Remove xfree of NULL pointer.
9146
f81fdd35
AH
91472017-05-03 Alan Hayward <alan.hayward@arm.com>
9148
9149 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
9150 * regcache.c (regcache::raw_supply_zeroed): New function.
9151 * regcache.h (regcache::raw_supply_zeroed): New declaration.
9152
35837774
SM
91532017-05-03 Simon Marchi <simon.marchi@ericsson.com>
9154
9155 * gdbarch.sh: Remove commented out definition of
9156 TARGET_CHAR_BIT.
9157 * gdbarch.h: Re-generate.
9158
c94fee56
SDJ
91592017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
9160
9161 * configure: Regenerate.
9162
d17f7b36
SM
91632017-05-02 Simon Marchi <simon.marchi@ericsson.com>
9164
9165 * solib-target.c (solib_target_relocate_section_addresses):
9166 Remove num_section_bases, num_bases, segment_bases variables.
9167
b560ebd6
SM
91682017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9169
9170 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
9171
f2f46dfc
SM
91722017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9173
9174 * solib-target.c: Include <vector>
9175 (struct lm_info_target) <~lm_info_target>: Remove.
9176 <segment_bases, section_bases>: Change type to
9177 std::vector<CORE_ADDR>.
9178 (library_list_start_segment, library_list_start_section,
9179 library_list_end_library,
9180 solib_target_relocate_section_addresses): Adjust.
9181
a0ff9e1a
SM
91822017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9183
9184 * gdbarch.sh (software_single_step): Change return type to
9185 std::vector<CORE_ADDR>.
9186 * gdbarch.c, gdbarch.h: Re-generate.
9187 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
9188 Adjust.
9189 (arm_deal_with_atomic_sequence_raw): Adjust.
9190 (thumb_get_next_pcs_raw): Adjust.
9191 (arm_get_next_pcs_raw): Adjust.
9192 (arm_get_next_pcs): Adjust.
9193 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
9194 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
9195 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
9196 (alpha_software_single_step): Adjust.
9197 * alpha-tdep.h (alpha_software_single_step): Adjust.
9198 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
9199 * arm-tdep.c (arm_software_single_step): Adjust.
9200 (arm_breakpoint_kind_from_current_state): Adjust.
9201 * arm-tdep.h (arm_software_single_step): Adjust.
9202 * breakpoint.c (insert_single_step_breakpoint): Adjust.
9203 * cris-tdep.c (cris_software_single_step): Adjust.
9204 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
9205 (micromips_deal_with_atomic_sequence): Adjust.
9206 (deal_with_atomic_sequence): Adjust.
9207 (mips_software_single_step): Adjust.
9208 * mips-tdep.h (mips_software_single_step): Adjust.
9209 * moxie-tdep.c (moxie_software_single_step): Adjust.
9210 * nios2-tdep.c (nios2_software_single_step): Adjust.
9211 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
9212 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
9213 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
9214 * s390-linux-tdep.c (s390_software_single_step): Adjust.
9215 * sparc-tdep.c (sparc_software_single_step): Adjust.
9216 * spu-tdep.c (spu_software_single_step): Adjust.
9217 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
9218
ea480a30
SM
92192017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9220
9221 * gdbarch.sh: Use semi-colon as field separator instead of colon.
9222 * gdbarch.h: Re-generate.
9223
d050f7d7
TW
92242017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9225
9226 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
9227 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
9228 * python/py-instruction.c, python/py-instruction.h: New file.
9229 * python/py-record.c: Add py-instruction.h include.
9230 (gdbpy_initialize_record): Make gdb.Instruction a super class of
9231 gdb.RecordInstruction.
9232 * python/python-internal.h: Add gdbpy_initialize_instruction
9233 declaration.
9234 * python/python.c (do_start_initialization): Add
9235 gdbpy_initialize_instruction.
9236
14f819c8
TW
92372017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9238
9239 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
9240 Remove.
9241 (btrace_func_from_recpy_func): New function.
9242 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
9243 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
9244 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
9245 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
9246 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
9247 Also, use new helper functions.
9248 (btpy_list_item): Use new helper functions.
9249 (recpy_bt_function_call_history): Use new type name.
9250 (btpy_call_getset): Remove.
9251 (gdbpy_initialize_btrace): Remove code to initialize
9252 gdb.BtraceFunctionCall.
9253 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
9254 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
9255 recpy_bt_func_prev, recpy_bt_func_next): New export.
9256 * python/py-record.c (recpy_func_type): New static object.
9257 (recpy_func_new, recpy_func_level, recpy_func_symbol,
9258 recpy_func_instructions, recpy_func_up, recpy_func_prev,
9259 recpy_func_next): New function.
9260 (recpy_element_hash, recpy_element_richcompare): Updated comment.
9261 (recpy_func_getset): New static object.
9262 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
9263 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
9264
0ed5da75
TW
92652017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9266
9267 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
9268 (btpy_object, btpy_insn_type, btpy_new): Remove.
9269 (btpy_list_object): Use gdb.RecordInstruction type instead of
9270 gdb.BtraceInstruction type.
9271 (btrace_insn_from_recpy_insn): New function.
9272 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
9273 btpy_new.
9274 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
9275 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
9276 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
9277 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
9278 instead of btpy_object.
9279 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9280 btpy_insn_data, btpy_insn_decode): Rename to ...
9281 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
9282 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
9283 recpy_bt_insn_decode): This. Also, use new helper functions.
9284 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
9285 recpy_insn_type.
9286 (btpy_insn_getset): Remove.
9287 (gdbpy_initialize_btrace): Remove code to initialize
9288 gdb.BtraceInstruction. Use recpy_element_object.
9289 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
9290 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
9291 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
9292 * python/py-record.c (recpy_insn_type): New static object.
9293 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
9294 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
9295 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
9296 New function.
9297 (recpy_insn_getset): New static object.
9298 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
9299 * python/py-record.h (recpy_element_object): New typedef.
9300 (recpy_insn_type, recpy_insn_new): New export.
9301
913aeadd
TW
93022017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9303
9304 * py-record-btrace.c (btpy_insn_new): Removed.
9305 (btpy_insn_or_gap_new): New function.
9306 (btpy_insn_error): Removed.
9307 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9308 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
9309 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
9310 btpy_insn_or_gap_new instead of btpy_insn_new.
9311 (btpy_insn_getset): Remove btpy_insn_error.
9312 * py-record.c (recpy_gap_type): New static object.
9313 (recpy_gap_object): New typedef.
9314 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
9315 recpy_gap_reason_string): New function.
9316 (recpy_gap_getset): New static object.
9317 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
9318 * py-record.h (recpy_gap_new): New export.
9319
a3be24ad
TW
93202017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9321
9322 * python/py-record.c (recpy_ptid): Remove.
9323 (recpy_record_getset): Remove recpy_ptid.
9324
ae20e79a
TW
93252017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9326
9327 * btrace.c (btrace_fetch): Set inferior_ptid.
9328 * python/py-record-btrace.c: Add "py-record.h" include.
9329 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
9330 recpy_bt_end, recpy_bt_instruction_history,
9331 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
9332 in gdb.Record object instead of current ptid.
9333 * python/py-record.c: Include new "py-record.h" file.
9334 (recpy_record_object): Moved to py-record.h.
9335 * python/py-record.h: New file.
9336
8d0050ea
TW
93372017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9338
9339 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
9340 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
9341 indentation.
9342
3f380b50
JB
93432017-05-01 Joel Brobecker <brobecker@adacore.com>
9344
9345 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
9346 the past maintainers section.
9347
07495424
YQ
93482017-04-28 Yao Qi <yao.qi@linaro.org>
9349
9350 * infcmd.c (get_return_value): Use regcache ctor, and remove
9351 cleanup.
9352
deb1fa3e
YQ
93532017-04-28 Yao Qi <yao.qi@linaro.org>
9354 Pedro Alves <palves@redhat.com>
9355
9356 * regcache.c (regcache::regcache): New tag dispatch ctor.
9357 (do_cooked_read): Moved above.
9358 (regcache_dup): Use the tag dispatch ctor..
9359 * regcache.h (regcache): Declare ctor, delete copy ctor and
9360 assignment operator, remove friend regcache_dup.
9361
b421c83c
YQ
93622017-04-28 Yao Qi <yao.qi@linaro.org>
9363
9364 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
9365 call method save instead of regcache_cpy.
9366 * regcache.h (struct regcache): Make regcache_dup a friend.
9367
ef79d9a3
YQ
93682017-04-28 Yao Qi <yao.qi@linaro.org>
9369
9370 * regcache.c (struct regcache): Move to regcache.h
9371 (regcache::arch): New method.
9372 (regcache_get_ptid): Update.
9373 (get_regcache_arch): Call arch method.
9374 (get_regcache_aspace): Call method aspace.
9375 (register_buffer): Change it to method.
9376 (regcache_save): Change it to regcache::save.
9377 (regcache_restore): Likewise.
9378 (regcache_cpy_no_passthrough): Remove the declaration.
9379 (regcache_cpy): Call methods restore and cpy_no_passthrough.
9380 (regcache_cpy_no_passthrough): Change it to method
9381 cpy_no_passthrough.
9382 (regcache_register_status): Change it to method
9383 get_register_status.
9384 (regcache_invalidate): Change it to method invalidate.
9385 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
9386 (regcache_raw_update): Change it to method raw_update.
9387 (regcache_raw_read): Likewise.
9388 (regcache_raw_read_signed): Likewise.
9389 (regcache_raw_read_unsigned): Likewise.
9390 (regcache_raw_write_signed): Likewise.
9391 (regcache_raw_write_unsigned): Likewise.
9392 (regcache_cooked_read): Likewise.
9393 (regcache_cooked_read_value): Likewise.
9394 (regcache_cooked_read_signed): Likewise.
9395 (regcache_cooked_read_unsigned): Likewise.
9396 (regcache_cooked_write_signed): Likewise.
9397 (regcache_cooked_write_unsigned): Likewise.
9398 (regcache_raw_set_cached_value): Likewise.
9399 (regcache_raw_write): Likewise.
9400 (regcache_cooked_write): Likewise.
9401 (regcache_xfer_part): Likewise.
9402 (regcache_raw_read_part): Likewise.
9403 (regcache_raw_write_part): Likewise.
9404 (regcache_cooked_read_part): Likewise.
9405 (regcache_cooked_write_part): Likewise.
9406 (regcache_raw_supply): Likewise.
9407 (regcache_raw_collect): Likewise.
9408 (regcache_transfer_regset): Likewise.
9409 (regcache_supply_regset): Likewise.
9410 (regcache_collect_regset): Likewise.
9411 (regcache_debug_print_register): Likewise.
9412 (enum regcache_dump_what): Move it to regcache.h.
9413 (regcache_dump): Change it to method dump.
9414 * regcache.h (enum regcache_dump_what): New.
9415 (class regcache): New.
9416 * target.c (target_fetch_registers): Call method
9417 debug_print_register.
9418 (target_store_registers): Likewise.
9419
f8fdb78e
SM
94202017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9421
9422 * windows-nat.c (struct lm_info_windows): Initialize field.
9423 (windows_make_so): Allocate lm_info_windows with new.
9424 (windows_free_so): Free lm_info_windows with delete.
9425
9ccbfd7b
SM
94262017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9427
9428 * solib-darwin.c (struct lm_info_darwin): Initialize field.
9429 (darwin_current_sos): Allocate lm_info_darwin with new, remove
9430 cleanup.
9431 (darwin_free_so): Free lm_info_darwin with delete.
9432
76e75227
SM
94332017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9434
9435 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
9436 <l_addr_p>: Change type to bool.
9437 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
9438 (svr4_free_so): Free lm_info_svr4 with delete.
9439 (svr4_copy_library_list): Replace memcpy with call to copy
9440 constructor.
9441 (library_list_start_library, svr4_default_sos): Allocate
9442 lm_info_svr4 with new.
9443
51046d9e
SM
94442017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9445
9446 * solib-target.c (struct lm_info_target): Add destructor,
9447 initialize fields.
9448 <name>: Change type to std::string.
9449 (library_list_start_library): Allocate lm_info_target with new.
9450 (solib_target_free_library_list): Free lm_info_target with
9451 delete.
9452 (solib_target_current_sos): Adapt to std::string.
9453 (solib_target_free_so): Free lm_info_target with delete.
9454
4023ae76
SM
94552017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9456
9457 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
9458 fields.
9459 (frv_current_sos): Allocate lm_info_frv with new.
9460 (frv_relocate_main_executable): Free lm_info_frv with delete,
9461 allocate with new.
9462 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
9463
af43057b
SM
94642017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9465
9466 * solib-frv.c (struct lm_info_frv): Fix indentation.
9467
b0911207
SM
94682017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9469
9470 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
9471 map field.
9472 (dsbt_current_sos): Allocate lm_info_dsbt with new.
9473 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
9474 and allocate with new.
9475 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
9476
6c401f72
SM
94772017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9478
9479 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
9480 <filename, member_name>: Change type to std::string.
9481 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
9482 (library_list_start_library): Allocate lm_info_aix with new.
9483 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
9484 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
9485 with copy constructor.
9486
d0e449a1
SM
94872017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9488
9489 * solist.h (struct lm_info): Remove.
9490 (struct lm_info_base): New class.
9491 (struct so_list) <lm_info>: Change type to lm_info_base *.
9492 * nto-tdep.c (struct lm_info): Remove.
9493 (lm_addr): Adjust.
9494 * solib-aix.c (struct lm_info): Rename to ...
9495 (struct lm_info_aix): ... this. Extend lm_info_base.
9496 (lm_info_p): Rename to ...
9497 (lm_info_aix_p): ... this, and adjust.
9498 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
9499 solib_aix_parse_libraries, library_list_start_library,
9500 solib_aix_free_library_list, solib_aix_parse_libraries,
9501 solib_aix_get_library_list,
9502 solib_aix_relocate_section_addresses, solib_aix_free_so,
9503 solib_aix_get_section_offsets,
9504 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
9505 Adjust.
9506 (struct solib_aix_inferior_data) <library_list>: Adjust.
9507 * solib-darwin.c (struct lm_info): Rename to ...
9508 (struct lm_info_darwin): ... this. Extend lm_info_base.
9509 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
9510 * solib-dsbt.c (struct lm_info): Rename to ...
9511 (struct lm_info_dsbt): ... this. Extend lm_info_base.
9512 (struct dsbt_info) <main_executable_lm_info): Adjust.
9513 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
9514 dsbt_relocate_section_addresses): Adjust.
9515 * solib-frv.c (struct lm_info): Rename to ...
9516 (struct lm_info_frv): ... this. Extend lm_info_base.
9517 (main_executable_lm_info): Adjust.
9518 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
9519 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
9520 find_canonical_descriptor_in_load_object,
9521 frv_fdpic_find_canonical_descriptor): Adjust.
9522 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
9523 to lm_info_svr4.
9524 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
9525 svr4_clear_so, svr4_copy_library_list,
9526 library_list_start_library, svr4_default_sos, svr4_read_so_list,
9527 svr4_current_sos, svr4_fetch_objfile_link_map,
9528 solist_update_incremental): Adjust.
9529 * solib-svr4.h (struct lm_info_svr4): Move here from
9530 solib-svr4.c.
9531 * solib-target.c (struct lm_info): Rename to ...
9532 (struct lm_info_target): ... this. Extend lm_info_base.
9533 (lm_info_p): Rename to ...
9534 (lm_info_target_p): ... this.
9535 (solib_target_parse_libraries, library_list_start_segment,
9536 library_list_start_section, library_list_start_library,
9537 library_list_end_library, solib_target_free_library_list,
9538 solib_target_current_sos, solib_target_free_so,
9539 solib_target_relocate_section_addresses): Adjust.
9540 * windows-nat.c (struct lm_info): Rename to ...
9541 (struct lm_info_windows): ... this. Extend lm_info_base.
9542 (windows_make_so, handle_load_dll, handle_unload_dll,
9543 windows_xfer_shared_libraries): Adjust.
9544
434a4023
SM
95452017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9546
9547 * solib-darwin.c (struct darwin_so_list): Remove.
9548 (darwin_current_sos): Allocate an so_list object instead of a
9549 darwin_so_list, separately allocate an lm_info object.
9550 (darwin_free_so): Free lm_info.
9551
428544e8
JB
95522017-04-28 John Baldwin <jhb@FreeBSD.org>
9553
9554 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
9555 with fprintf_filtered.
9556
4621115f
YQ
95572017-04-28 Yao Qi <yao.qi@linaro.org>
9558
9559 * regcache.c (regcache::regcache): New function.
9560 (regcache::~regcache): New function.
9561 (regcache_xmalloc_1): Remove.
9562 (regcache_xmalloc): Call new regcache.
9563 (regcache_xfree): Call delete regcache.
9564 (get_thread_arch_aspace_regcache): Call new regcache.
9565
339053c2
YQ
95662017-04-28 Yao Qi <yao.qi@linaro.org>
9567
9568 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
9569 lwp instead of ptid_get_lwp.
9570
7974a605
YQ
95712017-04-28 Yao Qi <yao.qi@linaro.org>
9572
9573 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
9574 lwp_info instead of getting from inferior_ptid.
9575
e15c3eb4
KS
95762017-04-27 Keith Seitz <keiths@redhat.com>
9577
9578 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
9579 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
9580 (CV_CONVERSION_BADNESS): Define.
9581 (rank_one_type): Remove overly restrictive rvalue reference
9582 rank checks.
9583 Add cv-qualifier checks and subranks for type equality.
9584 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
9585 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
9586 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
9587
72bc1d24
SM
95882017-04-27 Simon Marchi <simon.marchi@ericsson.com>
9589
9590 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
9591 count when creating the object.
9592
55bcecda
UW
95932017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
9594 Ulrich Weigand <uweigand@de.ibm.com>
9595
9596 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
9597 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
9598 is used in AIX.
9599 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
9600 (process_xcoff_symbol): Likewise.
9601 (scan_xcoff_symtab): Likewise.
9602
5c99fcf8
AH
96032017-04-26 Alan Hayward <alan.hayward@arm.com>
9604
9605 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
9606 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
9607 (ia64_access_reg): Use get_frame_register_unsigned.
9608 (ia64_access_rse_reg): Likewise.
9609 (ia64_libunwind_frame_prev_register): Likewise.
9610
b41c5a85
JW
96112017-04-26 Jiong Wang <jiong.wang@arm.com>
9612
9613 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
9614 * gdbarch.c: Regenerated.
9615 * gdbarch.h: Regenerated.
9616 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
9617 visibility external.
9618 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
9619 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
9620 (enum cfa_how_kind): Move to ...
9621 (struct dwarf2_frame_state_reg_info): Likewise.
9622 (struct dwarf2_frame_state): Likewise.
9623 * dwarf2-frame.h: ... here.
9624 (dwarf2_frame_state_alloc_regs): New declaration.
9625 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
9626 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
9627
c185f580
AH
96282017-04-26 Alan Hayward <alan.hayward@arm.com>
9629
9630 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
9631 regcache_raw_read_unsigned.
9632 (xtensa_pseudo_register_write): Likewise.
9633
19c45594
AH
96342017-04-26 Alan Hayward <alan.hayward@arm.com>
9635
9636 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
9637 (nds32_pseudo_register_write): Likewise.
9638
4658f12e
YQ
96392017-04-25 Yao Qi <yao.qi@linaro.org>
9640
9641 * regcache.c (struct regcache) <readonly_p>: Change its type
9642 to bool.
9643 (regcache_xmalloc_1): Update parameter type and callers update.
9644
d581dda8
YQ
96452017-04-25 Yao Qi <yao.qi@linaro.org>
9646
9647 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9648 set_gdbarch_wchar_bit.
9649 * arm-tdep.c (arm_gdbarch_init): Likewise.
9650
debed3db
PA
96512017-04-25 Pedro Alves <palves@redhat.com>
9652
9653 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
9654 (BothAreRelocatable, memcopy, memmove): Don't define.
9655 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
9656 macros.
9657
b0b92aeb
PA
96582017-04-25 Pedro Alves <palves@redhat.com>
9659
9660 * common/common-defs.h: Include "common/poison.h".
9661 * common/function-view.h: (Not, Or, Requires): Move to traits.h
9662 and adjust.
9663 * common/poison.h: New file.
9664 * common/traits.h: Include <type_traits>.
9665 (Not, Or, Requires): New, moved from common/function-view.h.
9666
16c4d54a
PA
96672017-04-25 Pedro Alves <palves@redhat.com>
9668
9669 * breakpoint.h (struct breakpoint): In-class initialize all
9670 fields. Make boolean fields "bool".
9671 * breakpoint.c (init_raw_breakpoint_without_location): Remove
9672 memset call and initializations no longer necessary.
9673
b5c36682
PA
96742017-04-25 Pedro Alves <palves@redhat.com>
9675
9676 * btrace.c (pt_btrace_insn_flags): Change parameter type to
9677 reference.
9678 (pt_btrace_insn): New function.
9679 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
9680
5625a286
PA
96812017-04-25 Pedro Alves <palves@redhat.com>
9682
9683 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
9684 "base" field and inherit from "bp_location" instead. Add
9685 non-default ctor.
9686 (allocate_location_exception): Use new non-default ctor.
9687 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
9688 (init_bp_location): Convert to ...
9689 (bp_location::bp_location): ... this new ctor, and remove memset
9690 call.
9691 (base_breakpoint_allocate_location): Use the new non-default ctor.
9692 * breakpoint.h (bp_location): Now a class. Declare default and
9693 non-default ctors. In-class initialize all members.
9694 (init_bp_location): Remove declaration.
9695
23bcc18f
PA
96962017-04-25 Pedro Alves <palves@redhat.com>
9697
9698 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
9699 assignment operator.
9700
e1ba3053
YQ
97012017-04-24 Yao Qi <yao.qi@linaro.org>
9702
9703 * doublest.c (convert_doublest_to_floatformat): Call
9704 floatformat_totalsize_bytes.
9705
10f489e5
TT
97062017-04-22 Tom Tromey <tom@tromey.com>
9707
9708 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
9709 ui_out_emit_list.
9710 * stack.c (print_frame): Use ui_out_emit_list.
9711 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
9712 ui_out_emit_list.
9713 * mi/mi-main.c (print_one_inferior)
9714 (mi_cmd_data_list_register_names)
9715 (mi_cmd_data_list_register_values, mi_cmd_list_features)
9716 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
9717 ui_out_emit_list.
9718 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
9719 (mi_output_solib_attribs): Use ui_out_emit_list,
9720 ui_out_emit_tuple.
9721 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
9722 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9723 (mi_cmd_stack_list_args, list_args_or_locals): Use
9724 ui_out_emit_list.
9725 * disasm.c (do_assembly_only): Use ui_out_emit_list.
9726 * breakpoint.c (print_solib_event, output_thread_groups): Use
9727 ui_out_emit_list.
9728
0092b74d
TT
97292017-04-22 Tom Tromey <tom@tromey.com>
9730
9731 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
9732 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
9733 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
9734
a14a62dd
TT
97352017-04-22 Tom Tromey <tom@tromey.com>
9736
9737 * tracepoint.c (tvariables_info_1)
9738 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
9739
46b9c129
TT
97402017-04-22 Tom Tromey <tom@tromey.com>
9741
9742 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
9743 annotate_arg_emitter.
9744 * breakpoint.c (print_mention_watchpoint)
9745 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
9746 * annotate.h (struct annotate_arg_emitter): New.
9747
2e783024
TT
97482017-04-22 Tom Tromey <tom@tromey.com>
9749
9750 * record-btrace.c (record_btrace_insn_history)
9751 (record_btrace_insn_history_range, record_btrace_call_history)
9752 (record_btrace_call_history_range): Use ui_out_emit_tuple.
9753 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
9754 ui_out_emit_tuple.
9755 * stack.c (print_frame_info): Use ui_out_emit_tuple.
9756 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
9757 * skip.c (skip_info): Use ui_out_emit_tuple.
9758 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
9759 * progspace.c (print_program_space): Use ui_out_emit_tuple.
9760 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
9761 * osdata.c (info_osdata): Use ui_out_emit_tuple.
9762 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
9763 ui_out_emit_tuple.
9764 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
9765 (output_register, mi_cmd_data_read_memory)
9766 (mi_cmd_data_read_memory_bytes, mi_load_progress)
9767 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
9768 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
9769 Use ui_out_emit_tuple.
9770 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
9771 ui_out_emit_tuple.
9772 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
9773 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
9774 * linux-thread-db.c (info_auto_load_libthread_db): Use
9775 ui_out_emit_tuple.
9776 * inferior.c (print_inferior): Use ui_out_emit_tuple.
9777 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
9778 * disasm.c (do_mixed_source_and_assembly_deprecated)
9779 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
9780 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
9781 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
9782 * breakpoint.c (print_one_breakpoint_location)
9783 (print_one_breakpoint): Use ui_out_emit_tuple.
9784 * auto-load.c (print_script, info_auto_load_cmd): Use
9785 ui_out_emit_tuple.
9786 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
9787
9be21bb4
SM
97882017-04-21 Simon Marchi <simon.marchi@ericsson.com>
9789
9790 * thread.c (print_thread_info_1): Remove dead code.
9791
0d4c07af
JK
97922017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9793
9794 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
9795 GDB_SELF_TEST.
9796 * arm-tdep.c (selftests::arm_record_test): Likewise.
9797
4daf993d
YQ
97982017-04-21 Yao Qi <yao.qi@linaro.org>
9799
9800 * regcache.c (regcache_restore): Remove argument 2. Replace
9801 argument 3 with regcache. Get register status from
9802 src->register_status and get register contents from
9803 register_buffer (src, regnum).
9804 (regcache_cpy): Update.
9805
a6c21d4a
PA
98062017-04-19 Pedro Alves <palves@redhat.com>
9807
9808 * gdbthread.h (thread): Add missing closing parenthesis in
9809 comment.
9810
3a3fd0fd
PA
98112017-04-19 Pedro Alves <palves@redhat.com>
9812
9813 * common/refcounted-object.h: New file.
9814 * gdbthread.h: Include "common/refcounted-object.h".
9815 (thread_info): Inherit from refcounted_object and add comments.
9816 (thread_info::incref, thread_info::decref)
9817 (thread_info::m_refcount): Delete.
9818 (thread_info::deletable): Use the refcounted_object::refcount()
9819 method.
9820 * inferior.c (current_inferior_): Add comment.
9821 (set_current_inferior): Increment/decrement refcounts.
9822 (prune_inferiors, remove_inferior_command): Skip inferiors marked
9823 not-deletable instead of comparing with the current inferior.
9824 (initialize_inferiors): Increment the initial inferior's refcount.
9825 * inferior.h (struct inferior): Forward declare.
9826 Include "common/refcounted-object.h".
9827 (current_inferior, set_current_inferior): Move declaration to
9828 before struct inferior's definition, and fix comment.
9829 (inferior): Inherit from refcounted_object. Add comments.
9830 * thread.c (switch_to_thread_no_regs): Reference the thread's
9831 inferior pointer directly instead of doing a ptid lookup.
9832 (switch_to_no_thread): New function.
9833 (switch_to_thread(thread_info *)): New function, factored out
9834 from ...
9835 (switch_to_thread(ptid_t)): ... this.
9836 (restore_current_thread): Delete.
9837 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
9838 fields, and add 'inf' field.
9839 (do_restore_current_thread_cleanup): Check whether old->inf is
9840 alive instead of looking up an inferior by ptid. Use
9841 switch_to_thread and switch_to_no_thread.
9842 (restore_current_thread_cleanup_dtor): Use old->inf directly
9843 instead of lookup up an inferior by id. Decref the inferior.
9844 Don't restore 'removable'.
9845 (make_cleanup_restore_current_thread): Same the inferior pointer
9846 in old, instead of the inferior number. Incref the inferior.
9847 Don't save/clear 'removable'.
9848
9bcb1f16
PA
98492017-04-19 Pedro Alves <palves@redhat.com>
9850
9851 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9852 unittests/scoped_restore-selftests.c.
9853 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
9854 * common/scoped_restore.h (scoped_restore_base): Make "class".
9855 (scoped_restore_base::release): New public method.
9856 (scoped_restore_base::scoped_restore_base): New protected ctor.
9857 (scoped_restore_base::m_saved_var): New protected field.
9858 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
9859 scoped_restore_base base class instead of m_saved_var directly.
9860 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
9861 (scoped_restore_tmpl::scoped_restore_tmpl(const
9862 scoped_restore_tmpl<T>&)): Likewise.
9863 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
9864 method.
9865 (scoped_restore_tmpl::saved_var): New method.
9866 (scoped_restore_tmpl::m_saved_var): Delete.
9867 * inferior.h (inferior::detaching): Now a bool.
9868 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
9869 cleanup.
9870 * unittests/scoped_restore-selftests.c: New file.
9871
26fcd539
PA
98722017-04-19 Pedro Alves <palves@redhat.com>
9873
9874 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
9875 Re-sort in alphabetic order.
9876
fdd243b0
PA
98772017-04-18 Pedro Alves <palves@redhat.com>
9878
9879 * xml-support.c (obstack_xml_printf): Delete.
9880 * xml-support.h (obstack_xml_printf): Delete.
9881
4895cde2
PA
98822017-04-18 Pedro Alves <palves@redhat.com>
9883
9884 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
9885 vdebug, verror, body_text, start_element, end_element, name,
9886 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
9887 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
9888 is_xinclude>: Make private and add m_ prefix.
9889 (gdb_xml_parser::body_text): New method, based on ...
9890 (gdb_xml_body_text): ... this. Adjust.
9891 (gdb_xml_parser::vdebug): New method, based on ...
9892 (gdb_xml_debug): ... this. Adjust.
9893 (gdb_xml_parser::verror): New method, based on ...
9894 (gdb_xml_error): ... this. Adjust.
9895 (gdb_xml_parser::start_element): New method, based on ...
9896 (gdb_xml_start_element): ... this. Adjust.
9897 (gdb_xml_start_element_wrapper): Defer to
9898 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
9899 (gdb_xml_parser::end_element): New method, based on ...
9900 (gdb_xml_end_element_wrapper): ... this. Adjust.
9901 (gdb_xml_parser::~gdb_xml_parser): Adjust.
9902 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
9903 (gdb_xml_parser::use_dtd): New method, based on ...
9904 (gdb_xml_use_dtd): ... this. Adjust.
9905 (gdb_xml_parser::parse): New method, based on ...
9906 (gdb_xml_parse): ... this. Adjust.
9907 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
9908 (xinclude_start_include): Adjust to call the parser's name method.
9909 (xml_xinclude_default, xml_xinclude_start_doctype)
9910 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
9911 method.
9912 (xml_process_xincludes): Adjust to call parser methods.
9913 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
9914 declarations.
9915
bd8a901f
PA
99162017-04-18 Pedro Alves <palves@redhat.com>
9917
9918 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
9919 gdb::optional<std::string>.
9920 * xml-support.c: Include <string>.
9921 (scope_level::scope_level(scope_level &&))
9922 (scope_level::~scope_level): Delete.
9923 (scope_level::body): Now a std::string.
9924 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
9925 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
9926 parameter.
9927 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
9928 (xinclude_parsing_data::output): Now a std::string reference.
9929 (xinclude_start_include): Adjust.
9930 (xml_xinclude_default): Adjust.
9931 (xml_process_xincludes): Add 'output' parameter, and return bool.
9932 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
9933 and return bool.
9934 * xml-tdesc.c: Include <unordered_map> and <string>.
9935 (tdesc_xml_cache): Delete.
9936 (tdesc_xml_cache_s): Delete.
9937 (xml_cache): Now an std::unordered_map.
9938 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
9939 (target_fetch_description_xml): Change return type to
9940 gdb::optional<std::string>, and adjust.
9941 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
9942 (target_fetch_description_xml): Change return type to
9943 gdb::optional<std::string>.
9944
d35d1958
PA
99452017-04-18 Pedro Alves <palves@redhat.com>
9946
9947 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9948 unittests/optional-selftests.c.
9949 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
9950 * unittests/optional-selftests.c: New file.
9951 * unittests/optional/assignment/1.cc: New file.
9952 * unittests/optional/assignment/2.cc: New file.
9953 * unittests/optional/assignment/3.cc: New file.
9954 * unittests/optional/assignment/4.cc: New file.
9955 * unittests/optional/assignment/5.cc: New file.
9956 * unittests/optional/assignment/6.cc: New file.
9957 * unittests/optional/assignment/7.cc: New file.
9958 * unittests/optional/cons/copy.cc: New file.
9959 * unittests/optional/cons/default.cc: New file.
9960 * unittests/optional/cons/move.cc: New file.
9961 * unittests/optional/cons/value.cc: New file.
9962 * unittests/optional/in_place.cc: New file.
9963 * unittests/optional/observers/1.cc: New file.
9964 * unittests/optional/observers/2.cc: New file.
9965
22796e97
PA
99662017-04-18 Pedro Alves <palves@redhat.com>
9967
9968 * common/gdb_optional.h: Include common/traits.h.
9969 (in_place_t): New type.
9970 (in_place): New constexpr variable.
9971 (optional::optional): Remove member initialization of
9972 m_instantiated.
9973 (optional::optional(in_place_t...)): New constructor.
9974 (optional::~optional): Use reset.
9975 (optional::optional(const optional&)): New.
9976 (optional::optional(const optional&&)): New.
9977 (optional::optional(T &)): New.
9978 (optional::optional(T &&)): New.
9979 (operator::operator=(const optional &)): New.
9980 (operator::operator=(optional &&)): New.
9981 (operator::operator= (const T &))
9982 (operator::operator= (T &&))
9983 (operator::emplace (Args &&... args)): Return a T&. Use reset.
9984 (operator::reset): New.
9985 (operator::m_instantiated):: Add in-class initializer.
9986 * common/traits.h: Include <type_traits>.
9987 (struct And): New types.
9988
a7fc9b61
PA
99892017-04-18 Pedro Alves <palves@redhat.com>
9990
9991 * xml-support.c: Include <vector>.
9992 (scope_level::scope_level(const gdb_xml_element *))
9993 (scope_level::scope_level(scope_level&&)): New.
9994 (scope_level::~scope_level): New.
9995 (scope_level_s): Delete.
9996 (gdb_xml_parser::scopes): Now a std::vector.
9997 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
9998 Use std::vector.
9999 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
10000 scope cleanup code.
10001 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
10002 of the scopes member. Use std::vector::emplace_back.
10003
010151c9
PA
100042017-04-18 Pedro Alves <palves@redhat.com>
10005
10006 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
10007 a bool.
10008 (gdb_xml_end_element): Change type of first parameter.
10009 (gdb_xml_cleanup): Rename to ...
10010 (gdb_xml_parser::~gdb_xml_parser): ... this.
10011 (gdb_xml_create_parser_and_cleanup): Delete with ...
10012 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
10013 to this new ctor.
10014 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
10015 using gdb_xml_create_parser_and_cleanup.
10016 (xinclude_parsing_data): Add ctor/dtor.
10017 (xml_xinclude_cleanup): Delete.
10018 (xml_process_xincludes): Create a local xinclude_parsing_data
10019 instead of heap-allocating one. Create a local gdb_xml_parser
10020 instead of heap-allocating one with
10021 gdb_xml_create_parser_and_cleanup.
10022
d56060f0
JB
100232017-04-18 John Baldwin <jhb@FreeBSD.org>
10024
10025 PR threads/20743
10026 * fbsd-nat.c (resume_one_thread_cb): Remove.
10027 (resume_all_threads_cb): Remove.
10028 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
10029 iterate_over_threads.
10030
305d16a9
JB
100312017-04-17 Joel Brobecker <brobecker@adacore.com>
10032
10033 * NEWS: Create a new section for the next release branch.
10034 Rename the section of the current branch, now that it has
10035 been cut.
10036
8bb57231
JB
100372017-04-17 Joel Brobecker <brobecker@adacore.com>
10038
10039 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
10040 * version.in: Bump version to 8.0.50.DATE-git.
10041
096c92dd
SDJ
100422017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
10043
10044 PR gdb/21385
10045 * windows-nat.c (windows_create_inferior): Declare 'allargs'
10046 independently of the host, and fix build breakage on Cygwin.
10047
0550c955
PA
100482017-04-13 Pedro Alves <palves@redhat.com>
10049
10050 * inferior.c (free_inferior): Convert to ...
10051 (inferior::~inferior): ... this dtor.
10052 (inferior::inferior): New ctor, factored out from ...
10053 (add_inferior_silent): ... here. Allocate the inferior with a new
10054 expression.
10055 (delete_inferior): Call delete instead of free_inferior.
10056 * inferior.h (gdb_environ, continuation): Forward declare.
10057 (inferior): Now a class. Add in-class initialization to all
10058 members. Make boolean fields bool, except 'detaching'.
10059 (inferior::inferior): New explicit ctor.
10060 (inferior::~inferior): New.
10061
e3d60dfc
PA
100622017-04-13 Pedro Alves <palves@redhat.com>
10063
10064 * inferior.c (init_inferior_list): Delete.
10065 * inferior.h (init_inferior_list): Delete.
10066
5fd69d0a
PA
100672017-04-13 Pedro Alves <palves@redhat.com>
10068
10069 PR threads/13217
10070 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
10071 (top level): Call it twice, with different thread sets.
10072
c6609450
PA
100732017-04-13 Pedro Alves <palves@redhat.com>
10074
10075 * thread.c: Include <algorithm>.
10076 (thread_array_cleanup): Delete.
10077 (scoped_inc_dec_ref): New class.
10078 (live_threads_count): New function.
10079 (set_thread_refcount): Delete.
10080 (tp_array_compar_ascending): Now a bool.
10081 (tp_array_compar): Convert to a std::sort comparison function.
10082 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
10083 and live_threads_count.
10084
2a00d7ce
PA
100852017-04-13 Pedro Alves <palves@redhat.com>
10086
10087 * infrun.c (follow_fork_inferior): Also switch the current
10088 inferior.
10089
441d7c93
PA
100902017-04-13 Pedro Alves <palves@redhat.com>
10091
10092 * breakpoint.c (watch_command_1): Save watchpoint-frame info
10093 before calling create_internal_breakpoint.
10094
808480f6
PA
100952017-04-13 Pedro Alves <palves@redhat.com>
10096
10097 * fork-child.c (execv_argv): New class.
10098 (breakup_args): Refactored as ...
10099 (execv_argv::init_for_no_shell): .. this method of execv_argv.
10100 Copy arguments to storage and replace separators with NULL
10101 terminators in place.
10102 (escape_bang_in_quoted_argument): Adjust to return bool.
10103 (execv_argv::execv_argv): New ctor.
10104 (execv_argv::init_for_shell): New method, factored out from
10105 fork_inferior. Don't strdup strings into the vector.
10106 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
10107 Remove free_vector_argv call.
10108
ad3d022a
YQ
101092017-04-13 Yao Qi <yao.qi@linaro.org>
10110
10111 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
10112 tdep->rx_psw_type.
10113
e6ddc3bf
YQ
101142017-04-13 Yao Qi <yao.qi@linaro.org>
10115
10116 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
10117 * rx-tdep.c (rx_gdbarch_init): Likewise.
10118
bfb8cf90
PA
101192017-04-13 Pedro Alves <palves@redhat.com>
10120
10121 * breakpoint.h (struct breakpoint): Reindent.
10122
f5336ca5
PA
101232017-04-13 Pedro Alves <palves@redhat.com>
10124
10125 * breakpoint.c (bp_location): Rename to ...
10126 (bp_locations): ... this. All references updated.
10127 (bp_location_count): Rename to ...
10128 (bp_locations_count): ... this. All references updated.
10129 (bp_location_placed_address_before_address_max): Rename to ...
10130 (bp_locations_placed_address_before_address_max): ... this. All
10131 references updated.
10132 (bp_location_shadow_len_after_address_max): Rename to ...
10133 (bp_locations_shadow_len_after_address_max): ... this. All
10134 references updated.
10135 (bp_location_compare_addrs): Rename to ...
10136 (bp_locations_compare_addrs): ... this. All references updated.
10137 (bp_location_compare):Rename to ...
10138 (bp_locations_compare): ... this. All references updated.
10139 (bp_location_target_extensions_update): Rename to ...
10140 (bp_locations_target_extensions_update): ... this. All references
10141 updated.
10142
be628ab8
SDJ
101432017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10144
10145 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
10146 * common/common.m4: Check headers 'termios.h', 'termio.h' and
10147 'sgtty.h'.
10148 * common/gdb_termios.h: New file, with parts of "terminal.h".
10149 * inflow.c: Include "gdb_termios.h".
10150 * ser-unix.c: Include "gdb_termios.h".
10151 * terminal.h: Move terminal-related defines to
10152 "common/gdb_termios.h".
10153
8e9e35b1
TT
101542017-04-12 Tom Tromey <tom@tromey.com>
10155
10156 * probe.c (parse_probes): Update.
10157 * location.h (delete_event_location): Don't declare.
10158 (event_location_deleter::operator()): Update.
10159 * location.c (event_location_deleter::operator()): Rename from
10160 delete_event_location.
10161 * linespec.h (linespec_result) <location>: Change type to
10162 event_location_up.
10163 * linespec.c (canonicalize_linespec, event_location_to_sals)
10164 (decode_objc): Update.
10165 (linespec_result): Don't call delete_event_location.
10166 * breakpoint.c (create_breakpoints_sal)
10167 (bkpt_probe_create_sals_from_location)
10168 (strace_marker_create_sals_from_location): Update.
10169
16e802b9
TT
101702017-04-12 Tom Tromey <tom@tromey.com>
10171
10172 * linespec.h (struct linespec_result): Add constructor and
10173 destructor.
10174 (init_linespec_result, destroy_linespec_result)
10175 (make_cleanup_destroy_linespec_result): Don't declare.
10176 * linespec.c (init_linespec_result): Remove.
10177 (linespec_result::~linespec_result): Rename from
10178 destroy_linespec_result. Update.
10179 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
10180 Remove.
10181 * breakpoint.c (create_breakpoint, break_range_command)
10182 (decode_location_default): Update.
10183 * ax-gdb.c (agent_command_1): Update.
10184
d28cd78a
TT
101852017-04-12 Tom Tromey <tom@tromey.com>
10186
10187 * remote.c (remote_download_tracepoint): Update.
10188 * python/py-breakpoint.c (bppy_get_location): Update.
10189 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
10190 (gdbscm_breakpoint_location): Update.
10191 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
10192 * breakpoint.h (struct breakpoint) <location, location_range_end>:
10193 Change type to event_location_up.
10194 * breakpoint.c (create_overlay_event_breakpoint)
10195 (create_longjmp_master_breakpoint)
10196 (create_std_terminate_master_breakpoint)
10197 (create_exception_master_breakpoint)
10198 (breakpoint_event_location_empty_p, print_breakpoint_location)
10199 (print_one_breakpoint_location, create_thread_event_breakpoint)
10200 (init_breakpoint_sal, create_breakpoint)
10201 (print_recreate_ranged_breakpoint, break_range_command)
10202 (init_ada_exception_breakpoint, say_where): Update.
10203 (base_breakpoint_dtor): Don't call delete_event_location.
10204 (bkpt_print_recreate, tracepoint_print_recreate)
10205 (dprintf_print_recreate, update_static_tracepoint)
10206 (breakpoint_re_set_default): Update.
10207
711799d5
TT
102082017-04-12 Tom Tromey <tom@tromey.com>
10209
10210 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
10211 type of "to_do". Update.
10212 (compute_stack_depth): Use std::vector.
10213
52d214d3
TT
102142017-04-12 Tom Tromey <tom@tromey.com>
10215
10216 * printcmd.c (find_instruction_backward): Use std::vector.
10217
4c404b8b
TT
102182017-04-12 Tom Tromey <tom@tromey.com>
10219
10220 * symfile.c (objfilep): Remove typedef.
10221 (reread_symbols): Use a std::vector.
10222
156d9eab
TT
102232017-04-12 Tom Tromey <tom@tromey.com>
10224
10225 * mi/mi-main.c (exec_direction_forward): Remove.
10226 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
10227 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
10228 scoped_restore.
10229 * guile/guile.c (guile_repl_command, guile_command)
10230 (gdbscm_execute_gdb_command): Use scoped_restore.
10231 * go-exp.y (go_parse): Use scoped_restore.
10232 * d-exp.y (d_parse): Use scoped_restore.
10233 * cli/cli-decode.c (cmd_func): Use scoped_restore.
10234 * c-exp.y (c_parse): Use scoped_restore.
10235
4d89769a
TT
102362017-04-12 Tom Tromey <tom@tromey.com>
10237
10238 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
10239 (mi_parse): Update return type.
10240 (mi_parse_free): Remove.
10241 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
10242 (mi_parse::~mi_parse): Rename from mi_parse_free.
10243 (mi_parse_cleanup): Remove.
10244 (mi_parse): Return a unique_ptr. Use new.
10245 * mi/mi-main.c (mi_execute_command): Update.
10246
4b217cc7
TT
102472017-04-12 Tom Tromey <tom@tromey.com>
10248
10249 * location.c (explicit_location_lex_one): Return a
10250 unique_xmalloc_ptr.
10251 (string_to_explicit_location): Update. Remove cleanups.
10252
59d3651b
TT
102532017-04-12 Tom Tromey <tom@tromey.com>
10254
10255 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
10256 (compare_value_and_voffset): Change type. Update.
10257 (compute_vtable_size): Change type of "offset_vec".
10258 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
10259 (gnuv3_get_typeid): Remove extraneous declaration.
10260
b24b0d6c
TT
102612017-04-12 Tom Tromey <tom@tromey.com>
10262
10263 * charset.h (wchar_iterator): Fix comment.
10264
80a3b8c5
TT
102652017-04-12 Tom Tromey <tom@tromey.com>
10266
10267 * charset.c (iconv_wrapper): New class.
10268 (cleanup_iconv): Remove.
10269 (convert_between_encodings): Use it.
10270
c83dd867
TT
102712017-04-12 Tom Tromey <tom@tromey.com>
10272
10273 * symfile.h (increment_reading_symtab): Update type.
10274 * symfile.c (decrement_reading_symtab): Remove.
10275 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
10276 * psymtab.c (psymtab_to_symtab): Update.
10277 * dwarf2read.c (dw2_instantiate_symtab): Update.
10278
0e8621a0
TT
102792017-04-12 Tom Tromey <tom@tromey.com>
10280
10281 * jit.c (struct jit_reader): Declare separately. Add constructor
10282 and destructor. Change type of "handle".
10283 (loaded_jit_reader): Define separately.
10284 (jit_reader_load): Update. New "new".
10285 (jit_reader_unload_command): Use "delete".
10286 * gdb-dlfcn.h (struct dlclose_deleter): New.
10287 (gdb_dlhandle_up): New typedef.
10288 (gdb_dlopen, gdb_dlsym): Update types.
10289 (gdb_dlclose): Remove.
10290 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
10291 (gdb_dlsym): Change type of "handle".
10292 (make_cleanup_dlclose): Remove.
10293 (dlclose_deleter::operator()): Rename from gdb_dlclose.
10294 * compile/compile-c-support.c (load_libcc): Update.
10295
67d89901
TT
102962017-04-12 Tom Tromey <tom@tromey.com>
10297
10298 * symtab.h (find_pcs_for_symtab_line): Change return type.
10299 * symtab.c (find_pcs_for_symtab_line): Change return type.
10300 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
10301 type of "vec". Update.
10302 (ltpy_get_pcs_for_line): Update.
10303 * linespec.c (decode_digits_ordinary): Update.
10304
93921405
TT
103052017-04-12 Tom Tromey <tom@tromey.com>
10306
10307 * tracepoint.c (actions_command): Update.
10308 * python/python.c (python_command, python_interactive_command):
10309 Update.
10310 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
10311 * guile/guile.c (guile_command): Update.
10312 * defs.h (read_command_lines, read_command_lines_1): Return
10313 command_line_up.
10314 (command_lines_deleter): New struct.
10315 (command_line_up): New typedef.
10316 * compile/compile.c (compile_code_command)
10317 (compile_print_command): Update.
10318 * cli/cli-script.h (get_command_line, copy_command_lines): Return
10319 command_line_up.
10320 (make_cleanup_free_command_lines): Remove.
10321 * cli/cli-script.c (get_command_line, read_command_lines_1)
10322 (copy_command_lines): Return command_line_up.
10323 (while_command, if_command, read_command_lines, define_command)
10324 (document_command): Update.
10325 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
10326 Remove.
10327 * breakpoint.h (breakpoint_set_commands): Change type of
10328 "commands".
10329 * breakpoint.c (breakpoint_set_commands): Change type of
10330 "commands". Update.
10331 (do_map_commands_command, update_dprintf_command_list)
10332 (create_tracepoint_from_upload): Update.
10333
ffc2605c
TT
103342017-04-12 Tom Tromey <tom@tromey.com>
10335
10336 * tracepoint.c (scope_info): Update.
10337 * spu-tdep.c (spu_catch_start): Update.
10338 * python/python.c (gdbpy_decode_line): Update.
10339 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
10340 * python/py-breakpoint.c (bppy_init): Update.
10341 * probe.c (parse_probes): Update.
10342 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
10343 * location.h (event_location_deleter): New struct.
10344 (event_location_up): New typedef.
10345 (new_linespec_location, new_address_location, new_probe_location)
10346 (new_explicit_location, copy_event_location)
10347 (string_to_event_location, string_to_event_location_basic)
10348 (string_to_explicit_location): Update return type.
10349 (make_cleanup_delete_event_location): Remove.
10350 * location.c (new_linespec_location, new_address_location)
10351 (new_probe_location, new_explicit_location, copy_event_location):
10352 Return event_location_up.
10353 (delete_event_location_cleanup)
10354 (make_cleanup_delete_event_location): Remove.
10355 (string_to_explicit_location, string_to_event_location_basic)
10356 (string_to_event_location): Return event_location_up.
10357 * linespec.c (canonicalize_linespec, event_location_to_sals)
10358 (decode_line_with_current_source)
10359 (decode_line_with_last_displayed, decode_objc): Update.
10360 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10361 * completer.c (location_completer): Update.
10362 * cli/cli-cmds.c (edit_command, list_command): Update.
10363 * breakpoint.c (create_overlay_event_breakpoint)
10364 (create_longjmp_master_breakpoint)
10365 (create_std_terminate_master_breakpoint)
10366 (create_exception_master_breakpoint)
10367 (create_thread_event_breakpoint): Update.
10368 (init_breakpoint_sal): Update. Remove some dead code.
10369 (create_breakpoint_sal): Change type of "location". Update.
10370 (create_breakpoints_sal, create_breakpoint, break_command_1)
10371 (dprintf_command, break_range_command, until_break_command)
10372 (init_ada_exception_breakpoint)
10373 (strace_marker_create_sals_from_location)
10374 (update_static_tracepoint, trace_command, ftrace_command)
10375 (strace_command, create_tracepoint_from_upload): Update.
10376 * break-catch-throw.c (re_set_exception_catchpoint): Update.
10377 * ax-gdb.c (agent_command_1): Update.
10378
8f10c932
PA
103792017-04-12 Pedro Alves <palves@redhat.com>
10380
10381 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
10382 * configure.tgt: Handle i[34567]86-*-go32* and
10383 i[34567]86-*-msdosdjgpp*.
10384 * i386-tdep.c (i386_svr4_reg_to_regnum):
10385 Make extern.
10386 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
10387 i386-go32-tdep.c.
10388 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
10389 * i386-go32-tdep.c: New file.
10390 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
10391 declarations.
10392
0a31ccfb
SM
103932017-04-12 Simon Marchi <simon.marchi@ericsson.com>
10394
10395 * aix-thread.c (pd_status2str): Change return type to const char *.
10396
e9bb3fbb
PA
103972017-04-12 Pedro Alves <palves@redhat.com>
10398
10399 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
10400 calls to set_gdbarch_gnu_triplet_regexp.
10401
53375380
PA
104022017-04-12 Pedro Alves <palves@redhat.com>
10403
10404 PR gdb/21323
10405 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
10406 New enum value.
10407 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
10408 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
10409 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
10410 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
10411 * gdbarch.h, gdbarch.c: Regenerate.
10412 * aarch64-tdep.c (aarch64_gdbarch_init): Override
10413 gdbarch_wchar_bit and gdbarch_wchar_signed.
10414 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
10415 * arm-tdep.c (arm_gdbarch_init): Likewise.
10416 * avr-tdep.c (avr_gdbarch_init): Likewise.
10417 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10418 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
10419 * i386-tdep.c (i386_go32_init_abi): Likewise.
10420 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10421 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10422 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
10423 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
10424 * sh-tdep.c (sh_gdbarch_init): Likewise.
10425 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10426 * sparc64-tdep.c (sparc64_init_abi): Likewise.
10427 * windows-tdep.c (windows_init_abi): Likewise.
10428 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10429
53e710ac
PA
104302017-04-12 Pedro Alves <palves@redhat.com>
10431
10432 PR c++/21323
10433 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
10434 cplus_primitive_type_char32_t>: New enum values.
10435 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
10436 and cplus_primitive_type_char32_t.
10437 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
10438 32, use the archtecture's built-in type for char16_t and char32_t,
10439 respectively. Otherwise, fallback to init_integer_type as before,
10440 but make the type unsigned, and issue a complaint.
10441 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
10442
ab0538b8
AH
104432017-04-12 Alan Hayward <alan.hayward@arm.com>
10444
5e0e0422 10445 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
10446 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
10447
5430098f
SDJ
104482017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10449
10450 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
10451 'const char *'.
10452
7c5ded6a
SDJ
104532017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10454
10455 * common/common-utils.c (free_vector_argv): New function.
10456 * common/common-utils.h: Include <vector>.
10457 (free_vector_argv): New prototype.
10458 * darwin-nat.c (darwin_create_inferior): Rewrite function
10459 prototype in order to constify "exec_file" and accept a
10460 "std::string" for "allargs".
10461 * fork-child.c: Include <vector>.
10462 (breakup_args): Rewrite function, using C++.
10463 (fork_inferior): Rewrite function header, constify "exec_file_arg"
10464 and accept "std::string" for "allargs". Update the code to
10465 calculate "argv" based on "allargs". Update calls to "exec_fun"
10466 and "execvp".
10467 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
10468 order to constify "exec_file" and accept a "std::string" for
10469 "allargs".
10470 * go32-nat.c (go32_create_inferior): Likewise.
10471 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
10472 * infcmd.c (run_command_1): Constify "exec_file". Use
10473 "std::string" for inferior arguments.
10474 * inferior.h (fork_inferior): Update prototype.
10475 * linux-nat.c (linux_nat_create_inferior): Rewrite function
10476 prototype in order to constify "exec_file" and accept a
10477 "std::string" for "allargs".
10478 * nto-procfs.c (procfs_create_inferior): Likewise.
10479 * procfs.c (procfs_create_inferior): Likewise.
10480 * remote-sim.c (gdbsim_create_inferior): Likewise.
10481 * remote.c (extended_remote_run): Update code to accept
10482 "std::string" as argument.
10483 (extended_remote_create_inferior): Rewrite function prototype in
10484 order to constify "exec_file" and accept a "std::string" for
10485 "allargs".
10486 * rs6000-nat.c (super_create_inferior): Likewise.
10487 (rs6000_create_inferior): Likewise.
10488 * target.h (struct target_ops) <to_create_inferior>: Likewise.
10489 * windows-nat.c (windows_create_inferior): Likewise.
10490
ae0eee42
PA
104912017-04-11 Pedro Alves <palves@redhat.com>
10492
10493 * thread.c: Fix whitespace throughout.
10494
a6acac06
PR
104952017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
10496
10497 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
10498
64403bd1
AH
104992017-04-11 Alan Hayward <alan.hayward@arm.com>
10500
10501 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
10502
a5bef50f
SDJ
105032017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
10504
10505 PR gdb/21364
10506 * osdata.c (info_osdata): Check if 'type' is an empty string
10507 instead of NULL.
10508
9295a5a9
PA
105092017-04-10 Pedro Alves <palves@redhat.com>
10510
10511 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
10512 (ptid_to_global_thread_id, in_thread_list)
10513 (do_captured_list_thread_ids, set_resumed, set_running)
10514 (set_executing, set_stop_requested, finish_thread_state)
10515 (validate_registers_access, can_access_registers_ptid)
10516 (print_thread_info_1, switch_to_thread)
10517 (do_restore_current_thread_cleanup)
10518 (make_cleanup_restore_current_thread, thread_command)
10519 (thread_name_command): Use operator== instead of ptid_equal.
10520
996812e3
PA
105212017-04-10 Pedro Alves <palves@redhat.com>
10522
10523 * thread.c (struct current_thread_cleanup) <next>: Delete field.
10524 (current_thread_cleanup_chain): Delete.
10525 (restore_current_thread_cleanup_dtor)
10526 (make_cleanup_restore_current_thread): Remove references to
10527 current_thread_cleanup_chain.
10528
845b344f
AH
105292017-04-10 Alan Hayward <alan.hayward@arm.com>
10530
10531 * msp430-tdep.c (msp430_pseudo_register_read): Never return
10532 REG_UNKNOWN.
10533
803bdfe4
YQ
105342017-04-10 Yao Qi <yao.qi@linaro.org>
10535
10536 PR gdb/19942
10537 * gdbthread.h (thread_info::deletable): New method.
10538 (thread_info::incref): New method.
10539 (thread_info::decref): New method.
10540 (thread_info::refcount): Move it to private.
10541 * infrun.c (save_stop_context): Call inc_refcount.
10542 (release_stop_context_cleanup): Likewise.
10543 * thread.c (set_thread_exited): New function.
10544 (init_thread_list): Delete "tp" only it is deletable, otherwise
10545 call set_thread_exited.
10546 (delete_thread_1): Call set_thread_exited.
10547 (current_thread_cleanup) <inferior_pid>: Remove.
10548 <thread>: New field.
10549 (restore_current_thread_ptid_changed): Removed.
10550 (do_restore_current_thread_cleanup): Adjust.
10551 (restore_current_thread_cleanup_dtor): Don't call
10552 find_thread_ptid.
10553 (set_thread_refcount): Use dec_refcount.
10554 (make_cleanup_restore_current_thread): Adjust.
10555 (thread_apply_all_command): Call inc_refcount.
10556 (_initialize_thread): Don't call
10557 observer_attach_thread_ptid_changed.
10558
8c25b497
YQ
105592017-04-10 Yao Qi <yao.qi@linaro.org>
10560
10561 * thread.c (delete_thread_1): Hoist code on marking thread as
10562 exited.
10563
8473b447
SM
105642017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10565
10566 * windows-nat.c (windows_detach): Initialize ptid with
10567 minus_one_ptid.
10568
6670ec13
SM
105692017-04-07 Simon Marchi <simon.marchi@ericsson.com>
10570
10571 * unittests/ptid-selftests.c: Fix erroneous assert messages.
10572
ba2f91bb
AH
105732017-04-07 Alan Hayward <alan.hayward@arm.com>
10574
10575 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
10576 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
10577 (bfin_pseudo_register_write): Likewise
10578
436252de
SM
105792017-04-06 Simon Marchi <simon.marchi@ericsson.com>
10580
10581 * common/ptid.h (struct ptid): Change to...
10582 (class ptid_t): ... this.
10583 <ptid_t>: New constructors.
10584 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
10585 matches>: New methods.
10586 <make_null, make_minus_one>: New static methods.
10587 <pid>: Rename to...
10588 <m_pid>: ...this.
10589 <lwp>: Rename to...
10590 <m_lwp>: ...this.
10591 <tid>: Rename to...
10592 <m_tid>: ...this.
10593 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
10594 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
10595 as references, move comment to class ptid_t.
10596 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
10597 ptid_t static methods.
10598 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
10599 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
10600 Take ptid arguments as references, implement using ptid_t methods.
10601 * unittests/ptid-selftests.c: New file.
10602 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10603 unittests/ptid-selftests.c.
10604 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
10605
0dedf377
TP
106062017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
10607
10608 * python/python.c (python_run_simple_file): Cast mode literal to
10609 non-const char pointer as expected by PyFile_FromString.
10610
4e9868d4
SM
106112017-04-05 Simon Marchi <simon.marchi@ericsson.com>
10612
10613 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
10614 minus_one_ptid and null_ptid.
10615
9bf2a700
PA
106162017-04-05 Pedro Alves <palves@redhat.com>
10617
10618 * warning.m4 (build_warnings): Remove -Wno-write-strings.
10619 * configure: Regenerate.
10620
a121b7c1
PA
106212017-04-05 Pedro Alves <palves@redhat.com>
10622
10623 * ada-exp.y (yyerror): Constify.
10624 * ada-lang.c (bound_name, get_selections)
10625 (ada_variant_discrim_type)
10626 (ada_variant_discrim_name, ada_value_struct_elt)
10627 (ada_lookup_struct_elt_type, is_unchecked_variant)
10628 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
10629 (catch_ada_exception_command_split)
10630 (catch_ada_assert_command_split, catch_assert_command)
10631 (ada_op_name): Constify.
10632 * ada-lang.h (ada_yyerror, get_selections)
10633 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
10634 * arc-tdep.c (arc_print_frame_cache): Constify.
10635 * arm-tdep.c (arm_skip_stub): Constify.
10636 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
10637 (gen_aggregate_elt_ref): Constify.
10638 * bcache.c (print_bcache_statistics): Constify.
10639 * bcache.h (print_bcache_statistics): Constify.
10640 * break-catch-throw.c (catch_exception_command_1):
10641 * breakpoint.c (struct ep_type_description::description):
10642 Constify.
10643 (add_solib_catchpoint): Constify.
10644 (catch_fork_command_1): Add cast.
10645 (add_catch_command): Constify.
10646 * breakpoint.h (add_catch_command, add_solib_catchpoint):
10647 Constify.
10648 * bsd-uthread.c (bsd_uthread_state): Constify.
10649 * buildsym.c (patch_subfile_names): Constify.
10650 * buildsym.h (next_symbol_text_func, patch_subfile_names):
10651 Constify.
10652 * c-exp.y (yyerror): Constify.
10653 (token::oper): Constify.
10654 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
10655 * c-varobj.c (cplus_describe_child): Constify.
10656 * charset.c (find_charset_names): Add cast.
10657 (find_charset_names): Constify array and add const_cast.
10658 * cli/cli-cmds.c (complete_command, cd_command): Constify.
10659 (edit_command): Constify.
10660 * cli/cli-decode.c (lookup_cmd): Constify.
10661 * cli/cli-dump.c (dump_memory_command, dump_value_command):
10662 Constify.
10663 (struct dump_context): Constify.
10664 (add_dump_command, restore_command): Constify.
10665 * cli/cli-script.c (get_command_line): Constify.
10666 * cli/cli-script.h (get_command_line): Constify.
10667 * cli/cli-utils.c (check_for_argument): Constify.
10668 * cli/cli-utils.h (check_for_argument): Constify.
10669 * coff-pe-read.c (struct read_pe_section_data): Constify.
10670 * command.h (lookup_cmd): Constify.
10671 * common/print-utils.c (decimal2str): Constify.
10672 * completer.c (gdb_print_filename): Constify.
10673 * corefile.c (set_gnutarget): Constify.
10674 * cp-name-parser.y (yyerror): Constify.
10675 * cp-valprint.c (cp_print_class_member): Constify.
10676 * cris-tdep.c (cris_register_name, crisv32_register_name):
10677 Constify.
10678 * d-exp.y (yyerror): Constify.
10679 (struct token::oper): Constify.
10680 * d-lang.h (d_yyerror): Constify.
10681 * dbxread.c (struct header_file_location::name): Constify.
10682 (add_old_header_file, add_new_header_file, last_function_name)
10683 (dbx_next_symbol_text, add_bincl_to_list)
10684 (find_corresponding_bincl_psymtab, set_namestring)
10685 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
10686 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
10687 * defs.h (command_line_input, print_address_symbolic)
10688 (deprecated_readline_begin_hook): Constify.
10689 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
10690 Constify.
10691 * event-top.c (handle_line_of_input): Constify and add cast.
10692 * exceptions.c (catch_errors): Constify.
10693 * exceptions.h (catch_errors): Constify.
10694 * expprint.c (print_subexp_standard, op_string, op_name)
10695 (op_name_standard, dump_raw_expression, dump_raw_expression):
10696 * expression.h (op_name, op_string, dump_raw_expression):
10697 Constify.
10698 * f-exp.y (yyerror): Constify.
10699 (struct token::oper): Constify.
10700 (struct f77_boolean_val::name): Constify.
10701 * f-lang.c (f_word_break_characters): Constify.
10702 * f-lang.h (f_yyerror): Constify.
10703 * fork-child.c (fork_inferior): Add cast.
10704 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
10705 (new_variant): Constify.
10706 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
10707 * gdbarch.c: Regenerate.
10708 * gdbcore.h (set_gnutarget): Constify.
10709 * go-exp.y (yyerror): Constify.
10710 (token::oper): Constify.
10711 * go-lang.h (go_yyerror): Constify.
10712 * go32-nat.c (go32_sysinfo): Constify.
10713 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
10714 * guile/scm-cmd.c (cmdscm_function): Constify.
10715 * guile/scm-param.c (pascm_param_value): Constify.
10716 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
10717 (h8300sx_register_name): Constify.
10718 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
10719 Constify.
10720 * ia64-tdep.c (ia64_register_names): Constify.
10721 * infcmd.c (construct_inferior_arguments): Constify.
10722 (path_command, attach_post_wait): Constify.
10723 * language.c (show_range_command, show_case_command)
10724 (unk_lang_error): Constify.
10725 * language.h (language_defn::la_error)
10726 (language_defn::la_name_of_this): Constify.
10727 * linespec.c (decode_line_2): Constify.
10728 * linux-thread-db.c (thread_db_err_str): Constify.
10729 * lm32-tdep.c (lm32_register_name): Constify.
10730 * m2-exp.y (yyerror): Constify.
10731 * m2-lang.h (m2_yyerror): Constify.
10732 * m32r-tdep.c (m32r_register_names): Constify and make static.
10733 * m68hc11-tdep.c (m68hc11_register_names): Constify.
10734 * m88k-tdep.c (m88k_register_name): Constify.
10735 * macroexp.c (appendmem): Constify.
10736 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
10737 (upgrade_type, parse_external, parse_partial_symbols)
10738 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
10739 (new_symbol): Constify.
10740 * memattr.c (mem_info_command): Constify.
10741 * mep-tdep.c (register_name_from_keyword): Constify.
10742 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
10743 Constify.
10744 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
10745 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
10746 * mi/mi-main.c (captured_mi_execute_command): Constify and add
10747 cast.
10748 (mi_execute_async_cli_command): Constify.
10749 * mips-tdep.c (mips_register_name): Constify.
10750 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
10751 (am33_register_name, am33_2_register_name)
10752 * moxie-tdep.c (moxie_register_names): Constify.
10753 * nat/linux-osdata.c (osdata_type): Constify fields.
10754 * nto-tdep.c (nto_parse_redirection): Constify.
10755 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
10756 (lookup_child_selector): Constify.
10757 (objc_methcall::name): Constify.
10758 * objc-lang.h (lookup_objc_class, lookup_child_selector)
10759 (lookup_struct_typedef): Constify.
10760 * objfiles.c (pc_in_section): Constify.
10761 * objfiles.h (pc_in_section): Constify.
10762 * p-exp.y (struct token::oper): Constify.
10763 (yyerror): Constify.
10764 * p-lang.h (pascal_yyerror): Constify.
10765 * parser-defs.h (op_name_standard): Constify.
10766 (op_print::string): Constify.
10767 (exp_descriptor::op_name): Constify.
10768 * printcmd.c (print_address_symbolic): Constify.
10769 * psymtab.c (print_partial_symbols): Constify.
10770 * python/py-breakpoint.c (stop_func): Constify.
10771 (bppy_get_expression): Constify.
10772 * python/py-cmd.c (cmdpy_completer::name): Constify.
10773 (cmdpy_function): Constify.
10774 * python/py-event.c (evpy_add_attribute)
10775 (gdbpy_initialize_event_generic): Constify.
10776 * python/py-event.h (evpy_add_attribute)
10777 (gdbpy_initialize_event_generic): Constify.
10778 * python/py-evts.c (add_new_registry): Constify.
10779 * python/py-finishbreakpoint.c (outofscope_func): Constify.
10780 * python/py-framefilter.c (get_py_iter_from_func): Constify.
10781 * python/py-inferior.c (get_buffer): Add cast.
10782 * python/py-param.c (parm_constant::name): Constify.
10783 * python/py-unwind.c (fprint_frame_id): Constify.
10784 * python/python.c (gdbpy_parameter_value): Constify.
10785 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
10786 * remote.c (memory_packet_config::name): Constify.
10787 (show_packet_config_cmd, remote_write_bytes)
10788 (remote_buffer_add_string):
10789 * reverse.c (exec_reverse_once): Constify.
10790 * rs6000-tdep.c (variant::name, variant::description): Constify.
10791 * rust-exp.y (rustyyerror): Constify.
10792 * rust-lang.c (rust_op_name): Constify.
10793 * rust-lang.h (rustyyerror): Constify.
10794 * serial.h (serial_ops::name): Constify.
10795 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
10796 (sh_sh3e_register_name, sh_sh2e_register_name)
10797 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
10798 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
10799 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
10800 (sh_sh4al_dsp_register_name): Constify.
10801 * sh64-tdep.c (sh64_register_name): Constify.
10802 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
10803 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
10804 * stabsread.c (patch_block_stabs, read_type_number)
10805 (ref_map::stabs, ref_add, process_reference)
10806 (symbol_reference_defined, define_symbol, define_symbol)
10807 (error_type, read_type, read_member_functions, read_cpp_abbrev)
10808 (read_one_struct_field, read_struct_fields, read_baseclasses)
10809 (read_tilde_fields, read_struct_type, read_array_type)
10810 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
10811 (read_huge_number, read_range_type, read_args, common_block_start)
10812 (find_name_end): Constify.
10813 * stabsread.h (common_block_start, define_symbol)
10814 (process_one_symbol, symbol_reference_defined, ref_add):
10815 * symfile.c (get_section_index, add_symbol_file_command):
10816 * symfile.h (get_section_index): Constify.
10817 * target-descriptions.c (tdesc_type::name): Constify.
10818 (tdesc_free_type): Add cast.
10819 * target.c (find_default_run_target):
10820 (add_deprecated_target_alias, find_default_run_target)
10821 (target_announce_detach): Constify.
10822 (do_option): Constify.
10823 * target.h (add_deprecated_target_alias): Constify.
10824 * thread.c (print_thread_info_1): Constify.
10825 * top.c (deprecated_readline_begin_hook, command_line_input):
10826 Constify.
10827 (init_main): Add casts.
10828 * top.h (handle_line_of_input): Constify.
10829 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
10830 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
10831 (tfind_command): Rename to ...
10832 (tfind_command_1): ... this and constify.
10833 (tfind_command): New function.
10834 (tfind_end_command, tfind_start_command): Adjust.
10835 (encode_source_string): Constify.
10836 * tracepoint.h (encode_source_string): Constify.
10837 * tui/tui-data.c (tui_partial_win_by_name): Constify.
10838 * tui/tui-data.h (tui_partial_win_by_name): Constify.
10839 * tui/tui-source.c (tui_set_source_content_nil): Constify.
10840 * tui/tui-source.h (tui_set_source_content_nil): Constify.
10841 * tui/tui-win.c (parse_scrolling_args): Constify.
10842 * tui/tui-windata.c (tui_erase_data_content): Constify.
10843 * tui/tui-windata.h (tui_erase_data_content): Constify.
10844 * tui/tui-winsource.c (tui_erase_source_content): Constify.
10845 * tui/tui.c (tui_enable): Add cast.
10846 * utils.c (defaulted_query): Constify.
10847 (init_page_info): Add cast.
10848 (puts_debug, subset_compare): Constify.
10849 * utils.h (subset_compare): Constify.
10850 * varobj.c (varobj_format_string): Constify.
10851 * varobj.h (varobj_format_string): Constify.
10852 * vax-tdep.c (vax_register_name): Constify.
10853 * windows-nat.c (windows_detach): Constify.
10854 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
10855 * xml-support.c (gdb_xml_end_element): Constify.
10856 * xml-tdesc.c (tdesc_start_reg): Constify.
10857 * xstormy16-tdep.c (xstormy16_register_name): Constify.
10858 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
10859 * xtensa-tdep.h (xtensa_register_t::name): Constify.
10860
995816ba
PA
108612017-04-05 Pedro Alves <palves@redhat.com>
10862
10863 * proc-api.c (struct trans): Constify.
10864 (procfs_note): Constify.
10865 * proc-events.c (struct trans, syscall_table):
10866 * proc-flags.c (struct trans): Constify.
10867 * proc-utils.h (procfs_note): Constify.
10868 * proc-why.c (struct trans): Constify.
10869 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
10870 (procfs_detach): Constify.
10871 * sol-thread.c (struct string_map): Constify.
10872 (td_err_string, td_state_string): Constify.
10873
3e83a920
PA
108742017-04-05 Pedro Alves <palves@redhat.com>
10875
10876 * proc-api.c (procfs_filename): Don't initialize
10877 procfs_filename.
10878 (prepare_to_trace): Assume procfs_filename is non-NULL.
10879 (_initialize_proc_api): Give procfs_filename a default value here.
10880
63160a43
PA
108812017-04-05 Pedro Alves <palves@redhat.com>
10882
10883 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
10884 'cond_string' parameter.
10885 (extract_exception_regexp): Constify 'string' parameter.
10886 (catch_exception_command_1): Constify.
10887 * breakpoint.c (init_catchpoint)
10888 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
10889 parameter.
10890 (ep_parse_optional_if_clause, catch_fork_command_1)
10891 (catch_exec_command_1): Constify.
10892 * breakpoint.h (init_catchpoint): Constify 'cond_string'
10893 parameter.
10894 (ep_parse_optional_if_clause): Constify.
10895 * cli/cli-utils.c (remove_trailing_whitespace)
10896 (check_for_argument): Constify.
10897 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
10898 non-const overload.
10899 (check_for_argument): Likewise.
10900
9b2eba3d
PA
109012017-04-05 Pedro Alves <palves@redhat.com>
10902
10903 * event-top.c (command_line_handler): Add cast to execute_command
10904 call.
10905 * record-btrace.c (cmd_record_btrace_bts_start)
10906 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
10907 (cmd_record_btrace_start): Add cast to execute_command call.
10908 * record-full.c (record_full_goto_insn):
10909 * record.c (record_start, record_stop): Add cast to
10910 execute_command_to_string calls.
10911 (cmd_record_start): Add cast to execute_command calls.
10912
2adadf51
PA
109132017-04-05 Pedro Alves <palves@redhat.com>
10914
10915 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
10916 static inline function.
10917 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
10918 array and use gdb_PyArg_ParseTupleAndKeywords.
10919 * python/py-cmd.c (cmdpy_init): Likewise.
10920 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
10921 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
10922 (infpy_search_memory): Likewise.
10923 * python/py-objfile.c (objfpy_add_separate_debug_file)
10924 (gdbpy_lookup_objfile): Likewise.
10925 * python/py-symbol.c (gdbpy_lookup_symbol)
10926 (gdbpy_lookup_global_symbol): Likewise.
10927 * python/py-type.c (gdbpy_lookup_type): Likewise.
10928 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
10929 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
10930 Likewise.
10931
0d1f4ceb
PA
109322017-04-05 Pedro Alves <palves@redhat.com>
10933
10934 * python/python-internal.h (gdb_PyGetSetDef): New type.
10935 * python/py-block.c (block_object_getset)
10936 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
10937 * python/py-event.c (event_object_getset)
10938 (finish_breakpoint_object_getset): Likewise.
10939 * python/py-inferior.c (inferior_object_getset): Likewise.
10940 * python/py-infthread.c (thread_object_getset): Likewise.
10941 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
10942 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
10943 * python/py-objfile.c (objfile_getset): Likewise.
10944 * python/py-progspace.c (pspace_getset): Likewise.
10945 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
10946 Likewise.
10947 * python/py-record.c (recpy_record_getset): Likewise.
10948 * python/py-symbol.c (symbol_object_getset): Likewise.
10949 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
10950 Likewise.
10951 * python/py-type.c (type_object_getset, field_object_getset):
10952 Likewise.
10953 * python/py-value.c (value_object_getset): Likewise.
10954
4d759979
PA
109552017-04-05 Pedro Alves <palves@redhat.com>
10956
10957 * python/python-internal.h (gdb_PyObject_CallMethod)
10958 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
10959 New functions.
10960 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
10961 (PySys_GetObject, PySys_SetPath): New macros.
10962
fdf9e36f
PA
109632017-04-05 Pedro Alves <palves@redhat.com>
10964
10965 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
10966 info_osdata_command.
10967 * osdata.c (info_osdata_command): Rename to ...
10968 (info_osdata): ... this. Constify 'type' parameter, and remove
10969 the 'from_tty' parameter. Accept NULL TYPE.
10970 (info_osdata_command): New function.
10971 * osdata.h (info_osdata_command): Remove declaration.
10972 (info_osdata): New declaration.
10973
9f33b8b7
PA
109742017-04-05 Pedro Alves <palves@redhat.com>
10975
10976 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
10977 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
10978 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
10979 parameter.
10980 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
10981 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
10982 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
10983 parameter.
10984 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
10985 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
10986 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10987 (mi_cmd_file_list_exec_source_files)
10988 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
10989 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
10990 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
10991 parameter.
10992 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
10993 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
10994 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10995 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
10996 (mi_cmd_stack_info_frame): Constify 'command' parameter.
10997 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
10998 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
10999 'command' parameter.
11000 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
11001 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
11002 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
11003 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
11004 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
11005 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
11006 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
11007 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
11008 (mi_cmd_var_set_update_range): Constify 'command' parameter.
11009 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
11010 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
11011 parameter.
11012 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
11013 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
11014 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
11015 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
11016 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
11017 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
11018 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
11019 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
11020 (mi_cmd_data_list_changed_registers)
11021 (mi_cmd_data_write_register_values)
11022 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
11023 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
11024 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
11025 (mi_cmd_list_features, mi_cmd_list_target_features)
11026 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
11027 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
11028 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
11029 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
11030 (mi_cmd_trace_frame_collected): Constify 'command'
11031 parameter.
11032 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
11033 'command' parameter.
11034
67cb5b2d
PA
110352017-04-05 Pedro Alves <palves@redhat.com>
11036
11037 * ada-lang.c (ada_completer_word_break_characters): Now a const
11038 array.
11039 (ada_get_gdb_completer_word_break_characters): Constify.
11040 * completer.c (gdb_completer_command_word_break_characters)
11041 (gdb_completer_file_name_break_characters)
11042 (gdb_completer_quote_characters): Now const arrays.
11043 (get_gdb_completer_quote_characters): Constify.
11044 (set_rl_completer_word_break_characters): New function.
11045 (set_gdb_completion_word_break_characters)
11046 (complete_line_internal): Use it.
11047 * completer.h (get_gdb_completer_quote_characters): Constify.
11048 (set_rl_completer_word_break_characters): Declare.
11049 * f-lang.c (f_word_break_characters): Constify.
11050 * language.c (default_word_break_characters): Constify.
11051 * language.h (language_defn::la_word_break_characters): Constify.
11052 (default_word_break_characters): Constify.
11053 * top.c (init_main): Use set_rl_completer_word_break_characters.
11054
7a114964
PA
110552017-04-05 Pedro Alves <palves@redhat.com>
11056
11057 * aix-thread.c (aix_thread_pid_to_str)
11058 (aix_thread_extra_thread_info): Constify.
11059 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
11060 * bsd-uthread.c (bsd_uthread_extra_thread_info)
11061 (bsd_uthread_pid_to_str): Constify.
11062 * corelow.c (core_pid_to_str): Constify.
11063 * darwin-nat.c (darwin_pid_to_str): Constify.
11064 * fbsd-nat.c (fbsd_pid_to_str): Constify.
11065 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
11066 Constify.
11067 * gnu-nat.c (gnu_pid_to_str): Constify.
11068 * go32-nat.c (go32_pid_to_str): Constify.
11069 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
11070 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
11071 * inferior.c (inferior_pid_to_str): Constify.
11072 * linux-nat.c (linux_nat_pid_to_str): Constify.
11073 * linux-tdep.c (linux_core_pid_to_str): Constify.
11074 * linux-thread-db.c (thread_db_pid_to_str)
11075 (thread_db_extra_thread_info): Constify.
11076 * nto-tdep.c (nto_extra_thread_info): Constify.
11077 * nto-tdep.h (nto_extra_thread_info): Constify.
11078 * obsd-nat.c (obsd_pid_to_str): Constify.
11079 * procfs.c (procfs_pid_to_str): Constify.
11080 * ravenscar-thread.c (ravenscar_extra_thread_info)
11081 (ravenscar_pid_to_str): Constify.
11082 * remote-sim.c (gdbsim_pid_to_str): Constify.
11083 * remote.c (remote_threads_extra_info, remote_pid_to_str):
11084 Constify.
11085 * sol-thread.c (solaris_pid_to_str): Constify.
11086 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
11087 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
11088 * target.c (default_pid_to_str, target_pid_to_str)
11089 (normal_pid_to_str, default_pid_to_str): Constify.
11090 * target.h (target_ops::to_pid_to_str)
11091 (target_ops::to_extra_thread_info): Constify.
11092 (target_pid_to_str, normal_pid_to_str): Constify.
11093 * windows-nat.c (windows_pid_to_str): Constify.
11094 * gdbarch.sh (core_pid_to_str): Constify.
11095 * target-delegates.c: Regenerate.
11096 * gdbarch.h, gdbarch.c: Regenerate.
11097
69bbf465
PA
110982017-04-05 Pedro Alves <palves@redhat.com>
11099
11100 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
11101 the memory of the temporary warning_pre_print override.
11102 * utils.c (warning_pre_print): Constify.
11103 * utils.h (warning_pre_print): Constify.
11104
be47f9e8
PA
111052017-04-05 Pedro Alves <palves@redhat.com>
11106
11107 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
11108 (shell_command): New function.
11109 (make_command): Use std::string.
11110 (init_cli_cmds): Register shell_command instead of shell_escape.
11111
bde6261a
PA
111122017-04-05 Pedro Alves <palves@redhat.com>
11113
11114 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
11115 * tracepoint.c (default_collect): Don't initialize.
11116
b38ef47f
PA
111172017-04-05 Pedro Alves <palves@redhat.com>
11118
11119 * macroexp.c (macro_buffer::shared): Now a bool.
11120 (init_buffer): Update.
11121 (init_shared_buffer): Constify 'addr' parameter.
11122 (substitute_args, expand, macro_expand, macro_expand_next): Remove
11123 casts.
11124
f995bbe8
PA
111252017-04-05 Pedro Alves <palves@redhat.com>
11126
11127 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
11128 * disasm.c (set_disassembler_options): Constify local.
11129 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
11130
4a596fe2
SDJ
111312017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
11132
11133 PR gdb/21352
11134 * tracefile.c (tsave_command): Fix argument parsing for '-r'
11135 option.
11136
2cad08ea
YQ
111372017-04-05 Yao Qi <yao.qi@linaro.org>
11138
11139 * frame.c (frame_unwind_register_unsigned): Call
11140 frame_unwind_register_value.
11141
55a98976
YQ
111422017-04-05 Yao Qi <yao.qi@linaro.org>
11143
11144 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
11145 Use gdb_test_multiple, and don't match anchor.
11146
4ac40124
PA
111472017-04-05 Pedro Alves <palves@redhat.com>
11148
11149 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
11150 (Write After Approval): Remove Simon Marchi.
11151
c053b654
PA
111522017-04-05 Pedro Alves <palves@redhat.com>
11153
11154 * common/gdb_optional.h (optional::optional): Make constexpr and
11155 initialize m_dummy.
11156
4c7bf4f9
JB
111572017-04-04 John Baldwin <jhb@FreeBSD.org>
11158
11159 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
11160 (amd64fbsd_jmp_buf_reg_offset): Remove.
11161 (amd64fbsd_supply_uthread): Remove function.
11162 (amd64fbsd_collect_uthread): Remove function.
11163 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
11164 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
11165 (x86_64-*-freebsd*): Remove bsd-uthread.o.
11166 (fbsd-nat.c): Update comment.
11167 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
11168 (i386fbsd_jmp_buf_reg_offset): Remove.
11169 (i386fbsd_supply_uthread): Remove function.
11170 (i386fbsd_collect_uthread): Remove function.
11171 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
11172
1e1a8bef
JB
111732017-04-04 John Baldwin <jhb@FreeBSD.org>
11174
11175 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
11176 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
11177 * NEWS: Mention that support for FreeBSD/alpha was removed.
11178 * alpha-fbsd-tdep.c: Delete file.
11179 * config/alpha/fbsd.mh: Delete file.
11180 * configure.host: Delete alpha*-*-freebsd* and
11181 alpha*-*-kfreebsd*-gnu.
11182 * configure.tgt: Delete alpha*-*-freebsd* and
11183 alpha*-*-kfreebsd*-gnu.
11184
49907934
JB
111852017-04-04 John Baldwin <jhb@FreeBSD.org>
11186
11187 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
11188 amd64bsd_store_inferior_registers): Use ptid from regcache.
11189
6f77053d
PA
111902017-04-04 Pedro Alves <palves@redhat.com>
11191
11192 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
11193 data fields, make them private and add "m_" prefixes.
11194 (lnp_state_machine::lnp_state_machine): New ctor.
11195 (record_line, check_line_address, handle_set_discriminator)
11196 (handle_set_address, handle_advance_pc, handle_special_opcode)
11197 (handle_advance_line, handle_set_file, handle_negate_stmt)
11198 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
11199 (end_sequence, advance_line): New methods.
11200 (m_gdbarch, m_record_lines_p): New fields.
11201 (lnp_reader_state): Delete.
11202 (dwarf_record_line): Rename to ...
11203 (lnp_state_machine::record_line): ... adjust.
11204 (init_lnp_state_machine): Delete.
11205 (lnp_state_machine::lnp_state_machine): New.
11206 (check_line_address): Rename to ...
11207 (lnp_state_machine::check_line_address): This.
11208 (dwarf_decode_lines_1): Remove reference to "reader_state".
11209 Adjust lnp_state_machine having a non-default ctor. Use bool.
11210 State machine internal state manipulation moved to
11211 lnp_state_machine methods.
11212
9c541725
PA
112132017-04-04 Pedro Alves <palves@redhat.com>
11214
11215 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11216 unittests/offset-type-selftests.c.
11217 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
11218 * common/offset-type.h: New file.
11219 * common/preprocessor.h: New file.
11220 * common/traits.h: New file.
11221 * common/valid-expr.h: New file.
11222 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
11223 sect_offset and cu_offset strong typedefs throughout.
11224 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
11225 typedefs throughout.
11226 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
11227 sect_offset and cu_offset strong typedefs throughout.
11228 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
11229 typedefs throughout.
11230 * gdbtypes.h: Include "common/offset-type.h".
11231 (cu_offset): Now an offset type (strong typedef) instead of a
11232 struct.
11233 (sect_offset): Likewise.
11234 (union call_site_parameter_u): Rename "param_offset" field to
11235 "param_cu_off".
11236 * unittests/offset-type-selftests.c: New file.
11237
ecfb656c
PA
112382017-04-04 Pedro Alves <palves@redhat.com>
11239
11240 * common/underlying.h: New file.
11241 * dwarf2read.c: Include "common/gdb_optional.h" and
11242 "common/underlying.h".
11243 (dir_index, file_name_index): New types.
11244 (file_entry): Use them.
11245 (file_entry::include): Use to_underlying.
11246 (line_header::add_file_name): Use dir_index.
11247 (read_formatted_entries): Use gdb::optional. Read form before
11248 writting to file_entry.
11249 (dwarf_decode_line_header): Use dir_index.
11250 (lnp_state_machine::current_file): Use to_underlying.
11251 (lnp_state_machine::file): Change type to file_name_index.
11252 (dwarf_record_line): Use to_underlying.
11253 (init_lnp_state_machine): Use file_name_index.
11254 (dwarf_decode_lines_1): Use dir_index and file_name_index.
11255
d194f1fe
PA
112562017-04-04 Pedro Alves <palves@redhat.com>
11257
11258 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
11259 operator bool, has_value and get methods.
11260
fff8551c
PA
112612017-04-04 Pedro Alves <palves@redhat.com>
11262
11263 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
11264 fields.
11265 (line_header): Initialize all data fields. Change type of
11266 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
11267 Change type of include_dirs to std::vector<const char *>. Remove
11268 num_include_dirs, include_dirs_size. Change type of file_names to
11269 std::vector<file_entry>. Remove num_file_names, file_names_size.
11270 (line_header::line_header): New.
11271 (line_header::add_include_dir, line_header::add_file_name): New
11272 methods.
11273 (line_header::include_dir_at): Remove NULL check.
11274 (line_header::file_name_at): Add const overload.
11275 (line_header_up): New unique_ptr typedef.
11276 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
11277 std::vector. Remove free_line_header call.
11278 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
11279 free_line_header call.
11280 (free_cu_line_header): Delete.
11281 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
11282 (setup_type_unit_groups): Use line_header_up instead of cleanups.
11283 Adjust to use std::vector.
11284 (free_line_header): Delete.
11285 (free_line_header_voidp): Use delete.
11286 (add_include_dir): Replace with ...
11287 (line_header::add_include_dir): ... this method. Use std::vector.
11288 (add_file_name): Replace with ...
11289 (line_header::add_file_name): ... this method. Use std::vector.
11290 (add_include_dir_stub): Delete.
11291 (read_formatted_entries): Remove memset.
11292 (dwarf_decode_line_header): Return a line_header_up instead of a
11293 raw pointer. Remove cleanup handling. Pass lambdas to
11294 read_formatted_entries. Adjust to use line_header methods.
11295 (dwarf_decode_lines_1): Adjust to use line_header methods.
11296 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
11297 use std::vector.
11298
d62a8ae2
SM
112992017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
11300
11301 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
11302 instead of struct ptid.
11303
db3a1dc7
AH
113042017-05-04 Alan Hayward <alan.hayward@arm.com>
11305
11306 * frame.c (get_frame_register_bytes): Unwind using value.
11307 (put_frame_register_bytes): Likewise.
11308
b1b45502
IB
113092017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
11310
11311 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
11312 aggregate-like.
11313
ec13808e
JK
113142017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11315
11316 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
11317
12316564
YQ
113182017-03-29 Yao Qi <yao.qi@linaro.org>
11319
11320 * gdbthread.h (struct thread_info): Declare constructor and
11321 destructor. Add some in-class member initializers.
11322 * thread.c (free_thread): Remove.
11323 (init_thread_list): Call delete instead of free_thread.
11324 (new_thread): Call thread_info constructor.
11325 (thread_info::thread_info): New function.
11326 (thread_info::~thread_info): New function.
11327 (delete_thread_1): Call delete instead of free_thread.
11328 (make_cleanup_restore_current_thread): Move tp and frame to
11329 inner block.
11330
fe5f7374
AK
113312017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11332
11333 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
11334 (arc_skip_prologue): Likewise.
11335 (arc_make_frame_cache): Likewise.
11336 (arc_pv_get_operand): New function.
11337 (arc_is_in_prologue): Likewise.
11338 (arc_analyze_prologue): Likewise.
11339 (arc_print_frame_cache): Likewise.
11340 (MAX_PROLOGUE_LENGTH): New constant.
11341
eea78757
AK
113422017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11343
11344 * configure.tgt: Add arc-insn.o.
11345 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
11346 (dump_arc_instruction_command): New function.
11347 (arc_fprintf_disasm): Likewise.
11348 (arc_disassemble_info): Likewise.
11349 (arc_insn_get_operand_value): Likewise.
11350 (arc_insn_get_operand_value_signed): Likewise.
11351 (arc_insn_get_memory_base_reg): Likewise.
11352 (arc_insn_get_memory_offset): Likewise.
11353 (arc_insn_get_branch_target): Likewise.
11354 (arc_insn_dump): Likewise.
11355 (arc_insn_get_linear_next_pc): Likewise.
11356 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
11357 (arc_disassemble_info): Likewise.
11358 (arc_insn_get_branch_target): Likewise.
11359 (arc_insn_get_linear_next_pc): Likewise.
11360 * NEWS: Mention new "maint print arc arc-instruction".
11361
3be78afd
AK
113622017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11363
11364 * arc-tdep (maintenance_print_arc_list): New variable.
11365 (maintenance_print_arc_command): New function.
11366
296ec4fa
AK
113672017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11368
11369 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
11370 Add "limm" and "reserved".
11371 (arc_cannot_fetch_register, arc_cannot_store_register): Add
11372 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
11373 * arc-tdep.h (arc_regnum): Likewise.
11374
f74f865e
MF
113752017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11376
11377 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
11378 for THREADPTR register.
11379 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
11380 register.
11381 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
11382 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
11383 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
11384
0d0bf81a
MF
113852017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11386
11387 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
11388 registers above gdbarch_num_regs (gdbarch) as privileged in
11389 call0 ABI.
11390
0ce4291e
MF
113912017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11392
11393 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
11394 for a single specified register or for all registers in
11395 a0_base..a0_base + C0_NREGS range.
11396 (supply_gregset_reg): Call regcache_raw_supply for a single
11397 specified register or for all registers in a0_base..a0_base +
11398 C0_NREGS range.
11399
c56054f9
MF
114002017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11401
11402 * arch/xtensa.h (C0_NREGS): Add definition.
11403 * xtensa-tdep.c (C0_NREGS): Remove definition.
11404
a4398628
MF
114052017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11406
11407 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
11408 Drop xtensa_default_isa initialization.
11409 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
11410
8c43009f
PA
114112017-03-27 Pedro Alves <palves@redhat.com>
11412
11413 * dwarf2read.c (file_entry) <dir_index>: Add comment.
11414 (file_entry::include_dir): New method.
11415 (line_header::include_dir_at, line_header::file_name_at): New
11416 methods.
11417 (setup_type_unit_groups, setup_type_unit_groups)
11418 (psymtab_include_file_name): Simplify using the new methods.
11419 (lnp_state_machine) <the_line_header>: New field.
11420 <file>: Add comment.
11421 (lnp_state_machine::current_file): New method.
11422 (dwarf_record_line): Simplify using the new methods.
11423 (init_lnp_state_machine): Initialize the "the_line_header" field.
11424 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
11425 Simplify using the new methods.
11426
a7e80b9e
PA
114272017-03-27 Pedro Alves <palves@redhat.com>
11428
11429 * cp-name-parser.y (make_empty): Delete.
11430 (demangler_special, nested_name, ptr_operator, array_indicator)
11431 (direct_declarator, declarator_1): Use fill_comp instead of
11432 make_empty.
11433
21047726
PA
114342017-03-27 Pedro Alves <palves@redhat.com>
11435
11436 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
11437 to ATTRIBUTE_PRINTF.
11438 * solib-target.c (library_list_start_list): Print "string" not
11439 "version".
11440 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
11441 gdb_xml_error call.
11442
d721ba37
PA
114432017-03-27 Pedro Alves <palves@redhat.com>
11444
11445 * dwarf2read.c (struct file_and_directory): New.
11446 (dwarf2_get_dwz_file): Adjust to use std::string.
11447 (dw2_get_file_names_reader): Adjust to use file_and_directory.
11448 (find_file_and_directory): Adjust to return a file_and_directory
11449 object.
11450 (read_file_scope): Adjust to use file_and_directory. Remove
11451 make_cleanup/do_cleanups calls.
11452 (open_and_init_dwp_file): Adjust to use std::string. Remove
11453 make_cleanup/do_cleanups calls.
11454 * python/python.c (do_start_initialization): Adjust to ldirname
11455 returning a std::string.
11456 * utils.c (ldirname): Now returns a std::string.
11457 * utils.h (ldirname): Change return type to std::string.
11458 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
11459 returning a std::string.
11460 * xml-tdesc.c (file_read_description_xml): Likewise.
11461
ed771251
AH
114622017-03-24 Alan Hayward <alan.hayward@arm.com>
11463
11464 * regcache.c (regcache_debug_print_register): New function.
11465 * regcache.h (regcache_debug_print_register): New declaration.
11466 * target.c (debug_print_register): Remove.
11467 (target_fetch_registers): Call regcache_debug_print_register.
11468 (target_store_registers): Likewise.
11469
568c1b9f
PB
114702017-03-24 Pádraig Brady <pbrady@fb.com>
11471
11472 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
11473 reference beyond the 'lh->include_dirs' array before accessing to
11474 it.
11475 (psymtab_include_file_name): Likewise.
11476 (dwarf_decode_lines_1): Likewise.
11477 (dwarf_decode_lines): Likewise.
11478 (file_file_name): Likewise.
11479
3e00d44f
SM
114802017-03-23 Simon Marchi <simon.marchi@ericsson.com>
11481
11482 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
11483 inferior_ptid.
11484 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
11485 ps_lsetfpregs): Likewise.
11486 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
11487 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
11488 ps_lsetfpregs): Likewise.
11489 * target.c (target_fetch_registers, target_store_registers):
11490 Remove asserts.
11491
077ae656
AH
114922017-03-23 Alan Hayward <alan.hayward@arm.com>
11493
11494 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
11495
1e2b521d
YQ
114962017-03-23 Yao Qi <yao.qi@linaro.org>
11497
11498 * aarch64-tdep.c (aarch64_process_record_test): Declare.
11499 (_initialize_aarch64_tdep): Register it.
11500 (aarch64_record_load_store): Handle PRFM instruction.
11501 (aarch64_process_record_test): New function.
11502
33877125
YQ
115032017-03-23 Yao Qi <yao.qi@linaro.org>
11504
11505 * aarch64-tdep.c (aarch64_record_load_store): Fix code
11506 indentation.
11507
a0eef940
YQ
115082017-03-23 Yao Qi <yao.qi@linaro.org>
11509
11510 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
11511
3f2a3564
PR
115122017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11513
11514 python/python.c (do_start_initialization): Fix memory leak.
11515
b67aeab0
SM
115162017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11517
11518 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
11519 using get_ptrace_pid.
11520 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
11521 inferior_ptid.
11522 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
11523 inferior_ptid instead of pid.
11524
ffdbe864
YQ
115252017-03-22 Yao Qi <yao.qi@linaro.org>
11526
11527 * aarch64-tdep.c: Wrap locally used classes in anonymous
11528 namespace.
11529 * arm-tdep.c: Likewise.
11530 * linespec.c: Likewise.
11531 * ui-out.c: Likewise.
11532
9d736fbf
JG
115332017-03-22 Jonah Graham <jonah@kichwacoders.com>
11534
11535 PR gdb/19637
11536 * python/lib/gdb/printer/bound_registers.py: Import sys.
11537
3de88e9a
SM
115382017-03-21 Simon Marchi <simon.marchi@ericsson.com>
11539
11540 * windows-nat.c (do_windows_fetch_inferior_registers): Add
11541 windows_thread_info parameter and use it instead of
11542 current_thread.
11543 (windows_fetch_inferior_registers): Don't set current_thread,
11544 pass the thread to do_windows_fetch_inferior_registers. Use
11545 ptid from regcache instead of inferior_ptid.
11546 (do_windows_store_inferior_registers): Add windows_thread_info
11547 parameter and use it instead of current_thread.
11548 (windows_store_inferior_registers): Don't set current_thread,
11549 pass the thread to do_windows_store_inferior_registers. Use
11550 ptid from regcache instead of inferior_ptid.
11551
0e7b8f61
SM
115522017-03-21 Simon Marchi <simon.marchi@ericsson.com>
11553
11554 * ser-mingw.c (ser_windows_raw): Remove reference to
11555 struct serial::current_timeout.
11556
5badf10a
IR
115572017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
11558
11559 PR tdep/20928
11560 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
11561 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
11562 (sparc64_fsr_type): Fix %fsr decoding.
11563
cee59b3f
TW
115642017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
11565
11566 * python/py-record-btrace.c (btpy_insn_data): Change return type
11567 for Python 2.
11568
639a9038
SM
115692017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
11570
11571 * spu-linux-nat.c (spu_fetch_inferior_registers,
11572 spu_store_inferior_registers): Use ptid from regcache, set and
11573 restore inferior_ptid.
11574 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
11575 Likewise.
11576
bcc0c096
SM
115772017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
11578
11579 * i386-linux-nat.c (fetch_register, store_register,
11580 i386_linux_fetch_inferior_registers,
11581 i386_linux_store_inferior_registers): Use ptid from regcache.
11582 * ia64-linux-nat.c (ia64_linux_fetch_register,
11583 ia64_linux_store_register): Likewise.
11584 * inf-ptrace.c (inf_ptrace_fetch_register,
11585 inf_ptrace_store_register): Likewise.
11586 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
11587 m32r_linux_store_inferior_registers): Likewise.
11588 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
11589 m68kbsd_store_inferior_registers): Likewise.
11590 * m68k-linux-nat.c (fetch_register, store_register,
11591 m68k_linux_fetch_inferior_registers,
11592 m68k_linux_store_inferior_registers): Likewise.
11593 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
11594 m88kbsd_store_inferior_registers): Likewise.
11595 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
11596 mips_fbsd_store_inferior_registers): Likewise.
11597 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
11598 mips64_linux_regsets_store_registers): Likewise.
11599 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
11600 mipsnbsd_store_inferior_registers): Likewise.
11601 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
11602 mips64obsd_store_inferior_registers): Likewise.
11603 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
11604 Likewise.
11605 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
11606 ppcfbsd_store_inferior_registers): Likewise.
11607 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
11608 ppc_linux_store_inferior_registers): Likewise.
11609 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
11610 ppcnbsd_store_inferior_registers): Likewise.
11611 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
11612 ppcobsd_store_registers): Likewise.
11613 * procfs.c (procfs_fetch_registers, procfs_store_registers):
11614 Likewise.
11615 * ravenscar-thread.c (ravenscar_fetch_registers,
11616 ravenscar_store_registers, ravenscar_prepare_to_store):
11617 Likewise.
11618 * record-btrace.c (record_btrace_fetch_registers,
11619 record_btrace_store_registers, record_btrace_prepare_to_store):
11620 Likewise.
11621 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
11622 Lookup inferior using ptid from regcache, instead of
11623 current_inferior.
11624 * remote.c (remote_fetch_registers, remote_store_registers): Use
11625 ptid from regcache.
11626 * rs6000-nat.c (fetch_register, store_register): Likewise.
11627 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
11628 s390_linux_store_inferior_registers): Likewise.
11629 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
11630 shnbsd_store_inferior_registers): Likewise.
11631 * sol-thread.c (sol_thread_fetch_registers,
11632 sol_thread_store_registers): Likewise.
11633 * sparc-nat.c (sparc_fetch_inferior_registers,
11634 sparc_store_inferior_registers): Likewise.
11635 * tilegx-linux-nat.c (fetch_inferior_registers,
11636 store_inferior_registers): Likewise.
11637 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
11638 vaxbsd_store_inferior_registers): Likewise.
11639 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
11640 store_xtregs): Likewise.
11641
c0f55cc6
AV
116422017-03-20 Artemiy Volkov <artemiyv@acm.org>
11643
11644 PR gdb/14441
11645 * NEWS: Mention support for rvalue references in GDB and python.
11646 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
11647 supports both lvalue and rvalue references.
11648
15c0a2a9
AV
116492017-03-20 Artemiy Volkov <artemiyv@acm.org>
11650
11651 PR gdb/14441
11652 * gdbtypes.c (rank_one_type): Implement overloading
11653 resolution rules regarding rvalue references.
11654
aa006118
AV
116552017-03-20 Artemiy Volkov <artemiyv@acm.org>
11656
11657 PR gdb/14441
11658 * aarch64-tdep.c (aarch64_type_align)
11659 (aarch64_extract_return_value, aarch64_store_return_value): Change
11660 lvalue reference type checks to general reference type checks.
11661 * amd64-tdep.c (amd64_classify): Likewise.
11662 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
11663 Likewise.
11664 * arm-tdep.c (arm_type_align, arm_extract_return_value)
11665 (arm_store_return_value): Likewise.
11666 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
11667 * c-typeprint.c (c_print_type): Likewise.
11668 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
11669 (cplus_number_of_children, cplus_describe_child): Likewise.
11670 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
11671 * completer.c (expression_completer): Likewise.
11672 * cp-support.c (make_symbol_overload_list_adl_namespace):
11673 Likewise.
11674 * darwin-nat-info.c (info_mach_region_command): Likewise.
11675 * dwarf2loc.c (entry_data_value_coerce_ref)
11676 (value_of_dwarf_reg_entry): Likewise.
11677 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
11678 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
11679 Likewise.
11680 * findvar.c (extract_typed_address, store_typed_address):
11681 Likewise.
11682 * gdbtypes.c (rank_one_type): Likewise.
11683 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
11684 * infcall.c (value_arg_coerce): Likewise.
11685 * language.c (pointer_type): Likewise.
11686 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
11687 Likewise.
11688 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
11689 * mn10300-tdep.c (mn10300_type_align): Likewise.
11690 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
11691 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
11692 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
11693 Likewise.
11694 * printcmd.c (print_formatted, x_command): Likewise.
11695 * python/py-type.c (typy_get_composite, typy_template_argument):
11696 Likewise.
11697 * python/py-value.c (valpy_referenced_value)
11698 (valpy_get_dynamic_type, value_has_field): Likewise.
11699 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
11700 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
11701 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
11702 * spu-tdep.c (spu_scalar_value_p): Likewise.
11703 * symtab.c (lookup_symbol_aux): Likewise.
11704 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
11705 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
11706 Likewise.
11707 * valops.c (value_cast_pointers, value_cast)
11708 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
11709 (value_struct_elt, value_struct_elt_bitpos)
11710 (value_find_oload_method_list, find_overload_match)
11711 (value_rtti_indirect_type): Likewise.
11712 * valprint.c (val_print_scalar_type_p, generic_val_print):
11713 Likewise.
11714 * value.c (value_actual_type, value_as_address, unpack_long)
11715 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
11716 (coerce_ref): Likewise.
11717 * varobj.c (varobj_get_value_type): Likewise.
11718
3fcf899d
AV
117192017-03-20 Artemiy Volkov <artemiyv@acm.org>
11720
11721 PR gdb/14441
11722 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
11723 table of constants.
11724 * python/lib/gdb/command/explore.py: Support exploring values
11725 of rvalue reference types.
11726 * python/lib/gdb/types.py: Implement get_basic_type() for
11727 rvalue reference types.
11728 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
11729 constant.
11730 * python/py-value.c (valpy_getitem): Add an rvalue reference
11731 check.
11732 (valpy_reference_value): Add new parameter "refcode".
11733 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
11734 New wrappers for valpy_reference_value().
11735 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
11736 (gdbpy_invoke_xmethod): Likewise.
11737
4297a3f0
AV
117382017-03-20 Artemiy Volkov <artemiyv@acm.org>
11739
11740 PR gdb/14441
11741 * dwarf2read.c (process_die, read_type_die_1): Handle the
11742 DW_TAG_rvalue_reference_type DIE.
11743 (read_tag_reference_type): Add new parameter "refcode".
11744
e1cb3213
AV
117452017-03-20 Artemiy Volkov <artemiyv@acm.org>
11746
11747 PR gdb/14441
11748 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
11749 (c_type_print_modifier, c_type_print_varspec_suffix)
11750 (c_type_print_base): Support printing rvalue reference types.
11751 * c-valprint.c (c_val_print, c_value_print): Support printing
11752 rvalue reference values.
11753
e4347c89
AV
117542017-03-20 Artemiy Volkov <artemiyv@acm.org>
11755
11756 PR gdb/14441
11757 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
11758 typename.
11759 * cp-support.c (replace_typedefs): Handle
11760 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
11761 * python/py-type.c (typy_lookup_type): Likewise.
11762
53cc15f5
AV
117632017-03-20 Artemiy Volkov <artemiyv@acm.org>
11764
11765 PR gdb/14441
11766 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
11767 * parse.c (insert_type): Change assert statement.
11768 (follow_types): Handle rvalue reference types.
11769 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
11770 constant.
11771
a65cfae5
AV
117722017-03-20 Artemiy Volkov <artemiyv@acm.org>
11773
11774 PR gdb/14441
11775 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
11776 value_ref() interface.
11777 * c-valprint.c (c_value_print): Likewise.
11778 * infcall.c (value_arg_coerce): Likewise.
11779 * python/py-value.c (valpy_reference_value): Likewise.
11780 * valops.c (value_cast, value_reinterpret_cast)
11781 (value_dynamic_cast, typecmp): Likewise.
11782 (value_ref): Parameterize by kind of return value reference type.
11783 * value.h (value_ref): Add new parameter "refcode".
11784
3b224330
AV
117852017-03-20 Artemiy Volkov <artemiyv@acm.org>
11786
11787 PR gdb/14441
11788 * dwarf2read.c (read_tag_reference_type): Use
11789 lookup_lvalue_reference_type() instead of lookup_reference_type().
11790 * eval.c (evaluate_subexp_standard): Likewise.
11791 * f-exp.y: Likewise.
11792 * gdbtypes.c (make_reference_type, lookup_reference_type):
11793 Generalize with rvalue reference types.
11794 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
11795 convenience wrappers for lookup_reference_type().
11796 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
11797 reference kind parameter.
11798 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
11799 wrappers for lookup_reference_type().
11800 * guile/scm-type.c (gdbscm_type_reference): Use
11801 lookup_lvalue_reference_type() instead of lookup_reference_type().
11802 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
11803 * parse.c (follow_types): Likewise.
11804 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
11805 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
11806 Likewise.
11807 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
11808 (gdbpy_invoke_xmethod): Likewise.
11809 * stabsread.c: Provide extra argument to make_reference_type()
11810 call.
11811 * valops.c (value_ref, value_rtti_indirect_type): Use
11812 lookup_lvalue_reference_type() instead of lookup_reference_type().
11813
f9aeb8d4
AV
118142017-03-20 Artemiy Volkov <artemiyv@acm.org>
11815
11816 PR gdb/14441
11817 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
11818 (TYPE_IS_REFERENCE): New macro.
11819 (struct type): Add rvalue_reference_type field.
11820 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
11821
51457a05
MAL
118222017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
11823
11824 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
11825 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
11826 New function definition.
11827 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
11828 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
11829 New function declaration.
11830 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
11831 * mi/mi-interp.h: New file.
11832 * solib.c (info_sharedlibrary_command): Replace for loop with
11833 ALL_SO_LIBS macro
11834 * solib.h (update_solib_list): New function declaration.
11835 (so_list_head): Move macro.
11836 * solist.h (ALL_SO_LIBS): New macro.
11837
e696b3ad
MAL
118382017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
11839
11840 * infcmd.c (post_create_inferior): Remove unused argument in
11841 call to solib_add.
11842 * remote.c (remote_start_remote): Likewise.
11843 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
11844 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
11845 (enable_break): Likewise.
11846 * solib.c (update_solib_list): Remove unused target argument
11847 and its documentation.
11848 (solib_add): Remove unused target argument. Remove unused
11849 argument in call to update_solib_list.
11850 (info_sharedlibrary_command): Remove unused argument in call
11851 to update_solib_list.
11852 (sharedlibrary_command): Remove unused argument in call to
11853 solib_add.
11854 (handle_solib_event): Likewise.
11855 (reload_shared_libraries): Likewise.
11856 * solib.h (solib_add): Remove unused target argument.
11857
dcb84eda
AA
118582017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
11859
11860 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
11861 (s390_displaced_step_fixup): Cover relative branches with the
11862 default fixup handling. This fixes lack of support for some
11863 relative branch instructions.
11864
d9cb6cdc
SM
118652017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11866
11867 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
11868 ptid from regcache.
11869
1afaf9f4
SM
118702017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11871
11872 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
11873 i386_darwin_store_inferior_registers): Use ptid from regcache.
11874
aac12e24
SM
118752017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11876
11877 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
11878 i386bsd_store_inferior_registers): Use ptid from regcache.
11879
bbe1eef1
SM
118802017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11881
11882 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
11883 hppaobsd_store_registers): Use ptid from regcache.
11884
10799020
SM
118852017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11886
11887 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
11888 hppanbsd_store_registers): Use ptid from regcache.
11889
00204cf7
SM
118902017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11891
11892 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
11893 from regcache. Use get_ptrace_pid.
11894
11a33714
SM
118952017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11896
11897 * corelow.c (get_core_register_section): Use ptid from regcache,
11898 update doc.
11899
317cd492
SM
119002017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11901
11902 * bsd-uthread.c (bsd_uthread_fetch_registers,
11903 bsd_uthread_store_registers): Use ptid from regcache, set and
11904 restore inferior_ptid.
11905
9ac8a7c2
SM
119062017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11907
11908 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
11909 fetch_fp_regs, store_register, store_regs, store_fp_register,
11910 store_fp_regs): Use ptid from regcache.
11911
4ac4bb6a
SM
119122017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11913
11914 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
11915 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
11916 store_vfp_regs): Use ptid from regcache.
11917
9bcbdca8
PA
119182017-03-17 Pedro Alves <palves@redhat.com>
11919
11920 PR remote/21188
11921 * ser-base.c (ser_base_wait_for): Add comment.
11922 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
11923 version.
11924 * ser-unix.c (hardwire_raw): Remove reference to
11925 scb->current_timeout.
11926 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
11927 (hardwire_ops): Install ser_base_readchar instead of
11928 hardwire_readchar.
11929 * serial.h (struct serial) <current_timeout, timeout_remaining>:
11930 Remove fields.
11931
7503099f
JG
119322017-03-17 Jonah Graham <jonah@kichwacoders.com>
11933
11934 PR gdb/19637
11935 * python/lib/gdb/printer/bound_registers.py: Add support for
11936 Python 3.
11937
7942e96e
AA
119382017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
11939
11940 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
11941 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
11942 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
11943 byte_offset to subobj_byte_offset. Fix the handling of
11944 DWARF_VALUE_STACK on big-endian targets when coming via an
11945 implicit pointer.
11946 (dwarf2_evaluate_loc_desc): Adjust call to
11947 dwarf2_evaluate_loc_desc_full.
11948 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
11949 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
11950
ba14f379
YQ
119512017-03-16 Yao Qi <yao.qi@linaro.org>
11952
11953 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
11954 and REVSH instructions.
11955
b121eeb9
YQ
119562017-03-16 Yao Qi <yao.qi@linaro.org>
11957
11958 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
11959 (arm_record_test): Declare.
11960 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
11961 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
11962 align with the manual.
11963 (thumb_record_misc): Adjust the code order to align with the
11964 manual.
11965 (thumb2_record_decode_insn_handler): Fix instruction matching.
11966 (instruction_reader_thumb): New class.
11967 (arm_record_test): New function.
11968
728a7913
YQ
119692017-03-16 Yao Qi <yao.qi@linaro.org>
11970
11971 * arm-tdep.c (abstract_memory_reader): New class.
11972 (instruction_reader): New class.
11973 (extract_arm_insn): Add argument 'reader'. Callers updated.
11974 (decode_insn): Likewise.
11975
34b43320
DE
119762017-03-16 Doug Evans <dje@google.com>
11977
a7c0469f
DE
11978 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
11979 member. Change type of TYPE member to SCM. All uses updated.
11980 (lsscm_make_lazy_string_smob): Add assert.
11981 (lsscm_make_lazy_string): Flag bad length values.
11982 (lsscm_elt_type): New function.
11983 (gdbscm_lazy_string_to_value): Rewrite to use
11984 lsscm_safe_lazy_string_to_value.
11985 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
11986 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
11987 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
11988 in incoming type.
11989 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
11990 * guile/scm-type.c (tyscm_scm_to_type): New function.
11991
119922017-03-15 Doug Evans <dje@google.com>
11993
34b43320
DE
11994 PR python/17728, python/18439, python/18779
11995 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
11996 member. Change type of TYPE member to PyObject *. All uses updated.
11997 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
11998 (gdbpy_create_lazy_string_object): Flag bad length values.
11999 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
12000 Handle typedefs in incoming type.
12001 (stpy_lazy_string_elt_type): New function.
12002 (gdbpy_extract_lazy_string): Call it.
12003 * python/py-value.c (valpy_lazy_string): Flag bad length values.
12004 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
12005 typedefs in incoming type.
12006
a3a5fecc
DE
120072017-03-16 Doug Evans <dje@google.com>
12008
12009 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
12010 * guile/scm-type.c (tyscm_scm_to_type): New function.
12011
28f1c605
JW
120122017-03-16 Jiong Wang <jiong.wang@arm.com>
12013
12014 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
12015 "ULONGEST" for "skip".
12016
87c336f6
AA
120172017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
12018
12019 PR gdb/21220
12020 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
12021 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
12022 (inf_ptrace_peek_poke): ...here. New function. Now also loop
12023 over ptrace peek/poke until end of buffer or error.
12024
cf81cf60
SM
120252017-03-14 Simon Marchi <simon.marchi@ericsson.com>
12026
12027 * parse.c (length_of_subexp): Make static.
12028 * parser-defs.h (length_of_subexp): Remove.
12029
a379284a
AA
120302017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
12031
12032 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
12033 as well.
12034
8a6200ba
PA
120352017-03-14 Pedro Alves <palves@redhat.com>
12036
12037 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
12038 (main): Use std::unique_ptr. Remove calls to
12039 cp_demangled_name_parse_free.
12040
f79ec206
SM
120412017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12042
12043 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
12044 alphabsd_store_inferior_registers): Use regcache->ptid instead
12045 of inferior_ptid.
12046
edb5fb00
SM
120472017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12048
12049 * aix-thread.c (aix_thread_fetch_registers,
12050 aix_thread_store_registers): Use regcache->ptid instead of
12051 inferior_ptid.
12052
55119686
SM
120532017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12054
12055 * aarch64-linux-nat.c (fetch_gregs_from_thread,
12056 store_gregs_to_thread, fetch_fpregs_from_thread,
12057 store_fpregs_to_thread): Use regcache->ptid instead of
12058 inferior_ptid.
12059
6a06fbb7
SM
120602017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12061
12062 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
12063 amd64_linux_fetch_inferior_registers): Use regcache->ptid
12064 instead of inferior_ptid.
12065
c6386875
SM
120662017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12067
12068 * target.c (target_fetch_registers, target_store_registers): Add
12069 assert.
12070
ddaaf0fb
SM
120712017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12072
12073 * regcache.h (regcache_get_ptid): New function.
12074 * regcache.c (regcache_get_ptid): New function.
12075
b9da89d1 120762017-03-13 Mark Wielaard <mark@klomp.org>
12077
12078 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
12079
5f4d1085
KS
120802017-03-10 Keith Seitz <keiths@redhat.com>
12081
12082 PR c++/8218
12083 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
12084
c65d6b55
PA
120852017-03-08 Pedro Alves <palves@redhat.com>
12086
12087 PR gdb/18360
12088 * infrun.c (start_step_over, do_target_resume, resume)
12089 (restart_threads): Assert we're not resuming a thread that is
12090 meant to be stopped.
12091 (infrun_thread_stop_requested_callback): Delete.
12092 (infrun_thread_stop_requested): If the thread is internally
12093 stopped, queue a pending stop event and clear the thread's
12094 inline-frame state.
12095 (handle_stop_requested): New function.
12096 (handle_syscall_event, handle_inferior_event_1): Use
12097 handle_stop_requested.
12098 (handle_stop_requested): New function.
12099 (handle_signal_stop): Set the thread's stop_signal here instead of
12100 at caller.
12101 (finish_step_over): Clear step over info unconditionally.
12102 (handle_signal_stop): If the user had interrupted the event
12103 thread, consider the stop a random signal.
12104 (handle_signal_stop) <signal arrived while stepping over
12105 breakpoint>: Don't restart threads here.
12106 (stop_waiting): Don't clear step-over info here.
12107
15c22686
PA
121082017-03-08 Pedro Alves <palves@redhat.com>
12109
12110 PR 21206
12111 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
12112 goes to argument 2, not 1.
12113
6e5d74e7
PA
121142017-03-08 Pedro Alves <palves@redhat.com>
12115
12116 PR cli/21218
12117 * top.c (gdb_readline_wrapper): Avoid passing NULL to
12118 display_gdb_prompt.
12119 (command_line_input): Add comment.
12120
9753a2f6
PA
121212017-03-08 Pedro Alves <palves@redhat.com>
12122
12123 PR tui/21216
12124 * tui/tui-file.c (tui_file::write): New.
12125 * tui/tui-file.h (tui_file): Override "write".
12126 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
12127 factored out from ...
12128 (tui_puts): ... here.
12129 (tui_putc): Use them.
12130 (tui_write): New function.
12131 * tui/tui-io.h (tui_write): Declare.
12132
1672e0d9
SDJ
121332017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
12134
12135 * Makefile.in (SFILES): Replace "environ.c" with
12136 "common/environ.c".
12137 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
12138 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
12139 to...
12140 * common/environ.c: ... here.
12141 * environ.h: Moved to...
12142 * common/environ.h: ... here.
12143
f7bb4e3a
PB
121442017-03-07 Peter Bergner <bergner@vnet.ibm.com>
12145
12146 * gdbarch.sh (pstring_ptr): New static function.
12147 (gdbarch_disassembler_options): Use it.
12148 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
12149 not valid_disassembler_option->name.
12150 * gdbarch.c: Regenerate.
12151
e45ced6c
PB
121522017-03-07 Peter Bergner <bergner@vnet.ibm.com>
12153
12154 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
12155
5f6fd321
PA
121562017-03-07 Pedro Alves <palves@redhat.com>
12157
12158 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
12159
6dbb839a 121602017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
12161
12162 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
12163 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
12164 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 12165 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 12166
d274ecf4
SM
121672017-03-06 Simon Marchi <simon.marchi@ericsson.com>
12168
12169 * xtensa-linux-nat.c (fetch_gregs): Remove const.
12170
df97be55
SM
121712017-03-03 Simon Marchi <simon.marchi@ericsson.com>
12172
12173 * remote.c (remote_add_target_side_commands): Use range-based
12174 for loop.
12175
7d45f3df
YQ
121762017-03-03 Yao Qi <yao.qi@linaro.org>
12177
12178 PR gdb/21165
12179 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
12180 value is lazy.
12181 * valprint.c (common_val_print): Likewise.
12182
65b48a81
PB
121832017-02-28 Peter Bergner <bergner@vnet.ibm.com>
12184
12185 * NEWS: Mention new set/show disassembler-options commands.
12186 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
12187 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
12188 (prospective_options): New static variable.
12189 (gdb_disassembler::gdb_disassembler): Initialize
12190 m_di.disassembler_options.
12191 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
12192 (get_disassembler_options): New function.
12193 (set_disassembler_options): Likewise.
12194 (set_disassembler_options_sfunc): Likewise.
12195 (show_disassembler_options_sfunc): Likewise.
12196 (disassembler_options_completer): Likewise.
12197 (_initialize_disasm): Likewise.
12198 * disasm.h (get_disassembler_options): New prototype.
12199 (set_disassembler_options): Likewise.
12200 * gdbarch.sh (gdbarch_disassembler_options): New variable.
12201 (gdbarch_verify_disassembler_options): Likewise.
12202 * gdbarch.c: Regenerate.
12203 * gdbarch.h: Likewise.
12204 * arm-tdep.c (num_disassembly_options): Delete.
12205 (set_disassembly_style): Likewise.
12206 (arm_disassembler_options): New static variable.
12207 (set_disassembly_style_sfunc): Convert short style name into long
12208 option name. Call set_disassembler_options.
12209 (show_disassembly_style_sfunc): New function.
12210 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
12211 set_gdbarch_verify_disassembler_options.
12212 (_initialize_arm_tdep): Delete regnames variable and update callers.
12213 (arm_disassembler_options): Initialize.
12214 (disasm_options): New variable.
12215 (num_disassembly_options): Rename from this...
12216 (num_disassembly_styles): ...to this. Compute by scanning through
12217 disasm_options.
12218 (valid_disassembly_styles): Initialize using disasm_options.
12219 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
12220 set_arm_regname_option.
12221 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
12222 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
12223 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
12224 set_gdbarch_verify_disassembler_options.
12225 * s390-tdep.c (s390_disassembler_options): New static variable.
12226 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
12227 set_gdbarch_verify_disassembler_options.
12228
d538e36d
SM
122292017-02-27 Simon Marchi <simon.marchi@ericsson.com>
12230
12231 * remote.c (remote_add_target_side_condition): Remove "struct"
12232 keyword from range-based for loop.
12233
83621223
SM
122342017-02-27 Simon Marchi <simon.marchi@ericsson.com>
12235
12236 * remote.c (remote_add_target_side_condition): Use range-based
12237 for loop. Update comment.
12238
2123df0e
YQ
122392017-02-27 Yao Qi <yao.qi@linaro.org>
12240
12241 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
12242
8e368124
AH
122432017-02-26 Alan Hayward <alan.hayward@arm.com>
12244
12245 * regcache.c (regcache_raw_update): New function.
12246 (regcache_raw_read): Move code to regcache_raw_update.
12247 * regcache.h (regcache_raw_update): New declaration.
12248 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
12249
a49dd8dd
JK
122502017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
12251
12252 * dwarf2read.c (create_debug_type_hash_table): Initialize
12253 header.signature and header.type_offset_in_tu.
12254
34e4bae9
PA
122552017-02-24 Pedro Alves <palves@redhat.com>
12256
12257 * symtab.c (make_file_symbol_completion_list_1): Use
12258 add_symtab_completions.
12259
b0e4b369
AH
122602017-02-24 Alan Hayward <alan.hayward@arm.com>
12261
12262 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
12263
975c21ab
AH
122642017-02-24 Alan Hayward <alan.hayward@arm.com>
12265
12266 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
12267 I386_MAX_REGISTER_SIZE.
12268 (i386_pseudo_register_write): Likewise.
12269 (i386_process_record): Likewise.
12270 * i387-tdep.c (i387_supply_xsave): Likewise.
12271 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
12272 (store_register): Likewise.
12273
14bc53a8
PA
122742017-02-23 Pedro Alves <palves@redhat.com>
12275
12276 * ada-lang.c: Include "common/function-view.h".
12277 (ada_iterate_over_symbols): Adjust to use function_view as
12278 callback type.
12279 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
12280 (ada_make_symbol_completion_list): Use a lambda.
12281 (ada_exc_search_name_matches): Delete.
12282 (name_matches_regex): New.
12283 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
12284 * compile/compile-c-support.c: Include "common/function-view.h".
12285 (print_one_macro): Change prototype to accept a ui_file pointer.
12286 (write_macro_definitions): Use a lambda.
12287 * dwarf2read.c: Include "common/function-view.h".
12288 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
12289 (dw2_expand_symtabs_matching): Adjust to use function_view as
12290 callback type.
12291 * language.h: Include "common/function-view.h".
12292 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
12293 function_view as callback type.
12294 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
12295 * linespec.c: Include "common/function-view.h".
12296 (collect_info::add_symbol): New method.
12297 (struct symbol_and_data_callback, iterate_inline_only, struct
12298 symbol_matcher_data, iterate_name_matcher): Delete.
12299 (iterate_over_all_matching_symtabs): Adjust to use function_view
12300 as callback type and lambdas.
12301 (iterate_over_file_blocks): Adjust to use function_view as
12302 callback type.
12303 (decode_compound_collector): Now a class with private fields.
12304 (decode_compound_collector::release_symbols): New method.
12305 (collect_one_symbol): Rename to...
12306 (decode_compound_collector::operator()): ... this and adjust.
12307 (lookup_prefix_sym): decode_compound_collector construction bits
12308 move to decode_compound_collector ctor. Pass the
12309 decode_compound_collector object directly as callback. Remove
12310 cleanups and use decode_compound_collector::release_symbols
12311 instead.
12312 (symtab_collector): Now a class with private fields.
12313 (symtab_collector::release_symtabs): New method.
12314 (add_symtabs_to_list): Rename to...
12315 (symtab_collector::operator()): ... this and adjust.
12316 (collect_symtabs_from_filename): symtab_collector construction
12317 bits move to symtab_collector ctor. Pass the symtab_collector
12318 object directly as callback. Remove cleanups and use
12319 symtab_collector::release_symtabs instead.
12320 (collect_symbols): Delete.
12321 (add_matching_symbols_to_info): Use lambdas.
12322 * macrocmd.c (print_macro_callback): Delete.
12323 (info_macro_command): Use a lambda.
12324 (info_macros_command): Pass print_macro_definition as callable
12325 directly.
12326 (print_one_macro): Remove 'ignore' parameter.
12327 (macro_list_command): Adjust.
12328 * macrotab.c (macro_for_each_data::fn): Now a function_view.
12329 (macro_for_each_data::user_data): Delete field.
12330 (foreach_macro): Adjust to call the function_view.
12331 (macro_for_each): Adjust to use function_view as callback type.
12332 (foreach_macro_in_scope): Adjust to call the function_view.
12333 (macro_for_each_in_scope): Adjust to use function_view as callback
12334 type.
12335 * macrotab.h: Include "common/function-view.h".
12336 (macro_callback_fn): Declare a prototype instead of a pointer.
12337 Remove "user_data" parameter.
12338 (macro_for_each, macro_for_each_in_scope): Adjust to use
12339 function_view as callback type.
12340 * psymtab.c (partial_map_expand_apply)
12341 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
12342 Adjust to use function_view as callback type and to return bool.
12343 (psym_expand_symtabs_matching): Adjust to use function_view as
12344 callback types.
12345 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
12346 to use function_view as callback type and to return bool.
12347 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
12348 callback types.
12349 * symfile.c (expand_symtabs_matching): Adjust to use function_view
12350 as callback types.
12351 * symfile.h: Include "common/function-view.h".
12352 (expand_symtabs_file_matcher_ftype)
12353 (expand_symtabs_symbol_matcher_ftype)
12354 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
12355 return bool.
12356 (quick_symbol_functions::map_symtabs_matching_filename)
12357 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
12358 function_view as callback type and return bool.
12359 (expand_symtabs_matching): Adjust to use function_view as callback
12360 type.
12361 (maintenance_expand_name_matcher)
12362 (maintenance_expand_file_matcher): Delete.
12363 (maintenance_expand_symtabs): Use lambdas.
12364 * symtab.c (iterate_over_some_symtabs): Adjust to use
12365 function_view as callback types and return bool.
12366 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
12367 of a cleanup.
12368 (lookup_symtab_callback): Delete.
12369 (lookup_symtab): Use a lambda.
12370 (iterate_over_symbols): Adjust to use function_view as callback
12371 type.
12372 (struct search_symbols_data, search_symbols_file_matches)
12373 (search_symbols_name_matches): Delete.
12374 (search_symbols): Use a pair of lambdas.
12375 (struct add_name_data, add_macro_name, symbol_completion_matcher)
12376 (symtab_expansion_callback): Delete.
12377 (default_make_symbol_completion_list_break_on_1): Use lambdas.
12378 * symtab.h: Include "common/function-view.h".
12379 (iterate_over_some_symtabs): Adjust to use function_view as
12380 callback type and return bool.
12381 (iterate_over_symtabs): Adjust to use function_view as callback
12382 type.
12383 (symbol_found_callback_ftype): Remove 'data' parameter and return
12384 bool.
12385 (iterate_over_symbols): Adjust to use function_view as callback
12386 type.
12387
07e253aa
PA
123882017-02-23 Pedro Alves <palves@redhat.com>
12389
12390 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
12391 (%.o) <unittests/%.c>: New pattern.
12392 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
12393 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
12394 * common/function-view.h: New file.
12395 * unittests/function-view-selftests.c: New file.
12396 * configure: Regenerate.
12397
8eaf5320
SM
123982017-02-23 Simon Marchi <simon.marchi@ericsson.com>
12399
12400 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
12401 inferior_ptid.
12402 * go32-nat.c (go32_thread_alive): Likewise.
12403
38768751
YQ
124042017-02-23 Yao Qi <yao.qi@linaro.org>
12405
12406 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
12407 delete.
12408
0a8beaba
YQ
124092017-02-23 Yao Qi <yao.qi@linaro.org>
12410
12411 * varobj.c (varobj_clear_saved_item): Use delete instead of
12412 xfree.
12413 (update_dynamic_varobj_children): Likewise.
12414
58fdfd2c
JK
124152017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12416
12417 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
12418
1b90b139
SM
124192017-02-21 Simon Marchi <simon.marchi@ericsson.com>
12420
12421 * common/enum-flags.h (enum_flags::enum_flags): Initialize
12422 m_enum_value to 0 in default constructor.
12423
2039d74e
EBM
124242017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12425
12426 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
12427 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
12428 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
12429 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
12430 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
12431 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
12432 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
12433 IS_STORE_CONDITIONAL_INSN.
12434
7814882a
JK
124352017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12436
12437 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
12438
0ae60b63
JK
124392017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12440
12441 * NEWS (Changes since GDB 7.12): Add DWARF-5.
12442
0224619f
JK
124432017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12444
12445 * dwarf2read.c (skip_one_die, read_attribute_value)
12446 (dwarf2_const_value_attr, dump_die_shallow)
12447 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
12448 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
12449
0af92d60
JK
124502017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12451
12452 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
12453 (dwarf_parse_macro_header): Accept DWARF version 5.
12454 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
12455
216f72a1
JK
124562017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12457
12458 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
12459 DW_AT_GNU_*.
12460 * common/common-exceptions.h (enum errors): Likewise.
12461 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
12462 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
12463 (dwarf_expr_context::execute_stack_op): Likewise.
12464 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
12465 Likewise.
12466 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
12467 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12468 (show_entry_values_debug, call_site_to_target_addr)
12469 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
12470 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
12471 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
12472 (value_of_dwarf_block_entry, indirect_pieced_value)
12473 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
12474 (disassemble_dwarf_expression): Likewise.
12475 * dwarf2read.c (process_die, inherit_abstract_dies)
12476 (read_call_site_scope): Likewise.
12477 * gdbtypes.h (struct func_type, struct call_site_parameter)
12478 (struct call_site): Likewise.
12479 * stack.c (read_frame_arg): Likewise.
12480 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
12481
43988095
JK
124822017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12483
12484 * defs.h (read_unsigned_leb128): New declaration.
12485 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
12486 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
12487 (dwarf2_find_location_expression): Call also
12488 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
12489 * dwarf2loc.h (dwarf2_version): New declaration.
12490 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
12491 rnglists.
12492 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
12493 .debug_rnglists.
12494 (struct dwop_section_names): Add loclists_dwo.
12495 (dwop_section_names): Add .debug_loclists.dwo.
12496 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
12497 (struct dwarf2_per_cu_data): Add dwarf_version.
12498 (struct dwo_sections): Add loclists.
12499 (struct attr_abbrev): Add implicit_const.
12500 (read_indirect_line_string): New declaration.
12501 (read_unsigned_leb128): Delete declaration.
12502 (rcuh_kind): New definition.
12503 (read_and_check_comp_unit_head): Change parameter
12504 is_debug_types_section to section_kind.
12505 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
12506 (read_comp_unit_head): Change parameter abfd to section, add parameter
12507 section_kind. Handle DWARF-5.
12508 (error_check_comp_unit_head): Accept also DWARF version 5.
12509 (read_and_check_comp_unit_head): Change parameter
12510 is_debug_types_section to section_kind.
12511 (read_and_check_type_unit_head): Delete function.
12512 (read_abbrev_offset): Handle DWARF-5.
12513 (create_debug_type_hash_table): Add parameter section_kind. Process
12514 only DW_UT_type. Use signature and type_offset_in_tu from struct
12515 comp_unit_head.
12516 (create_debug_types_hash_table): Update create_debug_type_hash_table
12517 caller.
12518 (create_all_type_units): Call create_debug_type_hash_table.
12519 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
12520 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
12521 caller.
12522 (skip_one_die): Handle DW_FORM_implicit_const.
12523 (dwarf2_rnglists_process): New function.
12524 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
12525 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
12526 (read_attribute_value): Handle DW_FORM_implicit_const,
12527 DW_FORM_line_strp.
12528 (read_attribute): Handle DW_FORM_implicit_const.
12529 (read_indirect_string_at_offset_from): New function from
12530 read_indirect_string_at_offset.
12531 (read_indirect_string_at_offset): Call
12532 read_indirect_string_at_offset_from.
12533 (read_indirect_line_string_at_offset): New function.
12534 (read_indirect_string): New function comment.
12535 (read_indirect_line_string): New function.
12536 (read_unsigned_leb128): Make it global.
12537 (dwarf2_string_attr): Handle DWARF-5.
12538 (add_include_dir_stub, read_formatted_entries): New functions.
12539 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
12540 Handle DWARF-5.
12541 (per_cu_header_read_in): Update read_comp_unit_head caller.
12542 (dwarf2_version): New function.
12543 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
12544 rnglists.
12545 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
12546 fields.
12547
22d2f3ab
JK
125482017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12549
12550 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
12551
5f46c5a5
JK
125522017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12553
12554 * dwarf2read.c (dwarf2_ranges_process): New function from
12555 dwarf2_ranges_read.
12556 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
12557 dwarf2_ranges_process.
12558
78d4d2c5
JK
125592017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12560
12561 * dwarf2read.c (create_debug_type_hash_table): New function from
12562 create_debug_types_hash_table.
12563 (create_debug_types_hash_table): Call create_debug_type_hash_table.
12564 (create_all_type_units, open_and_init_dwo_file): Update
12565 create_debug_types_hash_table callers.
12566
1b076f25
SDJ
125672017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12568
12569 PR gdb/16188
12570 * fork-child.c (trace_start_error): Fix thinko. va_end should
12571 refer to 'ap', not 'args'.
12572
0db8980c
SDJ
125732017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12574 Pedro Alves <palves@redhat.com>
12575
12576 PR gdb/16188
12577 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
12578 calls succeeded.
12579 * fork-child.c (trace_start_error): New function.
12580 (trace_start_error_with_name): Likewise.
12581 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
12582 * inf-ptrace.c (inf_ptrace_me): Likewise.
12583 * inferior.h (trace_start_error): New prototype.
12584 (trace_start_error_with_name): Likewise.
12585
99e8a4f9
SDJ
125862017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
12587
12588 PR gdb/21164
12589 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
12590 NULL before using it.
12591 * symmisc.c (maintenance_print_symbols): Likewise.
12592 (maintenance_print_msymbols): Likewise.
12593
4e746bb6
TW
125942017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12595
12596 * NEWS: Add record Python bindings entry.
12597
125982017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12599
12600 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
12601 py-record-full.o.
12602 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
12603 * python/py-record-btrace.c, python/py-record-btrace.h,
12604 python/py-record-full.c, python/py-record-full.h: New file.
12605 * python/py-record.c: Add include for py-record-btrace.h and
12606 py-record-full.h.
12607 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
12608 recpy_instruction_history, recpy_function_call_history, recpy_begin,
12609 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
12610 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
12611 New definition.
12612 (gdbpy_initialize_btrace): New export.
12613 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
12614
126152017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12616
12617 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
12618 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
12619 * python/py-record.c: New file.
12620 * python/python-internal.h (gdbpy_start_recording,
12621 gdbpy_current_recording, gdpy_stop_recording,
12622 gdbpy_initialize_record): New export.
12623 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
12624 (python_GdbMethods): Add gdbpy_start_recording,
12625 gdbpy_current_recording and gdbpy_stop_recording.
12626
126272017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12628
12629 * record-btrace.c (record_btrace_record_method): New function.
12630 (init_record_btrace_ops): Initialize to_record_method.
12631 * record-full.c (record_full_record_method): New function.
12632 (init_record_full_ops, init_record_full_core_ops): Add
12633 record_full_record_method.
12634 * record.h (enum record_method): New enum.
12635 * target-debug.h (target_debug_print_enum_record_method: New define.
12636 * target-delegates.c: Regenerate.
12637 * target.c (target_record_method): New function.
12638 * target.h: Include record.h.
12639 (struct target_ops) <to_record_method>: New field.
12640 (target_record_method): New export.
12641
126422017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12643
12644 * record.h (record_start, record_stop): New export.
12645 * record.c (record_start, record_stop): New function.
12646
126472017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12648
12649 * btrace.c (btrace_fetch): Copy function call segments pointer
12650 into a vector.
12651 (btrace_clear): Clear the vector.
12652 (btrace_find_insn_by_number): Use binary search to find the correct
12653 function call segment.
12654 * btrace.h (brace_fun_p): New typedef.
12655 (struct btrace_thread_info) <functions>: New field.
12656
126572017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12658
12659 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
12660 * btrace.c (btrace_decode_error): ... here. New function.
12661 * btrace.h (btrace_decode_error): New export.
12662
126632017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12664
12665 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
12666 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
12667 btrace_find_insn_by_number): Remove special case for gaps.
12668 * btrace.h (btrace_insn_get_error): New export.
12669 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
12670 * record-btrace.c (btrace_insn_history): Print number for gaps.
12671 (record_btrace_info, record_btrace_goto): Handle gaps.
12672
3f77c769
TT
126732017-02-14 Tom Tromey <tom@tromey.com>
12674
12675 PR python/13598:
12676 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
12677 event.
12678 * python/py-evts.c (gdbpy_initialize_py_events): Add
12679 before_prompt registry.
12680 * python/py-events.h (events_object) <before_prompt>: New field.
12681
4c2c7ac6
MM
126822017-02-14 Markus Metzger <markus.t.metzger@intel.com>
12683
12684 * btrace.c (ftrace_new_switch): Preserve up link and flags.
12685
5cf30ebf
LM
126862017-02-13 Luis Machado <lgustavo@codesourcery.com>
12687
12688 * symfile (_initialize_symfile): Add usage text to the load command's
12689 help text.
12690
26a06916
SM
126912017-02-10 Simon Marchi <simon.marchi@ericsson.com>
12692
12693 * utils.c (defaulted_query): Don't query on secondary UIs.
12694
0b145e37
TT
126952017-02-10 Tom Tromey <tom@tromey.com>
12696
12697 * rust-lang.c (rust_get_disr_info): Remove unused variable.
12698
2d8365c4
TT
126992017-02-10 Tom Tromey <tom@tromey.com>
12700
12701 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
12702 "cleanup" local.
12703 * python/py-type.c (typy_legacy_template_argument): Remove
12704 unnecessary "cleanup" local.
12705
2bb8f231
TT
127062017-02-10 Tom Tromey <tom@tromey.com>
12707
12708 * python/python.c (do_start_initialization): New function, from
12709 _initialize_python.
12710 (_initialize_python): Call do_start_initialization.
12711 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
12712 goto.
12713
1bdfaf42
TT
127142017-02-10 Tom Tromey <tom@tromey.com>
12715
12716 * python/py-prettyprint.c (pretty_print_one_value): Use
12717 gdbpy_ref.
12718
88b6faea
TT
127192017-02-10 Tom Tromey <tom@tromey.com>
12720
12721 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
12722 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
12723 gdbpy_ref.
12724 * python/py-type.c (field_new): Use gdbpy_ref.
12725 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
12726 gdbpy_ref.
12727 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
12728 (py_free_pspace): Likewise.
12729 (pspace_to_pspace_object): Likewise.
12730 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
12731 (py_free_objfile): Likewise.
12732 (objfile_to_objfile_object): Likewise.
12733 * python/py-inferior.c (delete_thread_object): Use
12734 gdbpy_ref.
12735 (infpy_read_memory): Likewise.
12736 (py_free_inferior): Likewise.
12737 * python/py-evtregistry.c (create_eventregistry_object): Use
12738 gdbpy_ref.
12739 * python/py-event.c (create_event_object): Use gdbpy_ref.
12740
7780f186
TT
127412017-02-10 Tom Tromey <tom@tromey.com>
12742
12743 * python/py-ref.h (gdbpy_ref_policy): Now a template.
12744 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
12745 used.
12746 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
12747 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
12748 python/py-exitedevent.c, python/py-finishbreakpoint.c,
12749 python/py-framefilter.c, python/py-function.c,
12750 python/py-inferior.c, python/py-infevents.c,
12751 python/py-linetable.c, python/py-newobjfileevent.c,
12752 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
12753 python/py-signalevent.c, python/py-stopevent.c,
12754 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
12755 python/py-unwind.c, python/py-utils.c, python/py-value.c,
12756 python/py-varobj.c, python/py-xmethods.c, python/python.c,
12757 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
12758
d4b0bb18
TT
127592017-02-10 Tom Tromey <tom@tromey.com>
12760
12761 * ui-out.h (ui_out_emit_type): New class.
12762 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
12763 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
12764 and ui_out_emit_tuple.
12765 (enumerate_locals): Likewise.
12766 (py_mi_print_variables, py_print_locals, py_print_args): Use
12767 ui_out_emit_list.
12768 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
12769 ui_out_emit_list.
12770 * common/gdb_optional.h: New file.
12771
f67f945c
MG
127722017-02-10 Martin Galvan <martingalvan@sourceware.org>
12773
12774 * MAINTAINERS (Write After Approval): Update my e-mail address.
12775
18da0c51
MG
127762017-02-10 Martin Galvan <martingalvan@sourceware.org>
12777
12778 PR gdb/21122
12779 * breakpoint.c (_initialize_breakpoint): Update the help description
12780 of the 'commands' command to indicate that it takes a list argument.
12781
62c14536
SM
127822017-02-09 Simon Marchi <simon.marchi@ericsson.com>
12783
12784 * interps.c (current_interp_set_logging): Remove "return".
12785
ff6fa247
GB
127862017-02-09 Gary Benson <gbenson@redhat.com>
12787
12788 * symtab.c (add_symtab_completions): Prevent NULL pointer
12789 dereference.
12790
a474bd8e
PA
127912017-02-08 Pedro Alves <palves@redhat.com>
12792
12793 * interps.c (interp::interp): Remove reference to quiet_p.
12794 (interp_set): Make static. Remove dead "Switching to" output
12795 code.
12796 (interp_quiet_p, interp_set_quiet): Delete.
12797 (interpreter_exec_cmd): Don't set the interpreter quiet.
12798 * interps.h (interp_quiet_p): Make static.
12799 (class interp) <quiet_p>: Remove field
12800
3d7b173c
JG
128012017-02-08 Jerome Guitton <guitton@adacore.com>
12802
604c4576
JG
12803 * cli/cli-decode.c (find_command_name_length): Make it extern.
12804 * cli/cli-decode.h (find_command_name_length): Declare.
12805 * cli/cli-script.c (command_name_equals, line_first_arg):
12806 New functions.
12807 (process_next_line): Use cli-decode to parse command names.
12808 (build_command_line): Make args a constant pointer.
12809
128102017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 12811
3d7b173c
JG
12812 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
12813 Remove case-insensitive search.
12814
1291063d
JM
128152017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
12816
12817 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
12818 at the end of the line. Avoids an ARI warning.
12819
20b477a7
LM
128202017-02-06 Luis Machado <lgustavo@codesourcery.com>
12821
12822 * NEWS: Mention support for record/replay of Intel 64 rdrand and
12823 rdseed instructions.
12824 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
12825
3f7b46f2
IR
128262017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
12827
12828 PR tdep/20936
12829 Provide and use sparc32 and sparc64 target description XML files.
12830 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
12831 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
12832 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
12833 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
12834 * features/sparc/sparc32-solaris.xml: New file.
12835 * features/sparc/sparc64-solaris.xml: New file.
12836 * features/sparc/sparc32-solaris.c: Generated.
12837 * features/sparc/sparc64-solaris.c: Generated.
12838 * sparc-tdep.h: Account for differences in target descriptions.
12839 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
12840 (sparc32_register_type): Use target provided registers.
12841 (validate_tdesc_registers): New function.
12842 (sparc32_gdbarch_init): Use tdesc_has_registers.
12843 Set pseudoregister functions.
12844 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
12845 (sparc64_register_type): Use target provided registers.
12846 (sparc64_init_abi): Set pseudoregister functions.
12847
f0fd41c1
TT
128482017-02-03 Tom Tromey <tom@tromey.com>
12849
12850 PR rust/21097:
12851 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
12852 with a single member.
12853
d6f9b0fb
PA
128542017-02-03 Pedro Alves <palves@redhat.com>
12855
12856 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
12857 (cli_interp_base::~cli_interp_base): New.
12858 (cli_interp): New struct.
12859 (as_cli_interp): Cast the interp itself to cli_interp.
12860 (cli_interpreter_pre_command_loop): Rename to ...
12861 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
12862 parameter.
12863 (cli_interpreter_init): Rename to ...
12864 (cli_interp::init): ... this. Remove 'self' parameter. Use
12865 boolean. Make extern.
12866 (cli_interpreter_resume): Rename to ...
12867 (cli_interp::resume): ... this. Remove 'data' parameter. Make
12868 extern.
12869 (cli_interpreter_suspend): Rename to ...
12870 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
12871 extern.
12872 (cli_interpreter_exec): Rename to ...
12873 (cli_interp::exec): ... this. Remove 'data' parameter. Make
12874 extern.
12875 (cli_interpreter_supports_command_editing): Rename to ...
12876 (cli_interp_base::supports_command_editing): ... this. Remove
12877 'interp' parameter. Make extern.
12878 (cli_ui_out): Rename to ...
12879 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
12880 Make extern.
12881 (cli_set_logging): Rename to ...
12882 (cli_interp_base::set_logging): ... this. Remove 'interp'
12883 parameter. Make extern.
12884 (cli_interp_procs): Delete.
12885 (cli_interp_factory): Adjust to use "new".
12886 * cli/cli-interp.h: Include "interps.h".
12887 (struct cli_interp_base): New struct.
12888 * interps.c (struct interp): Delete. Fields moved to interps.h.
12889 (interp_new): Delete.
12890 (interp::interp, interp::~interp): New.
12891 (interp_set): Use bool, and return void. Assume the interpreter
12892 has suspend, init and resume methods, and that the all return
12893 void.
12894 (set_top_level_interpreter): interp_set returns void.
12895 (interp_ui_out): Adapt.
12896 (current_interp_set_logging): Adapt.
12897 (interp_data): Delete.
12898 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
12899 (interp_exec): Adapt.
12900 (top_level_interpreter_data): Delete.
12901 * interps.h (interp_init_ftype, interp_resume_ftype)
12902 (interp_suspend_ftype, interp_exec_ftype)
12903 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
12904 (class interp): New.
12905 (interp_new): Delete.
12906 (interp_set): Now returns void. Use bool.
12907 (interp_data, top_level_interpreter_data): Delete.
12908 * mi/mi-common.h: Include interps.h.
12909 (class mi_interp): Inherit from interp. Define a ctor. Declare
12910 init, resume, suspect, exec, interp_ui_out, set_logging and
12911 pre_command_loop methods.
12912 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
12913 (mi_interpreter_init): Rename to ...
12914 (mi_interp::init): ... this. Remove the 'interp' parameter, use
12915 bool, return void and make extern. Adjust.
12916 (mi_interpreter_resume): ... Rename to ...
12917 (mi_interp::resume): ... this. Remove the 'data' parameter,
12918 return void and make extern. Adjust.
12919 (mi_interpreter_suspend): ... Rename to ...
12920 (mi_interp::suspend): ... this. Remove the 'data' parameter,
12921 return void and make extern. Adjust.
12922 (mi_interpreter_exec): ... Rename to ...
12923 (mi_interp::exec): ... this. Remove the 'data' parameter and make
12924 extern. Adjust.
12925 (mi_interpreter_pre_command_loop): ... Rename to ...
12926 (mi_interp::pre_command_loop): ... this. Remove the 'self'
12927 parameter and make extern.
12928 (mi_on_normal_stop_1): Adjust.
12929 (mi_ui_out): Rename to ...
12930 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
12931 parameter and make extern. Adjust.
12932 (mi_set_logging): Rename to ...
12933 (mi_interp::set_logging): ... this. Remove the 'interp'
12934 parameter and make extern. Adjust.
12935 (mi_interp_procs): Delete.
12936 (mi_interp_factory): Adjust to use 'new'.
12937 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
12938 (mi_print_exception, mi_execute_command, mi_load_progress):
12939 Adjust.
12940 * tui/tui-interp.c (tui_interp): New class.
12941 (as_tui_interp): Return a tui_interp pointer.
12942 (tui_on_normal_stop, tui_on_signal_received)
12943 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
12944 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
12945 to use interp::interp_ui_out.
12946 (tui_init): Rename to ...
12947 (tui_interp::init): ... this. Remove the 'self' parameter, use
12948 bool, return void and make extern. Adjust.
12949 (tui_resume): Rename to ...
12950 (tui_interp::resume): ... this. Remove the 'data' parameter,
12951 return void and make extern. Adjust.
12952 (tui_suspend): Rename to ...
12953 (tui_interp::suspend): ... this. Remove the 'data' parameter,
12954 return void and make extern. Adjust.
12955 (tui_ui_out): Rename to ...
12956 (tui_interp::interp_ui_out): ... this. Remove the 'self'
12957 parameter, and make extern. Adjust.
12958 (tui_exec): Rename to ...
12959 (tui_interp::exec): ... this. Remove the 'data' parameter and
12960 make extern.
12961 (tui_interp_procs): Delete.
12962 (tui_interp_factory): Use "new".
12963
65c40c95
TT
129642017-02-02 Tom Tromey <tom@tromey.com>
12965
12966 * rust-exp.y (ends_raw_string, space_then_number)
12967 (rust_identifier_start_p): Return bool.
12968 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
12969 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
12970 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
12971 (rust_chartype_p): Return bool.
12972 (val_print_struct, rust_print_struct_def, rust_print_type):
12973 Update.
12974 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
12975 Return bool.
12976
b50f188d
TT
129772017-02-02 Tom Tromey <tom@tromey.com>
12978
12979 * rust-lang.c: Reindent.
12980
03c85b11
TT
129812017-02-02 Tom Tromey <tom@tromey.com>
12982
12983 * rust-lang.h (rust_crate_for_block): Update.
12984 * rust-lang.c (rust_crate_for_block): Return std::string.
12985 (rust_get_disr_info): Use std:;string, not
12986 gdb::unique_xmalloc_ptr.
12987 * rust-exp.y (crate_name): Update.
12988
9b6da501
PA
129892017-02-02 Pedro Alves <palves@redhat.com>
12990
12991 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
12992 field out of gdb_disassembler_test and make it static.
12993
ec4cb20b
PA
129942017-02-02 Pedro Alves <palves@redhat.com>
12995
12996 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
12997 mi1_interp and mi_interp fields.
12998
5be5dbf0
PA
129992017-02-02 Pedro Alves <palves@redhat.com>
13000
616268b6
PA
13001 * cli/cli-interp.c (struct saved_output_files, saved_output):
13002 Moved from cli/cli-logging.c.
13003 (cli_set_logging): New function.
13004 (cli_interp_procs): Install cli_set_logging.
13005 * cli/cli-interp.h (make_logging_output, cli_set_logging):
13006 Declare.
13007 * cli/cli-logging.c (struct saved_output_files, saved_output):
13008 Moved to cli/cli-interp.c.
13009 (pop_output_files): Don't save outputs here.
13010 (make_logging_output): New function.
13011 (handle_redirections): Don't build tee nor save previous outputs
13012 here.
13013 * interps.c (current_interp_set_logging): Change prototype.
13014 Assume there's always a set_logging_proc method installed.
13015 * interps.h (interp_set_logging_ftype): Change prototype.
13016 (current_interp_set_logging): Change prototype and adjust comment.
13017 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
13018 use make_logging_output.
13019 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
130202017-02-02 Pedro Alves <palves@redhat.com>
13021
5be5dbf0
PA
13022 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
13023 from ...
13024 (set_logging_overwrite): ... here.
13025 (logging_no_redirect_file): Delete.
13026 (set_logging_redirect): Don't handle redirection on the fly.
13027 Instead warn that "logging off" / "logging on" is necessary.
13028 (pop_output_files): Delete references to logging_no_redirect_file.
13029 (show_logging_command): Always speak in terms of what will happen
13030 once logging is reenabled.
13031
c99cc448
PA
130322017-02-02 Pedro Alves <palves@redhat.com>
13033
13034 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
13035
8b172ce7
PA
130362017-02-02 Pedro Alves <palves@redhat.com>
13037
13038 * disasm.c (gdb_pretty_print_insn): Rename to ...
13039 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
13040 Remove gdbarch parameter. Adapt to clear the object's buffers
13041 instead of allocating new buffers, and to print using the object's
13042 gdb_disassembler instead of calling gdb_print_insn.
13043 (dump_insns): Use gdb_pretty_print_disassembler.
13044 * disasm.h (gdb_pretty_print_insn): Delete declaration.
13045 (gdb_pretty_print_disassembler): New class.
13046 * record-btrace.c (btrace_insn_history): Use
13047 gdb_pretty_print_disassembler.
13048
d7e74731
PA
130492017-02-02 Pedro Alves <palves@redhat.com>
13050
13051 * ada-lang.c (type_as_string): Use string_file.
13052 * ada-valprint.c (ada_print_floating): Use string_file.
13053 * ada-varobj.c (ada_varobj_scalar_image)
13054 (ada_varobj_get_value_image): Use string_file.
13055 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
13056 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
13057 * breakpoint.c (update_inserted_breakpoint_locations)
13058 (insert_breakpoint_locations, reattach_breakpoints)
13059 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
13060 (print_it_watchpoint): Use string_file.
13061 (save_breakpoints): Use stdio_file.
13062 * c-exp.y (oper): Use string_file.
13063 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
13064 tee_file.
13065 (pop_output_files): Use delete.
13066 (handle_redirections): Use stdio_file and tee_file.
13067 * cli/cli-setshow.c (do_show_command): Use string_file.
13068 * compile/compile-c-support.c (c_compute_program): Use
13069 string_file.
13070 * compile/compile-c-symbols.c (generate_vla_size): Take a
13071 'string_file &' instead of a 'ui_file *'.
13072 (generate_c_for_for_one_variable): Take a 'string_file &' instead
13073 of a 'ui_file *'. Use string_file.
13074 (generate_c_for_variable_locations): Take a 'string_file &'
13075 instead of a 'ui_file *'.
13076 * compile/compile-internal.h (generate_c_for_for_one_variable):
13077 Take a 'string_file &' instead of a 'ui_file *'.
13078 * compile/compile-loc2c.c (push, pushf, unary, binary)
13079 (print_label, pushf_register_address, pushf_register)
13080 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
13081 'ui_file *'. Adjust.
13082 * compile/compile.c (compile_to_object): Use string_file.
13083 * compile/compile.h (compile_dwarf_expr_to_c)
13084 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
13085 'ui_file *'.
13086 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
13087 (replace_typedefs_qualified_name): Use string_file and
13088 obstack_copy0.
13089 * disasm.c (gdb_pretty_print_insn): Use string_file.
13090 (gdb_disassembly): Adjust reference the null_stream global.
13091 (do_ui_file_delete): Delete.
13092 (gdb_insn_length): Use null_stream.
13093 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
13094 * dwarf2loc.c (dwarf2_compile_property_to_c)
13095 (locexpr_generate_c_location, loclist_generate_c_location): Take a
13096 'string_file &' instead of a 'ui_file *'.
13097 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
13098 * dwarf2read.c (do_ui_file_peek_last): Delete.
13099 (dwarf2_compute_name): Use string_file.
13100 * event-top.c (gdb_setup_readline): Use stdio_file.
13101 * gdbarch.sh (verify_gdbarch): Use string_file.
13102 * gdbtypes.c (safe_parse_type): Use null_stream.
13103 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
13104 string_file.
13105 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
13106 'string_file *' instead of a 'ui_file *'.
13107 (gdbscm_arch_disassemble): Use string_file.
13108 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
13109 * guile/scm-ports.c (class ioscm_file_port): Now a class that
13110 inherits from ui_file.
13111 (ioscm_file_port_delete, ioscm_file_port_rewind)
13112 (ioscm_file_port_put): Delete.
13113 (ioscm_file_port_write): Rename to ...
13114 (ioscm_file_port::write): ... this. Remove file_port_magic
13115 checks.
13116 (ioscm_file_port_new): Delete.
13117 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
13118 ui_file_up.
13119 * guile/scm-type.c (tyscm_type_name): Use string_file.
13120 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
13121 Use string_file.
13122 * infcmd.c (print_return_value_1): Use string_file.
13123 * infrun.c (print_target_wait_results): Use string_file.
13124 * language.c (add_language): Use string_file.
13125 * location.c (explicit_to_string_internal): Use string_file.
13126 * main.c (captured_main_1): Use null_file.
13127 * maint.c (maintenance_print_architecture): Use stdio_file.
13128 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
13129 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
13130 event_channel>: Change type to mi_console_file pointer.
13131 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
13132 (mi_console_file_delete): Delete.
13133 (struct mi_console_file): Delete.
13134 (mi_console_file_magic): Delete.
13135 (mi_console_file_new): Delete.
13136 (mi_console_file::mi_console_file): New.
13137 (mi_console_file_delete): Delete.
13138 (mi_console_file_fputs): Delete.
13139 (mi_console_file::write): New.
13140 (mi_console_raw_packet): Delete.
13141 (mi_console_file::flush): New.
13142 (mi_console_file_flush): Delete.
13143 (mi_console_set_raw): Rename to ...
13144 (mi_console_file::set_raw): ... this.
13145 * mi/mi-console.h (class mi_console_file): New class.
13146 (mi_console_file_new, mi_console_set_raw): Delete.
13147 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
13148 (mi_set_logging): Use delete and tee_file. Adjust.
13149 * mi/mi-main.c (output_register): Use string_file.
13150 (mi_cmd_data_evaluate_expression): Use string_file.
13151 (mi_cmd_data_read_memory): Use string_file.
13152 (mi_cmd_execute, print_variable_or_computed): Use string_file.
13153 * mi/mi-out.c (mi_ui_out::main_stream): New.
13154 (mi_ui_out::rewind): Use main_stream and
13155 string_file.
13156 (mi_ui_out::put): Use main_stream and string_file.
13157 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
13158 Allocate a 'string_file' instead.
13159 (mi_out_new): Don't allocate a mem_fileopen stream here.
13160 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
13161 (mi_ui_out::main_stream): Declare method.
13162 * printcmd.c (eval_command): Use string_file.
13163 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
13164 * python/py-arch.c (archpy_disassemble): Use string_file.
13165 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
13166 * python/py-frame.c (frapy_str): Use string_file.
13167 * python/py-framefilter.c (py_print_type, py_print_single_arg):
13168 Use string_file.
13169 * python/py-type.c (typy_str): Use string_file.
13170 * python/py-unwind.c (unwind_infopy_str): Use string_file.
13171 * python/py-value.c (valpy_str): Use string_file.
13172 * record-btrace.c (btrace_insn_history): Use string_file.
13173 * regcache.c (regcache_print): Use stdio_file.
13174 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
13175 * remote.c (escape_buffer): Use string_file.
13176 * rust-lang.c (rust_get_disr_info): Use string_file.
13177 * serial.c (serial_open_ops_1): Use stdio_file.
13178 (do_serial_close): Use delete.
13179 * stack.c (print_frame_arg): Use string_file.
13180 (print_frame_args): Remove local mem_fileopen stream, not used.
13181 (print_frame): Use string_file.
13182 * symmisc.c (maintenance_print_symbols): Use stdio_file.
13183 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
13184 Take a 'string_file *' instead of a 'ui_file *'.
13185 * top.c (new_ui): Use stdio_file and stderr_file.
13186 (free_ui): Use delete.
13187 (execute_command_to_string): Use string_file.
13188 (quit_confirm): Use string_file.
13189 * tracepoint.c (collection_list::append_exp): Use string_file.
13190 * tui/tui-disasm.c (tui_disassemble): Use string_file.
13191 * tui/tui-file.c: Don't include "ui-file.h".
13192 (enum streamtype, struct tui_stream): Delete.
13193 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
13194 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
13195 (tui_file::tui_file): New method.
13196 (tui_file_fputs): Delete.
13197 (tui_file_get_strbuf): Delete.
13198 (tui_file::puts): New method.
13199 (tui_file_adjust_strbuf): Delete.
13200 (tui_file_flush): Delete.
13201 (tui_file::flush): New method.
13202 * tui/tui-file.h: Tweak intro comment.
13203 Include ui-file.h.
13204 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
13205 (tui_file_adjust_strbuf): Delete declarations.
13206 (class tui_file): New class.
13207 * tui/tui-io.c (tui_initialize_io): Use tui_file.
13208 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
13209 (tui_register_format): Use string_stream.
13210 * tui/tui-stack.c (tui_make_status_line): Use string_file.
13211 (tui_get_function_from_frame): Use string_file.
13212 * typeprint.c (type_to_string): Use string_file.
13213 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
13214 (null_stream): New global.
13215 (ui_file_delete): Delete.
13216 (ui_file::ui_file): New.
13217 (null_file_isatty): Delete.
13218 (ui_file::~ui_file): New.
13219 (null_file_rewind): Delete.
13220 (ui_file::printf): New.
13221 (null_file_put): Delete.
13222 (null_file_flush): Delete.
13223 (ui_file::putstr): New.
13224 (null_file_write): Delete.
13225 (ui_file::putstrn): New.
13226 (null_file_read): Delete.
13227 (ui_file::putc): New.
13228 (null_file_fputs): Delete.
13229 (null_file_write_async_safe): Delete.
13230 (ui_file::vprintf): New.
13231 (null_file_delete): Delete.
13232 (null_file::write): New.
13233 (null_file_fseek): Delete.
13234 (null_file::puts): New.
13235 (ui_file_data): Delete.
13236 (null_file::write_async_safe): New.
13237 (gdb_flush, ui_file_isatty): Adjust.
13238 (ui_file_put, ui_file_rewind): Delete.
13239 (ui_file_write): Adjust.
13240 (ui_file_write_for_put): Delete.
13241 (ui_file_write_async_safe, ui_file_read): Adjust.
13242 (ui_file_fseek): Delete.
13243 (fputs_unfiltered): Adjust.
13244 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
13245 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
13246 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
13247 (set_ui_file_data): Delete.
13248 (string_file::~string_file, string_file::write)
13249 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
13250 (do_ui_file_as_string, ui_file_as_string): Delete.
13251 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
13252 (struct mem_file): Delete.
13253 (mem_file_new): Delete.
13254 (stdio_file::stdio_file): New.
13255 (mem_file_delete): Delete.
13256 (stdio_file::stdio_file): New.
13257 (mem_fileopen): Delete.
13258 (stdio_file::~stdio_file): New.
13259 (mem_file_rewind): Delete.
13260 (stdio_file::set_stream): New.
13261 (mem_file_put): Delete.
13262 (stdio_file::open): New.
13263 (mem_file_write): Delete.
13264 (stdio_file_magic, struct stdio_file): Delete.
13265 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
13266 (stdio_file::flush): New.
13267 (stdio_file_read): Rename to ...
13268 (stdio_file::read): ... this. Adjust.
13269 (stdio_file_write): Rename to ...
13270 (stdio_file::write): ... this. Adjust.
13271 (stdio_file_write_async_safe): Rename to ...
13272 (stdio_file::write_async_safe) ... this. Adjust.
13273 (stdio_file_fputs): Rename to ...
13274 (stdio_file::puts) ... this. Adjust.
13275 (stdio_file_isatty): Delete.
13276 (stdio_file_fseek): Delete.
13277 (stdio_file::isatty): New.
13278 (stderr_file_write): Rename to ...
13279 (stderr_file::write) ... this. Adjust.
13280 (stderr_file_fputs): Rename to ...
13281 (stderr_file::puts) ... this. Adjust.
13282 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
13283 (stderr_file::stderr_file): New.
13284 (tee_file_magic): Delete.
13285 (struct tee_file): Delete.
13286 (tee_file::tee_file): New.
13287 (tee_file_new): Delete.
13288 (tee_file::~tee_file): New.
13289 (tee_file_delete): Delete.
13290 (tee_file_flush): Rename to ...
13291 (tee_file::flush): ... this. Adjust.
13292 (tee_file_write): Rename to ...
13293 (tee_file::write): ... this. Adjust.
13294 (tee_file::write_async_safe): New.
13295 (tee_file_fputs): Rename to ...
13296 (tee_file::puts): ... this. Adjust.
13297 (tee_file_isatty): Rename to ...
13298 (tee_file::isatty): ... this. Adjust.
13299 * ui-file.h (struct obstack, struct ui_file): Don't
13300 forward-declare.
13301 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
13302 (ui_file_write_ftype)
13303 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
13304 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
13305 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
13306 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
13307 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
13308 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
13309 (set_ui_file_fseek): Delete.
13310 (ui_file_data, ui_file_delete, ui_file_rewind)
13311 (struct ui_file): New.
13312 (ui_file_up): New.
13313 (class null_file): New.
13314 (null_stream): Declare.
13315 (ui_file_write_for_put, ui_file_put): Delete.
13316 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
13317 Delete.
13318 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
13319 (gdb_fopen, tee_file_new): Delete.
13320 (struct string_file): New.
13321 (struct stdio_file): New.
13322 (stdio_file_up): New.
13323 (struct stderr_file): New.
13324 (class tee_file): New.
13325 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
13326 of a 'ui_file *'. Adjust.
13327 * ui-out.h (class ui_out) <field_stream>: Likewise.
13328 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
13329 (null_stream): Delete.
13330 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
13331 Adjust.
13332 * utils.h (struct ui_file): Delete forward declaration..
13333 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
13334 (error_stream): Take a 'string_file &' instead of a
13335 'ui_file *'.
13336 * varobj.c (varobj_value_get_print_value): Use string_file.
13337 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
13338 * gdbarch.c: Regenerate.
13339
187808b0
PA
133402017-02-02 Pedro Alves <palves@redhat.com>
13341
13342 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
13343 (gdb_pretty_print_insn): ... this. Now a free function. Add back
13344 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
13345 Adjust to call gdb_print_insn instead of
13346 gdb_disassembler::print_insn.
13347 (dump_insns, do_mixed_source_and_assembly_deprecated)
13348 (do_mixed_source_and_assembly, do_assembly_only): Add back a
13349 'gdbarch' parameter. Remove gdb_disassembler parameter.
13350 (gdb_disassembly): Don't allocate a gdb_disassembler here.
13351 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
13352 declaration.
13353 (gdb_pretty_print_insn): Re-add declaration.
13354 * record-btrace.c (btrace_insn_history): Don't allocate a
13355 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
13356
7a8eb317
SM
133572017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
13358
13359 * disasm.h (gdb_disassembly): Remove file_string parameter.
13360 * disasm.c (gdb_disassembly): Likewise.
13361 * cli/cli-cmds.c (print_disassembly): Adapt.
13362 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
13363 * stack.c (do_gdb_disassembly): Likewise.
13364
7346ef59
AA
133652017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
13366
13367 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
13368 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
13369 targets. And if the implicit value is longer than needed, extract
13370 the first bytes instead of the "least significant" ones.
13371
cd4007e4
MM
133722017-02-01 Markus Metzger <markus.t.metzger@intel.com>
13373
13374 * btrace.c (btrace_enable): Do not call btrace_add_pc for
13375 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
13376 (btrace_fetch): Assert can_access_registers_ptid.
13377 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
13378 validate_registers_access.
13379
cf77c34e
MM
133802017-02-01 Markus Metzger <markus.t.metzger@intel.com>
13381
13382 * gdbthread.h (can_access_registers_ptid): New.
13383 * thread.c (can_access_registers_ptid): New.
13384
be85ce7d
PA
133852017-02-01 Pedro Alves <palves@redhat.com>
13386
13387 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
13388
29b0b251
PA
133892017-01-31 Pedro Alves <palves@redhat.com>
13390
13391 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
13392 Fix typos.
13393
289b5b24
PA
133942017-01-31 Pedro Alves <palves@redhat.com>
13395
13396 * stack.c (print_frame_args): Remove local mem_fileopen stream,
13397 not used.
13398
b47413b4
PA
133992017-01-31 Pedro Alves <palves@redhat.com>
13400
13401 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
13402
60adb36c
PA
134032017-01-31 Pedro Alves <palves@redhat.com>
13404
13405 * common/scoped_restore.h
13406 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
13407 change the value's parameter type to T2.
13408 (make_scoped_restore): Likewise.
13409
2735833d
WT
134102017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13411 Richard Henderson <rth@redhat.com>
13412
13413 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
13414 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
13415 GS_BASE for older kernels.
13416 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
13417 GS_BASE for older kernels.
13418 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
13419 and GS_BASE to the offset table.
13420 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
13421 system register group.
13422 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
13423 for older kernels.
13424 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
13425 amd64 ABI.
13426 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
13427 AMD64_GSBASE_REGNUM.
13428 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
13429 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
13430 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
13431 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
13432 i386/64bit-segments.xml in those rules.
13433 * features/i386/64bit-segments.xml: New file.
13434 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
13435 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
13436 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
13437 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
13438 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
13439 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
13440 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
13441 * features/i386/amd64-avx-linux.c: Regenerated.
13442 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
13443 * features/i386/amd64-avx-mpx.c: Regenerated.
13444 * features/i386/amd64-avx512-linux.c: Regenerated.
13445 * features/i386/amd64-linux.c: Regenerated.
13446 * features/i386/amd64-mpx-linux.c: Regenerated.
13447 * features/i386/i386-avx-mpx-linux.c: Regenerated.
13448 * features/i386/i386-avx-mpx.c: Regenerated.
13449 * features/i386/x32-avx-linux.c: Regenerated.
13450 * features/i386/x32-avx512-linux.c: Regenerated.
13451 * regformats/i386/amd64-avx-linux.dat: Regenerated.
13452 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
13453 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
13454 * regformats/i386/amd64-linux.dat: Regenerated.
13455 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
13456 * regformats/i386/x32-avx-linux.dat: Regenerated.
13457 * regformats/i386/x32-avx512-linux.dat: Regenerated.
13458 * regformats/i386/x32-linux.dat: Regenerated.
13459
8884e97e
WT
134602017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13461
13462 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
13463 Set to AMD64_NUM_REGS.
13464
7005d26a
WT
134652017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13466
13467 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
13468 that checks validity of a register number.
13469
4bd2e1b2
KC
134702017-01-27 Kees Cook <keescook@google.com>
13471
13472 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
13473 fetch_fpregs if target has fpa registers.
13474 (arm_linux_store_inferior_registers): Call store_fpregs if target
13475 has fpa registers.
13476
7cf1de6c
AA
134772017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
13478
13479 * cris-tdep.c (cris_gdbarch_init): Remove check for
13480 info.byte_order and force it to BFD_ENDIAN_LITTLE.
13481
874a1c8c
AT
134822017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
13483
13484 * corelow.c (get_core_register_section): Check for regset
13485 existence before checking for REGSET_VARIABLE_SIZE.
13486
d8b49cf0
YQ
134872017-01-26 Yao Qi <yao.qi@linaro.org>
13488 Pedro Alves <palves@redhat.com>
13489
13490 PR gdb/20939
13491 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
13492 call memory_error, save memaddr instead.
13493 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
13494 negative, cal memory_error.
13495 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
13496
658ca58c
YQ
134972017-01-26 Yao Qi <yao.qi@linaro.org>
13498
13499 * disasm-selftests.c (memory_error_test): New function.
13500 (_initialize_disasm_selftests): Register memory_error_test.
13501
79843d45
YQ
135022017-01-26 Yao Qi <yao.qi@linaro.org>
13503
13504 * Makefile.in (SFILES): Add disasm-selftests.c and
13505 selftest-arch.c.
13506 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
13507 * disasm-selftests.c: New file.
13508 * selftest-arch.c: New file.
13509 * selftest-arch.h: New file.
13510
8cafda32
YQ
135112017-01-26 Yao Qi <yao.qi@linaro.org>
13512
13513 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
13514 to bfd_arch_mep. Don't return 0 if section is not
13515 found. Call print_insn_mep.
13516
e47ad6c0
YQ
135172017-01-26 Pedro Alves <palves@redhat.com>
13518 Yao Qi <yao.qi@linaro.org>
13519
13520 * arm-tdep.c: Include "disasm.h".
13521 (gdb_print_insn_arm): Update code to get gdbarch.
13522 * disasm.c (dis_asm_read_memory): Change it to
13523 gdb_disassembler::dis_asm_read_memory.
13524 (dis_asm_memory_error): Likewise.
13525 (dis_asm_print_address): Likewise.
13526 (gdb_pretty_print_insn): Change it to
13527 gdb_disassembler::pretty_print_insn.
13528 (dump_insns): Add one argument gdb_disassemlber. All
13529 callers updated.
13530 (do_mixed_source_and_assembly_deprecated): Likewise.
13531 (do_mixed_source_and_assembly): Likewise.
13532 (do_assembly_only): Likewise.
13533 (gdb_disassembler::gdb_disassembler): New.
13534 (gdb_disassembler::print_insn): New.
13535 * disasm.h (class gdb_disassembler): New.
13536 (gdb_pretty_print_insn): Remove declaration.
13537 (gdb_disassemble_info): Likewise.
13538 * guile/scm-disasm.c (class gdbscm_disassembler): New.
13539 (gdbscm_disasm_read_memory_worker): Update.
13540 (gdbscm_disasm_read_memory): Update.
13541 (gdbscm_disasm_memory_error): Remove.
13542 (gdbscm_disasm_print_address): Remove.
13543 (gdbscm_disassembler::gdbscm_disassembler): New.
13544 (gdbscm_print_insn_from_port): Update.
13545 * mips-tdep.c: Include disasm.h.
13546 (gdb_print_insn_mips): Update code to get gdbarch.
13547 * record-btrace.c (btrace_insn_history): Update.
13548 * spu-tdep.c: Include disasm.h.
13549 (struct spu_dis_asm_data): Remove.
13550 (struct spu_dis_asm_info): New.
13551 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
13552 SPU id.
13553 (gdb_print_insn_spu): Cast disassemble_info to
13554 spu_dis_asm_info.
13555
80d75874
YQ
135562017-01-26 Yao Qi <yao.qi@linaro.org>
13557
13558 * disasm.c (do_ui_file_delete): Delete.
13559 (gdb_insn_length): Move code creating stream to ...
13560 * utils.c (null_stream): ... here. New function.
13561 * utils.h (null_stream): Declare.
13562
60685cd0
SM
135632017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13564
13565 * python/py-inferior.c (find_thread_object): Return directly
13566 from the loop. Remove "found" variable.
13567
eb1cdb62
JB
135682017-01-21 Joel Brobecker <brobecker@adacore.com>
13569
13570 GDB 7.12.1 released.
13571
b1ce6568
SM
135722017-01-20 Simon Marchi <simon.marchi@ericsson.com>
13573
13574 * python/py-function.c (fnpy_call): Reorder declarations to have
13575 the gdbpy_enter object declared first.
13576 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
13577
6f8b0407
SM
135782017-01-20 Simon Marchi <simon.marchi@ericsson.com>
13579
fec93fb1 13580 PR python/21068
6f8b0407
SM
13581 * python/python-internal.h (PyMem_RawMalloc): Define for
13582 Python < 3.4.
13583 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
13584 PyMem_RawMalloc instead of PyMem_Malloc.
13585
78cbbba8
LM
135862017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
13587 Luis Machado <lgustavo@codesourcery.com>
13588
13589 * NEWS (New commands): Mention flash-erase.
13590 (New MI commands): Mention target-flash-erase.
13591 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
13592 command.
13593 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
13594 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
13595 * target.c (flash_erase_command): New function.
13596 (initialize_targets): Add new flash-erase command.
13597 * target.h (flash_erase_command): New declaration.
13598
2132fe85
JB
135992017-01-20 Joel Brobecker <brobecker@adacore.com>
13600
13601 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
13602 HAVE_SYS_PROCFS_H is defined.
13603
d1dff226
AH
136042017-01-18 Alan Hayward <alan.hayward@arm.com>
13605
13606 * remote.c (struct cached_reg): Change data into a pointer.
13607 * (stop_reply_dtr): Free data pointers before deleting vector.
13608 (process_stop_reply): Likewise.
13609 (remote_parse_stop_reply): Allocate space for data
13610
9890e433
AH
136112017-01-18 Alan Hayward <alan.hayward@arm.com>
13612
13613 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
13614 MAX_REGISTER_SIZE.
13615 (amd64_pseudo_register_read_value): Likewise.
13616 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
13617 (store_register_using_P): Likewise.
13618 * regcache.c (regcache_xfer_part): Likewise.
13619
7a36499a
IR
136202017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
13621
13622 Split real and pseudo registers.
13623 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
13624 (sparc32_pseudo_regnum): New enum.
13625 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
13626 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
13627 (SPARC32_CP0_REGISTERS): New macro.
13628 (sparc32_pseudo_register_name): New function.
13629 (sparc32_register_name): Use sparc32_pseudo_register_name.
13630 (sparc32_pseudo_register_type): New function.
13631 (sparc32_register_type): Use sparc32_pseudo_register_type.
13632 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
13633 pseudo register numbers.
13634 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
13635 (SPARC64_CP0_REGISTERS): New macro.
13636 (sparc64_pseudo_register_name): New function.
13637 (sparc64_register_name): Use sparc64_pseudo_register_name.
13638 (sparc64_pseudo_register_type): New function.
13639 (sparc64_register_type): Use sparc64_pseudo_register_type.
13640 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
13641 pseudo register numbers.
13642 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
13643 sparc64_store_arguments): Handle pseudo register numbers.
13644
6f8976bf
YQ
136452017-01-13 Yao Qi <yao.qi@linaro.org>
13646
13647 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
13648 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
13649 output.
13650 (getpkt_or_notif_sane_1): Likewise.
13651
e4241ace
YQ
136522017-01-13 Yao Qi <yao.qi@linaro.org>
13653
13654 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
13655 of CC. Pass "-x c++-header" instead of "-x c".
13656
3015c064
SM
136572017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13658
13659 * remote.c (remote_can_async_p): Update comment.
13660
fde1b17d
SM
136612017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13662
13663 * linux-nat.c (linux_nat_can_async_p): Update comment.
13664
ca1ca08b
SM
136652017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13666
13667 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
13668
4ad2da73
SM
136692017-01-11 Simon Marchi <simon.marchi@ericsson.com>
13670
13671 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
13672
c8b23b3f
TT
136732017-01-10 Tom Tromey <tom@tromey.com>
13674
13675 * python/py-type.c (typy_legacy_template_argument): Update.
13676 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
13677 ~demangle_parse_info): Declare new members.
13678 (cp_demangled_name_to_comp): Return unique_ptr.
13679 (cp_demangled_name_parse_free)
13680 (make_cleanup_cp_demangled_name_parse_free)
13681 (cp_new_demangle_parse_info): Remove.
13682 * cp-support.c (do_demangled_name_parse_free_cleanup)
13683 (make_cleanup_cp_demangled_name_parse_free): Remove.
13684 (inspect_type, cp_canonicalize_string_full)
13685 (cp_canonicalize_string): Update.
13686 (mangled_name_to_comp): Change return type.
13687 (cp_class_name_from_physname, method_name_from_physname)
13688 (cp_func_name, cp_remove_params): Update.
13689 * cp-name-parser.y (demangle_parse_info): New constructor, from
13690 cp_new_demangle_parse_info.
13691 (~demangle_parse_info): New destructor, from
13692 cp_demangled_name_parse_free.
13693 (cp_merge_demangle_parse_infos): Update.
13694 (cp_demangled_name_to_comp): Change return type.
13695
1ac32117
TT
136962017-01-10 Tom Tromey <tom@tromey.com>
13697
13698 * top.c (prevent_dont_repeat): Change return type.
13699 * python/python.c (execute_gdb_command): Use std::string.
13700 Update.
13701 * guile/guile.c (gdbscm_execute_gdb_command): Update.
13702 * command.h (prevent_dont_repeat): Change return type.
13703 * breakpoint.c (bpstat_do_actions_1): Update.
13704
0cf08227
TT
137052017-01-10 Tom Tromey <tom@tromey.com>
13706
13707 * value.h (scoped_value_mark::~scoped_value_mark): Call
13708 free_to_mark.
13709 (scoped_value_mark::free_to_mark): New method.
13710 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
13711 scoped_value_mark.
13712
eb115069
TT
137132017-01-10 Tom Tromey <tom@tromey.com>
13714
13715 * python/py-value.c (valpy_dereference, valpy_referenced_value)
13716 (valpy_reference_value, valpy_const_value, valpy_get_address)
13717 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
13718 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
13719 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
13720 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
13721 scoped_value_mark.
13722 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
13723 * value.h (scoped_value_mark): New class.
13724
906768f9
TT
137252017-01-10 Tom Tromey <tom@tromey.com>
13726
13727 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
13728 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
13729 * psymtab.c (discard_psymtabs_upto): Remove.
13730 (make_cleanup_discard_psymtabs): Remove.
13731 (struct psymtab_state): Remove.
13732
bef155c3
TT
137332017-01-10 Tom Tromey <tom@tromey.com>
13734
13735 * record-full.c (record_full_save_cleanups): Remove.
13736 (record_full_save): Use gdb::unlinker.
13737 * gcore.c (do_bfd_delete_cleanup): Remove.
13738 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
13739 cleanups.
13740 * dwarf2read.c (unlink_if_set): Remove.
13741 (write_psymtabs_to_index): Use gdb::unlinker.
13742 * common/gdb_unlinker.h: New file.
13743
192b62ce
TT
137442017-01-10 Tom Tromey <tom@tromey.com>
13745
13746 * windows-tdep.c (windows_xfer_shared_library): Update.
13747 * windows-nat.c (windows_make_so): Update.
13748 * utils.h (make_cleanup_bfd_unref): Remove.
13749 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
13750 * symfile.h (symfile_bfd_open)
13751 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
13752 * symfile.c (read_symbols, symbol_file_add)
13753 (separate_debug_file_exists): Update.
13754 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
13755 (generic_load, reread_symbols): Update.
13756 * symfile-mem.c (symbol_file_add_from_memory): Update.
13757 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
13758 (spu_symbol_file_add_from_memory): Update.
13759 * solist.h (struct target_so_ops) <bfd_open>: Return
13760 gdb_bfd_ref_ptr.
13761 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
13762 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
13763 gdb_bfd_ref_ptr.
13764 (solib_map_sections, reload_shared_libraries_1): Update.
13765 * solib-svr4.c (enable_break): Update.
13766 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
13767 * solib-frv.c (enable_break2): Update.
13768 * solib-dsbt.c (enable_break): Update.
13769 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
13770 gdb_bfd_ref_ptr.
13771 (darwin_solib_get_all_image_info_addr_at_init): Update.
13772 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
13773 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
13774 * record-full.c (record_full_save): Update.
13775 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
13776 * procfs.c (insert_dbx_link_bpt_in_file): Update.
13777 * minidebug.c (find_separate_debug_file_in_section): Return
13778 gdb_bfd_ref_ptr.
13779 * machoread.c (macho_add_oso_symfile): Change abfd to
13780 gdb_bfd_ref_ptr.
13781 (macho_symfile_read_all_oso): Update.
13782 (macho_check_dsym): Return gdb_bfd_ref_ptr.
13783 (macho_symfile_read): Update.
13784 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
13785 (jit_bfd_try_read_symtab): Update.
13786 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
13787 (gdb_bfd_openw, gdb_bfd_openr_iovec)
13788 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
13789 gdb_bfd_ref_ptr.
13790 (gdb_bfd_ref_policy): New struct.
13791 (gdb_bfd_ref_ptr): New typedef.
13792 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
13793 (gdb_bfd_openw, gdb_bfd_openr_iovec)
13794 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
13795 gdb_bfd_ref_ptr.
13796 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
13797 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
13798 (gcore_command): Update.
13799 * exec.c (exec_file_attach): Update.
13800 * elfread.c (elf_symfile_read): Update.
13801 * dwarf2read.c (dwarf2_get_dwz_file): Update.
13802 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
13803 (open_and_init_dwo_file): Update.
13804 (open_dwp_file): Return gdb_bfd_ref_ptr.
13805 (open_and_init_dwp_file): Update.
13806 * corelow.c (core_open): Update.
13807 * compile/compile-object-load.c (compile_object_load): Update.
13808 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
13809 * coffread.c (coff_symfile_read): Update.
13810 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
13811 gdb_bfd_ref_ptr. Rename.
13812 (dump_bfd_file, restore_command): Update.
13813 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
13814 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
13815 (find_separate_debug_file_by_buildid): Update.
13816
50315b21
TT
138172017-01-10 Tom Tromey <tom@tromey.com>
13818
13819 * common/gdb_ref_ptr.h: New file.
13820 * python/py-ref.h (struct gdbpy_ref_policy): New.
13821 (gdbpy_ref): Now a typedef.
13822
fc4007c9
TT
138232017-01-10 Tom Tromey <tom@tromey.com>
13824
13825 * utils.h (make_cleanup_htab_delete): Don't declare.
13826 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
13827 Remove.
13828 * linespec.c (decode_compound_collector): Add constructor,
13829 destructor.
13830 (lookup_prefix_sym): Remove cleanup.
13831 (symtab_collector): Add constructor, destructor.
13832 (collect_symtabs_from_filename): Remove cleanup.
13833 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
13834 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
13835 Use htab_up.
13836 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
13837 * dwarf2read.c (dw2_expand_symtabs_matching)
13838 (dw2_map_symbol_filenames, dwarf_decode_macros)
13839 (write_psymtabs_to_index): Use htab_up.
13840 * dwarf2loc.c (func_verify_no_selftailcall)
13841 (call_site_find_chain_1, func_verify_no_selftailcall)
13842 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
13843 std::vector, gdb::unique_xmalloc_ptr.
13844 (call_sitep): Remove typedef.
13845 (dwarf2_locexpr_baton_eval): Remove unused variable.
13846
8dbcee67
TT
138472017-01-10 Tom Tromey <tom@tromey.com>
13848
13849 * python/python-internal.h (make_cleanup_py_decref)
13850 (make_cleanup_py_xdecref): Don't declare.
13851 * python/py-utils.c (py_decref, make_cleanup_py_decref)
13852 (py_xdecref, make_cleanup_py_xdecref): Remove.
13853
13df46cc
TT
138542017-01-10 Tom Tromey <tom@tromey.com>
13855
13856 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
13857 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
13858
06fc9bf7
TT
138592017-01-10 Tom Tromey <tom@tromey.com>
13860
13861 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
13862
830a4934
TT
138632017-01-10 Tom Tromey <tom@tromey.com>
13864
13865 * python/py-utils.c (unicode_to_encoded_string)
13866 (python_string_to_target_string)
13867 (python_string_to_target_python_string)
13868 (python_string_to_host_string, gdbpy_obj_to_string)
13869 (get_addr_from_python): Use gdbpy_ref.
13870
4586d543
TT
138712017-01-10 Tom Tromey <tom@tromey.com>
13872
13873 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
13874 gdbpy_ref.
13875
59876f8f
TT
138762017-01-10 Tom Tromey <tom@tromey.com>
13877
13878 * python/python.c (eval_python_command, gdbpy_decode_line)
13879 (gdbpy_run_events, gdbpy_start_type_printers)
13880 (gdbpy_apply_type_printers): Use gdbpy_ref.
13881
97d83487
TT
138822017-01-10 Tom Tromey <tom@tromey.com>
13883
13884 * python/py-param.c (get_doc_string, compute_enum_values): Use
13885 gdbpy_ref.
13886
9205649a
TT
138872017-01-10 Tom Tromey <tom@tromey.com>
13888
13889 * python/py-inferior.c (find_thread_object, build_inferior_list):
13890 Use gdbpy_ref.
13891
74c49d45
TT
138922017-01-10 Tom Tromey <tom@tromey.com>
13893
13894 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
13895
16361ffb
TT
138962017-01-10 Tom Tromey <tom@tromey.com>
13897
13898 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
13899 gdbpy_ref.
13900
905f2cca
TT
139012017-01-10 Tom Tromey <tom@tromey.com>
13902
13903 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
13904 extra incref.
13905 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
13906 Use gdbpy_ref.
13907
64081434
TT
139082017-01-10 Tom Tromey <tom@tromey.com>
13909
13910 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
13911 gdbpy_ref.
13912
59e9e831
TT
139132017-01-10 Tom Tromey <tom@tromey.com>
13914
13915 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
13916 decref results of PyArg_ParseTupleAndKeywords.
13917
9de10f6d
TT
139182017-01-10 Tom Tromey <tom@tromey.com>
13919
13920 * python/python.c (python_run_simple_file): Use
13921 unique_xmalloc_ptr, gdbpy_ref.
13922
2bd5759d
TT
139232017-01-10 Tom Tromey <tom@tromey.com>
13924
13925 * python/py-prettyprint.c (print_stack_unless_memory_error)
13926 (print_string_repr, print_children): Use gdbpy_ref.
13927 (dummy_python_frame): New class.
13928 (dummy_python_frame::dummy_python_frame): Rename from
13929 push_dummy_python_frame.
13930 (py_restore_tstate): Remove.
13931
3b4e0e01
TT
139322017-01-10 Tom Tromey <tom@tromey.com>
13933
13934 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
13935
17a22718
TT
139362017-01-10 Tom Tromey <tom@tromey.com>
13937
13938 * python/python.c (ensure_python_env, restore_python_env):
13939 Remove.
13940 * python/python-internal.h (ensure_python_env): Don't declare.
13941 * varobj.h (varobj_ensure_python_env): Don't declare.
13942 * varobj.c (varobj_ensure_python_env): Remove.
13943
68cdc557
TT
139442017-01-10 Tom Tromey <tom@tromey.com>
13945
13946 * varobj.c (varobj_value_get_print_value): Use
13947 gdbpy_enter_varobj.
13948
1eba6383
TT
139492017-01-10 Tom Tromey <tom@tromey.com>
13950
13951 * python/py-prettyprint.c (print_string_repr, print_children):
13952 Update.
13953 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
13954 of "encoding".
13955 * varobj.c (varobj_value_get_print_value): Update.
13956 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
13957
bde7b3e3
TT
139582017-01-10 Tom Tromey <tom@tromey.com>
13959
13960 * varobj.c (varobj_get_display_hint)
13961 (dynamic_varobj_has_child_method, install_new_value_visualizer)
13962 (varobj_set_visualizer, free_variable): Use
13963 gdbpy_enter_varobj.
13964
a7785f8c
TT
139652017-01-10 Tom Tromey <tom@tromey.com>
13966
13967 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
13968 (do_finish_initialization): New function. Use gdbpy_ref.
13969 (gdbpy_finish_initialization): Use gdbpy_enter. Call
13970 do_finish_initialization.
13971
2865bfce
TT
139722017-01-10 Tom Tromey <tom@tromey.com>
13973
13974 * python/py-param.c (get_set_value, get_show_value): Use
13975 gdbpy_enter, gdbpy_ref.
13976
0e9dcc75
TT
139772017-01-10 Tom Tromey <tom@tromey.com>
13978
13979 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
13980
12a5cedd
TT
139812017-01-10 Tom Tromey <tom@tromey.com>
13982
13983 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
13984
788f2586
TT
139852017-01-10 Tom Tromey <tom@tromey.com>
13986
13987 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
13988 Use gdbpy_enter_varobj.
13989
6cd67bea
TT
139902017-01-10 Tom Tromey <tom@tromey.com>
13991
13992 * varobj.c (gdbpy_enter_varobj): New constructor.
13993 * python/python-internal.h (gdbpy_enter_varobj): New class.
13994 * python/py-varobj.c (py_varobj_get_iterator): Use
13995 gdbpy_enter_varobj.
13996
14b122bf
TT
139972017-01-10 Tom Tromey <tom@tromey.com>
13998
13999 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
14000 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
14001 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
14002 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
14003 unique_xmalloc_ptr.
14004 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
14005
bf1ca3b9
TT
140062017-01-10 Tom Tromey <tom@tromey.com>
14007
14008 * python/py-xmethods.c (invoke_match_method): Use
14009 gdbpy_ref.
14010
572a5524
TT
140112017-01-10 Tom Tromey <tom@tromey.com>
14012
14013 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
14014 gdbpy_enter, gdbpy_ref.
14015
396a78b6
TT
140162017-01-10 Tom Tromey <tom@tromey.com>
14017
14018 * python/python.c (python_interactive_command): Use gdbpy_enter.
14019
a88b13c7
TT
140202017-01-10 Tom Tromey <tom@tromey.com>
14021
14022 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
14023 gdbpy_ref.
14024
e9f0c363
TT
140252017-01-10 Tom Tromey <tom@tromey.com>
14026
14027 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
14028 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
14029
6349f452
TT
140302017-01-10 Tom Tromey <tom@tromey.com>
14031
14032 * utils.h (htab_deleter): New struct.
14033 (htab_up): New typedef.
14034 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
14035 gdbpy_enter, gdbpy_ref, htab_up.
14036
c0171de6
TT
140372017-01-10 Tom Tromey <tom@tromey.com>
14038
14039 * python/py-unwind.c (pending_frame_invalidate): Remove.
14040 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
14041
f18e226f
TT
140422017-01-10 Tom Tromey <tom@tromey.com>
14043
14044 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
14045 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
14046
c57af3f1
TT
140472017-01-10 Tom Tromey <tom@tromey.com>
14048
14049 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
14050
60e600ec
TT
140512017-01-10 Tom Tromey <tom@tromey.com>
14052
14053 * python/python.c (gdbpy_eval_from_control_command)
14054 (gdbpy_source_script, gdbpy_run_events)
14055 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
14056 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
14057 gdbpy_enter.
14058
bf7da5b0
TT
140592017-01-10 Tom Tromey <tom@tromey.com>
14060
14061 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
14062
2d38bced
TT
140632017-01-10 Tom Tromey <tom@tromey.com>
14064
14065 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
14066
07bc7329
TT
140672017-01-10 Tom Tromey <tom@tromey.com>
14068
14069 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
14070 (python_on_inferior_call_pre, python_on_inferior_call_post)
14071 (python_on_memory_change, python_on_register_change)
14072 (python_inferior_exit, python_new_objfile, add_thread_object)
14073 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
14074
6e7c365e
TT
140752017-01-10 Tom Tromey <tom@tromey.com>
14076
14077 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
14078 (bpfinishpy_handle_exit): Use gdbpy_enter.
14079
6ba0cd40
TT
140802017-01-10 Tom Tromey <tom@tromey.com>
14081
14082 * python/py-cmd.c (cmdpy_destroyer)
14083 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
14084 gdbpy_enter.
14085
de2dc875
TT
140862017-01-10 Tom Tromey <tom@tromey.com>
14087
14088 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
14089 gdbpy_enter.
14090 (gdbpy_breakpoint_has_cond): Likewise.
14091
4ecee2c4
TT
140922017-01-10 Tom Tromey <tom@tromey.com>
14093
14094 * python/python.c (gdbpy_enter): New constructor.
14095 (~gdbpy_enter): New destructor.
14096 (restore_python_env, ensure_python_env): Rewrite.
14097 * python/python-internal.h (gdbpy_enter): New class.
14098
37fce74f
TT
140992017-01-10 Tom Tromey <tom@tromey.com>
14100
14101 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
14102
53a0cca3
TT
141032017-01-10 Tom Tromey <tom@tromey.com>
14104
14105 * python/py-value.c (value_has_field, get_field_flag)
14106 (get_field_type, valpy_getitem, convert_value_from_python): Use
14107 gdbpy_ref.
14108
ff3724f5
TT
141092017-01-10 Tom Tromey <tom@tromey.com>
14110
14111 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
14112 gdbpy_ref.
14113
0700aea5
TT
141142017-01-10 Tom Tromey <tom@tromey.com>
14115
14116 * python/py-prettyprint.c (search_pp_list)
14117 (find_pretty_printer_from_objfiles)
14118 (find_pretty_printer_from_progspace)
14119 (find_pretty_printer_from_gdb, find_pretty_printer)
14120 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
14121 gdbpy_ref.
14122
1bb44c9f
TT
141232017-01-10 Tom Tromey <tom@tromey.com>
14124
14125 * python/py-param.c (call_doc_function): Use gdbpy_ref.
14126
87ce03fd
TT
141272017-01-10 Tom Tromey <tom@tromey.com>
14128
14129 * python/py-linetable.c (build_line_table_tuple_from_pcs)
14130 (ltpy_get_all_source_lines): Use gdbpy_ref.
14131
ee0a3fb8
TT
141322017-01-10 Tom Tromey <tom@tromey.com>
14133
14134 * python/py-framefilter.c (extract_sym, extract_value)
14135 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
14136 gdbpy_ref.
14137
bf2a52fa
TT
141382017-01-10 Tom Tromey <tom@tromey.com>
14139
14140 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
14141
f59fe7f8
TT
141422017-01-10 Tom Tromey <tom@tromey.com>
14143
14144 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
14145
80bd970a
TT
141462017-01-10 Tom Tromey <tom@tromey.com>
14147
14148 * python/py-function.c (convert_values_to_python, fnpy_init): Use
14149 gdbpy_ref.
14150
d1b3de2e
TT
141512017-01-10 Tom Tromey <tom@tromey.com>
14152
14153 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
14154
3bb43384
TT
141552017-01-10 Tom Tromey <tom@tromey.com>
14156
14157 * python/py-type.c (convert_field, make_fielditem, typy_fields)
14158 (typy_range): Use gdbpy_ref.
14159
abf5651e
TT
141602017-01-10 Tom Tromey <tom@tromey.com>
14161
14162 * python/py-threadevent.c (create_thread_event_object): Use
14163 gdbpy_ref.
14164 * python/py-stopevent.c (create_stop_event_object): Simplify.
14165 (emit_stop_event): Use gdbpy_ref.
14166 * python/py-signalevent.c (create_signal_event_object): Use
14167 gdbpy_ref.
14168 * python/py-newobjfileevent.c (create_new_objfile_event_object)
14169 (emit_new_objfile_event, create_clear_objfiles_event_object)
14170 (emit_clear_objfiles_event): Use gdbpy_ref.
14171 * python/py-infevents.c (create_inferior_call_event_object)
14172 (create_register_changed_event_object)
14173 (create_memory_changed_event_object, emit_inferior_call_event)
14174 (emit_memory_changed_event, emit_register_changed_event): Use
14175 gdbpy_ref.
14176 * python/py-exitedevent.c (create_exited_event_object)
14177 (emit_exited_event): Use gdbpy_ref.
14178 * python/py-event.h (evpy_emit_event): Remove
14179 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
14180 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
14181 * python/py-continueevent.c (emit_continue_event): Use
14182 gdbpy_ref.
14183 * python/py-breakpoint.c (gdbpy_breakpoint_created)
14184 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
14185 gdbpy_ref.
14186 * python/py-bpevent.c (create_breakpoint_event_object): Use
14187 gdbpy_ref.
14188
a68ff33e
TT
141892017-01-10 Tom Tromey <tom@tromey.com>
14190
14191 * python/py-ref.h: New file.
14192
7becfd03
SM
141932017-01-10 Simon Marchi <simon.marchi@ericsson.com>
14194
14195 * cli-out.c (cli_ui_out::do_redirect): Change return type to
14196 void.
14197 * cli-out.h (cli_ui_out::do_redirect): Likewise.
14198 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
14199 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
14200 * ui-out.c (ui_out::redirect): Likewise.
14201 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
14202 * cli/cli-logging.c (set_logging_redirect): Update call site of
14203 ui_out::redirect.
14204 (handle_redirections): Likewise.
14205 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
14206 * top.c (execute_command_to_string): Likewise.
14207 * utils.c (do_ui_out_redirect_pop): Likewise.
14208
df294654
SM
142092017-01-10 Simon Marchi <simon.marchi@ericsson.com>
14210
14211 * stack.c (_initialize_stack): Update "frame" command help message.
14212
f5e6296e
IB
142132017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
14214
14215 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
14216
0e2d6fa6
YQ
142172017-01-06 Yao Qi <yao.qi@linaro.org>
14218
14219 * x86-linux-nat.h: Include gdb_proc_service.h.
14220
44d6d3f9
YQ
142212017-01-06 Yao Qi <yao.qi@linaro.org>
14222
14223 * ser-base.h: Include serial.h.
14224
656731fe
YQ
142252017-01-06 Yao Qi <yao.qi@linaro.org>
14226
14227 * ppc-linux-tdep.h: Include ppc-tdep.h.
14228
1ca8f924
YQ
142292017-01-06 Yao Qi <yao.qi@linaro.org>
14230
14231 * nat/amd64-linux-siginfo.h: Include signal.h.
14232
bc3008c4
YQ
142332017-01-06 Yao Qi <yao.qi@linaro.org>
14234
14235 * nat/aarch64-linux-hw-point.h: Include break-common.h.
14236
66c80d03
YQ
142372017-01-06 Yao Qi <yao.qi@linaro.org>
14238
14239 * mi/mi-parse.h: Include mi-cmds.h.
14240
051d2dda
YQ
142412017-01-06 Yao Qi <yao.qi@linaro.org>
14242
14243 * inf-loop.c: Don't include "target.h".
14244 * inf-loop.h: Include it here.
14245
8018d34f
YQ
142462017-01-06 Yao Qi <yao.qi@linaro.org>
14247
14248 * dfp.h: Include "dboulest.h" and "expression.h".
14249
c0b8369c
YQ
142502017-01-06 Yao Qi <yao.qi@linaro.org>
14251
14252 * ax-gdb.h: Include "ax.h".
14253
ad5cba2a
YQ
142542017-01-06 Yao Qi <yao.qi@linaro.org>
14255
14256 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
14257 with nat/gdb_ptrace.h.
14258
1c33cd7f
YQ
142592017-01-05 Yao Qi <yao.qi@linaro.org>
14260
14261 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
14262 new line.
14263 (mips64_fbsd_sigframe_init): Likewise.
14264
c988ac1d
JB
142652017-01-04 John Baldwin <jhb@FreeBSD.org>
14266
14267 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
14268 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
14269
b268007c
JB
142702017-01-04 John Baldwin <jhb@FreeBSD.org>
14271
14272 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
14273 * NEWS: Mention new FreeBSD/mips native configuration.
14274 * config/mips/fbsd.mh: New file.
14275 * configure.host: Add mips*-*-freebsd*.
14276 * mips-fbsd-nat.c: New file.
14277
387360da
JB
142782017-01-04 John Baldwin <jhb@FreeBSD.org>
14279
14280 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
14281 (ALLDEPFILES): Add mips-fbsd-tdep.c.
14282 * NEWS: Mention new FreeBSD/mips target.
14283 * configure.tgt: Add mips*-*-freebsd*.
14284 * mips-fbsd-tdep.c: New file.
14285 * mips-fbsd-tdep.h: New file.
14286
2aaaf250
YQ
142872017-01-04 Yao Qi <yao.qi@linaro.org>
14288
14289 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
14290 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
14291
61baf725
JB
142922017-01-01 Joel Brobecker <brobecker@adacore.com>
14293
6dbb839a 14294 Update copyright year range in all GDB files.
61baf725 14295
c113e7ff 142962017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 14297
c113e7ff 14298 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 14299
c113e7ff 14300For older changes see ChangeLog-2016.
c906108c
SS
14301\f
14302Local Variables:
14303mode: change-log
14304left-margin: 8
14305fill-column: 74
14306version-control: never
57da7796 14307coding: utf-8
c906108c 14308End: