const-fy regcache::m_readonly_p
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6c6e9412
YQ
12017-11-02 Yao Qi <yao.qi@linaro.org>
2
3 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
4
8b86c959
YQ
52017-11-02 Yao Qi <yao.qi@linaro.org>
6
7 * breakpoint.c (insert_single_step_breakpoints): Update.
8 * frame.c (struct frame_info) <aspace>: Add const.
9 (frame_save_as_regcache): Add const.
10 (get_frame_address_space): Return const address_space *.
11 * frame.h (get_frame_address_space): Update declaration.
12 * infrun.c (struct step_over_info) <aspace>: Add const.
13 (set_step_over_info): Make aspace const.
14 (displaced_step_prepare_throw): Change variable const.
15 (resume): Likewise.
16 (proceed): Likewise.
17 (adjust_pc_after_break): Likewise.
18 (save_waitstatus): Likewise.
19 (handle_signal_stop): Likewise.
20 (keep_going_pass_signal): Likewise.
21 * jit.c (jit_frame_sniffer): Add const.
22 * mips-tdep.c (mips_single_step_through_delay): Likewise.
23 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
24 * record-full.c (record_full_wait_1): Likewise.
25 * regcache.c (regcache::regcache): Change parameter to const.
26 * regcache.h (regcache::regcache): Likewise.
27 (regcache::aspace): Return const address_space *.
28 (regcache) <m_aspace>: Add const.
29
a01bda52
YQ
302017-11-02 Yao Qi <yao.qi@linaro.org>
31
32 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
33 * frame.c (create_sentinel_frame): Likewise.
34 * infrun.c (displaced_step_prepare_throw): Likewise.
35 (resume): Likewise.
36 (thread_still_needs_step_over_bp): Likewise.
37 (proceed): Likewise.
38 (do_target_wait): Likewise.
39 (adjust_pc_after_break): Likewise.
40 (handle_syscall_event): Likewise.
41 (save_waitstatus): Likewise.
42 (handle_inferior_event_1): Likewise.
43 (handle_signal_stop): Likewise.
44 (keep_going_pass_signal): Likewise.
45 * linux-nat.c (status_callback): Likewise.
46 (save_stop_reason): Likewise.
47 (resume_stopped_resumed_lwps): Likewise.
48 * record-full.c (record_full_exec_insn): Likewise.
49 (record_full_wait_1): Likewise.
50 * regcache.c (get_regcache_aspace): Remove.
51 * regcache.h (get_regcache_aspace): Remove.
52
d999647b
YQ
532017-11-02 Yao Qi <yao.qi@linaro.org>
54
55 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
56 (init_regcache_descr): Use gdbarch_num_regs.
57 (regcache::regcache): Likewise.
58 (regcache::get_register_status): Likewise.
59 (regcache::assert_raw_regnum): Likewise.
60 (regcache::cooked_read): Likewise.
61 (regcache::cooked_read_value): Likewise.
62 (regcache::cooked_write): Likewise.
63 (regcache::dump): Likewise.
64 (regcache::num_raw_registers): New method.
65 * regcache.h (class regcache) <num_raw_registers>: New.
66
4e888c28
YQ
672017-11-02 Yao Qi <yao.qi@linaro.org>
68
69 * regcache.c (regcache::assert_regnum): New method.
70 (regcache::invalidate): Call assert_regnum.
71 (regcache::raw_update): Likewise.
72 (regcache::raw_write): Likewise.
73 (regcache::raw_read_part): Likewise.
74 (regcache::raw_write_part): Likewise.
75 (regcache::raw_supply): Likewise.
76 (regcache::raw_supply_integer): Likewise.
77 (regcache::raw_supply_zeroed): Likewise.
78 (regcache::raw_collect): Likewise.
79 (regcache::raw_collect_integer): Likewise.
80 * regcache.h (regcache::assert_regnum): Declare.
81
2e1b49b3
YQ
822017-11-02 Yao Qi <yao.qi@linaro.org>
83
84 * regcache.c (regcache::dump): Remove code.
85
6c5218df
YQ
862017-11-02 Yao Qi <yao.qi@linaro.org>
87
88 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
89 Remove.
90 <sizeof_cooked_register_status>: Remove.
91 (init_regcache_descr): Update.
92 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
93 (regcache::save): Likewise.
94 (regcache::dump): Likewise.
95
dcc31d28
JB
962017-11-01 James Bowman <james.bowman@ftdichip.com>
97
98 * ft32-tdep.c (ft32_fetch_instruction): New function.
99 (ft32_analyze_prologue): Use ft32_fetch_instruction().
100
3a87ae65
SM
1012017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
102
103 * cli/cli-script.c (execute_control_command): Rename to ...
104 (execute_control_command_1): ... this.
105 (execute_control_command): New function.
106
09b847f3
SM
1072017-10-31 Simon Marchi <simon.marchi@ericsson.com>
108
109 * tracepoint.c (tfind_command): Remove const_cast.
110
f871c485
MG
1112017-10-30 Mike Gulick <mgulick@mathworks.com>
112
113 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
114
b020ff80
SM
1152017-10-30 Simon Marchi <simon.marchi@ericsson.com>
116
117 * common/common-utils.h (in_inclusive_range): New function.
118 * arm-tdep.c (arm_record_extension_space): Use
119 in_inclusive_range.
120 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
121 * cris-tdep.c (cris_spec_reg_applicable): Use
122 in_inclusive_range.
123
1b81856f
PA
1242017-10-30 Pedro Alves <palves@redhat.com>
125 Simon Marchi <simon.marchi@ericsson.com>
126
127 * remote.c (remote_set_syscall_catchpoint): Build a std::string
128 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
129
31b833b3
PA
1302017-10-30 Pedro Alves <palves@redhat.com>
131
132 * common/common-utils.c (string_appendf, string_vappendf): New
133 functions.
134 * common/common-utils.h (string_appendf, string_vappendf): New
135 declarations.
136 * unittests/common-utils-selftests.c (string_appendf_func)
137 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
138 (string_vappendf_tests): New functions.
139 (_initialize_common_utils_selftests): Register "string_appendf" and
140 "string_vappendf tests".
141
4a250334
PA
1422017-10-30 Pedro Alves <palves@redhat.com>
143
144 * unittests/common-utils-selftests.c (format_func): New typedef.
145 (string_printf_tests, string_vprintf_tests): Tests factored out
146 and merged to ...
147 (test_format_func): ... this new function.
148 (string_printf_tests, string_vprintf_tests): Reimplement on top of
149 test_format_func.
150
16c5c17e
SM
1512017-10-29 Simon Marchi <simon.marchi@ericsson.com>
152
153 * darwin-nat.c: Remove include of gdb.h.
154
7ca51576
SM
1552017-10-29 Simon Marchi <simon.marchi@ericsson.com>
156
157 * xtensa-xtregs.c: Fix formatting issues.
158
c1342859
SM
1592017-10-29 Simon Marchi <simon.marchi@ericsson.com>
160
161 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
162
484d8d36
MD
1632017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
164
165 PR python/21213
166 * python/py-infthread.c (thpy_get_inferior): Increment reference
167 of inferior before returning it.
168
b5540b5f
SM
1692017-10-27 Simon Marchi <simon.marchi@ericsson.com>
170
171 * unittests/common-utils-selftests.c (format): Add
172 ATTRIBUTE_PRINTF.
173
5a9dcda1
SM
1742017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
175
176 * xml-syscall.c (struct syscall_desc): Add constructor.
177 <name>: Change type to std::string.
178 (syscall_desc_up): New typedef.
179 (syscall_desc_p): Remove typeder.
180 (DEF_VEC_P(syscall_desc_p)): Remove.
181 (struct syscall_group_desc): Add constructor.
182 <name>: Change type to std::string.
183 <syscalls>: Change type to std::vector.
184 (syscall_group_desc_up): New typedef.
185 (syscall_group_desc_p): Remove typedef.
186 (DEF_VEC_P(syscall_group_desc_p)): Remove.
187 (struct syscalls_info) <syscalls>: Change type to std::vector of
188 unique_ptr.
189 <groups>: Likewise.
190 <my_gdb_datadir>: Change type to std::string.
191 (syscalls_info_up): New typedef.
192 (allocate_syscalls_info): Remove.
193 (syscalls_info_free_syscalls_desc): Remove.
194 (syscalls_info_free_syscall_group_desc): Remove.
195 (free_syscalls_info): Remove.
196 (make_cleanup_free_syscalls_info): Remove.
197 (syscall_group_create_syscall_group_desc): Adjust.
198 (syscall_group_add_syscall): Adjust.
199 (syscall_create_syscall_desc): Adjust.
200 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
201 (init_syscalls_info): Adjust.
202 (syscall_group_get_group_by_name): Adjust.
203 (xml_get_syscall_number): Adjust.
204 (xml_get_syscall_name): Adjust.
205 (xml_list_of_syscalls): Adjust.
206 (xml_list_syscalls_by_group): Adjust.
207 (xml_list_of_groups): Adjust.
208
45461e0d
SM
2092017-10-27 Simon Marchi <simon.marchi@ericsson.com>
210
211 * probe.h: Don't include gdb_vecs.h.
212 (DEF_VEC_P (probe_p)): Remove.
213 (find_probes_in_objfile): Return an std::vector.
214 * probe.c (find_probes_in_objfile): Likewise.
215 * breakpoint.c (breakpoint_objfile_data)
216 <longjmp_probes>: Change type to std::vector.
217 <exception_probes>: Likewise.
218 (free_breakpoint_probes): Don't manually free vectors.
219 (create_longjmp_master_breakpoint): Adjust.
220 (create_exception_master_breakpoint): Adjust.
221 * solib-svr4.c (svr4_create_probe_breakpoints): Change
222 parameter type, adjust.
223 (svr4_create_solib_event_breakpoints): Adjust.
224
43dce439
SM
2252017-10-27 Simon Marchi <simon.marchi@ericsson.com>
226
227 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
228 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
229 with new.
230 (free_breakpoint_probes): Rename to ...
231 (free_breakpoint_objfile_data): ... this, and call delete on
232 bp_objfile_data..
233
6a1b9516
SM
2342017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
235
236 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
237 (loaded_script_ptr): Remove typedef.
238 (DEF_VEC_P (loaded_script_ptr)): Remove.
239 (struct collect_matching_scripts_data): Add constructor.
240 <scripts_p>: Change type to (pointer to) std::vector.
241 (collect_matching_scripts_data): Adjust.
242 (sort_scripts_by_name): Make suitable for std::sort.
243 (print_scripts): Don't sort vector, adjust to std::vector.
244 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
245
593e3209
SM
2462017-10-27 Simon Marchi <simon.marchi@ericsson.com>
247
248 * symfile.c (filename_language): Make struct, not typedef. Add
249 constructor.
250 <ext>: Change type to std::string.
251 (DEF_VEC_O (filename_language)): Remove.
252 (filename_language_table): Change type to std::vector.
253 (add_filename_language): Adjust.
254 (set_ext_lang_command): Adjust.
255 (info_ext_lang_command): Adjust.
256 (deduce_language_from_filename): Adjust.
257 (class scoped_restore_filename_language_table): Remove.
258 (test_filename_language): Use scoped_restore.
259 (test_set_ext_lang_command): Use scoped_restore, adjust to
260 std::vector change.
261
32fa66eb
SM
2622017-10-27 Simon Marchi <simon.marchi@ericsson.com>
263
264 * symfile.c: Include selftest.h.
265 (class scoped_restore_filename_language_table): New.
266 (test_filename_language): New test.
267 (test_set_ext_lang_command): New test.
268 (_initialize_symfile): Register tests.
269
4a27f119
KS
2702017-10-27 Keith Seitz <keiths@redhat.com>
271
272 * breakpoint.c (print_breakpoint_location): Use the symbol saved
273 in the bp_location, falling back to find_pc_sect_function when
274 needed.
275 (add_location_to_breakpoint): Save sal->symbol.
276 * breakpoint.h (struct bp_location) <symbol>: New field.
277 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
278 * symtab.h (struct symtab_and_line) <symbol>: New field.
279
a43f3893
PF
2802017-10-26 Patrick Frants <osscontribute@gmail.com>
281
7453e6b2 282 PR gdb/13669
a43f3893
PF
283 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
284 to rewind obstack.
285
23cc4e1b
PA
2862017-10-26 Pedro Alves <palves@redhat.com>
287
288 * remote.c (remote_async_terminal_ours_p): Delete.
289 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
290 Remove references to 'remote_async_terminal_ours_p'.
291
6abc18bb
YQ
2922017-10-26 Yao Qi <yao.qi@linaro.org>
293
294 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
295
bd522513
YQ
2962017-10-26 Yao Qi <yao.qi@linaro.org>
297
298 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
299 aspace const.
300 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
301 Likewise.
302 * breakpoint.c (bpstat_check_location): Remove cast.
303 (breakpoint_hit_catch_fork): Make aspce const.
304 (breakpoint_hit_catch_solib): Likewise.
305 (breakpoint_hit_catch_exec): Likewise.
306 (breakpoint_hit_ranged_breakpoint): Likewise.
307 (breakpoint_hit_watchpoint): Likewise.
308 (base_breakpoint_breakpoint_hit): Likewise.
309 (bkpt_breakpoint_hit): Likewise.
310 (dprintf_breakpoint_hit): Likewise.
311 (tracepoint_breakpoint_hit): Likewise.
312 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
313
accd0bcd
YQ
3142017-10-26 Yao Qi <yao.qi@linaro.org>
315
316 * breakpoint.c (breakpoint_location_address_match): Change
317 "struct address_space *" to "const address_space".
318 (breakpoint_location_address_range_overlap): Likewise.
319 (breakpoint_here_p): Likewise.
320 (breakpoint_in_range_p): Likewise.
321 (moribund_breakpoint_here_p): Likewise.
322 (bp_location_inserted_here_p): Likewise.
323 (software_breakpoint_inserted_here_p): Likewise.
324 (hardware_breakpoint_inserted_here_p): Likewise.
325 (hardware_watchpoint_inserted_in_range): Likewise.
326 (bpstat_check_location): Likewise.
327 (bpstat_stop_status): Likewise.
328 (breakpoint_address_match): Likewise.
329 (breakpoint_address_match_range): Likewise.
330 (breakpoint_location_address_match): Likewise.
331 (breakpoint_location_address_range_overlap): Likewise.
332 (insert_single_step_breakpoint): Likewise.
333 (breakpoint_has_location_inserted_here): Likewise.
334 (single_step_breakpoint_inserted_here_p): Likewise.
335 (pc_at_non_inline_function): Likewise.
336 * breakpoint.h (bpstat_stop_status): Update declaration.
337 (breakpoint_here_p): Likewise.
338 (breakpoint_in_range_p): Likewise.
339 (moribund_breakpoint_here_p): Likewise.
340 (breakpoint_inserted_here_p): Likewise.
341 (software_breakpoint_inserted_here_p): Likewise.
342 (hardware_breakpoint_inserted_here_p): Likewise.
343 (breakpoint_has_location_inserted_here): Likewise.
344 (single_step_breakpoint_inserted_here_p): Likewise.
345 (hardware_watchpoint_inserted_in_range): Likewise.
346 (breakpoint_address_match): Likewise.
347 (insert_single_step_breakpoint): Likewise.
348 (pc_at_non_inline_function): Likewise.
349 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
350 * record.c (record_check_stopped_by_breakpoint): Likewise.
351 * record.h (record_check_stopped_by_breakpoint): Likewise.
352 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
353
ac7936df
YQ
3542017-10-25 Yao Qi <yao.qi@linaro.org>
355
356 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
357 regcache->arch () instead get_regcache_arch.
358 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
359 Likewise.
360 (aarch64_fbsd_store_inferior_registers): Likewise.
361 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
362 (store_gregs_to_thread): Likewise.
363 (fetch_fpregs_from_thread): Likewise.
364 (store_fpregs_to_thread): Likewise.
365 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
366 (aarch64_store_return_value): Likewise.
367 (aarch64_software_single_step): Likewise.
368 * aix-thread.c (aix_thread_wait): Likewise.
369 (supply_reg32): Likewise.
370 (supply_sprs64): Likewise.
371 (supply_sprs32): Likewise.
372 (fill_gprs64): Likewise.
373 (fill_gprs32): Likewise.
374 (fill_sprs64): Likewise.
375 (fill_sprs32): Likewise.
376 (store_regs_user_thread): Likewise.
377 (store_regs_kernel_thread): Likewise.
378 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
379 (alphabsd_store_inferior_registers): Likewise.
380 * alpha-tdep.c (alpha_extract_return_value): Likewise.
381 (alpha_store_return_value): Likewise.
382 (alpha_deal_with_atomic_sequence): Likewise.
383 (alpha_next_pc): Likewise.
384 (alpha_software_single_step): Likewise.
385 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
386 (amd64bsd_store_inferior_registers): Likewise.
387 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
388 Likewise.
389 (amd64_linux_store_inferior_registers): Likewise.
390 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
391 (amd64_collect_native_gregset): Likewise.
392 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
393 (amd64obsd_collect_uthread): Likewise.
394 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
395 (amd64_collect_fpregset): Likewise.
396 (amd64_supply_fxsave): Likewise.
397 (amd64_supply_xsave): Likewise.
398 (amd64_collect_fxsave): Likewise.
399 (amd64_collect_xsave): Likewise.
400 * arc-tdep.c (arc_write_pc): Likewise.
401 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
402 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
403 (arm_fbsd_store_inferior_registers): Likewise.
404 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
405 (store_vfp_regs): Likewise.
406 (arm_linux_fetch_inferior_registers): Likewise.
407 (arm_linux_store_inferior_registers): Likewise.
408 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
409 (arm_linux_sigreturn_next_pc): Likewise.
410 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
411 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
412 (fetch_register): Likewise.
413 (store_register): Likewise.
414 * arm-tdep.c (arm_is_thumb): Likewise.
415 (displaced_in_arm_mode): Likewise.
416 (bx_write_pc): Likewise.
417 (arm_get_next_pcs_addr_bits_remove): Likewise.
418 (arm_software_single_step): Likewise.
419 (arm_extract_return_value): Likewise.
420 (arm_store_return_value): Likewise.
421 (arm_write_pc): Likewise.
422 * bfin-tdep.c (bfin_extract_return_value): Likewise.
423 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
424 (bsd_uthread_store_registers): Likewise.
425 * core-regset.c (fetch_core_registers): Likewise.
426 * corelow.c (get_core_registers): Likewise.
427 * cris-tdep.c (cris_store_return_value): Likewise.
428 (cris_extract_return_value): Likewise.
429 (find_step_target): Likewise.
430 (find_step_target): Likewise.
431 (cris_software_single_step): Likewise.
432 * ctf.c (ctf_fetch_registers): Likewise.
433 * darwin-nat.c (cancel_breakpoint): Likewise.
434 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
435 * frv-tdep.c (frv_extract_return_value): Likewise.
436 * ft32-tdep.c (ft32_store_return_value): Likewise.
437 (ft32_extract_return_value): Likewise.
438 * go32-nat.c (fetch_register): Likewise.
439 (go32_fetch_registers): Likewise.
440 (go32_store_registers): Likewise.
441 (store_register): Likewise.
442 * h8300-tdep.c (h8300_extract_return_value): Likewise.
443 (h8300_store_return_value): Likewise.
444 * hppa-linux-nat.c (fetch_register): Likewise.
445 (store_register): Likewise.
446 (hppa_linux_fetch_inferior_registers): Likewise.
447 (hppa_linux_store_inferior_registers): Likewise.
448 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
449 (i386_darwin_store_inferior_registers): Likewise.
450 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
451 (gnu_store_registers): Likewise.
452 * i386-linux-nat.c (fetch_register): Likewise.
453 (store_register): Likewise.
454 (supply_gregset): Likewise.
455 (fill_gregset): Likewise.
456 (i386_linux_fetch_inferior_registers): Likewise.
457 (i386_linux_store_inferior_registers): Likewise.
458 (i386_linux_resume): Likewise.
459 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
460 Likewise.
461 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
462 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
463 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
464 (i386obsd_collect_uthread): Likewise.
465 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
466 (i386_supply_gregset): Likewise.
467 (i386_collect_gregset): Likewise.
468 (i386_supply_fpregset): Likewise.
469 (i386_collect_fpregset): Likewise.
470 (i386_mpx_bd_base): Likewise.
471 * i386-v4-nat.c (supply_fpregset): Likewise.
472 (fill_fpregset): Likewise.
473 * i387-tdep.c (i387_supply_fsave): Likewise.
474 (i387_collect_fsave): Likewise.
475 (i387_supply_fxsave): Likewise.
476 (i387_collect_fxsave): Likewise.
477 (i387_supply_xsave): Likewise.
478 (i387_collect_xsave): Likewise.
479 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
480 (ia64_linux_store_registers): Likewise.
481 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
482 (ia64_extract_return_value): Likewise.
483 (ia64_store_return_value): Likewise.
484 (find_func_descr): Likewise.
485 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
486 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
487 (inf_ptrace_store_registers): Likewise.
488 * infrun.c (use_displaced_stepping): Likewise.
489 (displaced_step_prepare_throw): Likewise.
490 (resume): Likewise.
491 (proceed): Likewise.
492 (do_target_wait): Likewise.
493 (adjust_pc_after_break): Likewise.
494 (handle_inferior_event_1): Likewise.
495 (handle_signal_stop): Likewise.
496 (save_infcall_suspend_state): Likewise.
497 (restore_infcall_suspend_state): Likewise.
498 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
499 * jit.c (jit_frame_prev_register): Likewise.
500 * linux-nat.c (save_stop_reason): Likewise.
501 (linux_nat_wait_1): Likewise.
502 (resume_stopped_resumed_lwps): Likewise.
503 * linux-record.c (record_linux_sockaddr): Likewise.
504 (record_linux_msghdr): Likewise.
505 (record_linux_system_call): Likewise.
506 * linux-tdep.c (linux_collect_thread_registers): Likewise.
507 * lm32-tdep.c (lm32_extract_return_value): Likewise.
508 (lm32_store_return_value): Likewise.
509 * m32c-tdep.c (m32c_read_flg): Likewise.
510 (m32c_pseudo_register_read): Likewise.
511 (m32c_pseudo_register_write): Likewise.
512 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
513 (m32r_linux_collect_gregset): Likewise.
514 * m32r-tdep.c (m32r_store_return_value): Likewise.
515 (m32r_extract_return_value): Likewise.
516 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
517 (m68kbsd_collect_fpregset): Likewise.
518 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
519 * m68k-linux-nat.c (fetch_register): Likewise.
520 (old_fetch_inferior_registers): Likewise.
521 (old_store_inferior_registers): Likewise.
522 (store_regs): Likewise.
523 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
524 (m68k_svr4_store_return_value): Likewise.
525 * m88k-tdep.c (m88k_store_arguments): Likewise.
526 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
527 (mi_cmd_data_write_register_values): Likewise.
528 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
529 (mips_fbsd_store_inferior_registers): Likewise.
530 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
531 (mips_fbsd_supply_gregs): Likewise.
532 (mips_fbsd_collect_fpregs): Likewise.
533 (mips_fbsd_collect_gregs): Likewise.
534 (mips_fbsd_supply_fpregset): Likewise.
535 (mips_fbsd_collect_fpregset): Likewise.
536 (mips_fbsd_supply_gregset): Likewise.
537 (mips_fbsd_collect_gregset): Likewise.
538 * mips-linux-nat.c (supply_gregset): Likewise.
539 (fill_gregset): Likewise.
540 (supply_fpregset): Likewise.
541 (fill_fpregset): Likewise.
542 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
543 (mips_fill_gregset): Likewise.
544 (mips_supply_fpregset): Likewise.
545 (mips_fill_fpregset): Likewise.
546 (mips64_supply_gregset): Likewise.
547 (micromips_linux_sigframe_validate): Likewise.
548 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
549 (mipsnbsd_fetch_inferior_registers): Likewise.
550 (mipsnbsd_store_inferior_registers): Likewise.
551 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
552 (mipsnbsd_supply_gregset): Likewise.
553 (mipsnbsd_iterate_over_regset_sections): Likewise.
554 (mipsnbsd_supply_reg): Likewise.
555 (mipsnbsd_supply_fpreg): Likewise.
556 * mips-tdep.c (mips_in_frame_stub): Likewise.
557 (mips_dummy_id): Likewise.
558 (is_octeon_bbit_op): Likewise.
559 (micromips_bc1_pc): Likewise.
560 (extended_mips16_next_pc): Likewise.
561 (mips16_next_pc): Likewise.
562 (deal_with_atomic_sequence): Likewise.
563 * moxie-tdep.c (moxie_process_readu): Likewise.
564 * nios2-tdep.c (nios2_get_next_pc): Likewise.
565 * nto-procfs.c (procfs_store_registers): Likewise.
566 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
567 (ppcfbsd_store_inferior_registers): Likewise.
568 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
569 (fetch_altivec_register): Likewise.
570 (get_spe_registers): Likewise.
571 (fetch_spe_register): Likewise.
572 (fetch_altivec_registers): Likewise.
573 (fetch_all_gp_regs): Likewise.
574 (fetch_all_fp_regs): Likewise.
575 (store_vsx_register): Likewise.
576 (store_altivec_register): Likewise.
577 (set_spe_registers): Likewise.
578 (store_spe_register): Likewise.
579 (store_altivec_registers): Likewise.
580 (store_all_gp_regs): Likewise.
581 (store_all_fp_regs): Likewise.
582 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
583 (ppc_linux_collect_gregset): Likewise.
584 (ppc_canonicalize_syscall): Likewise.
585 (ppc_linux_record_signal): Likewise.
586 (ppu2spu_prev_register): Likewise.
587 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
588 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
589 (ppcobsd_store_registers): Likewise.
590 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
591 Likewise.
592 (ppc_ravenscar_generic_store_registers): Likewise.
593 * procfs.c (procfs_fetch_registers): Likewise.
594 (procfs_store_registers): Likewise.
595 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
596 (ravenscar_store_registers): Likewise.
597 (ravenscar_prepare_to_store): Likewise.
598 * record-btrace.c (record_btrace_fetch_registers): Likewise.
599 * record-full.c (record_full_wait_1): Likewise.
600 (record_full_registers_change): Likewise.
601 (record_full_store_registers): Likewise.
602 (record_full_core_fetch_registers): Likewise.
603 (record_full_save): Likewise.
604 (record_full_goto_insn): Likewise.
605 * regcache.c (regcache_register_size): Likewise.
606 (get_regcache_arch): Remove.
607 (regcache_read_pc): Likewise.
608 * regcache.h (get_regcache_arch): Remove.
609 * remote-sim.c (gdbsim_fetch_register): Likewise.
610 (gdbsim_store_register): Likewise.
611 * remote.c (fetch_register_using_p): Likewise.
612 (send_g_packet): Likewise.
613 (remote_prepare_to_store): Likewise.
614 (store_registers_using_G): Likewise.
615 * reverse.c (save_bookmark_command): Likewise.
616 (goto_bookmark_command): Likewise.
617 * rs6000-aix-tdep.c (branch_dest): Likewise.
618 * rs6000-nat.c (rs6000_ptrace64): Likewise.
619 (fetch_register): Likewise.
620 * rs6000-tdep.c (ppc_supply_reg): Likewise.
621 (ppc_collect_reg): Likewise.
622 (ppc_collect_gregset): Likewise.
623 (ppc_collect_fpregset): Likewise.
624 (ppc_collect_vsxregset): Likewise.
625 (ppc_collect_vrregset): Likewise.
626 (ppc_displaced_step_hw_singlestep): Likewise.
627 (rs6000_pseudo_register_read): Likewise.
628 (rs6000_pseudo_register_write): Likewise.
629 * s390-linux-nat.c (supply_gregset): Likewise.
630 (fill_gregset): Likewise.
631 (s390_linux_fetch_inferior_registers): Likewise.
632 * s390-linux-tdep.c (s390_write_pc): Likewise.
633 (s390_software_single_step): Likewise.
634 (s390_all_but_pc_registers_record): Likewise.
635 (s390_linux_syscall_record): Likewise.
636 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
637 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
638 (shnbsd_store_inferior_registers): Likewise.
639 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
640 (sh_extract_return_value_fpu): Likewise.
641 (sh_store_return_value_nofpu): Likewise.
642 (sh_corefile_supply_regset): Likewise.
643 (sh_corefile_collect_regset): Likewise.
644 * sh64-tdep.c (sh64_extract_return_value): Likewise.
645 (sh64_store_return_value): Likewise.
646 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
647 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
648 (sparc_store_inferior_registers): Likewise.
649 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
650 (sparc_ravenscar_prepare_to_store): Likewise.
651 * sparc-tdep.c (sparc32_store_arguments): Likewise.
652 (sparc_analyze_control_transfer): Likewise.
653 (sparc_step_trap): Likewise.
654 (sparc_software_single_step): Likewise.
655 (sparc32_gdbarch_init): Likewise.
656 (sparc_supply_rwindow): Likewise.
657 (sparc_collect_rwindow): Likewise.
658 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
659 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
660 (sparc64nbsd_collect_gregset): Likewise.
661 (sparc64nbsd_supply_fpregset): Likewise.
662 (sparc64nbsd_collect_fpregset): Likewise.
663 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
664 (sparc64_supply_gregset): Likewise.
665 (sparc64_collect_gregset): Likewise.
666 (sparc64_supply_fpregset): Likewise.
667 (sparc64_collect_fpregset): Likewise.
668 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
669 * spu-tdep.c (spu_unwind_sp): Likewise.
670 (spu2ppu_prev_register): Likewise.
671 (spu_memory_remove_breakpoint): Likewise.
672 * stack.c (return_command): Likewise.
673 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
674 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
675 * tracefile.c (trace_save_ctf): Likewise.
676 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
677 (do_windows_store_inferior_registers): Likewise.
678 (windows_resume): Likewise.
679 * xtensa-linux-nat.c (fill_gregset): Likewise.
680 (supply_gregset_reg): Likewise.
681 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
682 (xtensa_register_read_masked): Likewise.
683 (xtensa_supply_gregset): Likewise.
684 (xtensa_extract_return_value): Likewise.
685 (xtensa_store_return_value): Likewise.
686
edd079d9
UW
6872017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
688
689 * doublest.c (floatformat_from_string): New function.
690 * doublest.h (floatformat_from_string): Add prototype.
691
692 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
693 (OP_FLOAT): ... this.
694 * expression.h: Do not include "doublest.h".
695 (union exp_element): Replace doubleconst and decfloatconst by
696 new element floatconst.
697 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
698 (ada_evaluate_subexp): Likewise.
699 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
700 OP_DOUBLE and OP_DECFLOAT.
701 * expprint.c (print_subexp_standard): Likewise.
702 (dump_subexp_body_standard): Likewise.
703 * breakpoint.c (watchpoint_exp_is_const): Likewise.
704
705 * parse.c: Include "dfp.h".
706 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
707 (write_exp_elt_floatcst): New function.
708 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
709 and OP_DECFLOAT.
710 (operator_check_standard): Likewise.
711 (parse_float): Do not accept suffix. Take type as input. Return bool.
712 Return target format buffer instead of host DOUBLEST.
713 Use floatformat_from_string and decimal_from_string to parse
714 either binary or decimal floating-point types.
715 (parse_c_float): Remove.
716 * parser-defs.h: Do not include "doublest.h".
717 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
718 (write_exp_elt_floatcst): Add prototype.
719 (parse_float): Update prototype.
720 (parse_c_float): Remove.
721
722 * c-exp.y: Do not include "dfp.h".
723 (typed_val_float): Use byte buffer instead of DOUBLEST.
724 (typed_val_decfloat): Remove.
725 (DECFLOAT): Remove.
726 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
727 (parse_number): Update to new parse_float interface.
728 Parse suffixes and determine type before calling parse_float.
729 Handle decimal and binary FP types the same way.
730
731 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
732 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
733 (parse_number): Update to new parse_float interface.
734 Parse suffixes and determine type before calling parse_float.
735
736 * f-exp.y: Replace dval by typed_val_float.
737 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
738 (parse_number): Use parse_float instead of atof.
739
740 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
741 (parse_go_float): Remove.
742 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
743 (parse_number): Call parse_float instead of parse_go_float.
744 Parse suffixes and determine type before calling parse_float.
745
746 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
747 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
748 (parse_number): Update to new parse_float interface.
749 Parse suffixes and determine type before calling parse_float.
750
751 * m2-exp.y: Replace dval by byte buffer val.
752 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
753 (parse_number): Call parse_float instead of atof.
754
755 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
756 (lex_number): Call parse_float instead of strtod.
757 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
758 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
759 Use write_exp_elt_floatcst.
760 (unit_testing): Remove static variable.
761 (rust_type): Do not check unit_testing.
762 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
763
764 * ada-exp.y (type_float, type_double): Remove.
765 (typed_val_float): Use byte buffer instead of DOUBLEST.
766 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
767 * ada-lex.l (processReal): Use parse_float instead of sscanf.
768
cc628f3d
AH
7692017-10-25 Alan Hayward <alan.hayward@arm.com>
770
771 * aarch64-tdep.h (enum aarch64_regnum): Remove.
772 * arch/aarch64.h: New file.
773
09a7c6aa
UW
7742017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
775
776 * dfp.h (decimal_from_string): Use const reference for argument.
777 * dfp.c (decimal_from_string): Likewise.
778
8ba0dd51
UW
7792017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
780
781 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
782 * sh64-tdep.c (sh64_do_fp_register): Likewise.
783 * mips-tdep.c (mips_print_fp_register): Likewise.
784
16e812b2
UW
7852017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
786
787 * common/format.h (enum argclass): Replace decfloat_arg by
788 dec32float_arg, dec64float_arg, and dec128float_arg.
789 * common/format.c (parse_format_string): Update to return
790 new decimal float argument classes.
791
792 * printcmd.c (printf_decfloat): Rename to ...
793 (printf_floating): ... this. Add argclass argument, and use it
794 instead of parsing the format string again. Add support for
795 binary floating-point values, using floatformat_to_string.
796 Convert value to the target format if it doesn't already match.
797 (ui_printf): Call printf_floating instead of printf_decfloat,
798 also for double_arg / long_double_arg. Pass argclass.
799
800 * dfp.c (decimal_to_string): Add format string argument.
801 * dfp.h (decimal_to_string): Likewise.
802
803 * doublest.c (floatformat_to_string): Add format string argument.
804 * doublest.h (floatformat_to_string): Likewise.
805
fdf0cbc2
UW
8062017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
807
808 * doublest.c (floatformat_precision): New routine.
809 (floatformat_to_string): Likewise.
810 * doublest.c (floatformat_to_string): Add prototype.
811
812 * printcmd.c (print_scalar_formatted): Only call print_floating
813 on floating-point types.
814 * valprint.c: Do not include "floatformat.h".
815 (generic_val_print_decfloat): Remove.
816 (generic_val_print): Call generic_val_print_float for both
817 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
818 (print_floating): Use floatformat_to_string. Handle decimal float.
819 (print_decimal_floating): Remove, merge into floatformat_to_string.
820 * value.h (print_decimal_floating): Remove.
821
822 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
823
5033013f
UW
8242017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
825
826 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
827
a664f67e
SM
8282017-10-21 Simon Marchi <simon.marchi@ericsson.com>
829
830 * memattr.h: Don't include vec.h.
831 (struct mem_attrib): Initialize fields.
832 <unknown>: New static method.
833 (struct mem_region): Add constructors, operator<, initialize
834 fields.
835 * memattr.c: Include algorithm.
836 (default_mem_attrib, unknown_mem_attrib): Remove.
837 (user_mem_region_list): New global.
838 (target_mem_region_list, mem_region_list): Change type to
839 std::vector<mem_region>.
840 (mem_use_target): Now a function.
841 (target_mem_regions_valid): Change type to bool.
842 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
843 (require_user_regions): Adjust.
844 (require_target_regions): Adjust.
845 (create_mem_region): Adjust.
846 (lookup_mem_region): Adjust.
847 (invalidate_target_mem_regions): Adjust.
848 (mem_clear): Rename to...
849 (user_mem_clear): ... this, and adjust.
850 (mem_command): Adjust.
851 (info_mem_command): Adjust.
852 (mem_enable, enable_mem_command, mem_disable,
853 disable_mem_command): Adjust.
854 (mem_delete): Adjust.
855 (delete_mem_command): Adjust.
856 * memory-map.h (parse_memory_map): Return an std::vector.
857 * memory-map.c (parse_memory_map): Likewise.
858 (struct memory_map_parsing_data): Add constructor.
859 <memory_map>: Point to std::vector.
860 (memory_map_start_memory): Adjust.
861 (memory_map_end_memory): Adjust.
862 (memory_map_end_property): Adjust.
863 (clear_result): Remove.
864 * remote.c (remote_memory_map): Return an std::vector.
865 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
866 Remove.
867 (target_debug_print_mem_region_vector): New.
868 * target-delegates.c: Regenerate.
869 * target.h (mem_region_vector): New typedef.
870 (to_memory_map): Return mem_region_vector.
871 (target_memory_map): Return an std::vector.
872 * target.c (target_memory_map): Return an std::vector.
873 (flash_erase_command): Adjust.
874
6e17c565
SM
8752017-10-21 Simon Marchi <simon.marchi@ericsson.com>
876
877 * memory-map.c (struct memory_map_parsing_data) <property_name>:
878 Change type to std::string.
879 (memory_map_start_property): Adjust.
880 (memory_map_end_property): Adjust.
881
cfba9872
SM
8822017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
883
884 * infrun.h: Include common/byte-vector.h.
885 (struct displaced_step_closure): New struct.
886 (struct buf_displaced_step_closure): New struct.
887 * infrun.c (displaced_step_closure::~displaced_step_closure):
888 Provide default implementation.
889 (displaced_step_clear): Deallocate step closure with delete.
890 * aarch64-tdep.c (displaced_step_closure): Rename to ...
891 (aarch64_displaced_step_closure): ... this, extend
892 displaced_step_closure.
893 (aarch64_displaced_step_data) <dsc>: Change type to
894 aarch64_displaced_step_closure.
895 (aarch64_displaced_step_copy_insn): Adjust to type change, use
896 unique_ptr.
897 (aarch64_displaced_step_fixup): Add cast for displaced step
898 closure.
899 * amd64-tdep.c (displaced_step_closure): Rename to ...
900 (amd64_displaced_step_closure): ... this, extend
901 displaced_step_closure.
902 <insn_buf>: Change type to std::vector<gdb_byte>.
903 <max_len>: Remove.
904 (fixup_riprel): Change type of DSC parameter, adjust to type
905 change of insn_buf.
906 (fixup_displaced_copy): Change type of DSC parameter.
907 (amd64_displaced_step_copy_insn): Instantiate
908 amd64_displaced_step_closure.
909 (amd64_displaced_step_fixup): Add cast for closure type, adjust
910 to type change of insn_buf.
911 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
912 parameter DSC.
913 (arm_linux_copy_svc): Likewise.
914 (cleanup_kernel_helper_return): Likewise.
915 (arm_catch_kernel_helper_return): Likewise.
916 (arm_linux_displaced_step_copy_insn): Instantiate
917 arm_displaced_step_closure.
918 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
919 (displaced_read_reg): Change type of parameter DSC.
920 (branch_write_pc): Likewise.
921 (load_write_pc): Likewise.
922 (alu_write_pc): Likewise.
923 (displaced_write_reg): Likewise.
924 (arm_copy_unmodified): Likewise.
925 (thumb_copy_unmodified_32bit): Likewise.
926 (thumb_copy_unmodified_16bit): Likewise.
927 (cleanup_preload): Likewise.
928 (install_preload): Likewise.
929 (arm_copy_preload): Likewise.
930 (thumb2_copy_preload): Likewise.
931 (install_preload_reg): Likewise.
932 (arm_copy_preload_reg): Likewise.
933 (cleanup_copro_load_store): Likewise.
934 (install_copro_load_store): Likewise.
935 (arm_copy_copro_load_store) Likewise.
936 (thumb2_copy_copro_load_store): Likewise.
937 (cleanup_branch): Likewise.
938 (install_b_bl_blx): Likewise.
939 (arm_copy_b_bl_blx): Likewise.
940 (thumb2_copy_b_bl_blx): Likewise.
941 (thumb_copy_b): Likewise.
942 (install_bx_blx_reg): Likewise.
943 (arm_copy_bx_blx_reg): Likewise.
944 (thumb_copy_bx_blx_reg): Likewise.
945 (cleanup_alu_imm): Likewise.
946 (arm_copy_alu_imm): Likewise.
947 (thumb2_copy_alu_imm): Likewise.
948 (cleanup_alu_reg): Likewise.
949 (install_alu_reg): Likewise.
950 (arm_copy_alu_reg): Likewise.
951 (thumb_copy_alu_reg): Likewise.
952 (cleanup_alu_shifted_reg): Likewise.
953 (install_alu_shifted_reg): Likewise.
954 (arm_copy_alu_shifted_reg): Likewise.
955 (cleanup_load): Likewise.
956 (cleanup_store): Likewise.
957 (arm_copy_extra_ld_st): Likewise.
958 (install_load_store): Likewise.
959 (thumb2_copy_load_literal): Likewise.
960 (thumb2_copy_load_reg_imm): Likewise.
961 (arm_copy_ldr_str_ldrb_strb): Likewise.
962 (cleanup_block_load_all): Likewise.
963 (cleanup_block_store_pc): Likewise.
964 (cleanup_block_load_pc): Likewise.
965 (arm_copy_block_xfer): Likewise.
966 (thumb2_copy_block_xfer): Likewise.
967 (cleanup_svc): Likewise.
968 (install_svc): Likewise.
969 (arm_copy_svc): Likewise.
970 (thumb_copy_svc): Likewise.
971 (arm_copy_undef): Likewise.
972 (thumb_32bit_copy_undef): Likewise.
973 (arm_copy_unpred): Likewise.
974 (arm_decode_misc_memhint_neon): Likewise.
975 (arm_decode_unconditional): Likewise.
976 (arm_decode_miscellaneous): Likewise.
977 (arm_decode_dp_misc): Likewise.
978 (arm_decode_ld_st_word_ubyte): Likewise.
979 (arm_decode_media): Likewise.
980 (arm_decode_b_bl_ldmstm): Likewise.
981 (arm_decode_ext_reg_ld_st): Likewise.
982 (thumb2_decode_dp_shift_reg): Likewise.
983 (thumb2_decode_ext_reg_ld_st): Likewise.
984 (arm_decode_svc_copro): Likewise.
985 (thumb2_decode_svc_copro): Likewise.
986 (install_pc_relative): Likewise.
987 (thumb_copy_pc_relative_16bit): Likewise.
988 (thumb_decode_pc_relative_16bit): Likewise.
989 (thumb_copy_pc_relative_32bit): Likewise.
990 (thumb_copy_16bit_ldr_literal): Likewise.
991 (thumb_copy_cbnz_cbz): Likewise.
992 (thumb2_copy_table_branch): Likewise.
993 (cleanup_pop_pc_16bit_all): Likewise.
994 (thumb_copy_pop_pc_16bit): Likewise.
995 (thumb_process_displaced_16bit_insn): Likewise.
996 (decode_thumb_32bit_ld_mem_hints): Likewise.
997 (thumb_process_displaced_32bit_insn): Likewise.
998 (thumb_process_displaced_insn): Likewise.
999 (arm_process_displaced_insn): Likewise.
1000 (arm_displaced_init_closure): Likewise.
1001 (arm_displaced_step_fixup): Add cast for closure.
1002 * arm-tdep.h: Include infrun.h.
1003 (displaced_step_closure): Rename to ...
1004 (arm_displaced_step_closure): ... this, extend
1005 displaced_step_closure.
1006 <u::svc::copy_svc_os>: Change type of parameter DSC.
1007 <cleanup>: Likewise.
1008 (arm_process_displaced_insn): Likewise.
1009 (arm_displaced_init_closure): Likewise.
1010 (displaced_read_reg): Likewise.
1011 (displaced_write_reg): Likewise.
1012 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
1013 Adjust.
1014 * i386-tdep.h: Include infrun.h.
1015 (i386_displaced_step_closure): New typedef.
1016 * i386-tdep.c (i386_displaced_step_copy_insn): Use
1017 i386_displaced_step_closure.
1018 (i386_displaced_step_fixup): Adjust.
1019 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
1020 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
1021 and unique_ptr.
1022 (ppc_displaced_step_fixup): Adjust.
1023 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
1024 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
1025 and unique_ptr.
1026 (s390_displaced_step_fixup): Adjust.
1027
b392b304
SM
10282017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1029
1030 * interps.h (interp_resume, interp_suspend, interp_set_temp):
1031 Remove declarations.
1032
d5833c62
TT
10332017-10-20 Tom Tromey <tom@tromey.com>
1034
1035 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
1036 std::vector.
1037 (gdb_bfd_record_inclusion): Update.
1038 (bfdp): Remove typedef.
1039
06d5bbc8
TT
10402017-10-20 Tom Tromey <tom@tromey.com>
1041
1042 * gdb_bfd.c (gdb_bfd_ref): Use new.
1043 (struct gdb_bfd_data): Add constructor, destructor, and member
1044 initializers.
1045 (gdb_bfd_unref): Use delete.
1046
2712ce2e
TT
10472017-10-20 Tom Tromey <tom@tromey.com>
1048
1049 * exec.c (exec_file_attach): Use new_bfd_ref.
1050 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
1051 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
1052 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
1053 new_bfd_ref.
1054 * gdb_bfd.h (new_bfd_ref): New function.
1055
fcc8fb2f
PA
10562017-10-20 Pedro Alves <palves@redhat.com>
1057
1058 * main.c (captured_command_loop): Add attribute noinline.
1059
4c2287b0
SM
10602017-10-19 Simon Marchi <simon.marchi@ericsson.com>
1061
1062 * interps.c (struct interp_factory): Add constructor.
1063 (interp_factory_p): Remove typedef.
1064 (DEF_VEC_P(interp_factory_p)): Remove.
1065 (interpreter_factories): Change type to std::vector.
1066 (interp_factory_register): Adjust.
1067 (interp_lookup): Adjust.
1068 (interpreter_completer): Adjust.
1069
3d415c26
TT
10702017-10-19 Tom Tromey <tom@tromey.com>
1071
1072 * break-catch-syscall.c (catch_syscall_completer): Use
1073 std::string, gdb::unique_xmalloc_ptr.
1074
395423c4
TT
10752017-10-19 Tom Tromey <tom@tromey.com>
1076
1077 * infcall.c (call_function_by_hand_dummy): Use std::string.
1078
54f70bc1
TT
10792017-10-19 Tom Tromey <tom@tromey.com>
1080
1081 * mi/mi-main.c (mi_cmd_execute): Update.
1082 * top.h (prepare_execute_command): Return scoped_value_mark.
1083 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
1084 Add move constructor.
1085 * top.c (prepare_execute_command): Return scoped_value_mark.
1086 (execute_command): Update.
1087
63929e84
PA
10882017-10-19 Pedro Alves <palves@redhat.com>
1089
1090 * xml-support.c (xml_fetch_content_from_file): Check fread's
1091 return.
1092
a75868f5
PA
10932017-10-19 Pedro Alves <palves@redhat.com>
1094
1095 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
1096 async.
1097 (handle_error_fd): New function.
1098 (ser_base_async): Add/delete an event loop file handler for
1099 error_fd.
1100
2edf834e
PA
11012017-10-19 Pedro Alves <palves@redhat.com>
1102
1103 * xml-support.c (xml_fetch_content_from_file): Don't read in
1104 chunks. Instead use fseek to determine the file's size, and read
1105 it in one go.
1106
c8ba13ad
KS
11072017-11-18 Keith Seitz <keiths@redhat.com>
1108
1109 * c-exp.y (oper): Canonicalize conversion operators of user-defined
1110 types.
1111 Add whitespace to front of type name.
1112
37534686
KS
11132017-10-18 Keith Seitz <keiths@redhat.com>
1114
1115 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
1116 DW_AT_accessibility.
1117
28c7c158
YQ
11182017-10-18 Yao Qi <yao.qi@linaro.org>
1119
1120 * features/tic6x-c62x-linux.c: Remove.
1121
30f0b101
TT
11222017-10-17 Tom Tromey <tom@tromey.com>
1123
1124 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
1125 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
1126 (do_mixed_source_and_assembly): Likewise.
1127
57e12da9
TT
11282017-10-17 Tom Tromey <tom@tromey.com>
1129
1130 * regcache.c (regcache::xfer_part): Remove assertion.
1131
7b700999
PA
11322017-10-17 Pedro Alves <palves@redhat.com>
1133
1134 * xml-support.c (xml_fetch_content_from_file): Call
1135 unique_ptr::release() instead unique_ptr::get() when passing
1136 through xrealloc.
1137
d3037ba6
YQ
11382017-10-17 Yao Qi <yao.qi@linaro.org>
1139
1140 * regcache.c (regcache::xfer_part): Remove parameters read and
1141 write, add parameter is_raw. All callers are updated.
1142
83d5a34d
KS
11432017-10-16 Keith Seitz <keiths@redhat.com>
1144
1145 * c-typeprint.c (enum access_specifier): Moved here from
1146 c_type_print_base.
1147 (output_access_specifier): New function.
1148 (c_type_print_base): Consider typedefs when assessing
1149 whether access labels are needed.
1150 Use output_access_specifier as needed.
1151 Output access specifier for typedefs, if needed.
1152 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
1153 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
1154 fields.
1155 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
1156 accessor macros.
1157
87028b87
TT
11582017-10-16 Tom Tromey <tom@tromey.com>
1159
1160 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
1161 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
1162 * target.c (target_fileio_read_stralloc): Update.
1163 * sparc64-tdep.c (adi_is_addr_mapped): Update.
1164 * target.h (target_fileio_read_stralloc): Return
1165 unique_xmalloc_ptr.
1166
b7b030ad
TT
11672017-10-16 Tom Tromey <tom@tromey.com>
1168
1169 * xml-syscall.c (xml_init_syscalls_info): Update.
1170 * xml-support.c (xinclude_start_include): Update.
1171 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
1172 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
1173 (xml_fetch_content_from_file): Likewise.
1174 * osdata.c (get_osdata): Update.
1175 * target.h (target_read_stralloc, target_get_osdata): Return
1176 unique_xmalloc_ptr.
1177 * solib-aix.c (solib_aix_get_library_list): Update.
1178 * solib-target.c (solib_target_current_sos): Update.
1179 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
1180 * xml-tdesc.c (fetch_available_features_from_target): Update.
1181 (target_fetch_description_xml): Update.
1182 (file_read_description_xml): Update.
1183 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
1184 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
1185 (remote_pid_to_exec_file): Update.
1186 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
1187 (target_get_osdata): Likewise.
1188
b80406ac
TT
11892017-10-16 Tom Tromey <tom@tromey.com>
1190
1191 * remote.c (remote_register_number_and_offset): Use std::vector.
1192 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
1193 (putpkt_binary): Use gdb::def_vector.
1194 (compare_sections_command): Use gdb::byte_vector.
1195
a90ecff8
TT
11962017-10-16 Tom Tromey <tom@tromey.com>
1197
1198 * ppc-linux-nat.c (hwdebug_insert_point): Use
1199 gdb::unique_xmalloc_ptr, XDUP.
1200
2dc0e219
TT
12012017-10-16 Tom Tromey <tom@tromey.com>
1202
1203 * probe.c (parse_probes): Use std::string.
1204 (info_probes_for_ops, enable_probes_command)
1205 (disable_probes_command): Remove cleanups.
1206
b05628f0
TT
12072017-10-16 Tom Tromey <tom@tromey.com>
1208
1209 * buildsym.c (block_compar): Remove.
1210 (end_symtab_get_static_block): Use std::vector.
1211
a79b1bc6
SM
12122017-10-16 Simon Marchi <simon.marchi@ericsson.com>
1213
1214 * memrange.h (struct mem_range): Define operator< and operator==.
1215 (mem_range_s): Remove.
1216 (DEF_VEC_O (mem_range_s)): Remove.
1217 (normalize_mem_ranges): Change parameter type to std::vector.
1218 * memrange.c (compare_mem_ranges): Remove.
1219 (normalize_mem_ranges): Change parameter type to std::vector,
1220 adjust to vector change.
1221 * exec.c (section_table_available_memory): Return vector, remove
1222 parameter.
1223 (section_table_read_available_memory): Adjust to std::vector
1224 change.
1225 * remote.c (remote_read_bytes): Adjust to std::vector
1226 change.
1227 * tracepoint.h (traceframe_available_memory): Change parameter
1228 type to std::vector.
1229 * tracepoint.c (traceframe_available_memory): Change parameter
1230 type to std::vector, adjust.
1231 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
1232 std::vector change.
1233 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1234 unittests/memrange-selftests.c.
1235 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
1236 * gdb/unittests/memrange-selftests.c: New file.
1237
63f0e930
PA
12382017-10-16 Pedro Alves <palves@redhat.com>
1239
1240 * elfread.c (probe_key_free): Rename range-for variable.
1241 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
1242 (find_probe_by_pc, collect_probes): Rename range-for variable.
1243
c40c7bfc
YQ
12442017-10-16 Yao Qi <yao.qi@linaro.org>
1245
1246 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
1247 * features/tic6x-c62x.c: Remove.
1248 * features/tic6x-c64x-linux.c: Remove.
1249 * features/tic6x-c64x.c: Remove.
1250 * features/tic6x-c64xp-linux.c: Remove.
1251 * features/tic6x-c64xp.c: Remove.
1252 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
1253 initialize_tdesc_tic6x_*_linux functions.
1254 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
1255 initialize_tdesc_tic6x_* functions.
1256
df27ae6a
YQ
12572017-10-16 Yao Qi <yao.qi@linaro.org>
1258
1259 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
1260 tic6x-c62x.
1261 * regformats/tic6x-c62x.dat: Remove.
1262 * regformats/tic6x-c64x.dat: Remove.
1263 * regformats/tic6x-c64xp.dat: Remove.
1264
86766165
SM
12652017-10-15 Simon Marchi <simon.marchi@ericsson.com>
1266
1267 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
1268 (the !HAVE_LIBEXPAT version).
1269
824dfcc3
SM
12702017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1271
1272 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
1273 const.
1274
2098b393
SM
12752017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1276
1277 * target.h: Include tracepoint.h.
1278 (enum trace_find_type): Move to tracepoint.h.
1279 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
1280 * tracepoint.h: Don't include target.h
1281 (enum trace_find_type): Move from target.h.
1282 (parse_traceframe_info): Return a unique ptr.
1283 * tracepoint.c (current_traceframe_info): Change type to unique
1284 ptr.
1285 (free_traceframe_info): Remove.
1286 (clear_traceframe_info): Don't manually free
1287 current_traceframe_info.
1288 (free_result): Remove.
1289 (parse_traceframe_info): Return a unique ptr.
1290 (get_traceframe_info): Adjust to unique ptr.
1291 * ctf.c (ctf_traceframe_info): Return a unique ptr.
1292 * remote.c (remote_traceframe_info): Return a unique ptr.
1293 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
1294 ptr.
1295 * target-debug.h (target_debug_print_traceframe_info_up): New
1296 macro.
1297 * target-delegates.c: Regenerate.
1298
4cdd21a8
SM
12992017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1300
1301 * memrange.h (struct mem_range): Add constructors.
1302 * tracepoint.h (struct traceframe_info) <memory>: Change type to
1303 std::vector<mem_range>.
1304 * tracepoint.c (free_traceframe_info): Don't manually free
1305 vector.
1306 (traceframe_info_start_memory): Adjust to vector change.
1307 (traceframe_available_memory): Likewise.
1308 * tracefile-tfile.c (build_traceframe_info): Likewise.
1309 * ctf.c (ctf_traceframe_info): Likewise.
1310
d0d292a2
SM
13112017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1312
1313 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
1314 std::vector<int>.
1315 * tracepoint.c (free_traceframe_info): Deallocate with delete.
1316 (traceframe_info_start_tvar): Adjust to vector change.
1317 (parse_traceframe_info): Allocate with new.
1318 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
1319 vector change.
1320 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
1321 change.
1322 tfile_traceframe_info): Allocate with new.
1323 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
1324 change.
1325
8d3c73ef
SM
13262017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1327
1328 * tracepoint.c (traceframe_info): Rename to...
1329 (current_traceframe_info): ...this.
1330 (clear_traceframe_info): Adjust.
1331 (get_traceframe_info): Adjust.
1332
b129dcac
SM
13332017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1334
1335 * nat/linux-osdata.c: Include algorithm.
1336 (compare_processes): Remove.
1337 (struct pid_pgid_entry): New struct.
1338 (linux_xfer_osdata_processgroups): Use std::vector instead of
1339 XNEWVEC.
1340
af5bf4ad
SM
13412017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1342
1343 * objfiles.h: Don't include symfile.h.
1344 (struct partial_symbol): Remove forward-declaration.
1345 (struct objfile) <global_psymbols, static_psymbols>: Change type
1346 to std::vector<partial_symbol *>.
1347 * objfiles.c (objfile::objfile): Don't memset those fields.
1348 (objfile::~objfile): Don't free those fields.
1349 * psympriv.h (struct psymbol_allocation_list): Remove
1350 forward-declaration.
1351 (add_psymbol_to_list): Change psymbol_allocation_list parameter
1352 to std::vector.
1353 (start_psymtab_common): Change parameters to std::vector.
1354 * psymtab.c: Include algorithm.
1355 (require_partial_symbols): Call shrink_to_fit.
1356 (find_pc_sect_psymbol): Adjust to vector change.
1357 (match_partial_symbol): Likewise.
1358 (lookup_partial_symbol): Likewise.
1359 (psym_relocate): Likewise.
1360 (dump_psymtab): Likewise.
1361 (recursively_search_psymtabs): Likewise.
1362 (compare_psymbols): Remove.
1363 (sort_pst_symbols): Adjust to vector change.
1364 (start_psymtab_common): Likewise.
1365 (end_psymtab_common): Likewise.
1366 (psymbol_bcache_full): De-constify return value.
1367 (add_psymbol_to_bcache): Likewise.
1368 (extend_psymbol_list): Remove.
1369 (append_psymbol_to_list): Adjust to vector change.
1370 (add_psymbol_to_list): Likewise.
1371 (init_psymbol_list): Likewise.
1372 (maintenance_info_psymtabs): Likewise.
1373 (maintenance_check_psymtabs): Likewise.
1374 * symfile.h (struct psymbol_allocation_list): Remove.
1375 * symfile.c (reread_symbols): Adjust to vector change.
1376 * dbxread.c (start_psymtab): Change type of parameters.
1377 (dbx_symfile_read): Adjust to vector change.
1378 (read_dbx_symtab): Likewise.
1379 (start_psymtab): Change type of parameters.
1380 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
1381 (create_partial_symtab): Likewise.
1382 (add_partial_symbol): Likewise.
1383 (write_one_signatured_type): Likewise.
1384 (recursively_write_psymbols): Likewise.
1385 * mdebugread.c (parse_partial_symbols): Likewise.
1386 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
1387 (scan_xcoff_symtab): Adjust to vector change.
1388 (xcoff_initial_scan): Likewise.
1389
3ec5942f
SM
13902017-10-13 Simon Marchi <simon.marchi@ericsson.com>
1391
1392 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
1393
2399fe6a
YQ
13942017-10-13 Yao Qi <yao.qi@linaro.org>
1395
1396 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
1397 Remove s390x-*-expedite, add s390x-expedite.
1398
4bf3f4a8
YQ
13992017-10-13 Yao Qi <yao.qi@linaro.org>
1400
1401 * features/s390-gs-linux64.c: Regenerated.
1402 * features/s390x-gs-linux64.c: Regenerated.
1403
9e86da07
TT
14042017-10-13 Tom Tromey <tom@tromey.com>
1405
1406 * compile/compile-object-run.c (do_module_cleanup): Use delete.
1407 * solib.c (update_solib_list, reload_shared_libraries_1): Use
1408 delete.
1409 * symfile.c (symbol_file_add_with_addrs): Use new.
1410 (symbol_file_add_separate): Update comment.
1411 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
1412 * jit.c (jit_object_close_impl): Use new.
1413 (jit_unregister_code): Use delete.
1414 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
1415 (~objfile): Rename from free_objfile.
1416 (free_objfile_separate_debug, do_free_objfile_cleanup)
1417 (free_all_objfiles, objfile_purge_solibs): Use delete.
1418 * objfiles.h (struct objfile): Add constructor and destructor.
1419 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
1420 (allocate_objfile, free_objfile): Don't declare.
1421 (struct objstats): Add initializers.
1422
c2508e90
SM
14232017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1424
1425 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
1426 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
1427 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
1428 * gdbarch.h: Regenerate.
1429 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
1430 Adjust comment.
1431 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
1432 (i386_displaced_step_fixup): Adjust comment.
1433 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
1434
a900ff72
TT
14352017-10-12 Tom Tromey <tom@tromey.com>
1436
1437 * prologue-value.h (pv_area::store_would_trash): Return bool.
1438 (pv_area::find_reg): Likewise.
1439 * prologue-value.c (pv_area::store_would_trash): Return bool.
1440 (pv_area::find_reg): Likewise.
1441
f7b7ed97
TT
14422017-10-12 Tom Tromey <tom@tromey.com>
1443
1444 * s390-linux-tdep.c (s390_store, s390_load)
1445 (s390_check_for_saved, s390_analyze_prologue): Update.
1446 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
1447 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
1448 * prologue-value.h (class pv_area): Move from prologue-value.c.
1449 Change names of members. Add constructor, destructor, member
1450 functions.
1451 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
1452 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
1453 (pv_area_fetch, pv_area_scan): Don't declare.
1454 * prologue-value.c (struct pv_area::area_entry): Now member of
1455 pv_area.
1456 (struct pv_area): Move to prologue-value.h.
1457 (pv_area::pv_area): Rename from make_pv_area.
1458 (pv_area::~pv_area): Rename from free_pv_area.
1459 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
1460 (clear_entries, find_entry, overlaps, store_would_trash, store)
1461 (fetch, find_reg, scan): Now member of pv_area.
1462 Remove "area" argument. Update.
1463 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
1464 Update.
1465 * mn10300-tdep.c (push_reg, check_for_saved)
1466 (mn10300_analyze_prologue): Update.
1467 * mep-tdep.c (is_arg_spill, check_for_saved)
1468 (mep_analyze_prologue): Update.
1469 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
1470 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
1471 (m32c_is_struct_return, m32c_analyze_prologue): Update.
1472 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
1473 Update.
1474 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
1475 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
1476
466eecee
SM
14772017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1478
1479 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
1480 * linux-nat.c (linux_nat_delete_thread): New variable.
1481 (lwp_free): Invoke linux_nat_delete_thread if set.
1482 (linux_nat_set_delete_thread): New function.
1483 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
1484 thread delete callback.
1485 * arm-linux-nat.c (arm_linux_delete_thread): New function.
1486 (_initialize_arm_linux_nat): Assign thread delete callback.
1487 * s390-linux-nat.c (s390_delete_thread): New function.
1488 (_initialize_s390_nat): Assign thread delete callback.
1489 * x86-linux-nat.c (x86_linux_add_target): Likewise.
1490 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
1491 function.
1492 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
1493 declaration.
1494 * nat/x86-linux.c (x86_linux_delete_thread): New function.
1495 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
1496
f71c8822
TT
14972017-10-09 Tom Tromey <tom@tromey.com>
1498
1499 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
1500 std::string.
1501 * tui/tui-layout.c (enum tui_status): Use std::string.
1502
981a3fb3
TT
15032017-10-11 Tom Tromey <tom@tromey.com>
1504
1505 * gdbthread.h (thread_command): Constify.
1506 * inferior.h (detach_command): Constify.
1507 * top.h (set_history, show_history): Constify.
1508 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
1509 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
1510 * bsd-kvm.c (bsd_kvm_cmd): Constify.
1511 * printcmd.c (set_command): Constify.
1512 (non_const_set_command): New function.
1513 * dcache.c (set_dcache_command, show_dcache_command): Constify.
1514 * breakpoint.c (enable_command, disable_command, delete_command)
1515 (catch_command, tcatch_command, set_breakpoint_cmd)
1516 (show_breakpoint_cmd): Constify.
1517 * macrocmd.c (macro_command): Constify.
1518 * infcmd.c (unset_command, kill_command, detach_command)
1519 (info_proc_cmd): Constify.
1520 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
1521 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
1522 (info_auto_load_cmd): Constify.
1523 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
1524 (unset_tdesc_cmd): Constify.
1525 * ada-lang.c (set_ada_command, show_ada_command)
1526 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
1527 * guile/guile.c (set_guile_command, show_guile_command)
1528 (info_guile_command): Constify.
1529 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
1530 Constify.
1531 * skip.c (skip_command): Constify.
1532 * compile/compile.c (_initialize_compile): Constify.
1533 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
1534 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
1535 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
1536 (maint_btrace_pt_show_cmd): Constify.
1537 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
1538 Constify.
1539 * python/python.c (user_show_python, user_set_python): Constify.
1540 * mips-tdep.c (set_mips_command, show_mips_command)
1541 (set_mipsfpu_command): Constify.
1542 * record-btrace.c (cmd_record_btrace_start)
1543 (cmd_set_record_btrace, cmd_show_record_btrace)
1544 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
1545 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
1546 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
1547 Constify.
1548 * symfile.c (overlay_command): Constify.
1549 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
1550 * cli/cli-logging.c (set_logging_command, show_logging_command):
1551 Constify.
1552 * cli/cli-dump.c (dump_command, append_command)
1553 (srec_dump_command, ihex_dump_command, verilog_dump_command)
1554 (tekhex_dump_command, binary_dump_command)
1555 (binary_append_command): Constify.
1556 * cli/cli-decode.c (struct cmd_list_element): Change type of
1557 "fun".
1558 * cli/cli-cmds.c (info_command, show_command, set_debug)
1559 (show_debug): Constify.
1560 (show_command): Add non-const overload.
1561 * top.c (set_history, show_history): Constify.
1562 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
1563 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
1564 * target.c (target_command): Constify.
1565 * sparc64-tdep.c (info_adi_command): Constify.
1566 * record-full.c (cmd_record_full_start): Constify.
1567 (set_record_full_command): Constify. Fix typo.
1568 (show_record_full_command): Constify.
1569 * thread.c (thread_command, thread_apply_command): Constify.
1570 * memattr.c (dummy_cmd): Constify.
1571 * value.c (function_command): Constify.
1572 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
1573 * probe.c (info_probes_command): Constify.
1574 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
1575 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
1576 (show_thread_cmd, set_thread_default_cmd)
1577 (show_thread_default_cmd): Constify.
1578 (check_empty): Constify.
1579 * tracepoint.c (tfind_command): Constify.
1580 * cp-support.c (maint_cplus_command): Constify.
1581 * windows-tdep.c (info_w32_command): Constify.
1582 * record.c (cmd_record_start, set_record_command)
1583 (show_record_command, info_record_command, cmd_record_goto):
1584 Constify.
1585 * ravenscar-thread.c (set_ravenscar_command)
1586 (show_ravenscar_command): Constify.
1587 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
1588 Constify.
1589 (add_internal_problem_command): Remove casts.
1590 * arc-tdep.c (maintenance_print_arc_command): Constify.
1591 * valprint.c (set_print, show_print, set_print_raw)
1592 (show_print_raw): Constify.
1593 * maint.c (maintenance_command, maintenance_info_command)
1594 (maintenance_print_command, maintenance_set_cmd)
1595 (maintenance_show_cmd, set_per_command_cmd)
1596 (show_per_command_cmd, maintenance_check_command): Constify.
1597 * language.c (set_check, show_check): Constify.
1598 * typeprint.c (show_print_type, set_print_type): Constify.
1599 * go32-nat.c (go32_info_dos_command): Constify.
1600
fdf44873
TT
16012017-10-11 Tom Tromey <tom@tromey.com>
1602
1603 * breakpoint.c (prepare_re_set_context): Remove.
1604 (breakpoint_re_set_one): Update. Don't use cleanups.
1605 (breakpoint_re_set): Use scoped_restore, std::string, and
1606 scoped_restore_current_language.
1607
81b1e71c
TT
16082017-10-11 Tom Tromey <tom@tromey.com>
1609
1610 * breakpoint.c (commands_command_1): Use std::string.
1611 (cleanup_executing_breakpoints): Remove.
1612 (bpstat_do_actions_1): Use scoped_restore.
1613 (bpstat_check_watchpoint): Use std::string.
1614 (decode_static_tracepoint_spec): Likewise.
1615 (break_range_command): Likewise.
1616 (watch_command_1): Likewise.
1617 (compare_breakpoints): Change argument types.
1618 (clear_command): Use std::vector.
1619 (cleanup_executing_breakpoints): Remove.
1620 (update_global_location_list): Use unique_xmalloc_ptr.
1621 (strace_command): Remove unused declaration.
1622
4f9d9906
JB
16232017-10-11 John Baldwin <jhb@FreeBSD.org>
1624
1625 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
1626 * NEWS: Mention new FreeBSD/arm native configuration.
1627 * configure.host: Add arm*-*-freebsd*.
1628 * configure.nat: Likewise.
1629 * arm-fbsd-nat.c: New file.
1630
7176dfd2
JB
16312017-10-11 John Baldwin <jhb@FreeBSD.org>
1632
1633 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
1634 (ALLDEPFILES): Add arm-fbsd-tdep.c.
1635 * NEWS: Mention new FreeBSD/arm target.
1636 * configure.tgt: Add arm*-*-freebsd*.
1637 * arm-fbsd-tdep.c: New file.
1638 * arm-fbsd-tdep.h: New file.
1639
fe220226
MR
16402017-10-11 Maciej W. Rozycki <macro@imgtec.com>
1641
1642 * linux-tdep.c (linux_make_corefile_notes): Remove call to
1643 `gdbarch_elfcore_write_linux_prpsinfo'.
1644 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
1645 method.
1646 (elf_internal_linux_prpsinfo): Remove declaration.
1647 * gdbarch.h: Regenerate.
1648 * gdbarch.c: Regenerate.
1649
a2f63b2e
MR
16502017-10-11 Maciej W. Rozycki <macro@imgtec.com>
1651
1652 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
1653 `set_gdbarch_elfcore_write_linux_prpsinfo'.
1654
458ca1d0
PA
16552017-10-11 Pedro Alves <palves@redhat.com>
1656
1657 * breakpoint.c (reattach_breakpoints): Delete.
1658 * breakpoint.h (reattach_breakpoints): Delete.
1659
905014d7
SM
16602017-10-11 Simon Marchi <simon.marchi@ericsson.com>
1661
1662 * symfile.c (registered_sym_fns): Make struct, not typedef.
1663 (DEF_VEC_O (registered_sym_fns)): Remove.
1664 (symtab_fns): Change type to std::vector.
1665 (add_symtab_fns): Adjust.
1666 (find_sym_fns): Adjust.
1667
56d704da
AK
16682017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
1669
1670 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
1671 * arc-tdep.h (arc_arch_is_em): New function.
1672 (arc_arch_is_hs): Likewise.
1673
7fa29be9
EB
16742017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
1675
1676 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
1677 parentheses in the declaration.
1678 (macro_lookup_inclusion): Likewise.
1679 (macro_lookup_definition): Likewise.
1680 * p-lang.h (pascal_builtin_types): Likewise.
1681 * tui/tui-data.c (tui_win_list): Likewise.
1682 * tui/tui-data.h (tui_win_list): Likewise.
1683 * utils.h (make_cleanup_free_section_addr_info): Likewise.
1684
d9b477e3
KB
16852017-10-11 Mark Rages <markrages@gmail.com>
1686
1687 * target-memory.c (block_boundaries): Fix for block address not
1688 aligned on block size.
1689
65630365
PA
16902017-10-10 Pedro Alves <palves@redhat.com>
1691 Tom Tromey <tom@tromey.com>
1692
1693 * breakpoint.c (struct captured_breakpoint_query_args)
1694 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
1695 (print_breakpoint): New.
1696 * breakpoint.h (print_breakpoint): Declare.
1697 * common/common-exceptions.h (enum return_reason): Remove
1698 references to catch_exceptions.
1699 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
1700 Delete.
1701 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
1702 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
1703 * gdb.h: Delete.
1704 * gdbthread.h (thread_select): Declare.
1705 * mi/mi-cmd-break.c: Don't include gdb.h.
1706 (breakpoint_notify): Use print_breakpoint.
1707 * mi/mi-cmd-catch.c: Don't include gdb.h.
1708 * mi/mi-interp.c: Don't include gdb.h.
1709 (mi_print_breakpoint_for_event): New.
1710 (mi_breakpoint_created, mi_breakpoint_modified): Use
1711 mi_print_breakpoint_for_event.
1712 * mi/mi-main.c: Don't include gdb.h.
1713 (mi_cmd_thread_select): Parse the global thread ID here. Use
1714 thread_select instead of gdb_thread_select.
1715 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
1716 of using gdb_list_thread_ids.
1717 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
1718 FILEIO_ENOSYS here.
1719 (remote_fileio_request): Use TRY/CATCH instead of
1720 catch_exceptions.
1721 * symfile-mem.c (struct symbol_file_add_from_memory_args)
1722 (symbol_file_add_from_memory_wrapper): Delete.
1723 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
1724 * thread.c: Don't include gdb.h.
1725 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
1726 (thread_alive): Use thread_select.
1727 (do_captured_thread_select): Delete, parts salvaged as ...
1728 (thread_select): ... this new function.
1729 (gdb_thread_select): Delete.
1730
bf469271
PA
17312017-10-10 Pedro Alves <palves@redhat.com>
1732 Tom Tromey <tom@tromey.com>
1733
1734 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
1735 and reverse logic.
1736 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
1737 No longer macros. Instead ...
1738 (enum wp_check_result): They're now values of this new
1739 enumeration.
1740 (watchpoint_check): Change return type to wp_check_result and
1741 parameter type to bpstat.
1742 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
1743 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
1744 catch_errors. Reverse logic of watchpoint_check call.
1745 (breakpoint_re_set_one): Now returns void and takes a breakpoint
1746 pointer as parameter.
1747 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
1748 * common/common-exceptions.c (throw_exception_sjlj): Update
1749 comments to avoid mentioning catch_errors.
1750 * exceptions.c (catch_errors): Delete.
1751 * exceptions.h: Update comments to avoid mentioning catch_errors.
1752 (catch_errors_ftype, catch_errors): Delete.
1753 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
1754 (hook_stop_stub): Delete.
1755 (restore_selected_frame): Change return type to void, and
1756 parameter type to const frame_id &.
1757 (restore_infcall_control_state): Use TRY/CATCH instead of
1758 catch_errors.
1759 * main.c (captured_command_loop): Return void and remove
1760 parameter. Remove references to catch_errors.
1761 (captured_main): Use TRY/CATCH instead of catch_errors.
1762 * objc-lang.c (objc_submethod_helper_data)
1763 (find_objc_msgcall_submethod_helper): Delete.
1764 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
1765 catch_errors.
1766 * record-full.c (record_full_message): Return void.
1767 (record_full_message_args, record_full_message_wrapper): Delete.
1768 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
1769 instead of catch_errors.
1770 * solib-aix.c (solib_aix_open_symbol_file_object): Change
1771 parameter type to int.
1772 * solib-darwin.c (open_symbol_file_object): Ditto.
1773 * solib-dsbt.c (open_symbol_file_object): Ditto.
1774 * solib-frv.c (open_symbol_file_object): Ditto.
1775 * solib-svr4.c (open_symbol_file_object): Ditto.
1776 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
1777 * solib.c (update_solib_list): Use TRY/CATCH instead of
1778 catch_errors.
1779 * solist.h (struct target_so_ops) <open_symbol_file_object>:
1780 Change type.
1781 * symmisc.c (struct print_symbol_args): Remove.
1782 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
1783 (print_symbol): Change type.
1784 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
1785 and remove parameters.
1786 (catch_errors): New.
1787 (get_windows_debug_event): Adjust.
1788
1a56bfa5
TT
17892017-10-09 Tom Tromey <tom@tromey.com>
1790
1791 * mi/mi-main.c (free_splay_tree): Remove.
1792 (list_available_thread_groups): Use splay_tree_up.
1793 * common/gdb_splay_tree.h: New file.
1794
0c478e2d
TT
17952017-10-09 Tom Tromey <tom@tromey.com>
1796
1797 * mi/mi-main.c (do_nothing): Remove.
1798 (list_available_thread_groups): Update.
1799
cbd2b4e3
PA
18002017-10-09 Pedro Alves <palves@redhat.com>
1801
1802 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
1803 reading registers when switching context.
1804
a181c0bf
JB
18052017-10-09 John Baldwin <jhb@FreeBSD.org>
1806
1807 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
1808 (fbsd_convert_siginfo): Likewise.
1809 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
1810
6e66f753
SM
18112017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
1812
1813 * configure.ac (try_guile_versions): Remove guile-2.2.
1814 * configure: Regenerate.
1815
890e9790
TT
18162017-10-09 Tom Tromey <tom@tromey.com>
1817
1818 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
1819 (COMPILE.pre): Use $(CXX).
1820
109483d9
PA
18212017-10-09 Pedro Alves <palves@redhat.com>
1822
1823 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
1824 Use bool.
1825 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
1826 * cp-support.h (cp_remove_params): Now returns a
1827 gdb::unique_xmalloc_ptr.
1828 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
1829 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
1830 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
1831 returning a gdb::unique_xmalloc_ptr.
1832 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
1833 * stack.c (find_frame_funname): Adjust to cp_remove_params
1834 returning a gdb::unique_xmalloc_ptr.
1835
791afaa2
TT
18362017-10-08 Tom Tromey <tom@tromey.com>
1837
1838 * dwarf2read.c (dwarf2_get_dwz_file): Use
1839 gdb::unique_xmalloc_ptr.
1840 (find_slot_in_mapped_hash): Likewise.
1841 (dwarf2_physname): Likewise.
1842 (create_dwo_unit_in_dwp_v1): Use std::string.
1843 (create_dwo_unit_in_dwp_v2): Likewise.
1844 (lookup_dwo_cutu): Likewise.
1845 (inherit_abstract_dies): Use std::vector.
1846 (read_array_type): Likewise.
1847 (dwarf_decode_macros): Remove unused declaration.
1848 (unsigned_int_compar): Remove.
1849 (dwarf2_build_psymtabs_hard): Use scoped_restore.
1850 (psymtabs_addrmap_cleanup): Remove.
1851
30a9c02f
TT
18522017-10-08 Tom Tromey <tom@tromey.com>
1853
1854 * frame-unwind.c (frame_unwind_try_unwinder): Update.
1855 * frame.h (frame_cleanup_after_sniffer): Declare.
1856 (frame_prepare_for_sniffer): Return void.
1857 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
1858 type of argument.
1859 (frame_prepare_for_sniffer): Return void.
1860
757325a3
TT
18612017-10-08 Tom Tromey <tom@tromey.com>
1862
1863 * utils.h (make_cleanup_value_free): Remove.
1864 * utils.c (do_value_free, struct cleanup): Remove.
1865 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
1866 Use gdb_value_up.
1867 * value.h (struct value_deleter): New.
1868 (gdb_value_up): New typedef.
1869
b9c04fb2
TT
18702017-10-08 Tom Tromey <tom@tromey.com>
1871
1872 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
1873 (make_cleanup_free_search_symbols): Remove.
1874 (search_symbols): Return std::vector.
1875 (symbol_search::compare_search_syms): Now member of
1876 symbol_search. Change arguments.
1877 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
1878 (symtab_symbol_info, rbreak_command): Update.
1879 * symtab.h (struct symbol_search) <next>: Remove.
1880 Add constructors.
1881 (symbol_search::operator<): New function.
1882 (symbol_search::operator==): New function.
1883 (search_symbols): Remove std::vector.
1884 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
1885 (symbol_search::compare_search_syms): Declare.
1886
0d28b0a5
YQ
18872017-10-06 Yao Qi <yao.qi@linaro.org>
1888
1889 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
1890 arch/aarch64-insn.o.
1891 Remove one rule.
1892 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
1893
71917808
YQ
18942017-10-06 Yao Qi <yao.qi@linaro.org>
1895
1896 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
1897 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
1898 arch/arm-linux.o respectively.
1899 * configure.tgt: Likewise.
1900
2081b2b2
YQ
19012017-10-06 Yao Qi <yao.qi@linaro.org>
1902
1903 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
1904 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
1905
a1b85d28
PA
19062017-10-06 Pedro Alves <palves@redhat.com>
1907
1908 * windows-nat.c: Include <algorithm>.
1909
d97987e2
YQ
19102017-10-06 Yao Qi <yao.qi@linaro.org>
1911
1912 * configure.tgt (i386_tobjs): New variable.
1913 (amd64_tobjs): New variable.
1914 Set $cpu_obs and $os_obs.
1915
f38307f5
YQ
19162017-10-06 Yao Qi <yao.qi@linaro.org>
1917
1918 * Makefile.in (CONFIG_SRC_SUBDIR): New.
1919 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
1920 (clean): Remove object files and dependency files.
1921 (distclean): Remove the directory.
1922 * configure.ac: Invoke AC_CONFIG_COMMANDS.
1923 * configure: Re-generated.
1924 * configure.tgt: Replace amd64.o with arch/amd64.o.
1925
2f924de6
JM
19262017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
1927
1928 PR build/22188
1929 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
1930 and SETEND.
1931
2fd9d7ca
PA
19322017-10-05 Pedro Alves <palves@redhat.com>
1933
1934 * linux-nat.c (linux_child_follow_fork): When following the parent
1935 and detaching the child, consult the parent thread's architecture
1936 instead of the child's.
1937
d13b8493
UW
19382017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
1939
1940 * ax.h: Do not include "doublest.h".
1941 (union agent_val): Remove.
1942
3b4b2f16
UW
19432017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
1944
1945 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
1946 (decimal_to_string): Return std::string object.
1947 (decimal_from_string): Accept std::string object. Return bool.
1948 (decimal_from_integral, decimal_from_doublest): Remove.
1949 (decimal_from_longest): Add prototype.
1950 (decimal_from_ulongest): Likewise.
1951 (decimal_to_longest): Likewise.
1952 (decimal_from_doublest): Likewise.
1953 * dfp.c: Do not include "gdbtypes.h" or "value.h".
1954 (MAX_DECIMAL_STRING): Move here.
1955 (decimal_to_string): Return std::string object.
1956 (decimal_from_string): Accept std::string object. Return bool.
1957 (decimal_from_integral): Remove, replace by ...
1958 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
1959 (decimal_to_longest): New function.
1960 (decimal_from_floating): Remove, replace by ...
1961 (decimal_from_doublest): ... this new function.
1962 (decimal_to_doublest): Update to new decimal_to_string interface.
1963
1964 * value.c (unpack_long): Use decimal_to_longest.
1965 * valops.c (value_cast): Use decimal_from_doublest instead of
1966 decimal_from_floating. Use decimal_from_[u]longest isntead of
1967 decimal_from_integral.
1968 * valarith.c (value_args_as_decimal): Likewise.
1969 * valprint.c (print_decimal_floating): Update to new
1970 decimal_to_string interface.
1971 * printcmd.c (printf_decfloat): Likewise.
1972 * c-exp.y (parse_number): Update to new decimal_from_string interface.
1973
1841ee5d
UW
19742017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
1975
1976 * doublest.h: Do not include "floatformat.h". Remove stale comments.
1977 * gdbtypes.c: Include "floatformat.h".
1978 * value.c: Likewise.
1979 * m68k-tdep.c: Likewise.
1980
1981 * findvar.c: Do not include "floatformat.h".
1982 * amd64-darwin-tdep.c: Likewise.
1983 * arm-linux-tdep.c: Likewise.
1984 * i386-darwin-tdep.c: Likewise.
1985 * i387-tdep.c: Likewise.
1986 * m68k-linux-tdep.c: Likewise.
1987 * mep-tdep.c: Likewise.
1988 * mips-tdep.c: Likewise.
1989 * nios2-tdep.c: Likewise.
1990 * s390-linux-tdep.c: Likewise.
1991 * sparc-obsd-tdep.c: Likewise.
1992 * sparc-tdep.c: Likewise.
1993 * sparc64-tdep.c: Likewise.
1994 * spu-tdep.c: Likewise.
1995 * tic6x-tdep.c: Likewise.
1996 * tilegx-tdep.c: Likewise.
1997 * vax-tdep.c: Likewise.
1998 * xstormy16-tdep.c: Likewise.
1999 * xtensa-tdep.c: Likewise.
2000
2001 * top.c: Do not include "doublest.h".
2002 * aarch64-tdep.c: Likewise.
2003 * alpha-tdep.c: Likewise.
2004 * arm-linux-tdep.c: Likewise.
2005 * m68k-linux-tdep.c: Likewise.
2006 * tilegx-tdep.c: Likewise.
2007 * xstormy16-tdep.c: Likewise.
2008
a80a6471
JB
20092017-10-05 John Baldwin <jhb@FreeBSD.org>
2010
2011 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
2012 (mipsn32_fbsd_sigframe): Define.
2013 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
2014 for FreeBSD/mipsn32.
2015
12c4bd7f
JB
20162017-10-05 John Baldwin <jhb@FreeBSD.org>
2017
2018 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
2019 AT_HWCAP.
2020
c91933e9
TG
20212017-10-05 Tristan Gingold <tgingold@free.fr>
2022
2023 * MAINTAINERS (Misc): Update my email address.
2024
5cd63fda
PA
20252017-10-04 Pedro Alves <palves@redhat.com>
2026
2027 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
2028 it instead of target_gdbarch.
2029 (get_remote_state, get_remote_packet_size): Adjust
2030 get_remote_arch_state calls, passing down target_gdbarch
2031 explicitly.
2032 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
2033 'gdbarch' and use it instead of target_gdbarch.
2034 (get_memory_packet_size): Adjust get_remote_arch_state calls,
2035 passing down target_gdbarch explicitly.
2036 (struct stop_reply) <arch>: New field.
2037 (remote_parse_stop_reply): Use the stopped thread's architecture,
2038 not the current inferior's. Save the architecture in the
2039 stop_reply.
2040 (process_stop_reply): Use the stop reply's architecture.
2041 (process_g_packet, remote_fetch_registers)
2042 (remote_prepare_to_store, store_registers_using_G)
2043 (remote_store_registers): Adjust get_remote_arch_state calls,
2044 using the regcache's architecture.
2045 (remote_get_trace_status): Adjust get_remote_arch_state calls,
2046 passing down target_gdbarch explicitly.
2047 * spu-multiarch.c (spu_thread_architecture): Defer to the target
2048 beneath instead of calling target_gdbarch.
2049 * target.c (default_thread_architecture): Use the specified
2050 inferior's architecture, instead of the current inferior's
2051 architecture (via target_gdbarch).
2052
ed4227b7
PA
20532017-10-04 Pedro Alves <palves@redhat.com>
2054
2055 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
2056 case.
2057 (regcache_print): Handle !target_has_registers here instead.
2058
55b11ddf
PA
20592017-10-04 Pedro Alves <palves@redhat.com>
2060
2061 * frame.c (create_test_frame): Delete.
2062 * frame.h (create_test_frame): Delete.
2063 * gdbarch-selftests.c: Include gdbthread.h and target.h.
2064 (class regcache_test): Delete.
2065 (test_target_has_registers, test_target_has_stack)
2066 (test_target_has_memory, test_target_prepare_to_store)
2067 (test_target_store_registers): New functions.
2068 (test_target_ops): New class.
2069 (register_to_value_test): Error out if there's already a
2070 process_stratum (or higher) target pushed. Create a fuller mock
2071 environment, with mock target_ops, inferior, address space, thread
2072 and inferior_ptid.
2073 * progspace.c (struct address_space): Move to ...
2074 * progspace.h (struct address_space): ... here.
2075 * regcache.h (regcache::~regcache, regcache::raw_write)
2076 [GDB_SELF_TEST]: No longer virtual.
2077
4c71c105
SM
20782017-10-04 Simon Marchi <simon.marchi@ericsson.com>
2079
2080 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
2081
73dcd72d
PA
20822017-10-04 Pedro Alves <palves@redhat.com>
2083
2084 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
2085 out of 'between TRY and CATCH'.
2086
44704526
PA
20872017-10-04 Pedro Alves <palves@redhat.com>
2088
2089 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
2090 * common/common-exceptions.h (TRY): Open an outermost scope.
2091 Expand intro comment.
2092 (CATCH): Reindent.
2093 (END_CATCH): Close the outermost scope.
2094 * completer.c (complete_line_internal): Add missing END_CATCH.
2095
bc3b087d
SDJ
20962017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2097
2098 * NEWS (Changes since GDB 8.0): Add entry about new
2099 'set-cwd-on-gdbserver' feature.
2100 (New remote packets): Add entry for QSetWorkingDir.
2101 * common/common-inferior.h (set_inferior_cwd): New prototype.
2102 * infcmd.c (set_inferior_cwd): Remove "static".
2103 (show_cwd_command): Expand text to include remote debugging.
2104 * remote.c: Add PACKET_QSetWorkingDir.
2105 (remote_protocol_features) <QSetWorkingDir>: New entry for
2106 PACKET_QSetWorkingDir.
2107 (extended_remote_set_inferior_cwd): New function.
2108 (extended_remote_create_inferior): Call
2109 "extended_remote_set_inferior_cwd".
2110 (_initialize_remote): Call "add_packet_config_cmd" for
2111 QSetWorkingDir.
2112
d092c5a2
SDJ
21132017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2114
2115 * NEWS (New commands): Mention "set/show cwd".
2116 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
2117 "cd" command's help text.
2118 * common/common-inferior.h (get_inferior_cwd): New prototype.
2119 * infcmd.c (inferior_cwd_scratch): New global variable.
2120 (set_inferior_cwd): New function.
2121 (get_inferior_cwd): Likewise.
2122 (set_cwd_command): Likewise.
2123 (show_cwd_command): Likewise.
2124 (_initialize_infcmd): Add "set/show cwd" commands.
2125 * inferior.h (class inferior) <cwd>: New field.
2126 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
2127 (fork_inferior): Change inferior's cwd before its execution.
2128 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
2129 to CreateProcess.
2130
7da0a886
SDJ
21312017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2132
2133 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
2134 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
2135 (COMMON_OBS): Add gdb_tilde_expand.o.
2136 * common/gdb_tilde_expand.c: New file.
2137 * common/gdb_tilde_expand.h: Likewise.
2138
db8dd160
MR
21392017-10-03 Maciej W. Rozycki <macro@imgtec.com>
2140
2141 * gdbarch.sh (objfile): Remove duplicate declaration.
2142 * gdbarch.h: Regenerate.
2143
f8bfbf22
TT
21442017-10-03 Tom Tromey <tom@tromey.com>
2145
2146 * utils.c (internal_vproblem): Use string_vprintf.
2147
5178ed48
TT
21482017-10-03 Tom Tromey <tom@tromey.com>
2149
2150 * printcmd.c (info_symbol_command): Use std::string.
2151
8cff8730
TT
21522017-10-03 Tom Tromey <tom@tromey.com>
2153
2154 * top.c (gdb_safe_append_history): Use std::string.
2155
895b8f30
TT
21562017-10-03 Tom Tromey <tom@tromey.com>
2157
2158 * event-top.c (stdin_event_handler): Update.
2159 * main.c (captured_main_1): Update.
2160 * top.h (make_delete_ui_cleanup): Remove.
2161 (struct ui): Add constructor and destructor.
2162 (new_ui, delete_ui): Remove.
2163 * top.c (make_delete_ui_cleanup): Remove.
2164 (new_ui_command): Use std::unique_ptr.
2165 (delete_ui_cleanup): Remove.
2166 (ui::ui): Rename from new_ui. Update.
2167 (free_ui): Remove.
2168 (ui::~ui): Rename from delete_ui. Update.
2169
0efef640
TT
21702017-10-03 Tom Tromey <tom@tromey.com>
2171
2172 * symfile.c (load_progress): Use gdb::byte_vector.
2173
245ad7d3
TT
21742017-10-03 Tom Tromey <tom@tromey.com>
2175
2176 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
2177 declaration.
2178 * printcmd.c (x_command): Remove unused declaration.
2179 * symfile.c (symbol_file_command): Remove unused declaration.
2180
e05550d7
TT
21812017-10-03 Tom Tromey <tom@tromey.com>
2182
2183 * utils.c (internal_vproblem): Use std::string.
2184 (defaulted_query): Likewise.
2185
b95de2b7
TT
21862017-10-03 Tom Tromey <tom@tromey.com>
2187
2188 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
2189 * top.c (execute_command_to_string): Update.
2190 * utils.c (make_cleanup_restore_page_info): Remove.
2191 (do_restore_page_info_cleanup): Remove.
2192 (set_batch_flag_and_restore_page_info):
2193 New.
2194 (make_cleanup_restore_page_info): Remove.
2195 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
2196 (~set_batch_flag_and_restore_page_info): New
2197 (make_cleanup_restore_uinteger): Remove.
2198 (make_cleanup_restore_integer): Remove.
2199 (struct restore_integer_closure): Remove.
2200 (restore_integer): Remove.
2201 * utils.h (struct set_batch_flag_and_restore_page_info): New
2202 class.
2203 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
2204 (make_cleanup_restore_page_info): Remove.
2205 (make_cleanup_restore_uinteger) Remove.
2206 (make_cleanup_restore_integer) Remove.
2207
07036511
TT
22082017-10-03 Tom Tromey <tom@tromey.com>
2209
2210 * record-full.h (record_full_gdb_operation_disable_set): Return
2211 scoped_restore_tmpl<int>.
2212 * infrun.c (adjust_pc_after_break): Update.
2213 (handle_signal_stop): Update.
2214 * record-full.c (record_full_gdb_operation_disable_set): Return
2215 scoped_restore_tmpl<int>.
2216 (record_full_wait_1, record_full_insert_breakpoint)
2217 (record_full_remove_breakpoint, record_full_save)
2218 (record_full_goto_insn): Update.
2219
45320ffa
TT
22202017-10-02 Tom Tromey <tom@tromey.com>
2221
2222 PR rust/22236:
2223 * rust-lang.c (rust_val_print_str): New function.
2224 (val_print_struct): Call it.
2225 (rust_subscript): Preserve name of slice type.
2226
b3e3859b
TT
22272017-10-02 Tom Tromey <tom@tromey.com>
2228
2229 * rust-lang.c (rust_subscript): Handle slices in
2230 EVAL_AVOID_SIDE_EFFECTS case.
2231
01af5e0d
TT
22322017-10-02 Tom Tromey <tom@tromey.com>
2233
2234 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
2235
888e3ddb
TT
22362017-10-02 Tom Tromey <tom@tromey.com>
2237
2238 * rust-lang.h (rust_slice_type): Add "extern".
2239
cc536b21
PA
22402017-10-02 Tom Tromey <tom@tromey.com>
2241 Pedro Alves <palves@redhat.com>
2242
2243 * ada-lang.h (ada_exc_info::operator<): Make const.
2244 (ada_exc_info::operator==): Make const.
2245 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
2246 Make const.
2247
386c8614
TT
22482017-09-29 Tom Tromey <tom@tromey.com>
2249
2250 * target.c (read_whatever_is_readable): Change type of "result".
2251 Update.
2252 (free_memory_read_result_vector): Remove.
2253 (read_memory_robust): Change return type. Update.
2254 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
2255 bin2hex, std::string.
2256 * target.h (memory_read_result_s): Remove typedef.
2257 (free_memory_read_result_vector): Remove.
2258 (read_memory_robust): Return std::vector.
2259
789c4b5e
TT
22602017-09-29 Tom Tromey <tom@tromey.com>
2261
2262 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
2263
ab816a27
TT
22642017-09-29 Tom Tromey <tom@tromey.com>
2265
2266 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
2267 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
2268 operator< and operator==.
2269 (ada_exceptions_list): Return a std::vector.
2270 * ada-lang.c (ada_exc_info::operator<): Rename from
2271 compare_ada_exception_info.
2272 (ada_exc_info::operator==): New.
2273 (sort_remove_dups_ada_exceptions_list): Change type of
2274 "exceptions".
2275 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
2276 (ada_add_global_exceptions): Likewise.
2277 (ada_exceptions_list_1): Return a std::vector.
2278 (ada_exceptions_list): Likewise.
2279
52f9abe4
TT
22802017-09-29 Tom Tromey <tom@tromey.com>
2281
2282 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
2283 'std::set *'.
2284 (print_one_inferior): Update.
2285 (free_vector_of_ints): Remove.
2286 (list_available_thread_groups): Change "ids" to std::set.
2287 (mi_cmd_list_thread_groups): Update.
2288 (struct collect_cores_data) <core>: Now a std::set.
2289 (collect_cores): Update.
2290 (unique): Remove.
2291 (print_one_inferior): Update.
2292
dcd5ddcc
TT
22932017-09-29 Tom Tromey <tom@tromey.com>
2294
2295 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
2296 (mi_execute_async_cli_command): Likewise.
2297 (mi_cmd_trace_frame_collected): Use field_fmt.
2298
45d288cc
TT
22992017-09-29 Tom Tromey <tom@tromey.com>
2300
2301 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
2302 gdb::byte_vector.
2303
6afe2f4a
TT
23042017-09-29 Tom Tromey <tom@tromey.com>
2305
2306 * mi/mi-parse.c (mi_parse): Remove unused declaration.
2307
9813429a
TT
23082017-09-29 Tom Tromey <tom@tromey.com>
2309
2310 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
2311
2d6960b4
TT
23122017-09-29 Tom Tromey <tom@tromey.com>
2313
2314 * varobj.h (varobj_gen_name): Return std::string.
2315 * varobj.c (varobj_gen_name): Return std::string.
2316 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
2317 (mi_cmd_var_delete): Don't copy "name".
2318
784c453a
TT
23192017-09-29 Tom Tromey <tom@tromey.com>
2320
2321 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
2322 (mi_cmd_break_insert_1): Update.
2323
a9bc57b9
TT
23242017-09-29 Tom Tromey <tom@tromey.com>
2325
2326 * target.h (make_scoped_defer_target_commit_resume): Update.
2327 * target.c (make_scoped_defer_target_commit_resume): Rename from
2328 make_cleanup_defer_target_commit_resume. Return a
2329 scoped_restore.
2330 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
2331
9754d8c4
TT
23322017-09-29 Tom Tromey <tom@tromey.com>
2333
2334 * main.c (captured_main_1): Remove unused declaration.
2335 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
2336
99ef965c
TT
23372017-09-29 Tom Tromey <tom@tromey.com>
2338
2339 * symtab.c (search_symbols): Remove unused outer cleanup.
2340 (make_source_files_completion_list): Remove unused declaration.
2341
42518ba7
TT
23422017-09-29 Tom Tromey <tom@tromey.com>
2343
2344 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
2345
726b2169
TT
23462017-09-29 Tom Tromey <tom@tromey.com>
2347
2348 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
2349 gdb::byte_vector.
2350
55b06432
TT
23512017-09-29 Tom Tromey <tom@tromey.com>
2352
2353 * complaints.c (vcomplaint): Use std::string.
2354
8abcee91
TT
23552017-09-29 Tom Tromey <tom@tromey.com>
2356
2357 * tracepoint.c (trace_variable_command): Use std::string.
2358 (encode_actions_1): Remove unused declarations.
2359 (create_tsv_from_upload): Use std::string.
2360
6ad94bc7
TT
23612017-09-29 Tom Tromey <tom@tromey.com>
2362
2363 * cp-support.c (gdb_demangle): Use std::string.
2364
2003f3d8
TT
23652017-09-29 Tom Tromey <tom@tromey.com>
2366
2367 * stack.c (parse_frame_specification): Use std::string
2368 (info_frame_command): Use gdb::unique_xmalloc_ptr.
2369
8f8accb5
TT
23702017-09-29 Tom Tromey <tom@tromey.com>
2371
2372 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
2373
200aa7b1
TT
23742017-09-29 Tom Tromey <tom@tromey.com>
2375
2376 * utils.c (vfprintf_maybe_filtered): Use std::string.
2377 (vfprintf_unfiltered): Likewise.
2378
606aae8a
TT
23792017-09-29 Tom Tromey <tom@tromey.com>
2380
2381 * event-top.c (top_level_prompt): Return std::string.
2382 (display_gdb_prompt): Update.
2383
bd413795
TT
23842017-09-29 Tom Tromey <tom@tromey.com>
2385
2386 * unittests/common-utils-selftests.c (format): New function.
2387 (string_vprintf_tests): New function.
2388 (_initialize_common_utils_selftests): Register new tests.
2389 * common/common-utils.c (string_vprintf): New function.
2390 * common/common-utils.h (string_vprintf): Declare.
2391
256642e8
PA
23922017-09-29 Pedro Alves <palves@redhat.com>
2393
2394 * common/rsp-low.c (unpack_varlen_hex): Constify.
2395 * common/rsp-low.h (unpack_varlen_hex): Constify.
2396 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
2397 Constify.
2398 * remote.c (remote_set_permissions, read_ptid)
2399 (remote_current_thread, remote_get_threads_with_qthreadinfo)
2400 (remote_static_tracepoint_marker_at)
2401 (remote_static_tracepoint_markers_by_strid)
2402 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
2403 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
2404 (parse_tracepoint_definition, parse_tsv_definition)
2405 (parse_static_tracepoint_marker_definition): Constify.
2406 * tracepoint.h (parse_static_tracepoint_marker_definition)
2407 (parse_trace_status, parse_tracepoint_status)
2408 (parse_tracepoint_definition, parse_tsv_definition): Constify.
2409
b6bb3468
PA
24102017-09-29 Pedro Alves <palves@redhat.com>
2411
2412 * remote.c (target_buf, target_buf_size): Delete.
2413 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
2414 Use the connection's packet buffer instead.
2415 All callers adjusted.
2416 (_initialize_remote): Remove references to target_buf and
2417 target_buf_size.
2418
b2f8eb7a
PA
24192017-09-28 Pedro Alves <palves@redhat.com>
2420
2421 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2422 unittests/common-utils-selftests.c.
2423 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
2424 (COMMON_OBS): Remove utils-selftests.o.
2425 * utils-selftests.c: Move to ...
2426 * unittests/common-utils-selftests.c: ... here and rename self
2427 test to "string_printf".
2428
08302ed2
DE
24292017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
2430
2431 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
2432 having NULL cus or tus.
2433
96a5a1d3
UW
24342017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2435
2436 * arm-tdep.c: (convert_from_extended): Remove.
2437 (convert_to_extended): Likewise.
2438 (arm_extract_return_value): Use convert_typed_floating.
2439 (arm_store_return_value): Likewise.
2440
2441 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
2442 * sh-tdep.c: Do not include "floatformat.h".
2443 (sh_littlebyte_bigword_type): New function.
2444 (sh_register_convert_to_virtual): Use convert_typed_floating.
2445 (sh_register_convert_to_raw): Likewise.
2446 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
2447 (sh64_littlebyte_bigword_type): New function.
2448 (sh64_extract_return_value): Use convert_typed_floating.
2449 (sh64_register_convert_to_virtual): Likewise.
2450 (sh64_register_convert_to_raw): Likewise.
2451
0db7851f
UW
24522017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2453
2454 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
2455 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
2456
2457 * gdbtypes.h (union type_specific): Make field floatformat hold
2458 just a single struct floatformat, not an array.
2459 (floatformat_from_type): Move here.
2460 * gdbtypes.c (floatformat_from_type): Move here. Update to
2461 changed TYPE_FLOATFORMAT definition.
2462 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
2463 (recursive_dump_type): Likewise.
2464 (init_float_type): Install correct floatformat for byte order.
2465 (arch_float_type): Likewise.
2466
77b7c781
UW
24672017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2468
2469 * gdbtypes.c (init_type): Change incoming argument from
2470 length-in-bytes to length-in-bits. Assert length is a
2471 multiple of TARGET_CHAR_BITS.
2472 (arch_type, arch_flags_type): Likewise.
2473 (init_integer_type): Update call to init_type.
2474 (init_character_type): Likewise.
2475 (init_boolean_type): Likewise.
2476 (init_float_type): Likewise.
2477 (init_decfloat_type): Likewise.
2478 (init_complex_type): Likewise.
2479 (init_pointer_type): Likewise.
2480 (objfile_type): Likewise.
2481 (arch_integer_type): Update call to arch_type.
2482 (arch_character_type): Likewise.
2483 (arch_boolean_type): Likewise.
2484 (arch_float_type): Likewise.
2485 (arch_decfloat_type): Likewise.
2486 (arch_complex_type): Likewise.
2487 (arch_pointer_type): Likewise.
2488 (gdbtypes_post_init): Likewise.
2489
2490 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
2491 (read_base_type): Likewise.
2492 * mdebugread.c (basic_type): Likewise.
2493 * stabsread.c (dbx_init_float_type): Likewise.
2494 (rs6000_builtin_type): Likewise.
2495 (read_range_type): Likewise. Also, fix call to init_integer_type
2496 with erroneous length argument.
2497
2498 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
2499 * d-lang.c (build_d_types): Likewise.
2500 * f-lang.c (build_fortran_types): Likewise.
2501 * go-lang.c (build_go_types): Likewise.
2502 * opencl-lang.c (build_opencl_types): Likewise.
2503 * jit.c (finalize_symtab): Likewise.
2504 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2505 (build_std_type_info_type): Likewise.
2506 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
2507 update call to arch_flags_type.
2508
2509 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
2510 arch_type.
2511 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
2512 * windows-tdep.c (windows_get_tlb_type): Likewise.
2513
2514 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
2515 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
2516 * m32c-tdep.c (make_types): Likewise.
2517 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
2518 (rl78_psw_type): Update call to arch_flags_type.
2519 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
2520 * rx-tdep.c (rx_psw_type): Likewise.
2521 (rx_fpsw_type): Likewise.
2522 * sparc-tdep.c (sparc_psr_type): Likewise.
2523 (sparc_fsr_type): Likewise.
2524 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
2525 (sparc64_ccr_type): Likewise.
2526 (sparc64_fsr_type): Likewise.
2527 (sparc64_fprs_type): Likewise.
2528
f21b4d5c
TT
25292017-09-27 Tom Tromey <tom@tromey.com>
2530
2531 * findcmd.c (find_command): Constify.
2532
643c2ffa
TT
25332017-09-27 Tom Tromey <tom@tromey.com>
2534
2535 * ada-tasks.c (task_command_1, task_command): Constify.
2536
510e5e56
TT
25372017-09-27 Tom Tromey <tom@tromey.com>
2538
2539 * symtab.c (maintenance_print_symbol_cache)
2540 (maintenance_flush_symbol_cache)
2541 (maintenance_print_symbol_cache_statistics): Constify.
2542
e503b191
TT
25432017-09-27 Tom Tromey <tom@tromey.com>
2544
2545 * inferior.c (detach_inferior_command, kill_inferior_command)
2546 (inferior_command): Constify.
2547
4e001312
TT
25482017-09-27 Tom Tromey <tom@tromey.com>
2549
2550 * regcache.c (regcache_print, maintenance_print_registers)
2551 (maintenance_print_raw_registers)
2552 (maintenance_print_cooked_registers)
2553 (maintenance_print_register_groups)
2554 (maintenance_print_remote_registers): Constify.
2555
77763700
TT
25562017-09-27 Tom Tromey <tom@tromey.com>
2557
2558 * printcmd.c (map_display_numbers, undisplay_command)
2559 (enable_disable_display_command, enable_display_command)
2560 (disable_display_command): Constify.
2561
4495129a
TT
25622017-09-27 Tom Tromey <tom@tromey.com>
2563
2564 * breakpoint.h (delete_command): Don't declare.
2565 * breakpoint.c (delete_command, enable_once_command)
2566 (enable_count_command, enable_delete_command, breakpoint_1)
2567 (maintenance_info_breakpoints, stopin_command, stopat_command)
2568 (delete_command, delete_trace_command, save_breakpoints)
2569 (save_breakpoints_command, save_tracepoints_command): Constify.
2570
3088cf40
TT
25712017-09-27 Tom Tromey <tom@tromey.com>
2572
2573 * macrocmd.c (macro_expand_command, macro_expand_once_command)
2574 (skip_ws, extract_identifier, macro_define_command)
2575 (macro_undef_command, macro_list_command): Constify.
2576
69f476a3
TT
25772017-09-27 Tom Tromey <tom@tromey.com>
2578
2579 * infcmd.c (environment_info, set_environment_command)
2580 (unset_environment_command, path_info, info_proc_cmd_1)
2581 (info_proc_cmd_mappings, info_proc_cmd_stat)
2582 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
2583 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
2584
c4a3e68e
TT
25852017-09-27 Tom Tromey <tom@tromey.com>
2586
2587 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
2588 Constify.
2589
c9d31bd6
TT
25902017-09-27 Tom Tromey <tom@tromey.com>
2591
2592 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
2593
1f3f85eb
TT
25942017-09-27 Tom Tromey <tom@tromey.com>
2595
2596 * demangle.c (demangle_command): Constify.
2597
9c504b5d
TT
25982017-09-27 Tom Tromey <tom@tromey.com>
2599
2600 * progspace.c (maintenance_info_program_spaces_command):
2601 Constify.
2602
6663cf91
TT
26032017-09-27 Tom Tromey <tom@tromey.com>
2604
2605 * compile/compile.c (check_raw_argument, compile_file_command)
2606 (compile_code_command, compile_print_command): Constify.
2607
34e5fa26
TT
26082017-09-27 Tom Tromey <tom@tromey.com>
2609
2610 * reggroups.c (maintenance_print_reggroups): Constify.
2611
8384c356
TT
26122017-09-27 Tom Tromey <tom@tromey.com>
2613
2614 * dwarf2read.c (save_gdb_index_command): Constify.
2615
884beb0c
TT
26162017-09-27 Tom Tromey <tom@tromey.com>
2617
2618 * stap-probe.c (info_probes_stap_command): Constify.
2619
e0b2930c
TT
26202017-09-27 Tom Tromey <tom@tromey.com>
2621
2622 * fork-child.c (unset_exec_wrapper_command): Constify.
2623
f938677d
TT
26242017-09-27 Tom Tromey <tom@tromey.com>
2625
2626 * btrace.c (get_uint, get_context_size, no_chunk)
2627 (maint_btrace_packet_history_cmd)
2628 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
2629 (maint_info_btrace_cmd): Constify.
2630
8949cb87
TT
26312017-09-27 Tom Tromey <tom@tromey.com>
2632
2633 * reverse.c (delete_bookmark_command): Constify.
2634
ac88e2de
TT
26352017-09-27 Tom Tromey <tom@tromey.com>
2636
2637 * remote.c (set_memory_packet_size)
2638 (set_memory_write_packet_size, show_memory_write_packet_size)
2639 (set_memory_read_packet_size, show_memory_read_packet_size)
2640 (compare_sections_command, packet_command, remote_put_command)
2641 (remote_get_command, remote_delete_command): Constify.
2642
bd4c9dfe
TT
26432017-09-27 Tom Tromey <tom@tromey.com>
2644
2645 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
2646 (set_mipsfpu_double_command, set_mipsfpu_none_command)
2647 (set_mipsfpu_auto_command): Constify.
2648
5e93d4c6
TT
26492017-09-27 Tom Tromey <tom@tromey.com>
2650
2651 * cli/cli-cmds.h (cd_command): Constify.
2652 * cli/cli-cmds.c (cd_command): Constify.
2653
fc41a75b
TT
26542017-09-27 Tom Tromey <tom@tromey.com>
2655
2656 * thread.c (thread_name_command, thread_find_command): Constify.
2657
67810076
TT
26582017-09-27 Tom Tromey <tom@tromey.com>
2659
2660 * probe.c (enable_probes_command, disable_probes_command):
2661 Constify.
2662
1d8b34a7
TT
26632017-09-27 Tom Tromey <tom@tromey.com>
2664
2665 * symfile.c (symbol_file_command): Constify.
2666 * gdbcore.h (deprecated_file_changed_hook): Constify.
2667 * exec.c (deprecated_file_changed_hook, exec_file_command)
2668 (file_command): Constify.
2669 * defs.h (symbol_file_command): Constify.
2670
442019e1
TT
26712017-09-27 Tom Tromey <tom@tromey.com>
2672
2673 * remote-fileio.c (set_system_call_allowed)
2674 (show_system_call_allowed): Constify.
2675
2983f7cb
TT
26762017-09-27 Tom Tromey <tom@tromey.com>
2677
2678 * tracepoint.c (delete_trace_variable_command)
2679 (tfind_end_command, tfind_start_command, tfind_pc_command)
2680 (tfind_tracepoint_command, tfind_line_command)
2681 (tfind_range_command, tfind_outside_command): Constify.
2682
4fd41b24
TT
26832017-09-27 Tom Tromey <tom@tromey.com>
2684
2685 * ax-gdb.c (maint_agent_printf_command, agent_command)
2686 (agent_eval_command): Constify.
2687
f2fc3015
TT
26882017-09-27 Tom Tromey <tom@tromey.com>
2689
2690 * tracepoint.c (info_scope_command): Constify.
2691 * python/python.c (gdbpy_decode_line): Constify.
2692 * python/py-breakpoint.c (bppy_init): Constify.
2693 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
2694 * location.h: (new_linespec_location)
2695 (string_to_event_location_basic, string_to_event_location):
2696 Constify.
2697 * location.c (new_linespec_location)
2698 (string_to_event_location_basic, string_to_event_location):
2699 Constify.
2700 * linespec.h (decode_line_with_current_source)
2701 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
2702 * linespec.c (linespec_lex_to_end)
2703 (decode_line_with_current_source)
2704 (decode_line_with_last_displayed): Constify.
2705 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
2706 Constify.
2707 * cli/cli-cmds.c (edit_command, list_command): Constify.
2708 * breakpoint.h (until_break_command, watch_command_wrapper)
2709 (awatch_command_wrapper, rwatch_command_wrapper)
2710 (init_ada_exception_breakpoint): Constify.
2711 * breakpoint.c (break_command_1, dprintf_command)
2712 (break_range_command, watch_command_wrapper)
2713 (rwatch_command_wrapper, awatch_command_wrapper)
2714 (until_break_command, init_ada_exception_breakpoint)
2715 (strace_marker_create_sals_from_location, trace_command)
2716 (ftrace_command, strace_command, struct tracepoint): Constify.
2717 * ax-gdb.c (agent_command_1): Constify.
2718 * ada-lang.c (ada_exception_sal): Constify.
2719
8c2f95f4
TT
27202017-09-27 Tom Tromey <tom@tromey.com>
2721
2722 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
2723 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
2724 (get_context_size, no_chunk, get_insn_history_modifiers)
2725 (cmd_record_insn_history, get_call_history_modifiers)
2726 (cmd_record_call_history): Constify.
2727
a0d65762
TT
27282017-09-27 Tom Tromey <tom@tromey.com>
2729
2730 * source.c (show_substitute_path_command)
2731 (unset_substitute_path_command, set_substitute_path_command):
2732 Constify.
2733
58971144
TT
27342017-09-27 Tom Tromey <tom@tromey.com>
2735
2736 * typeprint.c (maintenance_print_type): Constify.
2737 * maint.c (maintenance_dump_me, maintenance_demangle)
2738 (maintenance_time_display, maintenance_info_sections)
2739 (maintenance_print_statistics, maintenance_deprecate)
2740 (maintenance_undeprecate): Constify.
2741 (maintenance_do_deprecate): Constify. Use std::string.
2742 (maintenance_selftest): Constify.
2743 * gdbtypes.h (maintenance_print_type): Constify.
2744
c482f52c
TT
27452017-09-27 Tom Tromey <tom@tromey.com>
2746
2747 * hppa-tdep.c (unwind_command): Constify.
2748
e100df1a
TT
27492017-09-27 Tom Tromey <tom@tromey.com>
2750
2751 * target-descriptions.c (unset_tdesc_filename_cmd)
2752 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
2753 Constify.
2754
31d56ade
TT
27552017-09-27 Tom Tromey <tom@tromey.com>
2756
2757 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
2758
b961da0b
TT
27592017-09-27 Tom Tromey <tom@tromey.com>
2760
2761 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
2762
e2d8ae16
TT
27632017-09-27 Tom Tromey <tom@tromey.com>
2764
2765 * tui/tui-regs.c (tui_reg_command): Constify.
2766
863779b0
TT
27672017-09-27 Tom Tromey <tom@tromey.com>
2768
2769 * skip.c (skip_file_command, skip_function_command)
2770 (skip_enable_command, skip_disable_command, skip_delete_command):
2771 Constify.
2772
cdb34d4a
TT
27732017-09-27 Tom Tromey <tom@tromey.com>
2774
2775 * record-btrace.c (cmd_record_btrace_bts_start)
2776 (cmd_record_btrace_pt_start): Constify.
2777
e99c83e7
TT
27782017-09-27 Tom Tromey <tom@tromey.com>
2779
2780 * symmisc.c (maintenance_print_symbols)
2781 (maintenance_print_msymbols, maintenance_print_objfiles)
2782 (maintenance_info_symtabs, maintenance_check_symtabs)
2783 (maintenance_expand_symtabs, maintenance_info_line_tables):
2784 Constify.
2785
32faf971
TT
27862017-09-27 Tom Tromey <tom@tromey.com>
2787
2788 * top.c (new_ui_command): Constify.
2789
2cf311eb
TT
27902017-09-27 Tom Tromey <tom@tromey.com>
2791
2792 * symfile.c (add_symbol_file_command)
2793 (remove_symbol_file_command, list_overlays_command)
2794 (map_overlay_command, unmap_overlay_command)
2795 (overlay_auto_command, overlay_manual_command)
2796 (overlay_off_command, overlay_load_command): Constify.
2797
e6738699
TT
27982017-09-27 Tom Tromey <tom@tromey.com>
2799
2800 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2801 (info_spu_mailbox_command, info_spu_dma_command)
2802 (info_spu_proxydma_command): Constify.
2803
aa360cd5
TT
28042017-09-27 Tom Tromey <tom@tromey.com>
2805
2806 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
2807
898241a5
TT
28082017-09-27 Tom Tromey <tom@tromey.com>
2809
2810 * cli/cli-script.c (user_defined_command): Constify.
2811
2d0ac106
TT
28122017-09-27 Tom Tromey <tom@tromey.com>
2813
2814 * cli/cli-dump.c (dump_memory_command, dump_value_command)
2815 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
2816 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
2817 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
2818 (dump_binary_value, append_binary_memory, append_binary_value):
2819 Constify.
2820 (struct dump_context) <func>: Constify.
2821 (add_dump_command): Update.
2822
dede02ce
TT
28232017-09-27 Tom Tromey <tom@tromey.com>
2824
2825 * cli/cli-cmds.c (show_version, show_configuration)
2826 (source_command, show_user): Constify.
2827
d3cb6b99
TT
28282017-09-27 Tom Tromey <tom@tromey.com>
2829
2830 * target.c (maintenance_print_target_stack): Constify.
2831
1970a12f
TT
28322017-09-27 Tom Tromey <tom@tromey.com>
2833
2834 * interps.c (interpreter_exec_cmd): Constify.
2835
41243651
TT
28362017-09-27 Tom Tromey <tom@tromey.com>
2837
2838 * record-full.c (cmd_record_full_restore): Constify.
2839
4465d9db
TT
28402017-09-27 Tom Tromey <tom@tromey.com>
2841
2842 * memattr.c (enable_mem_command, disable_mem_command)
2843 (delete_mem_command): Constify.
2844
ad25e423
TT
28452017-09-27 Tom Tromey <tom@tromey.com>
2846
2847 * value.c (show_convenience): Constify.
2848
d64097b1
TT
28492017-09-27 Tom Tromey <tom@tromey.com>
2850
2851 * gdbcore.h (core_file_command): Update.
2852 * corefile.c (core_file_command): Constify.
2853
4d4589ef
TT
28542017-09-27 Tom Tromey <tom@tromey.com>
2855
2856 * user-regs.c (maintenance_print_user_registers): Constify.
2857
32a7bf17
TT
28582017-09-27 Tom Tromey <tom@tromey.com>
2859
2860 * cp-namespace.c (maintenance_cplus_namespace): Constify.
2861
4a475551
TT
28622017-09-27 Tom Tromey <tom@tromey.com>
2863
2864 * cp-support.c (first_component_command): Constify.
2865
990b9f9f
TT
28662017-09-27 Tom Tromey <tom@tromey.com>
2867
2868 * psymtab.c (maintenance_print_psymbols)
2869 (maintenance_info_psymtabs, maintenance_check_psymtabs):
2870 Constify.
2871
c281872e
TT
28722017-09-27 Tom Tromey <tom@tromey.com>
2873
2874 * windows-tdep.c (display_tib): Constify.
2875
5b64bf74
TT
28762017-09-27 Tom Tromey <tom@tromey.com>
2877
2878 * linux-fork.c (delete_checkpoint_command)
2879 (detach_checkpoint_command): Constify.
2880
4ada038f
TT
28812017-09-27 Tom Tromey <tom@tromey.com>
2882
2883 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
2884
57f5a81b
TT
28852017-09-27 Tom Tromey <tom@tromey.com>
2886
2887 * arc-tdep.c (dump_arc_instruction_command): Constify.
2888
b0a8e6c4
TT
28892017-09-27 Tom Tromey <tom@tromey.com>
2890
2891 * valprint.c (set_radix, show_radix): Constify.
2892
8d97dc1c
TT
28932017-09-27 Tom Tromey <tom@tromey.com>
2894
2895 * dtrace-probe.c (info_probes_dtrace_command): Constify.
2896
eb7c454d
TT
28972017-09-27 Tom Tromey <tom@tromey.com>
2898
2899 * command.h (not_just_help_class_command): Update.
2900 * cli/cli-decode.h (not_just_help_class_command): Update.
2901 * cli/cli-decode.c (not_just_help_class_command): Constify.
2902
e4e33335
TT
29032017-09-27 Tom Tromey <tom@tromey.com>
2904
2905 * gdb_bfd.c (maintenance_info_bfds): Constify.
2906
0450cc4c
TT
29072017-09-27 Tom Tromey <tom@tromey.com>
2908
2909 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
2910 overloads.
2911 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
2912 (do_const_cfunc): New function.
2913 (cmd_cfunc_eq): New overload.
2914 (cli_user_command_p): Check do_const_cfunc.
2915 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
2916 const_cfunc.
2917 * command.h (add_cmd): Add const overload and no-function
2918 overload.
2919 (set_cmd_cfunc): Add const overload.
2920 (cmd_const_cfunc_ftype): Declare.
2921 (cmd_cfunc_eq): Add const overload.
2922 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
2923 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
2924 overload.
2925
a9bbfbd8
TT
29262017-09-27 Tom Tromey <tom@tromey.com>
2927
2928 * macroexp.c (get_next_token_for_substitution): New function.
2929 (substitute_args): Call it. Check for __VA_OPT__.
2930
5230b05a
WT
29312017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
2932 Pedro Alves <palves@redhat.com>
2933
2934 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
2935 producer_is_icc_lt_14.
2936 (producer_is_icc_lt_14): New function.
2937 (check_producer): Add code for checking version of ICC.
2938 (producer_is_icc): Move to producer.c.
2939 (read_structure_type): Restrict ICC workaround to ICC<14.
2940 * producer.c: Include selftest.h.
2941 (producer_is_icc, producer_parsing_tests, _initialize_producer):
2942 New functions.
2943 * producer.h (producer_is_icc): New declaration.
2944
b32b108a
WT
29452017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
2946
2947 * Makefile.in (SFILES): Add producer.c.
2948 (COMMON_OBS): Add producer.o
2949 * amd64-tdep.c (producer.h): Add new include.
2950 * dwarf2read.c (producer.h): Add new include.
2951 * producer.c: New file.
2952 * producer.h: New file.
2953 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
2954 producer.c.
2955 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
2956 producer.h.
2957
5007d765
MK
29582017-09-26 Matthias Klose <doko@ubuntu.com>
2959
2960 * configure.ac: Search ncursesw before ncurses.
2961 Check ncursesw/ncurses.h before ncurses/ncurses.h.
2962 * gdb_curses.h: Include <ncursesw/ncurses.h>
2963 * config.in, configure: Regenerate.
2964
281c4447
RO
29652017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2966
2967 PR gdb/22185
2968 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
2969 obsolete.
2970 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
2971 Remove i386sol2 support.
2972 * configure.nat <i386sol2>: Remove.
2973 <sol2-64>: Fold into ...
2974 <sol2>: ... this.
2975 Move common settings to default section.
2976 Add sol-thread.o.
2977 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
2978 x86_64-*-solaris2.1[0-9]*>: Rename to ...
2979 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
2980 <i[34567]86-*-solaris*>: Remove.
2981 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
2982
2983 * configure.ac: Remove wctype in libw check.
2984 (_MSE_INT_H): Don't define on Solaris 7-9.
2985 <solaris*>: Remove libthread_db.so.1 check.
2986 * configure: Regenerate.
2987 * config.in: Regenerate.
2988
2989 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
2990 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
2991 (gdb_ps_size_t): Remove.
2992 Use base types in users.
2993 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
2994
2995 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
2996
39b06c20
RO
29972017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2998
2999 PR build/22206
3000 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
3001 (adi_is_addr_mapped): Likewise.
3002 (PSR_ICC): Don't redefine.
3003 (PSR_IMPL): Likewise.
3004
6c3e20f1
TT
30052017-09-25 Tom Tromey <tom@tromey.com>
3006
3007 * regcache.c (regcache::dump): Use string_printf.
3008
b292235f
TT
30092017-09-25 Tom Tromey <tom@tromey.com>
3010
3011 * regcache.c (class regcache_invalidator): New.
3012 (struct register_to_invalidate): Remove.
3013 (make_cleanup_regcache_invalidate): Remove.
3014 (regcache::raw_write): Use regcache_invalidator.
3015
9ac86b52
TT
30162017-09-25 Tom Tromey <tom@tromey.com>
3017
3018 * spu-tdep.c (spu2ppu_sniffer): Update.
3019 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
3020 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
3021 Remove.
3022 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
3023 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
3024 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
3025 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
3026 (frame_pop): Update.
3027
c0e383c6
TT
30282017-09-25 Tom Tromey <tom@tromey.com>
3029
3030 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
3031 * regcache.h (regcache_xfree): Don't declare.
3032 * regcache.c (regcache_xfree): Remove.
3033 (do_regcache_xfree): Use delete.
3034 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
3035 * linux-fork.c (free_fork): Use delete.
3036 (fork_save_infrun_state): Likewise.
3037 * jit.c (jit_dealloc_cache): Use delete.
3038 * infrun.c (discard_infcall_suspend_state): Use delete.
3039
791199cc
TT
30402017-09-25 Tom Tromey <tom@tromey.com>
3041
3042 * regcache.h (regcache_xmalloc): Don't declare.
3043 (regcache_raw_set_cached_value): Update comment.
3044 * regcache.c (regcache_xmalloc): Remove.
3045 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
3046 * jit.c (jit_frame_sniffer): Use new.
3047 * frame.c (frame_save_as_regcache): Use new.
3048
289e23aa
AA
30492017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3050
3051 * NEWS: Advertise support for guarded-storage registers on IBM z.
3052
1b63490c
AA
30532017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3054
3055 * s390-linux-nat.c (have_regset_gs): New static variable.
3056 (s390_linux_fetch_inferior_registers): Handle guarded-storage
3057 control block and guarded-storage broadcast control regsets.
3058 (s390_read_description): Detect whether the target has
3059 guarded-storage support, return appropriate tdesc.
3060 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
3061 (features/s390x-gs-linux64.c): Likewise.
3062 (struct gdbarch_tdep) <have_gs>: New field.
3063 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
3064 (s390_gsbc_regset): New variables.
3065 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
3066 and s390_gsbc_regset, if applicable.
3067 (s390_core_read_description): Check whether core file was from a
3068 target with guarded-storage support; include appropriate regsets.
3069 (s390_gdbarch_init): Add registers for guarded-storage support.
3070 (_initialize_s390_tdep): Initialize new target descriptions that
3071 include registers for guarded-storage support.
3072 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
3073 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
3074 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
3075 (S390_NUM_REGS): Adjust macro definition.
3076 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
3077 (tdesc_s390x_gs_linux64): New declarations.
3078
96235dc1
AA
30792017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3080
3081 * features/s390-gs-linux64.xml: New file.
3082 * features/s390-gs.xml: New file.
3083 * features/s390-gsbc.xml: New file.
3084 * features/s390x-gs-linux64.xml: New file.
3085 * features/Makefile (WHICH): Add s390-gs-linux64 and
3086 s390x-gs-linux64.
3087 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
3088 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
3089 * features/s390-gs-linux64.c: New generated file.
3090 * features/s390x-gs-linux64.c: New file.
3091 * regformats/s390-gs-linux64.dat: New file.
3092 * regformats/s390x-gs-linux64.dat: New file.
3093
b4a7c699
TT
30942017-09-23 Tom Tromey <tom@tromey.com>
3095
3096 * defs.h (make_cleanup_override_quit_handler): Don't declare.
3097
c2f97536
TT
30982017-09-22 Tom Tromey <tom@tromey.com>
3099
3100 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
3101 type to scoped_restore_tmpl.
3102 <scoped_input_handler>: Initialize m_quit_handler directly.
3103
43573013
SDJ
31042017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
3105
3106 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
3107 (cd_command): Likewise. Free "current_directory" before
3108 assigning to it.
3109 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
3110 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
3111 * top.c (gdb_dirbuf): Remove global declaration.
3112 * top.h (gdb_dirbuf): Likewise.
3113
6ec2e0f5
SDJ
31142017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
3115
3116 * gnulib/aclocal.m4: Regenerate.
3117 * gnulib/config.in: Regenerate.
3118 * gnulib/configure: Regenerate.
3119 * gnulib/import/Makefile.am: Regenerate.
3120 * gnulib/import/Makefile.in: Regenerate.
3121 * gnulib/import/assure.h: New file.
3122 * gnulib/import/at-func.c: Likewise
3123 * gnulib/import/chdir-long.c: New file.
3124 * gnulib/import/chdir-long.h: New file.
3125 * gnulib/import/cloexec.c: New file.
3126 * gnulib/import/cloexec.h: New file.
3127 * gnulib/import/close.c: New file.
3128 * gnulib/import/closedir.c: New file.
3129 * gnulib/import/dirent-private.h: New file.
3130 * gnulib/import/dup-safer.c: New file.
3131 * gnulib/import/dup.c: New file.
3132 * gnulib/import/dup2.c: New file.
3133 * gnulib/import/error.c: New file.
3134 * gnulib/import/error.h: New file.
3135 * gnulib/import/exitfail.c: New file.
3136 * gnulib/import/exitfail.h: New file.
3137 * gnulib/import/fchdir.c: New file.
3138 * gnulib/import/fcntl.c: New file.
3139 * gnulib/import/fcntl.in.h: New file.
3140 * gnulib/import/fd-hook.c: New file.
3141 * gnulib/import/fd-hook.h: New file.
3142 * gnulib/import/fd-safer.c: New file.
3143 * gnulib/import/fdopendir.c: New file.
3144 * gnulib/import/filename.h: New file.
3145 * gnulib/import/filenamecat-lgpl.c: New file.
3146 * gnulib/import/filenamecat.h: New file.
3147 * gnulib/import/fstat.c: New file.
3148 * gnulib/import/fstatat.c: New file.
3149 * gnulib/import/getcwd-lgpl.c: New file.
3150 * gnulib/import/getcwd.c: New file.
3151 * gnulib/import/getdtablesize.c: New file.
3152 * gnulib/import/getlogin_r.c: New file.
3153 * gnulib/import/getprogname.c: New file.
3154 * gnulib/import/getprogname.h: New file.
3155 * gnulib/import/gettext.h: New file.
3156 * gnulib/import/glob-libc.h: New file.
3157 * gnulib/import/glob.c: New file.
3158 * gnulib/import/glob.in.h: New file.
3159 * gnulib/import/intprops.h: New file.
3160 * gnulib/import/m4/chdir-long.m4: New file.
3161 * gnulib/import/m4/close.m4: New file.
3162 * gnulib/import/m4/closedir.m4: New file.
3163 * gnulib/import/m4/d-ino.m4: New file.
3164 * gnulib/import/m4/d-type.m4: New file.
3165 * gnulib/import/m4/dup.m4: New file.
3166 * gnulib/import/m4/dup2.m4: New file.
3167 * gnulib/import/m4/error.m4: New file.
3168 * gnulib/import/m4/fchdir.m4: New file.
3169 * gnulib/import/m4/fcntl.m4: New file.
3170 * gnulib/import/m4/fcntl_h.m4: New file.
3171 * gnulib/import/m4/fdopendir.m4: New file.
3172 * gnulib/import/m4/filenamecat.m4: New file.
3173 * gnulib/import/m4/fstat.m4: New file.
3174 * gnulib/import/m4/fstatat.m4: New file.
3175 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
3176 * gnulib/import/m4/getcwd-path-max.m4: New file.
3177 * gnulib/import/m4/getcwd.m4: New file.
3178 * gnulib/import/m4/getdtablesize.m4: New file.
3179 * gnulib/import/m4/getlogin_r.m4: New file.
3180 * gnulib/import/m4/getprogname.m4: New file.
3181 * gnulib/import/m4/glob.m4: New file.
3182 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3183 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3184 * gnulib/import/m4/mempcpy.m4: New file.
3185 * gnulib/import/m4/memrchr.m4: New file.
3186 * gnulib/import/m4/mode_t.m4: New file.
3187 * gnulib/import/m4/msvc-inval.m4: New file.
3188 * gnulib/import/m4/msvc-nothrow.m4: New file.
3189 * gnulib/import/m4/open.m4: New file.
3190 * gnulib/import/m4/openat.m4: New file.
3191 * gnulib/import/m4/opendir.m4: New file.
3192 * gnulib/import/m4/readdir.m4: New file.
3193 * gnulib/import/m4/realloc.m4: New file.
3194 * gnulib/import/m4/rewinddir.m4: New file.
3195 * gnulib/import/m4/save-cwd.m4: New file.
3196 * gnulib/import/m4/strdup.m4: New file.
3197 * gnulib/import/m4/strerror.m4: New file.
3198 * gnulib/import/m4/unistd-safer.m4: New file.
3199 * gnulib/import/mempcpy.c: New file.
3200 * gnulib/import/memrchr.c: New file.
3201 * gnulib/import/msvc-inval.c: New file.
3202 * gnulib/import/msvc-inval.h: New file.
3203 * gnulib/import/msvc-nothrow.c: New file.
3204 * gnulib/import/msvc-nothrow.h: New file.
3205 * gnulib/import/open.c: New file.
3206 * gnulib/import/openat-die.c: New file.
3207 * gnulib/import/openat-priv.h: New file.
3208 * gnulib/import/openat-proc.c: New file.
3209 * gnulib/import/openat.c: New file.
3210 * gnulib/import/openat.h: New file.
3211 * gnulib/import/opendir.c: New file.
3212 * gnulib/import/pipe-safer.c: New file.
3213 * gnulib/import/readdir.c: New file.
3214 * gnulib/import/realloc.c: New file.
3215 * gnulib/import/rewinddir.c: New file.
3216 * gnulib/import/save-cwd.c: New file.
3217 * gnulib/import/save-cwd.h: New file.
3218 * gnulib/import/strdup.c: New file.
3219 * gnulib/import/strerror-override.c: New file.
3220 * gnulib/import/strerror-override.h: New file.
3221 * gnulib/import/strerror.c: New file.
3222 * gnulib/import/unistd--.h: New file.
3223 * gnulib/import/unistd-safer.h: New file.
3224 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
3225 "getcwd" and "glob".
3226 * ser-tcp.c: Undefine "close" before redefining it.
3227
432ae719
SM
32282017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3229
3230 * guile/scm-value.c (gdbscm_value_address): Initialize address,
3231 get rid of res_val.
3232
4fa7574e
RO
32332017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3234
3235 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
3236 <sol2,sparc>: Likewise.
3237 <sol2-64,i386>: Likewise.
3238
3239 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
3240 -Wdeprecated-declarations on *-*-solaris*.
3241 * configure: Regenerate.
3242
3243 * procfs.c: Include "nat/inferior.h".
3244 (procfs_info_proc): Fix typo.
3245
f6327dcb
KB
32462017-09-21 Kevin Buettner <kevinb@redhat.com>
3247
3248 * remote.c (vector): Include.
3249 (struct private_thread_info): Add field, thread_handle.
3250 (free_private_thread_info): Deallocate storage associated with
3251 thread handle.
3252 (get_private_info_thread): Initialize `thread_handle' field.
3253 (struct thread_item): Add field, thread_handle.
3254 (clear_threads_listing_context): Deallocate storage associated
3255 with thread handle.
3256 (start_thread): Add support for "handle" attribute.
3257 (thread_attributes): Add "handle".
3258 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
3259 field.
3260 (remote_update_thread_list): Update thread_handle.
3261 (remote_thread_handle_to_thread_info): New function.
3262 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
3263
fbbe5337
KB
32642017-09-21 Kevin Buettner <kevinb@redhat.com>
3265
3266 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
3267 function.
3268 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
3269 * python/python-internal.h (thread_object_type): Declare.
3270
e04ee09e
KB
32712017-09-21 Kevin Buettner <kevinb@redhat.com>
3272
3273 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
3274 (target_thread_handle_to_thread_info): Declare.
3275 * target.c (target_thread_handle_to_thread_info): New function.
3276 * target-delegates.c: Regenerate.
3277 * gdbthread.h (find_thread_by_handle): Declare.
3278 * thread.c (find_thread_by_handle): New function.
3279 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
3280 function.
3281 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
3282
1e5b66ed
SM
32832017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3284
3285 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
3286
ebe48ba0
SM
32872017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3288
3289 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
3290
0a0bf5dc
YQ
32912017-09-21 Yao Qi <yao.qi@linaro.org>
3292
3293 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
3294 to gdb_target_obs.
3295
d1b0a7bf
TT
32962017-09-20 Tom Tromey <tom@tromey.com>
3297
3298 * breakpoint.c (struct counted_command_line): Remove.
3299 (breakpoint_commands): Update.
3300 (alloc_counted_command_line, incref_counted_command_line)
3301 (decref_counted_command_line, do_cleanup_counted_command_line)
3302 (make_cleanup_decref_counted_command_line): Remove.
3303 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
3304 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
3305 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
3306 (save_breakpoints): Update.
3307 * breakpoint.h (counted_command_line): Now a typedef to
3308 shared_ptr.
3309 (struct breakpoint) <commands>: Now a counted_command_line.
3310 (struct bpstats) <command>: Likewise.
3311
48649e1b
TT
33122017-09-20 Tom Tromey <tom@tromey.com>
3313
3314 * breakpoint.c (struct commands_info, do_map_commands_command):
3315 Remove.
3316 (commands_command_1): Update.
3317 (iterate_over_related_breakpoints): Take a function_view.
3318 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
3319 (delete_command): Update.
3320 (map_breakpoint_numbers): Take a function_view.
3321 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
3322 (disable_command): Update.
3323 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
3324 (enable_command): Update.
3325 (struct disp_data, do_enable_breakpoint_disp)
3326 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
3327 (do_map_enable_delete_breakpoint): Remove.
3328 (enable_once_command, enable_count_command, enable_delete_command)
3329 (delete_trace_variable_command): Update.
3330
04afa70c
TT
33312017-09-20 Tom Tromey <tom@tromey.com>
3332
3333 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
3334 (bpstat_clear): Use delete.
3335 (bpstats): New constructors.
3336 (bpstat_copy, bpstat_stop_status): Use new.
3337 (dprintf_after_condition_true): Update.
3338 * breakpoint.h (bpstats::bpstats): Add constructors.
3339 (bpstats::~bpstats): Add destructor.
3340
c83833f4
PA
33412017-09-20 Pedro Alves <palves@redhat.com>
3342
3343 * eval.c (make_params): Delete, refactored as ...
3344 (class fake_method): ... this new type's ctor.
3345 (fake_method::~fake_method): New.
3346 (evaluate_subexp_standard): Use 'fake_method'.
3347
223ffa71
TT
33482017-09-20 Tom Tromey <tom@tromey.com>
3349
3350 * windows-nat.c (get_windows_debug_event, windows_wait)
3351 (do_initial_windows_stuff, windows_attach): Update.
3352 * utils.c (vwarning, internal_vproblem): Update.
3353 (ui_unregister_input_event_handler_cleanup)
3354 (prepare_to_handle_input): Remove.
3355 (class scoped_input_handler): New.
3356 (defaulted_query, prompt_for_continue): Update.
3357 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
3358 Update.
3359 * top.c (undo_terminal_modifications_before_exit): Update.
3360 * target/target.h (target_terminal_init, target_terminal_inferior)
3361 (target_terminal_ours): Don't declare.
3362 (class target_terminal): New.
3363 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
3364 (target_terminal_ours_for_output)
3365 (make_cleanup_restore_target_terminal): Don't declare.
3366 (target_terminal_info): Remove.
3367 * target.c (enum terminal_state, terminal_state): Remove.
3368 (target_terminal::terminal_state): Define.
3369 (target_terminal::init): Rename from target_terminal_init.
3370 (target_terminal::inferior): Rename from
3371 target_terminal_inferior.
3372 (target_terminal::ours): Rename from target_terminal_ours.
3373 (target_terminal::ours_for_output): Rename from
3374 target_terminal_ours_for_output.
3375 (target_terminal::info): New method.
3376 (cleanup_restore_target_terminal)
3377 (make_cleanup_restore_target_terminal): Remove.
3378 * solib.c (handle_solib_event): Update.
3379 * remote.c (remote_serial_quit_handler): Update.
3380 (remote_terminal_inferior, remote_wait_as): Update.
3381 * record-full.c (record_full_wait_1): Update.
3382 * nto-procfs.c (procfs_create_inferior): Update.
3383 * nat/fork-inferior.c (startup_inferior): Update.
3384 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
3385 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
3386 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
3387 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
3388 (mi_breakpoint_created, mi_breakpoint_deleted)
3389 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
3390 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
3391 (mi_user_selected_context_changed, report_initial_inferior):
3392 Update.
3393 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
3394 (linux_nat_terminal_inferior): Update.
3395 * infrun.c (follow_fork_inferior)
3396 (handle_vfork_child_exec_or_exit, do_target_resume)
3397 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
3398 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
3399 Update.
3400 * inflow.c (child_terminal_init, info_terminal_command): Update.
3401 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
3402 (attach_command): Update.
3403 * infcall.c (call_thread_fsm_should_stop): Update.
3404 * gnu-nat.c (gnu_attach): Update.
3405 * extension.c (struct active_ext_lang_state)
3406 (restore_active_ext_lang): Update.
3407 * exceptions.c (print_flush): Update.
3408 * event-top.c (async_enable_stdin, default_quit_handler): Update.
3409 (struct quit_handler_cleanup_data, restore_quit_handler)
3410 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
3411 Remove.
3412 * cp-support.c (gdb_demangle): Update.
3413 * breakpoint.c (update_inserted_breakpoint_locations)
3414 (insert_breakpoint_locations, handle_jit_event)
3415 (disable_breakpoints_in_unloaded_shlib): Update.
3416 * annotate.c (annotate_breakpoints_invalid)
3417 (annotate_frames_invalid): Update.
3418
013af3fc
TT
34192017-09-20 Tom Tromey <tom@tromey.com>
3420
3421 * main.c (catch_command_errors): Rename from
3422 catch_command_errors_const.
3423 (captured_main_1): Update.
3424
06871ae8
PA
34252017-09-20 Pedro Alves <palves@redhat.com>
3426
3427 * cli/cli-cmds.c (list_command): Use print_sal_location.
3428 (print_sal_location): New function.
3429 (ambiguous_line_spec): Use print_sal_location.
3430 * linespec.c (symbol_to_sal): Record the symbol in the sal.
3431 * symtab.c (find_function_start_sal): Likewise.
3432 * symtab.h (symtab_and_line::symbol): New field.
3433
e5f25bc5
PA
34342017-09-20 Pedro Alves <palves@redhat.com>
3435
3436 * linespec.c (minsym_found): Handle non-text minsyms.
3437 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
3438
1b7fa39e
WT
34392017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
3440
3441 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
3442 backslash.
3443
37dd0825
WT
34442017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
3445
3446 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
3447 vmovups instead vmovaps.
3448 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
3449
4e5a4f58
JB
34502017-09-19 John Baldwin <jhb@FreeBSD.org>
3451
3452 * NEWS (Changes since GDB 8.0): Add starti.
3453 * infcmd.c (enum run_break): New.
3454 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
3455 case.
3456 (run_command): Use enum run_how.
3457 (start_command): Likewise.
3458 (starti_command): New function.
3459 (RUN_ARGS_HELP): New macro.
3460 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
3461 commands. Add starti command.
3462
aa70c9f1
YQ
34632017-09-19 Yao Qi <yao.qi@linaro.org>
3464
3465 * Makefile.in (monitor.o): Remove the rule.
3466
d6541620
YQ
34672017-09-19 Yao Qi <yao.qi@linaro.org>
3468
3469 * annotate.h (struct annotate_arg_emitter): Use
3470 DISABLE_COPY_AND_ASSIGN.
3471 * common/refcounted-object.h (refcounted_object): Likewise.
3472 * completer.h (struct completion_result): Likewise.
3473 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
3474 * filename-seen-cache.h (filename_seen_cache): Likewise.
3475 * gdbcore.h (thread_section_name): Likewise.
3476 * gdb_regex.h (compiled_regex): Likewise.
3477 * gdbthread.h (scoped_restore_current_thread): Likewise.
3478 * inferior.h (scoped_restore_current_inferior): Likewise.
3479 * jit.c (jit_reader): Likewise.
3480 * linespec.h (struct linespec_result): Likewise.
3481 * mi/mi-parse.h (struct mi_parse): Likewise.
3482 * nat/fork-inferior.c (execv_argv): Likewise.
3483 * progspace.h (scoped_restore_current_program_space): Likewise.
3484 * python/python-internal.h (class gdbpy_enter): Likewise.
3485 * regcache.h (regcache): Likewise.
3486 * target-descriptions.c (struct tdesc_reg): Likewise.
3487 (struct tdesc_type): Likewise.
3488 (struct tdesc_feature): Likewise.
3489 * ui-out.h (ui_out_emit_type): Likewise.
3490
0615127c
SM
34912017-09-18 Simon Marchi <simon.marchi@ericsson.com>
3492
3493 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
3494 label abort_expression.
3495
5e187554
SM
34962017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3497
3498 * common/buffer.c (buffer_xml_printf): Adjust.
3499 * common/xml-utils.c (xml_escape_text): Change return type to
3500 std::string, update code accordingly.
3501 * common/xml-utils.h (xml_escape_text): Change return type to
3502 std::string.
3503 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
3504 * windows-tdep.c (windows_xfer_shared_library): Adjust.
3505 * unittests/xml-utils-selftests.c (test_xml_escape_text):
3506 Adjust.
3507
c3d7b541
SM
35082017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3509
3510 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
3511 (SUBDIR_UNITTESTS_OBS): Add new object file.
3512 * unittests/xml-utils-selftests.c: New file.
3513
1526853e
SM
35142017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3515
3516 * common/selftest.h (selftest): New struct/interface.
3517 (register_test): Add name parameter, add new overload.
3518 (run_tests): Add filter parameter.
3519 (for_each_selftest_ftype): New typedef.
3520 (for_each_selftest): New declaration.
3521 * common/selftest.c (tests): Change type to
3522 map<string, unique_ptr<selftest>>.
3523 (simple_selftest): New struct.
3524 (register_test): New function.
3525 (register_test): Add name parameter and use it.
3526 (run_tests): Add filter parameter and use it. Add prints.
3527 Adjust to vector -> map change.
3528 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
3529 registering selftests.
3530 * arm-tdep.c (_initialize_arm_tdep): Likewise.
3531 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
3532 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
3533 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
3534 * findvar.c (_initialize_findvar): Likewise.
3535 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
3536 * maint.c (maintenance_selftest): Update call to run_tests.
3537 (maintenance_info_selftests): New function.
3538 (_initialize_maint_cmds): Register "maintenance info selftests"
3539 command. Update "maintenance selftest" doc.
3540 * regcache.c (_initialize_regcache): Add names when registering
3541 selftests.
3542 * rust-exp.y (_initialize_rust_exp): Likewise.
3543 * selftest-arch.c (gdbarch_selftest): New struct.
3544 (gdbarch_tests): Remove.
3545 (register_test_foreach_arch): Add name parameter. Call
3546 register_test.
3547 (tests_with_arch): Remove, move most content to
3548 gdbarch_selftest::operator().
3549 (_initialize_selftests_foreach_arch): Remove.
3550 * selftest-arch.h (register_test_foreach_arch): Add name
3551 parameter.
3552 (run_tests_with_arch): New declaration.
3553 * utils-selftests.c (_initialize_utils_selftests): Add names
3554 when registering selftests.
3555 * utils.c (_initialize_utils): Likewise.
3556 * unittests/array-view-selftests.c
3557 (_initialize_array_view_selftests): Likewise.
3558 * unittests/environ-selftests.c (_initialize_environ_selftests):
3559 Likewise.
3560 * unittests/function-view-selftests.c
3561 (_initialize_function_view_selftests): Likewise.
3562 * unittests/offset-type-selftests.c
3563 (_initialize_offset_type_selftests): Likewise.
3564 * unittests/optional-selftests.c
3565 (_initialize_optional_selftests): Likewise.
3566 * unittests/scoped_restore-selftests.c
3567 (_initialize_scoped_restore_selftests): Likewise.
3568 * NEWS: Document "maintenance selftest" and "maint info
3569 selftests".
3570
5846367a
SM
35712017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3572
3573 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
3574 scoped_restore.
3575
bd77e8ff
SM
35762017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3577
3578 * mi/mi-main.c (mi_load_progress): Make uiout variable
3579 a unique_ptr.
3580
26a67918
PA
35812017-09-15 Pedro Alves <palves@redhat.com>
3582
3583 * compile/compile-c-types.c (convert_enum, convert_int)
3584 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
3585
3f8a7804
SM
35862017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3587
3588 * dwarf2read.c (copy_string): Remove.
3589 (parse_macro_definition): Replace copy_string with savestring.
3590
8d200706
YQ
35912017-09-15 Yao Qi <yao.qi@linaro.org>
3592
3593 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
3594 gdb_target_obs.
3595 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
3596 Likewise.
3597 (i[34567]86-*-linux*): Likewise.
3598
d185219d
SM
35992017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3600
3601 * dwarf2expr.h (dwarf_stack_value): Add constructor.
3602 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
3603 <stack>: Change type to std::vector.
3604 <stack_len, stack_allocated>: Remove.
3605 <grow_stack>: Remove.
3606 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
3607 (dwarf_expr_context::~dwarf_expr_context): Remove.
3608 (dwarf_expr_context::grow_stack): Remove.
3609 (dwarf_expr_context::push): Adjust.
3610 (dwarf_expr_context::pop): Adjust.
3611 (dwarf_expr_context::fetch): Adjust.
3612 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
3613 (dwarf_expr_context::stack_empty_p): Adjust.
3614 (dwarf_expr_context::execute_stack_op): Adjust.
3615
eccd80d6
SM
36162017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3617
3618 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
3619 return type to bool.
3620 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
3621
69009882
SM
36222017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3623
3624 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
3625 Change type to bool.
3626 (dwarf_stack_value) <in_stack_memory>: Likewise.
3627 (dwarf_expr_context) <push_address>: Change parameter type to
3628 bool.
3629 <fetch_in_stack_memory>: Change return type to bool.
3630 <push>: Change parameter type to bool.
3631 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
3632 to bool.
3633 (dwarf_expr_context::push_address): Likewise.
3634 (dwarf_expr_context::fetch_in_stack_memory): Change return type
3635 to bool.
3636 (dwarf_expr_context::execute_stack_op): Adjust.
3637 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
3638
1e467161
SM
36392017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3640
3641 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
3642 (struct dwarf_expr_context) <n_pieces>: Remove.
3643 <pieces>: Change type to std::vector.
3644 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
3645 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
3646 pieces.
3647 (dwarf_expr_context::add_piece): Adjust.
3648 * dwarf2loc.c (struct piece_closure): Initialize fields.
3649 <n_pieces>: Remove.
3650 <pieces>: Change type to std::vector.
3651 (allocate_piece_closure): Adjust, change parameter to
3652 std::vector rvalue and std::move it to piece_closure.
3653 (rw_pieced_value): Adjust.
3654 (check_pieced_synthetic_pointer): Adjust.
3655 (indirect_synthetic_pointer): Adjust.
3656 (coerce_pieced_ref): Adjust.
3657 (free_pieced_value_closure): Adjust. Use delete to free
3658 piece_closure.
3659 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
3660 to allocate_piece_closure.
3661 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
3662
0782db84
SM
36632017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3664
3665 * probe.h (probe_ops_cp): Remove typedef.
3666 (DEF_VEC_P (probe_ops_cp)): Remove.
3667 (all_probe_ops): Change type to std::vector.
3668 * probe.c (info_probes_for_ops): Adjust to vector change.
3669 (probe_linespec_to_ops): Likewise.
3670 (all_probe_ops): Change type to std::vector.
3671 (_initialize_probe): Adjust to vector change.
3672 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
3673 * elfread.c (elf_get_probes): Likewise.
3674 * stap-probe.c (_initialize_stap_probe): Likewise.
3675
1eac6bea
SM
36762017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3677
3678 * probe.h (struct bound_probe): Define constructors.
3679 * probe.c (bound_probe_s): Remove typedef.
3680 (DEF_VEC_O (bound_probe_s)): Remove VEC.
3681 (collect_probes): Change return type to std::vector, remove
3682 cleanup.
3683 (compare_probes): Return bool, change parameter type. Change
3684 semantic to "less than".
3685 (gen_ui_out_table_header_info): Change parameter to std::vector
3686 and update.
3687 (exists_probe_with_pops): Likewise.
3688 (info_probes_for_ops): Update to std::vector change.
3689 (enable_probes_command): Likewise.
3690 (disable_probes_command): Likewise.
3691
aaa63a31
SM
36922017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3693
3694 * probe.h (struct probe_ops) <get_probes>: Change parameter from
3695 vec to std::vector.
3696 * probe.c (parse_probes_in_pspace): Update.
3697 (find_probes_in_objfile): Update.
3698 (find_probe_by_pc): Update.
3699 (collect_probes): Update.
3700 (probe_any_get_probes): Update.
3701 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
3702 return type to reference to std::vector.
3703 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
3704 std::vector and update.
3705 (dtrace_process_dof): Likewise.
3706 (dtrace_get_probes): Likewise.
3707 * elfread.c (elf_get_probes): Change return type to std::vector,
3708 store an std::vector in bfd_data.
3709 (probe_key_free): Update to std::vector.
3710 * stap-probe.c (handle_stap_probe): Change parameter to
3711 std::vector and update.
3712 (stap_get_probes): Likewise.
3713 * symfile-debug.c (debug_sym_get_probes): Change return type to
3714 std::vector and update.
3715
cb85b21b
TT
37162017-09-11 Tom Tromey <tom@tromey.com>
3717
3718 * breakpoint.c (program_breakpoint_here_p): Update.
3719 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
3720 from make_show_memory_breakpoints_cleanup. Return a
3721 scoped_restore_tmpl<int>.
3722 (restore_show_memory_breakpoints): Remove.
3723 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
3724 * mem-break.c (memory_validate_breakpoint): Update.
3725 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
3726 (ia64_memory_remove_breakpoint): Update.
3727 (ia64_breakpoint_from_pc): Update.
3728 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
3729 from make_show_memory_breakpoints_cleanup.
3730
8fbc99ef
TT
37312017-09-11 Tom Tromey <tom@tromey.com>
3732
3733 * d-namespace.c (d_lookup_symbol): Use std::string.
3734 (find_symbol_in_baseclass): Likewise.
3735
50feb4bd
TT
37362017-09-11 Tom Tromey <tom@tromey.com>
3737
3738 * ctf.c (ctf_start): Use std::string.
3739
c6dc63a1
TT
37402017-09-11 Tom Tromey <tom@tromey.com>
3741
3742 * ada-lang.c (is_known_support_routine): Update.
3743 (ada_unhandled_exception_name_addr_from_raise): Update.
3744 * guile/scm-frame.c (gdbscm_frame_name): Update.
3745 * python/py-frame.c (frapy_name): Update.
3746 (frapy_function): Update.
3747 * stack.h (find_frame_funname): Update.
3748 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
3749 (print_frame): Update.
3750
d6b9b80f
TT
37512017-09-11 Tom Tromey <tom@tromey.com>
3752
3753 * findcmd.c (put_bits): Take a gdb::byte_vector.
3754 (parse_find_args): Return gdb::byte_vector. "args" now const.
3755 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
3756 cleanups.
3757 (find_command): Update.
3758
a9921622
TT
37592017-09-11 Tom Tromey <tom@tromey.com>
3760
3761 * cli/cli-script.c (class scoped_restore_hook_in): New.
3762 (clear_hook_in_cleanup): Remove.
3763 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
3764 scoped_restore_hook_in.
3765
be0d7abb
TT
37662017-09-11 Tom Tromey <tom@tromey.com>
3767
3768 * cli/cli-script.c (restore_interp): Remove.
3769 (read_command_lines): Use scoped_restore_interp.
3770 * interps.c (scoped_restore_interp::set_temp): Rename from
3771 interp_set_temp.
3772 * interps.h (class scoped_restore_interp): New.
3773 (interp_set_temp): Remove.
3774
00f675ff
TT
37752017-09-11 Tom Tromey <tom@tromey.com>
3776
3777 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
3778 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
3779 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
3780 scoped_restore.
3781 (mi_cmd_break_insert_1): Update.
3782 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
3783 scoped_restore.
3784
cb791d59
TT
37852017-09-11 Tom Tromey <tom@tromey.com>
3786
3787 * demangle.c (demangle_command): Update.
3788 * breakpoint.c (disable_command): Update.
3789 (enable_command): Update.
3790 (find_location_by_number): Make "number" const. Use
3791 get_number_trailer.
3792 * cli/cli-utils.c (extract_arg): Return std::string.
3793 * probe.c (parse_probe_linespec): Update. Change types.
3794 (collect_probes): Take string arguments.
3795 (parse_probe_linespec): Likewise.
3796 (info_probes_for_ops): Update.
3797 (enable_probes_command): Update.
3798 (disable_probes_command): Update.
3799 * break-catch-sig.c (catch_signal_split_args): Update.
3800 * mi/mi-parse.c (mi_parse): Update.
3801
2039bd9f
TT
38022017-09-11 Tom Tromey <tom@tromey.com>
3803
3804 * language.h (language_enum): Make argument const.
3805 * language.c (language_enum): Make argument const.
3806
f1735a53
TT
38072017-09-11 Tom Tromey <tom@tromey.com>
3808
3809 * common/common-utils.h (skip_to_space): Remove macro, redeclare
3810 as function.
3811 (skip_to_space): Rename from skip_to_space_const.
3812 * common/common-utils.c (skip_to_space): New function.
3813 (skip_to_space): Rename from skip_to_space_const.
3814 * cli/cli-utils.h (get_number): Rename from get_number_const.
3815 (extract_arg): Rename from extract_arg_const.
3816 * cli/cli-utils.c (get_number): Rename from get_number_const.
3817 (extract_arg): Rename from extract_arg_const.
3818 (number_or_range_parser::get_number): Use ::get_number.
3819 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
3820 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
3821 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
3822 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
3823 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
3824 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
3825 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
3826 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
3827
7d221d74
TT
38282017-09-11 Tom Tromey <tom@tromey.com>
3829
3830 * python/python.c (do_start_initialization): Use
3831 py-event-types.def to initialize types.
3832 Define all object type structures.
3833 * python/python-internal.h: Don't declare event initialization
3834 functions.
3835 * python/py-threadevent.c (thread_event_object_type): Don't
3836 define.
3837 * python/py-stopevent.c (stop_event_object_type): Don't define.
3838 * python/py-signalevent.c (signal_event_object_type): Don't
3839 declare or define.
3840 * python/py-newobjfileevent.c (new_objfile_event_object_type)
3841 (clear_objfiles_event_object_type): Don't declare or define.
3842 * python/py-infevents.c (inferior_call_pre_event_object_type)
3843 (inferior_call_post_event_object_type)
3844 (register_changed_event_object_type)
3845 (memory_changed_event_object_type): Don't declare or define.
3846 * python/py-inferior.c (new_thread_event_object_type)
3847 (new_inferior_event_object_type)
3848 (inferior_deleted_event_object_type): Don't declare or define.
3849 * python/py-exitedevent.c (exited_event_object_type): Don't
3850 declare or define.
3851 * python/py-evts.c (gdbpy_initialize_py_events): Use
3852 py-all-events.def.
3853 * python/py-events.h (thread_event_object_type): Don't declare.
3854 (events_object): Use py-all-events.def.
3855 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
3856 py-event-types.def.
3857 * python/py-event-types.def: New file.
3858 * python/py-continueevent.c (create_continue_event_object): Don't
3859 declare or define.
3860 * python/py-bpevent.c (breakpoint_event_object_type): Don't
3861 declare or define.
3862 * python/py-all-events.def: New file.
3863
35c61a1d
TT
38642017-09-11 Tom Tromey <tom@tromey.com>
3865
3866 * python/py-threadevent.c (create_thread_event_object): Return
3867 gdbpy_ref.
3868 * python/py-stopevent.h (create_stop_event_object)
3869 (create_breakpoint_event_object, create_signal_event_object):
3870 Update.
3871 * python/py-stopevent.c (create_stop_event_object): Return
3872 gdbpy_ref.
3873 (emit_stop_event): Update.
3874 * python/py-signalevent.c (create_signal_event_object): Return
3875 gdbpy_ref.
3876 * python/py-infevents.c (create_inferior_call_event_object):
3877 Update.
3878 * python/py-event.h (create_event_object)
3879 (create_thread_event_object): Update.
3880 * python/py-event.c (create_event_object): Return gdbpy_ref.
3881 * python/py-continueevent.c: Return gdbpy_ref.
3882 * python/py-bpevent.c (create_breakpoint_event_object): Return
3883 gdbpy_ref.
3884
7c96f8c1
TT
38852017-09-11 Tom Tromey <tom@tromey.com>
3886
3887 PR python/15622:
3888 * NEWS: Add entry.
3889 * python/python.c (do_start_initialization): Initialize new event
3890 types.
3891 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
3892 (gdbpy_initialize_inferior_deleted_event)
3893 (gdbpy_initialize_new_thread_event): Declare.
3894 * python/py-threadevent.c (create_thread_event_object): Add option
3895 "thread" parameter.
3896 * python/py-inferior.c (new_thread_event_object_type)
3897 (new_inferior_event_object_type)
3898 (inferior_deleted_event_object_type): Declare.
3899 (python_new_inferior, python_inferior_deleted): New functions.
3900 (add_thread_object): Emit new_thread event.
3901 (gdbpy_initialize_inferior): Attach new functions to corresponding
3902 observers.
3903 (new_thread, new_inferior, inferior_deleted): Define new event
3904 types.
3905 * python/py-evts.c (gdbpy_initialize_py_events): Add new
3906 registries.
3907 * python/py-events.h (events_object) <new_inferior,
3908 inferior_deleted, new_thread>: New fields.
3909 * python/py-event.h (create_thread_event_breakpoint): Add optional
3910 "thread" parameter.
3911
72542b8e
AB
39122017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
3913
3914 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
3915 check current_ui instead.
3916 (internal_vproblem): Likewise.
3917
0d64823e
SM
39182017-09-09 Simon Marchi <simon.marchi@ericsson.com>
3919
3920 * thread.c (print_thread_info_1): Remove unnecessary calls to
3921 uiout->is_mi_like_p.
3922
eb1e02fd
TT
39232017-09-09 Tom Tromey <tom@tromey.com>
3924
3925 * namespace.h (add_using_directive): Update.
3926 * namespace.c (add_using_directive): Change type of excludes to
3927 std::vector.
3928 * dwarf2read.c (read_import_statement): Use std::vector.
3929 (read_namespace): Update.
3930 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3931
0fc21fd8
TT
39322017-09-09 Tom Tromey <tom@tromey.com>
3933
3934 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
3935
49663d05
TT
39362017-09-09 Tom Tromey <tom@tromey.com>
3937
3938 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
3939
0b868b60
TT
39402017-09-09 Tom Tromey <tom@tromey.com>
3941
3942 * stack.c (func_command): Use gdb::def_vector.
3943
c0470d48
TT
39442017-09-09 Tom Tromey <tom@tromey.com>
3945
3946 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
3947 ui_out_emit_list, ui_out_emit_tuple.
3948 (mi_cmd_var_update): Likewise.
3949
ca5909c7
TT
39502017-09-09 Tom Tromey <tom@tromey.com>
3951
3952 * mi/mi-interp.c (mi_user_selected_context_changed): Use
3953 ui_out_redirect_pop.
3954 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
3955 ui_out_redirect_pop.
3956 * utils.c (do_ui_out_redirect_pop)
3957 (make_cleanup_ui_out_redirect_pop): Remove.
3958 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
3959 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
3960 * ui-out.h (ui_out_redirect_pop): New class.
3961
e6a2252a
TT
39622017-09-09 Tom Tromey <tom@tromey.com>
3963
3964 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
3965 (list_available_thread_groups, mi_cmd_list_thread_groups)
3966 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
3967 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
3968 Likewise.
3969
393702cd
TT
39702017-09-09 Tom Tromey <tom@tromey.com>
3971
3972 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
3973 ui_out_emit_tuple.
3974
76f9c9cf
TT
39752017-09-09 Tom Tromey <tom@tromey.com>
3976
3977 * target.c (flash_erase_command): Use ui_out_emit_tuple.
3978 * stack.c (print_frame): Use ui_out_emit_tuple.
3979 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
3980 (info_spu_mailbox_command, info_spu_dma_command)
3981 (info_spu_proxydma_command): Likewise.
3982 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
3983 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
3984 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
3985 ui_out_emit_tuple.
3986 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
3987
dc9fe180
TT
39882017-09-09 Tom Tromey <tom@tromey.com>
3989
3990 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
3991 (class ui_out_emit_table): Update comment.
3992 * ui-out.c (do_cleanup_table_end)
3993 (make_cleanup_ui_out_table_begin_end): Remove.
3994 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
3995 (info_spu_dma_cmdlist): Likewise.
3996 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
3997 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
3998 ui_out_emit_table.
3999
f8cc3da6
TT
40002017-09-09 Tom Tromey <tom@tromey.com>
4001
4002 * thread.c (print_thread_info_1): Use ui_out_emit_table,
4003 ui_out_emit_list, gdb::optional.
4004
481695ed
JB
40052017-09-09 John Baldwin <jhb@FreeBSD.org>
4006
4007 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
4008 prototype.
4009 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
4010 prototype.
4011 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
4012 prototype.
4013 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
4014 * ada-exp.y: Remove _initialize_ada_exp prototype.
4015 * ada-lang.c: Remove _initialize_ada_language prototype.
4016 * ada-tasks.c: Remove _initialize_tasks prototype.
4017 * addrmap.c: Remove _initialize_addrmap prototype.
4018 * agent.c: Remove _initialize_agent prototype.
4019 * aix-thread.c: Remove _initialize_aix_thread prototype.
4020 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
4021 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
4022 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
4023 prototype.
4024 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
4025 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
4026 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
4027 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
4028 prototype.
4029 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
4030 prototype.
4031 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
4032 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
4033 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
4034 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
4035 prototype.
4036 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
4037 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
4038 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
4039 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
4040 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
4041 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
4042 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
4043 prototype.
4044 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
4045 prototype.
4046 * annotate.c: Remove _initialize_annotate prototype.
4047 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
4048 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
4049 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
4050 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
4051 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
4052 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
4053 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
4054 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
4055 prototype.
4056 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
4057 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
4058 * auto-load.c: Remove _initialize_auto_load prototype.
4059 * auxv.c: Remove _initialize_auxv prototype.
4060 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
4061 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
4062 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
4063 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
4064 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
4065 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
4066 prototype.
4067 * break-catch-throw.c: Remove _initialize_break_catch_throw
4068 prototype.
4069 * breakpoint.c: Remove _initialize_breakpoint prototype.
4070 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
4071 * btrace.c: Remove _initialize_btrace prototype.
4072 * charset.c: Remove _initialize_charset prototype.
4073 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
4074 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
4075 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
4076 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
4077 * cli/cli-script.c: Remove _initialize_cli_script prototype.
4078 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
4079 * coffread.c: Remove _initialize_coffread prototype.
4080 * compile/compile.c: Remove _initialize_compile prototype.
4081 * complaints.c: Remove _initialize_complaints prototype.
4082 * completer.c: Remove _initialize_completer prototype.
4083 * copying.awk: Remove _initialize_copying prototype.
4084 * copying.c: Regenerate.
4085 * core-regset.c: Remove _initialize_core_regset prototype.
4086 * corefile.c: Remove _initialize_core prototype.
4087 * corelow.c: Remove _initialize_corelow prototype.
4088 * cp-abi.c: Remove _initialize_cp_abi prototype.
4089 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
4090 * cp-support.c: Remove _initialize_cp_support prototype.
4091 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
4092 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
4093 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
4094 * ctf.c: Remove _initialize_ctf prototype.
4095 * d-lang.c: Remove _initialize_d_language prototype.
4096 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
4097 prototype.
4098 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
4099 * dbxread.c: Remove _initialize_dbxread prototype.
4100 * dcache.c: Remove _initialize_dcache prototype.
4101 * demangle.c: Remove _initialize_demangler prototype.
4102 * disasm-selftests.c: Remove _initialize_disasm_selftests
4103 prototype.
4104 * disasm.c: Remove _initialize_disasm prototype.
4105 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
4106 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
4107 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
4108 prototype.
4109 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
4110 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
4111 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
4112 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
4113 * elfread.c: Remove _initialize_elfread prototype.
4114 * exec.c: Remove _initialize_exec prototype.
4115 * extension.c: Remove _initialize_extension prototype.
4116 * f-lang.c: Remove _initialize_f_language prototype.
4117 * f-valprint.c: Remove _initialize_f_valprint prototype.
4118 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
4119 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
4120 * filesystem.c: Remove _initialize_filesystem prototype.
4121 * findcmd.c: Remove _initialize_mem_search prototype.
4122 * fork-child.c: Remove _initialize_fork_child prototype.
4123 * frame-base.c: Remove _initialize_frame_base prototype.
4124 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
4125 * frame.c: Remove _initialize_frame prototype.
4126 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
4127 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
4128 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
4129 * gcore.c: Remove _initialize_gcore prototype.
4130 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
4131 * gdbarch.c: Regenerate.
4132 * gdbarch.sh: Remove _initialize_gdbarch prototype.
4133 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
4134 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
4135 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
4136 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
4137 * go-lang.c: Remove _initialize_go_language prototype.
4138 * go32-nat.c: Remove _initialize_go32_nat prototype.
4139 * guile/guile.c: Remove _initialize_guile prototype.
4140 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
4141 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
4142 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
4143 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
4144 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
4145 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
4146 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
4147 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
4148 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
4149 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
4150 prototype.
4151 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
4152 prototype.
4153 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
4154 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
4155 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
4156 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
4157 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
4158 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
4159 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
4160 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
4161 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
4162 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
4163 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
4164 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
4165 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
4166 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
4167 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
4168 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
4169 prototype.
4170 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
4171 prototype.
4172 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
4173 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
4174 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
4175 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
4176 * infcall.c: Remove _initialize_infcall prototype.
4177 * infcmd.c: Remove _initialize_infcmd prototype.
4178 * inferior.c: Remove _initialize_inferiors prototype.
4179 * inflow.c: Remove _initialize_inflow prototype.
4180 * infrun.c: Remove _initialize_infrun prototype.
4181 * interps.c: Remove _initialize_interpreter prototype.
4182 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
4183 * jit.c: Remove _initialize_jit prototype.
4184 * language.c: Remove _initialize_language prototype.
4185 * linux-fork.c: Remove _initialize_linux_fork prototype.
4186 * linux-nat.c: Remove _initialize_linux_nat prototype.
4187 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
4188 * linux-thread-db.c: Remove _initialize_thread_db prototype.
4189 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
4190 * m2-lang.c: Remove _initialize_m2_language prototype.
4191 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
4192 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
4193 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
4194 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
4195 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
4196 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
4197 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
4198 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
4199 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
4200 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
4201 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
4202 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
4203 * machoread.c: Remove _initialize_machoread prototype.
4204 * macrocmd.c: Remove _initialize_macrocmd prototype.
4205 * macroscope.c: Remove _initialize_macroscope prototype.
4206 * maint.c: Remove _initialize_maint_cmds prototype.
4207 * mdebugread.c: Remove _initialize_mdebugread prototype.
4208 * memattr.c: Remove _initialize_mem prototype.
4209 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
4210 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
4211 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
4212 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
4213 * mi/mi-main.c: Remove _initialize_mi_main prototype.
4214 * microblaze-linux-tdep.c: Remove
4215 _initialize_microblaze_linux_tdep prototype.
4216 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
4217 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
4218 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
4219 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
4220 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
4221 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
4222 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
4223 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
4224 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
4225 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
4226 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
4227 prototype.
4228 * mipsread.c: Remove _initialize_mipsread prototype.
4229 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
4230 prototype.
4231 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
4232 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
4233 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
4234 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
4235 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
4236 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
4237 prototype.
4238 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
4239 * nto-procfs.c: Remove _initialize_procfs prototype.
4240 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
4241 * objc-lang.c: Remove _initialize_objc_language prototype.
4242 * objfiles.c: Remove _initialize_objfiles prototype.
4243 * observer.c: Remove observer_test_first_notification_function,
4244 observer_test_second_notification_function,
4245 observer_test_third_notification_function, and
4246 _initialize_observer prototypes.
4247 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
4248 * osabi.c: Remove _initialize_gdb_osabi prototype.
4249 * osdata.c: Remove _initialize_osdata prototype.
4250 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
4251 * parse.c: Remove _initialize_parse prototype.
4252 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
4253 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
4254 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
4255 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
4256 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
4257 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
4258 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
4259 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
4260 * printcmd.c: Remove _initialize_printcmd prototype.
4261 * probe.c: Remove _initialize_probe prototype.
4262 * proc-api.c: Remove _initialize_proc_api prototype.
4263 * proc-events.c: Remove _initialize_proc_events prototype.
4264 * proc-service.c: Remove _initialize_proc_service prototype.
4265 * procfs.c: Remove _initialize_procfs prototype.
4266 * psymtab.c: Remove _initialize_psymtab prototype.
4267 * python/python.c: Remove _initialize_python prototype.
4268 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
4269 * record-btrace.c: Remove _initialize_record_btrace prototype.
4270 * record-full.c: Remove _initialize_record_full prototype.
4271 * record.c: Remove _initialize_record prototype.
4272 * regcache.c: Remove _initialize_regcache prototype.
4273 * reggroups.c: Remove _initialize_reggroup prototype.
4274 * remote-notif.c: Remove _initialize_notif prototype.
4275 * remote-sim.c: Remove _initialize_remote_sim prototype.
4276 * remote.c: Remove _initialize_remote prototype.
4277 * reverse.c: Remove _initialize_reverse prototype.
4278 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
4279 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
4280 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
4281 prototype.
4282 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
4283 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
4284 * rust-exp.y: Remove _initialize_rust_exp prototype.
4285 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
4286 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
4287 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
4288 * score-tdep.c: Remove _initialize_score_tdep prototype.
4289 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
4290 prototype.
4291 * ser-go32.c: Remove _initialize_ser_dos prototype.
4292 * ser-mingw.c: Remove _initialize_ser_windows prototype.
4293 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
4294 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
4295 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
4296 * serial.c: Remove _initialize_serial prototype.
4297 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
4298 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
4299 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
4300 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
4301 * skip.c: Remove _initialize_step_skip prototype.
4302 * sol-thread.c: Remove _initialize_sol_thread prototype.
4303 * solib-aix.c: Remove _initialize_solib_aix prototype.
4304 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
4305 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
4306 * solib-frv.c: Remove _initialize_frv_solib prototype.
4307 * solib-spu.c: Remove _initialize_spu_solib prototype.
4308 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
4309 * solib-target.c: Remove _initialize_solib_target prototype.
4310 * solib.c: Remove _initialize_solib prototype.
4311 * source.c: Remove _initialize_source prototype.
4312 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
4313 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
4314 prototype.
4315 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
4316 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
4317 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
4318 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
4319 prototype.
4320 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
4321 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
4322 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
4323 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
4324 prototype.
4325 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
4326 prototype.
4327 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
4328 prototype.
4329 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
4330 prototype.
4331 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
4332 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
4333 prototype.
4334 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
4335 prototype.
4336 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
4337 prototype.
4338 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
4339 prototype.
4340 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
4341 prototype.
4342 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
4343 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
4344 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
4345 * stabsread.c: Remove _initialize_stabsread prototype.
4346 * stack.c: Remove _initialize_stack prototype.
4347 * stap-probe.c: Remove _initialize_stap_probe prototype.
4348 * std-regs.c: Remove _initialize_frame_reg prototype.
4349 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
4350 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
4351 * symfile.c: Remove _initialize_symfile prototype.
4352 * symmisc.c: Remove _initialize_symmisc prototype.
4353 * symtab.c: Remove _initialize_symtab prototype.
4354 * target-dcache.c: Remove _initialize_target_dcache prototype.
4355 * target-descriptions.c: Remove _initialize_target_descriptions
4356 prototype.
4357 * thread.c: Remove _initialize_thread prototype.
4358 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
4359 prototype.
4360 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
4361 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
4362 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
4363 prototype.
4364 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
4365 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
4366 * tracefile.c: Remove _initialize_tracefile prototype.
4367 * tracepoint.c: Remove _initialize_tracepoint prototype.
4368 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
4369 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
4370 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
4371 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
4372 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
4373 * tui/tui-win.c: Remove _initialize_tui_win prototype.
4374 * tui/tui.c: Remove _initialize_tui prototype.
4375 * typeprint.c: Remove _initialize_typeprint prototype.
4376 * user-regs.c: Remove _initialize_user_regs prototype.
4377 * utils.c: Remove _initialize_utils prototype.
4378 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
4379 * valarith.c: Remove _initialize_valarith prototype.
4380 * valops.c: Remove _initialize_valops prototype.
4381 * valprint.c: Remove _initialize_valprint prototype.
4382 * value.c: Remove _initialize_values prototype.
4383 * varobj.c: Remove _initialize_varobj prototype.
4384 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
4385 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
4386 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
4387 * windows-nat.c: Remove _initialize_windows_nat,
4388 _initialize_check_for_gdb_ini, and _initialize_loadable
4389 prototypes.
4390 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
4391 * xcoffread.c: Remove _initialize_xcoffread prototype.
4392 * xml-support.c: Remove _initialize_xml_support prototype.
4393 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
4394 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
4395 prototype.
4396 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
4397 prototype.
4398 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
4399
a611b5cb
KS
44002017-09-08 Keith Seitz <keiths@redhat.com>
4401
4402 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
4403 field.
4404
469412dd
CW
44052017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
4406
4407 * f-valprint.c (f_val_print): Remove check for one byte
4408 sized integers. Remove printing of character type.
4409
a5ad232b
FP
44102017-09-08 Frank Penczek <frank.penczek@intel.com>
4411 Christoph Weinmann <christoph.t.weinmann@intel.com>
4412 Bernhard Heckel <bernhard.heckel@intel.com>
4413
4414 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
4415 to maintain proper indentation when printing pointers/refs.
4416
e5014227
JB
44172017-09-07 Joel Brobecker <brobecker@adacore.com>
4418
4419 GDB 8.0.1 released.
4420
63c99141
JB
44212017-09-07 Joel Brobecker <brobecker@adacore.com>
4422
4423 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
4424
69c1e056
TT
44252017-09-05 Tom Tromey <tom@tromey.com>
4426
4427 * parse.c (funcall_chain): Now a std::vector.
4428 (start_arglist, end_arglist): Simplify.
4429 (free_funcalls): Remove.
4430 (parse_exp_in_context_1): Remove cleanup.
4431
fef704bf
TT
44322017-09-05 Tom Tromey <tom@tromey.com>
4433
4434 * go-exp.y (go_parse): Don't create a cleanup.
4435
5613c585
TT
44362017-09-05 Tom Tromey <tom@tromey.com>
4437
4438 * d-exp.y (PrimaryExpression): Use std::string.
4439 (d_parse): Don't create a cleanup.
4440
eae49211
TT
44412017-09-05 Tom Tromey <tom@tromey.com>
4442
4443 * utils.c (do_clear_parser_state): Remove.
4444 (make_cleanup_clear_parser_state): Remove.
4445 * p-exp.y (pascal_parse): Use scoped_restore.
4446 * m2-exp.y (m2_parse): Use scoped_restore.
4447 * f-exp.y (f_parse): Use scoped_restore.
4448 * d-exp.y (d_parse): Use scoped_restore.
4449 * c-exp.y (c_parse): Use scoped_restore.
4450 * ada-exp.y (ada_parse): Use scoped_restore.
4451 * utils.h (make_cleanup_clear_parser_state): Remove.
4452
73b9be8b
KS
44532017-09-06 Keith Seitz <keiths@redhat.com>
4454
4455 * dwarf2read.c (dw2_linkage_name_attr): New function.
4456 (dw2_linkage_name): New function.
4457 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
4458 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
4459 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
4460
a102602b
KR
44612017-09-06 Kamil Rytarowski <n54@gmx.com>
4462
4463 * config/djgpp/djconfig.sh: Correct shell portability issue.
4464
28ad437d
KR
44652017-09-06 Kamil Rytarowski <n54@gmx.com>
4466
4467 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
4468
351787dd
JB
44692017-09-06 John Baldwin <jhb@FreeBSD.org>
4470
4471 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
4472 * NEWS: Mention new FreeBSD/mips native configuration.
4473 * configure.host: Add aarch64*-*-freebsd*.
4474 * configure.nat: Likewise.
4475 * aarch64-fbsd-nat.c: New file.
4476
c0f84956
JB
44772017-09-06 John Baldwin <jhb@FreeBSD.org>
4478
4479 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
4480 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
4481 * NEWS: Mention new FreeBSD/aarch64 target.
4482 * configure.tgt: Add aarch64*-*-freebsd*.
4483 * aarch64-fbsd-tdep.c: New file.
4484 * aarch64-fbsd-tdep.h: New file.
4485
7610297a
KR
44862017-09-06 Kamil Rytarowski <n54@gmx.com>
4487
4488 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
4489
fbd1b771
JK
44902017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4491
4492 * parse.c (find_minsym_type_and_address): Don't relocate addresses
4493 of TLS symbols.
4494
5ca79eae
PW
44952017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4496
4497 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
4498 call.
4499
bf93d7ba
SM
45002017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4501
4502 * infrun.c (follow_exec): Call add_thread after
4503 target_find_description.
4504
1bb7c059
SM
45052017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4506
4507 * infrun.c (handle_inferior_event_1): When exec'ing, read
4508 stop_pc after follow_exec.
4509
fc809827
SM
45102017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4511
4512 * remote.c (process_g_packet): Update error message.
4513
d2fcdd85
YQ
45142017-09-05 Yao Qi <yao.qi@linaro.org>
4515
4516 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
4517 targets.
4518
e69570ee
PA
45192017-09-05 Pedro Alves <palves@redhat.com>
4520
4521 * eval.c (eval_call, evaluate_funcall): New functions, factored
4522 out from ...
4523 (evaluate_subexp_standard): ... this.
4524
22916b07
YQ
45252017-09-05 Yao Qi <yao.qi@linaro.org>
4526
4527 * amd64-tdep.c (amd64_target_description): Create target
4528 descriptions.
4529 (_initialize_amd64_tdep): Don't call functions
4530 initialize_tdesc_amd64_*. Add self tests.
4531 * arch/amd64.c (amd64_create_target_description): Add parameter
4532 is_linux. Call set_tdesc_osabi if is_linux is true.
4533 * arch/amd64.h (amd64_create_target_description): Update the
4534 declaration.
4535 * arch/i386.c (i386_create_target_description): Add parameter
4536 is_linux. Call set_tdesc_osabi if is_linux is true.
4537 * arch/i386.h (i386_create_target_description): Update
4538 declaration.
4539 * configure.tgt: Add i386.o to gdb_target_obs.
4540 * features/Makefile (XMLTOC): Remove i386/*.xml.
4541 * features/i386/amd64-avx-avx512.c: Remove.
4542 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
4543 * features/i386/amd64-avx-mpx.c: Remove.
4544 * features/i386/amd64-avx.c: Remove.
4545 * features/i386/amd64-mpx.c: Remove.
4546 * features/i386/amd64.c: Remove.
4547 * features/i386/i386-avx-avx512.c: Remove.
4548 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
4549 * features/i386/i386-avx-mpx.c: Remove.
4550 * features/i386/i386-avx.c: Remove.
4551 * features/i386/i386-mmx.c: Remove.
4552 * features/i386/i386-mpx.c: Remove.
4553 * features/i386/i386.c: Remove.
4554 * i386-tdep.c: Don't include features/i386/i386*.c., include
4555 target-descriptions.h and arch/i386.h.
4556 (i386_target_description): Create target descriptions.
4557 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
4558 functions. Do self tests.
4559
0854b7b1
YQ
45602017-09-05 Yao Qi <yao.qi@linaro.org>
4561
4562 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
4563 * features/i386/amd64-avx-avx512-linux.c: Removed.
4564 * features/i386/amd64-avx-linux.c: Removed.
4565 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
4566 * features/i386/amd64-avx-mpx-linux.c: Removed.
4567 * features/i386/amd64-linux.c: Removed.
4568 * features/i386/amd64-mpx-linux.c: Removed.
4569 * features/i386/x32-avx-avx512-linux.c: Removed.
4570 * features/i386/x32-avx-linux.c: Removed.
4571 * features/i386/x32-linux.c: Removed.
4572
b4570e4b
YQ
45732017-09-05 Yao Qi <yao.qi@linaro.org>
4574
4575 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
4576 features/i386/*.c.
4577 (amd64_linux_read_description): Call
4578 amd64_create_target_description.
4579 * arch/amd64.c: New file.
4580 * arch/amd64.h: New file.
4581 * configure.tgt (x86_64-*-linux*): Append amd64.o.
4582 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
4583
6c73f67f
YQ
45842017-09-05 Yao Qi <yao.qi@linaro.org>
4585
4586 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
4587 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
4588 (amd64_linux_read_description): Create target descriptions.
4589 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
4590 functions. Add unit tests.
4591 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
4592 x32-core.xml.
4593 * features/i386/64bit-avx.c: Generated.
4594 * features/i386/64bit-avx512.c: Generated.
4595 * features/i386/64bit-core.c: Generated.
4596 * features/i386/64bit-linux.c: Generated.
4597 * features/i386/64bit-mpx.c: Generated.
4598 * features/i386/64bit-pkeys.c: Generated.
4599 * features/i386/64bit-segments.c: Generated.
4600 * features/i386/64bit-sse.c: Generated.
4601 * features/i386/x32-core.c: Generated.
4602 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
4603 c files for amd64-linux and x32-linux.
4604
9d3d478b
YQ
46052017-09-05 Yao Qi <yao.qi@linaro.org>
4606
4607 * amd64-linux-tdep.c (amd64_linux_read_description): New
4608 function.
4609 (amd64_linux_core_read_description): Call
4610 amd64_linux_read_description.
4611 (amd64_linux_init_abi): Likewise.
4612 (amd64_x32_linux_init_abi): Likewise.
4613 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
4614 * x86-linux-nat.c (x86_linux_read_description): Call
4615 amd64_linux_read_description.
4616
b9f1d50f
YQ
46172017-09-05 Yao Qi <yao.qi@linaro.org>
4618
4619 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
4620 comments.
4621
188c9e6d
YQ
46222017-09-05 Yao Qi <yao.qi@linaro.org>
4623
4624 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
4625 * features/i386/i386-avx-avx512-linux.c: Remove.
4626 * features/i386/i386-avx-linux.c: Remove.
4627 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
4628 * features/i386/i386-avx-mpx-linux.c: Remove.
4629 * features/i386/i386-linux.c: Remove.
4630 * features/i386/i386-mmx-linux.c: Remove.
4631 * features/i386/i386-mpx-linux.c: Remove.
4632
5f035c07
YQ
46332017-09-05 Yao Qi <yao.qi@linaro.org>
4634
4635 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
4636 (SFILES): Add arch/i386.c.
4637 (HFILES_NO_SRCDIR): Add arch/i386.h.
4638 * arch/i386.c: New file.
4639 * arch/i386.h: New file.
4640 * arch/tdesc.h (allocate_target_description): Declare.
4641 (set_tdesc_architecture): Declare.
4642 (set_tdesc_osabi): Declare.
4643 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
4644 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
4645 include arch/i386.h.
4646 (i386_linux_read_description): Remove code and call
4647 i386_create_target_description.
4648 (set_tdesc_architecture): New function.
4649 (set_tdesc_osabi): New function.
4650 * target-descriptions.h (allocate_target_description): Remove.
4651
0abe8a89
YQ
46522017-09-05 Yao Qi <yao.qi@linaro.org>
4653
4654 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
4655 * target-descriptions.c (tdesc_create_feature): Likewise, and
4656 adjust code.
4657 * features/i386/32bit-avx.c: Re-generated.
4658 * features/i386/32bit-avx512.c: Re-generated.
4659 * features/i386/32bit-core.c: Re-generated.
4660 * features/i386/32bit-linux.c: Re-generated.
4661 * features/i386/32bit-mpx.c: Re-generated.
4662 * features/i386/32bit-pkeys.c: Re-generated.
4663 * features/i386/32bit-sse.c: Re-generated.
4664
0a188386
YQ
46652017-09-05 Yao Qi <yao.qi@linaro.org>
4666
4667 * regformats/regdef.h (struct reg): Override operator == and !=.
4668
f49ff000
YQ
46692017-09-05 Yao Qi <yao.qi@linaro.org>
4670
4671 * arch/tdesc.h: New file.
4672 * regformats/regdat.sh: Generate code using tdesc_create_reg.
4673 * target-descriptions.c: Update comments.
4674 * target-descriptions.h: Include "arch/tdesc.h". Remove the
4675 declarations.
4676 * features/i386/32bit-avx.c: Re-generated.
4677 * features/i386/32bit-avx512.c: Re-generated.
4678 * features/i386/32bit-core.c: Re-generated.
4679 * features/i386/32bit-linux.c: Re-generated.
4680 * features/i386/32bit-mpx.c: Re-generated.
4681 * features/i386/32bit-pkeys.c: Re-generated.
4682 * features/i386/32bit-sse.c: Re-generated.
4683
f7000548
YQ
46842017-09-05 Yao Qi <yao.qi@linaro.org>
4685
4686 * regformats/regdat.sh: Update generated code.
4687
c9a5e2a5
YQ
46882017-09-05 Yao Qi <yao.qi@linaro.org>
4689
4690 * regformats/regdat.sh: Adjust code order.
4691
d6b687ac
SM
46922017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4693
4694 * expprint.c (dump_subexp_body_standard): Use constant format
4695 string in fprintf_filtered call.
4696
a379bfd0
JB
46972017-09-04 John Baldwin <jhb@FreeBSD.org>
4698
4699 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
4700 NetBSD/i386.
4701 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
4702
f7efc967
JB
47032017-09-04 John Baldwin <jhb@FreeBSD.org>
4704
4705 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
4706
c49fbc6c
JB
47072017-09-04 John Baldwin <jhb@FreeBSD.org>
4708
4709 * bsd-kvm.o: Define _KMEMUSER.
4710 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
4711 * configure: Regenerate.
4712
26562e73
JB
47132017-09-04 John Baldwin <jhb@FreeBSD.org>
4714
4715 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
4716 * i386-fbsd-nat.c: Likewise.
4717
31cf1487
JB
47182017-09-04 John Baldwin <jhb@FreeBSD.org>
4719
4720 * unittests/array-view-selftests.c: Add include of <array>.
4721
5b9f8a7c
JB
47222017-09-04 John Baldwin <jhb@FreeBSD.org>
4723
4724 * spu-tdep.c (flush_ea_cache): Add missing argument to
4725 call_function_by_hand.
4726
d69cf9b2
PA
47272017-09-04 Pedro Alves <palves@redhat.com>
4728
4729 * NEWS (Safer support for debugging with no debug info): New.
4730
3693fdb3
PA
47312017-09-04 Pedro Alves <palves@redhat.com>
4732
4733 * c-exp.y (function_method, function_method_void): Add current
4734 instance flags to TYPE_INSTANCE.
4735 * dwarf2read.c (check_modifier): New.
4736 (compute_delayed_physnames): Assert that only C++ adds delayed
4737 physnames. Mark fn_fields as const/volatile depending on
4738 physname.
4739 * eval.c (make_params): New type_instance_flags parameter. Use
4740 it as the new type's instance flags.
4741 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
4742 flags element and pass it to make_params.
4743 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
4744 instance flags element.
4745 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
4746 * gdbtypes.h: Include "enum-flags.h".
4747 (type_instance_flags): New enum-flags type.
4748 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
4749 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
4750 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
4751 (follow_type_instance_flags): New function.
4752 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
4753 * parser-defs.h (follow_type_instance_flags): Declare.
4754 * valops.c (value_struct_elt_for_reference): const/volatile must
4755 match too.
4756
e68cb8e0
PA
47572017-09-04 Pedro Alves <palves@redhat.com>
4758
4759 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
4760 function/method scopes; lookup the nested name as a function local
4761 static variable.
4762
858be34c
PA
47632017-09-04 Pedro Alves <palves@redhat.com>
4764
4765 (%type <voidval>): Add function_method.
4766 * c-exp.y (exp): New production for calls with no arguments.
4767 (function_method, function_method_void_or_typelist): New
4768 productions.
4769 (exp): New production for "method()::static_var".
4770 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
4771 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4772 Handle OP_FUNC_STATIC_VAR.
4773 * parse.c (operator_length_standard):
4774 Handle OP_FUNC_STATIC_VAR.
4775
dd5901a6
PA
47762017-09-04 Pedro Alves <palves@redhat.com>
4777
4778 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
4779 handling.
4780 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4781 Ditto.
4782 * parse.c (operator_length_standard, operator_check_standard):
4783 Ditto.
4784 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
4785
46a4882b
PA
47862017-09-04 Pedro Alves <palves@redhat.com>
4787
4788 * ax-gdb.c: Include "typeprint.h".
4789 (gen_expr_for_cast): New function.
4790 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
4791 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
4792 type is unknown.
4793 * dwarf2read.c (new_symbol_full): Fallback to int instead of
4794 nodebug_data_symbol.
4795 * eval.c: Include "typeprint.h".
4796 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
4797 Error out if symbol has unknown type.
4798 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
4799 evaluate_subexp_for_cast.
4800 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
4801 OP_VAR_MSYM_VALUE.
4802 (evaluate_subexp_for_cast): New function.
4803 * gdbtypes.c (init_nodebug_var_type): New function.
4804 (objfile_type): Use it to initialize types of variables with no
4805 debug info.
4806 * typeprint.c (error_unknown_type): New.
4807 * typeprint.h (error_unknown_type): New declaration.
4808 * compile/compile-c-types.c (convert_type_basic): Handle
4809 TYPE_CODE_ERROR; warn and fallback to int for variables with
4810 unknown type.
4811
fe13dfec
PA
48122017-09-04 Pedro Alves <palves@redhat.com>
4813
4814 * eval.c (evaluate_var_value): New function, factored out from ...
4815 (evaluate_subexp_standard): ... here.
4816
d008ee21
PA
48172017-09-04 Pedro Alves <palves@redhat.com>
4818
4819 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
4820 Remove useless assignments to 'op'.
4821
827d0c51
PA
48222017-09-04 Pedro Alves <palves@redhat.com>
4823
4824 * eval.c (eval_skip_value): New function.
4825 (evaluate_subexp_standard): Use it.
4826
2c5a2be1
PA
48272017-09-04 Pedro Alves <palves@redhat.com>
4828
4829 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
4830 function name from symbol/minsym and pass it to
4831 error_call_unknown_return_type.
4832
74ea4be4
PA
48332017-09-04 Pedro Alves <palves@redhat.com>
4834
4835 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
4836 * ax-gdb.c (gen_msym_var_ref): New function.
4837 (gen_expr): Handle OP_VAR_MSYM_VALUE.
4838 * eval.c (evaluate_var_msym_value): New function.
4839 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
4840 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
4841 to call_function_by_hand.
4842 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4843 Handle OP_VAR_MSYM_VALUE.
4844 (union exp_element) <msymbol>: New field.
4845 * minsyms.h (struct type): Forward declare.
4846 (find_minsym_type_and_address): Declare.
4847 * parse.c (write_exp_elt_msym): New function.
4848 (write_exp_msymbol): Delete, refactored as ...
4849 (find_minsym_type_and_address): ... this new function.
4850 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
4851 (operator_length_standard, operator_check_standard): Handle
4852 OP_VAR_MSYM_VALUE.
4853 * std-operator.def (OP_VAR_MSYM_VALUE): New.
4854
7022349d
PA
48552017-09-04 Pedro Alves <palves@redhat.com>
4856
4857 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
4858 TYPE_GNU_IFUNC specially here. Throw error if return type is
4859 unknown.
4860 * ada-typeprint.c (print_func_type): Handle functions with unknown
4861 return type.
4862 * c-typeprint.c (c_type_print_base): Handle functions and methods
4863 with unknown return type.
4864 * compile/compile-c-symbols.c (convert_symbol_bmsym)
4865 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
4866 * compile/compile-c-types.c: Include "objfiles.h".
4867 (convert_func): For functions with unknown return type, warn and
4868 default to int.
4869 * compile/compile-object-run.c (compile_object_run): Adjust call
4870 to call_function_by_hand_dummy.
4871 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
4872 call_function_by_hand.
4873 * eval.c (evaluate_subexp_standard): Adjust calls to
4874 call_function_by_hand. Handle functions and methods with unknown
4875 return type. Pass expect_type to call_function_by_hand.
4876 * f-typeprint.c (f_type_print_base): Handle functions with unknown
4877 return type.
4878 * gcore.c (call_target_sbrk): Adjust call to
4879 call_function_by_hand.
4880 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
4881 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
4882 an integer address type instead of nodebug.
4883 * guile/scm-value.c (gdbscm_value_call): Adjust call to
4884 call_function_by_hand.
4885 * infcall.c (error_call_unknown_return_type): New function.
4886 (call_function_by_hand): New "default_return_type" parameter.
4887 Pass it down.
4888 (call_function_by_hand_dummy): New "default_return_type"
4889 parameter. Use it instead of defaulting to int. If there's no
4890 default and the return type is unknown, throw an error. If
4891 there's a default return type, and the called function has no
4892 debug info, then assume the function is prototyped.
4893 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
4894 New "default_return_type" parameter.
4895 (error_call_unknown_return_type): New declaration.
4896 * linux-fork.c (call_lseek): Cast return type of lseek.
4897 (inferior_call_waitpid, checkpoint_command): Adjust calls to
4898 call_function_by_hand.
4899 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
4900 calls to call_function_by_hand.
4901 * m2-typeprint.c (m2_procedure): Handle functions with unknown
4902 return type.
4903 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4904 (value_nsstring, print_object_command): Adjust calls to
4905 call_function_by_hand.
4906 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
4907 functions with unknown return type.
4908 (pascal_type_print_func_varspec_suffix): New function.
4909 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
4910 TYPE_CODE_METHOD>: Use it.
4911 * python/py-value.c (valpy_call): Adjust call to
4912 call_function_by_hand.
4913 * rust-lang.c (rust_evaluate_funcall): Adjust call to
4914 call_function_by_hand.
4915 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
4916 call_function_by_hand.
4917 * valops.c (value_allocate_space_in_inferior): Adjust call to
4918 call_function_by_hand.
4919 * typeprint.c (type_print_unknown_return_type): New function.
4920 * typeprint.h (type_print_unknown_return_type): New declaration.
4921
54990598
PA
49222017-09-04 Pedro Alves <palves@redhat.com>
4923
4924 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
4925 types with more than one parameter as prototyped.
4926
9a24775b
PA
49272017-09-04 Pedro Alves <palves@redhat.com>
4928
4929 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
4930 (disassemble_command): Use gdb_disassembly_flags instead of bare
4931 int.
4932 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
4933 (dump_insns, do_mixed_source_and_assembly_deprecated)
4934 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
4935 Use gdb_disassembly_flags instead of bare int.
4936 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
4937 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
4938 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
4939 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
4940 (enum gdb_disassembly_flag): ... values of this new enumeration.
4941 (gdb_disassembly_flags): Define.
4942 (gdb_disassembly)
4943 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
4944 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
4945 gdb_disassembly_flags instead of bare int.
4946 * record-btrace.c (btrace_insn_history)
4947 (record_btrace_insn_history, record_btrace_insn_history_range)
4948 (record_btrace_insn_history_from): Use gdb_disassembly_flags
4949 instead of bare int.
4950 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
4951 Use gdb_disassembly_flags instead of bare int.
4952 * target-debug.h (target_debug_print_gdb_disassembly_flags):
4953 Define.
4954 * target-delegates.c: Regenerate.
4955 * target.c (target_insn_history, target_insn_history_from)
4956 (target_insn_history_range): Use gdb_disassembly_flags instead of
4957 bare int.
4958 * target.h: Include "disasm.h".
4959 (struct target_ops) <to_insn_history, to_insn_history_from,
4960 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
4961 int.
4962 (target_insn_history, target_insn_history_from)
4963 (target_insn_history_range): Use gdb_disassembly_flags instead of
4964 bare int.
4965
80a65e9b
SM
49662017-09-04 Simon Marchi <simon.marchi@ericsson.com>
4967
4968 * cli/cli-script.c (build_command_line): For if/while commands,
4969 check whether args is empty.
4970
6b66338c
SM
49712017-09-04 Simon Marchi <simon.marchi@ericsson.com>
4972
4973 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
4974 (enum command_control_type): Likewise.
4975 (struct command_line): Likewise.
4976 (free_command_lines): Likewise.
4977 (struct command_lines_deleter): Likewise.
4978 (command_line_up): Likewise.
4979 (read_command_lines): Likewise.
4980 (read_command_lines_1): Likewise.
4981 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
4982 (enum command_control_type): Likewise.
4983 (struct command_line): Likewise.
4984 (free_command_lines): Likewise.
4985 (struct command_lines_deleter): Likewise.
4986 (command_line_up): Likewise.
4987 (read_command_lines): Likewise.
4988 (read_command_lines_1): Likewise.
4989 * breakpoint.h: Include cli/cli-script.h.
4990 * extension-priv.h: Likewise.
4991 * gdbcmd.h: Likewise.
4992
51abb421
PA
49932017-09-04 Pedro Alves <palves@redhat.com>
4994
4995 * ada-lang.c (is_known_support_routine): Move sal declaration to
4996 where it is initialized.
4997 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
4998 (parse_breakpoint_sals, decode_static_tracepoint_spec)
4999 (clear_command, update_static_tracepoint): Remove init_sal
5000 references. Move declarations closer to initializations.
5001 * cli/cli-cmds.c (list_command): Move sal declarations closer to
5002 initializations.
5003 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
5004 references. Move sal declarations closer to initializations.
5005 * frame.c (find_frame_sal): Return a symtab_and_line via function
5006 return instead of output parameter. Remove init_sal references.
5007 * frame.h (find_frame_sal): Return a symtab_and_line via function
5008 return instead of output parameter.
5009 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
5010 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
5011 instead of memset.
5012 (gdbscm_find_pc_line): Remove init_sal reference.
5013 * infcall.c (call_function_by_hand_dummy): Remove init_sal
5014 references. Move declarations closer to initializations.
5015 * infcmd.c (set_step_frame): Update. Move declarations closer to
5016 initializations.
5017 (finish_backward): Remove init_sal references. Move declarations
5018 closer to initializations.
5019 * infrun.c (process_event_stop_test, handle_step_into_function)
5020 (insert_hp_step_resume_breakpoint_at_frame)
5021 (insert_step_resume_breakpoint_at_caller): Likewise.
5022 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
5023 (symbol_to_sal): Likewise.
5024 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
5025 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
5026 to its initialization.
5027 * reverse.c (save_bookmark_command): Use new/delete. Remove
5028 init_sal references. Move declarations closer to initializations.
5029 * source.c (get_current_source_symtab_and_line): Remove brace
5030 initialization.
5031 (set_current_source_symtab_and_line): Now takes the sal by const
5032 reference. Remove brace initialization.
5033 (line_info): Remove init_sal reference.
5034 * source.h (set_current_source_symtab_and_line): Now takes a
5035 symtab_and_line via const reference.
5036 * stack.c (set_current_sal_from_frame): Adjust.
5037 (print_frame_info): Adjust.
5038 (get_last_displayed_sal): Return the sal via function return
5039 instead of via output parameter. Simplify.
5040 (frame_info): Adjust.
5041 * stack.h (get_last_displayed_sal): Return the sal via function
5042 return instead of via output parameter.
5043 * symtab.c (init_sal): Delete.
5044 (find_pc_sect_line): Remove init_sal references. Move
5045 declarations closer to initializations.
5046 (find_function_start_sal): Remove init_sal references. Move
5047 declarations closer to initializations.
5048 * symtab.h (struct symtab_and_line): In-class initialize all
5049 fields.
5050 * tracepoint.c (set_traceframe_context)
5051 (print_one_static_tracepoint_marker): Remove init_sal references.
5052 Move declarations closer to initializations.
5053 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
5054 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
5055 declarations closer to initializations.
5056 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
5057 init_sal references. Adjust.
5058
6c5b2ebe
PA
50592017-09-04 Pedro Alves <palves@redhat.com>
5060
5061 * ax-gdb.c (agent_command_1): Use range-for.
5062 * break-catch-throw.c (re_set_exception_catchpoint): Update.
5063 * breakpoint.c: Include "common/array-view.h".
5064 (init_breakpoint_sal, create_breakpoint_sal): Change sals
5065 parameter from struct symtabs_and_lines to
5066 array_view<symtab_and_line>. Adjust. Use range-for. Update.
5067 (breakpoint_sals_to_pc): Change sals parameter from struct
5068 symtabs_and_lines to std::vector reference.
5069 (check_fast_tracepoint_sals): Change sals parameter from struct
5070 symtabs_and_lines to std::array_view. Use range-for.
5071 (decode_static_tracepoint_spec): Return a std::vector instead of
5072 symtabs_and_lines. Update.
5073 (create_breakpoint): Update.
5074 (break_range_command, until_break_command, clear_command): Update.
5075 (base_breakpoint_decode_location, bkpt_decode_location)
5076 (bkpt_probe_create_sals_from_location)
5077 (bkpt_probe_decode_location, tracepoint_decode_location)
5078 (tracepoint_probe_decode_location)
5079 (strace_marker_create_sals_from_location): Return a std::vector
5080 instead of symtabs_and_lines.
5081 (strace_marker_create_breakpoints_sal): Update.
5082 (strace_marker_decode_location): Return a std::vector instead of
5083 symtabs_and_lines. Update.
5084 (update_breakpoint_locations): Change struct symtabs_and_lines
5085 parameters to gdb::array_view. Adjust.
5086 (location_to_sals): Return a std::vector instead of
5087 symtabs_and_lines. Update.
5088 (breakpoint_re_set_default): Use std::vector instead of struct
5089 symtabs_and_lines.
5090 (decode_location_default): Return a std::vector instead of
5091 symtabs_and_lines. Update.
5092 * breakpoint.h: Include "common/array-view.h".
5093 (struct breakpoint_ops) <decode_location>: Now returns a
5094 std::vector instead of returning a symtabs_and_lines via output
5095 parameter.
5096 (update_breakpoint_locations): Change sals parameters to use
5097 gdb::array_view.
5098 * cli/cli-cmds.c (edit_command, list_command): Update to use
5099 std::vector and gdb::array_view.
5100 (ambiguous_line_spec): Adjust to use gdb::array_view and
5101 range-for.
5102 (compare_symtabs): Rename to ...
5103 (cmp_symtabs): ... this. Change parameters to symtab_and_line
5104 const reference and adjust.
5105 (filter_sals): Rewrite using std::vector and standard algorithms.
5106 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
5107 (jump_command): Update to use std::vector.
5108 * linespec.c (struct linespec_state) <canonical_names>: Update
5109 comment.
5110 (add_sal_to_sals_basic): Delete.
5111 (add_sal_to_sals, filter_results, convert_results_to_lsals)
5112 (decode_line_2, create_sals_line_offset)
5113 (convert_address_location_to_sals, convert_linespec_to_sals)
5114 (convert_explicit_location_to_sals, parse_linespec)
5115 (event_location_to_sals, decode_line_full, decode_line_1)
5116 (decode_line_with_current_source)
5117 (decode_line_with_last_displayed, decode_objc)
5118 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
5119 (linespec_result::~linespec_result): Adjust to use std::vector
5120 instead of symtabs_and_lines.
5121 * linespec.h (linespec_sals::sals): Now a std::vector.
5122 (struct linespec_result): Use std::vector, bool, and in-class
5123 initialization.
5124 (decode_line_1, decode_line_with_current_source)
5125 (decode_line_with_last_displayed): Return std::vector.
5126 * macrocmd.c (info_macros_command): Use std::vector.
5127 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
5128 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
5129 std::vector.
5130 * probe.h (parse_probes): Return a std::vector.
5131 * python/python.c (gdbpy_decode_line): Use std::vector and
5132 gdb::array_view.
5133 * source.c (select_source_symtab, line_info): Use std::vector.
5134 * stack.c (func_command): Use std::vector.
5135 * symtab.h (struct symtabs_and_lines): Delete.
5136 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
5137
7c44b49c
PA
51382017-09-04 Pedro Alves <palves@redhat.com>
5139
5140 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5141 unittests/array-view-selftests.c.
5142 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
5143 * common/array-view.h: New file.
5144 * unittests/array-view-selftests.c: New file.
5145
e439fa14
PA
51462017-09-04 Pedro Alves <palves@redhat.com>
5147
5148 * cli/cli-cmds.c (edit_command): Pass message to
5149 ambiguous_line_spec.
5150 (list_command): Pass message to ambiguous_line_spec. Say
5151 "first"/"last" instead of "start" and "end" to be consistent with
5152 the manual.
5153 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
5154 them to print formatted message.
5155
7525b645
PA
51562017-09-04 Pedro Alves <palves@redhat.com>
5157
5158 * btrace.c (ftrace_add_pt): Pass btrace_insn to
5159 ftrace_update_insns by reference instead of pointer.
5160
badc0020
YQ
51612017-09-04 Yao Qi <yao.qi@linaro.org>
5162
5163 * i386-go32-tdep.c: Include x86-xstate.h.
5164 (i386_go32_init_abi): Call i386_target_description.
5165 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
5166 if xcr0 is X86_XSTATE_X87_MASK.
5167 * i386-tdep.h (tdesc_i386): Remove the declaration.
5168 (tdesc_i386_mmx): Likewise.
5169
d78bdb54
YQ
51702017-09-04 Yao Qi <yao.qi@linaro.org>
5171
5172 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
5173 X86_XSTATE_SSE_MASK instead of 0.
5174
ca1fa5ee
YQ
51752017-09-04 Yao Qi <yao.qi@linaro.org>
5176
5177 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
5178 i386_target_description.
5179 * i386-fbsd-nat.c (i386fbsd_read_description): Call
5180 i386_target_description.
5181 * i386-tdep.c (i386_gdbarch_init): Likewise.
5182
2434b019
YQ
51832017-09-04 Yao Qi <yao.qi@linaro.org>
5184
5185 * amd64-darwin-tdep.c: Include "x86-xstate.h".
5186 (x86_darwin_init_abi_64): Call amd64_target_description.
5187 * amd64-dicos-tdep.c: Likewise.
5188 * amd64-fbsd-nat.c: Likewise.
5189 * amd64-fbsd-tdep.c: Likewise.
5190 * amd64-nbsd-tdep.c: Likewise.
5191 * amd64-obsd-tdep.c: Likewise.
5192 * amd64-sol2-tdep.c: Likewise.
5193 * amd64-windows-tdep.c: Likewise.
5194 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
5195
0860c437
SM
51962017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5197
5198 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
5199 (btrace_function) <insn>: Change type to use std::vector.
5200 * btrace.c (ftrace_debug, ftrace_call_num_insn,
5201 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
5202 ftrace_update_insns, ftrace_compute_global_level_offset,
5203 btrace_stitch_bts, btrace_clear, btrace_insn_get,
5204 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
5205 change to std::vector.
5206 (ftrace_update_insns): Adjust to change to std::vector, change
5207 type of INSN parameter.
5208 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
5209 * record-btrace.c (btrace_call_history_insn_range,
5210 btrace_compute_src_line_range,
5211 record_btrace_frame_prev_register): Adjust to change to
5212 std::vector.
5213 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
5214 to change to std::vector.
5215
0638b7f9
TT
52162017-09-03 Tom Tromey <tom@tromey.com>
5217
5218 * corefile.c (reopen_exec_file): Use std::string.
5219
8f84fb0e
TT
52202017-09-03 Tom Tromey <tom@tromey.com>
5221
5222 * compile/compile.c (compile_register_name_mangled): Return
5223 std::string.
5224 * compile/compile-loc2c.c (pushf_register_address): Update.
5225 (pushf_register): Update.
5226 * compile/compile-c-types.c (convert_array): Update.
5227 * compile/compile-c-symbols.c (generate_vla_size): Update.
5228 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
5229 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
5230 (convert_one_symbol): Update.
5231 (generate_c_for_for_one_variable): Update.
5232 * compile/compile-c-support.c (c_get_range_decl_name): Return a
5233 std::string.
5234 (generate_register_struct): Update.
5235 * compile/compile-internal.h (c_get_range_decl_name): Return a
5236 std::string.
5237 (compile_register_name_mangled): Return std::string.
5238
18e9961f
TT
52392017-09-03 Tom Tromey <tom@tromey.com>
5240
5241 * utils.c (perror_string): Return a std::string.
5242 (throw_perror_with_name, perror_warning_with_name): Update.
5243
45343786
TT
52442017-09-03 Tom Tromey <tom@tromey.com>
5245
5246 * demangle.c (demangle_command): Use std::string,
5247 unique_xmalloc_ptr.
5248
b57af503
TT
52492017-09-03 Tom Tromey <tom@tromey.com>
5250
5251 * cli/cli-setshow.c (do_set_command): Use std::string.
5252
6eecf35f
TT
52532017-09-03 Tom Tromey <tom@tromey.com>
5254
5255 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
5256
56496dd4
TT
52572017-09-03 Tom Tromey <tom@tromey.com>
5258
5259 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
5260
e91a1fa7
TT
52612017-09-03 Tom Tromey <tom@tromey.com>
5262
5263 * mi/mi-cmd-env.c (env_execute_cli_command): Use
5264 gdb::unique_xmalloc_ptr.
5265
7ffd83d7
TT
52662017-09-03 Tom Tromey <tom@tromey.com>
5267
5268 * thread.c (print_thread_info_1): Use string_printf.
5269 (thread_apply_command, thread_apply_all_command): Use
5270 std::string.
5271
1ccbe998
TT
52722017-09-03 Tom Tromey <tom@tromey.com>
5273
5274 * valprint.c (val_print_string): Update.
5275 * gdbcore.h (memory_error_message): Return std::string.
5276 * corefile.c (memory_error_message): Return std::string.
5277 (memory_error): Update.
5278 * breakpoint.c (insert_bp_location): Update.
5279
23fdd69e
SM
52802017-09-03 Simon Marchi <simon.marchi@ericsson.com>
5281
5282 * target/waitstatus.h (target_waitstatus_to_string): Change
5283 return type to std::string.
5284 * target/waitstatus.c (target_waitstatus_to_string): Return
5285 std::string.
5286 * target.h (target_waitstatus_to_string): Remove declaration.
5287 * infrun.c (resume, clear_proceed_status_thread,
5288 print_target_wait_results, do_target_wait, save_waitstatus,
5289 stop_all_threads): Adjust.
5290 * record-btrace.c (record_btrace_wait): Adjust.
5291 * target-debug.h
5292 (target_debug_print_struct_target_waitstatus_p): Adjust.
5293
5c811d30
JK
52942017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5295
5296 PR gdb/22046
5297 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
5298 detection.
5299
0a2dde4a
SDJ
53002017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
5301
5302 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
5303 for setting/unsetting environment variables on the remote target.
5304 (New remote packets): Add entries for QEnvironmentHexEncoded,
5305 QEnvironmentUnset and QEnvironmentReset.
5306 * common/environ.c (gdb_environ::operator=): Extend method to
5307 handle m_user_set_env_list and m_user_unset_env_list.
5308 (gdb_environ::clear): Likewise.
5309 (match_var_in_string): Change type of first parameter from 'char
5310 *' to 'const char *'.
5311 (gdb_environ::set): Extend method to handle
5312 m_user_set_env_list and m_user_unset_env_list.
5313 (gdb_environ::unset): Likewise.
5314 (gdb_environ::clear_user_set_env): New method.
5315 (gdb_environ::user_set_envp): Likewise.
5316 (gdb_environ::user_unset_envp): Likewise.
5317 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
5318 m_user_unset_env_list on move constructor/assignment.
5319 (unset): Add new default parameter 'update_unset_list = true'.
5320 (clear_user_set_env): New method.
5321 (user_set_envp): Likewise.
5322 (user_unset_envp): Likewise.
5323 (m_user_set_env_list): New std::set.
5324 (m_user_unset_env_list): Likewise.
5325 * common/rsp-low.c (hex2str): New function.
5326 (bin2hex): New overload for bin2hex function.
5327 * common/rsp-low.c (hex2str): New prototype.
5328 (str2hex): New overload prototype.
5329 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
5330 QEnvironmentUnset and QEnvironmentReset.
5331 (remote_protocol_features): Add QEnvironmentHexEncoded,
5332 QEnvironmentUnset and QEnvironmentReset packets.
5333 (send_environment_packet): New function.
5334 (extended_remote_environment_support): Likewise.
5335 (extended_remote_create_inferior): Call
5336 extended_remote_environment_support.
5337 (_initialize_remote): Add QEnvironmentHexEncoded,
5338 QEnvironmentUnset and QEnvironmentReset packet configs.
5339 * unittests/environ-selftests.c (gdb_selftest_env_var):
5340 New variable.
5341 (test_vector_initialization): New function.
5342 (test_init_from_host_environ): Likewise.
5343 (test_reinit_from_host_environ): Likewise.
5344 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
5345 Likewise.
5346 (test_unset_set_empty_vector): Likewise.
5347 (test_vector_clear): Likewise.
5348 (test_std_move): Likewise.
5349 (test_move_constructor):
5350 (test_self_move): Likewise.
5351 (test_set_unset_reset): Likewise.
5352 (run_tests): Rewrite in terms of the functions above.
5353
654670a4
WP
53542017-08-31 Weimin Pan <weimin.pan@oracle.com>
5355
5356 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
5357 (adi_available): Use a temp variable of type CORE_ADDR as argument
5358 3 when calling target_auxv_search.
5359 (adi_normalize_address): Use masks and xor operators to calculate
5360 normalized address.
5361 (adi_read_versions, adi_write_versions, adi_print_versions)
5362 (do_examine, do_assign): Use paddress.
5363
7755ddb7
JB
53642017-08-29 John Baldwin <jhb@FreeBSD.org>
5365
5366 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
5367 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
5368 out of loop and add supply of FIR.
5369 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
5370 add collect of FIR.
5371
fd437cbc
SM
53722017-08-28 Simon Marchi <simon.marchi@ericsson.com>
5373
3804a343 5374 PR gdb/21827
fd437cbc
SM
5375 * cli/cli-script.c (define_command): Don't convert command name
5376 to lower case.
5377
988f6b3d
JB
53782017-08-25 Joel Brobecker <brobecker@adacore.com>
5379
5380 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
5381 Update all callers accordingly. Remove all code blocks handling
5382 the case where DISPP is not NULL.
5383
663c44ac
JK
53842017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5385
5386 PR symtab/22003
5387 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
5388 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
5389 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
5390
f1902523
JK
53912017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5392
5393 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
5394 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
5395 (read_comp_units_from_section): New parameter abbrev_section, use
5396 read_and_check_comp_unit_head, allocate signatured_type if needed.
5397 (create_all_comp_units): Update read_comp_units_from_section caller.
5398
87215ad1
SDJ
53992017-08-23 Pedro Alves <palves@redhat.com>
5400
5401 PR remote/21852
5402 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
5403 to null_ptid and switch to thread without reading the registers
5404 after adding the inferior.
5405
6e41ddec
JK
54062017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5407
5408 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
5409 compile-gcc.
5410 * compile/compile.c (compile_gcc, show_compile_gcc): New.
5411 (compile_to_object): Implement compile_gcc.
5412 (_initialize_compile): Install "set compile-gcc". Initialize
5413 compile_gcc.
5414
e68c32d5
JK
54152017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5416
5417 * compile/compile.c (compile_to_object): Conditionally call
5418 set_verbose. Conditionally call compile or compile_v0.
5419
58afddc6
WP
54202017-08-07 Weimin Pan <weimin.pan@oracle.com>
5421
5422 * sparc64-tdep.h: (adi_normalize_address): New export.
5423 * sparc-nat.h: (open_adi_tag_fd): New export.
5424 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
5425 * sparc64-linux-tdep.c:
5426 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
5427 (sparc64_linux_handle_segmentation_fault): New function.
5428 (sparc64_linux_init_abi): Register
5429 sparc64_linux_handle_segmentation_fault
5430 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
5431 (sparc64_addr_bits_remove): New function.
5432 (sparc64_init_abi): Register sparc64_addr_bits_remove.
5433 (MAX_PROC_NAME_SIZE): New macro.
5434 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
5435 (sparc64adilist): New variable.
5436 (adi_proc_list): New variable.
5437 (find_adi_info): New function.
5438 (add_adi_info): New function.
5439 (get_adi_info_proc): New function.
5440 (get_adi_info): New function.
5441 (info_adi_command): New function.
5442 (read_maps_entry): New function.
5443 (adi_available): New function.
5444 (adi_normalize_address): New function.
5445 (adi_align_address): New function.
5446 (adi_convert_byte_count): New function.
5447 (adi_tag_fd): New function.
5448 (adi_is_addr_mapped): New function.
5449 (adi_read_versions): New function.
5450 (adi_write_versions): New function.
5451 (adi_print_versions): New function.
5452 (do_examine): New function.
5453 (do_assign): New function.
5454 (adi_examine_command): New function.
5455 (adi_assign_command): New function.
5456 (_initialize_sparc64_adi_tdep): New function.
5457
11db9430
SM
54582017-08-22 Simon Marchi <simon.marchi@ericsson.com>
5459
5460 * breakpoint.c (breakpoints_info): Rename to ...
5461 (info_breakpoints_command): ... this.
5462 (watchpoints_info): Rename to ...
5463 (info_watchpoints_command): ... this.
5464 (tracepoints_info): Rename to ...
5465 (info_tracepoints_command): ... this.
5466 (_initialize_breakpoint): Adjust.
5467 * dcache.c (dcache_info): Rename to ...
5468 (info_display_command): ... this.
5469 (_initialize_dcache): Adjust.
5470 * frame.h (args_info): Rename to ...
5471 (info_args_command): ... this.
5472 (locals_info): Rename to ...
5473 (info_locals_command): ... this.
5474 * infcmd.c (nofp_registers_info): Rename to ...
5475 (info_registers_command): ... this.
5476 (float_info): Rename to ...
5477 (info_float_command): ... this.
5478 (program_info): Rename to ...
5479 (info_program_command): ... this.
5480 (all_registers_info): Rename to ...
5481 (info_all_registers_command): ... this.
5482 (vector_info): Rename to ...
5483 (info_vector_command): ... this.
5484 (float_info): Rename to ...
5485 (info_float_command): ... this.
5486 (_initialize_infcmd): Adjust.
5487 * inferior.h (term_info): Rename to ...
5488 (info_terminal_command): ... this.
5489 * inflow.c (term_info): Rename to ...
5490 (info_terminal_command): ... this.
5491 (_initialize_inflow): Adjust.
5492 * infrun.c (signals_info): Rename to ...
5493 (info_signals_command): ... this.
5494 (_initialize_infrun): Adjust.
5495 * objc-lang.c (classes_info): Rename to ...
5496 (info_classes_command): ... this.
5497 (selectors_info): Rename to ...
5498 (info_selectors_command): ... this.
5499 (_initialize_objc_language): Adjust.
5500 * printcmd.c (sym_info): Rename to ...
5501 (info_symbol_command): ... this.
5502 (address_info): Rename to ...
5503 (info_address_command): ... this.
5504 (display_info): Rename to ...
5505 (info_display_command): ... this.
5506 (_initialize_printcmd): Adjust.
5507 * reverse.c (bookmarks_info): Rename to ...
5508 (info_breakpoints_command): ... this.
5509 (_initialize_reverse): Adjust.
5510 * ser-go32.c (dos_info): Rename to ...
5511 (info_serial_command): ... this.
5512 (_initialize_ser_dos): Adjust.
5513 * skip.c (skip_info): Rename to ...
5514 (info_skip_command): ... this.
5515 (_initialize_step_skip): Adjust.
5516 * source.c (line_info): Rename to ...
5517 (info_line_command): ... this.
5518 (source_info): Rename to ...
5519 (info_source_command)
5520 * stack.c (frame_info): Rename to ...
5521 (info_frame_command): ... this.
5522 (locals_info): Rename to ...
5523 (info_locals_command): ... this.
5524 (args_info): Rename to ...
5525 (info_args_command): ... this.
5526 (_initialize_stack): Adjust.
5527 * symtab.c (sources_info): Rename to ...
5528 (info_sources_command): ... this.
5529 (variables_info): Rename to ...
5530 (info_variables_command): ... this.
5531 (functions_info): Rename to ...
5532 (info_functions_command): ... this.
5533 (types_info): Rename to ...
5534 (info_types_command): ... this.
5535 (_initialize_symtab): Adjust.
5536 * target.c (target_info): Rename to ...
5537 (info_target_command): ... this.
5538 (initialize_targets): Adjust.
5539 * tracepoint.c (tvariables_info): Rename to ...
5540 (info_tvariables_command): ... this.
5541 (scope_info): Rename to ...
5542 (info_scope_command): ... this.
5543 (trace_dump_actions): Adjust.
5544 (_initialize_tracepoint): Adjust.
5545
b270e6f9
TT
55462017-08-22 Tom Tromey <tom@tromey.com>
5547
5548 * breakpoint.h (install_breakpoint): Update.
5549 * breakpoint.c (add_solib_catchpoint): Update.
5550 (install_breakpoint): Change argument to a std::unique_ptr.
5551 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
5552 (create_breakpoint_sal, create_breakpoint): Update.
5553 (watch_command_1, catch_exec_command_1)
5554 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
5555 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
5556 Return the breakpoint.
5557 (set_raw_breakpoint_without_location, set_raw_breakpoint)
5558 (new_single_step_breakpoint): Update.
5559 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
5560 std::unique_ptr.
5561 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
5562 std::unique_ptr.
5563 * break-catch-sig.c (create_signal_catchpoint): Use
5564 std::unique_ptr.
5565 * ada-lang.c (create_ada_exception_catchpoint): Use
5566 std::unique_ptr.
5567
36bd8eaa
TT
55682017-08-22 Tom Tromey <tom@tromey.com>
5569
5570 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
5571
56f37645
TT
55722017-08-22 Tom Tromey <tom@tromey.com>
5573
5574 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
5575 (lookup_partial_symbol): Update.
5576
0b581c69
TT
55772017-08-22 Tom Tromey <tom@tromey.com>
5578
5579 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
5580 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
5581 (find_and_open_source, symtab_to_fullname): Update.
5582 * psymtab.c (psymtab_to_fullname): Update.
5583
14278e1f
TT
55842017-08-22 Tom Tromey <tom@tromey.com>
5585
5586 * exec.c (exec_file_attach): Update.
5587 * linux-thread-db.c (try_thread_db_load): Update.
5588 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
5589 * utils.c (gdb_realpath): Change return type.
5590 (gdb_realpath_keepfile): Update.
5591 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
5592 (_initialize_utils): Register the new self test.
5593 * source.c (openp): Update.
5594 (find_and_open_source): Update.
5595 * nto-tdep.c (nto_find_and_open_solib): Update.
5596 * main.c (set_gdb_data_directory): Update.
5597 (captured_main_1): Update.
5598 * dwarf2read.c (dwarf2_get_dwz_file): Update
5599 (dw2_map_symbol_filenames): Update.
5600 * auto-load.c (auto_load_safe_path_vec_update): Update.
5601 (filename_is_in_auto_load_safe_path_vec): Change type of
5602 "filename_realp".
5603 (auto_load_objfile_script): Update.
5604 (file_is_auto_load_safe): Update. Use std::string.
5605 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
5606
4971c9a7
TT
56072017-08-22 Tom Tromey <tom@tromey.com>
5608
5609 * utils.c (gdb_realpath_keepfile): Return a
5610 gdb::unique_xmalloc_ptr.
5611 * exec.c (exec_file_attach): Update.
5612 * utils.h (gdb_realpath_keepfile): Return a
5613 gdb::unique_xmalloc_ptr.
5614
e3e41d58
TT
56152017-08-22 Tom Tromey <tom@tromey.com>
5616
5617 * compile/compile.c (compile_file_command): Use
5618 gdb::unique_xmalloc_ptr, std::string.
5619 * utils.c (gdb_abspath): Change return type.
5620 * source.c (openp): Update.
5621 * objfiles.c (allocate_objfile): Update.
5622 * main.c (set_gdb_data_directory): Update.
5623 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
5624
0d999a6e
ZZ
56252017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
5626
5627 * cli-cmds.c (list_commands): List actual code around more than
5628 one location.
5629
329d5e7e
JB
56302017-08-21 John Baldwin <jhb@FreeBSD.org>
5631
5632 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
5633
bf223d3e
PA
56342017-08-21 Pedro Alves <palves@redhat.com>
5635
5636 PR gdb/19487
5637 * c-exp.y (variable production): Handle function aliases.
5638 * minsyms.c (msymbol_is_text): New function.
5639 * minsyms.h (msymbol_is_text): Declare.
5640 * symtab.c (find_function_alias_target): New function.
5641 * symtab.h (find_function_alias_target): Declare.
5642
c973d0aa
PA
56432017-08-21 Pedro Alves <palves@redhat.com>
5644
5645 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
5646 typedefs.
5647 * typeprint.c (whatis_exp): If handling "whatis", and expression
5648 is OP_TYPE, strip one typedef level. Otherwise don't strip
5649 typedefs here.
5650 * valops.c (value_cast): Save "to" type before resolving
5651 stubs/typedefs. Use that type as resulting value's type.
5652
2989a365
TT
56532017-08-18 Tom Tromey <tom@tromey.com>
5654 Pedro Alves <palves@redhat.com>
5655
5656 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
5657 * sol-thread.c (sol_thread_resume, sol_thread_wait)
5658 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
5659 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
5660 * proc-service.c (ps_xfer_memory): Use scoped_restore.
5661 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
5662 (linux_get_siginfo_data): Add "thread" argument. Use
5663 scoped_restore.
5664 * linux-nat.c (linux_child_follow_fork)
5665 (check_stopped_by_watchpoint): Use scoped_restore.
5666 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
5667 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
5668 (restore_inferior_ptid, save_inferior_ptid): Remove.
5669 * btrace.c (btrace_fetch): Use scoped_restore.
5670 * bsd-uthread.c (bsd_uthread_fetch_registers)
5671 (bsd_uthread_store_registers): Use scoped_restore.
5672 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
5673 scoped_restore.
5674 * aix-thread.c (aix_thread_resume, aix_thread_wait)
5675 (aix_thread_xfer_partial): Use scoped_restore.
5676 * inferior.h (save_inferior_ptid): Remove.
5677
e60eb288
YQ
56782017-08-18 Yao Qi <yao.qi@linaro.org>
5679
5680 PR tdep/21818
5681 * arm-tdep.c (gdb_print_insn_arm): Mark
5682 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
5683
6d580b63
YQ
56842017-08-18 Yao Qi <yao.qi@linaro.org>
5685
5686 * NEWS: Mention GDBserver's new option "--selftest".
5687 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
5688 * selftest.c: Move it to common/selftest.c.
5689 * selftest.h: Move it to common/selftest.h.
5690 * selftest-arch.c (reset): New function.
5691 (tests_with_arch): Call reset.
5692
86dcbf50
YQ
56932017-08-18 Yao Qi <yao.qi@linaro.org>
5694
5695 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
5696 instead of exception_fprintf and printf_filtered.
5697
7649770c
YQ
56982017-08-18 Yao Qi <yao.qi@linaro.org>
5699
5700 * selftest.c (register_self_test): Rename it to
5701 selftests::register_test.
5702 (run_self_tests): selftest::run_tests.
5703 * selftest.h: Update declarations.
5704 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
5705 selftests::register_test_foreach_arch.
5706 * selftest-arch.h: Update declaration.
5707 * aarch64-tdep.c: Update.
5708 * arm-tdep.c: Likewise.
5709 * disasm-selftests.c: Likewise.
5710 * dwarf2loc.c: Likewise.
5711 * dwarf2-frame.c: Likewise.
5712 * findvar.c: Likewise.
5713 * gdbarch-selftests.c: Likewise.
5714 * maint.c (maintenance_selftest): Likewise.
5715 * regcache.c: Likewise.
5716 * rust-exp.y: Likewise.
5717 * selftest-arch.c: Likewise.
5718 * unittests/environ-selftests.c: Likewise.
5719 * unittests/function-view-selftests.c: Likewise.
5720 * unittests/offset-type-selftests.c: Likewise.
5721 * unittests/optional-selftests.c: Likewise.
5722 * unittests/scoped_restore-selftests.c: Likewise.
5723 * utils-selftests.c: Likewise.
5724
b0cba12e
PA
57252017-08-17 Pedro Alves <palves@redhat.com>
5726
5727 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
5728 local.
5729
4c8aa72d
PA
57302017-08-17 Pedro Alves <palves@redhat.com>
5731
5732 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
5733 field.
5734 (reset_die_in_process): Delete, replaced by ...
5735 (process_die_scope): ... this new class. Make it responsible for
5736 freeing cu->line_header too.
5737 (process_die): Use process_die_scope.
5738 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
5739 cu->line_header_die_owner. Don't release the line header if it's
5740 owned by the CU.
5741 (setup_type_unit_groups): Make the CU/DIE own the line header.
5742 Don't release the line header here.
5743
ba713918
AL
57442017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
5745
5746 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
5747
44d0fb3a
RK
57482017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
5749
5750 * NEWS: Mention new shortcuts for nexti and stepi in TUI
5751 Single-Key mode
5752
a5afdb16
RK
57532017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
5754
5755 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
5756 mode command list.
5757
47613aeb
SH
57582017-08-15 Stafford Horne <shorne@gmail.com>
5759
5760 * MAINTAINERS (Write After Approval): Add Stafford Horne.
5761
9c3cc999
SH
57622017-08-15 Stafford Horne <shorne@gmail.com>
5763
5764 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
5765
206726fb
SDJ
57662017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
5767
5768 PR gdb/21954
5769 * infcmd.c (unset_environment_command): Use the 'clear' method on
5770 the environment instead of resetting it.
5771
0335ac6d
JB
57722017-08-15 John Baldwin <jhb@FreeBSD.org>
5773
5774 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
5775 platforms.
5776
d3abe1c8
TT
57772017-08-14 Tom Tromey <tom@tromey.com>
5778
5779 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
5780 (print_binary_chars): Likewise.
5781 (BITS_IN_BYTES): Remove.
5782
d6382fff
TT
57832017-08-14 Tom Tromey <tom@tromey.com>
5784
5785 PR gdb/21675
5786 * valprint.c (LOW_ZERO): Change value to 034.
5787 (print_octal_chars): Add static_asserts for octal constants.
5788 * printcmd.c (print_scalar_formatted): Add 'd' case.
5789
f978cb06
TT
57902017-08-11 Tom Tromey <tom@tromey.com>
5791
5792 * symfile.c (add_symbol_file_command): Use std::vector.
5793
2f5404b3
TT
57942017-08-14 Tom Tromey <tom@tromey.com>
5795
5796 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
5797 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
5798 std::move.
5799 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
5800
de7985c3
PA
58012017-08-11 Pedro Alves <palves@redhat.com>
5802
5803 * infrun.c (process_event_stop_test): Adjust
5804 function_name_is_marked_for_skip call.
5805 * skip.c: Include <list>.
5806 (skiplist_entry): Make it a class with private fields, and
5807 getters/setters.
5808 (skiplist_entry_chain): Delete.
5809 (skiplist_entries): New.
5810 (skiplist_entry_count): Delete.
5811 (highest_skiplist_entry_num): New.
5812 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
5813 (add_skiplist_entry): Delete.
5814 (skiplist_entry::skiplist_entry): New.
5815 (skiplist_entry::add_entry): New.
5816 (skip_file_command, skip_function): Adjust.
5817 (compile_skip_regexp): Delete.
5818 (skip_command): Don't compile regexp here. Adjust to use
5819 skiplist_entry::add_entry.
5820 (skip_info): Adjust to use range-for and getters.
5821 (skip_enable_command, skip_disable_command): Adjust to use
5822 range-for and setters.
5823 (skip_delete_command): Adjust to use std::list.
5824 (add_skiplist_entry): Delete.
5825 (skip_file_p): Delete, refactored as ...
5826 (skiplist_entry::do_skip_file_p): ... this new method.
5827 (skip_gfile_p): Delete, refactored as ...
5828 (skiplist_entry::do_gskip_file_p): ... this new method.
5829 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
5830 (skiplist_entry::skip_function_p): ... this new method.
5831 (function_name_is_marked_for_skip): Now returns bool, and takes
5832 the function sal by const reference. Adjust to use range-for and
5833 skiplist_entry methods.
5834 (_initialize_step_skip): Remove references to
5835 skiplist_entry_chain, skiplist_entry_count.
5836 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
5837 takes the function sal by const reference.
5838
be7d3cd5
YQ
58392017-08-11 Yao Qi <yao.qi@linaro.org>
5840
5841 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
5842 (dwarf2_frame_cache): Remove reset_cache_cleanup.
5843 (dwarf2_frame_cache):
5844 * frame-unwind.c (frame_unwind_try_unwinder): Catch
5845 RETURN_MASK_ALL and set *this_case to NULL.
5846 * frame-unwind.h: Update comments.
5847
1c90d9f0
YQ
58482017-08-11 Yao Qi <yao.qi@linaro.org>
5849
5850 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
5851 (dwarf2_frame_state_copy_regs): Remove.
5852 (dwarf2_frame_state_free_regs): Remove.
5853 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
5854 (dwarf2_restore_rule): Call method .alloc_regs instead of
5855 dwarf2_frame_state_alloc_regs.
5856 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
5857 constructor. Call std::move.
5858 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
5859 (dwarf2_frame_cache): Likewise.
5860
5861 [GDB_SELF_TEST]: Include selftest.h and
5862 selftest-arch.h.
5863 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
5864 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
5865 execute_cfa_program_test.
5866
5867 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
5868 copy ctor, assignment operator, move assignment.
5869 <alloc_regs>: New method.
5870 <swap>: New method.
5871 (struct dwarf2_frame_state): Delete dtor.
5872 (dwarf2_frame_state_alloc_regs): Remove declaration.
5873 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
5874 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
5875
afe37d6b
YQ
58762017-08-11 Yao Qi <yao.qi@linaro.org>
5877
5878 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
5879 (dwarf2_frame_state::dwarf2_frame_state): New.
5880 (dwarf2_frame_state::~dwarf2_frame_state): New.
5881 (dwarf2_fetch_cfa_info): Update.
5882 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
5883 rather than a pointer. Update code.
5884 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
5885 dtor.
5886 <data_align, code_align, retaddr_column>: Change them to const.
5887 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
5888 to bool.
5889
b348037f
YQ
58902017-08-11 Yao Qi <yao.qi@linaro.org>
5891
5892 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
5893 <loc.exp>: New field.
5894 * dwarf2-frame.c (execute_cfa_program): Update.
5895 (dwarf2_frame_prev_register): Update.
5896
e7c9de26
PA
58972017-08-10 Pedro Alves <palves@redhat.com>
5898
5899 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
5900
e8c6b620
JB
59012017-08-09 John Baldwin <jhb@FreeBSD.org>
5902
5903 * fbsd-nat.c (struct fbsd_fork_info): Remove.
5904 (fbsd_pending_children): Use std::list.
5905 (fbsd_remember_child): Likewise.
5906 (fbsd_is_child_pending): Likewise.
5907 (fbsd_pending_vfork_done): Use std::forward_list.
5908 (fbsd_add_vfork_done): Likewise.
5909 (fbsd_is_vfork_done_pending): Likewise.
5910 (fbsd_next_vfork_done): Likewise.
5911
e4a26669
JB
59122017-08-09 John Baldwin <jhb@FreeBSD.org>
5913
5914 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
5915 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
5916 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
5917 for `mapfilename'.
5918 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 5919 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 5920
142311d3
JB
59212017-08-09 John Baldwin <jhb@FreeBSD.org>
5922
5923 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
5924 "filestuff.h".
5925 (fbsd_find_memory_regions): Fix `mapfile' initialization.
5926
42fa2e0e
TT
59272017-08-09 Tom Tromey <tom@tromey.com>
5928
5929 * skip.c (skiplist_entry): New constructor.
5930 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
5931 (skiplist_entry::file_is_glob): Now bool.
5932 (skiplist_entry::file, skiplist_entry::function): Now
5933 std::string.
5934 (make_skip_entry): Return a unique_ptr. Use new.
5935 (free_skiplist_entry, free_skiplist_entry_cleanup)
5936 (make_free_skiplist_entry_cleanup): Remove.
5937 (skip_command, skip_disable_command, add_skiplist_entry)
5938 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
5939 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
5940 (function_name_is_marked_for_skip): Update.
5941 (skip_delete_command): Update. Use delete.
5942
cd3af38d
JW
59432017-08-09 Jiong Wang <jiong.wang@arm.com>
5944
5945 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
5946 (aarch64_linux_core_read_description): New function.
5947 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
5948
29592bde
PA
59492017-08-09 Pedro Alves <palves@redhat.com>
5950
5951 * cp-name-parser.y (cp_comp_to_string): Return a
5952 gdb::unique_xmalloc_ptr<char>.
5953 * cp-support.c (replace_typedefs_qualified_name)
5954 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
5955 (cp_canonicalize_string_full): Use op= instead of explicit
5956 convertion.
5957 (cp_class_name_from_physname, method_name_from_physname)
5958 (cp_func_name, cp_remove_params): Adjust to use
5959 gdb::unique_xmalloc_ptr<char>.
5960 * cp-support.h (cp_comp_to_string): Return a
5961 gdb::unique_xmalloc_ptr<char>.
5962 * python/py-type.c (typy_lookup_type): Adjust to use
5963 gdb::unique_xmalloc_ptr<char>.
5964
b3340438
L
59652017-08-09 H.J. Lu <hongjiu.lu@intel.com>
5966
5967 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
5968
e88e8651
YQ
59692017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
5970 Yao Qi <yao.qi@linaro.org>
5971
5972 * cp-support.c (cp_canonicalize_string_full): Use
5973 gdb::unique_xmalloc_ptr<char>.
5974 (cp_canonicalize_string): Likewise.
5975
f5a29eb0
YQ
59762017-08-09 Yao Qi <yao.qi@linaro.org>
5977
5978 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
5979 * regformats/i386/amd64-avx-avx512.dat: Remove.
5980 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
5981 * regformats/i386/amd64-avx-mpx.dat:Remove.
5982 * regformats/i386/amd64-avx.dat: Remove.
5983 * regformats/i386/amd64-mpx.dat: Remove.
5984 * regformats/i386/i386-avx-avx512.dat: Remove.
5985 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
5986 * regformats/i386/i386-avx-mpx.dat: Remove.
5987 * regformats/i386/i386-mmx.dat: Remove.
5988 * regformats/i386/i386-mpx.dat: Remove.
5989
57757c2f
YQ
59902017-08-09 Yao Qi <yao.qi@linaro.org>
5991
5992 * amd64-tdep.h (tdesc_x32): Remove the declaration.
5993 * amd64-tdep.c: Don't include features/i386/x32*.c.
5994 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
5995 functions.
5996 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
5997 and i386/x32-avx-avx512.
5998 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
5999 and i386/x32.xml.
6000 * features/i386/x32-avx-avx512.c: Removed.
6001 * features/i386/x32-avx-avx512.xml: Removed.
6002 * features/i386/x32-avx.c: Removed.
6003 * features/i386/x32-avx.xml: Removed.
6004 * features/i386/x32.c: Removed.
6005 * features/i386/x32.xml: Removed.
6006 * regformats/i386/x32-avx-avx512.dat: Removed.
6007 * regformats/i386/x32-avx.dat: Removed.
6008 * regformats/i386/x32.dat: Removed.
6009
ba7b109b
MR
60102017-08-07 Maciej W. Rozycki <macro@imgtec.com>
6011
6012 PR breakpoints/21886
6013 * mem-break.c (default_memory_insert_breakpoint): Use
6014 `->placed_address' rather than `->reqstd_address' for the
6015 breakpoint location.
6016
e347efc3
MR
60172017-08-07 Maciej W. Rozycki <macro@imgtec.com>
6018
6019 * arch-utils.c (default_print_insn): Remove arch/mach/endian
6020 assertions.
6021
0dba2a6c
MR
60222017-08-07 Maciej W. Rozycki <macro@imgtec.com>
6023
6024 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
6025 a union of `tdep_info', `tdesc_data' and `id'.
6026 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
6027 rather than `info.tdep_info'.
6028 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
6029 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6030 * i386-tdep.c (i386_gdbarch_init): Likewise.
6031 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
6032 * mips-tdep.c (mips_gdbarch_init): Likewise.
6033 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
6034 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
6035 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
6036 `info.tdep_info'.
6037 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
6038 `info.tdep_info'.
6039 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6040 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
6041 `info.tdep_info'.
6042 * spu-tdep.c (spu_gdbarch_init): Likewise.
6043 * gdbarch.h: Regenerate.
6044
16eb6b2d
LS
60452017-08-07 Leszek Swirski <leszeks@google.com>
6046
7b005726 6047 PR symtab/20899
16eb6b2d
LS
6048 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
6049
74cbb09e
SM
60502017-08-07 Simon Marchi <simon.marchi@ericsson.com>
6051
6052 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
6053 (gdbsim_open): Rename gdb_argv args object to argv.
6054
ee0c3293
TT
60552017-08-05 Tom Tromey <tom@tromey.com>
6056
6057 * compile/compile-object-load.c (compile_object_load): Use
6058 gdb::unique_xmalloc_ptr.
6059 * cli/cli-dump.c (scan_filename): Rename from
6060 scan_filename_with_cleanup. Change return type.
6061 (scan_expression): Rename from scan_expression_with_cleanup.
6062 Change return type.
6063 (dump_memory_to_file, dump_value_to_file, restore_command):
6064 Use gdb::unique_xmalloc_ptr. Update.
6065 * cli/cli-cmds.c (find_and_open_script): Use
6066 gdb::unique_xmalloc_ptr.
6067 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
6068 * symmisc.c (maintenance_print_symbols)
6069 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
6070 * symfile.c (symfile_bfd_open, generic_load)
6071 (add_symbol_file_command, remove_symbol_file_command): Use
6072 gdb::unique_xmalloc_ptr.
6073 * source.c (openp): Use gdb::unique_xmalloc_ptr.
6074 * psymtab.c (maintenance_print_psymbols): Use
6075 gdb::unique_xmalloc_ptr.
6076 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
6077 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
6078 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
6079 (reload_shared_libraries_1): Likewise.
6080
3232fabd
TT
60812017-08-05 Tom Tromey <tom@tromey.com>
6082
6083 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
6084 (rust_op_vector, rust_set_vector): New typedefs.
6085 (current_parser): New global.
6086 (work_obstack): Change to pointer type. Update all users.
6087 (rust_ast, pstate): Remove globals.
6088 (struct rust_parser): New.
6089 (%union) <params, field_inits>: Change type.
6090 (start, tuple_expr, unit_expr, struct_expr_list, literal)
6091 (field_expr, expr_list, maybe_expr_list, type_list): Update.
6092 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
6093 (convert_params_to_types, convert_params_to_expression): Change
6094 type of "params".
6095 (ast_string): Change type of "fields".
6096 (rust_parse): Make a rust_parser. Remove cleanups.
6097 (rust_lex_tests): Make and install an auto_obstack.
6098
f02fd774
YQ
60992017-08-04 Yao Qi <yao.qi@linaro.org>
6100
6101 * configure.srv (ipa_x32_linux_regobj): New.
6102 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
6103 instead of X86_TDESC_AVX512.
6104 (initialize_low_tracepoint): Call
6105 init_registers_x32_avx_avx512_linux.
6106
91975afd
YQ
61072017-08-04 Yao Qi <yao.qi@linaro.org>
6108
6109 * utils.h (gdb_argv): Add namespace std for nullptr_t.
6110
2331fa3a
RK
61112017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
6112
6113 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
6114
744e4fe1
TT
61152017-08-03 Tom Tromey <tom@tromey.com>
6116
6117 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
6118 Remove.
6119 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
6120
1c034b67
TT
61212017-08-03 Tom Tromey <tom@tromey.com>
6122
6123 * python/py-param.c (compute_enum_values): Use gdb_argv.
6124
773a1edc
TT
61252017-08-03 Tom Tromey <tom@tromey.com>
6126
6127 * utils.h (struct gdb_argv_deleter): New.
6128 (gdb_argv): New class.
6129 * utils.c (gdb_argv::reset): New method.
6130 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
6131 * tracefile.c (tsave_command): Use gdb_argv.
6132 * top.c (new_ui_command): Use gdb_argv.
6133 * symmisc.c (maintenance_print_symbols)
6134 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
6135 * symfile.c (symbol_file_command, generic_load)
6136 (remove_symbol_file_command): Use gdb_argv.
6137 * stack.c (backtrace_command): Use gdb_argv.
6138 * source.c (add_path, show_substitute_path_command)
6139 (unset_substitute_path_command, set_substitute_path_command):
6140 Use gdb_argv.
6141 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
6142 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
6143 * remote.c (extended_remote_run, remote_put_command)
6144 (remote_get_command, remote_delete_command): Use gdb_argv.
6145 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
6146 (gdbsim_open): Use gdb_argv.
6147 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
6148 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
6149 * procfs.c (procfs_info_proc): Use gdb_argv.
6150 * interps.c (interpreter_exec_cmd): Use gdb_argv.
6151 * infrun.c (handle_command): Use gdb_argv.
6152 * inferior.c (add_inferior_command, clone_inferior_command):
6153 Use gdb_argv.
6154 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
6155 * exec.c (exec_file_command): Use gdb_argv.
6156 * cli/cli-cmds.c (alias_command): Use gdb_argv.
6157 * compile/compile.c (build_argc_argv): Use gdb_argv.
6158
0d50bde3
TT
61592017-08-03 Tom Tromey <tom@tromey.com>
6160
6161 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
6162
7f968c89
TT
61632017-08-03 Tom Tromey <tom@tromey.com>
6164
6165 * python/python.c (compute_python_string): Return std::string.
6166 (gdbpy_eval_from_control_command): Update.
6167 (do_start_initialization): Use std::string.
6168 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
6169 xstrprintf.
6170 * python/py-breakpoint.c (local_setattro): Use string_printf, not
6171 xstrprintf.
6172
3c9ebddd
TT
61732017-08-03 Tom Tromey <tom@tromey.com>
6174
6175 * top.h (do_restore_instream_cleanup): Remove.
6176 * top.c (do_restore_instream_cleanup): Remove.
6177 (read_command_file): Use scoped_restore.
6178 * cli/cli-script.c (execute_user_command): Use scoped_restore.
6179
b51b225e
TT
61802017-08-03 Tom Tromey <tom@tromey.com>
6181
6182 * cli/cli-script.c (execute_user_command)
6183 (execute_control_command): Use scoped_restore.
6184
ac991630
TT
61852017-08-03 Tom Tromey <tom@tromey.com>
6186
6187 * cli/cli-script.c (do_restore_user_call_depth): Remove.
6188 (execute_user_command): Remove user_call_depth; use
6189 user_args_stack's size instead.
6190
898e0c8e
TT
61912017-08-03 Tom Tromey <tom@tromey.com>
6192
6193 * top.h (in_user_command): Remove.
6194 * top.c (in_user_command): Remove.
6195 * cli/cli-script.c (do_restore_user_call_depth)
6196 (execute_user_command): Update.
6197
26fcd5d7
TT
61982017-08-03 Tom Tromey <tom@tromey.com>
6199
6200 * valops.c (search_struct_method): Use gdb::byte_vector.
6201 * valarith.c (value_concat): Use std::vector.
6202 * target.c (memory_xfer_partial): Use gdb::byte_vector.
6203 (simple_search_memory): Likewise.
6204 * printcmd.c (find_string_backward): Use gdb::byte_vector.
6205 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
6206 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
6207 * elfread.c (elf_rel_plt_read): Use std::string.
6208 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
6209 * cli/cli-dump.c (restore_section_callback): Use
6210 gdb::byte_vector.
6211
7c218e6c
TT
62122017-08-03 Tom Tromey <tom@tromey.com>
6213
6214 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
6215
31b68d4a
TT
62162017-08-03 Tom Tromey <tom@tromey.com>
6217
6218 * tui/tui-regs.c (tui_restore_gdbout): Remove.
6219 (tui_register_format): Use scoped_restore.
6220
2ec845e7
TT
62212017-08-03 Tom Tromey <tom@tromey.com>
6222
6223 * reverse.c (exec_direction_default): Remove.
6224 (exec_reverse_once): Use scoped_restore.
6225 * remote.c (restore_remote_timeout): Remove.
6226 (remote_flash_erase, remote_flash_write, remote_flash_done)
6227 (readchar, remote_serial_write): Use scoped_restore.
6228 * cli/cli-script.c (struct source_cleanup_lines_args)
6229 (source_cleanup_lines): Remove.
6230 (script_from_file): Use scoped_restore.
6231 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
6232 (source_command): Use scoped_restore.
6233
b3bc8453
TT
62342017-08-03 Tom Tromey <tom@tromey.com>
6235
6236 * utils.h (make_cleanup_free_so): Remove.
6237 * utils.c (do_free_so, make_cleanup_free_so): Remove.
6238 * solist.h (struct so_deleter): New.
6239 (so_list_up): New typedef.
6240 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
6241
e3ad2841
TT
62422017-08-03 Tom Tromey <tom@tromey.com>
6243
6244 * utils.h (make_cleanup_restore_current_language): Remove.
6245 * utils.c (do_restore_current_language)
6246 (make_cleanup_restore_current_language): Remove.
6247 * parse.c (parse_exp_in_context_1)
6248 (parse_expression_with_language): Use
6249 scoped_restore_current_language.
6250 * mi/mi-main.c (mi_cmd_execute): Use
6251 scoped_restore_current_language.
6252 * language.h (scoped_restore_current_language): New class.
6253
b80cf838
TT
62542017-08-03 Tom Tromey <tom@tromey.com>
6255
6256 * compile/compile.c (cleanup_unlink_file): Remove.
6257 (compile_to_object): Use gdb::unlinker.
6258 (eval_compile_command): Likewise.
6259
fad0444a
TT
62602017-08-03 Tom Tromey <tom@tromey.com>
6261
6262 * utils.h (make_cleanup_fclose): Remove.
6263 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
6264
6e7bc05c
TT
62652017-08-03 Tom Tromey <tom@tromey.com>
6266
6267 * top.c (open_terminal_stream): Return gdb_file_up.
6268 (new_ui_command): Update.
6269
4a45905b
TT
62702017-08-03 Tom Tromey <tom@tromey.com>
6271
6272 * source.c (print_source_lines_base, forward_search_command)
6273 (reverse_search_command): Use gdb_file_up.
6274
7cd06d6e
TT
62752017-08-03 Tom Tromey <tom@tromey.com>
6276
6277 * fbsd-nat.c (fbsd_find_memory_regions): Update.
6278
ed166945
TT
62792017-08-03 Tom Tromey <tom@tromey.com>
6280
6281 * cli/cli-cmds.c (find_and_open_script): Change return type.
6282 Remove "streamp" and "full_path" parameters.
6283 (source_script_with_search): Update.
6284 * auto-load.c (source_script_file): Update.
6285 * cli/cli-cmds.h (find_and_open_script): Change type.
6286 (open_script): New struct.
6287
d419f42d
TT
62882017-08-03 Tom Tromey <tom@tromey.com>
6289
6290 * xml-support.c (xml_fetch_content_from_file): Update.
6291 * ui-file.c (stdio_file::open): Update.
6292 * tracefile-tfile.c (tfile_start): Update.
6293 * remote.c (remote_file_put, remote_file_get): Update.
6294 * nat/linux-procfs.c (linux_proc_get_int)
6295 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
6296 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
6297 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
6298 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6299 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
6300 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
6301 * linux-nat.c (linux_proc_pending_signals): Update.
6302 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
6303 (file_closer): Remove.
6304 * compile/compile.c (compile_to_object): Update.
6305 * common/filestuff.h (struct gdb_file_deleter): New.
6306 (gdb_file_up): New typedef.
6307 (gdb_fopen_cloexec): Change return type.
6308 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
6309 * cli/cli-dump.c (fopen_with_cleanup): Remove.
6310 (dump_binary_file, restore_binary_file): Update.
6311 * auto-load.c (auto_load_objfile_script_1): Update.
6312
4a2b031d
TT
63132017-08-03 Tom Tromey <tom@tromey.com>
6314
6315 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
6316 (info_static_tracepoint_markers_command): Likewise.
6317 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
6318 * skip.c (skip_info): Use ui_out_emit_table.
6319 * progspace.c (print_program_space): Use ui_out_emit_table.
6320 * osdata.c (info_osdata): Use ui_out_emit_table.
6321 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
6322 ui_out_emit_table.
6323 * linux-thread-db.c (info_auto_load_libthread_db): Use
6324 ui_out_emit_table.
6325 * inferior.c (print_inferior): Use ui_out_emit_table.
6326 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
6327 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
6328 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
6329 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
6330 * ui-out.h (class ui_out_emit_table): New.
6331
a4f320fd
MR
63322017-08-02 Maciej W. Rozycki <macro@imgtec.com>
6333
6334 * mips-tdep.c (mips_fpu_type_str): New function.
6335 (mips_dump_tdep): Call it.
6336
a2f1f308
MR
63372017-08-01 Maciej W. Rozycki <macro@imgtec.com>
6338
6339 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
6340 `->mips_fpu_type'.
6341
7e5ed83b
XR
63422017-07-31 Xavier Roirand <roirand@adacore.com>
6343
6344 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6345
4c9dc811
XR
63462017-07-27 Xavier Roirand <roirand@adacore.com>
6347
6348 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
6349
27d41eac
YQ
63502017-07-26 Yao Qi <yao.qi@linaro.org>
6351
6352 * cli/cli-cmds.c (maintenancechecklist): New variable.
6353 * gdbcmd.h (maintenancechecklist): Declare it.
6354 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
6355 Call i386_linux_read_description with different masks.
6356 * maint.c (maintenance_check_command): New function.
6357 (_initialize_maint_cmds): Call add_prefix_cmd.
6358 * target-descriptions.c (tdesc_reg): override operator != and ==.
6359 (tdesc_type): Likewise.
6360 (tdesc_feature): Likewise.
6361 (target_desc): Likewise.
6362 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
6363 (maintenance_check_xml_descriptions): New function.
6364 (_initialize_target_descriptions) Add command "xml-descriptions".
6365 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
6366
ea03d0d3
YQ
63672017-07-26 Yao Qi <yao.qi@linaro.org>
6368
6369 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
6370 Include features/i386/32bit-*.c.
6371 (i386_linux_read_description): Generate target description if it
6372 doesn't exist.
6373 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
6374 functions.
6375 * features/i386/32bit-linux.c: Re-generated.
6376 * features/i386/32bit-sse.c: Likewise.
6377 * target-descriptions.c (print_c_feature::visit): Print code to
6378 set register number if needed.
6379 (print_c_feature) <m_next_regnum>: New field.
6380
25aa13e5
YQ
63812017-07-26 Yao Qi <yao.qi@linaro.org>
6382
6383 * features/Makefile (CFILES): Rename with TDESC_CFILES.
6384 (FEATURE_XMLFILES): New.
6385 (FEATURE_CFILES): New.
6386 New rules.
6387 (clean-cfiles): Remove generated c files.
6388 * features/i386/32bit-avx.c: Generated.
6389 * features/i386/32bit-avx512.c: Generated.
6390 * features/i386/32bit-core.c: Generated.
6391 * features/i386/32bit-linux.c: Generated.
6392 * features/i386/32bit-mpx.c: Generated.
6393 * features/i386/32bit-pkeys.c: Generated.
6394 * features/i386/32bit-sse.c: Generated.
6395 * target-descriptions.c: Include algorithm.
6396 (tdesc_element_visitor): Add method visit_end.
6397 (print_c_tdesc): Implement visit_end.
6398 (print_c_tdesc:: m_filename_after_features): Move it to
6399 protected.
6400 (print_c_feature): New class.
6401 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
6402 name starts with "i386/32bit-".
6403
6eb1e6a8
YQ
64042017-07-26 Yao Qi <yao.qi@linaro.org>
6405
6406 * target-descriptions.c (tdesc_element_visitor): New class.
6407 (tdesc_element): New class.
6408 (tdesc_reg): Inherit from tdesc_element.
6409 (tdesc_reg::accept): New function.
6410 (tdesc_type): Inherit from tdesc_element.
6411 (tdesc_type::accept): New function.
6412 (tdesc_feature): Inherit from tdesc_element.
6413 (tdesc_feature::accept): New function.
6414 (target_desc): Inherit from tdesc_element.
6415 (target_desc::target_desc): New.
6416 (target_desc::~target_desc): New.
6417 (target_desc::accept): New.
6418 (allocate_target_description): Use new.
6419 (free_target_description): Use delete.
6420 (print_c_tdesc): New class.
6421 (maint_print_c_tdesc_cmd): Adjust.
6422
6423 * features/aarch64.c: Re-generated.
6424 * features/arc-arcompact.c: Re-generated.
6425 * features/arc-v2.c: Re-generated.
6426 * features/arm/arm-with-iwmmxt.c: Re-generated.
6427 * features/arm/arm-with-m.c: Re-generated.
6428 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
6429 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
6430 * features/arm/arm-with-neon.c: Re-generated.
6431 * features/arm/arm-with-vfpv2.c: Re-generated.
6432 * features/arm/arm-with-vfpv3.c: Re-generated.
6433 * features/i386/amd64-avx-avx512.c: Re-generated.
6434 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
6435 * features/i386/amd64-avx.c: Re-generated.
6436 * features/i386/amd64-avx-linux.c: Re-generated.
6437 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
6438 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
6439 * features/i386/amd64-avx-mpx.c: Re-generated.
6440 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
6441 * features/i386/amd64.c: Re-generated.
6442 * features/i386/amd64-linux.c: Re-generated.
6443 * features/i386/amd64-mpx.c: Re-generated.
6444 * features/i386/amd64-mpx-linux.c: Re-generated.
6445 * features/i386/i386-avx-avx512.c: Re-generated.
6446 * features/i386/i386-avx-avx512-linux.c: Re-generated.
6447 * features/i386/i386-avx.c: Re-generated.
6448 * features/i386/i386-avx-linux.c: Re-generated.
6449 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
6450 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
6451 * features/i386/i386-avx-mpx.c: Re-generated.
6452 * features/i386/i386-avx-mpx-linux.c: Re-generated.
6453 * features/i386/i386.c: Re-generated.
6454 * features/i386/i386-linux.c: Re-generated.
6455 * features/i386/i386-mmx.c: Re-generated.
6456 * features/i386/i386-mmx-linux.c: Re-generated.
6457 * features/i386/i386-mpx.c: Re-generated.
6458 * features/i386/i386-mpx-linux.c: Re-generated.
6459 * features/i386/x32-avx-avx512.c: Re-generated.
6460 * features/i386/x32-avx-avx512-linux.c: Re-generated.
6461 * features/i386/x32-avx.c: Re-generated.
6462 * features/i386/x32-avx-linux.c: Re-generated.
6463 * features/i386/x32.c: Re-generated.
6464 * features/i386/x32-linux.c: Re-generated.
6465 * features/microblaze.c: Re-generated.
6466 * features/microblaze-with-stack-protect.c: Re-generated.
6467 * features/mips64-dsp-linux.c: Re-generated.
6468 * features/mips64-linux.c: Re-generated.
6469 * features/mips-dsp-linux.c: Re-generated.
6470 * features/mips-linux.c: Re-generated.
6471 * features/nds32.c: Re-generated.
6472 * features/nios2.c: Re-generated.
6473 * features/nios2-linux.c: Re-generated.
6474 * features/rs6000/powerpc-32.c: Re-generated.
6475 * features/rs6000/powerpc-32l.c: Re-generated.
6476 * features/rs6000/powerpc-403.c: Re-generated.
6477 * features/rs6000/powerpc-403gc.c : Re-generated.
6478 * features/rs6000/powerpc-405.c: Re-generated.
6479 * features/rs6000/powerpc-505.c: Re-generated.
6480 * features/rs6000/powerpc-601.c: Re-generated.
6481 * features/rs6000/powerpc-602.c: Re-generated.
6482 * features/rs6000/powerpc-603.c: Re-generated.
6483 * features/rs6000/powerpc-604.c: Re-generated.
6484 * features/rs6000/powerpc-64.c: Re-generated.
6485 * features/rs6000/powerpc-64l.c: Re-generated.
6486 * features/rs6000/powerpc-7400.c: Re-generated.
6487 * features/rs6000/powerpc-750.c: Re-generated.
6488 * features/rs6000/powerpc-860.c: Re-generated.
6489 * features/rs6000/powerpc-altivec32.c: Re-generated.
6490 * features/rs6000/powerpc-altivec32l.c: Re-generated.
6491 * features/rs6000/powerpc-altivec64.c: Re-generated.
6492 * features/rs6000/powerpc-altivec64l.c: Re-generated.
6493 * features/rs6000/powerpc-cell32l.c: Re-generated.
6494 * features/rs6000/powerpc-cell64l.c: Re-generated.
6495 * features/rs6000/powerpc-e500.c: Re-generated.
6496 * features/rs6000/powerpc-e500l.c: Re-generated.
6497 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
6498 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
6499 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
6500 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
6501 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
6502 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
6503 * features/rs6000/powerpc-vsx32.c: Re-generated.
6504 * features/rs6000/powerpc-vsx32l.c: Re-generated.
6505 * features/rs6000/powerpc-vsx64.c: Re-generated.
6506 * features/rs6000/powerpc-vsx64l.c: Re-generated.
6507 * features/rs6000/rs6000.c: Re-generated.
6508 * features/s390-linux32.c: Re-generated.
6509 * features/s390-linux32v1.c: Re-generated.
6510 * features/s390-linux32v2.c: Re-generated.
6511 * features/s390-linux64.c: Re-generated.
6512 * features/s390-linux64v1.c: Re-generated.
6513 * features/s390-linux64v2.c: Re-generated.
6514 * features/s390-te-linux64.c: Re-generated.
6515 * features/s390-tevx-linux64.c: Re-generated.
6516 * features/s390-vx-linux64.c: Re-generated.
6517 * features/s390x-linux64.c: Re-generated.
6518 * features/s390x-linux64v1.c: Re-generated.
6519 * features/s390x-linux64v2.c: Re-generated.
6520 * features/s390x-te-linux64.c: Re-generated.
6521 * features/s390x-tevx-linux64.c: Re-generated.
6522 * features/s390x-vx-linux64.c: Re-generated.
6523 * features/sparc/sparc32-solaris.c: Re-generated.
6524 * features/sparc/sparc64-solaris.c: Re-generated.
6525 * features/tic6x-c62x.c: Re-generated.
6526 * features/tic6x-c62x-linux.c: Re-generated.
6527 * features/tic6x-c64x.c: Re-generated.
6528 * features/tic6x-c64x-linux.c: Re-generated.
6529 * features/tic6x-c64xp.c: Re-generated.
6530 * features/tic6x-c64xp-linux.c: Re-generated.
6531
35b4818d
YQ
65322017-07-26 Yao Qi <yao.qi@linaro.org>
6533
6534 * i386-linux-tdep.c (i386_linux_read_description): New function.
6535 (i386_linux_core_read_description): Call
6536 i386_linux_read_description.
6537 * i386-linux-tdep.h (i386_linux_read_description): Declare.
6538 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
6539 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
6540 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
6541 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
6542 * x86-linux-nat.c (x86_linux_read_description): Call
6543 i386_linux_read_description.
6544
8e2141c6
YQ
65452017-07-26 Yao Qi <yao.qi@linaro.org>
6546
6547 * NEWS: Mention it.
6548 * features/Makefile (%.c: %.xml): Pass the xml file name to
6549 command "maint print c-tdesc".
6550 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
6551 name from 'arg'.
6552
b468ff4c
YQ
65532017-07-26 Yao Qi <yao.qi@linaro.org>
6554
6555 * target-descriptions.c (target_desc): Add ctor and dtor. Do
6556 in-class initialization.
6557 (tdesc_create_feature): Call new instead of XCNEW.
6558 (free_target_description): Ue delete.
6559
b9c0e1b4
JB
65602017-07-25 John Baldwin <jhb@FreeBSD.org>
6561
6562 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
6563
a04b5337
YQ
65642017-07-25 Yao Qi <yao.qi@linaro.org>
6565
6566 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
6567 constant.
6568 (amd64_x32_init_abi): Likewise.
6569 * amd64-tdep.h (amd64_init_abi): Update declaration.
6570 (amd64_x32_init_abi): Likewise.
6571
02ad7fc2
YQ
65722017-07-25 Yao Qi <yao.qi@linaro.org>
6573
6574 PR tdep/21717
6575 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
6576 condition for FPSCR.
6577 (arm_linux_store_inferior_registers): Likewise.
6578
b6f48cb0
TT
65792017-07-22 Tom Tromey <tom@tromey.com>
6580
6581 * break-catch-syscall.c (struct catch_syscall_inferior_data)
6582 <syscalls_counts>: Now a std::vector.
6583 (get_catch_syscall_inferior_data): Use "new".
6584 (catch_syscall_inferior_data_cleanup): Use "delete".
6585 (insert_catch_syscall, remove_catch_syscall)
6586 (clear_syscall_counts): Update.
6587
e12c9b7a
TT
65882017-07-22 Tom Tromey <tom@tromey.com>
6589
6590 * break-catch-syscall.c (syscall_catchpoint)
6591 <syscalls_to_be_caught>: Now a std::vector<int>
6592 (~syscall_catchpoint): Remove.
6593 (insert_catch_syscall, remove_catch_syscall)
6594 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
6595 (print_mention_catch_syscall, print_recreate_catch_syscall):
6596 Update.
6597 (create_syscall_event_catchpoint): Change type of "filter"
6598 parameter.
6599 (catch_syscall_split_args): Return a std::vector.
6600 (catch_syscall_command_1, catching_syscall_number_1): Update.
6601
4fa8aeac
TT
66022017-07-22 Tom Tromey <tom@tromey.com>
6603
6604 * break-catch-throw.c (struct exception_catchpoint)
6605 <exception_rx>: Now a std::string.
6606 (~exception_catchpoint): Remove.
6607 (print_one_detail_exception_catchpoint): Update.
6608 (handle_gnu_v3_exceptions): Change type of except_rx.
6609 (extract_exception_regexp): Return a std::string.
6610 (catch_exception_command_1): Update.
6611
f746a154
TT
66122017-07-22 Tom Tromey <tom@tromey.com>
6613
6614 * break-catch-sig.c (gdb_signal_type): Remove typedef.
6615 (struct signal_catchpoint) <signals_to_be_caught>: Now a
6616 std::vector.
6617 <catch_all>: Now a bool.
6618 (~signal_catchpoint): Remove.
6619 (signal_catchpoint_insert_location)
6620 (signal_catchpoint_remove_location)
6621 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
6622 (signal_catchpoint_print_mention)
6623 (signal_catchpoint_print_recreate)
6624 (signal_catchpoint_explains_signal): Update.
6625 (create_signal_catchpoint): Change type of "filter" and
6626 "catch_all".
6627 (catch_signal_split_args): Return a std::vector. Change type of
6628 "catch_all".
6629 (catch_signal_command): Update.
6630
47e77640
PA
66312017-07-20 Pedro Alves <palves@redhat.com>
6632
6633 * ada-lang.c (ada_language_defn): Make extern.
6634 (_initialize_ada_language): Remove add_language call.
6635 * c-lang.c (c_language_defn, cplus_language_defn)
6636 (asm_language_defn, minimal_language_defn): Make extern.
6637 (_initialize_c_language): Delete.
6638 * completer.c (compare_cstrings): Delete, moved to utils.h.
6639 * d-lang.c (d_language_defn): Make extern.
6640 (_initialize_d_language): Remove add_language calls.
6641 * defs.h (enum language): Add comment.
6642 * f-lang.c (f_language_defn): Make extern.
6643 (_initialize_f_language): Remove add_language call.
6644 * go-lang.c (go_language_defn): Make extern.
6645 (_initialize_go_language): Remove add_language call.
6646 * language.c: Include <algorithm>.
6647 (languages): Redefine as const array.
6648 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
6649 (set_language_command): Handle "local". Use for-range loop.
6650 (set_language): Remove loop.
6651 (language_enum): Rewrite.
6652 (language_def, language_str): Remove loops.
6653 (add_language): Delete.
6654 (add_set_language_command): New, based on add_languages.
6655 (skip_language_trampoline): Adjust.
6656 (local_language_defn): Delete.
6657 (language_gdbarch_post_init): Adjust.
6658 (_initialize_language): Remove add_language calls. Call
6659 add_set_language_command.
6660 * language.h (add_language): Delete.
6661 (auto_language_defn)
6662 (unknown_language_defn, minimal_language_defn, ada_language_defn)
6663 (asm_language_defn, c_language_defn, cplus_language_defn)
6664 (d_language_defn, f_language_defn, go_language_defn)
6665 (m2_language_defn, objc_language_defn, opencl_language_defn)
6666 (pascal_language_defn, rust_language_defn): Declare.
6667 * m2-lang.c (m2_language_defn): Make extern.
6668 (_initialize_m2_language): Remove add_language call.
6669 * objc-lang.c (objc_language_defn): Make extern.
6670 (_initialize_objc_language): Remove add_language call.
6671 * opencl-lang.c (opencl_language_defn): Make extern.
6672 (_initialize_opencl_language): Remove add_language call.
6673 * p-lang.c (pascal_language_defn): Make extern.
6674 (_initialize_pascal_language): Delete.
6675 * rust-lang.c (rust_language_defn): Make extern.
6676 (_initialize_rust_language): Delete.
6677 * utils.h (compare_cstrings): New static inline function.
6678
edb0c9cb
PA
66792017-07-20 Pedro Alves <palves@redhat.com>
6680
6681 * ada-lang.c (ada_to_fixed_type_1): Adjust.
6682 (get_var_value): Constify parameters.
6683 (get_int_var_value): Change prototype.
6684 (to_fixed_range_type): Adjust.
6685 * ada-lang.h (get_int_var_value): Change prototype.
6686
a778f165
PA
66872017-07-20 Pedro Alves <palves@redhat.com>
6688
6689 * dwarf2read.c (dw2_lookup_symbol): Use
6690 SYMBOL_MATCHES_SEARCH_NAME.
6691 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
6692
42edd901
PA
66932017-07-20 Pedro Alves <palves@redhat.com>
6694
6695 * block.c (block_iter_name_step, block_iter_name_first)
6696 (block_iter_name_next): Delete.
6697 (block_lookup_symbol_primary): Adjust to use
6698 dict_iter_match_first/dict_iter_match_next.
6699 * block.h (block_iter_name_first, block_iter_name_next): Delete
6700 declarations.
6701 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
6702 dict_iter_match_first/dict_iter_match_next.
6703
cf325299
PA
67042017-07-20 Pedro Alves <palves@redhat.com>
6705
6706 * cp-support.c (cp_find_first_component_aux): Add missing case for
6707 end of string.
6708
c5ed0576
DB
67092017-07-18 David Blaikie <dblaikie@gmail.com>
6710
6711 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
6712 of dwo_cu's dwo_file.
6713
27841e76
YQ
67142017-07-18 Yao Qi <yao.qi@linaro.org>
6715
6716 * remote.c (store_registers_using_G): Remove one line comment.
6717
cfb7e58b
YQ
67182017-07-18 Yao Qi <yao.qi@linaro.org>
6719
6720 * regcache.c (regcache_cpy): Simplify it.
6721 (regcache::cpy_no_passthrough): Remove it.
6722 * regcache.h (cpy_no_passthrough): Remove it.
6723 (regcache_dup, regcache_cpy): Update comments.
6724
386535dd
PA
67252017-07-18 Pedro Alves <palves@redhat.com>
6726
6727 * remote-sim.c (sim_command_completer): Adjust to work with a
6728 completion_tracker instead of a VEC.
6729
c45ec17c
PA
67302017-07-17 Pedro Alves <palves@redhat.com>
6731
6732 * completer.c (complete_source_filenames): New function.
6733 (complete_address_and_linespec_locations): New function.
6734 (location_completer): Use complete_address_and_linespec_locations.
6735 (completion_tracker::build_completion_result): Honor the tracker's
6736 request to suppress append.
6737 * completer.h (completion_tracker::suppress_append_ws)
6738 (completion_tracker::set_suppress_append_ws): New methods.
6739 (completion_tracker::m_suppress_append_ws): New field.
6740 (complete_source_filenames): New declaration.
6741 * linespec.c (linespec_complete_what): New.
6742 (struct ls_parser) <complete_what, completion_word,
6743 completion_quote_char, completion_quote_end, completion_tracker>:
6744 New fields.
6745 (string_find_incomplete_keyword_at_end): New.
6746 (linespec_lexer_lex_string): Record quote char. If in completion
6747 mode, don't throw.
6748 (linespec_lexer_consume_token): Advance the completion word point.
6749 (linespec_lexer_peek_token): Save/restore completion info.
6750 (save_stream_and_consume_token): New.
6751 (set_completion_after_number): New.
6752 (linespec_parse_basic): Set what to complete next depending on
6753 token. Handle function and label completions specially.
6754 (parse_linespec): Disable objc shortcut in completion mode. Set
6755 what to complete next depending on token type. Skip keyword if in
6756 completion mode.
6757 (complete_linespec_component, linespec_complete): New.
6758 * linespec.h (linespec_complete): Declare.
6759
be966d42
PA
67602017-07-17 Pedro Alves <palves@redhat.com>
6761
6762 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
6763 Handle 'operator<' / 'operator<<'.
6764
a2459270
PA
67652017-07-17 Pedro Alves <palves@redhat.com>
6766
6767 * completer.c (collect_explicit_location_matches): Handle
6768 MATCH_LABEL.
6769 (convert_explicit_location_to_linespec): New, factored out from
6770 ...
6771 (convert_explicit_location_to_sals): ... this.
6772 (complete_label): New.
6773 (linespec_complete_label, find_label_symbols_in_block): New.
6774 (find_label_symbols): Add completion_mode parameter and adjust to
6775 call find_label_symbols_in_block.
6776 * linespec.h (linespec_complete_label): Declare.
6777
c6756f62
PA
67782017-07-17 Pedro Alves <palves@redhat.com>
6779
6780 * ada-lang.c (ada_collect_symbol_completion_matches): Add
6781 complete_symbol_mode parameter.
6782 * cli/cli-cmds.c (complete_command): Get the completion result out
6783 of the handle_brkchars tracker if used a custom word point.
6784 * completer.c: Include "linespec.h".
6785 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
6786 (advance_to_expression_complete_word_point): New.
6787 (completion_tracker::completes_to_completion_word): New.
6788 (complete_files_symbols): Pass down
6789 complete_symbol_mode::EXPRESSION.
6790 (explicit_options, probe_options): New.
6791 (collect_explicit_location_matches): Complete on the
6792 explictit_loc->foo instead of word. Use
6793 linespec_complete_function. Handle MATCH_LINE. Handle offering
6794 keyword and options completions.
6795 (backup_text_ptr): Delete.
6796 (skip_keyword): New.
6797 (complete_explicit_location): Remove 'word' parameter. Add
6798 language, quoted_arg_start and quoted_arg_end parameters.
6799 Rewrite, parsing left to right.
6800 (location_completer): Rewrite.
6801 (location_completer_handle_brkchars): New function.
6802 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
6803 (enum complete_line_internal_reason): Adjust comments.
6804 (completion_tracker::discard_completions): New.
6805 (completer_handle_brkchars_func_for_completer): Handle
6806 location_completer.
6807 (gdb_custom_word_point_brkchars)
6808 (gdb_org_rl_basic_quote_characters): New.
6809 (gdb_completion_word_break_characters_throw)
6810 (completion_find_completion_word): Handle trackers that use a
6811 custom word point.
6812 (completion_tracker::advance_custom_word_point_by): New.
6813 (completion_tracker::build_completion_result): Don't rely on
6814 readline appending the quote char.
6815 (gdb_rl_attempted_completion_function_throw): Handle trackers that
6816 use a custom word point.
6817 (gdb_rl_attempted_completion_function): Restore
6818 rl_basic_quote_characters.
6819 * completer.h (class completion_tracker): Extend intro comment.
6820 (completion_tracker::set_quote_char)
6821 (completion_tracker::quote_char)
6822 (completion_tracker::set_use_custom_word_point)
6823 (completion_tracker::use_custom_word_point)
6824 (completion_tracker::custom_word_point)
6825 (completion_tracker::set_custom_word_point)
6826 (completion_tracker::advance_custom_word_point_by)
6827 (completion_tracker::completes_to_completion_word)
6828 (completion_tracker::discard_completions): New methods.
6829 (completion_tracker::m_quote_char)
6830 (completion_tracker::m_use_custom_word_point)
6831 (completion_tracker::m_custom_word_point): New fields.
6832 (advance_to_expression_complete_word_point): Declare.
6833 * f-lang.c (f_collect_symbol_completion_matches): Add
6834 complete_symbol_mode parameter.
6835 * language.h (struct language_defn)
6836 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
6837 parameter.
6838 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
6839 (linespec_complete_function): New function.
6840 (linespec_lexer_lex_keyword): Adjust.
6841 * linespec.h (linespec_keywords, linespec_complete_function): New
6842 declarations.
6843 * location.c (find_end_quote): New function.
6844 (explicit_location_lex_one): Add explicit_completion_info
6845 parameter. Save quoting info. Don't throw if being called for
6846 completion. Don't handle Ada operators here.
6847 (is_cp_operator, skip_op_false_positives, first_of)
6848 (explicit_location_lex_one_function): New function.
6849 (string_to_explicit_location): Replace 'dont_throw' parameter with
6850 an explicit_completion_info pointer parameter. Handle it. Don't
6851 use explicit_location_lex_one to lex function names. Use
6852 explicit_location_lex_one_function instead.
6853 * location.h (struct explicit_completion_info): New.
6854 (string_to_explicit_location): Replace 'dont_throw' parameter with
6855 an explicit_completion_info pointer parameter.
6856 * symtab.c (default_collect_symbol_completion_matches_break_on):
6857 Add complete_symbol_mode parameter. Handle LINESPEC mode.
6858 (default_collect_symbol_completion_matches)
6859 (collect_symbol_completion_matches): Add complete_symbol_mode
6860 parameter.
6861 (collect_symbol_completion_matches_type): Pass down
6862 complete_symbol_mode::EXPRESSION.
6863 (collect_file_symbol_completion_matches): Add complete_symbol_mode
6864 parameter. Handle LINESPEC mode.
6865 * symtab.h (complete_symbol_mode): New.
6866 (default_collect_symbol_completion_matches_break_on)
6867 (default_collect_symbol_completion_matches)
6868 (collect_symbol_completion_matches)
6869 (collect_file_symbol_completion_matches): Add complete_symbol_mode
6870 parameter.
6871
1d550c82
PA
68722017-07-17 Pedro Alves <palves@redhat.com>
6873
6874 * utils.c (enum class strncmp_iw_mode): New.
6875 (strcmp_iw): Rename to ...
6876 (strncmp_iw_with_mode): ... this. Add string2_len and mode
6877 parameters. Handle them.
6878 (strncmp_iw): New.
6879 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
6880 * utils.h (strncmp_iw): Declare.
6881 (strcmp_iw): Move describing comments here.
6882
8090b426
PA
68832017-07-17 Pedro Alves <palves@redhat.com>
6884
6885 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
6886 CP_OPERATOR_STR.
6887 * c-typeprint.c (is_type_conversion_operator): Use
6888 CP_OPERATOR_STR.
6889 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
6890 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
6891 CP_OPERATOR_LEN.
6892 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
6893 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
6894 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
6895 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
6896 CP_OPERATOR_STR.
6897 * location.c: Include "cp-support.h".
6898 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
6899 CP_OPERATOR_STR.
6900 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
6901 CP_OPERATOR_LEN.
6902
6a2c1b87
PA
69032017-07-17 Pedro Alves <palves@redhat.com>
6904
6905 * cli/cli-cmds.c (complete_command): Use a completion tracker
6906 along with completion_find_completion_word for handle_brkchars
6907 phase.
6908 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
6909 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
6910 (struct gdb_rl_completion_word_info): New.
6911 (gdb_rl_find_completion_word): New.
6912 (completion_find_completion_word): New.
6913 * completer.h (completion_find_completion_word): Declare.
6914
eb3ff9a5
PA
69152017-07-17 Pedro Alves <palves@redhat.com>
6916
6917 * ada-lang.c (symbol_completion_match): Adjust comments.
6918 (symbol_completion_add): Replace vector parameter with
6919 completion_tracker parameter. Use it.
6920 (ada_make_symbol_completion_list): Rename to...
6921 (ada_collect_symbol_completion_matches): ... this. Add
6922 completion_tracker parameter and use it.
6923 (ada_language_defn): Adjust.
6924 * break-catch-syscall.c (catch_syscall_completer): Adjust
6925 prototype and work with completion_tracker instead of VEC.
6926 * breakpoint.c (condition_completer): Adjust prototype and work
6927 with completion_tracker instead of VEC.
6928 * c-lang.c (c_language_defn, cplus_language_defn)
6929 (asm_language_defn, minimal_language_defn): Adjust to renames.
6930 * cli/cli-cmds.c (complete_command): Rework using
6931 completion_tracker. Catch exceptions when completing.
6932 * cli/cli-decode.c (integer_unlimited_completer)
6933 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
6934 with completion_tracker instead of VEC.
6935 * command.h (struct completion_tracker): Forward declare.
6936 (completer_ftype, completer_handle_brkchars_ftype): Change
6937 types.
6938 (complete_on_cmdlist, complete_on_enum): Adjust.
6939 * completer.c: Include <algorithm>.
6940 (struct gdb_completer_state): New.
6941 (current_completion): New global.
6942 (readline_line_completion_function): Delete.
6943 (noop_completer, filename_completer)
6944 (filename_completer_handle_brkchars, complete_files_symbols)
6945 (linespec_location_completer): Adjust to work with a
6946 completion_tracker instead of a VEC.
6947 (string_or_empty): New.
6948 (collect_explicit_location_matches): Adjust to work with a
6949 completion_tracker instead of a VEC.
6950 (explicit_location_completer): Rename to ...
6951 (complete_explicit_location): ... this and adjust to work with a
6952 completion_tracker instead of a VEC.
6953 (location_completer): Adjust to work with a completion_tracker
6954 instead of a VEC.
6955 (add_struct_fields): Adjust to work with a completion_list instead
6956 of VEC.
6957 (expression_completer): Rename to ...
6958 (complete_expression): ... this and adjust to work with a
6959 completion_tracker instead of a VEC. Use complete_files_symbols.
6960 (expression_completer): Reimplement on top of complete_expression.
6961 (symbol_completer): Adjust to work with a completion_tracker
6962 instead of a VEC.
6963 (enum complete_line_internal_reason): Add describing comments.
6964 (complete_line_internal_normal_command): Adjust to work with a
6965 completion_tracker instead of a VEC.
6966 (complete_line_internal): Rename to ...
6967 (complete_line_internal_1): ... this and adjust to work with a
6968 completion_tracker instead of a VEC. Assert TEXT is NULL in the
6969 handle_brkchars phase.
6970 (new_completion_tracker): Delete.
6971 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
6972 complete_line_internal_1.
6973 (free_completion_tracker): Delete.
6974 (INITIAL_COMPLETION_HTAB_SIZE): New.
6975 (completion_tracker::completion_tracker)
6976 (completion_tracker::~completion_tracker): New.
6977 (maybe_add_completion): Delete.
6978 (completion_tracker::maybe_add_completion)
6979 (completion_tracker::add_completion)
6980 (completion_tracker::add_completions): New.
6981 (throw_max_completions_reached_error): Delete.
6982 (complete_line): Adjust to work with a completion_tracker instead
6983 of a VEC. Don't create a completion_tracker_t or check for max
6984 completions here.
6985 (command_completer, command_completer_handle_brkchars)
6986 (signal_completer, reg_or_group_completer_1)
6987 (reg_or_group_completer, default_completer_handle_brkchars):
6988 Adjust to work with a completion_tracker.
6989 (gdb_completion_word_break_characters_throw): New.
6990 (gdb_completion_word_break_characters): Reimplement.
6991 (line_completion_function): Delete.
6992 (completion_tracker::recompute_lowest_common_denominator)
6993 (expand_preserving_ws)
6994 (completion_tracker::build_completion_result)
6995 (completion_result::completion_result)
6996 (completion_result::completion_result)
6997 (completion_result::~completion_result)
6998 (completion_result::completion_result)
6999 (completion_result::release_match_list, compare_cstrings)
7000 (completion_result::sort_match_list)
7001 (completion_result::reset_match_list)
7002 (gdb_rl_attempted_completion_function_throw)
7003 (gdb_rl_attempted_completion_function): New.
7004 * completer.h (completion_list, struct completion_result)
7005 (class completion_tracker): New.
7006 (complete_line): Add completion_tracker parameter.
7007 (readline_line_completion_function): Delete.
7008 (gdb_rl_attempted_completion_function): New.
7009 (noop_completer, filename_completer, expression_completer)
7010 (location_completer, symbol_completer, command_completer)
7011 (signal_completer, reg_or_group_completer): Update prototypes.
7012 (completion_tracker_t, new_completion_tracker)
7013 (make_cleanup_free_completion_tracker): Delete.
7014 (enum maybe_add_completion_enum): Delete.
7015 (maybe_add_completion): Delete.
7016 (throw_max_completions_reached_error): Delete.
7017 * corefile.c (complete_set_gnutarget): Adjust to work with a
7018 completion_tracker instead of a VEC.
7019 * cp-abi.c (cp_abi_completer): Adjust to work with a
7020 completion_tracker instead of a VEC.
7021 * d-lang.c (d_language_defn): Adjust.
7022 * disasm.c (disassembler_options_completer): Adjust to work with a
7023 completion_tracker instead of a VEC.
7024 * f-lang.c (f_make_symbol_completion_list): Rename to ...
7025 (f_collect_symbol_completion_matches): ... this. Adjust to work
7026 with a completion_tracker instead of a VEC.
7027 (f_language_defn): Adjust.
7028 * go-lang.c (go_language_defn): Adjust.
7029 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
7030 Adjust to work with a completion_tracker instead of a VEC.
7031 * infrun.c (handle_completer): Likewise.
7032 * interps.c (interpreter_completer): Likewise.
7033 * interps.h (interpreter_completer): Likewise.
7034 * language.c (unknown_language_defn, auto_language_defn)
7035 (local_language_defn): Adjust.
7036 * language.h (language_defn::la_make_symbol_completion_list):
7037 Rename to ...
7038 (language_defn::la_collect_symbol_completion_matches): ... this
7039 and adjust to work with a completion_tracker instead of a VEC.
7040 * m2-lang.c (m2_language_defn): Adjust.
7041 * objc-lang.c (objc_language_defn): Adjust.
7042 * opencl-lang.c (opencl_language_defn): Adjust.
7043 * p-lang.c (pascal_language_defn): Adjust.
7044 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
7045 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
7046 with a completion_tracker.
7047 * rust-lang.c (rust_language_defn): Adjust.
7048 * symtab.c (free_completion_list, do_free_completion_list)
7049 (return_val, completion_tracker): Delete.
7050 (completion_list_add_name, completion_list_add_symbol)
7051 (completion_list_add_msymbol, completion_list_objc_symbol)
7052 (completion_list_add_fields, add_symtab_completions): Add
7053 completion_tracker parameter and use it.
7054 (default_make_symbol_completion_list_break_on_1): Rename to...
7055 (default_collect_symbol_completion_matches_break_on): ... this.
7056 Add completion_tracker parameter and use it instead of allocating
7057 a completion tracker here.
7058 (default_make_symbol_completion_list_break_on): Delete old
7059 implementation.
7060 (default_make_symbol_completion_list): Delete.
7061 (default_collect_symbol_completion_matches): New.
7062 (make_symbol_completion_list): Delete.
7063 (collect_symbol_completion_matches): New.
7064 (make_symbol_completion_type): Rename to ...
7065 (collect_symbol_completion_matches_type): ... this. Add
7066 completion_tracker parameter and use it instead of VEC.
7067 (make_file_symbol_completion_list_1): Rename to...
7068 (collect_file_symbol_completion_matches): ... this. Add
7069 completion_tracker parameter and use it instead of VEC.
7070 (make_file_symbol_completion_list): Delete.
7071 (add_filename_to_list): Use completion_list instead of a VEC.
7072 (add_partial_filename_data::list): Now a completion_list.
7073 (make_source_files_completion_list): Work with a completion_list
7074 instead of a VEC.
7075 * symtab.h: Include "completer.h".
7076 (default_make_symbol_completion_list_break_on)
7077 (default_make_symbol_completion_list, make_symbol_completion_list)
7078 (make_symbol_completion_type, make_file_symbol_completion_list)
7079 (make_source_files_completion_list): Delete.
7080 (default_collect_symbol_completion_matches_break_on)
7081 (default_collect_symbol_completion_matches)
7082 (collect_symbol_completion_matches)
7083 (collect_symbol_completion_matches_type)
7084 (collect_file_symbol_completion_matches)
7085 (make_source_files_completion_list): New.
7086 * top.c (init_main): Don't install a rl_completion_entry_function
7087 hook. Install a rl_attempted_completion_function hook instead.
7088 * tui/tui-layout.c (layout_completer): Adjust to work with a
7089 completion_tracker.
7090 * tui/tui-regs.c (tui_reggroup_completer):
7091 * tui/tui-win.c (window_name_completer, focus_completer)
7092 (winheight_completer): Adjust to work with a completion_tracker.
7093 * value.c: Include "completer.h".
7094 (complete_internalvar): Adjust to work with a completion_tracker.
7095 * value.h (complete_internalvar): Likewise.
7096
6e1dbf8c
PA
70972017-07-17 Pedro Alves <palves@redhat.com>
7098
7099 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
7100 renames.
7101 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
7102 comments to completer_ftype's declaration.
7103 <completer_handle_brkchars>: Change type to
7104 completer_handle_brkchars_ftype.
7105 * command.h (completer_ftype): Add describing comment and give
7106 names to parameters.
7107 (completer_ftype_void): Rename to ...
7108 (completer_handle_brkchars_ftype) ... this. Add describing comment.
7109 (set_cmd_completer_handle_brkchars): Adjust.
7110 * completer.c (filename_completer_handle_brkchars): New function.
7111 (complete_line_internal_normal_command): New function, factored
7112 out from ...
7113 (complete_line_internal): ... here.
7114 (command_completer_handle_brkchars)
7115 (default_completer_handle_brkchars)
7116 (completer_handle_brkchars_func_for_completer): New functions.
7117 * completer.h (set_gdb_completion_word_break_characters): Delete
7118 declaration.
7119 (completer_handle_brkchars_func_for_completer): New declaration.
7120 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
7121 completer_handle_brkchars_func_for_completer.
7122
78b13106
PA
71232017-07-17 Pedro Alves <palves@redhat.com>
7124
7125 * completer.c (symbol_completer): New function, based on
7126 make_symbol_completion_list_fn.
7127 * completer.h (symbol_completer): New declaration.
7128 * guile/scm-cmd.c (cmdscm_completers): Adjust.
7129 * python/py-cmd.c (completers): Adjust.
7130 * symtab.c (make_symbol_completion_list_fn): Delete.
7131 * symtab.h (make_symbol_completion_list_fn): Delete.
7132 * cli/cli-decode.c (add_cmd): Adjust.
7133
bbf2f4df
PA
71342017-07-17 Pedro Alves <palves@redhat.com>
7135
7136 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
7137 * dwarf2read.c: Include "filename-seen-cache.h".
7138 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
7139 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
7140 * filename-seen-cache.c: New file.
7141 * filename-seen-cache.h: New file.
7142 * symtab.c: Include "filename-seen-cache.h".
7143 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
7144 (create_filename_seen_cache, clear_filename_seen_cache)
7145 (delete_filename_seen_cache, filename_seen): Delete, parts moved
7146 to filename-seen-cache.h/filename-seen-cache.c.
7147 (output_source_filename, sources_info)
7148 (maybe_add_partial_symtab_filename)
7149 (make_source_files_completion_list): Adjust to use
7150 filename_seen_cache.
7151
330cdd98
PA
71522017-07-17 Pedro Alves <palves@redhat.com>
7153
7154 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
7155 fields.
7156 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
7157 dwarf2_debug_sections*)): New.
7158 (dwarf2_per_objfile::dwarf2_per_objfile(const
7159 dwarf2_per_objfile&)): Declare as deleted.
7160 (dwarf2_per_objfile::operator=): Declare as deleted.
7161 (dwarf2_per_objfile::dwarf2_per_objfile)
7162 (dwarf2_per_objfile::~dwarf2_per_objfile)
7163 (dwarf2_per_objfile::free_cached_comp_units): New.
7164 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
7165 ctor. Call dwarf2_per_objfile's ctor manually.
7166 (dwarf2_locate_sections): Deleted/refactored as ...
7167 (dwarf2_per_objfile::locate_sections): ... this new method.
7168 (free_cached_comp_units): Defer to
7169 dwarf2_per_objfile::free_cached_comp_units.
7170 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
7171
8880f2a9
TT
71722017-07-14 Tom Tromey <tom@tromey.com>
7173
7174 PR rust/21764:
7175 * rust-exp.y (convert_ast_to_expression): Add "want_type"
7176 parameter.
7177 <UNOP_SIZEOF>: Split into separate case.
7178 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
7179
65547233
TT
71802017-07-14 Tom Tromey <tom@tromey.com>
7181
7182 PR rust/21763:
7183 * symtab.c (symbol_matches_domain): Add language_rust to special
7184 case.
7185 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
7186 treat LOC_TYPEDEF symbols as variables.
7187
8f14146e
PA
71882017-07-14 Pedro Alves <palves@redhat.com>
7189
7190 * symtab.c (make_file_symbol_completion_list_1): Iterate over
7191 symtabs matching all symtabs with SRCFILE as file name instead of
7192 only considering the first hit, with lookup_symtab.
7193
2347965c
SM
71942017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7195
7196 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
7197 operator_name parameters.
7198 (gen_expr): Update function call.
7199
40f4af28
SM
72002017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7201
7202 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
7203 parameter.
7204 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
7205 Likewise.
7206 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
7207 parameter, use agent_expr::gdbarch instead, update function
7208 calls.
7209 (locexpr_tracepoint_var_ref): Likewise.
7210 (loclist_tracepoint_var_ref): Likewise.
7211 * ax-gdb.c (gen_trace_static_fields): Likewise.
7212 (gen_traced_pop): Likewise.
7213 (gen_frame_args_address): Likewise.
7214 (gen_frame_locals_address): Likewise.
7215 (gen_var_ref): Likewise.
7216 (gen_struct_ref_recursive): Likewise.
7217 (gen_static_field): Likewise.
7218 (gen_maybe_namespace_elt): Likewise.
7219 (gen_expr): Likewise.
7220 (gen_trace_for_var): Likewise.
7221 (gen_trace_for_expr): Likewise.
7222 (gen_trace_for_return_address): Likewise.
7223
053f8057
SM
72242017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7225
7226 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
7227 parameter.
7228 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
7229
6661ad48
SM
72302017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7231
7232 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
7233 from ax, update calls.
7234 (gen_usual_arithmetic): Likewise.
7235 (gen_integral_promotions): Likewise.
7236 (gen_bitfield_ref): Likewise.
7237 (gen_primitive_field): Likewise.
7238 (gen_struct_ref_recursive): Likewise.
7239 (gen_struct_ref): Likewise.
7240 (gen_maybe_namespace_elt): Likewise.
7241 (gen_struct_elt_for_reference): Likewise.
7242 (gen_namespace_elt): Likewise.
7243 (gen_aggregate_elt_ref): Likewise.
7244 (gen_expr): Get gdbarch from ax, update calls.
7245 (gen_expr_binop_rest): Likewise.
7246
c55a47e7
PA
72472017-07-13 Pedro Alves <palves@redhat.com>
7248
7249 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
7250 as default tdesc.
7251 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
7252 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
7253 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
7254 tdesc_amd64_linux as default tdesc. Get final tdesc from the
7255 tdep.
7256 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
7257 Get final tdesc from the tdep.
7258 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
7259 default tdesc.
7260 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
7261 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
7262 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
7263 Use it as default tdesc.
7264 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
7265 down to amd_init_abi. No longer handle fallback tdesc here.
7266 * amd64-tdep.h (tdesc_x32): Declare.
7267 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
7268 parameter.
7269 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
7270 as default tdesc.
7271
55efceab
AA
72722017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7273
7274 * s390-linux-tdep.c (s390_process_record): Add support for
7275 instructions new in arch12.
7276
0aa37b65
JB
72772017-07-11 John Baldwin <jhb@FreeBSD.org>
7278
7279 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
7280 PT_GETFSBASE and PT_GETGSBASE.
7281 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
7282 PT_SETGSBASE.
7283
48aeef91
JB
72842017-07-11 John Baldwin <jhb@FreeBSD.org>
7285
7286 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
7287 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
7288 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
7289 those rules.
7290 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
7291 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
7292 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
7293 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
7294 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
7295 * features/i386/amd64.xml: Add 64bit-segments.xml.
7296 * features/i386/amd64-avx-avx512.c: Regenerated.
7297 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
7298 * features/i386/amd64-avx-mpx.c: Regenerated.
7299 * features/i386/amd64-avx.c: Regenerated.
7300 * features/i386/amd64-mpx.c: Regenerated.
7301 * features/i386/amd64.c: Regenerated.
7302 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
7303 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
7304 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
7305 * regformats/i386/amd64-avx.dat: Regenerated.
7306 * regformats/i386/amd64-mpx.dat: Regenerated.
7307 * regformats/i386/amd64.dat: Regenerated.
7308
77c501bc
YQ
73092017-07-10 Yao Qi <yao.qi@linaro.org>
7310
7311 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
7312 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
7313
6dc8d757
AK
73142017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
7315
7316 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
7317 unsetenv.
7318 * gnulib/aclocal.m4: Regenerate.
7319 * gnulib/config.in: Regenerate.
7320 * gnulib/configure: Regenerate.
7321 * gnulib/import/Makefile.am: Regenerate.
7322 * gnulib/import/Makefile.in: Regenerate.
7323 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
7324 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
7325 * gnulib/import/m4/environ.m4: New file.
7326 * gnulib/import/m4/setenv.m4: New file.
7327 * gnulib/import/setenv.c: New file.
7328 * gnulib/import/unsetenv.c: New file.
7329
266934d1
SM
73302017-07-09 Simon Marchi <simon.marchi@ericsson.com>
7331
7332 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
7333 address when op is DW_OP_addr.
7334
03278692
TT
73352017-07-09 Tom Tromey <tom@tromey.com>
7336
7337 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
7338 check and apply to outer type.
7339
4b654465
JB
73402017-07-07 John Baldwin <jhb@FreeBSD.org>
7341
7342 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
7343 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
7344 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
7345 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
7346
2af9fc44
JB
73472017-07-07 John Baldwin <jhb@FreeBSD.org>
7348
7349 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
7350
382b69bb
JB
73512017-07-07 John Baldwin <jhb@FreeBSD.org>
7352
7353 * corelow.c (get_core_siginfo): Remove.
7354 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
7355 instead of get_core_siginfo.
7356 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
7357 * gdbarch.h: Re-generate.
7358 * gdbarch.c: Re-generate.
7359 * linux-tdep.c (linux_core_xfer_siginfo): New.
7360 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
7361
6e5eab33
JB
73622017-07-07 John Baldwin <jhb@FreeBSD.org>
7363
7364 * corelow.c (thread_section_name): Move to ...
7365 * gdbcore.h (thread_section_name): ... here.
7366
929edea9
JB
73672017-07-07 John Baldwin <jhb@FreeBSD.org>
7368
7369 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
7370 (struct siginfo32): New.
7371 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
7372 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
7373 via ptrace(PT_LWPINFO).
7374
762c974a
JB
73752017-07-07 John Baldwin <jhb@FreeBSD.org>
7376
7377 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
7378 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
7379 (fbsd_get_siginfo_type): New.
7380 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
7381 (_initialize_fbsd_tdep): New.
7382
33c5cd75
DB
73832017-07-06 David Blaikie <dblaikie@gmail.com>
7384
7385 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
7386 a singular dwo_unit*) to support multiple CUs in the same way that
7387 multiple TUs are supported.
7388 (create_cus_hash_table): Replace create_dwo_cu with a function for
7389 parsing multiple CUs from a DWO file.
7390 (open_and_init_dwo_file): Use create_cus_hash_table rather than
7391 create_dwo_cu.
7392 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
7393 htab_find, rather than comparing the signature to a singleton CU in
7394 the dwo_file.
7395
8455d262
PA
73962017-07-06 Pedro Alves <palves@redhat.com>
7397
7398 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
7399
4da3eb35
PA
74002017-07-04 Pedro Alves <palves@redhat.com>
7401
7402 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
7403 * gdbtypes.h (TYPE_STATIC): Delete.
7404 (struct fn_field) <is_public, is_abstract, is_static, is_final,
7405 is_synchronized, is_native>: Delete.
7406 <dummy>: Bump.
7407 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
7408 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
7409 (TYPE_FN_FIELD_ABSTRACT): Delete.
7410
5bfd255c
SM
74112017-07-03 Simon Marchi <simon.marchi@ericsson.com>
7412
7413 * buffer.h (buffer_finish): Fix spelling mistakes.
7414
25c54127
EZ
74152017-07-01 Eli Zaretskii <eliz@gnu.org>
7416
7417 * .dir-locals.el: Automatically switch to C-style comments in
7418 versions of Emacs that support the feature.
7419
dc4bde35
SDJ
74202017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
7421 Pedro Alves <palves@redhat.com>
7422
7423 PR cli/21688
7424 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
7425 (process_next_line): New variable 'inline_cmd'.
7426 Adjust 'if' clauses for "python", "compile" and "guile" to use
7427 'command_name_equals' and check for '!inline_cmd'.
7428
51ed89aa
SDJ
74292017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
7430
7431 PR cli/21688
7432 * cli/cli-script.c (command_name_equals_not_inline): New function.
7433 (process_next_line): Adjust 'if' clauses for "python", "compile"
7434 and "guile" to use command_name_equals_not_inline.
7435
eb17d413
PA
74362017-06-29 Pedro Alves <palves@redhat.com>
7437
7438 * completer.c (expression_completer): Call
7439 linespec_location_completer instead of location_completer.
7440
195bcdd5
PA
74412017-06-29 Pedro Alves <palves@redhat.com>
7442
7443 * completer.c (expression_completer): Remove code that recomputes
7444 'text' from 'word'.
7445
adc764e7
YQ
74462017-06-29 Yao Qi <yao.qi@linaro.org>
7447
7448 * regformats/regdat.sh: Generate code with
7449 "ifndef IN_PROCESS_AGENT".
7450
6e75794e
PA
74512017-06-28 Pedro Alves <palves@redhat.com>
7452
7453 * command.h: Include "common/scoped_restore.h".
7454
bc491f2e
YQ
74552017-06-28 Yao Qi <yao.qi@linaro.org>
7456
7457 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
7458 instead of obstack_grow.
7459
41664b45
DG
74602017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
7461
7462 PR gdb/21337
7463 * symfile.c (reread_symbols): Call objfiles_changed just before
7464 read_symbols.
7465
6da67eb1
PA
74662017-06-27 Pedro Alves <palves@redhat.com>
7467
7468 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
7469 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
7470 (completion_list_add_symbol, completion_list_add_msymbol):
7471 ... these new functions.
7472 (add_symtab_completions)
7473 (default_make_symbol_completion_list_break_on_1): Adjust.
7474
23732b1e
PA
74752017-06-27 Pedro Alves <palves@redhat.com>
7476
7477 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
7478 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
7479 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
7480 dtor.
7481 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
7482 'storage_obstack' field an auto_obstack. In-class initialize all
7483 non-bitfield fields. Make minsyms_read bool.
7484 * symfile.c (read_symbols): Adjust.
7485
a4d1e79a
AH
74862017-06-27 Alan Hayward <alan.hayward@arm.com>
7487
7488 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
7489 (gdbsim_store_register): Likewise.
7490
8268c778
PA
74912017-06-27 Pedro Alves <palves@redhat.com>
7492
7493 * c-exp.y (name_obstack): Now an auto_obstack.
7494 (yylex): Use auto_obstack::clear.
7495 (c_parse): Use auto_obstack::clear instead of reinitializing and
7496 freeing the obstack.
7497 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
7498 * d-exp.y (name_obstack): Now an auto_obstack.
7499 (yylex): Use auto_obstack::clear.
7500 (d_parse): Use auto_obstack::clear instead of reinitializing and
7501 freeing the obstack.
7502 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
7503 auto_obstack.
7504 * dwarf2read.c (create_addrmap_from_index)
7505 (dwarf2_build_psymtabs_hard)
7506 (update_enumeration_type_from_children): Likewise.
7507 * gdb_obstack.h (auto_obstack): New type.
7508 * go-exp.y (name_obstack): Now an auto_obstack.
7509 (build_packaged_name): Use auto_obstack::clear.
7510 (go_parse): Use auto_obstack::clear instead of reinitializing and
7511 freeing the obstack.
7512 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
7513 auto_obstack.
7514 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
7515 * rust-exp.y (work_obstack): Now an auto_obstack.
7516 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
7517 reinitializing and freeing the obstack.
7518 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
7519 (host_char_to_target): Use auto_obstack.
7520 * utils.h (make_cleanup_obstack_free): Delete declaration.
7521 * valprint.c (generic_emit_char, generic_printstr): Use
7522 auto_obstack.
7523
db665f42
SM
75242017-06-27 Simon Marchi <simon.marchi@ericsson.com>
7525
7526 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
7527 thread.
7528 (darwin_init_thread_list): Don't update dummy thread.
7529 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
7530
873c0814
SM
75312017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7532
7533 * record-full.c (netorder16): Remove.
7534
8b5a7a6e
SM
75352017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7536
7537 * common/diagnostics.h: Define macros for GCC.
7538 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
7539 * common/vec.h: Include diagnostics.h.
7540 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
7541 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
7542 warning.
7543
d1435379
SM
75442017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7545
7546 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
7547 New macro.
7548 * ada-lex.l: Ignore deprecated register warnings.
7549
cc75e0fd
SM
75502017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7551
7552 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
7553 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
7554
07809eaf
SM
75552017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7556
7557 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
7558 its own line.
7559
f076f034
SM
75602017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7561
7562 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
7563
0dd5cbc5
AH
75642017-06-23 Alan Hayward <alan.hayward@arm.com>
7565
7566 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
7567 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
7568 (xtensa_register_read_masked): Likewise.
7569
d4c6ce5b
SDJ
75702017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
7571
7572 * common/environ.c (gdb_environ::unset): Update comment.
7573
16892a03
AH
75742017-06-22 Alan Hayward <alan.hayward@arm.com>
7575
7576 * python/py-unwind.c (pyuw_sniffer): Allocate space for
7577 registers.
7578
d7dcbefc
AH
75792017-06-22 Alan Hayward <alan.hayward@arm.com>
7580
7581 * record-full.c (record_full_exec_insn): Use byte_vector.
7582
b30ff123
YQ
75832017-06-22 Yao Qi <yao.qi@linaro.org>
7584
7585 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
7586 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
7587
4fa847d7
AH
75882017-06-22 Alan Hayward <alan.hayward@arm.com>
7589
7590 * remote.c (cached_reg): Move from here...
7591 * regcache.h (cached_reg): ...to here.
7592 * python/py-unwind.c (struct reg_info): Remove.
7593 (cached_frame_info): Use cached_reg_t.
7594 (pyuw_prev_register): Likewise.
7595 (pyuw_sniffer): Use cached_reg_t and allocate registers.
7596 (pyuw_dealloc_cache): Free all registers.
7597
f4906a9a
PA
75982017-06-22 Pedro Alves <palves@redhat.com>
7599 Simon Marchi <simon.marchi@ericsson.com>
7600
7601 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
7602 warning.
7603 * common/diagnostics.h: New file.
7604
b45a1208
PA
76052017-06-22 Pedro Alves <palves@redhat.com>
7606
7607 * common/agent.h: Add include guards.
7608
e4da2c61
SM
76092017-06-21 Simon Marchi <simon.marchi@ericsson.com>
7610
7611 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
7612 talk about addressable units instead of bytes.
7613
96160d60
SDJ
76142017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7615
7616 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
7617 of '::const_iterator'.
7618
9a6c7d9c
SDJ
76192017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7620
7621 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7622 'unittests/environ-selftests.c'.
7623 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
7624 * charset.c (find_charset_names): Declare object 'iconv_env'.
7625 Update code to use 'iconv_env' object. Remove call to
7626 'free_environ'.
7627 * common/environ.c: Include <utility>.
7628 (make_environ): Delete function.
7629 (free_environ): Delete function.
7630 (gdb_environ::clear): New function.
7631 (gdb_environ::operator=): New function.
7632 (gdb_environ::get): Likewise.
7633 (environ_vector): Delete function.
7634 (set_in_environ): Delete function.
7635 (gdb_environ::set): New function.
7636 (unset_in_environ): Delete function.
7637 (gdb_environ::unset): New function.
7638 (gdb_environ::envp): Likewise.
7639 * common/environ.h: Include <vector>.
7640 (struct gdb_environ): Delete; transform into...
7641 (class gdb_environ): ... this class.
7642 (free_environ): Delete prototype.
7643 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
7644 environ_vector): Likewise.
7645 * infcmd.c (run_command_1): Update code to call
7646 'envp' from 'gdb_environ' class.
7647 (environment_info): Update code to call methods from 'gdb_environ'
7648 class.
7649 (unset_environment_command): Likewise.
7650 (path_info): Likewise.
7651 (path_command): Likewise.
7652 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
7653 (inferior::inferior): Initialize 'environment' using the host's
7654 information.
7655 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
7656 Include "environ.h".
7657 (class inferior) <environment>: Change type from 'struct
7658 gdb_environ' to 'gdb_environ'.
7659 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
7660 methods from 'gdb_environ' class.
7661 * solib.c (solib_find_1): Likewise
7662 * unittests/environ-selftests.c: New file.
7663
75c554cf
YQ
76642017-06-20 Yao Qi <yao.qi@linaro.org>
7665
7666 * features/i386/i386-linux.xml: Exchange the order of including
7667 32bit-linux.xml and 32bit-sse.xml.
7668 * features/i386/i386-linux.c: Regenerated.
7669
72ddacb7
YQ
76702017-06-20 Yao Qi <yao.qi@linaro.org>
7671
7672 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
7673 Delete copy ctor and assignment operator.
7674 (tdesc_type): Likewise.
7675 (tdesc_feature): Likewise.
7676 (tdesc_free_reg): Remove.
7677 (tdesc_create_reg): Use new.
7678 (tdesc_free_type): Remove.
7679 (tdesc_create_vector): Use new.
7680 (tdesc_create_union): Likewise.
7681 (tdesc_create_flags): Likewise.
7682 (tdesc_create_enum): Likewise.
7683 (tdesc_free_feature): Delete.
7684 (free_target_description): Use delete.
7685
325c9fd4
JB
76862017-06-19 John Baldwin <jhb@FreeBSD.org>
7687
7688 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
7689 registers.
7690
16b7a719
PA
76912017-06-19 Pedro Alves <palves@redhat.com>
7692
7693 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
7694 after gdb::unlinker.
7695
1c8e01c9
SDJ
76962017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
7697
7698 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
7699 gdb_environ to access an environment variable.
7700
ffce45d2
TP
77012017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7702
7703 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
7704 gdb_byte*.
7705
1d4fbac9
SM
77062017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7707
7708 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
7709
8465943a
SM
77102017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7711
7712 * configure: Re-generate.
7713 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
7714
3e019bdc
SM
77152017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7716
7717 * configure: Re-generate.
7718 * warning.m4: Pass -Werror to compiler when checking for
7719 supported warning flags.
7720
cf0dd6f0
SM
77212017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7722
7723 * Makefile.in (COMPILE.pre): Add "-x c++".
7724
6f98355c
YQ
77252017-06-16 Alan Hayward <alan.hayward@arm.com>
7726 Pedro Alves <palves@redhat.com>
7727 Yao Qi <yao.qi@linaro.org>
7728
7729 * defs.h (RequireLongest): New.
7730 (extract_integer): Declare function template.
7731 (extract_signed_integer): Remove the declaration, but define it
7732 static inline.
7733 (extract_unsigned_integer): Likewise.
7734 (store_integer): Declare function template.
7735 (store_signed_integer): Remove the declaration, but define it
7736 static inline.
7737 (store_unsigned_integer): Likewise.
7738 * findvar.c (extract_integer): New function template.
7739 (extract_signed_integer): Remove.
7740 (extract_unsigned_integer): Remove.
7741 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
7742 instantiations.
7743 (store_integer): New function template.
7744 (store_signed_integer): Remove.
7745 (store_unsigned_integer): Remove.
7746 (store_integer): Explicit instantiations.
7747 * regcache.c (regcache_raw_read_signed): Update.
7748 (regcache::raw_read): New function.
7749 (regcache::raw_read_signed): Remove.
7750 (regcache::raw_read_unsigned): Remove.
7751 (regcache_raw_read_unsigned): Update.
7752 (regcache_raw_write_unsigned): Update.
7753 (regcache::raw_write_signed): Remove.
7754 (regcache::raw_write): New function.
7755 (regcache_cooked_read_signed): Update.
7756 (regcache::raw_write_unsigned): Remove.
7757 (regcache::cooked_read_signed): Remove.
7758 (regcache_cooked_read_unsigned): Update.
7759 (regcache::cooked_read_unsigned): Remove.
7760 (regcache_cooked_write_signed): Update.
7761 (regcache_cooked_write_unsigned): Update.
7762 * regcache.h (regcache) <raw_read_signed>: Remove.
7763 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
7764 <raw_read, raw_write>: New.
7765 <cooked_read_signed, cooked_write_signed>: Remove.
7766 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
7767 <cooked_read, cooked_write>: New.
7768 * sh64-tdep.c (sh64_pseudo_register_read): Update.
7769 (sh64_pseudo_register_write): Update.
7770
a87dc45a
AK
77712017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
7772
7773 * arc-tdep.c (arc_disassembler_options): New variable.
7774 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
7775 of default_print_insn.
7776 (arc_delayed_print_insn): Set info->section when needed,
7777 use default_print_insn to retrieve a disassembler.
7778
45159d6a
SDJ
77792017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
7780
7781 PR gdb/21574
7782 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
7783 to mention $SHELL and startup-with-shell.
7784
b46c4cf0
MF
77852017-06-14 Max Filippov <jcmvbkbc@gmail.com>
7786
7787 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
7788
6394c606
YQ
77892017-06-14 Yao Qi <yao.qi@linaro.org>
7790
7791 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
7792 default_print_insn instead of print_insn_aarch64.
7793 * arm-tdep.c (gdb_print_insn_arm): Call
7794 default_print_insn instead of print_insn_big_arm
7795 and print_insn_little_arm.
7796 * i386-tdep.c (i386_print_insn): Call default_print_insn
7797 instead of print_insn_i386.
7798 * ia64-tdep.c (ia64_print_insn): Call
7799 default_print_insn instead of print_insn_ia64.
7800 * mips-tdep.c (gdb_print_insn_mips): Call
7801 default_print_insn instead of print_insn_big_mips
7802 and print_insn_little_mips.
7803 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
7804 instead of print_insn_spu.
7805
d5722aa2
PA
78062017-06-14 Pedro Alves <palves@redhat.com>
7807
7808 * ada-lang.c: Include "common/byte-vector.h".
7809 (ada_value_primitive_packed_val): Use gdb::byte_vector.
7810 * charset.c (wchar_iterator::iterate): Resize the vector instead
7811 of reserving it.
7812 * common/byte-vector.h: Include "common/def-vector.h".
7813 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
7814 * cli/cli-dump.c: Include "common/byte-vector.h".
7815 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
7816 * common/byte-vector.h: New file.
7817 * common/def-vector.h: New file.
7818 * common/default-init-alloc.h: New file.
7819 * dwarf2loc.c: Include "common/byte-vector.h".
7820 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
7821 instead of reserving it.
7822 * dwarf2read.c: Include "common/byte-vector.h".
7823 (data_buf::m_vec): Now a gdb::byte_vector.
7824 * gdb_regex.c: Include "common/def-vector.h".
7825 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
7826 * mi/mi-main.c: Include "common/byte-vector.h".
7827 (mi_cmd_data_read_memory): Use gdb::byte_vector.
7828 * printcmd.c: Include "common/byte-vector.h".
7829 (print_scalar_formatted): Use gdb::byte_vector.
7830 * valprint.c: Include "common/byte-vector.h".
7831 (maybe_negate_by_bytes, print_decimal_chars): Use
7832 gdb::byte_vector.
7833
01ec7a27
SM
78342017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7835
7836 * darwin-nat.c: Include "nat/fork-inferior.h".
7837
848d9074
SM
78382017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7839
7840 * configure.nat: Factor out Darwin bits that are not
7841 architecture-specific. Add fork-inferior.o.
7842
3b912944
SM
78432017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7844
7845 * configure.nat: Factor out AIX bits that are not
7846 architecture-specific. Add fork-inferior.o.
7847
55acdf22
AA
78482017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7849
7850 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
7851 (read_pieced_value, write_pieced_value): ...here. Reduce to
7852 wrappers that just call rw_pieced_value.
7853
f65e2044
AA
78542017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7855
7856 * dwarf2loc.c (write_pieced_value): When writing the data for a
7857 memory piece, use write_memory_with_notification instead of
7858 write_memory.
7859
23f945bf
AA
78602017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7861
7862 * valops.c (read_value_memory): Change embedded_offset to
7863 represent a bit offset instead of a byte offset.
7864 * value.h (read_value_memory): Adjust comment.
7865
f236533e
AA
78662017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7867
7868 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
7869 dest_offset_bits and source_offset_bits.
7870 (write_pieced_value): Likewise.
7871
65d84b76
AA
78722017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7873
7874 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
7875 given by DW_OP_bit_piece.
7876 (write_pieced_value): Likewise.
7877
242d31ab
AA
78782017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7879
7880 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
7881 some other preparations to the places where sufficient information
7882 is available.
7883 (write_pieced_value): Likewise.
7884
03c8af18
AA
78852017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7886
7887 * dwarf2loc.c (bits_to_bytes): New function.
7888 (read_pieced_value): Fix offset calculations for register pieces
7889 on big-endian targets.
7890 (write_pieced_value): Likewise.
7891
840989c1
AA
78922017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7893
7894 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
7895 (write_pieced_value): Likewise.
7896
359b19bb
AA
78972017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7898
7899 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
7900 transfer the source value's least significant bits, instead of its
7901 lowest-addressed ones. Rename type_len to max_offset.
7902 (read_pieced_value): Mirror above changes to write_pieced_value as
7903 applicable.
7904
07c9ca3b
AA
79052017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7906
7907 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
7908 truncate full bytes from dest_offset_bits before using it as an
7909 offset into the buffer.
7910
f1cc9874
AA
79112017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7912
7913 * dwarf2loc.c (write_pieced_value): Include transfer size in
7914 byte-wise check.
7915
cdaac320
AA
79162017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7917
7918 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
7919 calculation of this_size.
7920
af547a96
AA
79212017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7922
7923 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
7924 when targeting a bit-field.
7925 (write_pieced_value): Likewise.
7926
ddd7882a
AA
79272017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7928
7929 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
7930 (allocate_piece_closure): Drop addr_size parameter.
7931 (dwarf2_evaluate_loc_desc_full): Adjust call to
7932 allocate_piece_closure.
7933
e9352324
AA
79342017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7935
7936 PR gdb/21226
7937 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
7938 the LSB end, independent of endianness.
7939
d5d1163e
AA
79402017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7941
7942 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
7943 size capping.
7944
032bb6ea
YQ
79452017-06-13 Yao Qi <yao.qi@linaro.org>
7946
7947 * mips-linux-nat.c: Move include features/mips*-linux.c to
7948 mips-linux-tdep.c.
7949 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
7950 to mips-linux-tdep.c.
7951 * mips-linux-tdep.c: Include features/mips*-linux.c
7952 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
7953 functions.
7954 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
7955 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
7956 (tdesc_mips64_dsp_linux): Declare.
7957
f12f6bad
TT
79582017-06-12 Tom Tromey <tom@tromey.com>
7959
7960 * valprint.h (val_print_type_code_int): Remove.
7961 * valprint.c (generic_val_print_int): Always call
7962 val_print_scalar_formatted.
7963 (val_print_type_code_int): Remove.
7964 * printcmd.c (print_scalar_formatted): Handle options->format==0.
7965 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
7966 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
7967 * ada-valprint.c (ada_val_print_num): Use
7968 val_print_scalar_formatted.
7969
d9109c80
TT
79702017-06-12 Tom Tromey <tom@tromey.com>
7971
7972 * printcmd.c (print_scalar_formatted): Unify the two switches.
7973 Don't convert scalars to LONGEST.
7974
4ac0cb1c
TT
79752017-06-12 Tom Tromey <tom@tromey.com>
7976
7977 PR exp/16225:
7978 * valprint.h (print_decimal_chars): Update.
7979 * valprint.c (maybe_negate_by_bytes): New function.
7980 (print_decimal_chars): Add "is_signed" argument.
7981 * printcmd.c (print_scalar_formatted): Update.
7982
30a25466
TT
79832017-06-12 Tom Tromey <tom@tromey.com>
7984
7985 PR exp/16225:
7986 * valprint.h (print_binary_chars, print_hex_chars): Update.
7987 * valprint.c (val_print_type_code_int): Update.
7988 (print_binary_chars): Add "zero_pad" argument.
7989 (emit_octal_digit): New function.
7990 (print_octal_chars): Don't zero-pad.
7991 (print_decimal_chars): Likewise.
7992 (print_hex_chars): Add "zero_pad" argument.
7993 * sh64-tdep.c (sh64_do_fp_register): Update.
7994 * regcache.c (regcache::dump): Update.
7995 * printcmd.c (print_scalar_formatted): Update.
7996 * infcmd.c (default_print_one_register_info): Update.
7997
b3464d03
PA
79982017-06-12 Pedro Alves <palves@redhat.com>
7999 Alan Hayward <alan.hayward@arm.com>
8000
8001 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
8002 (mips_eabi_push_dummy_call): Rename local 'regsize' to
8003 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
8004 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
8005 Assert that abi_regsize bytes fit in 'ref_valbuf'.
8006
4b76cda9
PA
80072017-06-12 Pedro Alves <palves@redhat.com>
8008
8009 * dwarf2read.c (mapped_symtab::data): Now a vector of
8010 symtab_index_entry instead of vector of
8011 std::unique_ptr<symtab_index_entry>. All users adjusted to check
8012 whether an element's name is NULL instead of checking whether the
8013 element itself is NULL.
8014 (find_slot): Change return type. Adjust.
8015 (hash_expand, , add_index_entry, uniquify_cu_indices)
8016 (write_hash_table): Adjust.
8017
e8f8bcb3
PA
80182017-06-12 Pedro Alves <palves@redhat.com>
8019
8020 * dwarf2read.c (recursively_count_psymbols): New function.
8021 (write_psymtabs_to_index): Call it to compute number of psyms and
8022 pass estimate size of psyms_seen to unordered_set's ctor.
8023
70a1152b
PA
80242017-06-12 Pedro Alves <palves@redhat.com>
8025
8026 * dwarf2read.c (write_hash_table): Check if key already exists
8027 before emplacing.
8028
c2f134ac
PA
80292017-06-12 Pedro Alves <palves@redhat.com>
8030
8031 * dwarf2read.c (data_buf::append_space): Rename to...
8032 (data_buf::grow): ... this, and make private. Adjust all callers.
8033 (data_buf::append_uint): New method.
8034 (add_address_entry, write_one_signatured_type)
8035 (write_psymtabs_to_index): Use it.
8036
a81e6d4d
PA
80372017-06-12 Pedro Alves <palves@redhat.com>
8038
8039 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
8040 (file_write (FILE *, const std::vector<Elem>&)): Delete.
8041 (data_buf::file_write): Call ::fwrite directly.
8042
6fd931f2
PA
80432017-06-12 Pedro Alves <palves@redhat.com>
8044
8045 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
8046 std::vector::erase.
8047
bc8f2430
JK
80482017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8049
8050 Code cleanup: C++ify .gdb_index producer.
8051 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
8052 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
8053 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
8054 (create_strtab, add_string): Remove.
8055 (file_write, data_buf): New.
8056 (struct symtab_index_entry): Use std::vector for cu_indices.
8057 (struct mapped_symtab): Use std::vector for data.
8058 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
8059 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
8060 Remove.
8061 (find_slot): Change return type. Update it to the new data structures.
8062 (hash_expand, add_index_entry): Update it to the new data structures.
8063 (offset_type_compare): Remove.
8064 (uniquify_cu_indices): Update it to the new data structures.
8065 (c_str_view, c_str_view_hasher, vector_hasher): New.
8066 (add_indices_to_cpool): Remove.
8067 (write_hash_table): Update it to the new data structures.
8068 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
8069 (eq_psymtab_cu_index): Remove.
8070 (psym_index_map): New typedef.
8071 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
8072 reference and std::unordered_map for cu_index_htab.
8073 (add_address_entry, add_address_entry_worker, write_address_map)
8074 (write_psymbols): Update it to the new data structures.
8075 (write_obstack): Remove.
8076 (struct signatured_type_index_data): Change types_list to a data_buf
8077 reference and psyms_seen to a std::unordered_set reference.
8078 (write_one_signatured_type, recursively_write_psymbols)
8079 (write_psymtabs_to_index): Update it to the new data structures.
8080
c4dcb155
SM
80812017-06-11 Simon Marchi <simon.marchi@ericsson.com>
8082
8083 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
8084 separate-debug-file commands.
8085 * symfile.h (separate_debug_file_debug): New global.
8086 * symfile.c (separate_debug_file_debug): New global.
8087 (separate_debug_file_exists, find_separate_debug_file): Add
8088 debug output.
8089 (_initialize_symfile): Add "set debug separate-debug-file"
8090 command.
8091 * build-id.c (build_id_to_debug_bfd,
8092 find_separate_debug_file_by_buildid): Add debug output.
8093
6d45d4b4
SM
80942017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
8095
8096 * gdbarch.sh (displaced_step_free_closure): Remove.
8097 * gdbarch.h, gdbarch.c: Re-generate.
8098 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
8099 displaced_step_free_closure.
8100 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
8101 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8102 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8103 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
8104 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
8105 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8106 * arch-utils.h (simple_displaced_step_free_closure): Remove.
8107 * arch-utils.c (simple_displaced_step_free_closure): Remove.
8108 * infrun.c (displaced_step_clear): Call xfree instead of
8109 gdbarch_displaced_step_free_closure.
8110
2f91880f
SDJ
81112017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
8112
8113 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
8114 NULL".
8115
b8b6e72f
AH
81162017-06-08 Alan Hayward <alan.hayward@arm.com>
8117
8118 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
8119 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
8120 (mn10300_push_dummy_call): Likewise.
8121
5369082e
AH
81222017-06-08 Alan Hayward <alan.hayward@arm.com>
8123
8124 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
8125
ff4ca5ac
AH
81262017-06-08 Alan Hayward <alan.hayward@arm.com>
8127
8128 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
8129
aefd8b33
SDJ
81302017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8131
8132 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
8133 able to start inferiors using a shell.
8134 (New remote packets): Announce new packet "QStartupWithShell".
8135 * remote.c: Add PACKET_QStartupWithShell.
8136 (extended_remote_create_inferior): Handle new
8137 PACKET_QStartupWithShell.
8138 (remote_protocol_features) <QStartupWithShell>: New entry for
8139 PACKET_QStartupWithShell.
8140 (_initialize_remote): Call "add_packet_config_cmd" for
8141 QStartupShell.
8142
2090129c
SDJ
81432017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8144 Pedro Alves <palves@redhat.com>
8145
8146 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
8147 and "nat/fork-inferior.h".
8148 * common/common-inferior.h: New file, with contents from
8149 "gdb/inferior.h".
8150 * commom/common-utils.c: Include "common-utils.h".
8151 (stringify_argv): New function.
8152 * common/common-utils.h (stringify_argv): New prototype.
8153 * configure.nat: Add "fork-inferior.o" as a dependency for
8154 "*linux*", "fbsd*" and "nbsd*" hosts.
8155 * corefile.c (get_exec_file): Update comment.
8156 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
8157 instead of "startup_inferior".
8158 (darwin_create_inferior): Call "add_thread_silent" after
8159 "fork_inferior".
8160 * fork-child.c: Cleanup unnecessary includes.
8161 (SHELL_FILE): Move to "common/common-fork-child.c".
8162 (environ): Likewise.
8163 (exec_wrapper): Initialize.
8164 (get_exec_wrapper): New function.
8165 (breakup_args): Move to "common/common-fork-child.c"; rename to
8166 "breakup_args_for_exec".
8167 (escape_bang_in_quoted_argument): Move to
8168 "common/common-fork-child.c".
8169 (saved_ui): New variable.
8170 (prefork_hook): New function.
8171 (postfork_hook): Likewise.
8172 (postfork_child_hook): Likewise.
8173 (gdb_startup_inferior): Likewise.
8174 (fork_inferior): Move to "common/common-fork-child.c". Update
8175 function to support gdbserver.
8176 (startup_inferior): Likewise.
8177 * gdbcore.h (get_exec_file): Remove declaration.
8178 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
8179 instead of "startup_inferior". Call "add_thread_silent" after
8180 "fork_inferior".
8181 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
8182 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
8183 instead of "startup_inferior". Call "add_thread_silent" after
8184 "fork_inferior".
8185 * inferior.h: Include "common-inferior.h".
8186 (trace_start_error): Move to "common/common-utils.h".
8187 (trace_start_error_with_name): Likewise.
8188 (fork_inferior): Move prototype to "nat/fork-inferior.h".
8189 (startup_inferior): Likewise.
8190 (gdb_startup_inferior): New prototype.
8191 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
8192 * nat/fork-inferior.h: New file.
8193 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
8194 instead of "startup_inferior". Call "add_thread_silent" after
8195 "fork_inferior".
8196 * target.h (target_terminal_init): Move prototype to
8197 "target/target.h".
8198 (target_terminal_inferior): Likewise.
8199 (target_terminal_ours): Likewise.
8200 * target/target.h (target_terminal_init): New prototype, moved
8201 from "target.h".
8202 (target_terminal_inferior): Likewise.
8203 (target_terminal_ours): Likewise.
8204 * utils.c (gdb_flush_out_err): New function.
8205
043a4934
SDJ
82062017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8207
8208 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
8209 * common/common-gdbthread.h: New file, with parts from
8210 "gdb/gdbthread.h".
8211 * gdbthread.h: Include "common-gdbthread.h".
8212 (switch_to_thread): Moved to "common/common-gdbthread.h".
8213
15652511
SDJ
82142017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8215
8216 * Makefile.in (SFILES): Add "common/job-control.c".
8217 (HFILES_NO_SRCDIR): Add "common/job-control.h".
8218 (COMMON_OBS): Add "job-control.o".
8219 * common/job-control.c: New file, with contents from
8220 "gdb/inflow.c".
8221 * common/job-control.h: New file, with contents from "terminal.h".
8222 * fork-child.c: Include "job-control.h".
8223 * inflow.c: Include "job-control.h".
8224 (gdb_setpgid): Move to "common/common-inflow.c".
8225 (_initialize_inflow): Move setting of "job_control" to
8226 "handle_job_control".
8227 * terminal.h (job_control): Moved to "common/common-terminal.h".
8228 (gdb_setpgid): Likewise.
8229 * top.c: Include "job_control.h".
8230 * utils.c: Likewise.
8231 (job_control): Moved to "job-control.c".
8232
2d7cc5c7
PA
82332017-06-07 Pedro Alves <palves@redhat.com>
8234
8235 * Makefile.in (SFILES): Add gdb_regex.c.
8236 (COMMON_OBS): Add gdb_regex.o.
8237 * ada-lang.c (ada_add_standard_exceptions)
8238 (ada_add_exceptions_from_frame, name_matches_regex)
8239 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
8240 parameter type to compiled_regex. Adjust.
8241 (ada_exceptions_list): Use compiled_regex.
8242 * break-catch-throw.c (exception_catchpoint::pattern): Now a
8243 std::unique_ptr<compiled_regex>.
8244 (exception_catchpoint::~exception_catchpoint): Remove regfree
8245 call.
8246 (check_status_exception_catchpoint): Adjust to use compiled_regex.
8247 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
8248 * breakpoint.c (solib_catchpoint::compiled): Now a
8249 std::unique_ptr<compiled_regex>.
8250 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
8251 (check_status_catch_solib): Adjust to use compiled_regex.
8252 (add_solib_catchpoint): Adjust to use compiled_regex.
8253 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
8254 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
8255 compiled_regex reference. Adjust to use it.
8256 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
8257 declaration. Include "gdb_regex.h".
8258 (apropos_cmd): Change regex parameter to compiled_regex reference.
8259 * gdb_regex.c: New file.
8260 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
8261 declarations.
8262 (class compiled_regex): New.
8263 * linux-tdep.c: Include "common/gdb_optional.h".
8264 (struct mapping_regexes): New, factored out from
8265 mapping_is_anonymous_p, and adjusted to use compiled_regex.
8266 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
8267 gdb::optional and remove cleanups. Adjust to compiled_regex.
8268 * probe.c: Include "common/gdb_optional.h".
8269 (collect_probes): Use compiled_regex and gdb::optional and remove
8270 cleanups.
8271 * skip.c: Include "common/gdb_optional.h".
8272 (skiplist_entry::compiled_function_regexp): Now a
8273 gdb::optional<compiled_regex>.
8274 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
8275 (free_skiplist_entry): Remove regfree call.
8276 (compile_skip_regexp, skip_rfunction_p): Adjust to use
8277 compiled_regex and gdb::optional.
8278 * symtab.c: Include "common/gdb_optional.h".
8279 (search_symbols): Use compiled_regex and gdb::optional.
8280 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
8281 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
8282 to gdb_regex.c.
8283
50d6adef
AH
82842017-06-07 Alan Hayward <alan.hayward@arm.com>
8285
8286 * regcache.c (regcache::save): Avoid buffer use.
8287 (regcache::dump): Likewise.
8288
4a8a33c8
AH
82892017-06-07 Alan Hayward <alan.hayward@arm.com>
8290
8291 * sh-tdep.c (sh_pseudo_register_read): Remove
8292 MAX_REGISTER_SIZE.
8293 (sh_pseudo_register_write): Likewise.
8294 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
8295 (sh64_pseudo_register_write): Likewise
8296
d1be909e
AH
82972017-06-07 Alan Hayward <alan.hayward@arm.com>
8298
8299 * aarch64-tdep.c (aarch64_store_return_value): Use
8300 V_REGISTER_SIZE.
8301 (aarch64_pseudo_read_value): Likewise.
8302 (aarch64_pseudo_write): Likewise.
8303
f4a65042
YQ
83042017-06-06 Yao Qi <yao.qi@linaro.org>
8305
8306 * regformats/regdef.h (set_register_cache): Remove the
8307 declaration.
8308
9f7fb0aa
AH
83092017-06-06 Alan Hayward <alan.hayward@arm.com>
8310
8311 * frame.c (frame_unwind_register_signed): Use
8312 frame_unwind_register_value.
8313
e1e01040
PA
83142017-06-06 Pedro Alves <palves@redhat.com>
8315
8316 PR breakpoints/21553
8317 * breakpoint.c (create_breakpoints_sal_default)
8318 (init_breakpoint_sal, create_breakpoint_sal): Use
8319 gdb::unique_xmalloc_ptr for string parameters.
8320 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8321 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
8322 (base_breakpoint_create_breakpoints_sal)
8323 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
8324 (strace_marker_create_breakpoints_sal)
8325 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
8326 string parameters.
8327 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
8328 gdb::unique_xmalloc_ptr for string parameters.
8329 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8330 parameters.
8331
fbe654c8
AH
83322017-06-06 Alan Hayward <alan.hayward@arm.com>
8333
8334 * alpha-tdep.c (alpha_register_to_value): Use
8335 get_frame_register_value.
8336 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
8337
ae0d01d6
AH
83382017-06-06 Alan Hayward <alan.hayward@arm.com>
8339
8340 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
8341 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
8342 (ia64_value_to_register): Likewise.
8343 (ia64_extract_return_value): Likewise.
8344 (ia64_store_return_value): Likewise.
8345 (ia64_push_dummy_call): Likewise.
8346
49cf576c
JB
83472017-06-04 Joel Brobecker <brobecker@adacore.com>
8348
8349 GDB 8.0 released.
8350
26b6a6ab
SM
83512017-06-03 Simon Marchi <simon.marchi@ericsson.com>
8352
8353 * x86-linux-nat.c (struct arch_lwp_info): Remove.
8354
22827c51
SM
83552017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
8356
8357 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
8358 parameter.
8359 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
8360
0e05cf3a
SM
83612017-06-02 Simon Marchi <simon.marchi@ericsson.com>
8362
8363 * event-loop.c (poll_timers): Unallocate timer using delete
8364 instead of xfree.
8365
c1fc2657
SM
83662017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8367
8368 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
8369 (struct breakpoint) <~breakpoint>: New.
8370 (struct watchpoint): Inherit from breakpoint.
8371 <~watchpoint>: New.
8372 <base>: Remove.
8373 (struct tracepoint): Inherit from breakpoint.
8374 <base>: Remove.
8375 * breakpoint.c (longjmp_breakpoint_ops): Remove.
8376 (struct longjmp_breakpoint): Inherit from breakpoint.
8377 <~longjmp_breakpoint>: New.
8378 <base>: Remove.
8379 (new_breakpoint_from_type): Remove casts.
8380 (watchpoint_in_thread_scope): Remove reference to base field.
8381 (watchpoint_del_at_next_stop): Likewise.
8382 (update_watchpoint): Likewise.
8383 (watchpoint_check): Likewise.
8384 (bpstat_check_watchpoint): Likewise.
8385 (set_longjmp_breakpoint): Likewise.
8386 (struct fork_catchpoint): Inherit from breakpoint.
8387 <base>: Remove.
8388 (struct solib_catchpoint): Inherit from breakpoint.
8389 <~solib_catchpoint>: New.
8390 <base>: Remove.
8391 (dtor_catch_solib): Change to ...
8392 (solib_catchpoint::~solib_catchpoint): ... this.
8393 (breakpoint_hit_catch_solib): Remove reference to base field.
8394 (add_solib_catchpoint): Likewise.
8395 (create_fork_vfork_event_catchpoint): Likewise.
8396 (struct exec_catchpoint): Inherit from breakpoint.
8397 <~exec_catchpoint>: New.
8398 <base>: Remove.
8399 (dtor_catch_exec): Change to ...
8400 (exec_catchpoint::~exec_catchpoint): ... this.
8401 (dtor_watchpoint): Change to ...
8402 (watchpoint::~watchpoint): ... this.
8403 (watch_command_1): Remove reference to base field.
8404 (catch_exec_command_1): Likewise.
8405 (base_breakpoint_dtor): Change to ...
8406 (breakpoint::~breakpoint): ... this.
8407 (base_breakpoint_ops): Remove dtor field value.
8408 (longjmp_bkpt_dtor): Change to ...
8409 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
8410 (strace_marker_create_breakpoints_sal): Remove reference to base
8411 field.
8412 (delete_breakpoint): Don't manually call breakpoint destructor.
8413 (create_tracepoint_from_upload): Remove reference to base field.
8414 (trace_pass_set_count): Likewise.
8415 (initialize_breakpoint_ops): Don't initialize
8416 momentary_breakpoint_ops, don't set dtors.
8417 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
8418 <~ada_catchpoint>: New.
8419 <base>: Remove.
8420 (create_excep_cond_exprs): Remove reference to base field.
8421 (dtor_exception): Change to ...
8422 (ada_catchpoint::~ada_catchpoint): ... this.
8423 (dtor_catch_exception): Remove.
8424 (dtor_catch_exception_unhandled): Remove.
8425 (dtor_catch_assert): Remove.
8426 (create_ada_exception_catchpoint): Remove reference to base
8427 field.
8428 (initialize_ada_catchpoint_ops): Don't set dtors.
8429 * break-catch-sig.c (struct signal_catchpoint): Inherit from
8430 breakpoint.
8431 <~signal_catchpoint>: New.
8432 <base>: Remove.
8433 (signal_catchpoint_dtor): Change to ...
8434 (signal_catchpoint::~signal_catchpoint): ... this.
8435 (create_signal_catchpoint): Remove reference to base field.
8436 (initialize_signal_catchpoint_ops): Don't set dtor.
8437 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
8438 from breakpoint.
8439 <~syscall_catchpoint>: New.
8440 <base>: Remove.
8441 (dtor_catch_syscall): Change to ...
8442 (syscall_catchpoint::~syscall_catchpoint): ... this.
8443 (create_syscall_event_catchpoint): Remove reference to base
8444 field.
8445 (initialize_syscall_catchpoint_ops): Don't set dtor.
8446 * break-catch-throw.c (struct exception_catchpoint): Inherit
8447 from breakpoint.
8448 <~exception_catchpoint>: New.
8449 <base>: Remove.
8450 (dtor_exception_catchpoint): Change to ...
8451 (exception_catchpoint::~exception_catchpoint): ... this.
8452 (handle_gnu_v3_exceptions): Remove reference to base field.
8453 (initialize_throw_catchpoint_ops): Don't set dtor.
8454 * ctf.c (ctf_get_traceframe_address): Remove reference to base
8455 field.
8456 * remote.c (remote_get_tracepoint_status): Likewise.
8457 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
8458 * tracefile.c (tracefile_fetch_registers): Likewise.
8459 * tracepoint.c (actions_command): Likewise.
8460 (validate_actionline): Likewise.
8461 (tfind_1): Likewise.
8462 (get_traceframe_location): Likewise.
8463 (find_matching_tracepoint_location): Likewise.
8464 (parse_tracepoint_status): Likewise.
8465 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
8466
3b0871f4
SM
84672017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8468
8469 * breakpoint.c (struct longjmp_breakpoint): New struct.
8470 (is_tracepoint_type): Change return type to bool.
8471 (is_longjmp_type): New function.
8472 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
8473 (set_raw_breakpoint_without_location): Use
8474 new_breakpoint_from_type.
8475 (set_raw_breakpoint): Likewise.
8476
a5e364af
SM
84772017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8478
8479 * breakpoint.c (new_breakpoint_from_type): New function.
8480 (create_breakpoint_sal): Use new_breakpoint_from_type and
8481 unique_ptr.
8482 (create_breakpoint): Likewise.
8483
ae3b3f34
SM
84842017-05-31 Simon Marchi <simon.marchi@ericsson.com>
8485
8486 * memattr.c (mem_info_command): Rename to ...
8487 (info_mem_command): ... this.
8488 (mem_enable_command): Rename to ...
8489 (enable_mem_command): ... this.
8490 (mem_disable_command): Rename to ...
8491 (disable_mem_command): ... this.
8492 (mem_delete_command): Rename to ...
8493 (delete_mem_command): ... this.
8494 (_initialize_mem): Adjust function names.
8495
13ace077
MM
84962017-05-31 Markus Metzger <markus.t.metzger@intel.com>
8497
8498 * btrace.c (handle_pt_insn_events): New.
8499 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
8500 STATUS. Split into this and ...
8501 (handle_pt_insn_event_flags): ... this.
8502
c56ccc05
MM
85032017-05-31 Markus Metzger <markus.t.metzger@intel.com>
8504
8505 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
8506 and struct pt_insn.resynced.
8507 * configure: Regenerated.
8508 * config.in: Regenerated.
8509
08c3f6d2
TW
85102017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8511
8512 * btrace.c (ftrace_find_call_by_number): New function.
8513 (ftrace_new_function): Store objects, not pointers.
8514 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
8515 ftrace_new_gap, ftrace_update_function,
8516 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
8517 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
8518 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
8519 btrace_ends_with_single_insn, btrace_call_get): Account for
8520 btrace_thread_info::functions now storing objects.
8521 * btrace.h (struct btrace_thread_info): Add constructor.
8522 (struct btrace_thread_info) <functions>: Make std::vector.
8523 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
8524 Initialize with default values.
8525 * record-btrace.c (record_btrace_frame_sniffer): Account for
8526 btrace_thread_info::functions now storing objects.
8527
8ffd39f2
TW
85282017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8529
8530 * btrace.c: Remove typedef bfun_s.
8531 (ftrace_new_gap): Directly add gaps to the list of gaps.
8532 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
8533 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
8534 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
8535 instead of gdb VEC.
8536
4aeb0dfc
TW
85372017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8538
8539 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
8540 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
8541 with btrace_thread_info::next_segment and
8542 btrace_thread_info::prev_segment.
8543 * btrace.h: Remove struct btrace_func_link.
8544 (struct btrace_function): Replace pair of function segment pointers
8545 with pair of indices.
8546 * python/py-record-btrace.c (btpy_call_prev_sibling,
8547 btpy_call_next_sibling): Replace references to
8548 btrace_thread_info::segment with btrace_thread_info::next_segment and
8549 btrace_thread_info::prev_segment.
8550 * record-btrace.c (record_btrace_frame_this_id): Use
8551 btrace_find_call_by_number.
8552
eb8f2b9c
TW
85532017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8554
8555 * btrace.c (ftrace_new_function, ftrace_fixup_level,
8556 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
8557 btrace_insn_next, btrace_insn_prev): Remove references to
8558 btrace_thread_info::flow.
8559 * btrace.h (struct btrace_function): Remove FLOW.
8560
42bfe59e
TW
85612017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8562
8563 * btrace.c (ftrace_find_call_by_number): New function.
8564 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
8565 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
8566 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
8567 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
8568 index.
8569 * btrace.h (struct btrace_function): Turn UP into an index.
8570 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
8571 as an index.
8572 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
8573 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
8574 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
8575
b54b03bd
TW
85762017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8577
8578 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
8579 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
8580 ftrace_update_function, ftrace_compute_global_level_offset,
8581 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
8582 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
8583 btrace_insn_end, btrace_is_empty): Remove references to
8584 btrace_thread_info::begin and btrace_thread_info::end.
8585 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
8586 (struct btrace_thread_info) <functions>: Adjust comment.
8587 * record-btrace.c (record_btrace_start_replaying): Remove reference to
8588 btrace_thread_info::begin.
8589
8286623c
TW
85902017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8591
8592 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
8593 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
8594 ftrace_update_function): Remove arguments that implicitly were always
8595 BTINFO->END.
8596 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
8597 Don't pass BTINFO->END.
8598
a0f1b963
TW
85992017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8600
8601 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
8602 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
8603 btrace_find_insn_by_number): Replace function segment pointer with
8604 index.
8605 (btrace_insn_cmp): Simplify.
8606 * btrace.h: (struct btrace_insn_iterator) Rename index to
8607 insn_index. Replace function segment pointer with index into function
8608 segment vector.
8609 * record-btrace.c (record_btrace_call_history): Replace function
8610 segment pointer use with index.
8611 (record_btrace_frame_sniffer): Retrieve function call segment through
8612 vector.
8613 (record_btrace_set_replay): Remove defunc't safety check.
8614
f158f208
TW
86152017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8616
8617 * btrace.c (btrace_ends_with_single_insn): New function.
8618 (btrace_call_get, btrace_call_number, btrace_call_begin,
8619 btrace_call_end, btrace_call_next, btrace_call_prev,
8620 btrace_find_call_by_number): Use index into call segment vector
8621 instead of pointer.
8622 (btrace_call_cmp): Simplify.
8623 * btrace.h (struct btrace_call_iterator): Replace function call segment
8624 pointer with index into vector.
8625 * record-btrace.c (record_btrace_call_history): Use index instead of
8626 pointer.
8627
521103fd
TW
86282017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8629
8630 * btrace.c (btrace_insn_begin, btrace_insn_end,
8631 btrace_find_insn_by_number): Add btinfo to iterator.
8632 * btrace.h (struct btrace_insn_iterator): Add btinfo.
8633
17b89b34
TW
86342017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8635
8636 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
8637 and save pointers directly.
8638 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
8639 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
8640 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
8641 changed signature of functions.
8642 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
8643 (btrace_fetch): Remove code that adds btrace_function pointers to
8644 vector of btrace_functions.
8645 (btrace_clear): Simplify freeing vector of btrace_functions.
8646
2b51eddc
TW
86472017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8648
8649 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
8650 Replace VEC_* with std::vector functions.
8651 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
8652 (struct btrace_thread_info)<functions>: Change type to std::vector.
8653
db6be0d5
SM
86542017-05-30 Simon Marchi <simon.marchi@ericsson.com>
8655
8656 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
8657 "Removed targets and native configurations" up. Merge duplicate
8658 "New commands" sub-sections. Add "New options" sub-sections.
8659
b057297a
AH
86602017-05-26 Alan Hayward <alan.hayward@arm.com>
8661
8662 * defs.h (copy_integer_to_size): New declaration.
8663 * findvar.c (copy_integer_to_size): New function.
8664 (do_cint_test): New selftest function.
8665 (copy_integer_to_size_test): Likewise.
8666 (_initialize_findvar): Likewise.
8667 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
8668 (mips_fbsd_collect_reg): Use raw_collect_integer.
8669 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
8670 (mips64_fill_gregset): Use raw_collect_integer
8671 (mips64_fill_fpregset): Use raw_supply_integer.
8672 * regcache.c (regcache::raw_supply_integer): New function.
8673 (regcache::raw_collect_integer): Likewise.
8674 * regcache.h: (regcache::raw_supply_integer): New declaration.
8675 (regcache::raw_collect_integer): Likewise.
8676
b77b02a5
YQ
86772017-05-24 Yao Qi <yao.qi@linaro.org>
8678
8679 * Makefile.in (SFILES): Add gdbarch-selftests.c.
8680 (COMMON_OBS): Add gdbarch-selftests.o.
8681 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
8682 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
8683 * gdbarch-selftests.c: New file.
8684 * regcache.h (regcache) <~regcache>: Mark it virtual if
8685 GDB_SELF_TEST.
8686 <raw_write>: Likewise.
8687
e521e87e
YQ
86882017-05-24 Yao Qi <yao.qi@linaro.org>
8689
8690 * regcache.c (current_regcache): Change it to
8691 regcache::current_regcache.
8692 (regcache_observer_target_changed): Update.
8693 (regcache_thread_ptid_changed): Make it a regcache static
8694 method.
8695 (regcache_thread_ptid_changed): Update.
8696 (class regcache_access): New.
8697 (current_regcache_test): Update.
8698 (_initialize_regcache): Update.
8699 * regcache.h: Include forward_list.
8700 (regcache): Declare regcache_thread_ptid_changed and declare
8701 registers_changed_ptid as friend.
8702
d8e07dda
YQ
87032017-05-24 Yao Qi <yao.qi@linaro.org>
8704
8705 * i387-tdep.c (i387_register_to_value): Use register_size
8706 instead of TYPE_LENGTH.
8707 * m68k-tdep.c (m68k_register_to_value): Likewise.
8708
8c8f9122
YQ
87092017-05-24 Yao Qi <yao.qi@linaro.org>
8710
8711 * i387-tdep.c (i387_convert_register_p): Return false if type
8712 code isn't TYPE_CODE_FLT.
8713
68fce50f
YQ
87142017-05-24 Yao Qi <yao.qi@linaro.org>
8715
8716 * alpha-tdep.c (alpha_convert_register_p): Return true if type
8717 length is 4.
8718 (alpha_register_to_value): Remove type length check.
8719 (alpha_value_to_register): Likewise.
8720
88954b49
YQ
87212017-05-24 Yao Qi <yao.qi@linaro.org>
8722
8723 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
8724 TYPE_CODE_FLT.
8725
e3ec9b69
YQ
87262017-05-24 Yao Qi <yao.qi@linaro.org>
8727
8728 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
8729 TYPE_CODE_FLT or not.
8730
cdd238da
YQ
87312017-05-24 Yao Qi <yao.qi@linaro.org>
8732
8733 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
8734 * avr-tdep.c (avr_gdbarch_init): Likewise.
8735 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8736 * cris-tdep.c (cris_gdbarch_init): Likewise.
8737 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
8738 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8739 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8740 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
8741 * mep-tdep.c (mep_gdbarch_init): Likewise.
8742 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8743 * mips-tdep.c (mips_gdbarch_init): Likewise.
8744 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
8745 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8746 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
8747 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8748 * v850-tdep.c (v850_gdbarch_init): Likewise.
8749
7a3929c4
YQ
87502017-05-24 Yao Qi <yao.qi@linaro.org>
8751
8752 * selftest-arch.c (tests_with_arch): Call registers_changed
8753 and reinit_frame_cache.
8754 * selftest.c (run_self_tests): Likewise.
8755
f4985dba
YQ
87562017-05-24 Yao Qi <yao.qi@linaro.org>
8757
8758 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
8759 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
8760
ab20fa4a
YQ
87612017-05-24 Yao Qi <yao.qi@linaro.org>
8762
8763 * rl78-tdep.c (rl78_gdbarch_init): Don't call
8764 set_gdbarch_print_insn.
8765
f532ab94
YQ
87662017-05-24 Yao Qi <yao.qi@linaro.org>
8767
8768 * h8300-tdep.c (h8300_gdbarch_init): Don't call
8769 set_gdbarch_print_insn.
8770
39503f82
YQ
87712017-05-24 Yao Qi <yao.qi@linaro.org>
8772
8773 * alpha-tdep.c (alpha_gdbarch_init): Don't call
8774 set_gdbarch_print_insn.
8775 * arc-tdep.c (arc_gdbarch_init): Likewise.
8776 * arch-utils.c: include dis-asm.h.
8777 (default_print_insn): New function.
8778 * arch-utils.h (default_print_insn): Declare.
8779 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
8780 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8781 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
8782 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
8783 * frv-tdep.c (frv_gdbarch_init): Likewise.
8784 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
8785 * gdbarch.sh (print_insn): Use default_print_insn.
8786 * gdbarch.c: Regenerated.
8787 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
8788 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
8789 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8790 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
8791 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8792 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
8793 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
8794 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
8795 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
8796 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8797 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
8798 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8799 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
8800 * mt-tdep.c (mt_gdbarch_init): Likewise.
8801 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
8802 * nios2-tdep.c (nios2_print_insn): Remove.
8803 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
8804 * rx-tdep.c (rx_gdbarch_init): Likewise.
8805 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8806 * score-tdep.c (score_print_insn): Remove.
8807 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
8808 * sh-tdep.c (sh_gdbarch_init): Likewise.
8809 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8810 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8811 * tic6x-tdep.c (tic6x_print_insn): Remove.
8812 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
8813 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
8814 * v850-tdep.c (v850_gdbarch_init): Likewise.
8815 * vax-tdep.c (vax_gdbarch_init): Likewise.
8816 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
8817 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
8818
f7241d4f
JB
88192017-05-23 John Baldwin <jhb@FreeBSD.org>
8820
8821 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
8822 (MIPS_FP0_REGNUM): Remove.
8823 (MIPS_FSR_REGNUM): Remove.
8824 (mips_fbsd_supply_fpregs): Use mips_regnum.
8825 (mips_fbsd_supply_gregs): Likewise.
8826 (mips_fbsd_collect_fpregs): Likewise.
8827 (mips_fbsd_collect_gregs): Likewise.
8828
d489d81d
JB
88292017-05-23 John Baldwin <jhb@FreeBSD.org>
8830
8831 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
8832 (getpfpregs_supplies): New function.
8833 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
8834 getfpregs_supplies.
8835 (mips_fbsd_store_inferior_registers): Likewise.
8836
e11b3cdc
PA
88372017-05-22 Pedro Alves <palves@redhat.com>
8838
8839 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
8840 maintainer.
8841
0f068fb5
AH
88422017-05-22 Alan Hayward <alan.hayward@arm.com>
8843
8844 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
8845 (store_register): Likewise.
8846 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
8847 (get_decimal_float_return_value): Likewise.
8848 (do_ppc_sysv_return_value): Likewise.
8849 (ppc64_sysv_abi_push_integer): Likewise.
8850 (ppc64_sysv_abi_push_freg): Likewise.
8851 (ppc64_sysv_abi_return_value_base): Likewise.
8852 (ppc64_sysv_abi_return_value): Likewise.
8853 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
8854 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
8855 * rs6000-nat.c: Likewise.
8856 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
8857 (rs6000_value_to_register): Likewise.
8858 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
8859
e6cf65f2
TT
88602017-05-21 Tom Tromey <tom@tromey.com>
8861
8862 PR rust/21466:
8863 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
8864 arrays as "[T]", not "[T; ]".
8865
43cc5389
TT
88662017-05-19 Tom Tromey <tom@tromey.com>
8867
8868 PR rust/21484:
8869 * rust-lang.c (exp_descriptor_rust): New function.
8870 (rust_language_defn): Use it.
8871 * p-lang.c (pascal_language_defn): Update.
8872 * opencl-lang.c (opencl_language_defn): Update.
8873 * objc-lang.c (objc_language_defn): Update.
8874 * m2-lang.c (m2_language_defn): Update.
8875 * language.h (struct language_defn)
8876 <la_watch_location_expression>: New member.
8877 * language.c (unknown_language_defn, auto_language_defn)
8878 (local_language_defn): Update.
8879 * go-lang.c (go_language_defn): Update.
8880 * f-lang.c (f_language_defn): Update.
8881 * d-lang.c (d_language_defn): Update.
8882 * c-lang.h (c_watch_location_expression): Declare.
8883 * c-lang.c (c_watch_location_expression): New function.
8884 (c_language_defn, cplus_language_defn, asm_language_defn)
8885 (minimal_language_defn): Use it.
8886 * breakpoint.c (watch_command_1): Call
8887 la_watch_location_expression.
8888 * ada-lang.c (ada_language_defn): Update.
8889
7a6e7fcc
RO
88902017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8891
6e7e1744
RO
8892 PR tui/21482
8893 * gdb_curses.h (NOMACROS): Define.
8894 (NCURSES_NOMACROS): Define.
8895
88962017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8897
8898 PR tui/21482
7a6e7fcc
RO
8899 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
8900 arg to char *.
8901 * tui/tui-wingeneral.c (box_win): Likewise.
8902 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
8903 (tui_show_source_line): Likewise.
8904 (tui_show_exec_info_content): Likewise.
8905
1933fd8e
VM
89062017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
8907
8908 * sparc-tdep.c (sparc_structure_return_p)
8909 (sparc_arg_on_registers_p): New functions.
8910 (sparc32_store_arguments): Use them.
8911 * sparc64-tdep.c (sparc64_16_byte_align_p)
8912 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
8913 Handle TYPE_CODE_ARRAY.
8914
21873064
YQ
89152017-05-17 Yao Qi <yao.qi@linaro.org>
8916
8917 * cli/cli-decode.c (add_alias_cmd): New function.
8918 * command.h (add_alias_cmd): Declare.
8919 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
8920 instead call add_alias_cmd.
8921
2b351b19
PA
89222017-05-17 Pedro Alves <palves@redhat.com>
8923
8924 * Makefile.in (nat_extra_makefile_frag): Rename to ...
8925 (nat_makefile_frag): ... this. All references updated.
8926 * configure.ac: Likewise.
8927 * configure.nat: Likewise. Enhance comments.
8928 * configure: Regenerate.
8929
5f2ad7a3
RO
89302017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8931
8932 * procfs.c (procfs_create_inferior): Change prototype to match
8933 definition.
8934
adf3dde5
EZ
89352017-05-13 Eli Zaretskii <eliz@gnu.org>
8936
8937 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
8938 C++ compiler warning.
8939
6830f270
TT
89402017-05-12 Tom Tromey <tom@tromey.com>
8941
8942 PR rust/21483:
8943 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
8944 recurse, just call value_struct_elt directly.
8945
68f2f2e3
TT
89462017-05-12 Tom Tromey <tom@tromey.com>
8947
8948 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
8949 OP_RUST_ARRAY>: Fix.
8950
256afbc2
TT
89512017-05-12 Tom Tromey <tom@tromey.com>
8952
8953 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
8954
94bb8dfe
YQ
89552017-05-09 Yao Qi <yao.qi@linaro.org>
8956
8957 * regcache.c: Include <forward_list>.
8958 (struct regcache_list): Remove.
8959 (current_regcache): Update.
8960 (get_thread_arch_aspace_regcache): Update for std::forward_list.
8961 (regcache_thread_ptid_changed): Likewise.
8962 (registers_changed_ptid): Likewise.
8963 (current_regcache_size): Likewise.
8964
8248946c
YQ
89652017-05-09 Yao Qi <yao.qi@linaro.org>
8966
8967 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
8968 (current_regcache_size): New function.
8969 (current_regcache_test): New function.
8970 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
8971
313c5961
AH
89722017-05-08 Alan Hayward <alan.hayward@arm.com>
8973
8974 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
8975 (print_gp_register_row): Use get_frame_register_value.
8976
27bfc1d1
AH
89772017-05-08 Alan Hayward <alan.hayward@arm.com>
8978
8979 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
8980 (mips_supply_fpregset): Likewise.
8981 (mips64_supply_gregset): Likewise.
8982
146e6c5c
AH
89832017-05-08 Alan Hayward <alan.hayward@arm.com>
8984
8985 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
8986 regcache->raw_supply_zeroed.
8987
e50f25ec
SDJ
89882017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
8989
8990 * configure.nat: Rearrange 'case' statements to match
8991 host before cpu.
8992
21ea5acd
SDJ
89932017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
8994
8995 * Makefile.in: Remove "@host_makefile_frag@". Add variables
8996 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
8997 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
8998 "@nat_extra_makefile_frag@".
8999 (Makefile): Remove dependency on "@frags@".
9000 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
9001 (data-directory/Makefile): Likewise.
9002 * config/aarch64/linux.mh: Deleted; moved contents to
9003 "gdb/configure.nat".
9004 * config/alpha/alpha-linux.mh: Likewise.
9005 * config/alpha/nbsd.mh: Likewise.
9006 * config/arm/linux.mh: Likewise.
9007 * config/arm/nbsdelf.mh: Likewise.
9008 * config/i386/cygwin.mh: Likewise.
9009 * config/i386/cygwin64.mh: Likewise.
9010 * config/i386/darwin.mh: Likewise.
9011 * config/i386/fbsd.mh: Likewise.
9012 * config/i386/fbsd64.mh: Likewise.
9013 * config/i386/go32.mh: Likewise.
9014 * config/i386/i386gnu.mh: Likewise.
9015 * config/i386/i386sol2.mh: Likewise.
9016 * config/i386/linux.mh: Likewise.
9017 * config/i386/linux64.mh: Likewise.
9018 * config/i386/mingw.mh: Likewise.
9019 * config/i386/mingw64.mh: Likewise.
9020 * config/i386/nbsd64.mh: Likewise.
9021 * config/i386/nbsdelf.mh: Likewise.
9022 * config/i386/nto.mh: Likewise.
9023 * config/i386/obsd.mh: Likewise.
9024 * config/i386/obsd64.mh: Likewise.
9025 * config/i386/sol2-64.mh: Likewise.
9026 * config/ia64/linux.mh: Likewise.
9027 * config/m32r/linux.mh: Likewise.
9028 * config/m68k/linux.mh: Likewise.
9029 * config/m68k/nbsdelf.mh: Likewise.
9030 * config/m68k/obsd.mh: Likewise.
9031 * config/m88k/obsd.mh: Likewise.
9032 * config/mips/fbsd.mh: Likewise.
9033 * config/mips/linux.mh: Likewise.
9034 * config/mips/nbsd.mh: Likewise.
9035 * config/mips/obsd64.mh: Likewise.
9036 * config/pa/linux.mh: Likewise.
9037 * config/pa/nbsd.mh: Likewise.
9038 * config/pa/obsd.mh: Likewise.
9039 * config/powerpc/aix.mh: Likewise.
9040 * config/powerpc/fbsd.mh: Likewise.
9041 * config/powerpc/linux.mh: Likewise.
9042 * config/powerpc/nbsd.mh: Likewise.
9043 * config/powerpc/obsd.mh: Likewise.
9044 * config/powerpc/ppc64-linux.mh: Likewise.
9045 * config/powerpc/spu-linux.mh: Likewise.
9046 * config/s390/linux.mh: Likewise.
9047 * config/sh/nbsd.mh: Likewise.
9048 * config/sparc/fbsd.mh: Likewise.
9049 * config/sparc/linux.mh: Likewise.
9050 * config/sparc/linux64.mh: Likewise.
9051 * config/sparc/nbsd64.mh: Likewise.
9052 * config/sparc/nbsdelf.mh: Likewise.
9053 * config/sparc/obsd64.mh: Likewise.
9054 * config/sparc/sol2.mh: Likewise.
9055 * config/tilegx/linux.mh: Likewise.
9056 * config/vax/nbsdelf.mh: Likewise.
9057 * config/vax/obsd.mh: Likewise.
9058 * config/xtensa/linux.mh: Likewise.
9059 * config/i386/i386gnu.mn: New file, with excerpts from
9060 "config/i386/i386gnu.mh".
9061 * configure: Regenerate.
9062 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
9063 *.mh files under "gdb/config".
9064 * configure.nat: New file, with contents from the
9065 "gdb/config/*/*.mh" files.
9066
7ed1acaf
TW
90672017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
9068
9069 * btrace.c (btrace_clear): Free insn vector.
9070
e13cb306
PA
90712017-05-05 Pedro Alves <palves@redhat.com>
9072
9073 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
9074 * configure: Regenerate.
9075
5ed8105e
PA
90762017-05-04 Pedro Alves <palves@redhat.com>
9077
9078 * Makefile.in (SFILES): Add progspace-and-thread.c.
9079 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
9080 (COMMON_OBS): Add progspace-and-thread.o.
9081 * breakpoint.c: Include "progspace-and-thread.h".
9082 (update_inserted_breakpoint_locations)
9083 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
9084 Use scoped_restore_current_pspace_and_thread.
9085 (create_std_terminate_master_breakpoint): Use
9086 scoped_restore_current_program_space.
9087 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
9088 (print_breakpoint_location): Use
9089 scoped_restore_current_program_space.
9090 (bp_loc_is_permanent): Use
9091 scoped_restore_current_pspace_and_thread.
9092 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
9093 (download_tracepoint_locations): Use
9094 scoped_restore_current_pspace_and_thread.
9095 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
9096 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
9097 (enum step_over_calls_kind): Moved from inferior.h.
9098 (class scoped_restore_current_thread): New class.
9099 * gdbthread.h (make_cleanup_restore_current_thread): Delete
9100 declaration.
9101 (scoped_restore_current_thread): New class.
9102 * infcmd.c: Include "common/gdb_optional.h".
9103 (continue_1, proceed_after_attach): Use
9104 scoped_restore_current_thread.
9105 (notice_new_inferior): Use scoped_restore_current_thread.
9106 * inferior.c: Include "progspace-and-thread.h".
9107 (restore_inferior, save_current_inferior): Delete.
9108 (add_inferior_command, clone_inferior_command): Use
9109 scoped_restore_current_pspace_and_thread.
9110 * inferior.h (scoped_restore_current_inferior): New class.
9111 * infrun.c: Include "progspace-and-thread.h" and
9112 "common/gdb_optional.h".
9113 (follow_fork_inferior): Use
9114 scoped_restore_current_pspace_and_thread.
9115 (scoped_restore_exited_inferior): New class.
9116 (handle_vfork_child_exec_or_exit): Use
9117 scoped_restore_exited_inferior,
9118 scoped_restore_current_pspace_and_thread,
9119 scoped_restore_current_thread and scoped_restore.
9120 (fetch_inferior_event): Use scoped_restore_current_thread.
9121 * linespec.c (decode_line_full, decode_line_1): Use
9122 scoped_restore_current_program_space.
9123 * mi/mi-main.c: Include "progspace-and-thread.h".
9124 (exec_continue): Use scoped_restore_current_thread.
9125 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
9126 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
9127 * proc-service.c (ps_pglobal_lookup): Use
9128 scoped_restore_current_program_space.
9129 * progspace-and-thread.c: New file.
9130 * progspace-and-thread.h: New file.
9131 * progspace.c (release_program_space, clone_program_space): Use
9132 scoped_restore_current_program_space.
9133 (restore_program_space, save_current_program_space)
9134 (save_current_space_and_thread): Delete.
9135 (switch_to_program_space_and_thread): Moved to
9136 progspace-and-thread.c.
9137 * progspace.h (save_current_program_space)
9138 (save_current_space_and_thread): Delete declarations.
9139 (scoped_restore_current_program_space): New class.
9140 * remote.c (remote_btrace_maybe_reopen): Use
9141 scoped_restore_current_thread.
9142 * symtab.c: Include "progspace-and-thread.h".
9143 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
9144 * thread.c (print_thread_info_1): Use
9145 scoped_restore_current_thread.
9146 (struct current_thread_cleanup): Delete.
9147 (do_restore_current_thread_cleanup)
9148 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
9149 (scoped_restore_current_thread::~scoped_restore_current_thread):
9150 ... this new dtor.
9151 (make_cleanup_restore_current_thread): Rename/convert to ...
9152 (scoped_restore_current_thread::scoped_restore_current_thread):
9153 ... this new ctor.
9154 (thread_apply_all_command): Use scoped_restore_current_thread.
9155 (thread_apply_command): Use scoped_restore_current_thread.
9156 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
9157 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
9158
f6223dbb
PA
91592017-05-04 Pedro Alves <palves@redhat.com>
9160
9161 * thread.c (make_cleanup_restore_current_thread): Move
9162 find_thread_ptid call before the is_stopped call. Assert that the
9163 thread is found. Replace is_stopped call by checking the thread's
9164 state directly. Remove unnecessary NULL-thread check.
9165
3c3ae77e
PA
91662017-05-04 Pedro Alves <palves@redhat.com>
9167
9168 * corelow.c (thread_section_name): New class.
9169 (get_core_register_section, get_core_siginfo): Use it.
9170
45eba0ab
AA
91712017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9172
9173 * corelow.c (sniff_core_bfd): Remove extra semicolon.
9174 (get_core_register_section): Remove xfree of NULL pointer.
9175
f81fdd35
AH
91762017-05-03 Alan Hayward <alan.hayward@arm.com>
9177
9178 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
9179 * regcache.c (regcache::raw_supply_zeroed): New function.
9180 * regcache.h (regcache::raw_supply_zeroed): New declaration.
9181
35837774
SM
91822017-05-03 Simon Marchi <simon.marchi@ericsson.com>
9183
9184 * gdbarch.sh: Remove commented out definition of
9185 TARGET_CHAR_BIT.
9186 * gdbarch.h: Re-generate.
9187
c94fee56
SDJ
91882017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
9189
9190 * configure: Regenerate.
9191
d17f7b36
SM
91922017-05-02 Simon Marchi <simon.marchi@ericsson.com>
9193
9194 * solib-target.c (solib_target_relocate_section_addresses):
9195 Remove num_section_bases, num_bases, segment_bases variables.
9196
b560ebd6
SM
91972017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9198
9199 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
9200
f2f46dfc
SM
92012017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9202
9203 * solib-target.c: Include <vector>
9204 (struct lm_info_target) <~lm_info_target>: Remove.
9205 <segment_bases, section_bases>: Change type to
9206 std::vector<CORE_ADDR>.
9207 (library_list_start_segment, library_list_start_section,
9208 library_list_end_library,
9209 solib_target_relocate_section_addresses): Adjust.
9210
a0ff9e1a
SM
92112017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9212
9213 * gdbarch.sh (software_single_step): Change return type to
9214 std::vector<CORE_ADDR>.
9215 * gdbarch.c, gdbarch.h: Re-generate.
9216 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
9217 Adjust.
9218 (arm_deal_with_atomic_sequence_raw): Adjust.
9219 (thumb_get_next_pcs_raw): Adjust.
9220 (arm_get_next_pcs_raw): Adjust.
9221 (arm_get_next_pcs): Adjust.
9222 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
9223 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
9224 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
9225 (alpha_software_single_step): Adjust.
9226 * alpha-tdep.h (alpha_software_single_step): Adjust.
9227 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
9228 * arm-tdep.c (arm_software_single_step): Adjust.
9229 (arm_breakpoint_kind_from_current_state): Adjust.
9230 * arm-tdep.h (arm_software_single_step): Adjust.
9231 * breakpoint.c (insert_single_step_breakpoint): Adjust.
9232 * cris-tdep.c (cris_software_single_step): Adjust.
9233 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
9234 (micromips_deal_with_atomic_sequence): Adjust.
9235 (deal_with_atomic_sequence): Adjust.
9236 (mips_software_single_step): Adjust.
9237 * mips-tdep.h (mips_software_single_step): Adjust.
9238 * moxie-tdep.c (moxie_software_single_step): Adjust.
9239 * nios2-tdep.c (nios2_software_single_step): Adjust.
9240 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
9241 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
9242 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
9243 * s390-linux-tdep.c (s390_software_single_step): Adjust.
9244 * sparc-tdep.c (sparc_software_single_step): Adjust.
9245 * spu-tdep.c (spu_software_single_step): Adjust.
9246 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
9247
ea480a30
SM
92482017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9249
9250 * gdbarch.sh: Use semi-colon as field separator instead of colon.
9251 * gdbarch.h: Re-generate.
9252
d050f7d7
TW
92532017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9254
9255 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
9256 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
9257 * python/py-instruction.c, python/py-instruction.h: New file.
9258 * python/py-record.c: Add py-instruction.h include.
9259 (gdbpy_initialize_record): Make gdb.Instruction a super class of
9260 gdb.RecordInstruction.
9261 * python/python-internal.h: Add gdbpy_initialize_instruction
9262 declaration.
9263 * python/python.c (do_start_initialization): Add
9264 gdbpy_initialize_instruction.
9265
14f819c8
TW
92662017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9267
9268 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
9269 Remove.
9270 (btrace_func_from_recpy_func): New function.
9271 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
9272 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
9273 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
9274 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
9275 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
9276 Also, use new helper functions.
9277 (btpy_list_item): Use new helper functions.
9278 (recpy_bt_function_call_history): Use new type name.
9279 (btpy_call_getset): Remove.
9280 (gdbpy_initialize_btrace): Remove code to initialize
9281 gdb.BtraceFunctionCall.
9282 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
9283 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
9284 recpy_bt_func_prev, recpy_bt_func_next): New export.
9285 * python/py-record.c (recpy_func_type): New static object.
9286 (recpy_func_new, recpy_func_level, recpy_func_symbol,
9287 recpy_func_instructions, recpy_func_up, recpy_func_prev,
9288 recpy_func_next): New function.
9289 (recpy_element_hash, recpy_element_richcompare): Updated comment.
9290 (recpy_func_getset): New static object.
9291 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
9292 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
9293
0ed5da75
TW
92942017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9295
9296 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
9297 (btpy_object, btpy_insn_type, btpy_new): Remove.
9298 (btpy_list_object): Use gdb.RecordInstruction type instead of
9299 gdb.BtraceInstruction type.
9300 (btrace_insn_from_recpy_insn): New function.
9301 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
9302 btpy_new.
9303 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
9304 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
9305 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
9306 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
9307 instead of btpy_object.
9308 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9309 btpy_insn_data, btpy_insn_decode): Rename to ...
9310 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
9311 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
9312 recpy_bt_insn_decode): This. Also, use new helper functions.
9313 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
9314 recpy_insn_type.
9315 (btpy_insn_getset): Remove.
9316 (gdbpy_initialize_btrace): Remove code to initialize
9317 gdb.BtraceInstruction. Use recpy_element_object.
9318 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
9319 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
9320 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
9321 * python/py-record.c (recpy_insn_type): New static object.
9322 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
9323 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
9324 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
9325 New function.
9326 (recpy_insn_getset): New static object.
9327 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
9328 * python/py-record.h (recpy_element_object): New typedef.
9329 (recpy_insn_type, recpy_insn_new): New export.
9330
913aeadd
TW
93312017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9332
9333 * py-record-btrace.c (btpy_insn_new): Removed.
9334 (btpy_insn_or_gap_new): New function.
9335 (btpy_insn_error): Removed.
9336 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9337 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
9338 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
9339 btpy_insn_or_gap_new instead of btpy_insn_new.
9340 (btpy_insn_getset): Remove btpy_insn_error.
9341 * py-record.c (recpy_gap_type): New static object.
9342 (recpy_gap_object): New typedef.
9343 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
9344 recpy_gap_reason_string): New function.
9345 (recpy_gap_getset): New static object.
9346 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
9347 * py-record.h (recpy_gap_new): New export.
9348
a3be24ad
TW
93492017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9350
9351 * python/py-record.c (recpy_ptid): Remove.
9352 (recpy_record_getset): Remove recpy_ptid.
9353
ae20e79a
TW
93542017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9355
9356 * btrace.c (btrace_fetch): Set inferior_ptid.
9357 * python/py-record-btrace.c: Add "py-record.h" include.
9358 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
9359 recpy_bt_end, recpy_bt_instruction_history,
9360 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
9361 in gdb.Record object instead of current ptid.
9362 * python/py-record.c: Include new "py-record.h" file.
9363 (recpy_record_object): Moved to py-record.h.
9364 * python/py-record.h: New file.
9365
8d0050ea
TW
93662017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9367
9368 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
9369 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
9370 indentation.
9371
3f380b50
JB
93722017-05-01 Joel Brobecker <brobecker@adacore.com>
9373
9374 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
9375 the past maintainers section.
9376
07495424
YQ
93772017-04-28 Yao Qi <yao.qi@linaro.org>
9378
9379 * infcmd.c (get_return_value): Use regcache ctor, and remove
9380 cleanup.
9381
deb1fa3e
YQ
93822017-04-28 Yao Qi <yao.qi@linaro.org>
9383 Pedro Alves <palves@redhat.com>
9384
9385 * regcache.c (regcache::regcache): New tag dispatch ctor.
9386 (do_cooked_read): Moved above.
9387 (regcache_dup): Use the tag dispatch ctor..
9388 * regcache.h (regcache): Declare ctor, delete copy ctor and
9389 assignment operator, remove friend regcache_dup.
9390
b421c83c
YQ
93912017-04-28 Yao Qi <yao.qi@linaro.org>
9392
9393 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
9394 call method save instead of regcache_cpy.
9395 * regcache.h (struct regcache): Make regcache_dup a friend.
9396
ef79d9a3
YQ
93972017-04-28 Yao Qi <yao.qi@linaro.org>
9398
9399 * regcache.c (struct regcache): Move to regcache.h
9400 (regcache::arch): New method.
9401 (regcache_get_ptid): Update.
9402 (get_regcache_arch): Call arch method.
9403 (get_regcache_aspace): Call method aspace.
9404 (register_buffer): Change it to method.
9405 (regcache_save): Change it to regcache::save.
9406 (regcache_restore): Likewise.
9407 (regcache_cpy_no_passthrough): Remove the declaration.
9408 (regcache_cpy): Call methods restore and cpy_no_passthrough.
9409 (regcache_cpy_no_passthrough): Change it to method
9410 cpy_no_passthrough.
9411 (regcache_register_status): Change it to method
9412 get_register_status.
9413 (regcache_invalidate): Change it to method invalidate.
9414 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
9415 (regcache_raw_update): Change it to method raw_update.
9416 (regcache_raw_read): Likewise.
9417 (regcache_raw_read_signed): Likewise.
9418 (regcache_raw_read_unsigned): Likewise.
9419 (regcache_raw_write_signed): Likewise.
9420 (regcache_raw_write_unsigned): Likewise.
9421 (regcache_cooked_read): Likewise.
9422 (regcache_cooked_read_value): Likewise.
9423 (regcache_cooked_read_signed): Likewise.
9424 (regcache_cooked_read_unsigned): Likewise.
9425 (regcache_cooked_write_signed): Likewise.
9426 (regcache_cooked_write_unsigned): Likewise.
9427 (regcache_raw_set_cached_value): Likewise.
9428 (regcache_raw_write): Likewise.
9429 (regcache_cooked_write): Likewise.
9430 (regcache_xfer_part): Likewise.
9431 (regcache_raw_read_part): Likewise.
9432 (regcache_raw_write_part): Likewise.
9433 (regcache_cooked_read_part): Likewise.
9434 (regcache_cooked_write_part): Likewise.
9435 (regcache_raw_supply): Likewise.
9436 (regcache_raw_collect): Likewise.
9437 (regcache_transfer_regset): Likewise.
9438 (regcache_supply_regset): Likewise.
9439 (regcache_collect_regset): Likewise.
9440 (regcache_debug_print_register): Likewise.
9441 (enum regcache_dump_what): Move it to regcache.h.
9442 (regcache_dump): Change it to method dump.
9443 * regcache.h (enum regcache_dump_what): New.
9444 (class regcache): New.
9445 * target.c (target_fetch_registers): Call method
9446 debug_print_register.
9447 (target_store_registers): Likewise.
9448
f8fdb78e
SM
94492017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9450
9451 * windows-nat.c (struct lm_info_windows): Initialize field.
9452 (windows_make_so): Allocate lm_info_windows with new.
9453 (windows_free_so): Free lm_info_windows with delete.
9454
9ccbfd7b
SM
94552017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9456
9457 * solib-darwin.c (struct lm_info_darwin): Initialize field.
9458 (darwin_current_sos): Allocate lm_info_darwin with new, remove
9459 cleanup.
9460 (darwin_free_so): Free lm_info_darwin with delete.
9461
76e75227
SM
94622017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9463
9464 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
9465 <l_addr_p>: Change type to bool.
9466 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
9467 (svr4_free_so): Free lm_info_svr4 with delete.
9468 (svr4_copy_library_list): Replace memcpy with call to copy
9469 constructor.
9470 (library_list_start_library, svr4_default_sos): Allocate
9471 lm_info_svr4 with new.
9472
51046d9e
SM
94732017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9474
9475 * solib-target.c (struct lm_info_target): Add destructor,
9476 initialize fields.
9477 <name>: Change type to std::string.
9478 (library_list_start_library): Allocate lm_info_target with new.
9479 (solib_target_free_library_list): Free lm_info_target with
9480 delete.
9481 (solib_target_current_sos): Adapt to std::string.
9482 (solib_target_free_so): Free lm_info_target with delete.
9483
4023ae76
SM
94842017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9485
9486 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
9487 fields.
9488 (frv_current_sos): Allocate lm_info_frv with new.
9489 (frv_relocate_main_executable): Free lm_info_frv with delete,
9490 allocate with new.
9491 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
9492
af43057b
SM
94932017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9494
9495 * solib-frv.c (struct lm_info_frv): Fix indentation.
9496
b0911207
SM
94972017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9498
9499 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
9500 map field.
9501 (dsbt_current_sos): Allocate lm_info_dsbt with new.
9502 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
9503 and allocate with new.
9504 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
9505
6c401f72
SM
95062017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9507
9508 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
9509 <filename, member_name>: Change type to std::string.
9510 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
9511 (library_list_start_library): Allocate lm_info_aix with new.
9512 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
9513 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
9514 with copy constructor.
9515
d0e449a1
SM
95162017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9517
9518 * solist.h (struct lm_info): Remove.
9519 (struct lm_info_base): New class.
9520 (struct so_list) <lm_info>: Change type to lm_info_base *.
9521 * nto-tdep.c (struct lm_info): Remove.
9522 (lm_addr): Adjust.
9523 * solib-aix.c (struct lm_info): Rename to ...
9524 (struct lm_info_aix): ... this. Extend lm_info_base.
9525 (lm_info_p): Rename to ...
9526 (lm_info_aix_p): ... this, and adjust.
9527 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
9528 solib_aix_parse_libraries, library_list_start_library,
9529 solib_aix_free_library_list, solib_aix_parse_libraries,
9530 solib_aix_get_library_list,
9531 solib_aix_relocate_section_addresses, solib_aix_free_so,
9532 solib_aix_get_section_offsets,
9533 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
9534 Adjust.
9535 (struct solib_aix_inferior_data) <library_list>: Adjust.
9536 * solib-darwin.c (struct lm_info): Rename to ...
9537 (struct lm_info_darwin): ... this. Extend lm_info_base.
9538 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
9539 * solib-dsbt.c (struct lm_info): Rename to ...
9540 (struct lm_info_dsbt): ... this. Extend lm_info_base.
9541 (struct dsbt_info) <main_executable_lm_info): Adjust.
9542 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
9543 dsbt_relocate_section_addresses): Adjust.
9544 * solib-frv.c (struct lm_info): Rename to ...
9545 (struct lm_info_frv): ... this. Extend lm_info_base.
9546 (main_executable_lm_info): Adjust.
9547 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
9548 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
9549 find_canonical_descriptor_in_load_object,
9550 frv_fdpic_find_canonical_descriptor): Adjust.
9551 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
9552 to lm_info_svr4.
9553 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
9554 svr4_clear_so, svr4_copy_library_list,
9555 library_list_start_library, svr4_default_sos, svr4_read_so_list,
9556 svr4_current_sos, svr4_fetch_objfile_link_map,
9557 solist_update_incremental): Adjust.
9558 * solib-svr4.h (struct lm_info_svr4): Move here from
9559 solib-svr4.c.
9560 * solib-target.c (struct lm_info): Rename to ...
9561 (struct lm_info_target): ... this. Extend lm_info_base.
9562 (lm_info_p): Rename to ...
9563 (lm_info_target_p): ... this.
9564 (solib_target_parse_libraries, library_list_start_segment,
9565 library_list_start_section, library_list_start_library,
9566 library_list_end_library, solib_target_free_library_list,
9567 solib_target_current_sos, solib_target_free_so,
9568 solib_target_relocate_section_addresses): Adjust.
9569 * windows-nat.c (struct lm_info): Rename to ...
9570 (struct lm_info_windows): ... this. Extend lm_info_base.
9571 (windows_make_so, handle_load_dll, handle_unload_dll,
9572 windows_xfer_shared_libraries): Adjust.
9573
434a4023
SM
95742017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9575
9576 * solib-darwin.c (struct darwin_so_list): Remove.
9577 (darwin_current_sos): Allocate an so_list object instead of a
9578 darwin_so_list, separately allocate an lm_info object.
9579 (darwin_free_so): Free lm_info.
9580
428544e8
JB
95812017-04-28 John Baldwin <jhb@FreeBSD.org>
9582
9583 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
9584 with fprintf_filtered.
9585
4621115f
YQ
95862017-04-28 Yao Qi <yao.qi@linaro.org>
9587
9588 * regcache.c (regcache::regcache): New function.
9589 (regcache::~regcache): New function.
9590 (regcache_xmalloc_1): Remove.
9591 (regcache_xmalloc): Call new regcache.
9592 (regcache_xfree): Call delete regcache.
9593 (get_thread_arch_aspace_regcache): Call new regcache.
9594
339053c2
YQ
95952017-04-28 Yao Qi <yao.qi@linaro.org>
9596
9597 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
9598 lwp instead of ptid_get_lwp.
9599
7974a605
YQ
96002017-04-28 Yao Qi <yao.qi@linaro.org>
9601
9602 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
9603 lwp_info instead of getting from inferior_ptid.
9604
e15c3eb4
KS
96052017-04-27 Keith Seitz <keiths@redhat.com>
9606
9607 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
9608 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
9609 (CV_CONVERSION_BADNESS): Define.
9610 (rank_one_type): Remove overly restrictive rvalue reference
9611 rank checks.
9612 Add cv-qualifier checks and subranks for type equality.
9613 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
9614 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
9615 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
9616
72bc1d24
SM
96172017-04-27 Simon Marchi <simon.marchi@ericsson.com>
9618
9619 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
9620 count when creating the object.
9621
55bcecda
UW
96222017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
9623 Ulrich Weigand <uweigand@de.ibm.com>
9624
9625 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
9626 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
9627 is used in AIX.
9628 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
9629 (process_xcoff_symbol): Likewise.
9630 (scan_xcoff_symtab): Likewise.
9631
5c99fcf8
AH
96322017-04-26 Alan Hayward <alan.hayward@arm.com>
9633
9634 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
9635 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
9636 (ia64_access_reg): Use get_frame_register_unsigned.
9637 (ia64_access_rse_reg): Likewise.
9638 (ia64_libunwind_frame_prev_register): Likewise.
9639
b41c5a85
JW
96402017-04-26 Jiong Wang <jiong.wang@arm.com>
9641
9642 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
9643 * gdbarch.c: Regenerated.
9644 * gdbarch.h: Regenerated.
9645 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
9646 visibility external.
9647 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
9648 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
9649 (enum cfa_how_kind): Move to ...
9650 (struct dwarf2_frame_state_reg_info): Likewise.
9651 (struct dwarf2_frame_state): Likewise.
9652 * dwarf2-frame.h: ... here.
9653 (dwarf2_frame_state_alloc_regs): New declaration.
9654 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
9655 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
9656
c185f580
AH
96572017-04-26 Alan Hayward <alan.hayward@arm.com>
9658
9659 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
9660 regcache_raw_read_unsigned.
9661 (xtensa_pseudo_register_write): Likewise.
9662
19c45594
AH
96632017-04-26 Alan Hayward <alan.hayward@arm.com>
9664
9665 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
9666 (nds32_pseudo_register_write): Likewise.
9667
4658f12e
YQ
96682017-04-25 Yao Qi <yao.qi@linaro.org>
9669
9670 * regcache.c (struct regcache) <readonly_p>: Change its type
9671 to bool.
9672 (regcache_xmalloc_1): Update parameter type and callers update.
9673
d581dda8
YQ
96742017-04-25 Yao Qi <yao.qi@linaro.org>
9675
9676 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9677 set_gdbarch_wchar_bit.
9678 * arm-tdep.c (arm_gdbarch_init): Likewise.
9679
debed3db
PA
96802017-04-25 Pedro Alves <palves@redhat.com>
9681
9682 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
9683 (BothAreRelocatable, memcopy, memmove): Don't define.
9684 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
9685 macros.
9686
b0b92aeb
PA
96872017-04-25 Pedro Alves <palves@redhat.com>
9688
9689 * common/common-defs.h: Include "common/poison.h".
9690 * common/function-view.h: (Not, Or, Requires): Move to traits.h
9691 and adjust.
9692 * common/poison.h: New file.
9693 * common/traits.h: Include <type_traits>.
9694 (Not, Or, Requires): New, moved from common/function-view.h.
9695
16c4d54a
PA
96962017-04-25 Pedro Alves <palves@redhat.com>
9697
9698 * breakpoint.h (struct breakpoint): In-class initialize all
9699 fields. Make boolean fields "bool".
9700 * breakpoint.c (init_raw_breakpoint_without_location): Remove
9701 memset call and initializations no longer necessary.
9702
b5c36682
PA
97032017-04-25 Pedro Alves <palves@redhat.com>
9704
9705 * btrace.c (pt_btrace_insn_flags): Change parameter type to
9706 reference.
9707 (pt_btrace_insn): New function.
9708 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
9709
5625a286
PA
97102017-04-25 Pedro Alves <palves@redhat.com>
9711
9712 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
9713 "base" field and inherit from "bp_location" instead. Add
9714 non-default ctor.
9715 (allocate_location_exception): Use new non-default ctor.
9716 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
9717 (init_bp_location): Convert to ...
9718 (bp_location::bp_location): ... this new ctor, and remove memset
9719 call.
9720 (base_breakpoint_allocate_location): Use the new non-default ctor.
9721 * breakpoint.h (bp_location): Now a class. Declare default and
9722 non-default ctors. In-class initialize all members.
9723 (init_bp_location): Remove declaration.
9724
23bcc18f
PA
97252017-04-25 Pedro Alves <palves@redhat.com>
9726
9727 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
9728 assignment operator.
9729
e1ba3053
YQ
97302017-04-24 Yao Qi <yao.qi@linaro.org>
9731
9732 * doublest.c (convert_doublest_to_floatformat): Call
9733 floatformat_totalsize_bytes.
9734
10f489e5
TT
97352017-04-22 Tom Tromey <tom@tromey.com>
9736
9737 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
9738 ui_out_emit_list.
9739 * stack.c (print_frame): Use ui_out_emit_list.
9740 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
9741 ui_out_emit_list.
9742 * mi/mi-main.c (print_one_inferior)
9743 (mi_cmd_data_list_register_names)
9744 (mi_cmd_data_list_register_values, mi_cmd_list_features)
9745 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
9746 ui_out_emit_list.
9747 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
9748 (mi_output_solib_attribs): Use ui_out_emit_list,
9749 ui_out_emit_tuple.
9750 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
9751 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9752 (mi_cmd_stack_list_args, list_args_or_locals): Use
9753 ui_out_emit_list.
9754 * disasm.c (do_assembly_only): Use ui_out_emit_list.
9755 * breakpoint.c (print_solib_event, output_thread_groups): Use
9756 ui_out_emit_list.
9757
0092b74d
TT
97582017-04-22 Tom Tromey <tom@tromey.com>
9759
9760 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
9761 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
9762 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
9763
a14a62dd
TT
97642017-04-22 Tom Tromey <tom@tromey.com>
9765
9766 * tracepoint.c (tvariables_info_1)
9767 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
9768
46b9c129
TT
97692017-04-22 Tom Tromey <tom@tromey.com>
9770
9771 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
9772 annotate_arg_emitter.
9773 * breakpoint.c (print_mention_watchpoint)
9774 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
9775 * annotate.h (struct annotate_arg_emitter): New.
9776
2e783024
TT
97772017-04-22 Tom Tromey <tom@tromey.com>
9778
9779 * record-btrace.c (record_btrace_insn_history)
9780 (record_btrace_insn_history_range, record_btrace_call_history)
9781 (record_btrace_call_history_range): Use ui_out_emit_tuple.
9782 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
9783 ui_out_emit_tuple.
9784 * stack.c (print_frame_info): Use ui_out_emit_tuple.
9785 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
9786 * skip.c (skip_info): Use ui_out_emit_tuple.
9787 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
9788 * progspace.c (print_program_space): Use ui_out_emit_tuple.
9789 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
9790 * osdata.c (info_osdata): Use ui_out_emit_tuple.
9791 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
9792 ui_out_emit_tuple.
9793 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
9794 (output_register, mi_cmd_data_read_memory)
9795 (mi_cmd_data_read_memory_bytes, mi_load_progress)
9796 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
9797 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
9798 Use ui_out_emit_tuple.
9799 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
9800 ui_out_emit_tuple.
9801 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
9802 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
9803 * linux-thread-db.c (info_auto_load_libthread_db): Use
9804 ui_out_emit_tuple.
9805 * inferior.c (print_inferior): Use ui_out_emit_tuple.
9806 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
9807 * disasm.c (do_mixed_source_and_assembly_deprecated)
9808 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
9809 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
9810 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
9811 * breakpoint.c (print_one_breakpoint_location)
9812 (print_one_breakpoint): Use ui_out_emit_tuple.
9813 * auto-load.c (print_script, info_auto_load_cmd): Use
9814 ui_out_emit_tuple.
9815 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
9816
9be21bb4
SM
98172017-04-21 Simon Marchi <simon.marchi@ericsson.com>
9818
9819 * thread.c (print_thread_info_1): Remove dead code.
9820
0d4c07af
JK
98212017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9822
9823 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
9824 GDB_SELF_TEST.
9825 * arm-tdep.c (selftests::arm_record_test): Likewise.
9826
4daf993d
YQ
98272017-04-21 Yao Qi <yao.qi@linaro.org>
9828
9829 * regcache.c (regcache_restore): Remove argument 2. Replace
9830 argument 3 with regcache. Get register status from
9831 src->register_status and get register contents from
9832 register_buffer (src, regnum).
9833 (regcache_cpy): Update.
9834
a6c21d4a
PA
98352017-04-19 Pedro Alves <palves@redhat.com>
9836
9837 * gdbthread.h (thread): Add missing closing parenthesis in
9838 comment.
9839
3a3fd0fd
PA
98402017-04-19 Pedro Alves <palves@redhat.com>
9841
9842 * common/refcounted-object.h: New file.
9843 * gdbthread.h: Include "common/refcounted-object.h".
9844 (thread_info): Inherit from refcounted_object and add comments.
9845 (thread_info::incref, thread_info::decref)
9846 (thread_info::m_refcount): Delete.
9847 (thread_info::deletable): Use the refcounted_object::refcount()
9848 method.
9849 * inferior.c (current_inferior_): Add comment.
9850 (set_current_inferior): Increment/decrement refcounts.
9851 (prune_inferiors, remove_inferior_command): Skip inferiors marked
9852 not-deletable instead of comparing with the current inferior.
9853 (initialize_inferiors): Increment the initial inferior's refcount.
9854 * inferior.h (struct inferior): Forward declare.
9855 Include "common/refcounted-object.h".
9856 (current_inferior, set_current_inferior): Move declaration to
9857 before struct inferior's definition, and fix comment.
9858 (inferior): Inherit from refcounted_object. Add comments.
9859 * thread.c (switch_to_thread_no_regs): Reference the thread's
9860 inferior pointer directly instead of doing a ptid lookup.
9861 (switch_to_no_thread): New function.
9862 (switch_to_thread(thread_info *)): New function, factored out
9863 from ...
9864 (switch_to_thread(ptid_t)): ... this.
9865 (restore_current_thread): Delete.
9866 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
9867 fields, and add 'inf' field.
9868 (do_restore_current_thread_cleanup): Check whether old->inf is
9869 alive instead of looking up an inferior by ptid. Use
9870 switch_to_thread and switch_to_no_thread.
9871 (restore_current_thread_cleanup_dtor): Use old->inf directly
9872 instead of lookup up an inferior by id. Decref the inferior.
9873 Don't restore 'removable'.
9874 (make_cleanup_restore_current_thread): Same the inferior pointer
9875 in old, instead of the inferior number. Incref the inferior.
9876 Don't save/clear 'removable'.
9877
9bcb1f16
PA
98782017-04-19 Pedro Alves <palves@redhat.com>
9879
9880 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9881 unittests/scoped_restore-selftests.c.
9882 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
9883 * common/scoped_restore.h (scoped_restore_base): Make "class".
9884 (scoped_restore_base::release): New public method.
9885 (scoped_restore_base::scoped_restore_base): New protected ctor.
9886 (scoped_restore_base::m_saved_var): New protected field.
9887 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
9888 scoped_restore_base base class instead of m_saved_var directly.
9889 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
9890 (scoped_restore_tmpl::scoped_restore_tmpl(const
9891 scoped_restore_tmpl<T>&)): Likewise.
9892 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
9893 method.
9894 (scoped_restore_tmpl::saved_var): New method.
9895 (scoped_restore_tmpl::m_saved_var): Delete.
9896 * inferior.h (inferior::detaching): Now a bool.
9897 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
9898 cleanup.
9899 * unittests/scoped_restore-selftests.c: New file.
9900
26fcd539
PA
99012017-04-19 Pedro Alves <palves@redhat.com>
9902
9903 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
9904 Re-sort in alphabetic order.
9905
fdd243b0
PA
99062017-04-18 Pedro Alves <palves@redhat.com>
9907
9908 * xml-support.c (obstack_xml_printf): Delete.
9909 * xml-support.h (obstack_xml_printf): Delete.
9910
4895cde2
PA
99112017-04-18 Pedro Alves <palves@redhat.com>
9912
9913 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
9914 vdebug, verror, body_text, start_element, end_element, name,
9915 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
9916 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
9917 is_xinclude>: Make private and add m_ prefix.
9918 (gdb_xml_parser::body_text): New method, based on ...
9919 (gdb_xml_body_text): ... this. Adjust.
9920 (gdb_xml_parser::vdebug): New method, based on ...
9921 (gdb_xml_debug): ... this. Adjust.
9922 (gdb_xml_parser::verror): New method, based on ...
9923 (gdb_xml_error): ... this. Adjust.
9924 (gdb_xml_parser::start_element): New method, based on ...
9925 (gdb_xml_start_element): ... this. Adjust.
9926 (gdb_xml_start_element_wrapper): Defer to
9927 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
9928 (gdb_xml_parser::end_element): New method, based on ...
9929 (gdb_xml_end_element_wrapper): ... this. Adjust.
9930 (gdb_xml_parser::~gdb_xml_parser): Adjust.
9931 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
9932 (gdb_xml_parser::use_dtd): New method, based on ...
9933 (gdb_xml_use_dtd): ... this. Adjust.
9934 (gdb_xml_parser::parse): New method, based on ...
9935 (gdb_xml_parse): ... this. Adjust.
9936 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
9937 (xinclude_start_include): Adjust to call the parser's name method.
9938 (xml_xinclude_default, xml_xinclude_start_doctype)
9939 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
9940 method.
9941 (xml_process_xincludes): Adjust to call parser methods.
9942 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
9943 declarations.
9944
bd8a901f
PA
99452017-04-18 Pedro Alves <palves@redhat.com>
9946
9947 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
9948 gdb::optional<std::string>.
9949 * xml-support.c: Include <string>.
9950 (scope_level::scope_level(scope_level &&))
9951 (scope_level::~scope_level): Delete.
9952 (scope_level::body): Now a std::string.
9953 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
9954 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
9955 parameter.
9956 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
9957 (xinclude_parsing_data::output): Now a std::string reference.
9958 (xinclude_start_include): Adjust.
9959 (xml_xinclude_default): Adjust.
9960 (xml_process_xincludes): Add 'output' parameter, and return bool.
9961 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
9962 and return bool.
9963 * xml-tdesc.c: Include <unordered_map> and <string>.
9964 (tdesc_xml_cache): Delete.
9965 (tdesc_xml_cache_s): Delete.
9966 (xml_cache): Now an std::unordered_map.
9967 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
9968 (target_fetch_description_xml): Change return type to
9969 gdb::optional<std::string>, and adjust.
9970 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
9971 (target_fetch_description_xml): Change return type to
9972 gdb::optional<std::string>.
9973
d35d1958
PA
99742017-04-18 Pedro Alves <palves@redhat.com>
9975
9976 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9977 unittests/optional-selftests.c.
9978 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
9979 * unittests/optional-selftests.c: New file.
9980 * unittests/optional/assignment/1.cc: New file.
9981 * unittests/optional/assignment/2.cc: New file.
9982 * unittests/optional/assignment/3.cc: New file.
9983 * unittests/optional/assignment/4.cc: New file.
9984 * unittests/optional/assignment/5.cc: New file.
9985 * unittests/optional/assignment/6.cc: New file.
9986 * unittests/optional/assignment/7.cc: New file.
9987 * unittests/optional/cons/copy.cc: New file.
9988 * unittests/optional/cons/default.cc: New file.
9989 * unittests/optional/cons/move.cc: New file.
9990 * unittests/optional/cons/value.cc: New file.
9991 * unittests/optional/in_place.cc: New file.
9992 * unittests/optional/observers/1.cc: New file.
9993 * unittests/optional/observers/2.cc: New file.
9994
22796e97
PA
99952017-04-18 Pedro Alves <palves@redhat.com>
9996
9997 * common/gdb_optional.h: Include common/traits.h.
9998 (in_place_t): New type.
9999 (in_place): New constexpr variable.
10000 (optional::optional): Remove member initialization of
10001 m_instantiated.
10002 (optional::optional(in_place_t...)): New constructor.
10003 (optional::~optional): Use reset.
10004 (optional::optional(const optional&)): New.
10005 (optional::optional(const optional&&)): New.
10006 (optional::optional(T &)): New.
10007 (optional::optional(T &&)): New.
10008 (operator::operator=(const optional &)): New.
10009 (operator::operator=(optional &&)): New.
10010 (operator::operator= (const T &))
10011 (operator::operator= (T &&))
10012 (operator::emplace (Args &&... args)): Return a T&. Use reset.
10013 (operator::reset): New.
10014 (operator::m_instantiated):: Add in-class initializer.
10015 * common/traits.h: Include <type_traits>.
10016 (struct And): New types.
10017
a7fc9b61
PA
100182017-04-18 Pedro Alves <palves@redhat.com>
10019
10020 * xml-support.c: Include <vector>.
10021 (scope_level::scope_level(const gdb_xml_element *))
10022 (scope_level::scope_level(scope_level&&)): New.
10023 (scope_level::~scope_level): New.
10024 (scope_level_s): Delete.
10025 (gdb_xml_parser::scopes): Now a std::vector.
10026 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
10027 Use std::vector.
10028 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
10029 scope cleanup code.
10030 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
10031 of the scopes member. Use std::vector::emplace_back.
10032
010151c9
PA
100332017-04-18 Pedro Alves <palves@redhat.com>
10034
10035 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
10036 a bool.
10037 (gdb_xml_end_element): Change type of first parameter.
10038 (gdb_xml_cleanup): Rename to ...
10039 (gdb_xml_parser::~gdb_xml_parser): ... this.
10040 (gdb_xml_create_parser_and_cleanup): Delete with ...
10041 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
10042 to this new ctor.
10043 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
10044 using gdb_xml_create_parser_and_cleanup.
10045 (xinclude_parsing_data): Add ctor/dtor.
10046 (xml_xinclude_cleanup): Delete.
10047 (xml_process_xincludes): Create a local xinclude_parsing_data
10048 instead of heap-allocating one. Create a local gdb_xml_parser
10049 instead of heap-allocating one with
10050 gdb_xml_create_parser_and_cleanup.
10051
d56060f0
JB
100522017-04-18 John Baldwin <jhb@FreeBSD.org>
10053
10054 PR threads/20743
10055 * fbsd-nat.c (resume_one_thread_cb): Remove.
10056 (resume_all_threads_cb): Remove.
10057 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
10058 iterate_over_threads.
10059
305d16a9
JB
100602017-04-17 Joel Brobecker <brobecker@adacore.com>
10061
10062 * NEWS: Create a new section for the next release branch.
10063 Rename the section of the current branch, now that it has
10064 been cut.
10065
8bb57231
JB
100662017-04-17 Joel Brobecker <brobecker@adacore.com>
10067
10068 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
10069 * version.in: Bump version to 8.0.50.DATE-git.
10070
096c92dd
SDJ
100712017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
10072
10073 PR gdb/21385
10074 * windows-nat.c (windows_create_inferior): Declare 'allargs'
10075 independently of the host, and fix build breakage on Cygwin.
10076
0550c955
PA
100772017-04-13 Pedro Alves <palves@redhat.com>
10078
10079 * inferior.c (free_inferior): Convert to ...
10080 (inferior::~inferior): ... this dtor.
10081 (inferior::inferior): New ctor, factored out from ...
10082 (add_inferior_silent): ... here. Allocate the inferior with a new
10083 expression.
10084 (delete_inferior): Call delete instead of free_inferior.
10085 * inferior.h (gdb_environ, continuation): Forward declare.
10086 (inferior): Now a class. Add in-class initialization to all
10087 members. Make boolean fields bool, except 'detaching'.
10088 (inferior::inferior): New explicit ctor.
10089 (inferior::~inferior): New.
10090
e3d60dfc
PA
100912017-04-13 Pedro Alves <palves@redhat.com>
10092
10093 * inferior.c (init_inferior_list): Delete.
10094 * inferior.h (init_inferior_list): Delete.
10095
5fd69d0a
PA
100962017-04-13 Pedro Alves <palves@redhat.com>
10097
10098 PR threads/13217
10099 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
10100 (top level): Call it twice, with different thread sets.
10101
c6609450
PA
101022017-04-13 Pedro Alves <palves@redhat.com>
10103
10104 * thread.c: Include <algorithm>.
10105 (thread_array_cleanup): Delete.
10106 (scoped_inc_dec_ref): New class.
10107 (live_threads_count): New function.
10108 (set_thread_refcount): Delete.
10109 (tp_array_compar_ascending): Now a bool.
10110 (tp_array_compar): Convert to a std::sort comparison function.
10111 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
10112 and live_threads_count.
10113
2a00d7ce
PA
101142017-04-13 Pedro Alves <palves@redhat.com>
10115
10116 * infrun.c (follow_fork_inferior): Also switch the current
10117 inferior.
10118
441d7c93
PA
101192017-04-13 Pedro Alves <palves@redhat.com>
10120
10121 * breakpoint.c (watch_command_1): Save watchpoint-frame info
10122 before calling create_internal_breakpoint.
10123
808480f6
PA
101242017-04-13 Pedro Alves <palves@redhat.com>
10125
10126 * fork-child.c (execv_argv): New class.
10127 (breakup_args): Refactored as ...
10128 (execv_argv::init_for_no_shell): .. this method of execv_argv.
10129 Copy arguments to storage and replace separators with NULL
10130 terminators in place.
10131 (escape_bang_in_quoted_argument): Adjust to return bool.
10132 (execv_argv::execv_argv): New ctor.
10133 (execv_argv::init_for_shell): New method, factored out from
10134 fork_inferior. Don't strdup strings into the vector.
10135 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
10136 Remove free_vector_argv call.
10137
ad3d022a
YQ
101382017-04-13 Yao Qi <yao.qi@linaro.org>
10139
10140 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
10141 tdep->rx_psw_type.
10142
e6ddc3bf
YQ
101432017-04-13 Yao Qi <yao.qi@linaro.org>
10144
10145 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
10146 * rx-tdep.c (rx_gdbarch_init): Likewise.
10147
bfb8cf90
PA
101482017-04-13 Pedro Alves <palves@redhat.com>
10149
10150 * breakpoint.h (struct breakpoint): Reindent.
10151
f5336ca5
PA
101522017-04-13 Pedro Alves <palves@redhat.com>
10153
10154 * breakpoint.c (bp_location): Rename to ...
10155 (bp_locations): ... this. All references updated.
10156 (bp_location_count): Rename to ...
10157 (bp_locations_count): ... this. All references updated.
10158 (bp_location_placed_address_before_address_max): Rename to ...
10159 (bp_locations_placed_address_before_address_max): ... this. All
10160 references updated.
10161 (bp_location_shadow_len_after_address_max): Rename to ...
10162 (bp_locations_shadow_len_after_address_max): ... this. All
10163 references updated.
10164 (bp_location_compare_addrs): Rename to ...
10165 (bp_locations_compare_addrs): ... this. All references updated.
10166 (bp_location_compare):Rename to ...
10167 (bp_locations_compare): ... this. All references updated.
10168 (bp_location_target_extensions_update): Rename to ...
10169 (bp_locations_target_extensions_update): ... this. All references
10170 updated.
10171
be628ab8
SDJ
101722017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10173
10174 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
10175 * common/common.m4: Check headers 'termios.h', 'termio.h' and
10176 'sgtty.h'.
10177 * common/gdb_termios.h: New file, with parts of "terminal.h".
10178 * inflow.c: Include "gdb_termios.h".
10179 * ser-unix.c: Include "gdb_termios.h".
10180 * terminal.h: Move terminal-related defines to
10181 "common/gdb_termios.h".
10182
8e9e35b1
TT
101832017-04-12 Tom Tromey <tom@tromey.com>
10184
10185 * probe.c (parse_probes): Update.
10186 * location.h (delete_event_location): Don't declare.
10187 (event_location_deleter::operator()): Update.
10188 * location.c (event_location_deleter::operator()): Rename from
10189 delete_event_location.
10190 * linespec.h (linespec_result) <location>: Change type to
10191 event_location_up.
10192 * linespec.c (canonicalize_linespec, event_location_to_sals)
10193 (decode_objc): Update.
10194 (linespec_result): Don't call delete_event_location.
10195 * breakpoint.c (create_breakpoints_sal)
10196 (bkpt_probe_create_sals_from_location)
10197 (strace_marker_create_sals_from_location): Update.
10198
16e802b9
TT
101992017-04-12 Tom Tromey <tom@tromey.com>
10200
10201 * linespec.h (struct linespec_result): Add constructor and
10202 destructor.
10203 (init_linespec_result, destroy_linespec_result)
10204 (make_cleanup_destroy_linespec_result): Don't declare.
10205 * linespec.c (init_linespec_result): Remove.
10206 (linespec_result::~linespec_result): Rename from
10207 destroy_linespec_result. Update.
10208 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
10209 Remove.
10210 * breakpoint.c (create_breakpoint, break_range_command)
10211 (decode_location_default): Update.
10212 * ax-gdb.c (agent_command_1): Update.
10213
d28cd78a
TT
102142017-04-12 Tom Tromey <tom@tromey.com>
10215
10216 * remote.c (remote_download_tracepoint): Update.
10217 * python/py-breakpoint.c (bppy_get_location): Update.
10218 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
10219 (gdbscm_breakpoint_location): Update.
10220 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
10221 * breakpoint.h (struct breakpoint) <location, location_range_end>:
10222 Change type to event_location_up.
10223 * breakpoint.c (create_overlay_event_breakpoint)
10224 (create_longjmp_master_breakpoint)
10225 (create_std_terminate_master_breakpoint)
10226 (create_exception_master_breakpoint)
10227 (breakpoint_event_location_empty_p, print_breakpoint_location)
10228 (print_one_breakpoint_location, create_thread_event_breakpoint)
10229 (init_breakpoint_sal, create_breakpoint)
10230 (print_recreate_ranged_breakpoint, break_range_command)
10231 (init_ada_exception_breakpoint, say_where): Update.
10232 (base_breakpoint_dtor): Don't call delete_event_location.
10233 (bkpt_print_recreate, tracepoint_print_recreate)
10234 (dprintf_print_recreate, update_static_tracepoint)
10235 (breakpoint_re_set_default): Update.
10236
711799d5
TT
102372017-04-12 Tom Tromey <tom@tromey.com>
10238
10239 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
10240 type of "to_do". Update.
10241 (compute_stack_depth): Use std::vector.
10242
52d214d3
TT
102432017-04-12 Tom Tromey <tom@tromey.com>
10244
10245 * printcmd.c (find_instruction_backward): Use std::vector.
10246
4c404b8b
TT
102472017-04-12 Tom Tromey <tom@tromey.com>
10248
10249 * symfile.c (objfilep): Remove typedef.
10250 (reread_symbols): Use a std::vector.
10251
156d9eab
TT
102522017-04-12 Tom Tromey <tom@tromey.com>
10253
10254 * mi/mi-main.c (exec_direction_forward): Remove.
10255 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
10256 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
10257 scoped_restore.
10258 * guile/guile.c (guile_repl_command, guile_command)
10259 (gdbscm_execute_gdb_command): Use scoped_restore.
10260 * go-exp.y (go_parse): Use scoped_restore.
10261 * d-exp.y (d_parse): Use scoped_restore.
10262 * cli/cli-decode.c (cmd_func): Use scoped_restore.
10263 * c-exp.y (c_parse): Use scoped_restore.
10264
4d89769a
TT
102652017-04-12 Tom Tromey <tom@tromey.com>
10266
10267 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
10268 (mi_parse): Update return type.
10269 (mi_parse_free): Remove.
10270 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
10271 (mi_parse::~mi_parse): Rename from mi_parse_free.
10272 (mi_parse_cleanup): Remove.
10273 (mi_parse): Return a unique_ptr. Use new.
10274 * mi/mi-main.c (mi_execute_command): Update.
10275
4b217cc7
TT
102762017-04-12 Tom Tromey <tom@tromey.com>
10277
10278 * location.c (explicit_location_lex_one): Return a
10279 unique_xmalloc_ptr.
10280 (string_to_explicit_location): Update. Remove cleanups.
10281
59d3651b
TT
102822017-04-12 Tom Tromey <tom@tromey.com>
10283
10284 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
10285 (compare_value_and_voffset): Change type. Update.
10286 (compute_vtable_size): Change type of "offset_vec".
10287 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
10288 (gnuv3_get_typeid): Remove extraneous declaration.
10289
b24b0d6c
TT
102902017-04-12 Tom Tromey <tom@tromey.com>
10291
10292 * charset.h (wchar_iterator): Fix comment.
10293
80a3b8c5
TT
102942017-04-12 Tom Tromey <tom@tromey.com>
10295
10296 * charset.c (iconv_wrapper): New class.
10297 (cleanup_iconv): Remove.
10298 (convert_between_encodings): Use it.
10299
c83dd867
TT
103002017-04-12 Tom Tromey <tom@tromey.com>
10301
10302 * symfile.h (increment_reading_symtab): Update type.
10303 * symfile.c (decrement_reading_symtab): Remove.
10304 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
10305 * psymtab.c (psymtab_to_symtab): Update.
10306 * dwarf2read.c (dw2_instantiate_symtab): Update.
10307
0e8621a0
TT
103082017-04-12 Tom Tromey <tom@tromey.com>
10309
10310 * jit.c (struct jit_reader): Declare separately. Add constructor
10311 and destructor. Change type of "handle".
10312 (loaded_jit_reader): Define separately.
10313 (jit_reader_load): Update. New "new".
10314 (jit_reader_unload_command): Use "delete".
10315 * gdb-dlfcn.h (struct dlclose_deleter): New.
10316 (gdb_dlhandle_up): New typedef.
10317 (gdb_dlopen, gdb_dlsym): Update types.
10318 (gdb_dlclose): Remove.
10319 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
10320 (gdb_dlsym): Change type of "handle".
10321 (make_cleanup_dlclose): Remove.
10322 (dlclose_deleter::operator()): Rename from gdb_dlclose.
10323 * compile/compile-c-support.c (load_libcc): Update.
10324
67d89901
TT
103252017-04-12 Tom Tromey <tom@tromey.com>
10326
10327 * symtab.h (find_pcs_for_symtab_line): Change return type.
10328 * symtab.c (find_pcs_for_symtab_line): Change return type.
10329 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
10330 type of "vec". Update.
10331 (ltpy_get_pcs_for_line): Update.
10332 * linespec.c (decode_digits_ordinary): Update.
10333
93921405
TT
103342017-04-12 Tom Tromey <tom@tromey.com>
10335
10336 * tracepoint.c (actions_command): Update.
10337 * python/python.c (python_command, python_interactive_command):
10338 Update.
10339 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
10340 * guile/guile.c (guile_command): Update.
10341 * defs.h (read_command_lines, read_command_lines_1): Return
10342 command_line_up.
10343 (command_lines_deleter): New struct.
10344 (command_line_up): New typedef.
10345 * compile/compile.c (compile_code_command)
10346 (compile_print_command): Update.
10347 * cli/cli-script.h (get_command_line, copy_command_lines): Return
10348 command_line_up.
10349 (make_cleanup_free_command_lines): Remove.
10350 * cli/cli-script.c (get_command_line, read_command_lines_1)
10351 (copy_command_lines): Return command_line_up.
10352 (while_command, if_command, read_command_lines, define_command)
10353 (document_command): Update.
10354 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
10355 Remove.
10356 * breakpoint.h (breakpoint_set_commands): Change type of
10357 "commands".
10358 * breakpoint.c (breakpoint_set_commands): Change type of
10359 "commands". Update.
10360 (do_map_commands_command, update_dprintf_command_list)
10361 (create_tracepoint_from_upload): Update.
10362
ffc2605c
TT
103632017-04-12 Tom Tromey <tom@tromey.com>
10364
10365 * tracepoint.c (scope_info): Update.
10366 * spu-tdep.c (spu_catch_start): Update.
10367 * python/python.c (gdbpy_decode_line): Update.
10368 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
10369 * python/py-breakpoint.c (bppy_init): Update.
10370 * probe.c (parse_probes): Update.
10371 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
10372 * location.h (event_location_deleter): New struct.
10373 (event_location_up): New typedef.
10374 (new_linespec_location, new_address_location, new_probe_location)
10375 (new_explicit_location, copy_event_location)
10376 (string_to_event_location, string_to_event_location_basic)
10377 (string_to_explicit_location): Update return type.
10378 (make_cleanup_delete_event_location): Remove.
10379 * location.c (new_linespec_location, new_address_location)
10380 (new_probe_location, new_explicit_location, copy_event_location):
10381 Return event_location_up.
10382 (delete_event_location_cleanup)
10383 (make_cleanup_delete_event_location): Remove.
10384 (string_to_explicit_location, string_to_event_location_basic)
10385 (string_to_event_location): Return event_location_up.
10386 * linespec.c (canonicalize_linespec, event_location_to_sals)
10387 (decode_line_with_current_source)
10388 (decode_line_with_last_displayed, decode_objc): Update.
10389 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10390 * completer.c (location_completer): Update.
10391 * cli/cli-cmds.c (edit_command, list_command): Update.
10392 * breakpoint.c (create_overlay_event_breakpoint)
10393 (create_longjmp_master_breakpoint)
10394 (create_std_terminate_master_breakpoint)
10395 (create_exception_master_breakpoint)
10396 (create_thread_event_breakpoint): Update.
10397 (init_breakpoint_sal): Update. Remove some dead code.
10398 (create_breakpoint_sal): Change type of "location". Update.
10399 (create_breakpoints_sal, create_breakpoint, break_command_1)
10400 (dprintf_command, break_range_command, until_break_command)
10401 (init_ada_exception_breakpoint)
10402 (strace_marker_create_sals_from_location)
10403 (update_static_tracepoint, trace_command, ftrace_command)
10404 (strace_command, create_tracepoint_from_upload): Update.
10405 * break-catch-throw.c (re_set_exception_catchpoint): Update.
10406 * ax-gdb.c (agent_command_1): Update.
10407
8f10c932
PA
104082017-04-12 Pedro Alves <palves@redhat.com>
10409
10410 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
10411 * configure.tgt: Handle i[34567]86-*-go32* and
10412 i[34567]86-*-msdosdjgpp*.
10413 * i386-tdep.c (i386_svr4_reg_to_regnum):
10414 Make extern.
10415 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
10416 i386-go32-tdep.c.
10417 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
10418 * i386-go32-tdep.c: New file.
10419 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
10420 declarations.
10421
0a31ccfb
SM
104222017-04-12 Simon Marchi <simon.marchi@ericsson.com>
10423
10424 * aix-thread.c (pd_status2str): Change return type to const char *.
10425
e9bb3fbb
PA
104262017-04-12 Pedro Alves <palves@redhat.com>
10427
10428 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
10429 calls to set_gdbarch_gnu_triplet_regexp.
10430
53375380
PA
104312017-04-12 Pedro Alves <palves@redhat.com>
10432
10433 PR gdb/21323
10434 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
10435 New enum value.
10436 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
10437 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
10438 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
10439 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
10440 * gdbarch.h, gdbarch.c: Regenerate.
10441 * aarch64-tdep.c (aarch64_gdbarch_init): Override
10442 gdbarch_wchar_bit and gdbarch_wchar_signed.
10443 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
10444 * arm-tdep.c (arm_gdbarch_init): Likewise.
10445 * avr-tdep.c (avr_gdbarch_init): Likewise.
10446 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10447 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
10448 * i386-tdep.c (i386_go32_init_abi): Likewise.
10449 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10450 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10451 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
10452 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
10453 * sh-tdep.c (sh_gdbarch_init): Likewise.
10454 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10455 * sparc64-tdep.c (sparc64_init_abi): Likewise.
10456 * windows-tdep.c (windows_init_abi): Likewise.
10457 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10458
53e710ac
PA
104592017-04-12 Pedro Alves <palves@redhat.com>
10460
10461 PR c++/21323
10462 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
10463 cplus_primitive_type_char32_t>: New enum values.
10464 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
10465 and cplus_primitive_type_char32_t.
10466 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
10467 32, use the archtecture's built-in type for char16_t and char32_t,
10468 respectively. Otherwise, fallback to init_integer_type as before,
10469 but make the type unsigned, and issue a complaint.
10470 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
10471
ab0538b8
AH
104722017-04-12 Alan Hayward <alan.hayward@arm.com>
10473
5e0e0422 10474 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
10475 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
10476
5430098f
SDJ
104772017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10478
10479 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
10480 'const char *'.
10481
7c5ded6a
SDJ
104822017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10483
10484 * common/common-utils.c (free_vector_argv): New function.
10485 * common/common-utils.h: Include <vector>.
10486 (free_vector_argv): New prototype.
10487 * darwin-nat.c (darwin_create_inferior): Rewrite function
10488 prototype in order to constify "exec_file" and accept a
10489 "std::string" for "allargs".
10490 * fork-child.c: Include <vector>.
10491 (breakup_args): Rewrite function, using C++.
10492 (fork_inferior): Rewrite function header, constify "exec_file_arg"
10493 and accept "std::string" for "allargs". Update the code to
10494 calculate "argv" based on "allargs". Update calls to "exec_fun"
10495 and "execvp".
10496 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
10497 order to constify "exec_file" and accept a "std::string" for
10498 "allargs".
10499 * go32-nat.c (go32_create_inferior): Likewise.
10500 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
10501 * infcmd.c (run_command_1): Constify "exec_file". Use
10502 "std::string" for inferior arguments.
10503 * inferior.h (fork_inferior): Update prototype.
10504 * linux-nat.c (linux_nat_create_inferior): Rewrite function
10505 prototype in order to constify "exec_file" and accept a
10506 "std::string" for "allargs".
10507 * nto-procfs.c (procfs_create_inferior): Likewise.
10508 * procfs.c (procfs_create_inferior): Likewise.
10509 * remote-sim.c (gdbsim_create_inferior): Likewise.
10510 * remote.c (extended_remote_run): Update code to accept
10511 "std::string" as argument.
10512 (extended_remote_create_inferior): Rewrite function prototype in
10513 order to constify "exec_file" and accept a "std::string" for
10514 "allargs".
10515 * rs6000-nat.c (super_create_inferior): Likewise.
10516 (rs6000_create_inferior): Likewise.
10517 * target.h (struct target_ops) <to_create_inferior>: Likewise.
10518 * windows-nat.c (windows_create_inferior): Likewise.
10519
ae0eee42
PA
105202017-04-11 Pedro Alves <palves@redhat.com>
10521
10522 * thread.c: Fix whitespace throughout.
10523
a6acac06
PR
105242017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
10525
10526 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
10527
64403bd1
AH
105282017-04-11 Alan Hayward <alan.hayward@arm.com>
10529
10530 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
10531
a5bef50f
SDJ
105322017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
10533
10534 PR gdb/21364
10535 * osdata.c (info_osdata): Check if 'type' is an empty string
10536 instead of NULL.
10537
9295a5a9
PA
105382017-04-10 Pedro Alves <palves@redhat.com>
10539
10540 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
10541 (ptid_to_global_thread_id, in_thread_list)
10542 (do_captured_list_thread_ids, set_resumed, set_running)
10543 (set_executing, set_stop_requested, finish_thread_state)
10544 (validate_registers_access, can_access_registers_ptid)
10545 (print_thread_info_1, switch_to_thread)
10546 (do_restore_current_thread_cleanup)
10547 (make_cleanup_restore_current_thread, thread_command)
10548 (thread_name_command): Use operator== instead of ptid_equal.
10549
996812e3
PA
105502017-04-10 Pedro Alves <palves@redhat.com>
10551
10552 * thread.c (struct current_thread_cleanup) <next>: Delete field.
10553 (current_thread_cleanup_chain): Delete.
10554 (restore_current_thread_cleanup_dtor)
10555 (make_cleanup_restore_current_thread): Remove references to
10556 current_thread_cleanup_chain.
10557
845b344f
AH
105582017-04-10 Alan Hayward <alan.hayward@arm.com>
10559
10560 * msp430-tdep.c (msp430_pseudo_register_read): Never return
10561 REG_UNKNOWN.
10562
803bdfe4
YQ
105632017-04-10 Yao Qi <yao.qi@linaro.org>
10564
10565 PR gdb/19942
10566 * gdbthread.h (thread_info::deletable): New method.
10567 (thread_info::incref): New method.
10568 (thread_info::decref): New method.
10569 (thread_info::refcount): Move it to private.
10570 * infrun.c (save_stop_context): Call inc_refcount.
10571 (release_stop_context_cleanup): Likewise.
10572 * thread.c (set_thread_exited): New function.
10573 (init_thread_list): Delete "tp" only it is deletable, otherwise
10574 call set_thread_exited.
10575 (delete_thread_1): Call set_thread_exited.
10576 (current_thread_cleanup) <inferior_pid>: Remove.
10577 <thread>: New field.
10578 (restore_current_thread_ptid_changed): Removed.
10579 (do_restore_current_thread_cleanup): Adjust.
10580 (restore_current_thread_cleanup_dtor): Don't call
10581 find_thread_ptid.
10582 (set_thread_refcount): Use dec_refcount.
10583 (make_cleanup_restore_current_thread): Adjust.
10584 (thread_apply_all_command): Call inc_refcount.
10585 (_initialize_thread): Don't call
10586 observer_attach_thread_ptid_changed.
10587
8c25b497
YQ
105882017-04-10 Yao Qi <yao.qi@linaro.org>
10589
10590 * thread.c (delete_thread_1): Hoist code on marking thread as
10591 exited.
10592
8473b447
SM
105932017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10594
10595 * windows-nat.c (windows_detach): Initialize ptid with
10596 minus_one_ptid.
10597
6670ec13
SM
105982017-04-07 Simon Marchi <simon.marchi@ericsson.com>
10599
10600 * unittests/ptid-selftests.c: Fix erroneous assert messages.
10601
ba2f91bb
AH
106022017-04-07 Alan Hayward <alan.hayward@arm.com>
10603
10604 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
10605 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
10606 (bfin_pseudo_register_write): Likewise
10607
436252de
SM
106082017-04-06 Simon Marchi <simon.marchi@ericsson.com>
10609
10610 * common/ptid.h (struct ptid): Change to...
10611 (class ptid_t): ... this.
10612 <ptid_t>: New constructors.
10613 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
10614 matches>: New methods.
10615 <make_null, make_minus_one>: New static methods.
10616 <pid>: Rename to...
10617 <m_pid>: ...this.
10618 <lwp>: Rename to...
10619 <m_lwp>: ...this.
10620 <tid>: Rename to...
10621 <m_tid>: ...this.
10622 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
10623 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
10624 as references, move comment to class ptid_t.
10625 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
10626 ptid_t static methods.
10627 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
10628 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
10629 Take ptid arguments as references, implement using ptid_t methods.
10630 * unittests/ptid-selftests.c: New file.
10631 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10632 unittests/ptid-selftests.c.
10633 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
10634
0dedf377
TP
106352017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
10636
10637 * python/python.c (python_run_simple_file): Cast mode literal to
10638 non-const char pointer as expected by PyFile_FromString.
10639
4e9868d4
SM
106402017-04-05 Simon Marchi <simon.marchi@ericsson.com>
10641
10642 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
10643 minus_one_ptid and null_ptid.
10644
9bf2a700
PA
106452017-04-05 Pedro Alves <palves@redhat.com>
10646
10647 * warning.m4 (build_warnings): Remove -Wno-write-strings.
10648 * configure: Regenerate.
10649
a121b7c1
PA
106502017-04-05 Pedro Alves <palves@redhat.com>
10651
10652 * ada-exp.y (yyerror): Constify.
10653 * ada-lang.c (bound_name, get_selections)
10654 (ada_variant_discrim_type)
10655 (ada_variant_discrim_name, ada_value_struct_elt)
10656 (ada_lookup_struct_elt_type, is_unchecked_variant)
10657 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
10658 (catch_ada_exception_command_split)
10659 (catch_ada_assert_command_split, catch_assert_command)
10660 (ada_op_name): Constify.
10661 * ada-lang.h (ada_yyerror, get_selections)
10662 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
10663 * arc-tdep.c (arc_print_frame_cache): Constify.
10664 * arm-tdep.c (arm_skip_stub): Constify.
10665 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
10666 (gen_aggregate_elt_ref): Constify.
10667 * bcache.c (print_bcache_statistics): Constify.
10668 * bcache.h (print_bcache_statistics): Constify.
10669 * break-catch-throw.c (catch_exception_command_1):
10670 * breakpoint.c (struct ep_type_description::description):
10671 Constify.
10672 (add_solib_catchpoint): Constify.
10673 (catch_fork_command_1): Add cast.
10674 (add_catch_command): Constify.
10675 * breakpoint.h (add_catch_command, add_solib_catchpoint):
10676 Constify.
10677 * bsd-uthread.c (bsd_uthread_state): Constify.
10678 * buildsym.c (patch_subfile_names): Constify.
10679 * buildsym.h (next_symbol_text_func, patch_subfile_names):
10680 Constify.
10681 * c-exp.y (yyerror): Constify.
10682 (token::oper): Constify.
10683 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
10684 * c-varobj.c (cplus_describe_child): Constify.
10685 * charset.c (find_charset_names): Add cast.
10686 (find_charset_names): Constify array and add const_cast.
10687 * cli/cli-cmds.c (complete_command, cd_command): Constify.
10688 (edit_command): Constify.
10689 * cli/cli-decode.c (lookup_cmd): Constify.
10690 * cli/cli-dump.c (dump_memory_command, dump_value_command):
10691 Constify.
10692 (struct dump_context): Constify.
10693 (add_dump_command, restore_command): Constify.
10694 * cli/cli-script.c (get_command_line): Constify.
10695 * cli/cli-script.h (get_command_line): Constify.
10696 * cli/cli-utils.c (check_for_argument): Constify.
10697 * cli/cli-utils.h (check_for_argument): Constify.
10698 * coff-pe-read.c (struct read_pe_section_data): Constify.
10699 * command.h (lookup_cmd): Constify.
10700 * common/print-utils.c (decimal2str): Constify.
10701 * completer.c (gdb_print_filename): Constify.
10702 * corefile.c (set_gnutarget): Constify.
10703 * cp-name-parser.y (yyerror): Constify.
10704 * cp-valprint.c (cp_print_class_member): Constify.
10705 * cris-tdep.c (cris_register_name, crisv32_register_name):
10706 Constify.
10707 * d-exp.y (yyerror): Constify.
10708 (struct token::oper): Constify.
10709 * d-lang.h (d_yyerror): Constify.
10710 * dbxread.c (struct header_file_location::name): Constify.
10711 (add_old_header_file, add_new_header_file, last_function_name)
10712 (dbx_next_symbol_text, add_bincl_to_list)
10713 (find_corresponding_bincl_psymtab, set_namestring)
10714 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
10715 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
10716 * defs.h (command_line_input, print_address_symbolic)
10717 (deprecated_readline_begin_hook): Constify.
10718 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
10719 Constify.
10720 * event-top.c (handle_line_of_input): Constify and add cast.
10721 * exceptions.c (catch_errors): Constify.
10722 * exceptions.h (catch_errors): Constify.
10723 * expprint.c (print_subexp_standard, op_string, op_name)
10724 (op_name_standard, dump_raw_expression, dump_raw_expression):
10725 * expression.h (op_name, op_string, dump_raw_expression):
10726 Constify.
10727 * f-exp.y (yyerror): Constify.
10728 (struct token::oper): Constify.
10729 (struct f77_boolean_val::name): Constify.
10730 * f-lang.c (f_word_break_characters): Constify.
10731 * f-lang.h (f_yyerror): Constify.
10732 * fork-child.c (fork_inferior): Add cast.
10733 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
10734 (new_variant): Constify.
10735 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
10736 * gdbarch.c: Regenerate.
10737 * gdbcore.h (set_gnutarget): Constify.
10738 * go-exp.y (yyerror): Constify.
10739 (token::oper): Constify.
10740 * go-lang.h (go_yyerror): Constify.
10741 * go32-nat.c (go32_sysinfo): Constify.
10742 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
10743 * guile/scm-cmd.c (cmdscm_function): Constify.
10744 * guile/scm-param.c (pascm_param_value): Constify.
10745 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
10746 (h8300sx_register_name): Constify.
10747 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
10748 Constify.
10749 * ia64-tdep.c (ia64_register_names): Constify.
10750 * infcmd.c (construct_inferior_arguments): Constify.
10751 (path_command, attach_post_wait): Constify.
10752 * language.c (show_range_command, show_case_command)
10753 (unk_lang_error): Constify.
10754 * language.h (language_defn::la_error)
10755 (language_defn::la_name_of_this): Constify.
10756 * linespec.c (decode_line_2): Constify.
10757 * linux-thread-db.c (thread_db_err_str): Constify.
10758 * lm32-tdep.c (lm32_register_name): Constify.
10759 * m2-exp.y (yyerror): Constify.
10760 * m2-lang.h (m2_yyerror): Constify.
10761 * m32r-tdep.c (m32r_register_names): Constify and make static.
10762 * m68hc11-tdep.c (m68hc11_register_names): Constify.
10763 * m88k-tdep.c (m88k_register_name): Constify.
10764 * macroexp.c (appendmem): Constify.
10765 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
10766 (upgrade_type, parse_external, parse_partial_symbols)
10767 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
10768 (new_symbol): Constify.
10769 * memattr.c (mem_info_command): Constify.
10770 * mep-tdep.c (register_name_from_keyword): Constify.
10771 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
10772 Constify.
10773 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
10774 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
10775 * mi/mi-main.c (captured_mi_execute_command): Constify and add
10776 cast.
10777 (mi_execute_async_cli_command): Constify.
10778 * mips-tdep.c (mips_register_name): Constify.
10779 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
10780 (am33_register_name, am33_2_register_name)
10781 * moxie-tdep.c (moxie_register_names): Constify.
10782 * nat/linux-osdata.c (osdata_type): Constify fields.
10783 * nto-tdep.c (nto_parse_redirection): Constify.
10784 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
10785 (lookup_child_selector): Constify.
10786 (objc_methcall::name): Constify.
10787 * objc-lang.h (lookup_objc_class, lookup_child_selector)
10788 (lookup_struct_typedef): Constify.
10789 * objfiles.c (pc_in_section): Constify.
10790 * objfiles.h (pc_in_section): Constify.
10791 * p-exp.y (struct token::oper): Constify.
10792 (yyerror): Constify.
10793 * p-lang.h (pascal_yyerror): Constify.
10794 * parser-defs.h (op_name_standard): Constify.
10795 (op_print::string): Constify.
10796 (exp_descriptor::op_name): Constify.
10797 * printcmd.c (print_address_symbolic): Constify.
10798 * psymtab.c (print_partial_symbols): Constify.
10799 * python/py-breakpoint.c (stop_func): Constify.
10800 (bppy_get_expression): Constify.
10801 * python/py-cmd.c (cmdpy_completer::name): Constify.
10802 (cmdpy_function): Constify.
10803 * python/py-event.c (evpy_add_attribute)
10804 (gdbpy_initialize_event_generic): Constify.
10805 * python/py-event.h (evpy_add_attribute)
10806 (gdbpy_initialize_event_generic): Constify.
10807 * python/py-evts.c (add_new_registry): Constify.
10808 * python/py-finishbreakpoint.c (outofscope_func): Constify.
10809 * python/py-framefilter.c (get_py_iter_from_func): Constify.
10810 * python/py-inferior.c (get_buffer): Add cast.
10811 * python/py-param.c (parm_constant::name): Constify.
10812 * python/py-unwind.c (fprint_frame_id): Constify.
10813 * python/python.c (gdbpy_parameter_value): Constify.
10814 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
10815 * remote.c (memory_packet_config::name): Constify.
10816 (show_packet_config_cmd, remote_write_bytes)
10817 (remote_buffer_add_string):
10818 * reverse.c (exec_reverse_once): Constify.
10819 * rs6000-tdep.c (variant::name, variant::description): Constify.
10820 * rust-exp.y (rustyyerror): Constify.
10821 * rust-lang.c (rust_op_name): Constify.
10822 * rust-lang.h (rustyyerror): Constify.
10823 * serial.h (serial_ops::name): Constify.
10824 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
10825 (sh_sh3e_register_name, sh_sh2e_register_name)
10826 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
10827 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
10828 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
10829 (sh_sh4al_dsp_register_name): Constify.
10830 * sh64-tdep.c (sh64_register_name): Constify.
10831 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
10832 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
10833 * stabsread.c (patch_block_stabs, read_type_number)
10834 (ref_map::stabs, ref_add, process_reference)
10835 (symbol_reference_defined, define_symbol, define_symbol)
10836 (error_type, read_type, read_member_functions, read_cpp_abbrev)
10837 (read_one_struct_field, read_struct_fields, read_baseclasses)
10838 (read_tilde_fields, read_struct_type, read_array_type)
10839 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
10840 (read_huge_number, read_range_type, read_args, common_block_start)
10841 (find_name_end): Constify.
10842 * stabsread.h (common_block_start, define_symbol)
10843 (process_one_symbol, symbol_reference_defined, ref_add):
10844 * symfile.c (get_section_index, add_symbol_file_command):
10845 * symfile.h (get_section_index): Constify.
10846 * target-descriptions.c (tdesc_type::name): Constify.
10847 (tdesc_free_type): Add cast.
10848 * target.c (find_default_run_target):
10849 (add_deprecated_target_alias, find_default_run_target)
10850 (target_announce_detach): Constify.
10851 (do_option): Constify.
10852 * target.h (add_deprecated_target_alias): Constify.
10853 * thread.c (print_thread_info_1): Constify.
10854 * top.c (deprecated_readline_begin_hook, command_line_input):
10855 Constify.
10856 (init_main): Add casts.
10857 * top.h (handle_line_of_input): Constify.
10858 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
10859 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
10860 (tfind_command): Rename to ...
10861 (tfind_command_1): ... this and constify.
10862 (tfind_command): New function.
10863 (tfind_end_command, tfind_start_command): Adjust.
10864 (encode_source_string): Constify.
10865 * tracepoint.h (encode_source_string): Constify.
10866 * tui/tui-data.c (tui_partial_win_by_name): Constify.
10867 * tui/tui-data.h (tui_partial_win_by_name): Constify.
10868 * tui/tui-source.c (tui_set_source_content_nil): Constify.
10869 * tui/tui-source.h (tui_set_source_content_nil): Constify.
10870 * tui/tui-win.c (parse_scrolling_args): Constify.
10871 * tui/tui-windata.c (tui_erase_data_content): Constify.
10872 * tui/tui-windata.h (tui_erase_data_content): Constify.
10873 * tui/tui-winsource.c (tui_erase_source_content): Constify.
10874 * tui/tui.c (tui_enable): Add cast.
10875 * utils.c (defaulted_query): Constify.
10876 (init_page_info): Add cast.
10877 (puts_debug, subset_compare): Constify.
10878 * utils.h (subset_compare): Constify.
10879 * varobj.c (varobj_format_string): Constify.
10880 * varobj.h (varobj_format_string): Constify.
10881 * vax-tdep.c (vax_register_name): Constify.
10882 * windows-nat.c (windows_detach): Constify.
10883 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
10884 * xml-support.c (gdb_xml_end_element): Constify.
10885 * xml-tdesc.c (tdesc_start_reg): Constify.
10886 * xstormy16-tdep.c (xstormy16_register_name): Constify.
10887 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
10888 * xtensa-tdep.h (xtensa_register_t::name): Constify.
10889
995816ba
PA
108902017-04-05 Pedro Alves <palves@redhat.com>
10891
10892 * proc-api.c (struct trans): Constify.
10893 (procfs_note): Constify.
10894 * proc-events.c (struct trans, syscall_table):
10895 * proc-flags.c (struct trans): Constify.
10896 * proc-utils.h (procfs_note): Constify.
10897 * proc-why.c (struct trans): Constify.
10898 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
10899 (procfs_detach): Constify.
10900 * sol-thread.c (struct string_map): Constify.
10901 (td_err_string, td_state_string): Constify.
10902
3e83a920
PA
109032017-04-05 Pedro Alves <palves@redhat.com>
10904
10905 * proc-api.c (procfs_filename): Don't initialize
10906 procfs_filename.
10907 (prepare_to_trace): Assume procfs_filename is non-NULL.
10908 (_initialize_proc_api): Give procfs_filename a default value here.
10909
63160a43
PA
109102017-04-05 Pedro Alves <palves@redhat.com>
10911
10912 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
10913 'cond_string' parameter.
10914 (extract_exception_regexp): Constify 'string' parameter.
10915 (catch_exception_command_1): Constify.
10916 * breakpoint.c (init_catchpoint)
10917 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
10918 parameter.
10919 (ep_parse_optional_if_clause, catch_fork_command_1)
10920 (catch_exec_command_1): Constify.
10921 * breakpoint.h (init_catchpoint): Constify 'cond_string'
10922 parameter.
10923 (ep_parse_optional_if_clause): Constify.
10924 * cli/cli-utils.c (remove_trailing_whitespace)
10925 (check_for_argument): Constify.
10926 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
10927 non-const overload.
10928 (check_for_argument): Likewise.
10929
9b2eba3d
PA
109302017-04-05 Pedro Alves <palves@redhat.com>
10931
10932 * event-top.c (command_line_handler): Add cast to execute_command
10933 call.
10934 * record-btrace.c (cmd_record_btrace_bts_start)
10935 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
10936 (cmd_record_btrace_start): Add cast to execute_command call.
10937 * record-full.c (record_full_goto_insn):
10938 * record.c (record_start, record_stop): Add cast to
10939 execute_command_to_string calls.
10940 (cmd_record_start): Add cast to execute_command calls.
10941
2adadf51
PA
109422017-04-05 Pedro Alves <palves@redhat.com>
10943
10944 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
10945 static inline function.
10946 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
10947 array and use gdb_PyArg_ParseTupleAndKeywords.
10948 * python/py-cmd.c (cmdpy_init): Likewise.
10949 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
10950 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
10951 (infpy_search_memory): Likewise.
10952 * python/py-objfile.c (objfpy_add_separate_debug_file)
10953 (gdbpy_lookup_objfile): Likewise.
10954 * python/py-symbol.c (gdbpy_lookup_symbol)
10955 (gdbpy_lookup_global_symbol): Likewise.
10956 * python/py-type.c (gdbpy_lookup_type): Likewise.
10957 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
10958 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
10959 Likewise.
10960
0d1f4ceb
PA
109612017-04-05 Pedro Alves <palves@redhat.com>
10962
10963 * python/python-internal.h (gdb_PyGetSetDef): New type.
10964 * python/py-block.c (block_object_getset)
10965 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
10966 * python/py-event.c (event_object_getset)
10967 (finish_breakpoint_object_getset): Likewise.
10968 * python/py-inferior.c (inferior_object_getset): Likewise.
10969 * python/py-infthread.c (thread_object_getset): Likewise.
10970 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
10971 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
10972 * python/py-objfile.c (objfile_getset): Likewise.
10973 * python/py-progspace.c (pspace_getset): Likewise.
10974 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
10975 Likewise.
10976 * python/py-record.c (recpy_record_getset): Likewise.
10977 * python/py-symbol.c (symbol_object_getset): Likewise.
10978 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
10979 Likewise.
10980 * python/py-type.c (type_object_getset, field_object_getset):
10981 Likewise.
10982 * python/py-value.c (value_object_getset): Likewise.
10983
4d759979
PA
109842017-04-05 Pedro Alves <palves@redhat.com>
10985
10986 * python/python-internal.h (gdb_PyObject_CallMethod)
10987 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
10988 New functions.
10989 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
10990 (PySys_GetObject, PySys_SetPath): New macros.
10991
fdf9e36f
PA
109922017-04-05 Pedro Alves <palves@redhat.com>
10993
10994 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
10995 info_osdata_command.
10996 * osdata.c (info_osdata_command): Rename to ...
10997 (info_osdata): ... this. Constify 'type' parameter, and remove
10998 the 'from_tty' parameter. Accept NULL TYPE.
10999 (info_osdata_command): New function.
11000 * osdata.h (info_osdata_command): Remove declaration.
11001 (info_osdata): New declaration.
11002
9f33b8b7
PA
110032017-04-05 Pedro Alves <palves@redhat.com>
11004
11005 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
11006 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
11007 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
11008 parameter.
11009 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
11010 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
11011 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
11012 parameter.
11013 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
11014 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
11015 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11016 (mi_cmd_file_list_exec_source_files)
11017 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
11018 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
11019 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
11020 parameter.
11021 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
11022 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
11023 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
11024 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
11025 (mi_cmd_stack_info_frame): Constify 'command' parameter.
11026 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
11027 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
11028 'command' parameter.
11029 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
11030 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
11031 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
11032 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
11033 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
11034 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
11035 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
11036 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
11037 (mi_cmd_var_set_update_range): Constify 'command' parameter.
11038 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
11039 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
11040 parameter.
11041 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
11042 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
11043 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
11044 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
11045 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
11046 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
11047 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
11048 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
11049 (mi_cmd_data_list_changed_registers)
11050 (mi_cmd_data_write_register_values)
11051 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
11052 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
11053 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
11054 (mi_cmd_list_features, mi_cmd_list_target_features)
11055 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
11056 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
11057 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
11058 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
11059 (mi_cmd_trace_frame_collected): Constify 'command'
11060 parameter.
11061 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
11062 'command' parameter.
11063
67cb5b2d
PA
110642017-04-05 Pedro Alves <palves@redhat.com>
11065
11066 * ada-lang.c (ada_completer_word_break_characters): Now a const
11067 array.
11068 (ada_get_gdb_completer_word_break_characters): Constify.
11069 * completer.c (gdb_completer_command_word_break_characters)
11070 (gdb_completer_file_name_break_characters)
11071 (gdb_completer_quote_characters): Now const arrays.
11072 (get_gdb_completer_quote_characters): Constify.
11073 (set_rl_completer_word_break_characters): New function.
11074 (set_gdb_completion_word_break_characters)
11075 (complete_line_internal): Use it.
11076 * completer.h (get_gdb_completer_quote_characters): Constify.
11077 (set_rl_completer_word_break_characters): Declare.
11078 * f-lang.c (f_word_break_characters): Constify.
11079 * language.c (default_word_break_characters): Constify.
11080 * language.h (language_defn::la_word_break_characters): Constify.
11081 (default_word_break_characters): Constify.
11082 * top.c (init_main): Use set_rl_completer_word_break_characters.
11083
7a114964
PA
110842017-04-05 Pedro Alves <palves@redhat.com>
11085
11086 * aix-thread.c (aix_thread_pid_to_str)
11087 (aix_thread_extra_thread_info): Constify.
11088 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
11089 * bsd-uthread.c (bsd_uthread_extra_thread_info)
11090 (bsd_uthread_pid_to_str): Constify.
11091 * corelow.c (core_pid_to_str): Constify.
11092 * darwin-nat.c (darwin_pid_to_str): Constify.
11093 * fbsd-nat.c (fbsd_pid_to_str): Constify.
11094 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
11095 Constify.
11096 * gnu-nat.c (gnu_pid_to_str): Constify.
11097 * go32-nat.c (go32_pid_to_str): Constify.
11098 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
11099 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
11100 * inferior.c (inferior_pid_to_str): Constify.
11101 * linux-nat.c (linux_nat_pid_to_str): Constify.
11102 * linux-tdep.c (linux_core_pid_to_str): Constify.
11103 * linux-thread-db.c (thread_db_pid_to_str)
11104 (thread_db_extra_thread_info): Constify.
11105 * nto-tdep.c (nto_extra_thread_info): Constify.
11106 * nto-tdep.h (nto_extra_thread_info): Constify.
11107 * obsd-nat.c (obsd_pid_to_str): Constify.
11108 * procfs.c (procfs_pid_to_str): Constify.
11109 * ravenscar-thread.c (ravenscar_extra_thread_info)
11110 (ravenscar_pid_to_str): Constify.
11111 * remote-sim.c (gdbsim_pid_to_str): Constify.
11112 * remote.c (remote_threads_extra_info, remote_pid_to_str):
11113 Constify.
11114 * sol-thread.c (solaris_pid_to_str): Constify.
11115 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
11116 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
11117 * target.c (default_pid_to_str, target_pid_to_str)
11118 (normal_pid_to_str, default_pid_to_str): Constify.
11119 * target.h (target_ops::to_pid_to_str)
11120 (target_ops::to_extra_thread_info): Constify.
11121 (target_pid_to_str, normal_pid_to_str): Constify.
11122 * windows-nat.c (windows_pid_to_str): Constify.
11123 * gdbarch.sh (core_pid_to_str): Constify.
11124 * target-delegates.c: Regenerate.
11125 * gdbarch.h, gdbarch.c: Regenerate.
11126
69bbf465
PA
111272017-04-05 Pedro Alves <palves@redhat.com>
11128
11129 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
11130 the memory of the temporary warning_pre_print override.
11131 * utils.c (warning_pre_print): Constify.
11132 * utils.h (warning_pre_print): Constify.
11133
be47f9e8
PA
111342017-04-05 Pedro Alves <palves@redhat.com>
11135
11136 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
11137 (shell_command): New function.
11138 (make_command): Use std::string.
11139 (init_cli_cmds): Register shell_command instead of shell_escape.
11140
bde6261a
PA
111412017-04-05 Pedro Alves <palves@redhat.com>
11142
11143 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
11144 * tracepoint.c (default_collect): Don't initialize.
11145
b38ef47f
PA
111462017-04-05 Pedro Alves <palves@redhat.com>
11147
11148 * macroexp.c (macro_buffer::shared): Now a bool.
11149 (init_buffer): Update.
11150 (init_shared_buffer): Constify 'addr' parameter.
11151 (substitute_args, expand, macro_expand, macro_expand_next): Remove
11152 casts.
11153
f995bbe8
PA
111542017-04-05 Pedro Alves <palves@redhat.com>
11155
11156 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
11157 * disasm.c (set_disassembler_options): Constify local.
11158 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
11159
4a596fe2
SDJ
111602017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
11161
11162 PR gdb/21352
11163 * tracefile.c (tsave_command): Fix argument parsing for '-r'
11164 option.
11165
2cad08ea
YQ
111662017-04-05 Yao Qi <yao.qi@linaro.org>
11167
11168 * frame.c (frame_unwind_register_unsigned): Call
11169 frame_unwind_register_value.
11170
55a98976
YQ
111712017-04-05 Yao Qi <yao.qi@linaro.org>
11172
11173 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
11174 Use gdb_test_multiple, and don't match anchor.
11175
4ac40124
PA
111762017-04-05 Pedro Alves <palves@redhat.com>
11177
11178 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
11179 (Write After Approval): Remove Simon Marchi.
11180
c053b654
PA
111812017-04-05 Pedro Alves <palves@redhat.com>
11182
11183 * common/gdb_optional.h (optional::optional): Make constexpr and
11184 initialize m_dummy.
11185
4c7bf4f9
JB
111862017-04-04 John Baldwin <jhb@FreeBSD.org>
11187
11188 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
11189 (amd64fbsd_jmp_buf_reg_offset): Remove.
11190 (amd64fbsd_supply_uthread): Remove function.
11191 (amd64fbsd_collect_uthread): Remove function.
11192 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
11193 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
11194 (x86_64-*-freebsd*): Remove bsd-uthread.o.
11195 (fbsd-nat.c): Update comment.
11196 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
11197 (i386fbsd_jmp_buf_reg_offset): Remove.
11198 (i386fbsd_supply_uthread): Remove function.
11199 (i386fbsd_collect_uthread): Remove function.
11200 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
11201
1e1a8bef
JB
112022017-04-04 John Baldwin <jhb@FreeBSD.org>
11203
11204 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
11205 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
11206 * NEWS: Mention that support for FreeBSD/alpha was removed.
11207 * alpha-fbsd-tdep.c: Delete file.
11208 * config/alpha/fbsd.mh: Delete file.
11209 * configure.host: Delete alpha*-*-freebsd* and
11210 alpha*-*-kfreebsd*-gnu.
11211 * configure.tgt: Delete alpha*-*-freebsd* and
11212 alpha*-*-kfreebsd*-gnu.
11213
49907934
JB
112142017-04-04 John Baldwin <jhb@FreeBSD.org>
11215
11216 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
11217 amd64bsd_store_inferior_registers): Use ptid from regcache.
11218
6f77053d
PA
112192017-04-04 Pedro Alves <palves@redhat.com>
11220
11221 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
11222 data fields, make them private and add "m_" prefixes.
11223 (lnp_state_machine::lnp_state_machine): New ctor.
11224 (record_line, check_line_address, handle_set_discriminator)
11225 (handle_set_address, handle_advance_pc, handle_special_opcode)
11226 (handle_advance_line, handle_set_file, handle_negate_stmt)
11227 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
11228 (end_sequence, advance_line): New methods.
11229 (m_gdbarch, m_record_lines_p): New fields.
11230 (lnp_reader_state): Delete.
11231 (dwarf_record_line): Rename to ...
11232 (lnp_state_machine::record_line): ... adjust.
11233 (init_lnp_state_machine): Delete.
11234 (lnp_state_machine::lnp_state_machine): New.
11235 (check_line_address): Rename to ...
11236 (lnp_state_machine::check_line_address): This.
11237 (dwarf_decode_lines_1): Remove reference to "reader_state".
11238 Adjust lnp_state_machine having a non-default ctor. Use bool.
11239 State machine internal state manipulation moved to
11240 lnp_state_machine methods.
11241
9c541725
PA
112422017-04-04 Pedro Alves <palves@redhat.com>
11243
11244 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11245 unittests/offset-type-selftests.c.
11246 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
11247 * common/offset-type.h: New file.
11248 * common/preprocessor.h: New file.
11249 * common/traits.h: New file.
11250 * common/valid-expr.h: New file.
11251 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
11252 sect_offset and cu_offset strong typedefs throughout.
11253 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
11254 typedefs throughout.
11255 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
11256 sect_offset and cu_offset strong typedefs throughout.
11257 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
11258 typedefs throughout.
11259 * gdbtypes.h: Include "common/offset-type.h".
11260 (cu_offset): Now an offset type (strong typedef) instead of a
11261 struct.
11262 (sect_offset): Likewise.
11263 (union call_site_parameter_u): Rename "param_offset" field to
11264 "param_cu_off".
11265 * unittests/offset-type-selftests.c: New file.
11266
ecfb656c
PA
112672017-04-04 Pedro Alves <palves@redhat.com>
11268
11269 * common/underlying.h: New file.
11270 * dwarf2read.c: Include "common/gdb_optional.h" and
11271 "common/underlying.h".
11272 (dir_index, file_name_index): New types.
11273 (file_entry): Use them.
11274 (file_entry::include): Use to_underlying.
11275 (line_header::add_file_name): Use dir_index.
11276 (read_formatted_entries): Use gdb::optional. Read form before
11277 writting to file_entry.
11278 (dwarf_decode_line_header): Use dir_index.
11279 (lnp_state_machine::current_file): Use to_underlying.
11280 (lnp_state_machine::file): Change type to file_name_index.
11281 (dwarf_record_line): Use to_underlying.
11282 (init_lnp_state_machine): Use file_name_index.
11283 (dwarf_decode_lines_1): Use dir_index and file_name_index.
11284
d194f1fe
PA
112852017-04-04 Pedro Alves <palves@redhat.com>
11286
11287 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
11288 operator bool, has_value and get methods.
11289
fff8551c
PA
112902017-04-04 Pedro Alves <palves@redhat.com>
11291
11292 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
11293 fields.
11294 (line_header): Initialize all data fields. Change type of
11295 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
11296 Change type of include_dirs to std::vector<const char *>. Remove
11297 num_include_dirs, include_dirs_size. Change type of file_names to
11298 std::vector<file_entry>. Remove num_file_names, file_names_size.
11299 (line_header::line_header): New.
11300 (line_header::add_include_dir, line_header::add_file_name): New
11301 methods.
11302 (line_header::include_dir_at): Remove NULL check.
11303 (line_header::file_name_at): Add const overload.
11304 (line_header_up): New unique_ptr typedef.
11305 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
11306 std::vector. Remove free_line_header call.
11307 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
11308 free_line_header call.
11309 (free_cu_line_header): Delete.
11310 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
11311 (setup_type_unit_groups): Use line_header_up instead of cleanups.
11312 Adjust to use std::vector.
11313 (free_line_header): Delete.
11314 (free_line_header_voidp): Use delete.
11315 (add_include_dir): Replace with ...
11316 (line_header::add_include_dir): ... this method. Use std::vector.
11317 (add_file_name): Replace with ...
11318 (line_header::add_file_name): ... this method. Use std::vector.
11319 (add_include_dir_stub): Delete.
11320 (read_formatted_entries): Remove memset.
11321 (dwarf_decode_line_header): Return a line_header_up instead of a
11322 raw pointer. Remove cleanup handling. Pass lambdas to
11323 read_formatted_entries. Adjust to use line_header methods.
11324 (dwarf_decode_lines_1): Adjust to use line_header methods.
11325 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
11326 use std::vector.
11327
d62a8ae2
SM
113282017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
11329
11330 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
11331 instead of struct ptid.
11332
db3a1dc7
AH
113332017-05-04 Alan Hayward <alan.hayward@arm.com>
11334
11335 * frame.c (get_frame_register_bytes): Unwind using value.
11336 (put_frame_register_bytes): Likewise.
11337
b1b45502
IB
113382017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
11339
11340 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
11341 aggregate-like.
11342
ec13808e
JK
113432017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11344
11345 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
11346
12316564
YQ
113472017-03-29 Yao Qi <yao.qi@linaro.org>
11348
11349 * gdbthread.h (struct thread_info): Declare constructor and
11350 destructor. Add some in-class member initializers.
11351 * thread.c (free_thread): Remove.
11352 (init_thread_list): Call delete instead of free_thread.
11353 (new_thread): Call thread_info constructor.
11354 (thread_info::thread_info): New function.
11355 (thread_info::~thread_info): New function.
11356 (delete_thread_1): Call delete instead of free_thread.
11357 (make_cleanup_restore_current_thread): Move tp and frame to
11358 inner block.
11359
fe5f7374
AK
113602017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11361
11362 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
11363 (arc_skip_prologue): Likewise.
11364 (arc_make_frame_cache): Likewise.
11365 (arc_pv_get_operand): New function.
11366 (arc_is_in_prologue): Likewise.
11367 (arc_analyze_prologue): Likewise.
11368 (arc_print_frame_cache): Likewise.
11369 (MAX_PROLOGUE_LENGTH): New constant.
11370
eea78757
AK
113712017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11372
11373 * configure.tgt: Add arc-insn.o.
11374 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
11375 (dump_arc_instruction_command): New function.
11376 (arc_fprintf_disasm): Likewise.
11377 (arc_disassemble_info): Likewise.
11378 (arc_insn_get_operand_value): Likewise.
11379 (arc_insn_get_operand_value_signed): Likewise.
11380 (arc_insn_get_memory_base_reg): Likewise.
11381 (arc_insn_get_memory_offset): Likewise.
11382 (arc_insn_get_branch_target): Likewise.
11383 (arc_insn_dump): Likewise.
11384 (arc_insn_get_linear_next_pc): Likewise.
11385 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
11386 (arc_disassemble_info): Likewise.
11387 (arc_insn_get_branch_target): Likewise.
11388 (arc_insn_get_linear_next_pc): Likewise.
11389 * NEWS: Mention new "maint print arc arc-instruction".
11390
3be78afd
AK
113912017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11392
11393 * arc-tdep (maintenance_print_arc_list): New variable.
11394 (maintenance_print_arc_command): New function.
11395
296ec4fa
AK
113962017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11397
11398 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
11399 Add "limm" and "reserved".
11400 (arc_cannot_fetch_register, arc_cannot_store_register): Add
11401 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
11402 * arc-tdep.h (arc_regnum): Likewise.
11403
f74f865e
MF
114042017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11405
11406 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
11407 for THREADPTR register.
11408 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
11409 register.
11410 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
11411 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
11412 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
11413
0d0bf81a
MF
114142017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11415
11416 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
11417 registers above gdbarch_num_regs (gdbarch) as privileged in
11418 call0 ABI.
11419
0ce4291e
MF
114202017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11421
11422 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
11423 for a single specified register or for all registers in
11424 a0_base..a0_base + C0_NREGS range.
11425 (supply_gregset_reg): Call regcache_raw_supply for a single
11426 specified register or for all registers in a0_base..a0_base +
11427 C0_NREGS range.
11428
c56054f9
MF
114292017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11430
11431 * arch/xtensa.h (C0_NREGS): Add definition.
11432 * xtensa-tdep.c (C0_NREGS): Remove definition.
11433
a4398628
MF
114342017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11435
11436 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
11437 Drop xtensa_default_isa initialization.
11438 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
11439
8c43009f
PA
114402017-03-27 Pedro Alves <palves@redhat.com>
11441
11442 * dwarf2read.c (file_entry) <dir_index>: Add comment.
11443 (file_entry::include_dir): New method.
11444 (line_header::include_dir_at, line_header::file_name_at): New
11445 methods.
11446 (setup_type_unit_groups, setup_type_unit_groups)
11447 (psymtab_include_file_name): Simplify using the new methods.
11448 (lnp_state_machine) <the_line_header>: New field.
11449 <file>: Add comment.
11450 (lnp_state_machine::current_file): New method.
11451 (dwarf_record_line): Simplify using the new methods.
11452 (init_lnp_state_machine): Initialize the "the_line_header" field.
11453 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
11454 Simplify using the new methods.
11455
a7e80b9e
PA
114562017-03-27 Pedro Alves <palves@redhat.com>
11457
11458 * cp-name-parser.y (make_empty): Delete.
11459 (demangler_special, nested_name, ptr_operator, array_indicator)
11460 (direct_declarator, declarator_1): Use fill_comp instead of
11461 make_empty.
11462
21047726
PA
114632017-03-27 Pedro Alves <palves@redhat.com>
11464
11465 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
11466 to ATTRIBUTE_PRINTF.
11467 * solib-target.c (library_list_start_list): Print "string" not
11468 "version".
11469 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
11470 gdb_xml_error call.
11471
d721ba37
PA
114722017-03-27 Pedro Alves <palves@redhat.com>
11473
11474 * dwarf2read.c (struct file_and_directory): New.
11475 (dwarf2_get_dwz_file): Adjust to use std::string.
11476 (dw2_get_file_names_reader): Adjust to use file_and_directory.
11477 (find_file_and_directory): Adjust to return a file_and_directory
11478 object.
11479 (read_file_scope): Adjust to use file_and_directory. Remove
11480 make_cleanup/do_cleanups calls.
11481 (open_and_init_dwp_file): Adjust to use std::string. Remove
11482 make_cleanup/do_cleanups calls.
11483 * python/python.c (do_start_initialization): Adjust to ldirname
11484 returning a std::string.
11485 * utils.c (ldirname): Now returns a std::string.
11486 * utils.h (ldirname): Change return type to std::string.
11487 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
11488 returning a std::string.
11489 * xml-tdesc.c (file_read_description_xml): Likewise.
11490
ed771251
AH
114912017-03-24 Alan Hayward <alan.hayward@arm.com>
11492
11493 * regcache.c (regcache_debug_print_register): New function.
11494 * regcache.h (regcache_debug_print_register): New declaration.
11495 * target.c (debug_print_register): Remove.
11496 (target_fetch_registers): Call regcache_debug_print_register.
11497 (target_store_registers): Likewise.
11498
568c1b9f
PB
114992017-03-24 Pádraig Brady <pbrady@fb.com>
11500
11501 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
11502 reference beyond the 'lh->include_dirs' array before accessing to
11503 it.
11504 (psymtab_include_file_name): Likewise.
11505 (dwarf_decode_lines_1): Likewise.
11506 (dwarf_decode_lines): Likewise.
11507 (file_file_name): Likewise.
11508
3e00d44f
SM
115092017-03-23 Simon Marchi <simon.marchi@ericsson.com>
11510
11511 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
11512 inferior_ptid.
11513 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
11514 ps_lsetfpregs): Likewise.
11515 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
11516 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
11517 ps_lsetfpregs): Likewise.
11518 * target.c (target_fetch_registers, target_store_registers):
11519 Remove asserts.
11520
077ae656
AH
115212017-03-23 Alan Hayward <alan.hayward@arm.com>
11522
11523 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
11524
1e2b521d
YQ
115252017-03-23 Yao Qi <yao.qi@linaro.org>
11526
11527 * aarch64-tdep.c (aarch64_process_record_test): Declare.
11528 (_initialize_aarch64_tdep): Register it.
11529 (aarch64_record_load_store): Handle PRFM instruction.
11530 (aarch64_process_record_test): New function.
11531
33877125
YQ
115322017-03-23 Yao Qi <yao.qi@linaro.org>
11533
11534 * aarch64-tdep.c (aarch64_record_load_store): Fix code
11535 indentation.
11536
a0eef940
YQ
115372017-03-23 Yao Qi <yao.qi@linaro.org>
11538
11539 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
11540
3f2a3564
PR
115412017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11542
11543 python/python.c (do_start_initialization): Fix memory leak.
11544
b67aeab0
SM
115452017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11546
11547 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
11548 using get_ptrace_pid.
11549 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
11550 inferior_ptid.
11551 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
11552 inferior_ptid instead of pid.
11553
ffdbe864
YQ
115542017-03-22 Yao Qi <yao.qi@linaro.org>
11555
11556 * aarch64-tdep.c: Wrap locally used classes in anonymous
11557 namespace.
11558 * arm-tdep.c: Likewise.
11559 * linespec.c: Likewise.
11560 * ui-out.c: Likewise.
11561
9d736fbf
JG
115622017-03-22 Jonah Graham <jonah@kichwacoders.com>
11563
11564 PR gdb/19637
11565 * python/lib/gdb/printer/bound_registers.py: Import sys.
11566
3de88e9a
SM
115672017-03-21 Simon Marchi <simon.marchi@ericsson.com>
11568
11569 * windows-nat.c (do_windows_fetch_inferior_registers): Add
11570 windows_thread_info parameter and use it instead of
11571 current_thread.
11572 (windows_fetch_inferior_registers): Don't set current_thread,
11573 pass the thread to do_windows_fetch_inferior_registers. Use
11574 ptid from regcache instead of inferior_ptid.
11575 (do_windows_store_inferior_registers): Add windows_thread_info
11576 parameter and use it instead of current_thread.
11577 (windows_store_inferior_registers): Don't set current_thread,
11578 pass the thread to do_windows_store_inferior_registers. Use
11579 ptid from regcache instead of inferior_ptid.
11580
0e7b8f61
SM
115812017-03-21 Simon Marchi <simon.marchi@ericsson.com>
11582
11583 * ser-mingw.c (ser_windows_raw): Remove reference to
11584 struct serial::current_timeout.
11585
5badf10a
IR
115862017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
11587
11588 PR tdep/20928
11589 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
11590 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
11591 (sparc64_fsr_type): Fix %fsr decoding.
11592
cee59b3f
TW
115932017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
11594
11595 * python/py-record-btrace.c (btpy_insn_data): Change return type
11596 for Python 2.
11597
639a9038
SM
115982017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
11599
11600 * spu-linux-nat.c (spu_fetch_inferior_registers,
11601 spu_store_inferior_registers): Use ptid from regcache, set and
11602 restore inferior_ptid.
11603 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
11604 Likewise.
11605
bcc0c096
SM
116062017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
11607
11608 * i386-linux-nat.c (fetch_register, store_register,
11609 i386_linux_fetch_inferior_registers,
11610 i386_linux_store_inferior_registers): Use ptid from regcache.
11611 * ia64-linux-nat.c (ia64_linux_fetch_register,
11612 ia64_linux_store_register): Likewise.
11613 * inf-ptrace.c (inf_ptrace_fetch_register,
11614 inf_ptrace_store_register): Likewise.
11615 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
11616 m32r_linux_store_inferior_registers): Likewise.
11617 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
11618 m68kbsd_store_inferior_registers): Likewise.
11619 * m68k-linux-nat.c (fetch_register, store_register,
11620 m68k_linux_fetch_inferior_registers,
11621 m68k_linux_store_inferior_registers): Likewise.
11622 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
11623 m88kbsd_store_inferior_registers): Likewise.
11624 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
11625 mips_fbsd_store_inferior_registers): Likewise.
11626 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
11627 mips64_linux_regsets_store_registers): Likewise.
11628 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
11629 mipsnbsd_store_inferior_registers): Likewise.
11630 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
11631 mips64obsd_store_inferior_registers): Likewise.
11632 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
11633 Likewise.
11634 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
11635 ppcfbsd_store_inferior_registers): Likewise.
11636 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
11637 ppc_linux_store_inferior_registers): Likewise.
11638 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
11639 ppcnbsd_store_inferior_registers): Likewise.
11640 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
11641 ppcobsd_store_registers): Likewise.
11642 * procfs.c (procfs_fetch_registers, procfs_store_registers):
11643 Likewise.
11644 * ravenscar-thread.c (ravenscar_fetch_registers,
11645 ravenscar_store_registers, ravenscar_prepare_to_store):
11646 Likewise.
11647 * record-btrace.c (record_btrace_fetch_registers,
11648 record_btrace_store_registers, record_btrace_prepare_to_store):
11649 Likewise.
11650 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
11651 Lookup inferior using ptid from regcache, instead of
11652 current_inferior.
11653 * remote.c (remote_fetch_registers, remote_store_registers): Use
11654 ptid from regcache.
11655 * rs6000-nat.c (fetch_register, store_register): Likewise.
11656 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
11657 s390_linux_store_inferior_registers): Likewise.
11658 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
11659 shnbsd_store_inferior_registers): Likewise.
11660 * sol-thread.c (sol_thread_fetch_registers,
11661 sol_thread_store_registers): Likewise.
11662 * sparc-nat.c (sparc_fetch_inferior_registers,
11663 sparc_store_inferior_registers): Likewise.
11664 * tilegx-linux-nat.c (fetch_inferior_registers,
11665 store_inferior_registers): Likewise.
11666 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
11667 vaxbsd_store_inferior_registers): Likewise.
11668 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
11669 store_xtregs): Likewise.
11670
c0f55cc6
AV
116712017-03-20 Artemiy Volkov <artemiyv@acm.org>
11672
11673 PR gdb/14441
11674 * NEWS: Mention support for rvalue references in GDB and python.
11675 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
11676 supports both lvalue and rvalue references.
11677
15c0a2a9
AV
116782017-03-20 Artemiy Volkov <artemiyv@acm.org>
11679
11680 PR gdb/14441
11681 * gdbtypes.c (rank_one_type): Implement overloading
11682 resolution rules regarding rvalue references.
11683
aa006118
AV
116842017-03-20 Artemiy Volkov <artemiyv@acm.org>
11685
11686 PR gdb/14441
11687 * aarch64-tdep.c (aarch64_type_align)
11688 (aarch64_extract_return_value, aarch64_store_return_value): Change
11689 lvalue reference type checks to general reference type checks.
11690 * amd64-tdep.c (amd64_classify): Likewise.
11691 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
11692 Likewise.
11693 * arm-tdep.c (arm_type_align, arm_extract_return_value)
11694 (arm_store_return_value): Likewise.
11695 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
11696 * c-typeprint.c (c_print_type): Likewise.
11697 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
11698 (cplus_number_of_children, cplus_describe_child): Likewise.
11699 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
11700 * completer.c (expression_completer): Likewise.
11701 * cp-support.c (make_symbol_overload_list_adl_namespace):
11702 Likewise.
11703 * darwin-nat-info.c (info_mach_region_command): Likewise.
11704 * dwarf2loc.c (entry_data_value_coerce_ref)
11705 (value_of_dwarf_reg_entry): Likewise.
11706 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
11707 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
11708 Likewise.
11709 * findvar.c (extract_typed_address, store_typed_address):
11710 Likewise.
11711 * gdbtypes.c (rank_one_type): Likewise.
11712 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
11713 * infcall.c (value_arg_coerce): Likewise.
11714 * language.c (pointer_type): Likewise.
11715 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
11716 Likewise.
11717 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
11718 * mn10300-tdep.c (mn10300_type_align): Likewise.
11719 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
11720 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
11721 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
11722 Likewise.
11723 * printcmd.c (print_formatted, x_command): Likewise.
11724 * python/py-type.c (typy_get_composite, typy_template_argument):
11725 Likewise.
11726 * python/py-value.c (valpy_referenced_value)
11727 (valpy_get_dynamic_type, value_has_field): Likewise.
11728 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
11729 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
11730 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
11731 * spu-tdep.c (spu_scalar_value_p): Likewise.
11732 * symtab.c (lookup_symbol_aux): Likewise.
11733 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
11734 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
11735 Likewise.
11736 * valops.c (value_cast_pointers, value_cast)
11737 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
11738 (value_struct_elt, value_struct_elt_bitpos)
11739 (value_find_oload_method_list, find_overload_match)
11740 (value_rtti_indirect_type): Likewise.
11741 * valprint.c (val_print_scalar_type_p, generic_val_print):
11742 Likewise.
11743 * value.c (value_actual_type, value_as_address, unpack_long)
11744 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
11745 (coerce_ref): Likewise.
11746 * varobj.c (varobj_get_value_type): Likewise.
11747
3fcf899d
AV
117482017-03-20 Artemiy Volkov <artemiyv@acm.org>
11749
11750 PR gdb/14441
11751 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
11752 table of constants.
11753 * python/lib/gdb/command/explore.py: Support exploring values
11754 of rvalue reference types.
11755 * python/lib/gdb/types.py: Implement get_basic_type() for
11756 rvalue reference types.
11757 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
11758 constant.
11759 * python/py-value.c (valpy_getitem): Add an rvalue reference
11760 check.
11761 (valpy_reference_value): Add new parameter "refcode".
11762 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
11763 New wrappers for valpy_reference_value().
11764 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
11765 (gdbpy_invoke_xmethod): Likewise.
11766
4297a3f0
AV
117672017-03-20 Artemiy Volkov <artemiyv@acm.org>
11768
11769 PR gdb/14441
11770 * dwarf2read.c (process_die, read_type_die_1): Handle the
11771 DW_TAG_rvalue_reference_type DIE.
11772 (read_tag_reference_type): Add new parameter "refcode".
11773
e1cb3213
AV
117742017-03-20 Artemiy Volkov <artemiyv@acm.org>
11775
11776 PR gdb/14441
11777 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
11778 (c_type_print_modifier, c_type_print_varspec_suffix)
11779 (c_type_print_base): Support printing rvalue reference types.
11780 * c-valprint.c (c_val_print, c_value_print): Support printing
11781 rvalue reference values.
11782
e4347c89
AV
117832017-03-20 Artemiy Volkov <artemiyv@acm.org>
11784
11785 PR gdb/14441
11786 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
11787 typename.
11788 * cp-support.c (replace_typedefs): Handle
11789 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
11790 * python/py-type.c (typy_lookup_type): Likewise.
11791
53cc15f5
AV
117922017-03-20 Artemiy Volkov <artemiyv@acm.org>
11793
11794 PR gdb/14441
11795 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
11796 * parse.c (insert_type): Change assert statement.
11797 (follow_types): Handle rvalue reference types.
11798 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
11799 constant.
11800
a65cfae5
AV
118012017-03-20 Artemiy Volkov <artemiyv@acm.org>
11802
11803 PR gdb/14441
11804 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
11805 value_ref() interface.
11806 * c-valprint.c (c_value_print): Likewise.
11807 * infcall.c (value_arg_coerce): Likewise.
11808 * python/py-value.c (valpy_reference_value): Likewise.
11809 * valops.c (value_cast, value_reinterpret_cast)
11810 (value_dynamic_cast, typecmp): Likewise.
11811 (value_ref): Parameterize by kind of return value reference type.
11812 * value.h (value_ref): Add new parameter "refcode".
11813
3b224330
AV
118142017-03-20 Artemiy Volkov <artemiyv@acm.org>
11815
11816 PR gdb/14441
11817 * dwarf2read.c (read_tag_reference_type): Use
11818 lookup_lvalue_reference_type() instead of lookup_reference_type().
11819 * eval.c (evaluate_subexp_standard): Likewise.
11820 * f-exp.y: Likewise.
11821 * gdbtypes.c (make_reference_type, lookup_reference_type):
11822 Generalize with rvalue reference types.
11823 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
11824 convenience wrappers for lookup_reference_type().
11825 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
11826 reference kind parameter.
11827 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
11828 wrappers for lookup_reference_type().
11829 * guile/scm-type.c (gdbscm_type_reference): Use
11830 lookup_lvalue_reference_type() instead of lookup_reference_type().
11831 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
11832 * parse.c (follow_types): Likewise.
11833 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
11834 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
11835 Likewise.
11836 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
11837 (gdbpy_invoke_xmethod): Likewise.
11838 * stabsread.c: Provide extra argument to make_reference_type()
11839 call.
11840 * valops.c (value_ref, value_rtti_indirect_type): Use
11841 lookup_lvalue_reference_type() instead of lookup_reference_type().
11842
f9aeb8d4
AV
118432017-03-20 Artemiy Volkov <artemiyv@acm.org>
11844
11845 PR gdb/14441
11846 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
11847 (TYPE_IS_REFERENCE): New macro.
11848 (struct type): Add rvalue_reference_type field.
11849 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
11850
51457a05
MAL
118512017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
11852
11853 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
11854 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
11855 New function definition.
11856 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
11857 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
11858 New function declaration.
11859 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
11860 * mi/mi-interp.h: New file.
11861 * solib.c (info_sharedlibrary_command): Replace for loop with
11862 ALL_SO_LIBS macro
11863 * solib.h (update_solib_list): New function declaration.
11864 (so_list_head): Move macro.
11865 * solist.h (ALL_SO_LIBS): New macro.
11866
e696b3ad
MAL
118672017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
11868
11869 * infcmd.c (post_create_inferior): Remove unused argument in
11870 call to solib_add.
11871 * remote.c (remote_start_remote): Likewise.
11872 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
11873 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
11874 (enable_break): Likewise.
11875 * solib.c (update_solib_list): Remove unused target argument
11876 and its documentation.
11877 (solib_add): Remove unused target argument. Remove unused
11878 argument in call to update_solib_list.
11879 (info_sharedlibrary_command): Remove unused argument in call
11880 to update_solib_list.
11881 (sharedlibrary_command): Remove unused argument in call to
11882 solib_add.
11883 (handle_solib_event): Likewise.
11884 (reload_shared_libraries): Likewise.
11885 * solib.h (solib_add): Remove unused target argument.
11886
dcb84eda
AA
118872017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
11888
11889 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
11890 (s390_displaced_step_fixup): Cover relative branches with the
11891 default fixup handling. This fixes lack of support for some
11892 relative branch instructions.
11893
d9cb6cdc
SM
118942017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11895
11896 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
11897 ptid from regcache.
11898
1afaf9f4
SM
118992017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11900
11901 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
11902 i386_darwin_store_inferior_registers): Use ptid from regcache.
11903
aac12e24
SM
119042017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11905
11906 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
11907 i386bsd_store_inferior_registers): Use ptid from regcache.
11908
bbe1eef1
SM
119092017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11910
11911 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
11912 hppaobsd_store_registers): Use ptid from regcache.
11913
10799020
SM
119142017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11915
11916 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
11917 hppanbsd_store_registers): Use ptid from regcache.
11918
00204cf7
SM
119192017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11920
11921 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
11922 from regcache. Use get_ptrace_pid.
11923
11a33714
SM
119242017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11925
11926 * corelow.c (get_core_register_section): Use ptid from regcache,
11927 update doc.
11928
317cd492
SM
119292017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11930
11931 * bsd-uthread.c (bsd_uthread_fetch_registers,
11932 bsd_uthread_store_registers): Use ptid from regcache, set and
11933 restore inferior_ptid.
11934
9ac8a7c2
SM
119352017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11936
11937 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
11938 fetch_fp_regs, store_register, store_regs, store_fp_register,
11939 store_fp_regs): Use ptid from regcache.
11940
4ac4bb6a
SM
119412017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11942
11943 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
11944 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
11945 store_vfp_regs): Use ptid from regcache.
11946
9bcbdca8
PA
119472017-03-17 Pedro Alves <palves@redhat.com>
11948
11949 PR remote/21188
11950 * ser-base.c (ser_base_wait_for): Add comment.
11951 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
11952 version.
11953 * ser-unix.c (hardwire_raw): Remove reference to
11954 scb->current_timeout.
11955 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
11956 (hardwire_ops): Install ser_base_readchar instead of
11957 hardwire_readchar.
11958 * serial.h (struct serial) <current_timeout, timeout_remaining>:
11959 Remove fields.
11960
7503099f
JG
119612017-03-17 Jonah Graham <jonah@kichwacoders.com>
11962
11963 PR gdb/19637
11964 * python/lib/gdb/printer/bound_registers.py: Add support for
11965 Python 3.
11966
7942e96e
AA
119672017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
11968
11969 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
11970 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
11971 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
11972 byte_offset to subobj_byte_offset. Fix the handling of
11973 DWARF_VALUE_STACK on big-endian targets when coming via an
11974 implicit pointer.
11975 (dwarf2_evaluate_loc_desc): Adjust call to
11976 dwarf2_evaluate_loc_desc_full.
11977 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
11978 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
11979
ba14f379
YQ
119802017-03-16 Yao Qi <yao.qi@linaro.org>
11981
11982 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
11983 and REVSH instructions.
11984
b121eeb9
YQ
119852017-03-16 Yao Qi <yao.qi@linaro.org>
11986
11987 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
11988 (arm_record_test): Declare.
11989 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
11990 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
11991 align with the manual.
11992 (thumb_record_misc): Adjust the code order to align with the
11993 manual.
11994 (thumb2_record_decode_insn_handler): Fix instruction matching.
11995 (instruction_reader_thumb): New class.
11996 (arm_record_test): New function.
11997
728a7913
YQ
119982017-03-16 Yao Qi <yao.qi@linaro.org>
11999
12000 * arm-tdep.c (abstract_memory_reader): New class.
12001 (instruction_reader): New class.
12002 (extract_arm_insn): Add argument 'reader'. Callers updated.
12003 (decode_insn): Likewise.
12004
34b43320
DE
120052017-03-16 Doug Evans <dje@google.com>
12006
a7c0469f
DE
12007 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
12008 member. Change type of TYPE member to SCM. All uses updated.
12009 (lsscm_make_lazy_string_smob): Add assert.
12010 (lsscm_make_lazy_string): Flag bad length values.
12011 (lsscm_elt_type): New function.
12012 (gdbscm_lazy_string_to_value): Rewrite to use
12013 lsscm_safe_lazy_string_to_value.
12014 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
12015 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
12016 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
12017 in incoming type.
12018 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
12019 * guile/scm-type.c (tyscm_scm_to_type): New function.
12020
120212017-03-15 Doug Evans <dje@google.com>
12022
34b43320
DE
12023 PR python/17728, python/18439, python/18779
12024 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
12025 member. Change type of TYPE member to PyObject *. All uses updated.
12026 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
12027 (gdbpy_create_lazy_string_object): Flag bad length values.
12028 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
12029 Handle typedefs in incoming type.
12030 (stpy_lazy_string_elt_type): New function.
12031 (gdbpy_extract_lazy_string): Call it.
12032 * python/py-value.c (valpy_lazy_string): Flag bad length values.
12033 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
12034 typedefs in incoming type.
12035
a3a5fecc
DE
120362017-03-16 Doug Evans <dje@google.com>
12037
12038 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
12039 * guile/scm-type.c (tyscm_scm_to_type): New function.
12040
28f1c605
JW
120412017-03-16 Jiong Wang <jiong.wang@arm.com>
12042
12043 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
12044 "ULONGEST" for "skip".
12045
87c336f6
AA
120462017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
12047
12048 PR gdb/21220
12049 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
12050 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
12051 (inf_ptrace_peek_poke): ...here. New function. Now also loop
12052 over ptrace peek/poke until end of buffer or error.
12053
cf81cf60
SM
120542017-03-14 Simon Marchi <simon.marchi@ericsson.com>
12055
12056 * parse.c (length_of_subexp): Make static.
12057 * parser-defs.h (length_of_subexp): Remove.
12058
a379284a
AA
120592017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
12060
12061 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
12062 as well.
12063
8a6200ba
PA
120642017-03-14 Pedro Alves <palves@redhat.com>
12065
12066 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
12067 (main): Use std::unique_ptr. Remove calls to
12068 cp_demangled_name_parse_free.
12069
f79ec206
SM
120702017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12071
12072 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
12073 alphabsd_store_inferior_registers): Use regcache->ptid instead
12074 of inferior_ptid.
12075
edb5fb00
SM
120762017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12077
12078 * aix-thread.c (aix_thread_fetch_registers,
12079 aix_thread_store_registers): Use regcache->ptid instead of
12080 inferior_ptid.
12081
55119686
SM
120822017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12083
12084 * aarch64-linux-nat.c (fetch_gregs_from_thread,
12085 store_gregs_to_thread, fetch_fpregs_from_thread,
12086 store_fpregs_to_thread): Use regcache->ptid instead of
12087 inferior_ptid.
12088
6a06fbb7
SM
120892017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12090
12091 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
12092 amd64_linux_fetch_inferior_registers): Use regcache->ptid
12093 instead of inferior_ptid.
12094
c6386875
SM
120952017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12096
12097 * target.c (target_fetch_registers, target_store_registers): Add
12098 assert.
12099
ddaaf0fb
SM
121002017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12101
12102 * regcache.h (regcache_get_ptid): New function.
12103 * regcache.c (regcache_get_ptid): New function.
12104
b9da89d1 121052017-03-13 Mark Wielaard <mark@klomp.org>
12106
12107 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
12108
5f4d1085
KS
121092017-03-10 Keith Seitz <keiths@redhat.com>
12110
12111 PR c++/8218
12112 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
12113
c65d6b55
PA
121142017-03-08 Pedro Alves <palves@redhat.com>
12115
12116 PR gdb/18360
12117 * infrun.c (start_step_over, do_target_resume, resume)
12118 (restart_threads): Assert we're not resuming a thread that is
12119 meant to be stopped.
12120 (infrun_thread_stop_requested_callback): Delete.
12121 (infrun_thread_stop_requested): If the thread is internally
12122 stopped, queue a pending stop event and clear the thread's
12123 inline-frame state.
12124 (handle_stop_requested): New function.
12125 (handle_syscall_event, handle_inferior_event_1): Use
12126 handle_stop_requested.
12127 (handle_stop_requested): New function.
12128 (handle_signal_stop): Set the thread's stop_signal here instead of
12129 at caller.
12130 (finish_step_over): Clear step over info unconditionally.
12131 (handle_signal_stop): If the user had interrupted the event
12132 thread, consider the stop a random signal.
12133 (handle_signal_stop) <signal arrived while stepping over
12134 breakpoint>: Don't restart threads here.
12135 (stop_waiting): Don't clear step-over info here.
12136
15c22686
PA
121372017-03-08 Pedro Alves <palves@redhat.com>
12138
12139 PR 21206
12140 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
12141 goes to argument 2, not 1.
12142
6e5d74e7
PA
121432017-03-08 Pedro Alves <palves@redhat.com>
12144
12145 PR cli/21218
12146 * top.c (gdb_readline_wrapper): Avoid passing NULL to
12147 display_gdb_prompt.
12148 (command_line_input): Add comment.
12149
9753a2f6
PA
121502017-03-08 Pedro Alves <palves@redhat.com>
12151
12152 PR tui/21216
12153 * tui/tui-file.c (tui_file::write): New.
12154 * tui/tui-file.h (tui_file): Override "write".
12155 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
12156 factored out from ...
12157 (tui_puts): ... here.
12158 (tui_putc): Use them.
12159 (tui_write): New function.
12160 * tui/tui-io.h (tui_write): Declare.
12161
1672e0d9
SDJ
121622017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
12163
12164 * Makefile.in (SFILES): Replace "environ.c" with
12165 "common/environ.c".
12166 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
12167 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
12168 to...
12169 * common/environ.c: ... here.
12170 * environ.h: Moved to...
12171 * common/environ.h: ... here.
12172
f7bb4e3a
PB
121732017-03-07 Peter Bergner <bergner@vnet.ibm.com>
12174
12175 * gdbarch.sh (pstring_ptr): New static function.
12176 (gdbarch_disassembler_options): Use it.
12177 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
12178 not valid_disassembler_option->name.
12179 * gdbarch.c: Regenerate.
12180
e45ced6c
PB
121812017-03-07 Peter Bergner <bergner@vnet.ibm.com>
12182
12183 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
12184
5f6fd321
PA
121852017-03-07 Pedro Alves <palves@redhat.com>
12186
12187 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
12188
6dbb839a 121892017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
12190
12191 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
12192 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
12193 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 12194 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 12195
d274ecf4
SM
121962017-03-06 Simon Marchi <simon.marchi@ericsson.com>
12197
12198 * xtensa-linux-nat.c (fetch_gregs): Remove const.
12199
df97be55
SM
122002017-03-03 Simon Marchi <simon.marchi@ericsson.com>
12201
12202 * remote.c (remote_add_target_side_commands): Use range-based
12203 for loop.
12204
7d45f3df
YQ
122052017-03-03 Yao Qi <yao.qi@linaro.org>
12206
12207 PR gdb/21165
12208 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
12209 value is lazy.
12210 * valprint.c (common_val_print): Likewise.
12211
65b48a81
PB
122122017-02-28 Peter Bergner <bergner@vnet.ibm.com>
12213
12214 * NEWS: Mention new set/show disassembler-options commands.
12215 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
12216 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
12217 (prospective_options): New static variable.
12218 (gdb_disassembler::gdb_disassembler): Initialize
12219 m_di.disassembler_options.
12220 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
12221 (get_disassembler_options): New function.
12222 (set_disassembler_options): Likewise.
12223 (set_disassembler_options_sfunc): Likewise.
12224 (show_disassembler_options_sfunc): Likewise.
12225 (disassembler_options_completer): Likewise.
12226 (_initialize_disasm): Likewise.
12227 * disasm.h (get_disassembler_options): New prototype.
12228 (set_disassembler_options): Likewise.
12229 * gdbarch.sh (gdbarch_disassembler_options): New variable.
12230 (gdbarch_verify_disassembler_options): Likewise.
12231 * gdbarch.c: Regenerate.
12232 * gdbarch.h: Likewise.
12233 * arm-tdep.c (num_disassembly_options): Delete.
12234 (set_disassembly_style): Likewise.
12235 (arm_disassembler_options): New static variable.
12236 (set_disassembly_style_sfunc): Convert short style name into long
12237 option name. Call set_disassembler_options.
12238 (show_disassembly_style_sfunc): New function.
12239 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
12240 set_gdbarch_verify_disassembler_options.
12241 (_initialize_arm_tdep): Delete regnames variable and update callers.
12242 (arm_disassembler_options): Initialize.
12243 (disasm_options): New variable.
12244 (num_disassembly_options): Rename from this...
12245 (num_disassembly_styles): ...to this. Compute by scanning through
12246 disasm_options.
12247 (valid_disassembly_styles): Initialize using disasm_options.
12248 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
12249 set_arm_regname_option.
12250 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
12251 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
12252 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
12253 set_gdbarch_verify_disassembler_options.
12254 * s390-tdep.c (s390_disassembler_options): New static variable.
12255 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
12256 set_gdbarch_verify_disassembler_options.
12257
d538e36d
SM
122582017-02-27 Simon Marchi <simon.marchi@ericsson.com>
12259
12260 * remote.c (remote_add_target_side_condition): Remove "struct"
12261 keyword from range-based for loop.
12262
83621223
SM
122632017-02-27 Simon Marchi <simon.marchi@ericsson.com>
12264
12265 * remote.c (remote_add_target_side_condition): Use range-based
12266 for loop. Update comment.
12267
2123df0e
YQ
122682017-02-27 Yao Qi <yao.qi@linaro.org>
12269
12270 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
12271
8e368124
AH
122722017-02-26 Alan Hayward <alan.hayward@arm.com>
12273
12274 * regcache.c (regcache_raw_update): New function.
12275 (regcache_raw_read): Move code to regcache_raw_update.
12276 * regcache.h (regcache_raw_update): New declaration.
12277 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
12278
a49dd8dd
JK
122792017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
12280
12281 * dwarf2read.c (create_debug_type_hash_table): Initialize
12282 header.signature and header.type_offset_in_tu.
12283
34e4bae9
PA
122842017-02-24 Pedro Alves <palves@redhat.com>
12285
12286 * symtab.c (make_file_symbol_completion_list_1): Use
12287 add_symtab_completions.
12288
b0e4b369
AH
122892017-02-24 Alan Hayward <alan.hayward@arm.com>
12290
12291 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
12292
975c21ab
AH
122932017-02-24 Alan Hayward <alan.hayward@arm.com>
12294
12295 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
12296 I386_MAX_REGISTER_SIZE.
12297 (i386_pseudo_register_write): Likewise.
12298 (i386_process_record): Likewise.
12299 * i387-tdep.c (i387_supply_xsave): Likewise.
12300 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
12301 (store_register): Likewise.
12302
14bc53a8
PA
123032017-02-23 Pedro Alves <palves@redhat.com>
12304
12305 * ada-lang.c: Include "common/function-view.h".
12306 (ada_iterate_over_symbols): Adjust to use function_view as
12307 callback type.
12308 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
12309 (ada_make_symbol_completion_list): Use a lambda.
12310 (ada_exc_search_name_matches): Delete.
12311 (name_matches_regex): New.
12312 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
12313 * compile/compile-c-support.c: Include "common/function-view.h".
12314 (print_one_macro): Change prototype to accept a ui_file pointer.
12315 (write_macro_definitions): Use a lambda.
12316 * dwarf2read.c: Include "common/function-view.h".
12317 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
12318 (dw2_expand_symtabs_matching): Adjust to use function_view as
12319 callback type.
12320 * language.h: Include "common/function-view.h".
12321 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
12322 function_view as callback type.
12323 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
12324 * linespec.c: Include "common/function-view.h".
12325 (collect_info::add_symbol): New method.
12326 (struct symbol_and_data_callback, iterate_inline_only, struct
12327 symbol_matcher_data, iterate_name_matcher): Delete.
12328 (iterate_over_all_matching_symtabs): Adjust to use function_view
12329 as callback type and lambdas.
12330 (iterate_over_file_blocks): Adjust to use function_view as
12331 callback type.
12332 (decode_compound_collector): Now a class with private fields.
12333 (decode_compound_collector::release_symbols): New method.
12334 (collect_one_symbol): Rename to...
12335 (decode_compound_collector::operator()): ... this and adjust.
12336 (lookup_prefix_sym): decode_compound_collector construction bits
12337 move to decode_compound_collector ctor. Pass the
12338 decode_compound_collector object directly as callback. Remove
12339 cleanups and use decode_compound_collector::release_symbols
12340 instead.
12341 (symtab_collector): Now a class with private fields.
12342 (symtab_collector::release_symtabs): New method.
12343 (add_symtabs_to_list): Rename to...
12344 (symtab_collector::operator()): ... this and adjust.
12345 (collect_symtabs_from_filename): symtab_collector construction
12346 bits move to symtab_collector ctor. Pass the symtab_collector
12347 object directly as callback. Remove cleanups and use
12348 symtab_collector::release_symtabs instead.
12349 (collect_symbols): Delete.
12350 (add_matching_symbols_to_info): Use lambdas.
12351 * macrocmd.c (print_macro_callback): Delete.
12352 (info_macro_command): Use a lambda.
12353 (info_macros_command): Pass print_macro_definition as callable
12354 directly.
12355 (print_one_macro): Remove 'ignore' parameter.
12356 (macro_list_command): Adjust.
12357 * macrotab.c (macro_for_each_data::fn): Now a function_view.
12358 (macro_for_each_data::user_data): Delete field.
12359 (foreach_macro): Adjust to call the function_view.
12360 (macro_for_each): Adjust to use function_view as callback type.
12361 (foreach_macro_in_scope): Adjust to call the function_view.
12362 (macro_for_each_in_scope): Adjust to use function_view as callback
12363 type.
12364 * macrotab.h: Include "common/function-view.h".
12365 (macro_callback_fn): Declare a prototype instead of a pointer.
12366 Remove "user_data" parameter.
12367 (macro_for_each, macro_for_each_in_scope): Adjust to use
12368 function_view as callback type.
12369 * psymtab.c (partial_map_expand_apply)
12370 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
12371 Adjust to use function_view as callback type and to return bool.
12372 (psym_expand_symtabs_matching): Adjust to use function_view as
12373 callback types.
12374 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
12375 to use function_view as callback type and to return bool.
12376 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
12377 callback types.
12378 * symfile.c (expand_symtabs_matching): Adjust to use function_view
12379 as callback types.
12380 * symfile.h: Include "common/function-view.h".
12381 (expand_symtabs_file_matcher_ftype)
12382 (expand_symtabs_symbol_matcher_ftype)
12383 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
12384 return bool.
12385 (quick_symbol_functions::map_symtabs_matching_filename)
12386 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
12387 function_view as callback type and return bool.
12388 (expand_symtabs_matching): Adjust to use function_view as callback
12389 type.
12390 (maintenance_expand_name_matcher)
12391 (maintenance_expand_file_matcher): Delete.
12392 (maintenance_expand_symtabs): Use lambdas.
12393 * symtab.c (iterate_over_some_symtabs): Adjust to use
12394 function_view as callback types and return bool.
12395 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
12396 of a cleanup.
12397 (lookup_symtab_callback): Delete.
12398 (lookup_symtab): Use a lambda.
12399 (iterate_over_symbols): Adjust to use function_view as callback
12400 type.
12401 (struct search_symbols_data, search_symbols_file_matches)
12402 (search_symbols_name_matches): Delete.
12403 (search_symbols): Use a pair of lambdas.
12404 (struct add_name_data, add_macro_name, symbol_completion_matcher)
12405 (symtab_expansion_callback): Delete.
12406 (default_make_symbol_completion_list_break_on_1): Use lambdas.
12407 * symtab.h: Include "common/function-view.h".
12408 (iterate_over_some_symtabs): Adjust to use function_view as
12409 callback type and return bool.
12410 (iterate_over_symtabs): Adjust to use function_view as callback
12411 type.
12412 (symbol_found_callback_ftype): Remove 'data' parameter and return
12413 bool.
12414 (iterate_over_symbols): Adjust to use function_view as callback
12415 type.
12416
07e253aa
PA
124172017-02-23 Pedro Alves <palves@redhat.com>
12418
12419 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
12420 (%.o) <unittests/%.c>: New pattern.
12421 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
12422 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
12423 * common/function-view.h: New file.
12424 * unittests/function-view-selftests.c: New file.
12425 * configure: Regenerate.
12426
8eaf5320
SM
124272017-02-23 Simon Marchi <simon.marchi@ericsson.com>
12428
12429 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
12430 inferior_ptid.
12431 * go32-nat.c (go32_thread_alive): Likewise.
12432
38768751
YQ
124332017-02-23 Yao Qi <yao.qi@linaro.org>
12434
12435 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
12436 delete.
12437
0a8beaba
YQ
124382017-02-23 Yao Qi <yao.qi@linaro.org>
12439
12440 * varobj.c (varobj_clear_saved_item): Use delete instead of
12441 xfree.
12442 (update_dynamic_varobj_children): Likewise.
12443
58fdfd2c
JK
124442017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12445
12446 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
12447
1b90b139
SM
124482017-02-21 Simon Marchi <simon.marchi@ericsson.com>
12449
12450 * common/enum-flags.h (enum_flags::enum_flags): Initialize
12451 m_enum_value to 0 in default constructor.
12452
2039d74e
EBM
124532017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12454
12455 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
12456 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
12457 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
12458 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
12459 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
12460 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
12461 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
12462 IS_STORE_CONDITIONAL_INSN.
12463
7814882a
JK
124642017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12465
12466 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
12467
0ae60b63
JK
124682017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12469
12470 * NEWS (Changes since GDB 7.12): Add DWARF-5.
12471
0224619f
JK
124722017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12473
12474 * dwarf2read.c (skip_one_die, read_attribute_value)
12475 (dwarf2_const_value_attr, dump_die_shallow)
12476 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
12477 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
12478
0af92d60
JK
124792017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12480
12481 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
12482 (dwarf_parse_macro_header): Accept DWARF version 5.
12483 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
12484
216f72a1
JK
124852017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12486
12487 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
12488 DW_AT_GNU_*.
12489 * common/common-exceptions.h (enum errors): Likewise.
12490 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
12491 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
12492 (dwarf_expr_context::execute_stack_op): Likewise.
12493 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
12494 Likewise.
12495 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
12496 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12497 (show_entry_values_debug, call_site_to_target_addr)
12498 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
12499 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
12500 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
12501 (value_of_dwarf_block_entry, indirect_pieced_value)
12502 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
12503 (disassemble_dwarf_expression): Likewise.
12504 * dwarf2read.c (process_die, inherit_abstract_dies)
12505 (read_call_site_scope): Likewise.
12506 * gdbtypes.h (struct func_type, struct call_site_parameter)
12507 (struct call_site): Likewise.
12508 * stack.c (read_frame_arg): Likewise.
12509 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
12510
43988095
JK
125112017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12512
12513 * defs.h (read_unsigned_leb128): New declaration.
12514 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
12515 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
12516 (dwarf2_find_location_expression): Call also
12517 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
12518 * dwarf2loc.h (dwarf2_version): New declaration.
12519 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
12520 rnglists.
12521 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
12522 .debug_rnglists.
12523 (struct dwop_section_names): Add loclists_dwo.
12524 (dwop_section_names): Add .debug_loclists.dwo.
12525 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
12526 (struct dwarf2_per_cu_data): Add dwarf_version.
12527 (struct dwo_sections): Add loclists.
12528 (struct attr_abbrev): Add implicit_const.
12529 (read_indirect_line_string): New declaration.
12530 (read_unsigned_leb128): Delete declaration.
12531 (rcuh_kind): New definition.
12532 (read_and_check_comp_unit_head): Change parameter
12533 is_debug_types_section to section_kind.
12534 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
12535 (read_comp_unit_head): Change parameter abfd to section, add parameter
12536 section_kind. Handle DWARF-5.
12537 (error_check_comp_unit_head): Accept also DWARF version 5.
12538 (read_and_check_comp_unit_head): Change parameter
12539 is_debug_types_section to section_kind.
12540 (read_and_check_type_unit_head): Delete function.
12541 (read_abbrev_offset): Handle DWARF-5.
12542 (create_debug_type_hash_table): Add parameter section_kind. Process
12543 only DW_UT_type. Use signature and type_offset_in_tu from struct
12544 comp_unit_head.
12545 (create_debug_types_hash_table): Update create_debug_type_hash_table
12546 caller.
12547 (create_all_type_units): Call create_debug_type_hash_table.
12548 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
12549 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
12550 caller.
12551 (skip_one_die): Handle DW_FORM_implicit_const.
12552 (dwarf2_rnglists_process): New function.
12553 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
12554 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
12555 (read_attribute_value): Handle DW_FORM_implicit_const,
12556 DW_FORM_line_strp.
12557 (read_attribute): Handle DW_FORM_implicit_const.
12558 (read_indirect_string_at_offset_from): New function from
12559 read_indirect_string_at_offset.
12560 (read_indirect_string_at_offset): Call
12561 read_indirect_string_at_offset_from.
12562 (read_indirect_line_string_at_offset): New function.
12563 (read_indirect_string): New function comment.
12564 (read_indirect_line_string): New function.
12565 (read_unsigned_leb128): Make it global.
12566 (dwarf2_string_attr): Handle DWARF-5.
12567 (add_include_dir_stub, read_formatted_entries): New functions.
12568 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
12569 Handle DWARF-5.
12570 (per_cu_header_read_in): Update read_comp_unit_head caller.
12571 (dwarf2_version): New function.
12572 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
12573 rnglists.
12574 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
12575 fields.
12576
22d2f3ab
JK
125772017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12578
12579 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
12580
5f46c5a5
JK
125812017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12582
12583 * dwarf2read.c (dwarf2_ranges_process): New function from
12584 dwarf2_ranges_read.
12585 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
12586 dwarf2_ranges_process.
12587
78d4d2c5
JK
125882017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12589
12590 * dwarf2read.c (create_debug_type_hash_table): New function from
12591 create_debug_types_hash_table.
12592 (create_debug_types_hash_table): Call create_debug_type_hash_table.
12593 (create_all_type_units, open_and_init_dwo_file): Update
12594 create_debug_types_hash_table callers.
12595
1b076f25
SDJ
125962017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12597
12598 PR gdb/16188
12599 * fork-child.c (trace_start_error): Fix thinko. va_end should
12600 refer to 'ap', not 'args'.
12601
0db8980c
SDJ
126022017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12603 Pedro Alves <palves@redhat.com>
12604
12605 PR gdb/16188
12606 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
12607 calls succeeded.
12608 * fork-child.c (trace_start_error): New function.
12609 (trace_start_error_with_name): Likewise.
12610 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
12611 * inf-ptrace.c (inf_ptrace_me): Likewise.
12612 * inferior.h (trace_start_error): New prototype.
12613 (trace_start_error_with_name): Likewise.
12614
99e8a4f9
SDJ
126152017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
12616
12617 PR gdb/21164
12618 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
12619 NULL before using it.
12620 * symmisc.c (maintenance_print_symbols): Likewise.
12621 (maintenance_print_msymbols): Likewise.
12622
4e746bb6
TW
126232017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12624
12625 * NEWS: Add record Python bindings entry.
12626
126272017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12628
12629 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
12630 py-record-full.o.
12631 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
12632 * python/py-record-btrace.c, python/py-record-btrace.h,
12633 python/py-record-full.c, python/py-record-full.h: New file.
12634 * python/py-record.c: Add include for py-record-btrace.h and
12635 py-record-full.h.
12636 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
12637 recpy_instruction_history, recpy_function_call_history, recpy_begin,
12638 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
12639 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
12640 New definition.
12641 (gdbpy_initialize_btrace): New export.
12642 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
12643
126442017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12645
12646 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
12647 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
12648 * python/py-record.c: New file.
12649 * python/python-internal.h (gdbpy_start_recording,
12650 gdbpy_current_recording, gdpy_stop_recording,
12651 gdbpy_initialize_record): New export.
12652 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
12653 (python_GdbMethods): Add gdbpy_start_recording,
12654 gdbpy_current_recording and gdbpy_stop_recording.
12655
126562017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12657
12658 * record-btrace.c (record_btrace_record_method): New function.
12659 (init_record_btrace_ops): Initialize to_record_method.
12660 * record-full.c (record_full_record_method): New function.
12661 (init_record_full_ops, init_record_full_core_ops): Add
12662 record_full_record_method.
12663 * record.h (enum record_method): New enum.
12664 * target-debug.h (target_debug_print_enum_record_method: New define.
12665 * target-delegates.c: Regenerate.
12666 * target.c (target_record_method): New function.
12667 * target.h: Include record.h.
12668 (struct target_ops) <to_record_method>: New field.
12669 (target_record_method): New export.
12670
126712017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12672
12673 * record.h (record_start, record_stop): New export.
12674 * record.c (record_start, record_stop): New function.
12675
126762017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12677
12678 * btrace.c (btrace_fetch): Copy function call segments pointer
12679 into a vector.
12680 (btrace_clear): Clear the vector.
12681 (btrace_find_insn_by_number): Use binary search to find the correct
12682 function call segment.
12683 * btrace.h (brace_fun_p): New typedef.
12684 (struct btrace_thread_info) <functions>: New field.
12685
126862017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12687
12688 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
12689 * btrace.c (btrace_decode_error): ... here. New function.
12690 * btrace.h (btrace_decode_error): New export.
12691
126922017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12693
12694 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
12695 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
12696 btrace_find_insn_by_number): Remove special case for gaps.
12697 * btrace.h (btrace_insn_get_error): New export.
12698 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
12699 * record-btrace.c (btrace_insn_history): Print number for gaps.
12700 (record_btrace_info, record_btrace_goto): Handle gaps.
12701
3f77c769
TT
127022017-02-14 Tom Tromey <tom@tromey.com>
12703
12704 PR python/13598:
12705 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
12706 event.
12707 * python/py-evts.c (gdbpy_initialize_py_events): Add
12708 before_prompt registry.
12709 * python/py-events.h (events_object) <before_prompt>: New field.
12710
4c2c7ac6
MM
127112017-02-14 Markus Metzger <markus.t.metzger@intel.com>
12712
12713 * btrace.c (ftrace_new_switch): Preserve up link and flags.
12714
5cf30ebf
LM
127152017-02-13 Luis Machado <lgustavo@codesourcery.com>
12716
12717 * symfile (_initialize_symfile): Add usage text to the load command's
12718 help text.
12719
26a06916
SM
127202017-02-10 Simon Marchi <simon.marchi@ericsson.com>
12721
12722 * utils.c (defaulted_query): Don't query on secondary UIs.
12723
0b145e37
TT
127242017-02-10 Tom Tromey <tom@tromey.com>
12725
12726 * rust-lang.c (rust_get_disr_info): Remove unused variable.
12727
2d8365c4
TT
127282017-02-10 Tom Tromey <tom@tromey.com>
12729
12730 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
12731 "cleanup" local.
12732 * python/py-type.c (typy_legacy_template_argument): Remove
12733 unnecessary "cleanup" local.
12734
2bb8f231
TT
127352017-02-10 Tom Tromey <tom@tromey.com>
12736
12737 * python/python.c (do_start_initialization): New function, from
12738 _initialize_python.
12739 (_initialize_python): Call do_start_initialization.
12740 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
12741 goto.
12742
1bdfaf42
TT
127432017-02-10 Tom Tromey <tom@tromey.com>
12744
12745 * python/py-prettyprint.c (pretty_print_one_value): Use
12746 gdbpy_ref.
12747
88b6faea
TT
127482017-02-10 Tom Tromey <tom@tromey.com>
12749
12750 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
12751 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
12752 gdbpy_ref.
12753 * python/py-type.c (field_new): Use gdbpy_ref.
12754 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
12755 gdbpy_ref.
12756 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
12757 (py_free_pspace): Likewise.
12758 (pspace_to_pspace_object): Likewise.
12759 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
12760 (py_free_objfile): Likewise.
12761 (objfile_to_objfile_object): Likewise.
12762 * python/py-inferior.c (delete_thread_object): Use
12763 gdbpy_ref.
12764 (infpy_read_memory): Likewise.
12765 (py_free_inferior): Likewise.
12766 * python/py-evtregistry.c (create_eventregistry_object): Use
12767 gdbpy_ref.
12768 * python/py-event.c (create_event_object): Use gdbpy_ref.
12769
7780f186
TT
127702017-02-10 Tom Tromey <tom@tromey.com>
12771
12772 * python/py-ref.h (gdbpy_ref_policy): Now a template.
12773 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
12774 used.
12775 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
12776 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
12777 python/py-exitedevent.c, python/py-finishbreakpoint.c,
12778 python/py-framefilter.c, python/py-function.c,
12779 python/py-inferior.c, python/py-infevents.c,
12780 python/py-linetable.c, python/py-newobjfileevent.c,
12781 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
12782 python/py-signalevent.c, python/py-stopevent.c,
12783 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
12784 python/py-unwind.c, python/py-utils.c, python/py-value.c,
12785 python/py-varobj.c, python/py-xmethods.c, python/python.c,
12786 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
12787
d4b0bb18
TT
127882017-02-10 Tom Tromey <tom@tromey.com>
12789
12790 * ui-out.h (ui_out_emit_type): New class.
12791 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
12792 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
12793 and ui_out_emit_tuple.
12794 (enumerate_locals): Likewise.
12795 (py_mi_print_variables, py_print_locals, py_print_args): Use
12796 ui_out_emit_list.
12797 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
12798 ui_out_emit_list.
12799 * common/gdb_optional.h: New file.
12800
f67f945c
MG
128012017-02-10 Martin Galvan <martingalvan@sourceware.org>
12802
12803 * MAINTAINERS (Write After Approval): Update my e-mail address.
12804
18da0c51
MG
128052017-02-10 Martin Galvan <martingalvan@sourceware.org>
12806
12807 PR gdb/21122
12808 * breakpoint.c (_initialize_breakpoint): Update the help description
12809 of the 'commands' command to indicate that it takes a list argument.
12810
62c14536
SM
128112017-02-09 Simon Marchi <simon.marchi@ericsson.com>
12812
12813 * interps.c (current_interp_set_logging): Remove "return".
12814
ff6fa247
GB
128152017-02-09 Gary Benson <gbenson@redhat.com>
12816
12817 * symtab.c (add_symtab_completions): Prevent NULL pointer
12818 dereference.
12819
a474bd8e
PA
128202017-02-08 Pedro Alves <palves@redhat.com>
12821
12822 * interps.c (interp::interp): Remove reference to quiet_p.
12823 (interp_set): Make static. Remove dead "Switching to" output
12824 code.
12825 (interp_quiet_p, interp_set_quiet): Delete.
12826 (interpreter_exec_cmd): Don't set the interpreter quiet.
12827 * interps.h (interp_quiet_p): Make static.
12828 (class interp) <quiet_p>: Remove field
12829
3d7b173c
JG
128302017-02-08 Jerome Guitton <guitton@adacore.com>
12831
604c4576
JG
12832 * cli/cli-decode.c (find_command_name_length): Make it extern.
12833 * cli/cli-decode.h (find_command_name_length): Declare.
12834 * cli/cli-script.c (command_name_equals, line_first_arg):
12835 New functions.
12836 (process_next_line): Use cli-decode to parse command names.
12837 (build_command_line): Make args a constant pointer.
12838
128392017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 12840
3d7b173c
JG
12841 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
12842 Remove case-insensitive search.
12843
1291063d
JM
128442017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
12845
12846 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
12847 at the end of the line. Avoids an ARI warning.
12848
20b477a7
LM
128492017-02-06 Luis Machado <lgustavo@codesourcery.com>
12850
12851 * NEWS: Mention support for record/replay of Intel 64 rdrand and
12852 rdseed instructions.
12853 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
12854
3f7b46f2
IR
128552017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
12856
12857 PR tdep/20936
12858 Provide and use sparc32 and sparc64 target description XML files.
12859 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
12860 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
12861 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
12862 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
12863 * features/sparc/sparc32-solaris.xml: New file.
12864 * features/sparc/sparc64-solaris.xml: New file.
12865 * features/sparc/sparc32-solaris.c: Generated.
12866 * features/sparc/sparc64-solaris.c: Generated.
12867 * sparc-tdep.h: Account for differences in target descriptions.
12868 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
12869 (sparc32_register_type): Use target provided registers.
12870 (validate_tdesc_registers): New function.
12871 (sparc32_gdbarch_init): Use tdesc_has_registers.
12872 Set pseudoregister functions.
12873 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
12874 (sparc64_register_type): Use target provided registers.
12875 (sparc64_init_abi): Set pseudoregister functions.
12876
f0fd41c1
TT
128772017-02-03 Tom Tromey <tom@tromey.com>
12878
12879 PR rust/21097:
12880 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
12881 with a single member.
12882
d6f9b0fb
PA
128832017-02-03 Pedro Alves <palves@redhat.com>
12884
12885 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
12886 (cli_interp_base::~cli_interp_base): New.
12887 (cli_interp): New struct.
12888 (as_cli_interp): Cast the interp itself to cli_interp.
12889 (cli_interpreter_pre_command_loop): Rename to ...
12890 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
12891 parameter.
12892 (cli_interpreter_init): Rename to ...
12893 (cli_interp::init): ... this. Remove 'self' parameter. Use
12894 boolean. Make extern.
12895 (cli_interpreter_resume): Rename to ...
12896 (cli_interp::resume): ... this. Remove 'data' parameter. Make
12897 extern.
12898 (cli_interpreter_suspend): Rename to ...
12899 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
12900 extern.
12901 (cli_interpreter_exec): Rename to ...
12902 (cli_interp::exec): ... this. Remove 'data' parameter. Make
12903 extern.
12904 (cli_interpreter_supports_command_editing): Rename to ...
12905 (cli_interp_base::supports_command_editing): ... this. Remove
12906 'interp' parameter. Make extern.
12907 (cli_ui_out): Rename to ...
12908 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
12909 Make extern.
12910 (cli_set_logging): Rename to ...
12911 (cli_interp_base::set_logging): ... this. Remove 'interp'
12912 parameter. Make extern.
12913 (cli_interp_procs): Delete.
12914 (cli_interp_factory): Adjust to use "new".
12915 * cli/cli-interp.h: Include "interps.h".
12916 (struct cli_interp_base): New struct.
12917 * interps.c (struct interp): Delete. Fields moved to interps.h.
12918 (interp_new): Delete.
12919 (interp::interp, interp::~interp): New.
12920 (interp_set): Use bool, and return void. Assume the interpreter
12921 has suspend, init and resume methods, and that the all return
12922 void.
12923 (set_top_level_interpreter): interp_set returns void.
12924 (interp_ui_out): Adapt.
12925 (current_interp_set_logging): Adapt.
12926 (interp_data): Delete.
12927 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
12928 (interp_exec): Adapt.
12929 (top_level_interpreter_data): Delete.
12930 * interps.h (interp_init_ftype, interp_resume_ftype)
12931 (interp_suspend_ftype, interp_exec_ftype)
12932 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
12933 (class interp): New.
12934 (interp_new): Delete.
12935 (interp_set): Now returns void. Use bool.
12936 (interp_data, top_level_interpreter_data): Delete.
12937 * mi/mi-common.h: Include interps.h.
12938 (class mi_interp): Inherit from interp. Define a ctor. Declare
12939 init, resume, suspect, exec, interp_ui_out, set_logging and
12940 pre_command_loop methods.
12941 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
12942 (mi_interpreter_init): Rename to ...
12943 (mi_interp::init): ... this. Remove the 'interp' parameter, use
12944 bool, return void and make extern. Adjust.
12945 (mi_interpreter_resume): ... Rename to ...
12946 (mi_interp::resume): ... this. Remove the 'data' parameter,
12947 return void and make extern. Adjust.
12948 (mi_interpreter_suspend): ... Rename to ...
12949 (mi_interp::suspend): ... this. Remove the 'data' parameter,
12950 return void and make extern. Adjust.
12951 (mi_interpreter_exec): ... Rename to ...
12952 (mi_interp::exec): ... this. Remove the 'data' parameter and make
12953 extern. Adjust.
12954 (mi_interpreter_pre_command_loop): ... Rename to ...
12955 (mi_interp::pre_command_loop): ... this. Remove the 'self'
12956 parameter and make extern.
12957 (mi_on_normal_stop_1): Adjust.
12958 (mi_ui_out): Rename to ...
12959 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
12960 parameter and make extern. Adjust.
12961 (mi_set_logging): Rename to ...
12962 (mi_interp::set_logging): ... this. Remove the 'interp'
12963 parameter and make extern. Adjust.
12964 (mi_interp_procs): Delete.
12965 (mi_interp_factory): Adjust to use 'new'.
12966 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
12967 (mi_print_exception, mi_execute_command, mi_load_progress):
12968 Adjust.
12969 * tui/tui-interp.c (tui_interp): New class.
12970 (as_tui_interp): Return a tui_interp pointer.
12971 (tui_on_normal_stop, tui_on_signal_received)
12972 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
12973 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
12974 to use interp::interp_ui_out.
12975 (tui_init): Rename to ...
12976 (tui_interp::init): ... this. Remove the 'self' parameter, use
12977 bool, return void and make extern. Adjust.
12978 (tui_resume): Rename to ...
12979 (tui_interp::resume): ... this. Remove the 'data' parameter,
12980 return void and make extern. Adjust.
12981 (tui_suspend): Rename to ...
12982 (tui_interp::suspend): ... this. Remove the 'data' parameter,
12983 return void and make extern. Adjust.
12984 (tui_ui_out): Rename to ...
12985 (tui_interp::interp_ui_out): ... this. Remove the 'self'
12986 parameter, and make extern. Adjust.
12987 (tui_exec): Rename to ...
12988 (tui_interp::exec): ... this. Remove the 'data' parameter and
12989 make extern.
12990 (tui_interp_procs): Delete.
12991 (tui_interp_factory): Use "new".
12992
65c40c95
TT
129932017-02-02 Tom Tromey <tom@tromey.com>
12994
12995 * rust-exp.y (ends_raw_string, space_then_number)
12996 (rust_identifier_start_p): Return bool.
12997 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
12998 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
12999 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
13000 (rust_chartype_p): Return bool.
13001 (val_print_struct, rust_print_struct_def, rust_print_type):
13002 Update.
13003 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
13004 Return bool.
13005
b50f188d
TT
130062017-02-02 Tom Tromey <tom@tromey.com>
13007
13008 * rust-lang.c: Reindent.
13009
03c85b11
TT
130102017-02-02 Tom Tromey <tom@tromey.com>
13011
13012 * rust-lang.h (rust_crate_for_block): Update.
13013 * rust-lang.c (rust_crate_for_block): Return std::string.
13014 (rust_get_disr_info): Use std:;string, not
13015 gdb::unique_xmalloc_ptr.
13016 * rust-exp.y (crate_name): Update.
13017
9b6da501
PA
130182017-02-02 Pedro Alves <palves@redhat.com>
13019
13020 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
13021 field out of gdb_disassembler_test and make it static.
13022
ec4cb20b
PA
130232017-02-02 Pedro Alves <palves@redhat.com>
13024
13025 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
13026 mi1_interp and mi_interp fields.
13027
5be5dbf0
PA
130282017-02-02 Pedro Alves <palves@redhat.com>
13029
616268b6
PA
13030 * cli/cli-interp.c (struct saved_output_files, saved_output):
13031 Moved from cli/cli-logging.c.
13032 (cli_set_logging): New function.
13033 (cli_interp_procs): Install cli_set_logging.
13034 * cli/cli-interp.h (make_logging_output, cli_set_logging):
13035 Declare.
13036 * cli/cli-logging.c (struct saved_output_files, saved_output):
13037 Moved to cli/cli-interp.c.
13038 (pop_output_files): Don't save outputs here.
13039 (make_logging_output): New function.
13040 (handle_redirections): Don't build tee nor save previous outputs
13041 here.
13042 * interps.c (current_interp_set_logging): Change prototype.
13043 Assume there's always a set_logging_proc method installed.
13044 * interps.h (interp_set_logging_ftype): Change prototype.
13045 (current_interp_set_logging): Change prototype and adjust comment.
13046 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
13047 use make_logging_output.
13048 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
130492017-02-02 Pedro Alves <palves@redhat.com>
13050
5be5dbf0
PA
13051 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
13052 from ...
13053 (set_logging_overwrite): ... here.
13054 (logging_no_redirect_file): Delete.
13055 (set_logging_redirect): Don't handle redirection on the fly.
13056 Instead warn that "logging off" / "logging on" is necessary.
13057 (pop_output_files): Delete references to logging_no_redirect_file.
13058 (show_logging_command): Always speak in terms of what will happen
13059 once logging is reenabled.
13060
c99cc448
PA
130612017-02-02 Pedro Alves <palves@redhat.com>
13062
13063 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
13064
8b172ce7
PA
130652017-02-02 Pedro Alves <palves@redhat.com>
13066
13067 * disasm.c (gdb_pretty_print_insn): Rename to ...
13068 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
13069 Remove gdbarch parameter. Adapt to clear the object's buffers
13070 instead of allocating new buffers, and to print using the object's
13071 gdb_disassembler instead of calling gdb_print_insn.
13072 (dump_insns): Use gdb_pretty_print_disassembler.
13073 * disasm.h (gdb_pretty_print_insn): Delete declaration.
13074 (gdb_pretty_print_disassembler): New class.
13075 * record-btrace.c (btrace_insn_history): Use
13076 gdb_pretty_print_disassembler.
13077
d7e74731
PA
130782017-02-02 Pedro Alves <palves@redhat.com>
13079
13080 * ada-lang.c (type_as_string): Use string_file.
13081 * ada-valprint.c (ada_print_floating): Use string_file.
13082 * ada-varobj.c (ada_varobj_scalar_image)
13083 (ada_varobj_get_value_image): Use string_file.
13084 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
13085 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
13086 * breakpoint.c (update_inserted_breakpoint_locations)
13087 (insert_breakpoint_locations, reattach_breakpoints)
13088 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
13089 (print_it_watchpoint): Use string_file.
13090 (save_breakpoints): Use stdio_file.
13091 * c-exp.y (oper): Use string_file.
13092 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
13093 tee_file.
13094 (pop_output_files): Use delete.
13095 (handle_redirections): Use stdio_file and tee_file.
13096 * cli/cli-setshow.c (do_show_command): Use string_file.
13097 * compile/compile-c-support.c (c_compute_program): Use
13098 string_file.
13099 * compile/compile-c-symbols.c (generate_vla_size): Take a
13100 'string_file &' instead of a 'ui_file *'.
13101 (generate_c_for_for_one_variable): Take a 'string_file &' instead
13102 of a 'ui_file *'. Use string_file.
13103 (generate_c_for_variable_locations): Take a 'string_file &'
13104 instead of a 'ui_file *'.
13105 * compile/compile-internal.h (generate_c_for_for_one_variable):
13106 Take a 'string_file &' instead of a 'ui_file *'.
13107 * compile/compile-loc2c.c (push, pushf, unary, binary)
13108 (print_label, pushf_register_address, pushf_register)
13109 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
13110 'ui_file *'. Adjust.
13111 * compile/compile.c (compile_to_object): Use string_file.
13112 * compile/compile.h (compile_dwarf_expr_to_c)
13113 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
13114 'ui_file *'.
13115 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
13116 (replace_typedefs_qualified_name): Use string_file and
13117 obstack_copy0.
13118 * disasm.c (gdb_pretty_print_insn): Use string_file.
13119 (gdb_disassembly): Adjust reference the null_stream global.
13120 (do_ui_file_delete): Delete.
13121 (gdb_insn_length): Use null_stream.
13122 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
13123 * dwarf2loc.c (dwarf2_compile_property_to_c)
13124 (locexpr_generate_c_location, loclist_generate_c_location): Take a
13125 'string_file &' instead of a 'ui_file *'.
13126 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
13127 * dwarf2read.c (do_ui_file_peek_last): Delete.
13128 (dwarf2_compute_name): Use string_file.
13129 * event-top.c (gdb_setup_readline): Use stdio_file.
13130 * gdbarch.sh (verify_gdbarch): Use string_file.
13131 * gdbtypes.c (safe_parse_type): Use null_stream.
13132 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
13133 string_file.
13134 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
13135 'string_file *' instead of a 'ui_file *'.
13136 (gdbscm_arch_disassemble): Use string_file.
13137 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
13138 * guile/scm-ports.c (class ioscm_file_port): Now a class that
13139 inherits from ui_file.
13140 (ioscm_file_port_delete, ioscm_file_port_rewind)
13141 (ioscm_file_port_put): Delete.
13142 (ioscm_file_port_write): Rename to ...
13143 (ioscm_file_port::write): ... this. Remove file_port_magic
13144 checks.
13145 (ioscm_file_port_new): Delete.
13146 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
13147 ui_file_up.
13148 * guile/scm-type.c (tyscm_type_name): Use string_file.
13149 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
13150 Use string_file.
13151 * infcmd.c (print_return_value_1): Use string_file.
13152 * infrun.c (print_target_wait_results): Use string_file.
13153 * language.c (add_language): Use string_file.
13154 * location.c (explicit_to_string_internal): Use string_file.
13155 * main.c (captured_main_1): Use null_file.
13156 * maint.c (maintenance_print_architecture): Use stdio_file.
13157 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
13158 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
13159 event_channel>: Change type to mi_console_file pointer.
13160 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
13161 (mi_console_file_delete): Delete.
13162 (struct mi_console_file): Delete.
13163 (mi_console_file_magic): Delete.
13164 (mi_console_file_new): Delete.
13165 (mi_console_file::mi_console_file): New.
13166 (mi_console_file_delete): Delete.
13167 (mi_console_file_fputs): Delete.
13168 (mi_console_file::write): New.
13169 (mi_console_raw_packet): Delete.
13170 (mi_console_file::flush): New.
13171 (mi_console_file_flush): Delete.
13172 (mi_console_set_raw): Rename to ...
13173 (mi_console_file::set_raw): ... this.
13174 * mi/mi-console.h (class mi_console_file): New class.
13175 (mi_console_file_new, mi_console_set_raw): Delete.
13176 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
13177 (mi_set_logging): Use delete and tee_file. Adjust.
13178 * mi/mi-main.c (output_register): Use string_file.
13179 (mi_cmd_data_evaluate_expression): Use string_file.
13180 (mi_cmd_data_read_memory): Use string_file.
13181 (mi_cmd_execute, print_variable_or_computed): Use string_file.
13182 * mi/mi-out.c (mi_ui_out::main_stream): New.
13183 (mi_ui_out::rewind): Use main_stream and
13184 string_file.
13185 (mi_ui_out::put): Use main_stream and string_file.
13186 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
13187 Allocate a 'string_file' instead.
13188 (mi_out_new): Don't allocate a mem_fileopen stream here.
13189 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
13190 (mi_ui_out::main_stream): Declare method.
13191 * printcmd.c (eval_command): Use string_file.
13192 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
13193 * python/py-arch.c (archpy_disassemble): Use string_file.
13194 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
13195 * python/py-frame.c (frapy_str): Use string_file.
13196 * python/py-framefilter.c (py_print_type, py_print_single_arg):
13197 Use string_file.
13198 * python/py-type.c (typy_str): Use string_file.
13199 * python/py-unwind.c (unwind_infopy_str): Use string_file.
13200 * python/py-value.c (valpy_str): Use string_file.
13201 * record-btrace.c (btrace_insn_history): Use string_file.
13202 * regcache.c (regcache_print): Use stdio_file.
13203 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
13204 * remote.c (escape_buffer): Use string_file.
13205 * rust-lang.c (rust_get_disr_info): Use string_file.
13206 * serial.c (serial_open_ops_1): Use stdio_file.
13207 (do_serial_close): Use delete.
13208 * stack.c (print_frame_arg): Use string_file.
13209 (print_frame_args): Remove local mem_fileopen stream, not used.
13210 (print_frame): Use string_file.
13211 * symmisc.c (maintenance_print_symbols): Use stdio_file.
13212 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
13213 Take a 'string_file *' instead of a 'ui_file *'.
13214 * top.c (new_ui): Use stdio_file and stderr_file.
13215 (free_ui): Use delete.
13216 (execute_command_to_string): Use string_file.
13217 (quit_confirm): Use string_file.
13218 * tracepoint.c (collection_list::append_exp): Use string_file.
13219 * tui/tui-disasm.c (tui_disassemble): Use string_file.
13220 * tui/tui-file.c: Don't include "ui-file.h".
13221 (enum streamtype, struct tui_stream): Delete.
13222 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
13223 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
13224 (tui_file::tui_file): New method.
13225 (tui_file_fputs): Delete.
13226 (tui_file_get_strbuf): Delete.
13227 (tui_file::puts): New method.
13228 (tui_file_adjust_strbuf): Delete.
13229 (tui_file_flush): Delete.
13230 (tui_file::flush): New method.
13231 * tui/tui-file.h: Tweak intro comment.
13232 Include ui-file.h.
13233 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
13234 (tui_file_adjust_strbuf): Delete declarations.
13235 (class tui_file): New class.
13236 * tui/tui-io.c (tui_initialize_io): Use tui_file.
13237 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
13238 (tui_register_format): Use string_stream.
13239 * tui/tui-stack.c (tui_make_status_line): Use string_file.
13240 (tui_get_function_from_frame): Use string_file.
13241 * typeprint.c (type_to_string): Use string_file.
13242 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
13243 (null_stream): New global.
13244 (ui_file_delete): Delete.
13245 (ui_file::ui_file): New.
13246 (null_file_isatty): Delete.
13247 (ui_file::~ui_file): New.
13248 (null_file_rewind): Delete.
13249 (ui_file::printf): New.
13250 (null_file_put): Delete.
13251 (null_file_flush): Delete.
13252 (ui_file::putstr): New.
13253 (null_file_write): Delete.
13254 (ui_file::putstrn): New.
13255 (null_file_read): Delete.
13256 (ui_file::putc): New.
13257 (null_file_fputs): Delete.
13258 (null_file_write_async_safe): Delete.
13259 (ui_file::vprintf): New.
13260 (null_file_delete): Delete.
13261 (null_file::write): New.
13262 (null_file_fseek): Delete.
13263 (null_file::puts): New.
13264 (ui_file_data): Delete.
13265 (null_file::write_async_safe): New.
13266 (gdb_flush, ui_file_isatty): Adjust.
13267 (ui_file_put, ui_file_rewind): Delete.
13268 (ui_file_write): Adjust.
13269 (ui_file_write_for_put): Delete.
13270 (ui_file_write_async_safe, ui_file_read): Adjust.
13271 (ui_file_fseek): Delete.
13272 (fputs_unfiltered): Adjust.
13273 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
13274 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
13275 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
13276 (set_ui_file_data): Delete.
13277 (string_file::~string_file, string_file::write)
13278 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
13279 (do_ui_file_as_string, ui_file_as_string): Delete.
13280 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
13281 (struct mem_file): Delete.
13282 (mem_file_new): Delete.
13283 (stdio_file::stdio_file): New.
13284 (mem_file_delete): Delete.
13285 (stdio_file::stdio_file): New.
13286 (mem_fileopen): Delete.
13287 (stdio_file::~stdio_file): New.
13288 (mem_file_rewind): Delete.
13289 (stdio_file::set_stream): New.
13290 (mem_file_put): Delete.
13291 (stdio_file::open): New.
13292 (mem_file_write): Delete.
13293 (stdio_file_magic, struct stdio_file): Delete.
13294 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
13295 (stdio_file::flush): New.
13296 (stdio_file_read): Rename to ...
13297 (stdio_file::read): ... this. Adjust.
13298 (stdio_file_write): Rename to ...
13299 (stdio_file::write): ... this. Adjust.
13300 (stdio_file_write_async_safe): Rename to ...
13301 (stdio_file::write_async_safe) ... this. Adjust.
13302 (stdio_file_fputs): Rename to ...
13303 (stdio_file::puts) ... this. Adjust.
13304 (stdio_file_isatty): Delete.
13305 (stdio_file_fseek): Delete.
13306 (stdio_file::isatty): New.
13307 (stderr_file_write): Rename to ...
13308 (stderr_file::write) ... this. Adjust.
13309 (stderr_file_fputs): Rename to ...
13310 (stderr_file::puts) ... this. Adjust.
13311 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
13312 (stderr_file::stderr_file): New.
13313 (tee_file_magic): Delete.
13314 (struct tee_file): Delete.
13315 (tee_file::tee_file): New.
13316 (tee_file_new): Delete.
13317 (tee_file::~tee_file): New.
13318 (tee_file_delete): Delete.
13319 (tee_file_flush): Rename to ...
13320 (tee_file::flush): ... this. Adjust.
13321 (tee_file_write): Rename to ...
13322 (tee_file::write): ... this. Adjust.
13323 (tee_file::write_async_safe): New.
13324 (tee_file_fputs): Rename to ...
13325 (tee_file::puts): ... this. Adjust.
13326 (tee_file_isatty): Rename to ...
13327 (tee_file::isatty): ... this. Adjust.
13328 * ui-file.h (struct obstack, struct ui_file): Don't
13329 forward-declare.
13330 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
13331 (ui_file_write_ftype)
13332 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
13333 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
13334 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
13335 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
13336 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
13337 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
13338 (set_ui_file_fseek): Delete.
13339 (ui_file_data, ui_file_delete, ui_file_rewind)
13340 (struct ui_file): New.
13341 (ui_file_up): New.
13342 (class null_file): New.
13343 (null_stream): Declare.
13344 (ui_file_write_for_put, ui_file_put): Delete.
13345 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
13346 Delete.
13347 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
13348 (gdb_fopen, tee_file_new): Delete.
13349 (struct string_file): New.
13350 (struct stdio_file): New.
13351 (stdio_file_up): New.
13352 (struct stderr_file): New.
13353 (class tee_file): New.
13354 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
13355 of a 'ui_file *'. Adjust.
13356 * ui-out.h (class ui_out) <field_stream>: Likewise.
13357 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
13358 (null_stream): Delete.
13359 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
13360 Adjust.
13361 * utils.h (struct ui_file): Delete forward declaration..
13362 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
13363 (error_stream): Take a 'string_file &' instead of a
13364 'ui_file *'.
13365 * varobj.c (varobj_value_get_print_value): Use string_file.
13366 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
13367 * gdbarch.c: Regenerate.
13368
187808b0
PA
133692017-02-02 Pedro Alves <palves@redhat.com>
13370
13371 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
13372 (gdb_pretty_print_insn): ... this. Now a free function. Add back
13373 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
13374 Adjust to call gdb_print_insn instead of
13375 gdb_disassembler::print_insn.
13376 (dump_insns, do_mixed_source_and_assembly_deprecated)
13377 (do_mixed_source_and_assembly, do_assembly_only): Add back a
13378 'gdbarch' parameter. Remove gdb_disassembler parameter.
13379 (gdb_disassembly): Don't allocate a gdb_disassembler here.
13380 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
13381 declaration.
13382 (gdb_pretty_print_insn): Re-add declaration.
13383 * record-btrace.c (btrace_insn_history): Don't allocate a
13384 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
13385
7a8eb317
SM
133862017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
13387
13388 * disasm.h (gdb_disassembly): Remove file_string parameter.
13389 * disasm.c (gdb_disassembly): Likewise.
13390 * cli/cli-cmds.c (print_disassembly): Adapt.
13391 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
13392 * stack.c (do_gdb_disassembly): Likewise.
13393
7346ef59
AA
133942017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
13395
13396 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
13397 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
13398 targets. And if the implicit value is longer than needed, extract
13399 the first bytes instead of the "least significant" ones.
13400
cd4007e4
MM
134012017-02-01 Markus Metzger <markus.t.metzger@intel.com>
13402
13403 * btrace.c (btrace_enable): Do not call btrace_add_pc for
13404 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
13405 (btrace_fetch): Assert can_access_registers_ptid.
13406 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
13407 validate_registers_access.
13408
cf77c34e
MM
134092017-02-01 Markus Metzger <markus.t.metzger@intel.com>
13410
13411 * gdbthread.h (can_access_registers_ptid): New.
13412 * thread.c (can_access_registers_ptid): New.
13413
be85ce7d
PA
134142017-02-01 Pedro Alves <palves@redhat.com>
13415
13416 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
13417
29b0b251
PA
134182017-01-31 Pedro Alves <palves@redhat.com>
13419
13420 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
13421 Fix typos.
13422
289b5b24
PA
134232017-01-31 Pedro Alves <palves@redhat.com>
13424
13425 * stack.c (print_frame_args): Remove local mem_fileopen stream,
13426 not used.
13427
b47413b4
PA
134282017-01-31 Pedro Alves <palves@redhat.com>
13429
13430 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
13431
60adb36c
PA
134322017-01-31 Pedro Alves <palves@redhat.com>
13433
13434 * common/scoped_restore.h
13435 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
13436 change the value's parameter type to T2.
13437 (make_scoped_restore): Likewise.
13438
2735833d
WT
134392017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13440 Richard Henderson <rth@redhat.com>
13441
13442 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
13443 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
13444 GS_BASE for older kernels.
13445 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
13446 GS_BASE for older kernels.
13447 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
13448 and GS_BASE to the offset table.
13449 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
13450 system register group.
13451 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
13452 for older kernels.
13453 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
13454 amd64 ABI.
13455 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
13456 AMD64_GSBASE_REGNUM.
13457 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
13458 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
13459 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
13460 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
13461 i386/64bit-segments.xml in those rules.
13462 * features/i386/64bit-segments.xml: New file.
13463 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
13464 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
13465 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
13466 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
13467 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
13468 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
13469 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
13470 * features/i386/amd64-avx-linux.c: Regenerated.
13471 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
13472 * features/i386/amd64-avx-mpx.c: Regenerated.
13473 * features/i386/amd64-avx512-linux.c: Regenerated.
13474 * features/i386/amd64-linux.c: Regenerated.
13475 * features/i386/amd64-mpx-linux.c: Regenerated.
13476 * features/i386/i386-avx-mpx-linux.c: Regenerated.
13477 * features/i386/i386-avx-mpx.c: Regenerated.
13478 * features/i386/x32-avx-linux.c: Regenerated.
13479 * features/i386/x32-avx512-linux.c: Regenerated.
13480 * regformats/i386/amd64-avx-linux.dat: Regenerated.
13481 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
13482 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
13483 * regformats/i386/amd64-linux.dat: Regenerated.
13484 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
13485 * regformats/i386/x32-avx-linux.dat: Regenerated.
13486 * regformats/i386/x32-avx512-linux.dat: Regenerated.
13487 * regformats/i386/x32-linux.dat: Regenerated.
13488
8884e97e
WT
134892017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13490
13491 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
13492 Set to AMD64_NUM_REGS.
13493
7005d26a
WT
134942017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13495
13496 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
13497 that checks validity of a register number.
13498
4bd2e1b2
KC
134992017-01-27 Kees Cook <keescook@google.com>
13500
13501 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
13502 fetch_fpregs if target has fpa registers.
13503 (arm_linux_store_inferior_registers): Call store_fpregs if target
13504 has fpa registers.
13505
7cf1de6c
AA
135062017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
13507
13508 * cris-tdep.c (cris_gdbarch_init): Remove check for
13509 info.byte_order and force it to BFD_ENDIAN_LITTLE.
13510
874a1c8c
AT
135112017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
13512
13513 * corelow.c (get_core_register_section): Check for regset
13514 existence before checking for REGSET_VARIABLE_SIZE.
13515
d8b49cf0
YQ
135162017-01-26 Yao Qi <yao.qi@linaro.org>
13517 Pedro Alves <palves@redhat.com>
13518
13519 PR gdb/20939
13520 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
13521 call memory_error, save memaddr instead.
13522 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
13523 negative, cal memory_error.
13524 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
13525
658ca58c
YQ
135262017-01-26 Yao Qi <yao.qi@linaro.org>
13527
13528 * disasm-selftests.c (memory_error_test): New function.
13529 (_initialize_disasm_selftests): Register memory_error_test.
13530
79843d45
YQ
135312017-01-26 Yao Qi <yao.qi@linaro.org>
13532
13533 * Makefile.in (SFILES): Add disasm-selftests.c and
13534 selftest-arch.c.
13535 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
13536 * disasm-selftests.c: New file.
13537 * selftest-arch.c: New file.
13538 * selftest-arch.h: New file.
13539
8cafda32
YQ
135402017-01-26 Yao Qi <yao.qi@linaro.org>
13541
13542 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
13543 to bfd_arch_mep. Don't return 0 if section is not
13544 found. Call print_insn_mep.
13545
e47ad6c0
YQ
135462017-01-26 Pedro Alves <palves@redhat.com>
13547 Yao Qi <yao.qi@linaro.org>
13548
13549 * arm-tdep.c: Include "disasm.h".
13550 (gdb_print_insn_arm): Update code to get gdbarch.
13551 * disasm.c (dis_asm_read_memory): Change it to
13552 gdb_disassembler::dis_asm_read_memory.
13553 (dis_asm_memory_error): Likewise.
13554 (dis_asm_print_address): Likewise.
13555 (gdb_pretty_print_insn): Change it to
13556 gdb_disassembler::pretty_print_insn.
13557 (dump_insns): Add one argument gdb_disassemlber. All
13558 callers updated.
13559 (do_mixed_source_and_assembly_deprecated): Likewise.
13560 (do_mixed_source_and_assembly): Likewise.
13561 (do_assembly_only): Likewise.
13562 (gdb_disassembler::gdb_disassembler): New.
13563 (gdb_disassembler::print_insn): New.
13564 * disasm.h (class gdb_disassembler): New.
13565 (gdb_pretty_print_insn): Remove declaration.
13566 (gdb_disassemble_info): Likewise.
13567 * guile/scm-disasm.c (class gdbscm_disassembler): New.
13568 (gdbscm_disasm_read_memory_worker): Update.
13569 (gdbscm_disasm_read_memory): Update.
13570 (gdbscm_disasm_memory_error): Remove.
13571 (gdbscm_disasm_print_address): Remove.
13572 (gdbscm_disassembler::gdbscm_disassembler): New.
13573 (gdbscm_print_insn_from_port): Update.
13574 * mips-tdep.c: Include disasm.h.
13575 (gdb_print_insn_mips): Update code to get gdbarch.
13576 * record-btrace.c (btrace_insn_history): Update.
13577 * spu-tdep.c: Include disasm.h.
13578 (struct spu_dis_asm_data): Remove.
13579 (struct spu_dis_asm_info): New.
13580 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
13581 SPU id.
13582 (gdb_print_insn_spu): Cast disassemble_info to
13583 spu_dis_asm_info.
13584
80d75874
YQ
135852017-01-26 Yao Qi <yao.qi@linaro.org>
13586
13587 * disasm.c (do_ui_file_delete): Delete.
13588 (gdb_insn_length): Move code creating stream to ...
13589 * utils.c (null_stream): ... here. New function.
13590 * utils.h (null_stream): Declare.
13591
60685cd0
SM
135922017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13593
13594 * python/py-inferior.c (find_thread_object): Return directly
13595 from the loop. Remove "found" variable.
13596
eb1cdb62
JB
135972017-01-21 Joel Brobecker <brobecker@adacore.com>
13598
13599 GDB 7.12.1 released.
13600
b1ce6568
SM
136012017-01-20 Simon Marchi <simon.marchi@ericsson.com>
13602
13603 * python/py-function.c (fnpy_call): Reorder declarations to have
13604 the gdbpy_enter object declared first.
13605 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
13606
6f8b0407
SM
136072017-01-20 Simon Marchi <simon.marchi@ericsson.com>
13608
fec93fb1 13609 PR python/21068
6f8b0407
SM
13610 * python/python-internal.h (PyMem_RawMalloc): Define for
13611 Python < 3.4.
13612 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
13613 PyMem_RawMalloc instead of PyMem_Malloc.
13614
78cbbba8
LM
136152017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
13616 Luis Machado <lgustavo@codesourcery.com>
13617
13618 * NEWS (New commands): Mention flash-erase.
13619 (New MI commands): Mention target-flash-erase.
13620 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
13621 command.
13622 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
13623 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
13624 * target.c (flash_erase_command): New function.
13625 (initialize_targets): Add new flash-erase command.
13626 * target.h (flash_erase_command): New declaration.
13627
2132fe85
JB
136282017-01-20 Joel Brobecker <brobecker@adacore.com>
13629
13630 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
13631 HAVE_SYS_PROCFS_H is defined.
13632
d1dff226
AH
136332017-01-18 Alan Hayward <alan.hayward@arm.com>
13634
13635 * remote.c (struct cached_reg): Change data into a pointer.
13636 * (stop_reply_dtr): Free data pointers before deleting vector.
13637 (process_stop_reply): Likewise.
13638 (remote_parse_stop_reply): Allocate space for data
13639
9890e433
AH
136402017-01-18 Alan Hayward <alan.hayward@arm.com>
13641
13642 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
13643 MAX_REGISTER_SIZE.
13644 (amd64_pseudo_register_read_value): Likewise.
13645 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
13646 (store_register_using_P): Likewise.
13647 * regcache.c (regcache_xfer_part): Likewise.
13648
7a36499a
IR
136492017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
13650
13651 Split real and pseudo registers.
13652 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
13653 (sparc32_pseudo_regnum): New enum.
13654 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
13655 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
13656 (SPARC32_CP0_REGISTERS): New macro.
13657 (sparc32_pseudo_register_name): New function.
13658 (sparc32_register_name): Use sparc32_pseudo_register_name.
13659 (sparc32_pseudo_register_type): New function.
13660 (sparc32_register_type): Use sparc32_pseudo_register_type.
13661 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
13662 pseudo register numbers.
13663 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
13664 (SPARC64_CP0_REGISTERS): New macro.
13665 (sparc64_pseudo_register_name): New function.
13666 (sparc64_register_name): Use sparc64_pseudo_register_name.
13667 (sparc64_pseudo_register_type): New function.
13668 (sparc64_register_type): Use sparc64_pseudo_register_type.
13669 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
13670 pseudo register numbers.
13671 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
13672 sparc64_store_arguments): Handle pseudo register numbers.
13673
6f8976bf
YQ
136742017-01-13 Yao Qi <yao.qi@linaro.org>
13675
13676 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
13677 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
13678 output.
13679 (getpkt_or_notif_sane_1): Likewise.
13680
e4241ace
YQ
136812017-01-13 Yao Qi <yao.qi@linaro.org>
13682
13683 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
13684 of CC. Pass "-x c++-header" instead of "-x c".
13685
3015c064
SM
136862017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13687
13688 * remote.c (remote_can_async_p): Update comment.
13689
fde1b17d
SM
136902017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13691
13692 * linux-nat.c (linux_nat_can_async_p): Update comment.
13693
ca1ca08b
SM
136942017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13695
13696 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
13697
4ad2da73
SM
136982017-01-11 Simon Marchi <simon.marchi@ericsson.com>
13699
13700 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
13701
c8b23b3f
TT
137022017-01-10 Tom Tromey <tom@tromey.com>
13703
13704 * python/py-type.c (typy_legacy_template_argument): Update.
13705 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
13706 ~demangle_parse_info): Declare new members.
13707 (cp_demangled_name_to_comp): Return unique_ptr.
13708 (cp_demangled_name_parse_free)
13709 (make_cleanup_cp_demangled_name_parse_free)
13710 (cp_new_demangle_parse_info): Remove.
13711 * cp-support.c (do_demangled_name_parse_free_cleanup)
13712 (make_cleanup_cp_demangled_name_parse_free): Remove.
13713 (inspect_type, cp_canonicalize_string_full)
13714 (cp_canonicalize_string): Update.
13715 (mangled_name_to_comp): Change return type.
13716 (cp_class_name_from_physname, method_name_from_physname)
13717 (cp_func_name, cp_remove_params): Update.
13718 * cp-name-parser.y (demangle_parse_info): New constructor, from
13719 cp_new_demangle_parse_info.
13720 (~demangle_parse_info): New destructor, from
13721 cp_demangled_name_parse_free.
13722 (cp_merge_demangle_parse_infos): Update.
13723 (cp_demangled_name_to_comp): Change return type.
13724
1ac32117
TT
137252017-01-10 Tom Tromey <tom@tromey.com>
13726
13727 * top.c (prevent_dont_repeat): Change return type.
13728 * python/python.c (execute_gdb_command): Use std::string.
13729 Update.
13730 * guile/guile.c (gdbscm_execute_gdb_command): Update.
13731 * command.h (prevent_dont_repeat): Change return type.
13732 * breakpoint.c (bpstat_do_actions_1): Update.
13733
0cf08227
TT
137342017-01-10 Tom Tromey <tom@tromey.com>
13735
13736 * value.h (scoped_value_mark::~scoped_value_mark): Call
13737 free_to_mark.
13738 (scoped_value_mark::free_to_mark): New method.
13739 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
13740 scoped_value_mark.
13741
eb115069
TT
137422017-01-10 Tom Tromey <tom@tromey.com>
13743
13744 * python/py-value.c (valpy_dereference, valpy_referenced_value)
13745 (valpy_reference_value, valpy_const_value, valpy_get_address)
13746 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
13747 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
13748 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
13749 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
13750 scoped_value_mark.
13751 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
13752 * value.h (scoped_value_mark): New class.
13753
906768f9
TT
137542017-01-10 Tom Tromey <tom@tromey.com>
13755
13756 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
13757 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
13758 * psymtab.c (discard_psymtabs_upto): Remove.
13759 (make_cleanup_discard_psymtabs): Remove.
13760 (struct psymtab_state): Remove.
13761
bef155c3
TT
137622017-01-10 Tom Tromey <tom@tromey.com>
13763
13764 * record-full.c (record_full_save_cleanups): Remove.
13765 (record_full_save): Use gdb::unlinker.
13766 * gcore.c (do_bfd_delete_cleanup): Remove.
13767 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
13768 cleanups.
13769 * dwarf2read.c (unlink_if_set): Remove.
13770 (write_psymtabs_to_index): Use gdb::unlinker.
13771 * common/gdb_unlinker.h: New file.
13772
192b62ce
TT
137732017-01-10 Tom Tromey <tom@tromey.com>
13774
13775 * windows-tdep.c (windows_xfer_shared_library): Update.
13776 * windows-nat.c (windows_make_so): Update.
13777 * utils.h (make_cleanup_bfd_unref): Remove.
13778 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
13779 * symfile.h (symfile_bfd_open)
13780 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
13781 * symfile.c (read_symbols, symbol_file_add)
13782 (separate_debug_file_exists): Update.
13783 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
13784 (generic_load, reread_symbols): Update.
13785 * symfile-mem.c (symbol_file_add_from_memory): Update.
13786 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
13787 (spu_symbol_file_add_from_memory): Update.
13788 * solist.h (struct target_so_ops) <bfd_open>: Return
13789 gdb_bfd_ref_ptr.
13790 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
13791 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
13792 gdb_bfd_ref_ptr.
13793 (solib_map_sections, reload_shared_libraries_1): Update.
13794 * solib-svr4.c (enable_break): Update.
13795 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
13796 * solib-frv.c (enable_break2): Update.
13797 * solib-dsbt.c (enable_break): Update.
13798 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
13799 gdb_bfd_ref_ptr.
13800 (darwin_solib_get_all_image_info_addr_at_init): Update.
13801 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
13802 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
13803 * record-full.c (record_full_save): Update.
13804 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
13805 * procfs.c (insert_dbx_link_bpt_in_file): Update.
13806 * minidebug.c (find_separate_debug_file_in_section): Return
13807 gdb_bfd_ref_ptr.
13808 * machoread.c (macho_add_oso_symfile): Change abfd to
13809 gdb_bfd_ref_ptr.
13810 (macho_symfile_read_all_oso): Update.
13811 (macho_check_dsym): Return gdb_bfd_ref_ptr.
13812 (macho_symfile_read): Update.
13813 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
13814 (jit_bfd_try_read_symtab): Update.
13815 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
13816 (gdb_bfd_openw, gdb_bfd_openr_iovec)
13817 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
13818 gdb_bfd_ref_ptr.
13819 (gdb_bfd_ref_policy): New struct.
13820 (gdb_bfd_ref_ptr): New typedef.
13821 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
13822 (gdb_bfd_openw, gdb_bfd_openr_iovec)
13823 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
13824 gdb_bfd_ref_ptr.
13825 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
13826 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
13827 (gcore_command): Update.
13828 * exec.c (exec_file_attach): Update.
13829 * elfread.c (elf_symfile_read): Update.
13830 * dwarf2read.c (dwarf2_get_dwz_file): Update.
13831 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
13832 (open_and_init_dwo_file): Update.
13833 (open_dwp_file): Return gdb_bfd_ref_ptr.
13834 (open_and_init_dwp_file): Update.
13835 * corelow.c (core_open): Update.
13836 * compile/compile-object-load.c (compile_object_load): Update.
13837 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
13838 * coffread.c (coff_symfile_read): Update.
13839 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
13840 gdb_bfd_ref_ptr. Rename.
13841 (dump_bfd_file, restore_command): Update.
13842 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
13843 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
13844 (find_separate_debug_file_by_buildid): Update.
13845
50315b21
TT
138462017-01-10 Tom Tromey <tom@tromey.com>
13847
13848 * common/gdb_ref_ptr.h: New file.
13849 * python/py-ref.h (struct gdbpy_ref_policy): New.
13850 (gdbpy_ref): Now a typedef.
13851
fc4007c9
TT
138522017-01-10 Tom Tromey <tom@tromey.com>
13853
13854 * utils.h (make_cleanup_htab_delete): Don't declare.
13855 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
13856 Remove.
13857 * linespec.c (decode_compound_collector): Add constructor,
13858 destructor.
13859 (lookup_prefix_sym): Remove cleanup.
13860 (symtab_collector): Add constructor, destructor.
13861 (collect_symtabs_from_filename): Remove cleanup.
13862 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
13863 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
13864 Use htab_up.
13865 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
13866 * dwarf2read.c (dw2_expand_symtabs_matching)
13867 (dw2_map_symbol_filenames, dwarf_decode_macros)
13868 (write_psymtabs_to_index): Use htab_up.
13869 * dwarf2loc.c (func_verify_no_selftailcall)
13870 (call_site_find_chain_1, func_verify_no_selftailcall)
13871 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
13872 std::vector, gdb::unique_xmalloc_ptr.
13873 (call_sitep): Remove typedef.
13874 (dwarf2_locexpr_baton_eval): Remove unused variable.
13875
8dbcee67
TT
138762017-01-10 Tom Tromey <tom@tromey.com>
13877
13878 * python/python-internal.h (make_cleanup_py_decref)
13879 (make_cleanup_py_xdecref): Don't declare.
13880 * python/py-utils.c (py_decref, make_cleanup_py_decref)
13881 (py_xdecref, make_cleanup_py_xdecref): Remove.
13882
13df46cc
TT
138832017-01-10 Tom Tromey <tom@tromey.com>
13884
13885 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
13886 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
13887
06fc9bf7
TT
138882017-01-10 Tom Tromey <tom@tromey.com>
13889
13890 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
13891
830a4934
TT
138922017-01-10 Tom Tromey <tom@tromey.com>
13893
13894 * python/py-utils.c (unicode_to_encoded_string)
13895 (python_string_to_target_string)
13896 (python_string_to_target_python_string)
13897 (python_string_to_host_string, gdbpy_obj_to_string)
13898 (get_addr_from_python): Use gdbpy_ref.
13899
4586d543
TT
139002017-01-10 Tom Tromey <tom@tromey.com>
13901
13902 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
13903 gdbpy_ref.
13904
59876f8f
TT
139052017-01-10 Tom Tromey <tom@tromey.com>
13906
13907 * python/python.c (eval_python_command, gdbpy_decode_line)
13908 (gdbpy_run_events, gdbpy_start_type_printers)
13909 (gdbpy_apply_type_printers): Use gdbpy_ref.
13910
97d83487
TT
139112017-01-10 Tom Tromey <tom@tromey.com>
13912
13913 * python/py-param.c (get_doc_string, compute_enum_values): Use
13914 gdbpy_ref.
13915
9205649a
TT
139162017-01-10 Tom Tromey <tom@tromey.com>
13917
13918 * python/py-inferior.c (find_thread_object, build_inferior_list):
13919 Use gdbpy_ref.
13920
74c49d45
TT
139212017-01-10 Tom Tromey <tom@tromey.com>
13922
13923 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
13924
16361ffb
TT
139252017-01-10 Tom Tromey <tom@tromey.com>
13926
13927 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
13928 gdbpy_ref.
13929
905f2cca
TT
139302017-01-10 Tom Tromey <tom@tromey.com>
13931
13932 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
13933 extra incref.
13934 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
13935 Use gdbpy_ref.
13936
64081434
TT
139372017-01-10 Tom Tromey <tom@tromey.com>
13938
13939 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
13940 gdbpy_ref.
13941
59e9e831
TT
139422017-01-10 Tom Tromey <tom@tromey.com>
13943
13944 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
13945 decref results of PyArg_ParseTupleAndKeywords.
13946
9de10f6d
TT
139472017-01-10 Tom Tromey <tom@tromey.com>
13948
13949 * python/python.c (python_run_simple_file): Use
13950 unique_xmalloc_ptr, gdbpy_ref.
13951
2bd5759d
TT
139522017-01-10 Tom Tromey <tom@tromey.com>
13953
13954 * python/py-prettyprint.c (print_stack_unless_memory_error)
13955 (print_string_repr, print_children): Use gdbpy_ref.
13956 (dummy_python_frame): New class.
13957 (dummy_python_frame::dummy_python_frame): Rename from
13958 push_dummy_python_frame.
13959 (py_restore_tstate): Remove.
13960
3b4e0e01
TT
139612017-01-10 Tom Tromey <tom@tromey.com>
13962
13963 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
13964
17a22718
TT
139652017-01-10 Tom Tromey <tom@tromey.com>
13966
13967 * python/python.c (ensure_python_env, restore_python_env):
13968 Remove.
13969 * python/python-internal.h (ensure_python_env): Don't declare.
13970 * varobj.h (varobj_ensure_python_env): Don't declare.
13971 * varobj.c (varobj_ensure_python_env): Remove.
13972
68cdc557
TT
139732017-01-10 Tom Tromey <tom@tromey.com>
13974
13975 * varobj.c (varobj_value_get_print_value): Use
13976 gdbpy_enter_varobj.
13977
1eba6383
TT
139782017-01-10 Tom Tromey <tom@tromey.com>
13979
13980 * python/py-prettyprint.c (print_string_repr, print_children):
13981 Update.
13982 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
13983 of "encoding".
13984 * varobj.c (varobj_value_get_print_value): Update.
13985 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
13986
bde7b3e3
TT
139872017-01-10 Tom Tromey <tom@tromey.com>
13988
13989 * varobj.c (varobj_get_display_hint)
13990 (dynamic_varobj_has_child_method, install_new_value_visualizer)
13991 (varobj_set_visualizer, free_variable): Use
13992 gdbpy_enter_varobj.
13993
a7785f8c
TT
139942017-01-10 Tom Tromey <tom@tromey.com>
13995
13996 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
13997 (do_finish_initialization): New function. Use gdbpy_ref.
13998 (gdbpy_finish_initialization): Use gdbpy_enter. Call
13999 do_finish_initialization.
14000
2865bfce
TT
140012017-01-10 Tom Tromey <tom@tromey.com>
14002
14003 * python/py-param.c (get_set_value, get_show_value): Use
14004 gdbpy_enter, gdbpy_ref.
14005
0e9dcc75
TT
140062017-01-10 Tom Tromey <tom@tromey.com>
14007
14008 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
14009
12a5cedd
TT
140102017-01-10 Tom Tromey <tom@tromey.com>
14011
14012 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
14013
788f2586
TT
140142017-01-10 Tom Tromey <tom@tromey.com>
14015
14016 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
14017 Use gdbpy_enter_varobj.
14018
6cd67bea
TT
140192017-01-10 Tom Tromey <tom@tromey.com>
14020
14021 * varobj.c (gdbpy_enter_varobj): New constructor.
14022 * python/python-internal.h (gdbpy_enter_varobj): New class.
14023 * python/py-varobj.c (py_varobj_get_iterator): Use
14024 gdbpy_enter_varobj.
14025
14b122bf
TT
140262017-01-10 Tom Tromey <tom@tromey.com>
14027
14028 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
14029 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
14030 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
14031 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
14032 unique_xmalloc_ptr.
14033 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
14034
bf1ca3b9
TT
140352017-01-10 Tom Tromey <tom@tromey.com>
14036
14037 * python/py-xmethods.c (invoke_match_method): Use
14038 gdbpy_ref.
14039
572a5524
TT
140402017-01-10 Tom Tromey <tom@tromey.com>
14041
14042 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
14043 gdbpy_enter, gdbpy_ref.
14044
396a78b6
TT
140452017-01-10 Tom Tromey <tom@tromey.com>
14046
14047 * python/python.c (python_interactive_command): Use gdbpy_enter.
14048
a88b13c7
TT
140492017-01-10 Tom Tromey <tom@tromey.com>
14050
14051 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
14052 gdbpy_ref.
14053
e9f0c363
TT
140542017-01-10 Tom Tromey <tom@tromey.com>
14055
14056 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
14057 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
14058
6349f452
TT
140592017-01-10 Tom Tromey <tom@tromey.com>
14060
14061 * utils.h (htab_deleter): New struct.
14062 (htab_up): New typedef.
14063 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
14064 gdbpy_enter, gdbpy_ref, htab_up.
14065
c0171de6
TT
140662017-01-10 Tom Tromey <tom@tromey.com>
14067
14068 * python/py-unwind.c (pending_frame_invalidate): Remove.
14069 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
14070
f18e226f
TT
140712017-01-10 Tom Tromey <tom@tromey.com>
14072
14073 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
14074 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
14075
c57af3f1
TT
140762017-01-10 Tom Tromey <tom@tromey.com>
14077
14078 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
14079
60e600ec
TT
140802017-01-10 Tom Tromey <tom@tromey.com>
14081
14082 * python/python.c (gdbpy_eval_from_control_command)
14083 (gdbpy_source_script, gdbpy_run_events)
14084 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
14085 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
14086 gdbpy_enter.
14087
bf7da5b0
TT
140882017-01-10 Tom Tromey <tom@tromey.com>
14089
14090 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
14091
2d38bced
TT
140922017-01-10 Tom Tromey <tom@tromey.com>
14093
14094 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
14095
07bc7329
TT
140962017-01-10 Tom Tromey <tom@tromey.com>
14097
14098 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
14099 (python_on_inferior_call_pre, python_on_inferior_call_post)
14100 (python_on_memory_change, python_on_register_change)
14101 (python_inferior_exit, python_new_objfile, add_thread_object)
14102 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
14103
6e7c365e
TT
141042017-01-10 Tom Tromey <tom@tromey.com>
14105
14106 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
14107 (bpfinishpy_handle_exit): Use gdbpy_enter.
14108
6ba0cd40
TT
141092017-01-10 Tom Tromey <tom@tromey.com>
14110
14111 * python/py-cmd.c (cmdpy_destroyer)
14112 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
14113 gdbpy_enter.
14114
de2dc875
TT
141152017-01-10 Tom Tromey <tom@tromey.com>
14116
14117 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
14118 gdbpy_enter.
14119 (gdbpy_breakpoint_has_cond): Likewise.
14120
4ecee2c4
TT
141212017-01-10 Tom Tromey <tom@tromey.com>
14122
14123 * python/python.c (gdbpy_enter): New constructor.
14124 (~gdbpy_enter): New destructor.
14125 (restore_python_env, ensure_python_env): Rewrite.
14126 * python/python-internal.h (gdbpy_enter): New class.
14127
37fce74f
TT
141282017-01-10 Tom Tromey <tom@tromey.com>
14129
14130 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
14131
53a0cca3
TT
141322017-01-10 Tom Tromey <tom@tromey.com>
14133
14134 * python/py-value.c (value_has_field, get_field_flag)
14135 (get_field_type, valpy_getitem, convert_value_from_python): Use
14136 gdbpy_ref.
14137
ff3724f5
TT
141382017-01-10 Tom Tromey <tom@tromey.com>
14139
14140 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
14141 gdbpy_ref.
14142
0700aea5
TT
141432017-01-10 Tom Tromey <tom@tromey.com>
14144
14145 * python/py-prettyprint.c (search_pp_list)
14146 (find_pretty_printer_from_objfiles)
14147 (find_pretty_printer_from_progspace)
14148 (find_pretty_printer_from_gdb, find_pretty_printer)
14149 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
14150 gdbpy_ref.
14151
1bb44c9f
TT
141522017-01-10 Tom Tromey <tom@tromey.com>
14153
14154 * python/py-param.c (call_doc_function): Use gdbpy_ref.
14155
87ce03fd
TT
141562017-01-10 Tom Tromey <tom@tromey.com>
14157
14158 * python/py-linetable.c (build_line_table_tuple_from_pcs)
14159 (ltpy_get_all_source_lines): Use gdbpy_ref.
14160
ee0a3fb8
TT
141612017-01-10 Tom Tromey <tom@tromey.com>
14162
14163 * python/py-framefilter.c (extract_sym, extract_value)
14164 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
14165 gdbpy_ref.
14166
bf2a52fa
TT
141672017-01-10 Tom Tromey <tom@tromey.com>
14168
14169 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
14170
f59fe7f8
TT
141712017-01-10 Tom Tromey <tom@tromey.com>
14172
14173 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
14174
80bd970a
TT
141752017-01-10 Tom Tromey <tom@tromey.com>
14176
14177 * python/py-function.c (convert_values_to_python, fnpy_init): Use
14178 gdbpy_ref.
14179
d1b3de2e
TT
141802017-01-10 Tom Tromey <tom@tromey.com>
14181
14182 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
14183
3bb43384
TT
141842017-01-10 Tom Tromey <tom@tromey.com>
14185
14186 * python/py-type.c (convert_field, make_fielditem, typy_fields)
14187 (typy_range): Use gdbpy_ref.
14188
abf5651e
TT
141892017-01-10 Tom Tromey <tom@tromey.com>
14190
14191 * python/py-threadevent.c (create_thread_event_object): Use
14192 gdbpy_ref.
14193 * python/py-stopevent.c (create_stop_event_object): Simplify.
14194 (emit_stop_event): Use gdbpy_ref.
14195 * python/py-signalevent.c (create_signal_event_object): Use
14196 gdbpy_ref.
14197 * python/py-newobjfileevent.c (create_new_objfile_event_object)
14198 (emit_new_objfile_event, create_clear_objfiles_event_object)
14199 (emit_clear_objfiles_event): Use gdbpy_ref.
14200 * python/py-infevents.c (create_inferior_call_event_object)
14201 (create_register_changed_event_object)
14202 (create_memory_changed_event_object, emit_inferior_call_event)
14203 (emit_memory_changed_event, emit_register_changed_event): Use
14204 gdbpy_ref.
14205 * python/py-exitedevent.c (create_exited_event_object)
14206 (emit_exited_event): Use gdbpy_ref.
14207 * python/py-event.h (evpy_emit_event): Remove
14208 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
14209 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
14210 * python/py-continueevent.c (emit_continue_event): Use
14211 gdbpy_ref.
14212 * python/py-breakpoint.c (gdbpy_breakpoint_created)
14213 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
14214 gdbpy_ref.
14215 * python/py-bpevent.c (create_breakpoint_event_object): Use
14216 gdbpy_ref.
14217
a68ff33e
TT
142182017-01-10 Tom Tromey <tom@tromey.com>
14219
14220 * python/py-ref.h: New file.
14221
7becfd03
SM
142222017-01-10 Simon Marchi <simon.marchi@ericsson.com>
14223
14224 * cli-out.c (cli_ui_out::do_redirect): Change return type to
14225 void.
14226 * cli-out.h (cli_ui_out::do_redirect): Likewise.
14227 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
14228 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
14229 * ui-out.c (ui_out::redirect): Likewise.
14230 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
14231 * cli/cli-logging.c (set_logging_redirect): Update call site of
14232 ui_out::redirect.
14233 (handle_redirections): Likewise.
14234 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
14235 * top.c (execute_command_to_string): Likewise.
14236 * utils.c (do_ui_out_redirect_pop): Likewise.
14237
df294654
SM
142382017-01-10 Simon Marchi <simon.marchi@ericsson.com>
14239
14240 * stack.c (_initialize_stack): Update "frame" command help message.
14241
f5e6296e
IB
142422017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
14243
14244 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
14245
0e2d6fa6
YQ
142462017-01-06 Yao Qi <yao.qi@linaro.org>
14247
14248 * x86-linux-nat.h: Include gdb_proc_service.h.
14249
44d6d3f9
YQ
142502017-01-06 Yao Qi <yao.qi@linaro.org>
14251
14252 * ser-base.h: Include serial.h.
14253
656731fe
YQ
142542017-01-06 Yao Qi <yao.qi@linaro.org>
14255
14256 * ppc-linux-tdep.h: Include ppc-tdep.h.
14257
1ca8f924
YQ
142582017-01-06 Yao Qi <yao.qi@linaro.org>
14259
14260 * nat/amd64-linux-siginfo.h: Include signal.h.
14261
bc3008c4
YQ
142622017-01-06 Yao Qi <yao.qi@linaro.org>
14263
14264 * nat/aarch64-linux-hw-point.h: Include break-common.h.
14265
66c80d03
YQ
142662017-01-06 Yao Qi <yao.qi@linaro.org>
14267
14268 * mi/mi-parse.h: Include mi-cmds.h.
14269
051d2dda
YQ
142702017-01-06 Yao Qi <yao.qi@linaro.org>
14271
14272 * inf-loop.c: Don't include "target.h".
14273 * inf-loop.h: Include it here.
14274
8018d34f
YQ
142752017-01-06 Yao Qi <yao.qi@linaro.org>
14276
14277 * dfp.h: Include "dboulest.h" and "expression.h".
14278
c0b8369c
YQ
142792017-01-06 Yao Qi <yao.qi@linaro.org>
14280
14281 * ax-gdb.h: Include "ax.h".
14282
ad5cba2a
YQ
142832017-01-06 Yao Qi <yao.qi@linaro.org>
14284
14285 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
14286 with nat/gdb_ptrace.h.
14287
1c33cd7f
YQ
142882017-01-05 Yao Qi <yao.qi@linaro.org>
14289
14290 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
14291 new line.
14292 (mips64_fbsd_sigframe_init): Likewise.
14293
c988ac1d
JB
142942017-01-04 John Baldwin <jhb@FreeBSD.org>
14295
14296 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
14297 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
14298
b268007c
JB
142992017-01-04 John Baldwin <jhb@FreeBSD.org>
14300
14301 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
14302 * NEWS: Mention new FreeBSD/mips native configuration.
14303 * config/mips/fbsd.mh: New file.
14304 * configure.host: Add mips*-*-freebsd*.
14305 * mips-fbsd-nat.c: New file.
14306
387360da
JB
143072017-01-04 John Baldwin <jhb@FreeBSD.org>
14308
14309 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
14310 (ALLDEPFILES): Add mips-fbsd-tdep.c.
14311 * NEWS: Mention new FreeBSD/mips target.
14312 * configure.tgt: Add mips*-*-freebsd*.
14313 * mips-fbsd-tdep.c: New file.
14314 * mips-fbsd-tdep.h: New file.
14315
2aaaf250
YQ
143162017-01-04 Yao Qi <yao.qi@linaro.org>
14317
14318 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
14319 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
14320
61baf725
JB
143212017-01-01 Joel Brobecker <brobecker@adacore.com>
14322
6dbb839a 14323 Update copyright year range in all GDB files.
61baf725 14324
c113e7ff 143252017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 14326
c113e7ff 14327 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 14328
c113e7ff 14329For older changes see ChangeLog-2016.
c906108c
SS
14330\f
14331Local Variables:
14332mode: change-log
14333left-margin: 8
14334fill-column: 74
14335version-control: never
57da7796 14336coding: utf-8
c906108c 14337End:
This page took 3.505357 seconds and 4 git commands to generate.