Replace start_rbreak_breakpoints and end_rbreak_breakpoints
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c80049d3
TT
12017-11-04 Tom Tromey <tom@tromey.com>
2
3 * breakpoint.c
4 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
5 from start_rbreak_breakpoints.
6 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
7 * breakpoint.h (class scoped_rbreak_breakpoints): New.
8 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
9 * symtab.c (do_end_rbreak_breakpoints): Remove.
10 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
11
167b0be1
TT
122017-11-04 Tom Tromey <tom@tromey.com>
13
14 * cp-namespace.c (reset_directive_searched): Remove.
15 (cp_lookup_symbol_via_imports): Use scoped_restore.
16 * cp-support.c (reset_directive_searched): Remove.
17 (make_symbol_overload_list_using): Use scoped_restore.
18 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
19 (reset_directive_searched): Remove.
20
5eae7aea
TT
212017-11-04 Tom Tromey <tom@tromey.com>
22
23 * symfile.c (find_separate_debug_file_by_debuglink): Use
24 unique_xmalloc_ptr.
25
c6bcad5f
TT
262017-11-04 Tom Tromey <tom@tromey.com>
27
28 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
29 type of "info".
30 (compute_stack_depth): Likewise.
31 (do_compile_dwarf_expr_to_c): Use std::vector.
32
20dcd8ca
TT
332017-11-04 Tom Tromey <tom@tromey.com>
34
35 * compile/compile-object-load.c (link_callbacks_einfo): Use
36 std::string.
37
33c7c59d
TT
382017-11-04 Tom Tromey <tom@tromey.com>
39
40 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
41 Use scoped_free_pendings.
42 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
43 scoped_free_pendings.
44 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
45 (xcoff_initial_scan): Likewise.
46 * buildsym.c (reset_symtab_globals): Update comment.
47 (scoped_free_pendings): Rename from really_free_pendings.
48 (prepare_for_building): Update comment.
49 (buildsym_init): Likewise.
50 * buildsym.h (class scoped_free_pendings): New class.
51 (really_free_pendings): Don't declare.
52
67fa57cf
UW
532017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
54
55 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
56 output when converting a zero value to a special byteorder format.
57
f26ae15b
YQ
582017-11-02 Yao Qi <yao.qi@linaro.org>
59
60 * frame.c (do_frame_register_read): Remove aspace.
61 * jit.c (jit_frame_sniffer): Likwise.
62 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
63 * regcache.c (regcache::regcache): Pass nullptr.
64 (regcache_print): Caller updated.
65 * regcache.h (regcache::regcache): Remove one constructor
66 parameter aspace.
67
6c6e9412
YQ
682017-11-02 Yao Qi <yao.qi@linaro.org>
69
70 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
71
8b86c959
YQ
722017-11-02 Yao Qi <yao.qi@linaro.org>
73
74 * breakpoint.c (insert_single_step_breakpoints): Update.
75 * frame.c (struct frame_info) <aspace>: Add const.
76 (frame_save_as_regcache): Add const.
77 (get_frame_address_space): Return const address_space *.
78 * frame.h (get_frame_address_space): Update declaration.
79 * infrun.c (struct step_over_info) <aspace>: Add const.
80 (set_step_over_info): Make aspace const.
81 (displaced_step_prepare_throw): Change variable const.
82 (resume): Likewise.
83 (proceed): Likewise.
84 (adjust_pc_after_break): Likewise.
85 (save_waitstatus): Likewise.
86 (handle_signal_stop): Likewise.
87 (keep_going_pass_signal): Likewise.
88 * jit.c (jit_frame_sniffer): Add const.
89 * mips-tdep.c (mips_single_step_through_delay): Likewise.
90 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
91 * record-full.c (record_full_wait_1): Likewise.
92 * regcache.c (regcache::regcache): Change parameter to const.
93 * regcache.h (regcache::regcache): Likewise.
94 (regcache::aspace): Return const address_space *.
95 (regcache) <m_aspace>: Add const.
96
a01bda52
YQ
972017-11-02 Yao Qi <yao.qi@linaro.org>
98
99 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
100 * frame.c (create_sentinel_frame): Likewise.
101 * infrun.c (displaced_step_prepare_throw): Likewise.
102 (resume): Likewise.
103 (thread_still_needs_step_over_bp): Likewise.
104 (proceed): Likewise.
105 (do_target_wait): Likewise.
106 (adjust_pc_after_break): Likewise.
107 (handle_syscall_event): Likewise.
108 (save_waitstatus): Likewise.
109 (handle_inferior_event_1): Likewise.
110 (handle_signal_stop): Likewise.
111 (keep_going_pass_signal): Likewise.
112 * linux-nat.c (status_callback): Likewise.
113 (save_stop_reason): Likewise.
114 (resume_stopped_resumed_lwps): Likewise.
115 * record-full.c (record_full_exec_insn): Likewise.
116 (record_full_wait_1): Likewise.
117 * regcache.c (get_regcache_aspace): Remove.
118 * regcache.h (get_regcache_aspace): Remove.
119
d999647b
YQ
1202017-11-02 Yao Qi <yao.qi@linaro.org>
121
122 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
123 (init_regcache_descr): Use gdbarch_num_regs.
124 (regcache::regcache): Likewise.
125 (regcache::get_register_status): Likewise.
126 (regcache::assert_raw_regnum): Likewise.
127 (regcache::cooked_read): Likewise.
128 (regcache::cooked_read_value): Likewise.
129 (regcache::cooked_write): Likewise.
130 (regcache::dump): Likewise.
131 (regcache::num_raw_registers): New method.
132 * regcache.h (class regcache) <num_raw_registers>: New.
133
4e888c28
YQ
1342017-11-02 Yao Qi <yao.qi@linaro.org>
135
136 * regcache.c (regcache::assert_regnum): New method.
137 (regcache::invalidate): Call assert_regnum.
138 (regcache::raw_update): Likewise.
139 (regcache::raw_write): Likewise.
140 (regcache::raw_read_part): Likewise.
141 (regcache::raw_write_part): Likewise.
142 (regcache::raw_supply): Likewise.
143 (regcache::raw_supply_integer): Likewise.
144 (regcache::raw_supply_zeroed): Likewise.
145 (regcache::raw_collect): Likewise.
146 (regcache::raw_collect_integer): Likewise.
147 * regcache.h (regcache::assert_regnum): Declare.
148
2e1b49b3
YQ
1492017-11-02 Yao Qi <yao.qi@linaro.org>
150
151 * regcache.c (regcache::dump): Remove code.
152
6c5218df
YQ
1532017-11-02 Yao Qi <yao.qi@linaro.org>
154
155 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
156 Remove.
157 <sizeof_cooked_register_status>: Remove.
158 (init_regcache_descr): Update.
159 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
160 (regcache::save): Likewise.
161 (regcache::dump): Likewise.
162
dcc31d28
JB
1632017-11-01 James Bowman <james.bowman@ftdichip.com>
164
165 * ft32-tdep.c (ft32_fetch_instruction): New function.
166 (ft32_analyze_prologue): Use ft32_fetch_instruction().
167
3a87ae65
SM
1682017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
169
170 * cli/cli-script.c (execute_control_command): Rename to ...
171 (execute_control_command_1): ... this.
172 (execute_control_command): New function.
173
09b847f3
SM
1742017-10-31 Simon Marchi <simon.marchi@ericsson.com>
175
176 * tracepoint.c (tfind_command): Remove const_cast.
177
f871c485
MG
1782017-10-30 Mike Gulick <mgulick@mathworks.com>
179
180 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
181
b020ff80
SM
1822017-10-30 Simon Marchi <simon.marchi@ericsson.com>
183
184 * common/common-utils.h (in_inclusive_range): New function.
185 * arm-tdep.c (arm_record_extension_space): Use
186 in_inclusive_range.
187 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
188 * cris-tdep.c (cris_spec_reg_applicable): Use
189 in_inclusive_range.
190
1b81856f
PA
1912017-10-30 Pedro Alves <palves@redhat.com>
192 Simon Marchi <simon.marchi@ericsson.com>
193
194 * remote.c (remote_set_syscall_catchpoint): Build a std::string
195 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
196
31b833b3
PA
1972017-10-30 Pedro Alves <palves@redhat.com>
198
199 * common/common-utils.c (string_appendf, string_vappendf): New
200 functions.
201 * common/common-utils.h (string_appendf, string_vappendf): New
202 declarations.
203 * unittests/common-utils-selftests.c (string_appendf_func)
204 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
205 (string_vappendf_tests): New functions.
206 (_initialize_common_utils_selftests): Register "string_appendf" and
207 "string_vappendf tests".
208
4a250334
PA
2092017-10-30 Pedro Alves <palves@redhat.com>
210
211 * unittests/common-utils-selftests.c (format_func): New typedef.
212 (string_printf_tests, string_vprintf_tests): Tests factored out
213 and merged to ...
214 (test_format_func): ... this new function.
215 (string_printf_tests, string_vprintf_tests): Reimplement on top of
216 test_format_func.
217
16c5c17e
SM
2182017-10-29 Simon Marchi <simon.marchi@ericsson.com>
219
220 * darwin-nat.c: Remove include of gdb.h.
221
7ca51576
SM
2222017-10-29 Simon Marchi <simon.marchi@ericsson.com>
223
224 * xtensa-xtregs.c: Fix formatting issues.
225
c1342859
SM
2262017-10-29 Simon Marchi <simon.marchi@ericsson.com>
227
228 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
229
484d8d36
MD
2302017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
231
232 PR python/21213
233 * python/py-infthread.c (thpy_get_inferior): Increment reference
234 of inferior before returning it.
235
b5540b5f
SM
2362017-10-27 Simon Marchi <simon.marchi@ericsson.com>
237
238 * unittests/common-utils-selftests.c (format): Add
239 ATTRIBUTE_PRINTF.
240
5a9dcda1
SM
2412017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
242
243 * xml-syscall.c (struct syscall_desc): Add constructor.
244 <name>: Change type to std::string.
245 (syscall_desc_up): New typedef.
246 (syscall_desc_p): Remove typeder.
247 (DEF_VEC_P(syscall_desc_p)): Remove.
248 (struct syscall_group_desc): Add constructor.
249 <name>: Change type to std::string.
250 <syscalls>: Change type to std::vector.
251 (syscall_group_desc_up): New typedef.
252 (syscall_group_desc_p): Remove typedef.
253 (DEF_VEC_P(syscall_group_desc_p)): Remove.
254 (struct syscalls_info) <syscalls>: Change type to std::vector of
255 unique_ptr.
256 <groups>: Likewise.
257 <my_gdb_datadir>: Change type to std::string.
258 (syscalls_info_up): New typedef.
259 (allocate_syscalls_info): Remove.
260 (syscalls_info_free_syscalls_desc): Remove.
261 (syscalls_info_free_syscall_group_desc): Remove.
262 (free_syscalls_info): Remove.
263 (make_cleanup_free_syscalls_info): Remove.
264 (syscall_group_create_syscall_group_desc): Adjust.
265 (syscall_group_add_syscall): Adjust.
266 (syscall_create_syscall_desc): Adjust.
267 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
268 (init_syscalls_info): Adjust.
269 (syscall_group_get_group_by_name): Adjust.
270 (xml_get_syscall_number): Adjust.
271 (xml_get_syscall_name): Adjust.
272 (xml_list_of_syscalls): Adjust.
273 (xml_list_syscalls_by_group): Adjust.
274 (xml_list_of_groups): Adjust.
275
45461e0d
SM
2762017-10-27 Simon Marchi <simon.marchi@ericsson.com>
277
278 * probe.h: Don't include gdb_vecs.h.
279 (DEF_VEC_P (probe_p)): Remove.
280 (find_probes_in_objfile): Return an std::vector.
281 * probe.c (find_probes_in_objfile): Likewise.
282 * breakpoint.c (breakpoint_objfile_data)
283 <longjmp_probes>: Change type to std::vector.
284 <exception_probes>: Likewise.
285 (free_breakpoint_probes): Don't manually free vectors.
286 (create_longjmp_master_breakpoint): Adjust.
287 (create_exception_master_breakpoint): Adjust.
288 * solib-svr4.c (svr4_create_probe_breakpoints): Change
289 parameter type, adjust.
290 (svr4_create_solib_event_breakpoints): Adjust.
291
43dce439
SM
2922017-10-27 Simon Marchi <simon.marchi@ericsson.com>
293
294 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
295 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
296 with new.
297 (free_breakpoint_probes): Rename to ...
298 (free_breakpoint_objfile_data): ... this, and call delete on
299 bp_objfile_data..
300
6a1b9516
SM
3012017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
302
303 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
304 (loaded_script_ptr): Remove typedef.
305 (DEF_VEC_P (loaded_script_ptr)): Remove.
306 (struct collect_matching_scripts_data): Add constructor.
307 <scripts_p>: Change type to (pointer to) std::vector.
308 (collect_matching_scripts_data): Adjust.
309 (sort_scripts_by_name): Make suitable for std::sort.
310 (print_scripts): Don't sort vector, adjust to std::vector.
311 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
312
593e3209
SM
3132017-10-27 Simon Marchi <simon.marchi@ericsson.com>
314
315 * symfile.c (filename_language): Make struct, not typedef. Add
316 constructor.
317 <ext>: Change type to std::string.
318 (DEF_VEC_O (filename_language)): Remove.
319 (filename_language_table): Change type to std::vector.
320 (add_filename_language): Adjust.
321 (set_ext_lang_command): Adjust.
322 (info_ext_lang_command): Adjust.
323 (deduce_language_from_filename): Adjust.
324 (class scoped_restore_filename_language_table): Remove.
325 (test_filename_language): Use scoped_restore.
326 (test_set_ext_lang_command): Use scoped_restore, adjust to
327 std::vector change.
328
32fa66eb
SM
3292017-10-27 Simon Marchi <simon.marchi@ericsson.com>
330
331 * symfile.c: Include selftest.h.
332 (class scoped_restore_filename_language_table): New.
333 (test_filename_language): New test.
334 (test_set_ext_lang_command): New test.
335 (_initialize_symfile): Register tests.
336
4a27f119
KS
3372017-10-27 Keith Seitz <keiths@redhat.com>
338
339 * breakpoint.c (print_breakpoint_location): Use the symbol saved
340 in the bp_location, falling back to find_pc_sect_function when
341 needed.
342 (add_location_to_breakpoint): Save sal->symbol.
343 * breakpoint.h (struct bp_location) <symbol>: New field.
344 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
345 * symtab.h (struct symtab_and_line) <symbol>: New field.
346
a43f3893
PF
3472017-10-26 Patrick Frants <osscontribute@gmail.com>
348
7453e6b2 349 PR gdb/13669
a43f3893
PF
350 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
351 to rewind obstack.
352
23cc4e1b
PA
3532017-10-26 Pedro Alves <palves@redhat.com>
354
355 * remote.c (remote_async_terminal_ours_p): Delete.
356 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
357 Remove references to 'remote_async_terminal_ours_p'.
358
6abc18bb
YQ
3592017-10-26 Yao Qi <yao.qi@linaro.org>
360
361 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
362
bd522513
YQ
3632017-10-26 Yao Qi <yao.qi@linaro.org>
364
365 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
366 aspace const.
367 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
368 Likewise.
369 * breakpoint.c (bpstat_check_location): Remove cast.
370 (breakpoint_hit_catch_fork): Make aspce const.
371 (breakpoint_hit_catch_solib): Likewise.
372 (breakpoint_hit_catch_exec): Likewise.
373 (breakpoint_hit_ranged_breakpoint): Likewise.
374 (breakpoint_hit_watchpoint): Likewise.
375 (base_breakpoint_breakpoint_hit): Likewise.
376 (bkpt_breakpoint_hit): Likewise.
377 (dprintf_breakpoint_hit): Likewise.
378 (tracepoint_breakpoint_hit): Likewise.
379 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
380
accd0bcd
YQ
3812017-10-26 Yao Qi <yao.qi@linaro.org>
382
383 * breakpoint.c (breakpoint_location_address_match): Change
384 "struct address_space *" to "const address_space".
385 (breakpoint_location_address_range_overlap): Likewise.
386 (breakpoint_here_p): Likewise.
387 (breakpoint_in_range_p): Likewise.
388 (moribund_breakpoint_here_p): Likewise.
389 (bp_location_inserted_here_p): Likewise.
390 (software_breakpoint_inserted_here_p): Likewise.
391 (hardware_breakpoint_inserted_here_p): Likewise.
392 (hardware_watchpoint_inserted_in_range): Likewise.
393 (bpstat_check_location): Likewise.
394 (bpstat_stop_status): Likewise.
395 (breakpoint_address_match): Likewise.
396 (breakpoint_address_match_range): Likewise.
397 (breakpoint_location_address_match): Likewise.
398 (breakpoint_location_address_range_overlap): Likewise.
399 (insert_single_step_breakpoint): Likewise.
400 (breakpoint_has_location_inserted_here): Likewise.
401 (single_step_breakpoint_inserted_here_p): Likewise.
402 (pc_at_non_inline_function): Likewise.
403 * breakpoint.h (bpstat_stop_status): Update declaration.
404 (breakpoint_here_p): Likewise.
405 (breakpoint_in_range_p): Likewise.
406 (moribund_breakpoint_here_p): Likewise.
407 (breakpoint_inserted_here_p): Likewise.
408 (software_breakpoint_inserted_here_p): Likewise.
409 (hardware_breakpoint_inserted_here_p): Likewise.
410 (breakpoint_has_location_inserted_here): Likewise.
411 (single_step_breakpoint_inserted_here_p): Likewise.
412 (hardware_watchpoint_inserted_in_range): Likewise.
413 (breakpoint_address_match): Likewise.
414 (insert_single_step_breakpoint): Likewise.
415 (pc_at_non_inline_function): Likewise.
416 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
417 * record.c (record_check_stopped_by_breakpoint): Likewise.
418 * record.h (record_check_stopped_by_breakpoint): Likewise.
419 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
420
ac7936df
YQ
4212017-10-25 Yao Qi <yao.qi@linaro.org>
422
423 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
424 regcache->arch () instead get_regcache_arch.
425 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
426 Likewise.
427 (aarch64_fbsd_store_inferior_registers): Likewise.
428 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
429 (store_gregs_to_thread): Likewise.
430 (fetch_fpregs_from_thread): Likewise.
431 (store_fpregs_to_thread): Likewise.
432 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
433 (aarch64_store_return_value): Likewise.
434 (aarch64_software_single_step): Likewise.
435 * aix-thread.c (aix_thread_wait): Likewise.
436 (supply_reg32): Likewise.
437 (supply_sprs64): Likewise.
438 (supply_sprs32): Likewise.
439 (fill_gprs64): Likewise.
440 (fill_gprs32): Likewise.
441 (fill_sprs64): Likewise.
442 (fill_sprs32): Likewise.
443 (store_regs_user_thread): Likewise.
444 (store_regs_kernel_thread): Likewise.
445 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
446 (alphabsd_store_inferior_registers): Likewise.
447 * alpha-tdep.c (alpha_extract_return_value): Likewise.
448 (alpha_store_return_value): Likewise.
449 (alpha_deal_with_atomic_sequence): Likewise.
450 (alpha_next_pc): Likewise.
451 (alpha_software_single_step): Likewise.
452 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
453 (amd64bsd_store_inferior_registers): Likewise.
454 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
455 Likewise.
456 (amd64_linux_store_inferior_registers): Likewise.
457 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
458 (amd64_collect_native_gregset): Likewise.
459 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
460 (amd64obsd_collect_uthread): Likewise.
461 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
462 (amd64_collect_fpregset): Likewise.
463 (amd64_supply_fxsave): Likewise.
464 (amd64_supply_xsave): Likewise.
465 (amd64_collect_fxsave): Likewise.
466 (amd64_collect_xsave): Likewise.
467 * arc-tdep.c (arc_write_pc): Likewise.
468 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
469 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
470 (arm_fbsd_store_inferior_registers): Likewise.
471 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
472 (store_vfp_regs): Likewise.
473 (arm_linux_fetch_inferior_registers): Likewise.
474 (arm_linux_store_inferior_registers): Likewise.
475 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
476 (arm_linux_sigreturn_next_pc): Likewise.
477 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
478 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
479 (fetch_register): Likewise.
480 (store_register): Likewise.
481 * arm-tdep.c (arm_is_thumb): Likewise.
482 (displaced_in_arm_mode): Likewise.
483 (bx_write_pc): Likewise.
484 (arm_get_next_pcs_addr_bits_remove): Likewise.
485 (arm_software_single_step): Likewise.
486 (arm_extract_return_value): Likewise.
487 (arm_store_return_value): Likewise.
488 (arm_write_pc): Likewise.
489 * bfin-tdep.c (bfin_extract_return_value): Likewise.
490 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
491 (bsd_uthread_store_registers): Likewise.
492 * core-regset.c (fetch_core_registers): Likewise.
493 * corelow.c (get_core_registers): Likewise.
494 * cris-tdep.c (cris_store_return_value): Likewise.
495 (cris_extract_return_value): Likewise.
496 (find_step_target): Likewise.
497 (find_step_target): Likewise.
498 (cris_software_single_step): Likewise.
499 * ctf.c (ctf_fetch_registers): Likewise.
500 * darwin-nat.c (cancel_breakpoint): Likewise.
501 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
502 * frv-tdep.c (frv_extract_return_value): Likewise.
503 * ft32-tdep.c (ft32_store_return_value): Likewise.
504 (ft32_extract_return_value): Likewise.
505 * go32-nat.c (fetch_register): Likewise.
506 (go32_fetch_registers): Likewise.
507 (go32_store_registers): Likewise.
508 (store_register): Likewise.
509 * h8300-tdep.c (h8300_extract_return_value): Likewise.
510 (h8300_store_return_value): Likewise.
511 * hppa-linux-nat.c (fetch_register): Likewise.
512 (store_register): Likewise.
513 (hppa_linux_fetch_inferior_registers): Likewise.
514 (hppa_linux_store_inferior_registers): Likewise.
515 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
516 (i386_darwin_store_inferior_registers): Likewise.
517 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
518 (gnu_store_registers): Likewise.
519 * i386-linux-nat.c (fetch_register): Likewise.
520 (store_register): Likewise.
521 (supply_gregset): Likewise.
522 (fill_gregset): Likewise.
523 (i386_linux_fetch_inferior_registers): Likewise.
524 (i386_linux_store_inferior_registers): Likewise.
525 (i386_linux_resume): Likewise.
526 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
527 Likewise.
528 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
529 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
530 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
531 (i386obsd_collect_uthread): Likewise.
532 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
533 (i386_supply_gregset): Likewise.
534 (i386_collect_gregset): Likewise.
535 (i386_supply_fpregset): Likewise.
536 (i386_collect_fpregset): Likewise.
537 (i386_mpx_bd_base): Likewise.
538 * i386-v4-nat.c (supply_fpregset): Likewise.
539 (fill_fpregset): Likewise.
540 * i387-tdep.c (i387_supply_fsave): Likewise.
541 (i387_collect_fsave): Likewise.
542 (i387_supply_fxsave): Likewise.
543 (i387_collect_fxsave): Likewise.
544 (i387_supply_xsave): Likewise.
545 (i387_collect_xsave): Likewise.
546 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
547 (ia64_linux_store_registers): Likewise.
548 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
549 (ia64_extract_return_value): Likewise.
550 (ia64_store_return_value): Likewise.
551 (find_func_descr): Likewise.
552 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
553 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
554 (inf_ptrace_store_registers): Likewise.
555 * infrun.c (use_displaced_stepping): Likewise.
556 (displaced_step_prepare_throw): Likewise.
557 (resume): Likewise.
558 (proceed): Likewise.
559 (do_target_wait): Likewise.
560 (adjust_pc_after_break): Likewise.
561 (handle_inferior_event_1): Likewise.
562 (handle_signal_stop): Likewise.
563 (save_infcall_suspend_state): Likewise.
564 (restore_infcall_suspend_state): Likewise.
565 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
566 * jit.c (jit_frame_prev_register): Likewise.
567 * linux-nat.c (save_stop_reason): Likewise.
568 (linux_nat_wait_1): Likewise.
569 (resume_stopped_resumed_lwps): Likewise.
570 * linux-record.c (record_linux_sockaddr): Likewise.
571 (record_linux_msghdr): Likewise.
572 (record_linux_system_call): Likewise.
573 * linux-tdep.c (linux_collect_thread_registers): Likewise.
574 * lm32-tdep.c (lm32_extract_return_value): Likewise.
575 (lm32_store_return_value): Likewise.
576 * m32c-tdep.c (m32c_read_flg): Likewise.
577 (m32c_pseudo_register_read): Likewise.
578 (m32c_pseudo_register_write): Likewise.
579 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
580 (m32r_linux_collect_gregset): Likewise.
581 * m32r-tdep.c (m32r_store_return_value): Likewise.
582 (m32r_extract_return_value): Likewise.
583 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
584 (m68kbsd_collect_fpregset): Likewise.
585 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
586 * m68k-linux-nat.c (fetch_register): Likewise.
587 (old_fetch_inferior_registers): Likewise.
588 (old_store_inferior_registers): Likewise.
589 (store_regs): Likewise.
590 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
591 (m68k_svr4_store_return_value): Likewise.
592 * m88k-tdep.c (m88k_store_arguments): Likewise.
593 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
594 (mi_cmd_data_write_register_values): Likewise.
595 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
596 (mips_fbsd_store_inferior_registers): Likewise.
597 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
598 (mips_fbsd_supply_gregs): Likewise.
599 (mips_fbsd_collect_fpregs): Likewise.
600 (mips_fbsd_collect_gregs): Likewise.
601 (mips_fbsd_supply_fpregset): Likewise.
602 (mips_fbsd_collect_fpregset): Likewise.
603 (mips_fbsd_supply_gregset): Likewise.
604 (mips_fbsd_collect_gregset): Likewise.
605 * mips-linux-nat.c (supply_gregset): Likewise.
606 (fill_gregset): Likewise.
607 (supply_fpregset): Likewise.
608 (fill_fpregset): Likewise.
609 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
610 (mips_fill_gregset): Likewise.
611 (mips_supply_fpregset): Likewise.
612 (mips_fill_fpregset): Likewise.
613 (mips64_supply_gregset): Likewise.
614 (micromips_linux_sigframe_validate): Likewise.
615 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
616 (mipsnbsd_fetch_inferior_registers): Likewise.
617 (mipsnbsd_store_inferior_registers): Likewise.
618 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
619 (mipsnbsd_supply_gregset): Likewise.
620 (mipsnbsd_iterate_over_regset_sections): Likewise.
621 (mipsnbsd_supply_reg): Likewise.
622 (mipsnbsd_supply_fpreg): Likewise.
623 * mips-tdep.c (mips_in_frame_stub): Likewise.
624 (mips_dummy_id): Likewise.
625 (is_octeon_bbit_op): Likewise.
626 (micromips_bc1_pc): Likewise.
627 (extended_mips16_next_pc): Likewise.
628 (mips16_next_pc): Likewise.
629 (deal_with_atomic_sequence): Likewise.
630 * moxie-tdep.c (moxie_process_readu): Likewise.
631 * nios2-tdep.c (nios2_get_next_pc): Likewise.
632 * nto-procfs.c (procfs_store_registers): Likewise.
633 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
634 (ppcfbsd_store_inferior_registers): Likewise.
635 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
636 (fetch_altivec_register): Likewise.
637 (get_spe_registers): Likewise.
638 (fetch_spe_register): Likewise.
639 (fetch_altivec_registers): Likewise.
640 (fetch_all_gp_regs): Likewise.
641 (fetch_all_fp_regs): Likewise.
642 (store_vsx_register): Likewise.
643 (store_altivec_register): Likewise.
644 (set_spe_registers): Likewise.
645 (store_spe_register): Likewise.
646 (store_altivec_registers): Likewise.
647 (store_all_gp_regs): Likewise.
648 (store_all_fp_regs): Likewise.
649 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
650 (ppc_linux_collect_gregset): Likewise.
651 (ppc_canonicalize_syscall): Likewise.
652 (ppc_linux_record_signal): Likewise.
653 (ppu2spu_prev_register): Likewise.
654 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
655 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
656 (ppcobsd_store_registers): Likewise.
657 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
658 Likewise.
659 (ppc_ravenscar_generic_store_registers): Likewise.
660 * procfs.c (procfs_fetch_registers): Likewise.
661 (procfs_store_registers): Likewise.
662 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
663 (ravenscar_store_registers): Likewise.
664 (ravenscar_prepare_to_store): Likewise.
665 * record-btrace.c (record_btrace_fetch_registers): Likewise.
666 * record-full.c (record_full_wait_1): Likewise.
667 (record_full_registers_change): Likewise.
668 (record_full_store_registers): Likewise.
669 (record_full_core_fetch_registers): Likewise.
670 (record_full_save): Likewise.
671 (record_full_goto_insn): Likewise.
672 * regcache.c (regcache_register_size): Likewise.
673 (get_regcache_arch): Remove.
674 (regcache_read_pc): Likewise.
675 * regcache.h (get_regcache_arch): Remove.
676 * remote-sim.c (gdbsim_fetch_register): Likewise.
677 (gdbsim_store_register): Likewise.
678 * remote.c (fetch_register_using_p): Likewise.
679 (send_g_packet): Likewise.
680 (remote_prepare_to_store): Likewise.
681 (store_registers_using_G): Likewise.
682 * reverse.c (save_bookmark_command): Likewise.
683 (goto_bookmark_command): Likewise.
684 * rs6000-aix-tdep.c (branch_dest): Likewise.
685 * rs6000-nat.c (rs6000_ptrace64): Likewise.
686 (fetch_register): Likewise.
687 * rs6000-tdep.c (ppc_supply_reg): Likewise.
688 (ppc_collect_reg): Likewise.
689 (ppc_collect_gregset): Likewise.
690 (ppc_collect_fpregset): Likewise.
691 (ppc_collect_vsxregset): Likewise.
692 (ppc_collect_vrregset): Likewise.
693 (ppc_displaced_step_hw_singlestep): Likewise.
694 (rs6000_pseudo_register_read): Likewise.
695 (rs6000_pseudo_register_write): Likewise.
696 * s390-linux-nat.c (supply_gregset): Likewise.
697 (fill_gregset): Likewise.
698 (s390_linux_fetch_inferior_registers): Likewise.
699 * s390-linux-tdep.c (s390_write_pc): Likewise.
700 (s390_software_single_step): Likewise.
701 (s390_all_but_pc_registers_record): Likewise.
702 (s390_linux_syscall_record): Likewise.
703 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
704 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
705 (shnbsd_store_inferior_registers): Likewise.
706 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
707 (sh_extract_return_value_fpu): Likewise.
708 (sh_store_return_value_nofpu): Likewise.
709 (sh_corefile_supply_regset): Likewise.
710 (sh_corefile_collect_regset): Likewise.
711 * sh64-tdep.c (sh64_extract_return_value): Likewise.
712 (sh64_store_return_value): Likewise.
713 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
714 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
715 (sparc_store_inferior_registers): Likewise.
716 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
717 (sparc_ravenscar_prepare_to_store): Likewise.
718 * sparc-tdep.c (sparc32_store_arguments): Likewise.
719 (sparc_analyze_control_transfer): Likewise.
720 (sparc_step_trap): Likewise.
721 (sparc_software_single_step): Likewise.
722 (sparc32_gdbarch_init): Likewise.
723 (sparc_supply_rwindow): Likewise.
724 (sparc_collect_rwindow): Likewise.
725 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
726 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
727 (sparc64nbsd_collect_gregset): Likewise.
728 (sparc64nbsd_supply_fpregset): Likewise.
729 (sparc64nbsd_collect_fpregset): Likewise.
730 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
731 (sparc64_supply_gregset): Likewise.
732 (sparc64_collect_gregset): Likewise.
733 (sparc64_supply_fpregset): Likewise.
734 (sparc64_collect_fpregset): Likewise.
735 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
736 * spu-tdep.c (spu_unwind_sp): Likewise.
737 (spu2ppu_prev_register): Likewise.
738 (spu_memory_remove_breakpoint): Likewise.
739 * stack.c (return_command): Likewise.
740 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
741 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
742 * tracefile.c (trace_save_ctf): Likewise.
743 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
744 (do_windows_store_inferior_registers): Likewise.
745 (windows_resume): Likewise.
746 * xtensa-linux-nat.c (fill_gregset): Likewise.
747 (supply_gregset_reg): Likewise.
748 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
749 (xtensa_register_read_masked): Likewise.
750 (xtensa_supply_gregset): Likewise.
751 (xtensa_extract_return_value): Likewise.
752 (xtensa_store_return_value): Likewise.
753
edd079d9
UW
7542017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
755
756 * doublest.c (floatformat_from_string): New function.
757 * doublest.h (floatformat_from_string): Add prototype.
758
759 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
760 (OP_FLOAT): ... this.
761 * expression.h: Do not include "doublest.h".
762 (union exp_element): Replace doubleconst and decfloatconst by
763 new element floatconst.
764 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
765 (ada_evaluate_subexp): Likewise.
766 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
767 OP_DOUBLE and OP_DECFLOAT.
768 * expprint.c (print_subexp_standard): Likewise.
769 (dump_subexp_body_standard): Likewise.
770 * breakpoint.c (watchpoint_exp_is_const): Likewise.
771
772 * parse.c: Include "dfp.h".
773 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
774 (write_exp_elt_floatcst): New function.
775 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
776 and OP_DECFLOAT.
777 (operator_check_standard): Likewise.
778 (parse_float): Do not accept suffix. Take type as input. Return bool.
779 Return target format buffer instead of host DOUBLEST.
780 Use floatformat_from_string and decimal_from_string to parse
781 either binary or decimal floating-point types.
782 (parse_c_float): Remove.
783 * parser-defs.h: Do not include "doublest.h".
784 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
785 (write_exp_elt_floatcst): Add prototype.
786 (parse_float): Update prototype.
787 (parse_c_float): Remove.
788
789 * c-exp.y: Do not include "dfp.h".
790 (typed_val_float): Use byte buffer instead of DOUBLEST.
791 (typed_val_decfloat): Remove.
792 (DECFLOAT): Remove.
793 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
794 (parse_number): Update to new parse_float interface.
795 Parse suffixes and determine type before calling parse_float.
796 Handle decimal and binary FP types the same way.
797
798 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
799 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
800 (parse_number): Update to new parse_float interface.
801 Parse suffixes and determine type before calling parse_float.
802
803 * f-exp.y: Replace dval by typed_val_float.
804 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
805 (parse_number): Use parse_float instead of atof.
806
807 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
808 (parse_go_float): Remove.
809 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
810 (parse_number): Call parse_float instead of parse_go_float.
811 Parse suffixes and determine type before calling parse_float.
812
813 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
814 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
815 (parse_number): Update to new parse_float interface.
816 Parse suffixes and determine type before calling parse_float.
817
818 * m2-exp.y: Replace dval by byte buffer val.
819 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
820 (parse_number): Call parse_float instead of atof.
821
822 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
823 (lex_number): Call parse_float instead of strtod.
824 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
825 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
826 Use write_exp_elt_floatcst.
827 (unit_testing): Remove static variable.
828 (rust_type): Do not check unit_testing.
829 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
830
831 * ada-exp.y (type_float, type_double): Remove.
832 (typed_val_float): Use byte buffer instead of DOUBLEST.
833 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
834 * ada-lex.l (processReal): Use parse_float instead of sscanf.
835
cc628f3d
AH
8362017-10-25 Alan Hayward <alan.hayward@arm.com>
837
838 * aarch64-tdep.h (enum aarch64_regnum): Remove.
839 * arch/aarch64.h: New file.
840
09a7c6aa
UW
8412017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
842
843 * dfp.h (decimal_from_string): Use const reference for argument.
844 * dfp.c (decimal_from_string): Likewise.
845
8ba0dd51
UW
8462017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
847
848 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
849 * sh64-tdep.c (sh64_do_fp_register): Likewise.
850 * mips-tdep.c (mips_print_fp_register): Likewise.
851
16e812b2
UW
8522017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
853
854 * common/format.h (enum argclass): Replace decfloat_arg by
855 dec32float_arg, dec64float_arg, and dec128float_arg.
856 * common/format.c (parse_format_string): Update to return
857 new decimal float argument classes.
858
859 * printcmd.c (printf_decfloat): Rename to ...
860 (printf_floating): ... this. Add argclass argument, and use it
861 instead of parsing the format string again. Add support for
862 binary floating-point values, using floatformat_to_string.
863 Convert value to the target format if it doesn't already match.
864 (ui_printf): Call printf_floating instead of printf_decfloat,
865 also for double_arg / long_double_arg. Pass argclass.
866
867 * dfp.c (decimal_to_string): Add format string argument.
868 * dfp.h (decimal_to_string): Likewise.
869
870 * doublest.c (floatformat_to_string): Add format string argument.
871 * doublest.h (floatformat_to_string): Likewise.
872
fdf0cbc2
UW
8732017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
874
875 * doublest.c (floatformat_precision): New routine.
876 (floatformat_to_string): Likewise.
877 * doublest.c (floatformat_to_string): Add prototype.
878
879 * printcmd.c (print_scalar_formatted): Only call print_floating
880 on floating-point types.
881 * valprint.c: Do not include "floatformat.h".
882 (generic_val_print_decfloat): Remove.
883 (generic_val_print): Call generic_val_print_float for both
884 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
885 (print_floating): Use floatformat_to_string. Handle decimal float.
886 (print_decimal_floating): Remove, merge into floatformat_to_string.
887 * value.h (print_decimal_floating): Remove.
888
889 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
890
5033013f
UW
8912017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
892
893 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
894
a664f67e
SM
8952017-10-21 Simon Marchi <simon.marchi@ericsson.com>
896
897 * memattr.h: Don't include vec.h.
898 (struct mem_attrib): Initialize fields.
899 <unknown>: New static method.
900 (struct mem_region): Add constructors, operator<, initialize
901 fields.
902 * memattr.c: Include algorithm.
903 (default_mem_attrib, unknown_mem_attrib): Remove.
904 (user_mem_region_list): New global.
905 (target_mem_region_list, mem_region_list): Change type to
906 std::vector<mem_region>.
907 (mem_use_target): Now a function.
908 (target_mem_regions_valid): Change type to bool.
909 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
910 (require_user_regions): Adjust.
911 (require_target_regions): Adjust.
912 (create_mem_region): Adjust.
913 (lookup_mem_region): Adjust.
914 (invalidate_target_mem_regions): Adjust.
915 (mem_clear): Rename to...
916 (user_mem_clear): ... this, and adjust.
917 (mem_command): Adjust.
918 (info_mem_command): Adjust.
919 (mem_enable, enable_mem_command, mem_disable,
920 disable_mem_command): Adjust.
921 (mem_delete): Adjust.
922 (delete_mem_command): Adjust.
923 * memory-map.h (parse_memory_map): Return an std::vector.
924 * memory-map.c (parse_memory_map): Likewise.
925 (struct memory_map_parsing_data): Add constructor.
926 <memory_map>: Point to std::vector.
927 (memory_map_start_memory): Adjust.
928 (memory_map_end_memory): Adjust.
929 (memory_map_end_property): Adjust.
930 (clear_result): Remove.
931 * remote.c (remote_memory_map): Return an std::vector.
932 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
933 Remove.
934 (target_debug_print_mem_region_vector): New.
935 * target-delegates.c: Regenerate.
936 * target.h (mem_region_vector): New typedef.
937 (to_memory_map): Return mem_region_vector.
938 (target_memory_map): Return an std::vector.
939 * target.c (target_memory_map): Return an std::vector.
940 (flash_erase_command): Adjust.
941
6e17c565
SM
9422017-10-21 Simon Marchi <simon.marchi@ericsson.com>
943
944 * memory-map.c (struct memory_map_parsing_data) <property_name>:
945 Change type to std::string.
946 (memory_map_start_property): Adjust.
947 (memory_map_end_property): Adjust.
948
cfba9872
SM
9492017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
950
951 * infrun.h: Include common/byte-vector.h.
952 (struct displaced_step_closure): New struct.
953 (struct buf_displaced_step_closure): New struct.
954 * infrun.c (displaced_step_closure::~displaced_step_closure):
955 Provide default implementation.
956 (displaced_step_clear): Deallocate step closure with delete.
957 * aarch64-tdep.c (displaced_step_closure): Rename to ...
958 (aarch64_displaced_step_closure): ... this, extend
959 displaced_step_closure.
960 (aarch64_displaced_step_data) <dsc>: Change type to
961 aarch64_displaced_step_closure.
962 (aarch64_displaced_step_copy_insn): Adjust to type change, use
963 unique_ptr.
964 (aarch64_displaced_step_fixup): Add cast for displaced step
965 closure.
966 * amd64-tdep.c (displaced_step_closure): Rename to ...
967 (amd64_displaced_step_closure): ... this, extend
968 displaced_step_closure.
969 <insn_buf>: Change type to std::vector<gdb_byte>.
970 <max_len>: Remove.
971 (fixup_riprel): Change type of DSC parameter, adjust to type
972 change of insn_buf.
973 (fixup_displaced_copy): Change type of DSC parameter.
974 (amd64_displaced_step_copy_insn): Instantiate
975 amd64_displaced_step_closure.
976 (amd64_displaced_step_fixup): Add cast for closure type, adjust
977 to type change of insn_buf.
978 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
979 parameter DSC.
980 (arm_linux_copy_svc): Likewise.
981 (cleanup_kernel_helper_return): Likewise.
982 (arm_catch_kernel_helper_return): Likewise.
983 (arm_linux_displaced_step_copy_insn): Instantiate
984 arm_displaced_step_closure.
985 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
986 (displaced_read_reg): Change type of parameter DSC.
987 (branch_write_pc): Likewise.
988 (load_write_pc): Likewise.
989 (alu_write_pc): Likewise.
990 (displaced_write_reg): Likewise.
991 (arm_copy_unmodified): Likewise.
992 (thumb_copy_unmodified_32bit): Likewise.
993 (thumb_copy_unmodified_16bit): Likewise.
994 (cleanup_preload): Likewise.
995 (install_preload): Likewise.
996 (arm_copy_preload): Likewise.
997 (thumb2_copy_preload): Likewise.
998 (install_preload_reg): Likewise.
999 (arm_copy_preload_reg): Likewise.
1000 (cleanup_copro_load_store): Likewise.
1001 (install_copro_load_store): Likewise.
1002 (arm_copy_copro_load_store) Likewise.
1003 (thumb2_copy_copro_load_store): Likewise.
1004 (cleanup_branch): Likewise.
1005 (install_b_bl_blx): Likewise.
1006 (arm_copy_b_bl_blx): Likewise.
1007 (thumb2_copy_b_bl_blx): Likewise.
1008 (thumb_copy_b): Likewise.
1009 (install_bx_blx_reg): Likewise.
1010 (arm_copy_bx_blx_reg): Likewise.
1011 (thumb_copy_bx_blx_reg): Likewise.
1012 (cleanup_alu_imm): Likewise.
1013 (arm_copy_alu_imm): Likewise.
1014 (thumb2_copy_alu_imm): Likewise.
1015 (cleanup_alu_reg): Likewise.
1016 (install_alu_reg): Likewise.
1017 (arm_copy_alu_reg): Likewise.
1018 (thumb_copy_alu_reg): Likewise.
1019 (cleanup_alu_shifted_reg): Likewise.
1020 (install_alu_shifted_reg): Likewise.
1021 (arm_copy_alu_shifted_reg): Likewise.
1022 (cleanup_load): Likewise.
1023 (cleanup_store): Likewise.
1024 (arm_copy_extra_ld_st): Likewise.
1025 (install_load_store): Likewise.
1026 (thumb2_copy_load_literal): Likewise.
1027 (thumb2_copy_load_reg_imm): Likewise.
1028 (arm_copy_ldr_str_ldrb_strb): Likewise.
1029 (cleanup_block_load_all): Likewise.
1030 (cleanup_block_store_pc): Likewise.
1031 (cleanup_block_load_pc): Likewise.
1032 (arm_copy_block_xfer): Likewise.
1033 (thumb2_copy_block_xfer): Likewise.
1034 (cleanup_svc): Likewise.
1035 (install_svc): Likewise.
1036 (arm_copy_svc): Likewise.
1037 (thumb_copy_svc): Likewise.
1038 (arm_copy_undef): Likewise.
1039 (thumb_32bit_copy_undef): Likewise.
1040 (arm_copy_unpred): Likewise.
1041 (arm_decode_misc_memhint_neon): Likewise.
1042 (arm_decode_unconditional): Likewise.
1043 (arm_decode_miscellaneous): Likewise.
1044 (arm_decode_dp_misc): Likewise.
1045 (arm_decode_ld_st_word_ubyte): Likewise.
1046 (arm_decode_media): Likewise.
1047 (arm_decode_b_bl_ldmstm): Likewise.
1048 (arm_decode_ext_reg_ld_st): Likewise.
1049 (thumb2_decode_dp_shift_reg): Likewise.
1050 (thumb2_decode_ext_reg_ld_st): Likewise.
1051 (arm_decode_svc_copro): Likewise.
1052 (thumb2_decode_svc_copro): Likewise.
1053 (install_pc_relative): Likewise.
1054 (thumb_copy_pc_relative_16bit): Likewise.
1055 (thumb_decode_pc_relative_16bit): Likewise.
1056 (thumb_copy_pc_relative_32bit): Likewise.
1057 (thumb_copy_16bit_ldr_literal): Likewise.
1058 (thumb_copy_cbnz_cbz): Likewise.
1059 (thumb2_copy_table_branch): Likewise.
1060 (cleanup_pop_pc_16bit_all): Likewise.
1061 (thumb_copy_pop_pc_16bit): Likewise.
1062 (thumb_process_displaced_16bit_insn): Likewise.
1063 (decode_thumb_32bit_ld_mem_hints): Likewise.
1064 (thumb_process_displaced_32bit_insn): Likewise.
1065 (thumb_process_displaced_insn): Likewise.
1066 (arm_process_displaced_insn): Likewise.
1067 (arm_displaced_init_closure): Likewise.
1068 (arm_displaced_step_fixup): Add cast for closure.
1069 * arm-tdep.h: Include infrun.h.
1070 (displaced_step_closure): Rename to ...
1071 (arm_displaced_step_closure): ... this, extend
1072 displaced_step_closure.
1073 <u::svc::copy_svc_os>: Change type of parameter DSC.
1074 <cleanup>: Likewise.
1075 (arm_process_displaced_insn): Likewise.
1076 (arm_displaced_init_closure): Likewise.
1077 (displaced_read_reg): Likewise.
1078 (displaced_write_reg): Likewise.
1079 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
1080 Adjust.
1081 * i386-tdep.h: Include infrun.h.
1082 (i386_displaced_step_closure): New typedef.
1083 * i386-tdep.c (i386_displaced_step_copy_insn): Use
1084 i386_displaced_step_closure.
1085 (i386_displaced_step_fixup): Adjust.
1086 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
1087 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
1088 and unique_ptr.
1089 (ppc_displaced_step_fixup): Adjust.
1090 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
1091 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
1092 and unique_ptr.
1093 (s390_displaced_step_fixup): Adjust.
1094
b392b304
SM
10952017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1096
1097 * interps.h (interp_resume, interp_suspend, interp_set_temp):
1098 Remove declarations.
1099
d5833c62
TT
11002017-10-20 Tom Tromey <tom@tromey.com>
1101
1102 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
1103 std::vector.
1104 (gdb_bfd_record_inclusion): Update.
1105 (bfdp): Remove typedef.
1106
06d5bbc8
TT
11072017-10-20 Tom Tromey <tom@tromey.com>
1108
1109 * gdb_bfd.c (gdb_bfd_ref): Use new.
1110 (struct gdb_bfd_data): Add constructor, destructor, and member
1111 initializers.
1112 (gdb_bfd_unref): Use delete.
1113
2712ce2e
TT
11142017-10-20 Tom Tromey <tom@tromey.com>
1115
1116 * exec.c (exec_file_attach): Use new_bfd_ref.
1117 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
1118 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
1119 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
1120 new_bfd_ref.
1121 * gdb_bfd.h (new_bfd_ref): New function.
1122
fcc8fb2f
PA
11232017-10-20 Pedro Alves <palves@redhat.com>
1124
1125 * main.c (captured_command_loop): Add attribute noinline.
1126
4c2287b0
SM
11272017-10-19 Simon Marchi <simon.marchi@ericsson.com>
1128
1129 * interps.c (struct interp_factory): Add constructor.
1130 (interp_factory_p): Remove typedef.
1131 (DEF_VEC_P(interp_factory_p)): Remove.
1132 (interpreter_factories): Change type to std::vector.
1133 (interp_factory_register): Adjust.
1134 (interp_lookup): Adjust.
1135 (interpreter_completer): Adjust.
1136
3d415c26
TT
11372017-10-19 Tom Tromey <tom@tromey.com>
1138
1139 * break-catch-syscall.c (catch_syscall_completer): Use
1140 std::string, gdb::unique_xmalloc_ptr.
1141
395423c4
TT
11422017-10-19 Tom Tromey <tom@tromey.com>
1143
1144 * infcall.c (call_function_by_hand_dummy): Use std::string.
1145
54f70bc1
TT
11462017-10-19 Tom Tromey <tom@tromey.com>
1147
1148 * mi/mi-main.c (mi_cmd_execute): Update.
1149 * top.h (prepare_execute_command): Return scoped_value_mark.
1150 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
1151 Add move constructor.
1152 * top.c (prepare_execute_command): Return scoped_value_mark.
1153 (execute_command): Update.
1154
63929e84
PA
11552017-10-19 Pedro Alves <palves@redhat.com>
1156
1157 * xml-support.c (xml_fetch_content_from_file): Check fread's
1158 return.
1159
a75868f5
PA
11602017-10-19 Pedro Alves <palves@redhat.com>
1161
1162 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
1163 async.
1164 (handle_error_fd): New function.
1165 (ser_base_async): Add/delete an event loop file handler for
1166 error_fd.
1167
2edf834e
PA
11682017-10-19 Pedro Alves <palves@redhat.com>
1169
1170 * xml-support.c (xml_fetch_content_from_file): Don't read in
1171 chunks. Instead use fseek to determine the file's size, and read
1172 it in one go.
1173
c8ba13ad
KS
11742017-11-18 Keith Seitz <keiths@redhat.com>
1175
1176 * c-exp.y (oper): Canonicalize conversion operators of user-defined
1177 types.
1178 Add whitespace to front of type name.
1179
37534686
KS
11802017-10-18 Keith Seitz <keiths@redhat.com>
1181
1182 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
1183 DW_AT_accessibility.
1184
28c7c158
YQ
11852017-10-18 Yao Qi <yao.qi@linaro.org>
1186
1187 * features/tic6x-c62x-linux.c: Remove.
1188
30f0b101
TT
11892017-10-17 Tom Tromey <tom@tromey.com>
1190
1191 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
1192 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
1193 (do_mixed_source_and_assembly): Likewise.
1194
57e12da9
TT
11952017-10-17 Tom Tromey <tom@tromey.com>
1196
1197 * regcache.c (regcache::xfer_part): Remove assertion.
1198
7b700999
PA
11992017-10-17 Pedro Alves <palves@redhat.com>
1200
1201 * xml-support.c (xml_fetch_content_from_file): Call
1202 unique_ptr::release() instead unique_ptr::get() when passing
1203 through xrealloc.
1204
d3037ba6
YQ
12052017-10-17 Yao Qi <yao.qi@linaro.org>
1206
1207 * regcache.c (regcache::xfer_part): Remove parameters read and
1208 write, add parameter is_raw. All callers are updated.
1209
83d5a34d
KS
12102017-10-16 Keith Seitz <keiths@redhat.com>
1211
1212 * c-typeprint.c (enum access_specifier): Moved here from
1213 c_type_print_base.
1214 (output_access_specifier): New function.
1215 (c_type_print_base): Consider typedefs when assessing
1216 whether access labels are needed.
1217 Use output_access_specifier as needed.
1218 Output access specifier for typedefs, if needed.
1219 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
1220 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
1221 fields.
1222 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
1223 accessor macros.
1224
87028b87
TT
12252017-10-16 Tom Tromey <tom@tromey.com>
1226
1227 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
1228 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
1229 * target.c (target_fileio_read_stralloc): Update.
1230 * sparc64-tdep.c (adi_is_addr_mapped): Update.
1231 * target.h (target_fileio_read_stralloc): Return
1232 unique_xmalloc_ptr.
1233
b7b030ad
TT
12342017-10-16 Tom Tromey <tom@tromey.com>
1235
1236 * xml-syscall.c (xml_init_syscalls_info): Update.
1237 * xml-support.c (xinclude_start_include): Update.
1238 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
1239 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
1240 (xml_fetch_content_from_file): Likewise.
1241 * osdata.c (get_osdata): Update.
1242 * target.h (target_read_stralloc, target_get_osdata): Return
1243 unique_xmalloc_ptr.
1244 * solib-aix.c (solib_aix_get_library_list): Update.
1245 * solib-target.c (solib_target_current_sos): Update.
1246 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
1247 * xml-tdesc.c (fetch_available_features_from_target): Update.
1248 (target_fetch_description_xml): Update.
1249 (file_read_description_xml): Update.
1250 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
1251 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
1252 (remote_pid_to_exec_file): Update.
1253 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
1254 (target_get_osdata): Likewise.
1255
b80406ac
TT
12562017-10-16 Tom Tromey <tom@tromey.com>
1257
1258 * remote.c (remote_register_number_and_offset): Use std::vector.
1259 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
1260 (putpkt_binary): Use gdb::def_vector.
1261 (compare_sections_command): Use gdb::byte_vector.
1262
a90ecff8
TT
12632017-10-16 Tom Tromey <tom@tromey.com>
1264
1265 * ppc-linux-nat.c (hwdebug_insert_point): Use
1266 gdb::unique_xmalloc_ptr, XDUP.
1267
2dc0e219
TT
12682017-10-16 Tom Tromey <tom@tromey.com>
1269
1270 * probe.c (parse_probes): Use std::string.
1271 (info_probes_for_ops, enable_probes_command)
1272 (disable_probes_command): Remove cleanups.
1273
b05628f0
TT
12742017-10-16 Tom Tromey <tom@tromey.com>
1275
1276 * buildsym.c (block_compar): Remove.
1277 (end_symtab_get_static_block): Use std::vector.
1278
a79b1bc6
SM
12792017-10-16 Simon Marchi <simon.marchi@ericsson.com>
1280
1281 * memrange.h (struct mem_range): Define operator< and operator==.
1282 (mem_range_s): Remove.
1283 (DEF_VEC_O (mem_range_s)): Remove.
1284 (normalize_mem_ranges): Change parameter type to std::vector.
1285 * memrange.c (compare_mem_ranges): Remove.
1286 (normalize_mem_ranges): Change parameter type to std::vector,
1287 adjust to vector change.
1288 * exec.c (section_table_available_memory): Return vector, remove
1289 parameter.
1290 (section_table_read_available_memory): Adjust to std::vector
1291 change.
1292 * remote.c (remote_read_bytes): Adjust to std::vector
1293 change.
1294 * tracepoint.h (traceframe_available_memory): Change parameter
1295 type to std::vector.
1296 * tracepoint.c (traceframe_available_memory): Change parameter
1297 type to std::vector, adjust.
1298 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
1299 std::vector change.
1300 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1301 unittests/memrange-selftests.c.
1302 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
1303 * gdb/unittests/memrange-selftests.c: New file.
1304
63f0e930
PA
13052017-10-16 Pedro Alves <palves@redhat.com>
1306
1307 * elfread.c (probe_key_free): Rename range-for variable.
1308 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
1309 (find_probe_by_pc, collect_probes): Rename range-for variable.
1310
c40c7bfc
YQ
13112017-10-16 Yao Qi <yao.qi@linaro.org>
1312
1313 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
1314 * features/tic6x-c62x.c: Remove.
1315 * features/tic6x-c64x-linux.c: Remove.
1316 * features/tic6x-c64x.c: Remove.
1317 * features/tic6x-c64xp-linux.c: Remove.
1318 * features/tic6x-c64xp.c: Remove.
1319 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
1320 initialize_tdesc_tic6x_*_linux functions.
1321 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
1322 initialize_tdesc_tic6x_* functions.
1323
df27ae6a
YQ
13242017-10-16 Yao Qi <yao.qi@linaro.org>
1325
1326 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
1327 tic6x-c62x.
1328 * regformats/tic6x-c62x.dat: Remove.
1329 * regformats/tic6x-c64x.dat: Remove.
1330 * regformats/tic6x-c64xp.dat: Remove.
1331
86766165
SM
13322017-10-15 Simon Marchi <simon.marchi@ericsson.com>
1333
1334 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
1335 (the !HAVE_LIBEXPAT version).
1336
824dfcc3
SM
13372017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1338
1339 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
1340 const.
1341
2098b393
SM
13422017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1343
1344 * target.h: Include tracepoint.h.
1345 (enum trace_find_type): Move to tracepoint.h.
1346 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
1347 * tracepoint.h: Don't include target.h
1348 (enum trace_find_type): Move from target.h.
1349 (parse_traceframe_info): Return a unique ptr.
1350 * tracepoint.c (current_traceframe_info): Change type to unique
1351 ptr.
1352 (free_traceframe_info): Remove.
1353 (clear_traceframe_info): Don't manually free
1354 current_traceframe_info.
1355 (free_result): Remove.
1356 (parse_traceframe_info): Return a unique ptr.
1357 (get_traceframe_info): Adjust to unique ptr.
1358 * ctf.c (ctf_traceframe_info): Return a unique ptr.
1359 * remote.c (remote_traceframe_info): Return a unique ptr.
1360 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
1361 ptr.
1362 * target-debug.h (target_debug_print_traceframe_info_up): New
1363 macro.
1364 * target-delegates.c: Regenerate.
1365
4cdd21a8
SM
13662017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1367
1368 * memrange.h (struct mem_range): Add constructors.
1369 * tracepoint.h (struct traceframe_info) <memory>: Change type to
1370 std::vector<mem_range>.
1371 * tracepoint.c (free_traceframe_info): Don't manually free
1372 vector.
1373 (traceframe_info_start_memory): Adjust to vector change.
1374 (traceframe_available_memory): Likewise.
1375 * tracefile-tfile.c (build_traceframe_info): Likewise.
1376 * ctf.c (ctf_traceframe_info): Likewise.
1377
d0d292a2
SM
13782017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1379
1380 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
1381 std::vector<int>.
1382 * tracepoint.c (free_traceframe_info): Deallocate with delete.
1383 (traceframe_info_start_tvar): Adjust to vector change.
1384 (parse_traceframe_info): Allocate with new.
1385 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
1386 vector change.
1387 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
1388 change.
1389 tfile_traceframe_info): Allocate with new.
1390 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
1391 change.
1392
8d3c73ef
SM
13932017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1394
1395 * tracepoint.c (traceframe_info): Rename to...
1396 (current_traceframe_info): ...this.
1397 (clear_traceframe_info): Adjust.
1398 (get_traceframe_info): Adjust.
1399
b129dcac
SM
14002017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1401
1402 * nat/linux-osdata.c: Include algorithm.
1403 (compare_processes): Remove.
1404 (struct pid_pgid_entry): New struct.
1405 (linux_xfer_osdata_processgroups): Use std::vector instead of
1406 XNEWVEC.
1407
af5bf4ad
SM
14082017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1409
1410 * objfiles.h: Don't include symfile.h.
1411 (struct partial_symbol): Remove forward-declaration.
1412 (struct objfile) <global_psymbols, static_psymbols>: Change type
1413 to std::vector<partial_symbol *>.
1414 * objfiles.c (objfile::objfile): Don't memset those fields.
1415 (objfile::~objfile): Don't free those fields.
1416 * psympriv.h (struct psymbol_allocation_list): Remove
1417 forward-declaration.
1418 (add_psymbol_to_list): Change psymbol_allocation_list parameter
1419 to std::vector.
1420 (start_psymtab_common): Change parameters to std::vector.
1421 * psymtab.c: Include algorithm.
1422 (require_partial_symbols): Call shrink_to_fit.
1423 (find_pc_sect_psymbol): Adjust to vector change.
1424 (match_partial_symbol): Likewise.
1425 (lookup_partial_symbol): Likewise.
1426 (psym_relocate): Likewise.
1427 (dump_psymtab): Likewise.
1428 (recursively_search_psymtabs): Likewise.
1429 (compare_psymbols): Remove.
1430 (sort_pst_symbols): Adjust to vector change.
1431 (start_psymtab_common): Likewise.
1432 (end_psymtab_common): Likewise.
1433 (psymbol_bcache_full): De-constify return value.
1434 (add_psymbol_to_bcache): Likewise.
1435 (extend_psymbol_list): Remove.
1436 (append_psymbol_to_list): Adjust to vector change.
1437 (add_psymbol_to_list): Likewise.
1438 (init_psymbol_list): Likewise.
1439 (maintenance_info_psymtabs): Likewise.
1440 (maintenance_check_psymtabs): Likewise.
1441 * symfile.h (struct psymbol_allocation_list): Remove.
1442 * symfile.c (reread_symbols): Adjust to vector change.
1443 * dbxread.c (start_psymtab): Change type of parameters.
1444 (dbx_symfile_read): Adjust to vector change.
1445 (read_dbx_symtab): Likewise.
1446 (start_psymtab): Change type of parameters.
1447 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
1448 (create_partial_symtab): Likewise.
1449 (add_partial_symbol): Likewise.
1450 (write_one_signatured_type): Likewise.
1451 (recursively_write_psymbols): Likewise.
1452 * mdebugread.c (parse_partial_symbols): Likewise.
1453 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
1454 (scan_xcoff_symtab): Adjust to vector change.
1455 (xcoff_initial_scan): Likewise.
1456
3ec5942f
SM
14572017-10-13 Simon Marchi <simon.marchi@ericsson.com>
1458
1459 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
1460
2399fe6a
YQ
14612017-10-13 Yao Qi <yao.qi@linaro.org>
1462
1463 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
1464 Remove s390x-*-expedite, add s390x-expedite.
1465
4bf3f4a8
YQ
14662017-10-13 Yao Qi <yao.qi@linaro.org>
1467
1468 * features/s390-gs-linux64.c: Regenerated.
1469 * features/s390x-gs-linux64.c: Regenerated.
1470
9e86da07
TT
14712017-10-13 Tom Tromey <tom@tromey.com>
1472
1473 * compile/compile-object-run.c (do_module_cleanup): Use delete.
1474 * solib.c (update_solib_list, reload_shared_libraries_1): Use
1475 delete.
1476 * symfile.c (symbol_file_add_with_addrs): Use new.
1477 (symbol_file_add_separate): Update comment.
1478 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
1479 * jit.c (jit_object_close_impl): Use new.
1480 (jit_unregister_code): Use delete.
1481 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
1482 (~objfile): Rename from free_objfile.
1483 (free_objfile_separate_debug, do_free_objfile_cleanup)
1484 (free_all_objfiles, objfile_purge_solibs): Use delete.
1485 * objfiles.h (struct objfile): Add constructor and destructor.
1486 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
1487 (allocate_objfile, free_objfile): Don't declare.
1488 (struct objstats): Add initializers.
1489
c2508e90
SM
14902017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1491
1492 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
1493 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
1494 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
1495 * gdbarch.h: Regenerate.
1496 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
1497 Adjust comment.
1498 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
1499 (i386_displaced_step_fixup): Adjust comment.
1500 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
1501
a900ff72
TT
15022017-10-12 Tom Tromey <tom@tromey.com>
1503
1504 * prologue-value.h (pv_area::store_would_trash): Return bool.
1505 (pv_area::find_reg): Likewise.
1506 * prologue-value.c (pv_area::store_would_trash): Return bool.
1507 (pv_area::find_reg): Likewise.
1508
f7b7ed97
TT
15092017-10-12 Tom Tromey <tom@tromey.com>
1510
1511 * s390-linux-tdep.c (s390_store, s390_load)
1512 (s390_check_for_saved, s390_analyze_prologue): Update.
1513 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
1514 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
1515 * prologue-value.h (class pv_area): Move from prologue-value.c.
1516 Change names of members. Add constructor, destructor, member
1517 functions.
1518 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
1519 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
1520 (pv_area_fetch, pv_area_scan): Don't declare.
1521 * prologue-value.c (struct pv_area::area_entry): Now member of
1522 pv_area.
1523 (struct pv_area): Move to prologue-value.h.
1524 (pv_area::pv_area): Rename from make_pv_area.
1525 (pv_area::~pv_area): Rename from free_pv_area.
1526 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
1527 (clear_entries, find_entry, overlaps, store_would_trash, store)
1528 (fetch, find_reg, scan): Now member of pv_area.
1529 Remove "area" argument. Update.
1530 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
1531 Update.
1532 * mn10300-tdep.c (push_reg, check_for_saved)
1533 (mn10300_analyze_prologue): Update.
1534 * mep-tdep.c (is_arg_spill, check_for_saved)
1535 (mep_analyze_prologue): Update.
1536 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
1537 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
1538 (m32c_is_struct_return, m32c_analyze_prologue): Update.
1539 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
1540 Update.
1541 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
1542 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
1543
466eecee
SM
15442017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1545
1546 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
1547 * linux-nat.c (linux_nat_delete_thread): New variable.
1548 (lwp_free): Invoke linux_nat_delete_thread if set.
1549 (linux_nat_set_delete_thread): New function.
1550 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
1551 thread delete callback.
1552 * arm-linux-nat.c (arm_linux_delete_thread): New function.
1553 (_initialize_arm_linux_nat): Assign thread delete callback.
1554 * s390-linux-nat.c (s390_delete_thread): New function.
1555 (_initialize_s390_nat): Assign thread delete callback.
1556 * x86-linux-nat.c (x86_linux_add_target): Likewise.
1557 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
1558 function.
1559 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
1560 declaration.
1561 * nat/x86-linux.c (x86_linux_delete_thread): New function.
1562 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
1563
f71c8822
TT
15642017-10-09 Tom Tromey <tom@tromey.com>
1565
1566 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
1567 std::string.
1568 * tui/tui-layout.c (enum tui_status): Use std::string.
1569
981a3fb3
TT
15702017-10-11 Tom Tromey <tom@tromey.com>
1571
1572 * gdbthread.h (thread_command): Constify.
1573 * inferior.h (detach_command): Constify.
1574 * top.h (set_history, show_history): Constify.
1575 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
1576 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
1577 * bsd-kvm.c (bsd_kvm_cmd): Constify.
1578 * printcmd.c (set_command): Constify.
1579 (non_const_set_command): New function.
1580 * dcache.c (set_dcache_command, show_dcache_command): Constify.
1581 * breakpoint.c (enable_command, disable_command, delete_command)
1582 (catch_command, tcatch_command, set_breakpoint_cmd)
1583 (show_breakpoint_cmd): Constify.
1584 * macrocmd.c (macro_command): Constify.
1585 * infcmd.c (unset_command, kill_command, detach_command)
1586 (info_proc_cmd): Constify.
1587 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
1588 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
1589 (info_auto_load_cmd): Constify.
1590 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
1591 (unset_tdesc_cmd): Constify.
1592 * ada-lang.c (set_ada_command, show_ada_command)
1593 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
1594 * guile/guile.c (set_guile_command, show_guile_command)
1595 (info_guile_command): Constify.
1596 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
1597 Constify.
1598 * skip.c (skip_command): Constify.
1599 * compile/compile.c (_initialize_compile): Constify.
1600 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
1601 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
1602 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
1603 (maint_btrace_pt_show_cmd): Constify.
1604 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
1605 Constify.
1606 * python/python.c (user_show_python, user_set_python): Constify.
1607 * mips-tdep.c (set_mips_command, show_mips_command)
1608 (set_mipsfpu_command): Constify.
1609 * record-btrace.c (cmd_record_btrace_start)
1610 (cmd_set_record_btrace, cmd_show_record_btrace)
1611 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
1612 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
1613 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
1614 Constify.
1615 * symfile.c (overlay_command): Constify.
1616 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
1617 * cli/cli-logging.c (set_logging_command, show_logging_command):
1618 Constify.
1619 * cli/cli-dump.c (dump_command, append_command)
1620 (srec_dump_command, ihex_dump_command, verilog_dump_command)
1621 (tekhex_dump_command, binary_dump_command)
1622 (binary_append_command): Constify.
1623 * cli/cli-decode.c (struct cmd_list_element): Change type of
1624 "fun".
1625 * cli/cli-cmds.c (info_command, show_command, set_debug)
1626 (show_debug): Constify.
1627 (show_command): Add non-const overload.
1628 * top.c (set_history, show_history): Constify.
1629 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
1630 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
1631 * target.c (target_command): Constify.
1632 * sparc64-tdep.c (info_adi_command): Constify.
1633 * record-full.c (cmd_record_full_start): Constify.
1634 (set_record_full_command): Constify. Fix typo.
1635 (show_record_full_command): Constify.
1636 * thread.c (thread_command, thread_apply_command): Constify.
1637 * memattr.c (dummy_cmd): Constify.
1638 * value.c (function_command): Constify.
1639 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
1640 * probe.c (info_probes_command): Constify.
1641 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
1642 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
1643 (show_thread_cmd, set_thread_default_cmd)
1644 (show_thread_default_cmd): Constify.
1645 (check_empty): Constify.
1646 * tracepoint.c (tfind_command): Constify.
1647 * cp-support.c (maint_cplus_command): Constify.
1648 * windows-tdep.c (info_w32_command): Constify.
1649 * record.c (cmd_record_start, set_record_command)
1650 (show_record_command, info_record_command, cmd_record_goto):
1651 Constify.
1652 * ravenscar-thread.c (set_ravenscar_command)
1653 (show_ravenscar_command): Constify.
1654 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
1655 Constify.
1656 (add_internal_problem_command): Remove casts.
1657 * arc-tdep.c (maintenance_print_arc_command): Constify.
1658 * valprint.c (set_print, show_print, set_print_raw)
1659 (show_print_raw): Constify.
1660 * maint.c (maintenance_command, maintenance_info_command)
1661 (maintenance_print_command, maintenance_set_cmd)
1662 (maintenance_show_cmd, set_per_command_cmd)
1663 (show_per_command_cmd, maintenance_check_command): Constify.
1664 * language.c (set_check, show_check): Constify.
1665 * typeprint.c (show_print_type, set_print_type): Constify.
1666 * go32-nat.c (go32_info_dos_command): Constify.
1667
fdf44873
TT
16682017-10-11 Tom Tromey <tom@tromey.com>
1669
1670 * breakpoint.c (prepare_re_set_context): Remove.
1671 (breakpoint_re_set_one): Update. Don't use cleanups.
1672 (breakpoint_re_set): Use scoped_restore, std::string, and
1673 scoped_restore_current_language.
1674
81b1e71c
TT
16752017-10-11 Tom Tromey <tom@tromey.com>
1676
1677 * breakpoint.c (commands_command_1): Use std::string.
1678 (cleanup_executing_breakpoints): Remove.
1679 (bpstat_do_actions_1): Use scoped_restore.
1680 (bpstat_check_watchpoint): Use std::string.
1681 (decode_static_tracepoint_spec): Likewise.
1682 (break_range_command): Likewise.
1683 (watch_command_1): Likewise.
1684 (compare_breakpoints): Change argument types.
1685 (clear_command): Use std::vector.
1686 (cleanup_executing_breakpoints): Remove.
1687 (update_global_location_list): Use unique_xmalloc_ptr.
1688 (strace_command): Remove unused declaration.
1689
4f9d9906
JB
16902017-10-11 John Baldwin <jhb@FreeBSD.org>
1691
1692 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
1693 * NEWS: Mention new FreeBSD/arm native configuration.
1694 * configure.host: Add arm*-*-freebsd*.
1695 * configure.nat: Likewise.
1696 * arm-fbsd-nat.c: New file.
1697
7176dfd2
JB
16982017-10-11 John Baldwin <jhb@FreeBSD.org>
1699
1700 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
1701 (ALLDEPFILES): Add arm-fbsd-tdep.c.
1702 * NEWS: Mention new FreeBSD/arm target.
1703 * configure.tgt: Add arm*-*-freebsd*.
1704 * arm-fbsd-tdep.c: New file.
1705 * arm-fbsd-tdep.h: New file.
1706
fe220226
MR
17072017-10-11 Maciej W. Rozycki <macro@imgtec.com>
1708
1709 * linux-tdep.c (linux_make_corefile_notes): Remove call to
1710 `gdbarch_elfcore_write_linux_prpsinfo'.
1711 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
1712 method.
1713 (elf_internal_linux_prpsinfo): Remove declaration.
1714 * gdbarch.h: Regenerate.
1715 * gdbarch.c: Regenerate.
1716
a2f63b2e
MR
17172017-10-11 Maciej W. Rozycki <macro@imgtec.com>
1718
1719 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
1720 `set_gdbarch_elfcore_write_linux_prpsinfo'.
1721
458ca1d0
PA
17222017-10-11 Pedro Alves <palves@redhat.com>
1723
1724 * breakpoint.c (reattach_breakpoints): Delete.
1725 * breakpoint.h (reattach_breakpoints): Delete.
1726
905014d7
SM
17272017-10-11 Simon Marchi <simon.marchi@ericsson.com>
1728
1729 * symfile.c (registered_sym_fns): Make struct, not typedef.
1730 (DEF_VEC_O (registered_sym_fns)): Remove.
1731 (symtab_fns): Change type to std::vector.
1732 (add_symtab_fns): Adjust.
1733 (find_sym_fns): Adjust.
1734
56d704da
AK
17352017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
1736
1737 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
1738 * arc-tdep.h (arc_arch_is_em): New function.
1739 (arc_arch_is_hs): Likewise.
1740
7fa29be9
EB
17412017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
1742
1743 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
1744 parentheses in the declaration.
1745 (macro_lookup_inclusion): Likewise.
1746 (macro_lookup_definition): Likewise.
1747 * p-lang.h (pascal_builtin_types): Likewise.
1748 * tui/tui-data.c (tui_win_list): Likewise.
1749 * tui/tui-data.h (tui_win_list): Likewise.
1750 * utils.h (make_cleanup_free_section_addr_info): Likewise.
1751
d9b477e3
KB
17522017-10-11 Mark Rages <markrages@gmail.com>
1753
1754 * target-memory.c (block_boundaries): Fix for block address not
1755 aligned on block size.
1756
65630365
PA
17572017-10-10 Pedro Alves <palves@redhat.com>
1758 Tom Tromey <tom@tromey.com>
1759
1760 * breakpoint.c (struct captured_breakpoint_query_args)
1761 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
1762 (print_breakpoint): New.
1763 * breakpoint.h (print_breakpoint): Declare.
1764 * common/common-exceptions.h (enum return_reason): Remove
1765 references to catch_exceptions.
1766 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
1767 Delete.
1768 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
1769 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
1770 * gdb.h: Delete.
1771 * gdbthread.h (thread_select): Declare.
1772 * mi/mi-cmd-break.c: Don't include gdb.h.
1773 (breakpoint_notify): Use print_breakpoint.
1774 * mi/mi-cmd-catch.c: Don't include gdb.h.
1775 * mi/mi-interp.c: Don't include gdb.h.
1776 (mi_print_breakpoint_for_event): New.
1777 (mi_breakpoint_created, mi_breakpoint_modified): Use
1778 mi_print_breakpoint_for_event.
1779 * mi/mi-main.c: Don't include gdb.h.
1780 (mi_cmd_thread_select): Parse the global thread ID here. Use
1781 thread_select instead of gdb_thread_select.
1782 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
1783 of using gdb_list_thread_ids.
1784 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
1785 FILEIO_ENOSYS here.
1786 (remote_fileio_request): Use TRY/CATCH instead of
1787 catch_exceptions.
1788 * symfile-mem.c (struct symbol_file_add_from_memory_args)
1789 (symbol_file_add_from_memory_wrapper): Delete.
1790 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
1791 * thread.c: Don't include gdb.h.
1792 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
1793 (thread_alive): Use thread_select.
1794 (do_captured_thread_select): Delete, parts salvaged as ...
1795 (thread_select): ... this new function.
1796 (gdb_thread_select): Delete.
1797
bf469271
PA
17982017-10-10 Pedro Alves <palves@redhat.com>
1799 Tom Tromey <tom@tromey.com>
1800
1801 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
1802 and reverse logic.
1803 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
1804 No longer macros. Instead ...
1805 (enum wp_check_result): They're now values of this new
1806 enumeration.
1807 (watchpoint_check): Change return type to wp_check_result and
1808 parameter type to bpstat.
1809 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
1810 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
1811 catch_errors. Reverse logic of watchpoint_check call.
1812 (breakpoint_re_set_one): Now returns void and takes a breakpoint
1813 pointer as parameter.
1814 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
1815 * common/common-exceptions.c (throw_exception_sjlj): Update
1816 comments to avoid mentioning catch_errors.
1817 * exceptions.c (catch_errors): Delete.
1818 * exceptions.h: Update comments to avoid mentioning catch_errors.
1819 (catch_errors_ftype, catch_errors): Delete.
1820 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
1821 (hook_stop_stub): Delete.
1822 (restore_selected_frame): Change return type to void, and
1823 parameter type to const frame_id &.
1824 (restore_infcall_control_state): Use TRY/CATCH instead of
1825 catch_errors.
1826 * main.c (captured_command_loop): Return void and remove
1827 parameter. Remove references to catch_errors.
1828 (captured_main): Use TRY/CATCH instead of catch_errors.
1829 * objc-lang.c (objc_submethod_helper_data)
1830 (find_objc_msgcall_submethod_helper): Delete.
1831 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
1832 catch_errors.
1833 * record-full.c (record_full_message): Return void.
1834 (record_full_message_args, record_full_message_wrapper): Delete.
1835 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
1836 instead of catch_errors.
1837 * solib-aix.c (solib_aix_open_symbol_file_object): Change
1838 parameter type to int.
1839 * solib-darwin.c (open_symbol_file_object): Ditto.
1840 * solib-dsbt.c (open_symbol_file_object): Ditto.
1841 * solib-frv.c (open_symbol_file_object): Ditto.
1842 * solib-svr4.c (open_symbol_file_object): Ditto.
1843 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
1844 * solib.c (update_solib_list): Use TRY/CATCH instead of
1845 catch_errors.
1846 * solist.h (struct target_so_ops) <open_symbol_file_object>:
1847 Change type.
1848 * symmisc.c (struct print_symbol_args): Remove.
1849 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
1850 (print_symbol): Change type.
1851 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
1852 and remove parameters.
1853 (catch_errors): New.
1854 (get_windows_debug_event): Adjust.
1855
1a56bfa5
TT
18562017-10-09 Tom Tromey <tom@tromey.com>
1857
1858 * mi/mi-main.c (free_splay_tree): Remove.
1859 (list_available_thread_groups): Use splay_tree_up.
1860 * common/gdb_splay_tree.h: New file.
1861
0c478e2d
TT
18622017-10-09 Tom Tromey <tom@tromey.com>
1863
1864 * mi/mi-main.c (do_nothing): Remove.
1865 (list_available_thread_groups): Update.
1866
cbd2b4e3
PA
18672017-10-09 Pedro Alves <palves@redhat.com>
1868
1869 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
1870 reading registers when switching context.
1871
a181c0bf
JB
18722017-10-09 John Baldwin <jhb@FreeBSD.org>
1873
1874 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
1875 (fbsd_convert_siginfo): Likewise.
1876 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
1877
6e66f753
SM
18782017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
1879
1880 * configure.ac (try_guile_versions): Remove guile-2.2.
1881 * configure: Regenerate.
1882
890e9790
TT
18832017-10-09 Tom Tromey <tom@tromey.com>
1884
1885 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
1886 (COMPILE.pre): Use $(CXX).
1887
109483d9
PA
18882017-10-09 Pedro Alves <palves@redhat.com>
1889
1890 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
1891 Use bool.
1892 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
1893 * cp-support.h (cp_remove_params): Now returns a
1894 gdb::unique_xmalloc_ptr.
1895 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
1896 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
1897 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
1898 returning a gdb::unique_xmalloc_ptr.
1899 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
1900 * stack.c (find_frame_funname): Adjust to cp_remove_params
1901 returning a gdb::unique_xmalloc_ptr.
1902
791afaa2
TT
19032017-10-08 Tom Tromey <tom@tromey.com>
1904
1905 * dwarf2read.c (dwarf2_get_dwz_file): Use
1906 gdb::unique_xmalloc_ptr.
1907 (find_slot_in_mapped_hash): Likewise.
1908 (dwarf2_physname): Likewise.
1909 (create_dwo_unit_in_dwp_v1): Use std::string.
1910 (create_dwo_unit_in_dwp_v2): Likewise.
1911 (lookup_dwo_cutu): Likewise.
1912 (inherit_abstract_dies): Use std::vector.
1913 (read_array_type): Likewise.
1914 (dwarf_decode_macros): Remove unused declaration.
1915 (unsigned_int_compar): Remove.
1916 (dwarf2_build_psymtabs_hard): Use scoped_restore.
1917 (psymtabs_addrmap_cleanup): Remove.
1918
30a9c02f
TT
19192017-10-08 Tom Tromey <tom@tromey.com>
1920
1921 * frame-unwind.c (frame_unwind_try_unwinder): Update.
1922 * frame.h (frame_cleanup_after_sniffer): Declare.
1923 (frame_prepare_for_sniffer): Return void.
1924 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
1925 type of argument.
1926 (frame_prepare_for_sniffer): Return void.
1927
757325a3
TT
19282017-10-08 Tom Tromey <tom@tromey.com>
1929
1930 * utils.h (make_cleanup_value_free): Remove.
1931 * utils.c (do_value_free, struct cleanup): Remove.
1932 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
1933 Use gdb_value_up.
1934 * value.h (struct value_deleter): New.
1935 (gdb_value_up): New typedef.
1936
b9c04fb2
TT
19372017-10-08 Tom Tromey <tom@tromey.com>
1938
1939 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
1940 (make_cleanup_free_search_symbols): Remove.
1941 (search_symbols): Return std::vector.
1942 (symbol_search::compare_search_syms): Now member of
1943 symbol_search. Change arguments.
1944 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
1945 (symtab_symbol_info, rbreak_command): Update.
1946 * symtab.h (struct symbol_search) <next>: Remove.
1947 Add constructors.
1948 (symbol_search::operator<): New function.
1949 (symbol_search::operator==): New function.
1950 (search_symbols): Remove std::vector.
1951 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
1952 (symbol_search::compare_search_syms): Declare.
1953
0d28b0a5
YQ
19542017-10-06 Yao Qi <yao.qi@linaro.org>
1955
1956 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
1957 arch/aarch64-insn.o.
1958 Remove one rule.
1959 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
1960
71917808
YQ
19612017-10-06 Yao Qi <yao.qi@linaro.org>
1962
1963 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
1964 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
1965 arch/arm-linux.o respectively.
1966 * configure.tgt: Likewise.
1967
2081b2b2
YQ
19682017-10-06 Yao Qi <yao.qi@linaro.org>
1969
1970 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
1971 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
1972
a1b85d28
PA
19732017-10-06 Pedro Alves <palves@redhat.com>
1974
1975 * windows-nat.c: Include <algorithm>.
1976
d97987e2
YQ
19772017-10-06 Yao Qi <yao.qi@linaro.org>
1978
1979 * configure.tgt (i386_tobjs): New variable.
1980 (amd64_tobjs): New variable.
1981 Set $cpu_obs and $os_obs.
1982
f38307f5
YQ
19832017-10-06 Yao Qi <yao.qi@linaro.org>
1984
1985 * Makefile.in (CONFIG_SRC_SUBDIR): New.
1986 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
1987 (clean): Remove object files and dependency files.
1988 (distclean): Remove the directory.
1989 * configure.ac: Invoke AC_CONFIG_COMMANDS.
1990 * configure: Re-generated.
1991 * configure.tgt: Replace amd64.o with arch/amd64.o.
1992
2f924de6
JM
19932017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
1994
1995 PR build/22188
1996 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
1997 and SETEND.
1998
2fd9d7ca
PA
19992017-10-05 Pedro Alves <palves@redhat.com>
2000
2001 * linux-nat.c (linux_child_follow_fork): When following the parent
2002 and detaching the child, consult the parent thread's architecture
2003 instead of the child's.
2004
d13b8493
UW
20052017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
2006
2007 * ax.h: Do not include "doublest.h".
2008 (union agent_val): Remove.
2009
3b4b2f16
UW
20102017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
2011
2012 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
2013 (decimal_to_string): Return std::string object.
2014 (decimal_from_string): Accept std::string object. Return bool.
2015 (decimal_from_integral, decimal_from_doublest): Remove.
2016 (decimal_from_longest): Add prototype.
2017 (decimal_from_ulongest): Likewise.
2018 (decimal_to_longest): Likewise.
2019 (decimal_from_doublest): Likewise.
2020 * dfp.c: Do not include "gdbtypes.h" or "value.h".
2021 (MAX_DECIMAL_STRING): Move here.
2022 (decimal_to_string): Return std::string object.
2023 (decimal_from_string): Accept std::string object. Return bool.
2024 (decimal_from_integral): Remove, replace by ...
2025 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
2026 (decimal_to_longest): New function.
2027 (decimal_from_floating): Remove, replace by ...
2028 (decimal_from_doublest): ... this new function.
2029 (decimal_to_doublest): Update to new decimal_to_string interface.
2030
2031 * value.c (unpack_long): Use decimal_to_longest.
2032 * valops.c (value_cast): Use decimal_from_doublest instead of
2033 decimal_from_floating. Use decimal_from_[u]longest isntead of
2034 decimal_from_integral.
2035 * valarith.c (value_args_as_decimal): Likewise.
2036 * valprint.c (print_decimal_floating): Update to new
2037 decimal_to_string interface.
2038 * printcmd.c (printf_decfloat): Likewise.
2039 * c-exp.y (parse_number): Update to new decimal_from_string interface.
2040
1841ee5d
UW
20412017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
2042
2043 * doublest.h: Do not include "floatformat.h". Remove stale comments.
2044 * gdbtypes.c: Include "floatformat.h".
2045 * value.c: Likewise.
2046 * m68k-tdep.c: Likewise.
2047
2048 * findvar.c: Do not include "floatformat.h".
2049 * amd64-darwin-tdep.c: Likewise.
2050 * arm-linux-tdep.c: Likewise.
2051 * i386-darwin-tdep.c: Likewise.
2052 * i387-tdep.c: Likewise.
2053 * m68k-linux-tdep.c: Likewise.
2054 * mep-tdep.c: Likewise.
2055 * mips-tdep.c: Likewise.
2056 * nios2-tdep.c: Likewise.
2057 * s390-linux-tdep.c: Likewise.
2058 * sparc-obsd-tdep.c: Likewise.
2059 * sparc-tdep.c: Likewise.
2060 * sparc64-tdep.c: Likewise.
2061 * spu-tdep.c: Likewise.
2062 * tic6x-tdep.c: Likewise.
2063 * tilegx-tdep.c: Likewise.
2064 * vax-tdep.c: Likewise.
2065 * xstormy16-tdep.c: Likewise.
2066 * xtensa-tdep.c: Likewise.
2067
2068 * top.c: Do not include "doublest.h".
2069 * aarch64-tdep.c: Likewise.
2070 * alpha-tdep.c: Likewise.
2071 * arm-linux-tdep.c: Likewise.
2072 * m68k-linux-tdep.c: Likewise.
2073 * tilegx-tdep.c: Likewise.
2074 * xstormy16-tdep.c: Likewise.
2075
a80a6471
JB
20762017-10-05 John Baldwin <jhb@FreeBSD.org>
2077
2078 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
2079 (mipsn32_fbsd_sigframe): Define.
2080 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
2081 for FreeBSD/mipsn32.
2082
12c4bd7f
JB
20832017-10-05 John Baldwin <jhb@FreeBSD.org>
2084
2085 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
2086 AT_HWCAP.
2087
c91933e9
TG
20882017-10-05 Tristan Gingold <tgingold@free.fr>
2089
2090 * MAINTAINERS (Misc): Update my email address.
2091
5cd63fda
PA
20922017-10-04 Pedro Alves <palves@redhat.com>
2093
2094 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
2095 it instead of target_gdbarch.
2096 (get_remote_state, get_remote_packet_size): Adjust
2097 get_remote_arch_state calls, passing down target_gdbarch
2098 explicitly.
2099 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
2100 'gdbarch' and use it instead of target_gdbarch.
2101 (get_memory_packet_size): Adjust get_remote_arch_state calls,
2102 passing down target_gdbarch explicitly.
2103 (struct stop_reply) <arch>: New field.
2104 (remote_parse_stop_reply): Use the stopped thread's architecture,
2105 not the current inferior's. Save the architecture in the
2106 stop_reply.
2107 (process_stop_reply): Use the stop reply's architecture.
2108 (process_g_packet, remote_fetch_registers)
2109 (remote_prepare_to_store, store_registers_using_G)
2110 (remote_store_registers): Adjust get_remote_arch_state calls,
2111 using the regcache's architecture.
2112 (remote_get_trace_status): Adjust get_remote_arch_state calls,
2113 passing down target_gdbarch explicitly.
2114 * spu-multiarch.c (spu_thread_architecture): Defer to the target
2115 beneath instead of calling target_gdbarch.
2116 * target.c (default_thread_architecture): Use the specified
2117 inferior's architecture, instead of the current inferior's
2118 architecture (via target_gdbarch).
2119
ed4227b7
PA
21202017-10-04 Pedro Alves <palves@redhat.com>
2121
2122 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
2123 case.
2124 (regcache_print): Handle !target_has_registers here instead.
2125
55b11ddf
PA
21262017-10-04 Pedro Alves <palves@redhat.com>
2127
2128 * frame.c (create_test_frame): Delete.
2129 * frame.h (create_test_frame): Delete.
2130 * gdbarch-selftests.c: Include gdbthread.h and target.h.
2131 (class regcache_test): Delete.
2132 (test_target_has_registers, test_target_has_stack)
2133 (test_target_has_memory, test_target_prepare_to_store)
2134 (test_target_store_registers): New functions.
2135 (test_target_ops): New class.
2136 (register_to_value_test): Error out if there's already a
2137 process_stratum (or higher) target pushed. Create a fuller mock
2138 environment, with mock target_ops, inferior, address space, thread
2139 and inferior_ptid.
2140 * progspace.c (struct address_space): Move to ...
2141 * progspace.h (struct address_space): ... here.
2142 * regcache.h (regcache::~regcache, regcache::raw_write)
2143 [GDB_SELF_TEST]: No longer virtual.
2144
4c71c105
SM
21452017-10-04 Simon Marchi <simon.marchi@ericsson.com>
2146
2147 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
2148
73dcd72d
PA
21492017-10-04 Pedro Alves <palves@redhat.com>
2150
2151 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
2152 out of 'between TRY and CATCH'.
2153
44704526
PA
21542017-10-04 Pedro Alves <palves@redhat.com>
2155
2156 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
2157 * common/common-exceptions.h (TRY): Open an outermost scope.
2158 Expand intro comment.
2159 (CATCH): Reindent.
2160 (END_CATCH): Close the outermost scope.
2161 * completer.c (complete_line_internal): Add missing END_CATCH.
2162
bc3b087d
SDJ
21632017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2164
2165 * NEWS (Changes since GDB 8.0): Add entry about new
2166 'set-cwd-on-gdbserver' feature.
2167 (New remote packets): Add entry for QSetWorkingDir.
2168 * common/common-inferior.h (set_inferior_cwd): New prototype.
2169 * infcmd.c (set_inferior_cwd): Remove "static".
2170 (show_cwd_command): Expand text to include remote debugging.
2171 * remote.c: Add PACKET_QSetWorkingDir.
2172 (remote_protocol_features) <QSetWorkingDir>: New entry for
2173 PACKET_QSetWorkingDir.
2174 (extended_remote_set_inferior_cwd): New function.
2175 (extended_remote_create_inferior): Call
2176 "extended_remote_set_inferior_cwd".
2177 (_initialize_remote): Call "add_packet_config_cmd" for
2178 QSetWorkingDir.
2179
d092c5a2
SDJ
21802017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2181
2182 * NEWS (New commands): Mention "set/show cwd".
2183 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
2184 "cd" command's help text.
2185 * common/common-inferior.h (get_inferior_cwd): New prototype.
2186 * infcmd.c (inferior_cwd_scratch): New global variable.
2187 (set_inferior_cwd): New function.
2188 (get_inferior_cwd): Likewise.
2189 (set_cwd_command): Likewise.
2190 (show_cwd_command): Likewise.
2191 (_initialize_infcmd): Add "set/show cwd" commands.
2192 * inferior.h (class inferior) <cwd>: New field.
2193 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
2194 (fork_inferior): Change inferior's cwd before its execution.
2195 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
2196 to CreateProcess.
2197
7da0a886
SDJ
21982017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2199
2200 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
2201 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
2202 (COMMON_OBS): Add gdb_tilde_expand.o.
2203 * common/gdb_tilde_expand.c: New file.
2204 * common/gdb_tilde_expand.h: Likewise.
2205
db8dd160
MR
22062017-10-03 Maciej W. Rozycki <macro@imgtec.com>
2207
2208 * gdbarch.sh (objfile): Remove duplicate declaration.
2209 * gdbarch.h: Regenerate.
2210
f8bfbf22
TT
22112017-10-03 Tom Tromey <tom@tromey.com>
2212
2213 * utils.c (internal_vproblem): Use string_vprintf.
2214
5178ed48
TT
22152017-10-03 Tom Tromey <tom@tromey.com>
2216
2217 * printcmd.c (info_symbol_command): Use std::string.
2218
8cff8730
TT
22192017-10-03 Tom Tromey <tom@tromey.com>
2220
2221 * top.c (gdb_safe_append_history): Use std::string.
2222
895b8f30
TT
22232017-10-03 Tom Tromey <tom@tromey.com>
2224
2225 * event-top.c (stdin_event_handler): Update.
2226 * main.c (captured_main_1): Update.
2227 * top.h (make_delete_ui_cleanup): Remove.
2228 (struct ui): Add constructor and destructor.
2229 (new_ui, delete_ui): Remove.
2230 * top.c (make_delete_ui_cleanup): Remove.
2231 (new_ui_command): Use std::unique_ptr.
2232 (delete_ui_cleanup): Remove.
2233 (ui::ui): Rename from new_ui. Update.
2234 (free_ui): Remove.
2235 (ui::~ui): Rename from delete_ui. Update.
2236
0efef640
TT
22372017-10-03 Tom Tromey <tom@tromey.com>
2238
2239 * symfile.c (load_progress): Use gdb::byte_vector.
2240
245ad7d3
TT
22412017-10-03 Tom Tromey <tom@tromey.com>
2242
2243 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
2244 declaration.
2245 * printcmd.c (x_command): Remove unused declaration.
2246 * symfile.c (symbol_file_command): Remove unused declaration.
2247
e05550d7
TT
22482017-10-03 Tom Tromey <tom@tromey.com>
2249
2250 * utils.c (internal_vproblem): Use std::string.
2251 (defaulted_query): Likewise.
2252
b95de2b7
TT
22532017-10-03 Tom Tromey <tom@tromey.com>
2254
2255 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
2256 * top.c (execute_command_to_string): Update.
2257 * utils.c (make_cleanup_restore_page_info): Remove.
2258 (do_restore_page_info_cleanup): Remove.
2259 (set_batch_flag_and_restore_page_info):
2260 New.
2261 (make_cleanup_restore_page_info): Remove.
2262 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
2263 (~set_batch_flag_and_restore_page_info): New
2264 (make_cleanup_restore_uinteger): Remove.
2265 (make_cleanup_restore_integer): Remove.
2266 (struct restore_integer_closure): Remove.
2267 (restore_integer): Remove.
2268 * utils.h (struct set_batch_flag_and_restore_page_info): New
2269 class.
2270 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
2271 (make_cleanup_restore_page_info): Remove.
2272 (make_cleanup_restore_uinteger) Remove.
2273 (make_cleanup_restore_integer) Remove.
2274
07036511
TT
22752017-10-03 Tom Tromey <tom@tromey.com>
2276
2277 * record-full.h (record_full_gdb_operation_disable_set): Return
2278 scoped_restore_tmpl<int>.
2279 * infrun.c (adjust_pc_after_break): Update.
2280 (handle_signal_stop): Update.
2281 * record-full.c (record_full_gdb_operation_disable_set): Return
2282 scoped_restore_tmpl<int>.
2283 (record_full_wait_1, record_full_insert_breakpoint)
2284 (record_full_remove_breakpoint, record_full_save)
2285 (record_full_goto_insn): Update.
2286
45320ffa
TT
22872017-10-02 Tom Tromey <tom@tromey.com>
2288
2289 PR rust/22236:
2290 * rust-lang.c (rust_val_print_str): New function.
2291 (val_print_struct): Call it.
2292 (rust_subscript): Preserve name of slice type.
2293
b3e3859b
TT
22942017-10-02 Tom Tromey <tom@tromey.com>
2295
2296 * rust-lang.c (rust_subscript): Handle slices in
2297 EVAL_AVOID_SIDE_EFFECTS case.
2298
01af5e0d
TT
22992017-10-02 Tom Tromey <tom@tromey.com>
2300
2301 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
2302
888e3ddb
TT
23032017-10-02 Tom Tromey <tom@tromey.com>
2304
2305 * rust-lang.h (rust_slice_type): Add "extern".
2306
cc536b21
PA
23072017-10-02 Tom Tromey <tom@tromey.com>
2308 Pedro Alves <palves@redhat.com>
2309
2310 * ada-lang.h (ada_exc_info::operator<): Make const.
2311 (ada_exc_info::operator==): Make const.
2312 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
2313 Make const.
2314
386c8614
TT
23152017-09-29 Tom Tromey <tom@tromey.com>
2316
2317 * target.c (read_whatever_is_readable): Change type of "result".
2318 Update.
2319 (free_memory_read_result_vector): Remove.
2320 (read_memory_robust): Change return type. Update.
2321 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
2322 bin2hex, std::string.
2323 * target.h (memory_read_result_s): Remove typedef.
2324 (free_memory_read_result_vector): Remove.
2325 (read_memory_robust): Return std::vector.
2326
789c4b5e
TT
23272017-09-29 Tom Tromey <tom@tromey.com>
2328
2329 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
2330
ab816a27
TT
23312017-09-29 Tom Tromey <tom@tromey.com>
2332
2333 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
2334 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
2335 operator< and operator==.
2336 (ada_exceptions_list): Return a std::vector.
2337 * ada-lang.c (ada_exc_info::operator<): Rename from
2338 compare_ada_exception_info.
2339 (ada_exc_info::operator==): New.
2340 (sort_remove_dups_ada_exceptions_list): Change type of
2341 "exceptions".
2342 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
2343 (ada_add_global_exceptions): Likewise.
2344 (ada_exceptions_list_1): Return a std::vector.
2345 (ada_exceptions_list): Likewise.
2346
52f9abe4
TT
23472017-09-29 Tom Tromey <tom@tromey.com>
2348
2349 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
2350 'std::set *'.
2351 (print_one_inferior): Update.
2352 (free_vector_of_ints): Remove.
2353 (list_available_thread_groups): Change "ids" to std::set.
2354 (mi_cmd_list_thread_groups): Update.
2355 (struct collect_cores_data) <core>: Now a std::set.
2356 (collect_cores): Update.
2357 (unique): Remove.
2358 (print_one_inferior): Update.
2359
dcd5ddcc
TT
23602017-09-29 Tom Tromey <tom@tromey.com>
2361
2362 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
2363 (mi_execute_async_cli_command): Likewise.
2364 (mi_cmd_trace_frame_collected): Use field_fmt.
2365
45d288cc
TT
23662017-09-29 Tom Tromey <tom@tromey.com>
2367
2368 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
2369 gdb::byte_vector.
2370
6afe2f4a
TT
23712017-09-29 Tom Tromey <tom@tromey.com>
2372
2373 * mi/mi-parse.c (mi_parse): Remove unused declaration.
2374
9813429a
TT
23752017-09-29 Tom Tromey <tom@tromey.com>
2376
2377 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
2378
2d6960b4
TT
23792017-09-29 Tom Tromey <tom@tromey.com>
2380
2381 * varobj.h (varobj_gen_name): Return std::string.
2382 * varobj.c (varobj_gen_name): Return std::string.
2383 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
2384 (mi_cmd_var_delete): Don't copy "name".
2385
784c453a
TT
23862017-09-29 Tom Tromey <tom@tromey.com>
2387
2388 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
2389 (mi_cmd_break_insert_1): Update.
2390
a9bc57b9
TT
23912017-09-29 Tom Tromey <tom@tromey.com>
2392
2393 * target.h (make_scoped_defer_target_commit_resume): Update.
2394 * target.c (make_scoped_defer_target_commit_resume): Rename from
2395 make_cleanup_defer_target_commit_resume. Return a
2396 scoped_restore.
2397 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
2398
9754d8c4
TT
23992017-09-29 Tom Tromey <tom@tromey.com>
2400
2401 * main.c (captured_main_1): Remove unused declaration.
2402 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
2403
99ef965c
TT
24042017-09-29 Tom Tromey <tom@tromey.com>
2405
2406 * symtab.c (search_symbols): Remove unused outer cleanup.
2407 (make_source_files_completion_list): Remove unused declaration.
2408
42518ba7
TT
24092017-09-29 Tom Tromey <tom@tromey.com>
2410
2411 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
2412
726b2169
TT
24132017-09-29 Tom Tromey <tom@tromey.com>
2414
2415 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
2416 gdb::byte_vector.
2417
55b06432
TT
24182017-09-29 Tom Tromey <tom@tromey.com>
2419
2420 * complaints.c (vcomplaint): Use std::string.
2421
8abcee91
TT
24222017-09-29 Tom Tromey <tom@tromey.com>
2423
2424 * tracepoint.c (trace_variable_command): Use std::string.
2425 (encode_actions_1): Remove unused declarations.
2426 (create_tsv_from_upload): Use std::string.
2427
6ad94bc7
TT
24282017-09-29 Tom Tromey <tom@tromey.com>
2429
2430 * cp-support.c (gdb_demangle): Use std::string.
2431
2003f3d8
TT
24322017-09-29 Tom Tromey <tom@tromey.com>
2433
2434 * stack.c (parse_frame_specification): Use std::string
2435 (info_frame_command): Use gdb::unique_xmalloc_ptr.
2436
8f8accb5
TT
24372017-09-29 Tom Tromey <tom@tromey.com>
2438
2439 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
2440
200aa7b1
TT
24412017-09-29 Tom Tromey <tom@tromey.com>
2442
2443 * utils.c (vfprintf_maybe_filtered): Use std::string.
2444 (vfprintf_unfiltered): Likewise.
2445
606aae8a
TT
24462017-09-29 Tom Tromey <tom@tromey.com>
2447
2448 * event-top.c (top_level_prompt): Return std::string.
2449 (display_gdb_prompt): Update.
2450
bd413795
TT
24512017-09-29 Tom Tromey <tom@tromey.com>
2452
2453 * unittests/common-utils-selftests.c (format): New function.
2454 (string_vprintf_tests): New function.
2455 (_initialize_common_utils_selftests): Register new tests.
2456 * common/common-utils.c (string_vprintf): New function.
2457 * common/common-utils.h (string_vprintf): Declare.
2458
256642e8
PA
24592017-09-29 Pedro Alves <palves@redhat.com>
2460
2461 * common/rsp-low.c (unpack_varlen_hex): Constify.
2462 * common/rsp-low.h (unpack_varlen_hex): Constify.
2463 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
2464 Constify.
2465 * remote.c (remote_set_permissions, read_ptid)
2466 (remote_current_thread, remote_get_threads_with_qthreadinfo)
2467 (remote_static_tracepoint_marker_at)
2468 (remote_static_tracepoint_markers_by_strid)
2469 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
2470 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
2471 (parse_tracepoint_definition, parse_tsv_definition)
2472 (parse_static_tracepoint_marker_definition): Constify.
2473 * tracepoint.h (parse_static_tracepoint_marker_definition)
2474 (parse_trace_status, parse_tracepoint_status)
2475 (parse_tracepoint_definition, parse_tsv_definition): Constify.
2476
b6bb3468
PA
24772017-09-29 Pedro Alves <palves@redhat.com>
2478
2479 * remote.c (target_buf, target_buf_size): Delete.
2480 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
2481 Use the connection's packet buffer instead.
2482 All callers adjusted.
2483 (_initialize_remote): Remove references to target_buf and
2484 target_buf_size.
2485
b2f8eb7a
PA
24862017-09-28 Pedro Alves <palves@redhat.com>
2487
2488 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2489 unittests/common-utils-selftests.c.
2490 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
2491 (COMMON_OBS): Remove utils-selftests.o.
2492 * utils-selftests.c: Move to ...
2493 * unittests/common-utils-selftests.c: ... here and rename self
2494 test to "string_printf".
2495
08302ed2
DE
24962017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
2497
2498 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
2499 having NULL cus or tus.
2500
96a5a1d3
UW
25012017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2502
2503 * arm-tdep.c: (convert_from_extended): Remove.
2504 (convert_to_extended): Likewise.
2505 (arm_extract_return_value): Use convert_typed_floating.
2506 (arm_store_return_value): Likewise.
2507
2508 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
2509 * sh-tdep.c: Do not include "floatformat.h".
2510 (sh_littlebyte_bigword_type): New function.
2511 (sh_register_convert_to_virtual): Use convert_typed_floating.
2512 (sh_register_convert_to_raw): Likewise.
2513 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
2514 (sh64_littlebyte_bigword_type): New function.
2515 (sh64_extract_return_value): Use convert_typed_floating.
2516 (sh64_register_convert_to_virtual): Likewise.
2517 (sh64_register_convert_to_raw): Likewise.
2518
0db7851f
UW
25192017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2520
2521 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
2522 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
2523
2524 * gdbtypes.h (union type_specific): Make field floatformat hold
2525 just a single struct floatformat, not an array.
2526 (floatformat_from_type): Move here.
2527 * gdbtypes.c (floatformat_from_type): Move here. Update to
2528 changed TYPE_FLOATFORMAT definition.
2529 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
2530 (recursive_dump_type): Likewise.
2531 (init_float_type): Install correct floatformat for byte order.
2532 (arch_float_type): Likewise.
2533
77b7c781
UW
25342017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2535
2536 * gdbtypes.c (init_type): Change incoming argument from
2537 length-in-bytes to length-in-bits. Assert length is a
2538 multiple of TARGET_CHAR_BITS.
2539 (arch_type, arch_flags_type): Likewise.
2540 (init_integer_type): Update call to init_type.
2541 (init_character_type): Likewise.
2542 (init_boolean_type): Likewise.
2543 (init_float_type): Likewise.
2544 (init_decfloat_type): Likewise.
2545 (init_complex_type): Likewise.
2546 (init_pointer_type): Likewise.
2547 (objfile_type): Likewise.
2548 (arch_integer_type): Update call to arch_type.
2549 (arch_character_type): Likewise.
2550 (arch_boolean_type): Likewise.
2551 (arch_float_type): Likewise.
2552 (arch_decfloat_type): Likewise.
2553 (arch_complex_type): Likewise.
2554 (arch_pointer_type): Likewise.
2555 (gdbtypes_post_init): Likewise.
2556
2557 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
2558 (read_base_type): Likewise.
2559 * mdebugread.c (basic_type): Likewise.
2560 * stabsread.c (dbx_init_float_type): Likewise.
2561 (rs6000_builtin_type): Likewise.
2562 (read_range_type): Likewise. Also, fix call to init_integer_type
2563 with erroneous length argument.
2564
2565 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
2566 * d-lang.c (build_d_types): Likewise.
2567 * f-lang.c (build_fortran_types): Likewise.
2568 * go-lang.c (build_go_types): Likewise.
2569 * opencl-lang.c (build_opencl_types): Likewise.
2570 * jit.c (finalize_symtab): Likewise.
2571 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2572 (build_std_type_info_type): Likewise.
2573 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
2574 update call to arch_flags_type.
2575
2576 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
2577 arch_type.
2578 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
2579 * windows-tdep.c (windows_get_tlb_type): Likewise.
2580
2581 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
2582 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
2583 * m32c-tdep.c (make_types): Likewise.
2584 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
2585 (rl78_psw_type): Update call to arch_flags_type.
2586 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
2587 * rx-tdep.c (rx_psw_type): Likewise.
2588 (rx_fpsw_type): Likewise.
2589 * sparc-tdep.c (sparc_psr_type): Likewise.
2590 (sparc_fsr_type): Likewise.
2591 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
2592 (sparc64_ccr_type): Likewise.
2593 (sparc64_fsr_type): Likewise.
2594 (sparc64_fprs_type): Likewise.
2595
f21b4d5c
TT
25962017-09-27 Tom Tromey <tom@tromey.com>
2597
2598 * findcmd.c (find_command): Constify.
2599
643c2ffa
TT
26002017-09-27 Tom Tromey <tom@tromey.com>
2601
2602 * ada-tasks.c (task_command_1, task_command): Constify.
2603
510e5e56
TT
26042017-09-27 Tom Tromey <tom@tromey.com>
2605
2606 * symtab.c (maintenance_print_symbol_cache)
2607 (maintenance_flush_symbol_cache)
2608 (maintenance_print_symbol_cache_statistics): Constify.
2609
e503b191
TT
26102017-09-27 Tom Tromey <tom@tromey.com>
2611
2612 * inferior.c (detach_inferior_command, kill_inferior_command)
2613 (inferior_command): Constify.
2614
4e001312
TT
26152017-09-27 Tom Tromey <tom@tromey.com>
2616
2617 * regcache.c (regcache_print, maintenance_print_registers)
2618 (maintenance_print_raw_registers)
2619 (maintenance_print_cooked_registers)
2620 (maintenance_print_register_groups)
2621 (maintenance_print_remote_registers): Constify.
2622
77763700
TT
26232017-09-27 Tom Tromey <tom@tromey.com>
2624
2625 * printcmd.c (map_display_numbers, undisplay_command)
2626 (enable_disable_display_command, enable_display_command)
2627 (disable_display_command): Constify.
2628
4495129a
TT
26292017-09-27 Tom Tromey <tom@tromey.com>
2630
2631 * breakpoint.h (delete_command): Don't declare.
2632 * breakpoint.c (delete_command, enable_once_command)
2633 (enable_count_command, enable_delete_command, breakpoint_1)
2634 (maintenance_info_breakpoints, stopin_command, stopat_command)
2635 (delete_command, delete_trace_command, save_breakpoints)
2636 (save_breakpoints_command, save_tracepoints_command): Constify.
2637
3088cf40
TT
26382017-09-27 Tom Tromey <tom@tromey.com>
2639
2640 * macrocmd.c (macro_expand_command, macro_expand_once_command)
2641 (skip_ws, extract_identifier, macro_define_command)
2642 (macro_undef_command, macro_list_command): Constify.
2643
69f476a3
TT
26442017-09-27 Tom Tromey <tom@tromey.com>
2645
2646 * infcmd.c (environment_info, set_environment_command)
2647 (unset_environment_command, path_info, info_proc_cmd_1)
2648 (info_proc_cmd_mappings, info_proc_cmd_stat)
2649 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
2650 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
2651
c4a3e68e
TT
26522017-09-27 Tom Tromey <tom@tromey.com>
2653
2654 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
2655 Constify.
2656
c9d31bd6
TT
26572017-09-27 Tom Tromey <tom@tromey.com>
2658
2659 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
2660
1f3f85eb
TT
26612017-09-27 Tom Tromey <tom@tromey.com>
2662
2663 * demangle.c (demangle_command): Constify.
2664
9c504b5d
TT
26652017-09-27 Tom Tromey <tom@tromey.com>
2666
2667 * progspace.c (maintenance_info_program_spaces_command):
2668 Constify.
2669
6663cf91
TT
26702017-09-27 Tom Tromey <tom@tromey.com>
2671
2672 * compile/compile.c (check_raw_argument, compile_file_command)
2673 (compile_code_command, compile_print_command): Constify.
2674
34e5fa26
TT
26752017-09-27 Tom Tromey <tom@tromey.com>
2676
2677 * reggroups.c (maintenance_print_reggroups): Constify.
2678
8384c356
TT
26792017-09-27 Tom Tromey <tom@tromey.com>
2680
2681 * dwarf2read.c (save_gdb_index_command): Constify.
2682
884beb0c
TT
26832017-09-27 Tom Tromey <tom@tromey.com>
2684
2685 * stap-probe.c (info_probes_stap_command): Constify.
2686
e0b2930c
TT
26872017-09-27 Tom Tromey <tom@tromey.com>
2688
2689 * fork-child.c (unset_exec_wrapper_command): Constify.
2690
f938677d
TT
26912017-09-27 Tom Tromey <tom@tromey.com>
2692
2693 * btrace.c (get_uint, get_context_size, no_chunk)
2694 (maint_btrace_packet_history_cmd)
2695 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
2696 (maint_info_btrace_cmd): Constify.
2697
8949cb87
TT
26982017-09-27 Tom Tromey <tom@tromey.com>
2699
2700 * reverse.c (delete_bookmark_command): Constify.
2701
ac88e2de
TT
27022017-09-27 Tom Tromey <tom@tromey.com>
2703
2704 * remote.c (set_memory_packet_size)
2705 (set_memory_write_packet_size, show_memory_write_packet_size)
2706 (set_memory_read_packet_size, show_memory_read_packet_size)
2707 (compare_sections_command, packet_command, remote_put_command)
2708 (remote_get_command, remote_delete_command): Constify.
2709
bd4c9dfe
TT
27102017-09-27 Tom Tromey <tom@tromey.com>
2711
2712 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
2713 (set_mipsfpu_double_command, set_mipsfpu_none_command)
2714 (set_mipsfpu_auto_command): Constify.
2715
5e93d4c6
TT
27162017-09-27 Tom Tromey <tom@tromey.com>
2717
2718 * cli/cli-cmds.h (cd_command): Constify.
2719 * cli/cli-cmds.c (cd_command): Constify.
2720
fc41a75b
TT
27212017-09-27 Tom Tromey <tom@tromey.com>
2722
2723 * thread.c (thread_name_command, thread_find_command): Constify.
2724
67810076
TT
27252017-09-27 Tom Tromey <tom@tromey.com>
2726
2727 * probe.c (enable_probes_command, disable_probes_command):
2728 Constify.
2729
1d8b34a7
TT
27302017-09-27 Tom Tromey <tom@tromey.com>
2731
2732 * symfile.c (symbol_file_command): Constify.
2733 * gdbcore.h (deprecated_file_changed_hook): Constify.
2734 * exec.c (deprecated_file_changed_hook, exec_file_command)
2735 (file_command): Constify.
2736 * defs.h (symbol_file_command): Constify.
2737
442019e1
TT
27382017-09-27 Tom Tromey <tom@tromey.com>
2739
2740 * remote-fileio.c (set_system_call_allowed)
2741 (show_system_call_allowed): Constify.
2742
2983f7cb
TT
27432017-09-27 Tom Tromey <tom@tromey.com>
2744
2745 * tracepoint.c (delete_trace_variable_command)
2746 (tfind_end_command, tfind_start_command, tfind_pc_command)
2747 (tfind_tracepoint_command, tfind_line_command)
2748 (tfind_range_command, tfind_outside_command): Constify.
2749
4fd41b24
TT
27502017-09-27 Tom Tromey <tom@tromey.com>
2751
2752 * ax-gdb.c (maint_agent_printf_command, agent_command)
2753 (agent_eval_command): Constify.
2754
f2fc3015
TT
27552017-09-27 Tom Tromey <tom@tromey.com>
2756
2757 * tracepoint.c (info_scope_command): Constify.
2758 * python/python.c (gdbpy_decode_line): Constify.
2759 * python/py-breakpoint.c (bppy_init): Constify.
2760 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
2761 * location.h: (new_linespec_location)
2762 (string_to_event_location_basic, string_to_event_location):
2763 Constify.
2764 * location.c (new_linespec_location)
2765 (string_to_event_location_basic, string_to_event_location):
2766 Constify.
2767 * linespec.h (decode_line_with_current_source)
2768 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
2769 * linespec.c (linespec_lex_to_end)
2770 (decode_line_with_current_source)
2771 (decode_line_with_last_displayed): Constify.
2772 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
2773 Constify.
2774 * cli/cli-cmds.c (edit_command, list_command): Constify.
2775 * breakpoint.h (until_break_command, watch_command_wrapper)
2776 (awatch_command_wrapper, rwatch_command_wrapper)
2777 (init_ada_exception_breakpoint): Constify.
2778 * breakpoint.c (break_command_1, dprintf_command)
2779 (break_range_command, watch_command_wrapper)
2780 (rwatch_command_wrapper, awatch_command_wrapper)
2781 (until_break_command, init_ada_exception_breakpoint)
2782 (strace_marker_create_sals_from_location, trace_command)
2783 (ftrace_command, strace_command, struct tracepoint): Constify.
2784 * ax-gdb.c (agent_command_1): Constify.
2785 * ada-lang.c (ada_exception_sal): Constify.
2786
8c2f95f4
TT
27872017-09-27 Tom Tromey <tom@tromey.com>
2788
2789 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
2790 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
2791 (get_context_size, no_chunk, get_insn_history_modifiers)
2792 (cmd_record_insn_history, get_call_history_modifiers)
2793 (cmd_record_call_history): Constify.
2794
a0d65762
TT
27952017-09-27 Tom Tromey <tom@tromey.com>
2796
2797 * source.c (show_substitute_path_command)
2798 (unset_substitute_path_command, set_substitute_path_command):
2799 Constify.
2800
58971144
TT
28012017-09-27 Tom Tromey <tom@tromey.com>
2802
2803 * typeprint.c (maintenance_print_type): Constify.
2804 * maint.c (maintenance_dump_me, maintenance_demangle)
2805 (maintenance_time_display, maintenance_info_sections)
2806 (maintenance_print_statistics, maintenance_deprecate)
2807 (maintenance_undeprecate): Constify.
2808 (maintenance_do_deprecate): Constify. Use std::string.
2809 (maintenance_selftest): Constify.
2810 * gdbtypes.h (maintenance_print_type): Constify.
2811
c482f52c
TT
28122017-09-27 Tom Tromey <tom@tromey.com>
2813
2814 * hppa-tdep.c (unwind_command): Constify.
2815
e100df1a
TT
28162017-09-27 Tom Tromey <tom@tromey.com>
2817
2818 * target-descriptions.c (unset_tdesc_filename_cmd)
2819 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
2820 Constify.
2821
31d56ade
TT
28222017-09-27 Tom Tromey <tom@tromey.com>
2823
2824 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
2825
b961da0b
TT
28262017-09-27 Tom Tromey <tom@tromey.com>
2827
2828 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
2829
e2d8ae16
TT
28302017-09-27 Tom Tromey <tom@tromey.com>
2831
2832 * tui/tui-regs.c (tui_reg_command): Constify.
2833
863779b0
TT
28342017-09-27 Tom Tromey <tom@tromey.com>
2835
2836 * skip.c (skip_file_command, skip_function_command)
2837 (skip_enable_command, skip_disable_command, skip_delete_command):
2838 Constify.
2839
cdb34d4a
TT
28402017-09-27 Tom Tromey <tom@tromey.com>
2841
2842 * record-btrace.c (cmd_record_btrace_bts_start)
2843 (cmd_record_btrace_pt_start): Constify.
2844
e99c83e7
TT
28452017-09-27 Tom Tromey <tom@tromey.com>
2846
2847 * symmisc.c (maintenance_print_symbols)
2848 (maintenance_print_msymbols, maintenance_print_objfiles)
2849 (maintenance_info_symtabs, maintenance_check_symtabs)
2850 (maintenance_expand_symtabs, maintenance_info_line_tables):
2851 Constify.
2852
32faf971
TT
28532017-09-27 Tom Tromey <tom@tromey.com>
2854
2855 * top.c (new_ui_command): Constify.
2856
2cf311eb
TT
28572017-09-27 Tom Tromey <tom@tromey.com>
2858
2859 * symfile.c (add_symbol_file_command)
2860 (remove_symbol_file_command, list_overlays_command)
2861 (map_overlay_command, unmap_overlay_command)
2862 (overlay_auto_command, overlay_manual_command)
2863 (overlay_off_command, overlay_load_command): Constify.
2864
e6738699
TT
28652017-09-27 Tom Tromey <tom@tromey.com>
2866
2867 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2868 (info_spu_mailbox_command, info_spu_dma_command)
2869 (info_spu_proxydma_command): Constify.
2870
aa360cd5
TT
28712017-09-27 Tom Tromey <tom@tromey.com>
2872
2873 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
2874
898241a5
TT
28752017-09-27 Tom Tromey <tom@tromey.com>
2876
2877 * cli/cli-script.c (user_defined_command): Constify.
2878
2d0ac106
TT
28792017-09-27 Tom Tromey <tom@tromey.com>
2880
2881 * cli/cli-dump.c (dump_memory_command, dump_value_command)
2882 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
2883 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
2884 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
2885 (dump_binary_value, append_binary_memory, append_binary_value):
2886 Constify.
2887 (struct dump_context) <func>: Constify.
2888 (add_dump_command): Update.
2889
dede02ce
TT
28902017-09-27 Tom Tromey <tom@tromey.com>
2891
2892 * cli/cli-cmds.c (show_version, show_configuration)
2893 (source_command, show_user): Constify.
2894
d3cb6b99
TT
28952017-09-27 Tom Tromey <tom@tromey.com>
2896
2897 * target.c (maintenance_print_target_stack): Constify.
2898
1970a12f
TT
28992017-09-27 Tom Tromey <tom@tromey.com>
2900
2901 * interps.c (interpreter_exec_cmd): Constify.
2902
41243651
TT
29032017-09-27 Tom Tromey <tom@tromey.com>
2904
2905 * record-full.c (cmd_record_full_restore): Constify.
2906
4465d9db
TT
29072017-09-27 Tom Tromey <tom@tromey.com>
2908
2909 * memattr.c (enable_mem_command, disable_mem_command)
2910 (delete_mem_command): Constify.
2911
ad25e423
TT
29122017-09-27 Tom Tromey <tom@tromey.com>
2913
2914 * value.c (show_convenience): Constify.
2915
d64097b1
TT
29162017-09-27 Tom Tromey <tom@tromey.com>
2917
2918 * gdbcore.h (core_file_command): Update.
2919 * corefile.c (core_file_command): Constify.
2920
4d4589ef
TT
29212017-09-27 Tom Tromey <tom@tromey.com>
2922
2923 * user-regs.c (maintenance_print_user_registers): Constify.
2924
32a7bf17
TT
29252017-09-27 Tom Tromey <tom@tromey.com>
2926
2927 * cp-namespace.c (maintenance_cplus_namespace): Constify.
2928
4a475551
TT
29292017-09-27 Tom Tromey <tom@tromey.com>
2930
2931 * cp-support.c (first_component_command): Constify.
2932
990b9f9f
TT
29332017-09-27 Tom Tromey <tom@tromey.com>
2934
2935 * psymtab.c (maintenance_print_psymbols)
2936 (maintenance_info_psymtabs, maintenance_check_psymtabs):
2937 Constify.
2938
c281872e
TT
29392017-09-27 Tom Tromey <tom@tromey.com>
2940
2941 * windows-tdep.c (display_tib): Constify.
2942
5b64bf74
TT
29432017-09-27 Tom Tromey <tom@tromey.com>
2944
2945 * linux-fork.c (delete_checkpoint_command)
2946 (detach_checkpoint_command): Constify.
2947
4ada038f
TT
29482017-09-27 Tom Tromey <tom@tromey.com>
2949
2950 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
2951
57f5a81b
TT
29522017-09-27 Tom Tromey <tom@tromey.com>
2953
2954 * arc-tdep.c (dump_arc_instruction_command): Constify.
2955
b0a8e6c4
TT
29562017-09-27 Tom Tromey <tom@tromey.com>
2957
2958 * valprint.c (set_radix, show_radix): Constify.
2959
8d97dc1c
TT
29602017-09-27 Tom Tromey <tom@tromey.com>
2961
2962 * dtrace-probe.c (info_probes_dtrace_command): Constify.
2963
eb7c454d
TT
29642017-09-27 Tom Tromey <tom@tromey.com>
2965
2966 * command.h (not_just_help_class_command): Update.
2967 * cli/cli-decode.h (not_just_help_class_command): Update.
2968 * cli/cli-decode.c (not_just_help_class_command): Constify.
2969
e4e33335
TT
29702017-09-27 Tom Tromey <tom@tromey.com>
2971
2972 * gdb_bfd.c (maintenance_info_bfds): Constify.
2973
0450cc4c
TT
29742017-09-27 Tom Tromey <tom@tromey.com>
2975
2976 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
2977 overloads.
2978 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
2979 (do_const_cfunc): New function.
2980 (cmd_cfunc_eq): New overload.
2981 (cli_user_command_p): Check do_const_cfunc.
2982 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
2983 const_cfunc.
2984 * command.h (add_cmd): Add const overload and no-function
2985 overload.
2986 (set_cmd_cfunc): Add const overload.
2987 (cmd_const_cfunc_ftype): Declare.
2988 (cmd_cfunc_eq): Add const overload.
2989 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
2990 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
2991 overload.
2992
a9bbfbd8
TT
29932017-09-27 Tom Tromey <tom@tromey.com>
2994
2995 * macroexp.c (get_next_token_for_substitution): New function.
2996 (substitute_args): Call it. Check for __VA_OPT__.
2997
5230b05a
WT
29982017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
2999 Pedro Alves <palves@redhat.com>
3000
3001 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
3002 producer_is_icc_lt_14.
3003 (producer_is_icc_lt_14): New function.
3004 (check_producer): Add code for checking version of ICC.
3005 (producer_is_icc): Move to producer.c.
3006 (read_structure_type): Restrict ICC workaround to ICC<14.
3007 * producer.c: Include selftest.h.
3008 (producer_is_icc, producer_parsing_tests, _initialize_producer):
3009 New functions.
3010 * producer.h (producer_is_icc): New declaration.
3011
b32b108a
WT
30122017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
3013
3014 * Makefile.in (SFILES): Add producer.c.
3015 (COMMON_OBS): Add producer.o
3016 * amd64-tdep.c (producer.h): Add new include.
3017 * dwarf2read.c (producer.h): Add new include.
3018 * producer.c: New file.
3019 * producer.h: New file.
3020 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
3021 producer.c.
3022 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
3023 producer.h.
3024
5007d765
MK
30252017-09-26 Matthias Klose <doko@ubuntu.com>
3026
3027 * configure.ac: Search ncursesw before ncurses.
3028 Check ncursesw/ncurses.h before ncurses/ncurses.h.
3029 * gdb_curses.h: Include <ncursesw/ncurses.h>
3030 * config.in, configure: Regenerate.
3031
281c4447
RO
30322017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3033
3034 PR gdb/22185
3035 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
3036 obsolete.
3037 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
3038 Remove i386sol2 support.
3039 * configure.nat <i386sol2>: Remove.
3040 <sol2-64>: Fold into ...
3041 <sol2>: ... this.
3042 Move common settings to default section.
3043 Add sol-thread.o.
3044 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
3045 x86_64-*-solaris2.1[0-9]*>: Rename to ...
3046 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
3047 <i[34567]86-*-solaris*>: Remove.
3048 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
3049
3050 * configure.ac: Remove wctype in libw check.
3051 (_MSE_INT_H): Don't define on Solaris 7-9.
3052 <solaris*>: Remove libthread_db.so.1 check.
3053 * configure: Regenerate.
3054 * config.in: Regenerate.
3055
3056 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
3057 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
3058 (gdb_ps_size_t): Remove.
3059 Use base types in users.
3060 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
3061
3062 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
3063
39b06c20
RO
30642017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3065
3066 PR build/22206
3067 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
3068 (adi_is_addr_mapped): Likewise.
3069 (PSR_ICC): Don't redefine.
3070 (PSR_IMPL): Likewise.
3071
6c3e20f1
TT
30722017-09-25 Tom Tromey <tom@tromey.com>
3073
3074 * regcache.c (regcache::dump): Use string_printf.
3075
b292235f
TT
30762017-09-25 Tom Tromey <tom@tromey.com>
3077
3078 * regcache.c (class regcache_invalidator): New.
3079 (struct register_to_invalidate): Remove.
3080 (make_cleanup_regcache_invalidate): Remove.
3081 (regcache::raw_write): Use regcache_invalidator.
3082
9ac86b52
TT
30832017-09-25 Tom Tromey <tom@tromey.com>
3084
3085 * spu-tdep.c (spu2ppu_sniffer): Update.
3086 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
3087 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
3088 Remove.
3089 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
3090 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
3091 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
3092 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
3093 (frame_pop): Update.
3094
c0e383c6
TT
30952017-09-25 Tom Tromey <tom@tromey.com>
3096
3097 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
3098 * regcache.h (regcache_xfree): Don't declare.
3099 * regcache.c (regcache_xfree): Remove.
3100 (do_regcache_xfree): Use delete.
3101 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
3102 * linux-fork.c (free_fork): Use delete.
3103 (fork_save_infrun_state): Likewise.
3104 * jit.c (jit_dealloc_cache): Use delete.
3105 * infrun.c (discard_infcall_suspend_state): Use delete.
3106
791199cc
TT
31072017-09-25 Tom Tromey <tom@tromey.com>
3108
3109 * regcache.h (regcache_xmalloc): Don't declare.
3110 (regcache_raw_set_cached_value): Update comment.
3111 * regcache.c (regcache_xmalloc): Remove.
3112 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
3113 * jit.c (jit_frame_sniffer): Use new.
3114 * frame.c (frame_save_as_regcache): Use new.
3115
289e23aa
AA
31162017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3117
3118 * NEWS: Advertise support for guarded-storage registers on IBM z.
3119
1b63490c
AA
31202017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3121
3122 * s390-linux-nat.c (have_regset_gs): New static variable.
3123 (s390_linux_fetch_inferior_registers): Handle guarded-storage
3124 control block and guarded-storage broadcast control regsets.
3125 (s390_read_description): Detect whether the target has
3126 guarded-storage support, return appropriate tdesc.
3127 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
3128 (features/s390x-gs-linux64.c): Likewise.
3129 (struct gdbarch_tdep) <have_gs>: New field.
3130 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
3131 (s390_gsbc_regset): New variables.
3132 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
3133 and s390_gsbc_regset, if applicable.
3134 (s390_core_read_description): Check whether core file was from a
3135 target with guarded-storage support; include appropriate regsets.
3136 (s390_gdbarch_init): Add registers for guarded-storage support.
3137 (_initialize_s390_tdep): Initialize new target descriptions that
3138 include registers for guarded-storage support.
3139 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
3140 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
3141 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
3142 (S390_NUM_REGS): Adjust macro definition.
3143 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
3144 (tdesc_s390x_gs_linux64): New declarations.
3145
96235dc1
AA
31462017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3147
3148 * features/s390-gs-linux64.xml: New file.
3149 * features/s390-gs.xml: New file.
3150 * features/s390-gsbc.xml: New file.
3151 * features/s390x-gs-linux64.xml: New file.
3152 * features/Makefile (WHICH): Add s390-gs-linux64 and
3153 s390x-gs-linux64.
3154 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
3155 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
3156 * features/s390-gs-linux64.c: New generated file.
3157 * features/s390x-gs-linux64.c: New file.
3158 * regformats/s390-gs-linux64.dat: New file.
3159 * regformats/s390x-gs-linux64.dat: New file.
3160
b4a7c699
TT
31612017-09-23 Tom Tromey <tom@tromey.com>
3162
3163 * defs.h (make_cleanup_override_quit_handler): Don't declare.
3164
c2f97536
TT
31652017-09-22 Tom Tromey <tom@tromey.com>
3166
3167 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
3168 type to scoped_restore_tmpl.
3169 <scoped_input_handler>: Initialize m_quit_handler directly.
3170
43573013
SDJ
31712017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
3172
3173 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
3174 (cd_command): Likewise. Free "current_directory" before
3175 assigning to it.
3176 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
3177 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
3178 * top.c (gdb_dirbuf): Remove global declaration.
3179 * top.h (gdb_dirbuf): Likewise.
3180
6ec2e0f5
SDJ
31812017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
3182
3183 * gnulib/aclocal.m4: Regenerate.
3184 * gnulib/config.in: Regenerate.
3185 * gnulib/configure: Regenerate.
3186 * gnulib/import/Makefile.am: Regenerate.
3187 * gnulib/import/Makefile.in: Regenerate.
3188 * gnulib/import/assure.h: New file.
3189 * gnulib/import/at-func.c: Likewise
3190 * gnulib/import/chdir-long.c: New file.
3191 * gnulib/import/chdir-long.h: New file.
3192 * gnulib/import/cloexec.c: New file.
3193 * gnulib/import/cloexec.h: New file.
3194 * gnulib/import/close.c: New file.
3195 * gnulib/import/closedir.c: New file.
3196 * gnulib/import/dirent-private.h: New file.
3197 * gnulib/import/dup-safer.c: New file.
3198 * gnulib/import/dup.c: New file.
3199 * gnulib/import/dup2.c: New file.
3200 * gnulib/import/error.c: New file.
3201 * gnulib/import/error.h: New file.
3202 * gnulib/import/exitfail.c: New file.
3203 * gnulib/import/exitfail.h: New file.
3204 * gnulib/import/fchdir.c: New file.
3205 * gnulib/import/fcntl.c: New file.
3206 * gnulib/import/fcntl.in.h: New file.
3207 * gnulib/import/fd-hook.c: New file.
3208 * gnulib/import/fd-hook.h: New file.
3209 * gnulib/import/fd-safer.c: New file.
3210 * gnulib/import/fdopendir.c: New file.
3211 * gnulib/import/filename.h: New file.
3212 * gnulib/import/filenamecat-lgpl.c: New file.
3213 * gnulib/import/filenamecat.h: New file.
3214 * gnulib/import/fstat.c: New file.
3215 * gnulib/import/fstatat.c: New file.
3216 * gnulib/import/getcwd-lgpl.c: New file.
3217 * gnulib/import/getcwd.c: New file.
3218 * gnulib/import/getdtablesize.c: New file.
3219 * gnulib/import/getlogin_r.c: New file.
3220 * gnulib/import/getprogname.c: New file.
3221 * gnulib/import/getprogname.h: New file.
3222 * gnulib/import/gettext.h: New file.
3223 * gnulib/import/glob-libc.h: New file.
3224 * gnulib/import/glob.c: New file.
3225 * gnulib/import/glob.in.h: New file.
3226 * gnulib/import/intprops.h: New file.
3227 * gnulib/import/m4/chdir-long.m4: New file.
3228 * gnulib/import/m4/close.m4: New file.
3229 * gnulib/import/m4/closedir.m4: New file.
3230 * gnulib/import/m4/d-ino.m4: New file.
3231 * gnulib/import/m4/d-type.m4: New file.
3232 * gnulib/import/m4/dup.m4: New file.
3233 * gnulib/import/m4/dup2.m4: New file.
3234 * gnulib/import/m4/error.m4: New file.
3235 * gnulib/import/m4/fchdir.m4: New file.
3236 * gnulib/import/m4/fcntl.m4: New file.
3237 * gnulib/import/m4/fcntl_h.m4: New file.
3238 * gnulib/import/m4/fdopendir.m4: New file.
3239 * gnulib/import/m4/filenamecat.m4: New file.
3240 * gnulib/import/m4/fstat.m4: New file.
3241 * gnulib/import/m4/fstatat.m4: New file.
3242 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
3243 * gnulib/import/m4/getcwd-path-max.m4: New file.
3244 * gnulib/import/m4/getcwd.m4: New file.
3245 * gnulib/import/m4/getdtablesize.m4: New file.
3246 * gnulib/import/m4/getlogin_r.m4: New file.
3247 * gnulib/import/m4/getprogname.m4: New file.
3248 * gnulib/import/m4/glob.m4: New file.
3249 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3250 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3251 * gnulib/import/m4/mempcpy.m4: New file.
3252 * gnulib/import/m4/memrchr.m4: New file.
3253 * gnulib/import/m4/mode_t.m4: New file.
3254 * gnulib/import/m4/msvc-inval.m4: New file.
3255 * gnulib/import/m4/msvc-nothrow.m4: New file.
3256 * gnulib/import/m4/open.m4: New file.
3257 * gnulib/import/m4/openat.m4: New file.
3258 * gnulib/import/m4/opendir.m4: New file.
3259 * gnulib/import/m4/readdir.m4: New file.
3260 * gnulib/import/m4/realloc.m4: New file.
3261 * gnulib/import/m4/rewinddir.m4: New file.
3262 * gnulib/import/m4/save-cwd.m4: New file.
3263 * gnulib/import/m4/strdup.m4: New file.
3264 * gnulib/import/m4/strerror.m4: New file.
3265 * gnulib/import/m4/unistd-safer.m4: New file.
3266 * gnulib/import/mempcpy.c: New file.
3267 * gnulib/import/memrchr.c: New file.
3268 * gnulib/import/msvc-inval.c: New file.
3269 * gnulib/import/msvc-inval.h: New file.
3270 * gnulib/import/msvc-nothrow.c: New file.
3271 * gnulib/import/msvc-nothrow.h: New file.
3272 * gnulib/import/open.c: New file.
3273 * gnulib/import/openat-die.c: New file.
3274 * gnulib/import/openat-priv.h: New file.
3275 * gnulib/import/openat-proc.c: New file.
3276 * gnulib/import/openat.c: New file.
3277 * gnulib/import/openat.h: New file.
3278 * gnulib/import/opendir.c: New file.
3279 * gnulib/import/pipe-safer.c: New file.
3280 * gnulib/import/readdir.c: New file.
3281 * gnulib/import/realloc.c: New file.
3282 * gnulib/import/rewinddir.c: New file.
3283 * gnulib/import/save-cwd.c: New file.
3284 * gnulib/import/save-cwd.h: New file.
3285 * gnulib/import/strdup.c: New file.
3286 * gnulib/import/strerror-override.c: New file.
3287 * gnulib/import/strerror-override.h: New file.
3288 * gnulib/import/strerror.c: New file.
3289 * gnulib/import/unistd--.h: New file.
3290 * gnulib/import/unistd-safer.h: New file.
3291 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
3292 "getcwd" and "glob".
3293 * ser-tcp.c: Undefine "close" before redefining it.
3294
432ae719
SM
32952017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3296
3297 * guile/scm-value.c (gdbscm_value_address): Initialize address,
3298 get rid of res_val.
3299
4fa7574e
RO
33002017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3301
3302 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
3303 <sol2,sparc>: Likewise.
3304 <sol2-64,i386>: Likewise.
3305
3306 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
3307 -Wdeprecated-declarations on *-*-solaris*.
3308 * configure: Regenerate.
3309
3310 * procfs.c: Include "nat/inferior.h".
3311 (procfs_info_proc): Fix typo.
3312
f6327dcb
KB
33132017-09-21 Kevin Buettner <kevinb@redhat.com>
3314
3315 * remote.c (vector): Include.
3316 (struct private_thread_info): Add field, thread_handle.
3317 (free_private_thread_info): Deallocate storage associated with
3318 thread handle.
3319 (get_private_info_thread): Initialize `thread_handle' field.
3320 (struct thread_item): Add field, thread_handle.
3321 (clear_threads_listing_context): Deallocate storage associated
3322 with thread handle.
3323 (start_thread): Add support for "handle" attribute.
3324 (thread_attributes): Add "handle".
3325 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
3326 field.
3327 (remote_update_thread_list): Update thread_handle.
3328 (remote_thread_handle_to_thread_info): New function.
3329 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
3330
fbbe5337
KB
33312017-09-21 Kevin Buettner <kevinb@redhat.com>
3332
3333 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
3334 function.
3335 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
3336 * python/python-internal.h (thread_object_type): Declare.
3337
e04ee09e
KB
33382017-09-21 Kevin Buettner <kevinb@redhat.com>
3339
3340 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
3341 (target_thread_handle_to_thread_info): Declare.
3342 * target.c (target_thread_handle_to_thread_info): New function.
3343 * target-delegates.c: Regenerate.
3344 * gdbthread.h (find_thread_by_handle): Declare.
3345 * thread.c (find_thread_by_handle): New function.
3346 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
3347 function.
3348 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
3349
1e5b66ed
SM
33502017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3351
3352 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
3353
ebe48ba0
SM
33542017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3355
3356 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
3357
0a0bf5dc
YQ
33582017-09-21 Yao Qi <yao.qi@linaro.org>
3359
3360 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
3361 to gdb_target_obs.
3362
d1b0a7bf
TT
33632017-09-20 Tom Tromey <tom@tromey.com>
3364
3365 * breakpoint.c (struct counted_command_line): Remove.
3366 (breakpoint_commands): Update.
3367 (alloc_counted_command_line, incref_counted_command_line)
3368 (decref_counted_command_line, do_cleanup_counted_command_line)
3369 (make_cleanup_decref_counted_command_line): Remove.
3370 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
3371 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
3372 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
3373 (save_breakpoints): Update.
3374 * breakpoint.h (counted_command_line): Now a typedef to
3375 shared_ptr.
3376 (struct breakpoint) <commands>: Now a counted_command_line.
3377 (struct bpstats) <command>: Likewise.
3378
48649e1b
TT
33792017-09-20 Tom Tromey <tom@tromey.com>
3380
3381 * breakpoint.c (struct commands_info, do_map_commands_command):
3382 Remove.
3383 (commands_command_1): Update.
3384 (iterate_over_related_breakpoints): Take a function_view.
3385 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
3386 (delete_command): Update.
3387 (map_breakpoint_numbers): Take a function_view.
3388 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
3389 (disable_command): Update.
3390 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
3391 (enable_command): Update.
3392 (struct disp_data, do_enable_breakpoint_disp)
3393 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
3394 (do_map_enable_delete_breakpoint): Remove.
3395 (enable_once_command, enable_count_command, enable_delete_command)
3396 (delete_trace_variable_command): Update.
3397
04afa70c
TT
33982017-09-20 Tom Tromey <tom@tromey.com>
3399
3400 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
3401 (bpstat_clear): Use delete.
3402 (bpstats): New constructors.
3403 (bpstat_copy, bpstat_stop_status): Use new.
3404 (dprintf_after_condition_true): Update.
3405 * breakpoint.h (bpstats::bpstats): Add constructors.
3406 (bpstats::~bpstats): Add destructor.
3407
c83833f4
PA
34082017-09-20 Pedro Alves <palves@redhat.com>
3409
3410 * eval.c (make_params): Delete, refactored as ...
3411 (class fake_method): ... this new type's ctor.
3412 (fake_method::~fake_method): New.
3413 (evaluate_subexp_standard): Use 'fake_method'.
3414
223ffa71
TT
34152017-09-20 Tom Tromey <tom@tromey.com>
3416
3417 * windows-nat.c (get_windows_debug_event, windows_wait)
3418 (do_initial_windows_stuff, windows_attach): Update.
3419 * utils.c (vwarning, internal_vproblem): Update.
3420 (ui_unregister_input_event_handler_cleanup)
3421 (prepare_to_handle_input): Remove.
3422 (class scoped_input_handler): New.
3423 (defaulted_query, prompt_for_continue): Update.
3424 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
3425 Update.
3426 * top.c (undo_terminal_modifications_before_exit): Update.
3427 * target/target.h (target_terminal_init, target_terminal_inferior)
3428 (target_terminal_ours): Don't declare.
3429 (class target_terminal): New.
3430 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
3431 (target_terminal_ours_for_output)
3432 (make_cleanup_restore_target_terminal): Don't declare.
3433 (target_terminal_info): Remove.
3434 * target.c (enum terminal_state, terminal_state): Remove.
3435 (target_terminal::terminal_state): Define.
3436 (target_terminal::init): Rename from target_terminal_init.
3437 (target_terminal::inferior): Rename from
3438 target_terminal_inferior.
3439 (target_terminal::ours): Rename from target_terminal_ours.
3440 (target_terminal::ours_for_output): Rename from
3441 target_terminal_ours_for_output.
3442 (target_terminal::info): New method.
3443 (cleanup_restore_target_terminal)
3444 (make_cleanup_restore_target_terminal): Remove.
3445 * solib.c (handle_solib_event): Update.
3446 * remote.c (remote_serial_quit_handler): Update.
3447 (remote_terminal_inferior, remote_wait_as): Update.
3448 * record-full.c (record_full_wait_1): Update.
3449 * nto-procfs.c (procfs_create_inferior): Update.
3450 * nat/fork-inferior.c (startup_inferior): Update.
3451 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
3452 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
3453 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
3454 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
3455 (mi_breakpoint_created, mi_breakpoint_deleted)
3456 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
3457 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
3458 (mi_user_selected_context_changed, report_initial_inferior):
3459 Update.
3460 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
3461 (linux_nat_terminal_inferior): Update.
3462 * infrun.c (follow_fork_inferior)
3463 (handle_vfork_child_exec_or_exit, do_target_resume)
3464 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
3465 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
3466 Update.
3467 * inflow.c (child_terminal_init, info_terminal_command): Update.
3468 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
3469 (attach_command): Update.
3470 * infcall.c (call_thread_fsm_should_stop): Update.
3471 * gnu-nat.c (gnu_attach): Update.
3472 * extension.c (struct active_ext_lang_state)
3473 (restore_active_ext_lang): Update.
3474 * exceptions.c (print_flush): Update.
3475 * event-top.c (async_enable_stdin, default_quit_handler): Update.
3476 (struct quit_handler_cleanup_data, restore_quit_handler)
3477 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
3478 Remove.
3479 * cp-support.c (gdb_demangle): Update.
3480 * breakpoint.c (update_inserted_breakpoint_locations)
3481 (insert_breakpoint_locations, handle_jit_event)
3482 (disable_breakpoints_in_unloaded_shlib): Update.
3483 * annotate.c (annotate_breakpoints_invalid)
3484 (annotate_frames_invalid): Update.
3485
013af3fc
TT
34862017-09-20 Tom Tromey <tom@tromey.com>
3487
3488 * main.c (catch_command_errors): Rename from
3489 catch_command_errors_const.
3490 (captured_main_1): Update.
3491
06871ae8
PA
34922017-09-20 Pedro Alves <palves@redhat.com>
3493
3494 * cli/cli-cmds.c (list_command): Use print_sal_location.
3495 (print_sal_location): New function.
3496 (ambiguous_line_spec): Use print_sal_location.
3497 * linespec.c (symbol_to_sal): Record the symbol in the sal.
3498 * symtab.c (find_function_start_sal): Likewise.
3499 * symtab.h (symtab_and_line::symbol): New field.
3500
e5f25bc5
PA
35012017-09-20 Pedro Alves <palves@redhat.com>
3502
3503 * linespec.c (minsym_found): Handle non-text minsyms.
3504 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
3505
1b7fa39e
WT
35062017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
3507
3508 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
3509 backslash.
3510
37dd0825
WT
35112017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
3512
3513 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
3514 vmovups instead vmovaps.
3515 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
3516
4e5a4f58
JB
35172017-09-19 John Baldwin <jhb@FreeBSD.org>
3518
3519 * NEWS (Changes since GDB 8.0): Add starti.
3520 * infcmd.c (enum run_break): New.
3521 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
3522 case.
3523 (run_command): Use enum run_how.
3524 (start_command): Likewise.
3525 (starti_command): New function.
3526 (RUN_ARGS_HELP): New macro.
3527 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
3528 commands. Add starti command.
3529
aa70c9f1
YQ
35302017-09-19 Yao Qi <yao.qi@linaro.org>
3531
3532 * Makefile.in (monitor.o): Remove the rule.
3533
d6541620
YQ
35342017-09-19 Yao Qi <yao.qi@linaro.org>
3535
3536 * annotate.h (struct annotate_arg_emitter): Use
3537 DISABLE_COPY_AND_ASSIGN.
3538 * common/refcounted-object.h (refcounted_object): Likewise.
3539 * completer.h (struct completion_result): Likewise.
3540 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
3541 * filename-seen-cache.h (filename_seen_cache): Likewise.
3542 * gdbcore.h (thread_section_name): Likewise.
3543 * gdb_regex.h (compiled_regex): Likewise.
3544 * gdbthread.h (scoped_restore_current_thread): Likewise.
3545 * inferior.h (scoped_restore_current_inferior): Likewise.
3546 * jit.c (jit_reader): Likewise.
3547 * linespec.h (struct linespec_result): Likewise.
3548 * mi/mi-parse.h (struct mi_parse): Likewise.
3549 * nat/fork-inferior.c (execv_argv): Likewise.
3550 * progspace.h (scoped_restore_current_program_space): Likewise.
3551 * python/python-internal.h (class gdbpy_enter): Likewise.
3552 * regcache.h (regcache): Likewise.
3553 * target-descriptions.c (struct tdesc_reg): Likewise.
3554 (struct tdesc_type): Likewise.
3555 (struct tdesc_feature): Likewise.
3556 * ui-out.h (ui_out_emit_type): Likewise.
3557
0615127c
SM
35582017-09-18 Simon Marchi <simon.marchi@ericsson.com>
3559
3560 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
3561 label abort_expression.
3562
5e187554
SM
35632017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3564
3565 * common/buffer.c (buffer_xml_printf): Adjust.
3566 * common/xml-utils.c (xml_escape_text): Change return type to
3567 std::string, update code accordingly.
3568 * common/xml-utils.h (xml_escape_text): Change return type to
3569 std::string.
3570 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
3571 * windows-tdep.c (windows_xfer_shared_library): Adjust.
3572 * unittests/xml-utils-selftests.c (test_xml_escape_text):
3573 Adjust.
3574
c3d7b541
SM
35752017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3576
3577 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
3578 (SUBDIR_UNITTESTS_OBS): Add new object file.
3579 * unittests/xml-utils-selftests.c: New file.
3580
1526853e
SM
35812017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3582
3583 * common/selftest.h (selftest): New struct/interface.
3584 (register_test): Add name parameter, add new overload.
3585 (run_tests): Add filter parameter.
3586 (for_each_selftest_ftype): New typedef.
3587 (for_each_selftest): New declaration.
3588 * common/selftest.c (tests): Change type to
3589 map<string, unique_ptr<selftest>>.
3590 (simple_selftest): New struct.
3591 (register_test): New function.
3592 (register_test): Add name parameter and use it.
3593 (run_tests): Add filter parameter and use it. Add prints.
3594 Adjust to vector -> map change.
3595 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
3596 registering selftests.
3597 * arm-tdep.c (_initialize_arm_tdep): Likewise.
3598 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
3599 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
3600 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
3601 * findvar.c (_initialize_findvar): Likewise.
3602 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
3603 * maint.c (maintenance_selftest): Update call to run_tests.
3604 (maintenance_info_selftests): New function.
3605 (_initialize_maint_cmds): Register "maintenance info selftests"
3606 command. Update "maintenance selftest" doc.
3607 * regcache.c (_initialize_regcache): Add names when registering
3608 selftests.
3609 * rust-exp.y (_initialize_rust_exp): Likewise.
3610 * selftest-arch.c (gdbarch_selftest): New struct.
3611 (gdbarch_tests): Remove.
3612 (register_test_foreach_arch): Add name parameter. Call
3613 register_test.
3614 (tests_with_arch): Remove, move most content to
3615 gdbarch_selftest::operator().
3616 (_initialize_selftests_foreach_arch): Remove.
3617 * selftest-arch.h (register_test_foreach_arch): Add name
3618 parameter.
3619 (run_tests_with_arch): New declaration.
3620 * utils-selftests.c (_initialize_utils_selftests): Add names
3621 when registering selftests.
3622 * utils.c (_initialize_utils): Likewise.
3623 * unittests/array-view-selftests.c
3624 (_initialize_array_view_selftests): Likewise.
3625 * unittests/environ-selftests.c (_initialize_environ_selftests):
3626 Likewise.
3627 * unittests/function-view-selftests.c
3628 (_initialize_function_view_selftests): Likewise.
3629 * unittests/offset-type-selftests.c
3630 (_initialize_offset_type_selftests): Likewise.
3631 * unittests/optional-selftests.c
3632 (_initialize_optional_selftests): Likewise.
3633 * unittests/scoped_restore-selftests.c
3634 (_initialize_scoped_restore_selftests): Likewise.
3635 * NEWS: Document "maintenance selftest" and "maint info
3636 selftests".
3637
5846367a
SM
36382017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3639
3640 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
3641 scoped_restore.
3642
bd77e8ff
SM
36432017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3644
3645 * mi/mi-main.c (mi_load_progress): Make uiout variable
3646 a unique_ptr.
3647
26a67918
PA
36482017-09-15 Pedro Alves <palves@redhat.com>
3649
3650 * compile/compile-c-types.c (convert_enum, convert_int)
3651 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
3652
3f8a7804
SM
36532017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3654
3655 * dwarf2read.c (copy_string): Remove.
3656 (parse_macro_definition): Replace copy_string with savestring.
3657
8d200706
YQ
36582017-09-15 Yao Qi <yao.qi@linaro.org>
3659
3660 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
3661 gdb_target_obs.
3662 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
3663 Likewise.
3664 (i[34567]86-*-linux*): Likewise.
3665
d185219d
SM
36662017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3667
3668 * dwarf2expr.h (dwarf_stack_value): Add constructor.
3669 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
3670 <stack>: Change type to std::vector.
3671 <stack_len, stack_allocated>: Remove.
3672 <grow_stack>: Remove.
3673 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
3674 (dwarf_expr_context::~dwarf_expr_context): Remove.
3675 (dwarf_expr_context::grow_stack): Remove.
3676 (dwarf_expr_context::push): Adjust.
3677 (dwarf_expr_context::pop): Adjust.
3678 (dwarf_expr_context::fetch): Adjust.
3679 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
3680 (dwarf_expr_context::stack_empty_p): Adjust.
3681 (dwarf_expr_context::execute_stack_op): Adjust.
3682
eccd80d6
SM
36832017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3684
3685 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
3686 return type to bool.
3687 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
3688
69009882
SM
36892017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3690
3691 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
3692 Change type to bool.
3693 (dwarf_stack_value) <in_stack_memory>: Likewise.
3694 (dwarf_expr_context) <push_address>: Change parameter type to
3695 bool.
3696 <fetch_in_stack_memory>: Change return type to bool.
3697 <push>: Change parameter type to bool.
3698 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
3699 to bool.
3700 (dwarf_expr_context::push_address): Likewise.
3701 (dwarf_expr_context::fetch_in_stack_memory): Change return type
3702 to bool.
3703 (dwarf_expr_context::execute_stack_op): Adjust.
3704 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
3705
1e467161
SM
37062017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3707
3708 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
3709 (struct dwarf_expr_context) <n_pieces>: Remove.
3710 <pieces>: Change type to std::vector.
3711 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
3712 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
3713 pieces.
3714 (dwarf_expr_context::add_piece): Adjust.
3715 * dwarf2loc.c (struct piece_closure): Initialize fields.
3716 <n_pieces>: Remove.
3717 <pieces>: Change type to std::vector.
3718 (allocate_piece_closure): Adjust, change parameter to
3719 std::vector rvalue and std::move it to piece_closure.
3720 (rw_pieced_value): Adjust.
3721 (check_pieced_synthetic_pointer): Adjust.
3722 (indirect_synthetic_pointer): Adjust.
3723 (coerce_pieced_ref): Adjust.
3724 (free_pieced_value_closure): Adjust. Use delete to free
3725 piece_closure.
3726 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
3727 to allocate_piece_closure.
3728 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
3729
0782db84
SM
37302017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3731
3732 * probe.h (probe_ops_cp): Remove typedef.
3733 (DEF_VEC_P (probe_ops_cp)): Remove.
3734 (all_probe_ops): Change type to std::vector.
3735 * probe.c (info_probes_for_ops): Adjust to vector change.
3736 (probe_linespec_to_ops): Likewise.
3737 (all_probe_ops): Change type to std::vector.
3738 (_initialize_probe): Adjust to vector change.
3739 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
3740 * elfread.c (elf_get_probes): Likewise.
3741 * stap-probe.c (_initialize_stap_probe): Likewise.
3742
1eac6bea
SM
37432017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3744
3745 * probe.h (struct bound_probe): Define constructors.
3746 * probe.c (bound_probe_s): Remove typedef.
3747 (DEF_VEC_O (bound_probe_s)): Remove VEC.
3748 (collect_probes): Change return type to std::vector, remove
3749 cleanup.
3750 (compare_probes): Return bool, change parameter type. Change
3751 semantic to "less than".
3752 (gen_ui_out_table_header_info): Change parameter to std::vector
3753 and update.
3754 (exists_probe_with_pops): Likewise.
3755 (info_probes_for_ops): Update to std::vector change.
3756 (enable_probes_command): Likewise.
3757 (disable_probes_command): Likewise.
3758
aaa63a31
SM
37592017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3760
3761 * probe.h (struct probe_ops) <get_probes>: Change parameter from
3762 vec to std::vector.
3763 * probe.c (parse_probes_in_pspace): Update.
3764 (find_probes_in_objfile): Update.
3765 (find_probe_by_pc): Update.
3766 (collect_probes): Update.
3767 (probe_any_get_probes): Update.
3768 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
3769 return type to reference to std::vector.
3770 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
3771 std::vector and update.
3772 (dtrace_process_dof): Likewise.
3773 (dtrace_get_probes): Likewise.
3774 * elfread.c (elf_get_probes): Change return type to std::vector,
3775 store an std::vector in bfd_data.
3776 (probe_key_free): Update to std::vector.
3777 * stap-probe.c (handle_stap_probe): Change parameter to
3778 std::vector and update.
3779 (stap_get_probes): Likewise.
3780 * symfile-debug.c (debug_sym_get_probes): Change return type to
3781 std::vector and update.
3782
cb85b21b
TT
37832017-09-11 Tom Tromey <tom@tromey.com>
3784
3785 * breakpoint.c (program_breakpoint_here_p): Update.
3786 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
3787 from make_show_memory_breakpoints_cleanup. Return a
3788 scoped_restore_tmpl<int>.
3789 (restore_show_memory_breakpoints): Remove.
3790 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
3791 * mem-break.c (memory_validate_breakpoint): Update.
3792 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
3793 (ia64_memory_remove_breakpoint): Update.
3794 (ia64_breakpoint_from_pc): Update.
3795 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
3796 from make_show_memory_breakpoints_cleanup.
3797
8fbc99ef
TT
37982017-09-11 Tom Tromey <tom@tromey.com>
3799
3800 * d-namespace.c (d_lookup_symbol): Use std::string.
3801 (find_symbol_in_baseclass): Likewise.
3802
50feb4bd
TT
38032017-09-11 Tom Tromey <tom@tromey.com>
3804
3805 * ctf.c (ctf_start): Use std::string.
3806
c6dc63a1
TT
38072017-09-11 Tom Tromey <tom@tromey.com>
3808
3809 * ada-lang.c (is_known_support_routine): Update.
3810 (ada_unhandled_exception_name_addr_from_raise): Update.
3811 * guile/scm-frame.c (gdbscm_frame_name): Update.
3812 * python/py-frame.c (frapy_name): Update.
3813 (frapy_function): Update.
3814 * stack.h (find_frame_funname): Update.
3815 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
3816 (print_frame): Update.
3817
d6b9b80f
TT
38182017-09-11 Tom Tromey <tom@tromey.com>
3819
3820 * findcmd.c (put_bits): Take a gdb::byte_vector.
3821 (parse_find_args): Return gdb::byte_vector. "args" now const.
3822 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
3823 cleanups.
3824 (find_command): Update.
3825
a9921622
TT
38262017-09-11 Tom Tromey <tom@tromey.com>
3827
3828 * cli/cli-script.c (class scoped_restore_hook_in): New.
3829 (clear_hook_in_cleanup): Remove.
3830 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
3831 scoped_restore_hook_in.
3832
be0d7abb
TT
38332017-09-11 Tom Tromey <tom@tromey.com>
3834
3835 * cli/cli-script.c (restore_interp): Remove.
3836 (read_command_lines): Use scoped_restore_interp.
3837 * interps.c (scoped_restore_interp::set_temp): Rename from
3838 interp_set_temp.
3839 * interps.h (class scoped_restore_interp): New.
3840 (interp_set_temp): Remove.
3841
00f675ff
TT
38422017-09-11 Tom Tromey <tom@tromey.com>
3843
3844 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
3845 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
3846 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
3847 scoped_restore.
3848 (mi_cmd_break_insert_1): Update.
3849 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
3850 scoped_restore.
3851
cb791d59
TT
38522017-09-11 Tom Tromey <tom@tromey.com>
3853
3854 * demangle.c (demangle_command): Update.
3855 * breakpoint.c (disable_command): Update.
3856 (enable_command): Update.
3857 (find_location_by_number): Make "number" const. Use
3858 get_number_trailer.
3859 * cli/cli-utils.c (extract_arg): Return std::string.
3860 * probe.c (parse_probe_linespec): Update. Change types.
3861 (collect_probes): Take string arguments.
3862 (parse_probe_linespec): Likewise.
3863 (info_probes_for_ops): Update.
3864 (enable_probes_command): Update.
3865 (disable_probes_command): Update.
3866 * break-catch-sig.c (catch_signal_split_args): Update.
3867 * mi/mi-parse.c (mi_parse): Update.
3868
2039bd9f
TT
38692017-09-11 Tom Tromey <tom@tromey.com>
3870
3871 * language.h (language_enum): Make argument const.
3872 * language.c (language_enum): Make argument const.
3873
f1735a53
TT
38742017-09-11 Tom Tromey <tom@tromey.com>
3875
3876 * common/common-utils.h (skip_to_space): Remove macro, redeclare
3877 as function.
3878 (skip_to_space): Rename from skip_to_space_const.
3879 * common/common-utils.c (skip_to_space): New function.
3880 (skip_to_space): Rename from skip_to_space_const.
3881 * cli/cli-utils.h (get_number): Rename from get_number_const.
3882 (extract_arg): Rename from extract_arg_const.
3883 * cli/cli-utils.c (get_number): Rename from get_number_const.
3884 (extract_arg): Rename from extract_arg_const.
3885 (number_or_range_parser::get_number): Use ::get_number.
3886 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
3887 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
3888 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
3889 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
3890 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
3891 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
3892 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
3893 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
3894
7d221d74
TT
38952017-09-11 Tom Tromey <tom@tromey.com>
3896
3897 * python/python.c (do_start_initialization): Use
3898 py-event-types.def to initialize types.
3899 Define all object type structures.
3900 * python/python-internal.h: Don't declare event initialization
3901 functions.
3902 * python/py-threadevent.c (thread_event_object_type): Don't
3903 define.
3904 * python/py-stopevent.c (stop_event_object_type): Don't define.
3905 * python/py-signalevent.c (signal_event_object_type): Don't
3906 declare or define.
3907 * python/py-newobjfileevent.c (new_objfile_event_object_type)
3908 (clear_objfiles_event_object_type): Don't declare or define.
3909 * python/py-infevents.c (inferior_call_pre_event_object_type)
3910 (inferior_call_post_event_object_type)
3911 (register_changed_event_object_type)
3912 (memory_changed_event_object_type): Don't declare or define.
3913 * python/py-inferior.c (new_thread_event_object_type)
3914 (new_inferior_event_object_type)
3915 (inferior_deleted_event_object_type): Don't declare or define.
3916 * python/py-exitedevent.c (exited_event_object_type): Don't
3917 declare or define.
3918 * python/py-evts.c (gdbpy_initialize_py_events): Use
3919 py-all-events.def.
3920 * python/py-events.h (thread_event_object_type): Don't declare.
3921 (events_object): Use py-all-events.def.
3922 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
3923 py-event-types.def.
3924 * python/py-event-types.def: New file.
3925 * python/py-continueevent.c (create_continue_event_object): Don't
3926 declare or define.
3927 * python/py-bpevent.c (breakpoint_event_object_type): Don't
3928 declare or define.
3929 * python/py-all-events.def: New file.
3930
35c61a1d
TT
39312017-09-11 Tom Tromey <tom@tromey.com>
3932
3933 * python/py-threadevent.c (create_thread_event_object): Return
3934 gdbpy_ref.
3935 * python/py-stopevent.h (create_stop_event_object)
3936 (create_breakpoint_event_object, create_signal_event_object):
3937 Update.
3938 * python/py-stopevent.c (create_stop_event_object): Return
3939 gdbpy_ref.
3940 (emit_stop_event): Update.
3941 * python/py-signalevent.c (create_signal_event_object): Return
3942 gdbpy_ref.
3943 * python/py-infevents.c (create_inferior_call_event_object):
3944 Update.
3945 * python/py-event.h (create_event_object)
3946 (create_thread_event_object): Update.
3947 * python/py-event.c (create_event_object): Return gdbpy_ref.
3948 * python/py-continueevent.c: Return gdbpy_ref.
3949 * python/py-bpevent.c (create_breakpoint_event_object): Return
3950 gdbpy_ref.
3951
7c96f8c1
TT
39522017-09-11 Tom Tromey <tom@tromey.com>
3953
3954 PR python/15622:
3955 * NEWS: Add entry.
3956 * python/python.c (do_start_initialization): Initialize new event
3957 types.
3958 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
3959 (gdbpy_initialize_inferior_deleted_event)
3960 (gdbpy_initialize_new_thread_event): Declare.
3961 * python/py-threadevent.c (create_thread_event_object): Add option
3962 "thread" parameter.
3963 * python/py-inferior.c (new_thread_event_object_type)
3964 (new_inferior_event_object_type)
3965 (inferior_deleted_event_object_type): Declare.
3966 (python_new_inferior, python_inferior_deleted): New functions.
3967 (add_thread_object): Emit new_thread event.
3968 (gdbpy_initialize_inferior): Attach new functions to corresponding
3969 observers.
3970 (new_thread, new_inferior, inferior_deleted): Define new event
3971 types.
3972 * python/py-evts.c (gdbpy_initialize_py_events): Add new
3973 registries.
3974 * python/py-events.h (events_object) <new_inferior,
3975 inferior_deleted, new_thread>: New fields.
3976 * python/py-event.h (create_thread_event_breakpoint): Add optional
3977 "thread" parameter.
3978
72542b8e
AB
39792017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
3980
3981 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
3982 check current_ui instead.
3983 (internal_vproblem): Likewise.
3984
0d64823e
SM
39852017-09-09 Simon Marchi <simon.marchi@ericsson.com>
3986
3987 * thread.c (print_thread_info_1): Remove unnecessary calls to
3988 uiout->is_mi_like_p.
3989
eb1e02fd
TT
39902017-09-09 Tom Tromey <tom@tromey.com>
3991
3992 * namespace.h (add_using_directive): Update.
3993 * namespace.c (add_using_directive): Change type of excludes to
3994 std::vector.
3995 * dwarf2read.c (read_import_statement): Use std::vector.
3996 (read_namespace): Update.
3997 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3998
0fc21fd8
TT
39992017-09-09 Tom Tromey <tom@tromey.com>
4000
4001 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
4002
49663d05
TT
40032017-09-09 Tom Tromey <tom@tromey.com>
4004
4005 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
4006
0b868b60
TT
40072017-09-09 Tom Tromey <tom@tromey.com>
4008
4009 * stack.c (func_command): Use gdb::def_vector.
4010
c0470d48
TT
40112017-09-09 Tom Tromey <tom@tromey.com>
4012
4013 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
4014 ui_out_emit_list, ui_out_emit_tuple.
4015 (mi_cmd_var_update): Likewise.
4016
ca5909c7
TT
40172017-09-09 Tom Tromey <tom@tromey.com>
4018
4019 * mi/mi-interp.c (mi_user_selected_context_changed): Use
4020 ui_out_redirect_pop.
4021 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
4022 ui_out_redirect_pop.
4023 * utils.c (do_ui_out_redirect_pop)
4024 (make_cleanup_ui_out_redirect_pop): Remove.
4025 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
4026 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
4027 * ui-out.h (ui_out_redirect_pop): New class.
4028
e6a2252a
TT
40292017-09-09 Tom Tromey <tom@tromey.com>
4030
4031 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
4032 (list_available_thread_groups, mi_cmd_list_thread_groups)
4033 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
4034 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
4035 Likewise.
4036
393702cd
TT
40372017-09-09 Tom Tromey <tom@tromey.com>
4038
4039 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
4040 ui_out_emit_tuple.
4041
76f9c9cf
TT
40422017-09-09 Tom Tromey <tom@tromey.com>
4043
4044 * target.c (flash_erase_command): Use ui_out_emit_tuple.
4045 * stack.c (print_frame): Use ui_out_emit_tuple.
4046 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
4047 (info_spu_mailbox_command, info_spu_dma_command)
4048 (info_spu_proxydma_command): Likewise.
4049 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
4050 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
4051 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
4052 ui_out_emit_tuple.
4053 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
4054
dc9fe180
TT
40552017-09-09 Tom Tromey <tom@tromey.com>
4056
4057 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
4058 (class ui_out_emit_table): Update comment.
4059 * ui-out.c (do_cleanup_table_end)
4060 (make_cleanup_ui_out_table_begin_end): Remove.
4061 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
4062 (info_spu_dma_cmdlist): Likewise.
4063 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
4064 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
4065 ui_out_emit_table.
4066
f8cc3da6
TT
40672017-09-09 Tom Tromey <tom@tromey.com>
4068
4069 * thread.c (print_thread_info_1): Use ui_out_emit_table,
4070 ui_out_emit_list, gdb::optional.
4071
481695ed
JB
40722017-09-09 John Baldwin <jhb@FreeBSD.org>
4073
4074 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
4075 prototype.
4076 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
4077 prototype.
4078 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
4079 prototype.
4080 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
4081 * ada-exp.y: Remove _initialize_ada_exp prototype.
4082 * ada-lang.c: Remove _initialize_ada_language prototype.
4083 * ada-tasks.c: Remove _initialize_tasks prototype.
4084 * addrmap.c: Remove _initialize_addrmap prototype.
4085 * agent.c: Remove _initialize_agent prototype.
4086 * aix-thread.c: Remove _initialize_aix_thread prototype.
4087 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
4088 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
4089 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
4090 prototype.
4091 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
4092 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
4093 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
4094 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
4095 prototype.
4096 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
4097 prototype.
4098 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
4099 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
4100 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
4101 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
4102 prototype.
4103 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
4104 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
4105 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
4106 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
4107 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
4108 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
4109 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
4110 prototype.
4111 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
4112 prototype.
4113 * annotate.c: Remove _initialize_annotate prototype.
4114 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
4115 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
4116 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
4117 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
4118 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
4119 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
4120 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
4121 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
4122 prototype.
4123 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
4124 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
4125 * auto-load.c: Remove _initialize_auto_load prototype.
4126 * auxv.c: Remove _initialize_auxv prototype.
4127 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
4128 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
4129 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
4130 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
4131 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
4132 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
4133 prototype.
4134 * break-catch-throw.c: Remove _initialize_break_catch_throw
4135 prototype.
4136 * breakpoint.c: Remove _initialize_breakpoint prototype.
4137 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
4138 * btrace.c: Remove _initialize_btrace prototype.
4139 * charset.c: Remove _initialize_charset prototype.
4140 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
4141 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
4142 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
4143 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
4144 * cli/cli-script.c: Remove _initialize_cli_script prototype.
4145 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
4146 * coffread.c: Remove _initialize_coffread prototype.
4147 * compile/compile.c: Remove _initialize_compile prototype.
4148 * complaints.c: Remove _initialize_complaints prototype.
4149 * completer.c: Remove _initialize_completer prototype.
4150 * copying.awk: Remove _initialize_copying prototype.
4151 * copying.c: Regenerate.
4152 * core-regset.c: Remove _initialize_core_regset prototype.
4153 * corefile.c: Remove _initialize_core prototype.
4154 * corelow.c: Remove _initialize_corelow prototype.
4155 * cp-abi.c: Remove _initialize_cp_abi prototype.
4156 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
4157 * cp-support.c: Remove _initialize_cp_support prototype.
4158 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
4159 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
4160 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
4161 * ctf.c: Remove _initialize_ctf prototype.
4162 * d-lang.c: Remove _initialize_d_language prototype.
4163 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
4164 prototype.
4165 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
4166 * dbxread.c: Remove _initialize_dbxread prototype.
4167 * dcache.c: Remove _initialize_dcache prototype.
4168 * demangle.c: Remove _initialize_demangler prototype.
4169 * disasm-selftests.c: Remove _initialize_disasm_selftests
4170 prototype.
4171 * disasm.c: Remove _initialize_disasm prototype.
4172 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
4173 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
4174 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
4175 prototype.
4176 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
4177 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
4178 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
4179 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
4180 * elfread.c: Remove _initialize_elfread prototype.
4181 * exec.c: Remove _initialize_exec prototype.
4182 * extension.c: Remove _initialize_extension prototype.
4183 * f-lang.c: Remove _initialize_f_language prototype.
4184 * f-valprint.c: Remove _initialize_f_valprint prototype.
4185 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
4186 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
4187 * filesystem.c: Remove _initialize_filesystem prototype.
4188 * findcmd.c: Remove _initialize_mem_search prototype.
4189 * fork-child.c: Remove _initialize_fork_child prototype.
4190 * frame-base.c: Remove _initialize_frame_base prototype.
4191 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
4192 * frame.c: Remove _initialize_frame prototype.
4193 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
4194 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
4195 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
4196 * gcore.c: Remove _initialize_gcore prototype.
4197 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
4198 * gdbarch.c: Regenerate.
4199 * gdbarch.sh: Remove _initialize_gdbarch prototype.
4200 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
4201 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
4202 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
4203 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
4204 * go-lang.c: Remove _initialize_go_language prototype.
4205 * go32-nat.c: Remove _initialize_go32_nat prototype.
4206 * guile/guile.c: Remove _initialize_guile prototype.
4207 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
4208 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
4209 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
4210 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
4211 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
4212 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
4213 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
4214 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
4215 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
4216 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
4217 prototype.
4218 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
4219 prototype.
4220 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
4221 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
4222 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
4223 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
4224 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
4225 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
4226 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
4227 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
4228 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
4229 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
4230 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
4231 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
4232 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
4233 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
4234 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
4235 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
4236 prototype.
4237 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
4238 prototype.
4239 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
4240 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
4241 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
4242 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
4243 * infcall.c: Remove _initialize_infcall prototype.
4244 * infcmd.c: Remove _initialize_infcmd prototype.
4245 * inferior.c: Remove _initialize_inferiors prototype.
4246 * inflow.c: Remove _initialize_inflow prototype.
4247 * infrun.c: Remove _initialize_infrun prototype.
4248 * interps.c: Remove _initialize_interpreter prototype.
4249 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
4250 * jit.c: Remove _initialize_jit prototype.
4251 * language.c: Remove _initialize_language prototype.
4252 * linux-fork.c: Remove _initialize_linux_fork prototype.
4253 * linux-nat.c: Remove _initialize_linux_nat prototype.
4254 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
4255 * linux-thread-db.c: Remove _initialize_thread_db prototype.
4256 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
4257 * m2-lang.c: Remove _initialize_m2_language prototype.
4258 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
4259 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
4260 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
4261 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
4262 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
4263 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
4264 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
4265 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
4266 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
4267 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
4268 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
4269 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
4270 * machoread.c: Remove _initialize_machoread prototype.
4271 * macrocmd.c: Remove _initialize_macrocmd prototype.
4272 * macroscope.c: Remove _initialize_macroscope prototype.
4273 * maint.c: Remove _initialize_maint_cmds prototype.
4274 * mdebugread.c: Remove _initialize_mdebugread prototype.
4275 * memattr.c: Remove _initialize_mem prototype.
4276 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
4277 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
4278 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
4279 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
4280 * mi/mi-main.c: Remove _initialize_mi_main prototype.
4281 * microblaze-linux-tdep.c: Remove
4282 _initialize_microblaze_linux_tdep prototype.
4283 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
4284 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
4285 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
4286 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
4287 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
4288 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
4289 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
4290 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
4291 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
4292 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
4293 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
4294 prototype.
4295 * mipsread.c: Remove _initialize_mipsread prototype.
4296 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
4297 prototype.
4298 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
4299 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
4300 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
4301 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
4302 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
4303 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
4304 prototype.
4305 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
4306 * nto-procfs.c: Remove _initialize_procfs prototype.
4307 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
4308 * objc-lang.c: Remove _initialize_objc_language prototype.
4309 * objfiles.c: Remove _initialize_objfiles prototype.
4310 * observer.c: Remove observer_test_first_notification_function,
4311 observer_test_second_notification_function,
4312 observer_test_third_notification_function, and
4313 _initialize_observer prototypes.
4314 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
4315 * osabi.c: Remove _initialize_gdb_osabi prototype.
4316 * osdata.c: Remove _initialize_osdata prototype.
4317 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
4318 * parse.c: Remove _initialize_parse prototype.
4319 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
4320 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
4321 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
4322 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
4323 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
4324 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
4325 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
4326 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
4327 * printcmd.c: Remove _initialize_printcmd prototype.
4328 * probe.c: Remove _initialize_probe prototype.
4329 * proc-api.c: Remove _initialize_proc_api prototype.
4330 * proc-events.c: Remove _initialize_proc_events prototype.
4331 * proc-service.c: Remove _initialize_proc_service prototype.
4332 * procfs.c: Remove _initialize_procfs prototype.
4333 * psymtab.c: Remove _initialize_psymtab prototype.
4334 * python/python.c: Remove _initialize_python prototype.
4335 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
4336 * record-btrace.c: Remove _initialize_record_btrace prototype.
4337 * record-full.c: Remove _initialize_record_full prototype.
4338 * record.c: Remove _initialize_record prototype.
4339 * regcache.c: Remove _initialize_regcache prototype.
4340 * reggroups.c: Remove _initialize_reggroup prototype.
4341 * remote-notif.c: Remove _initialize_notif prototype.
4342 * remote-sim.c: Remove _initialize_remote_sim prototype.
4343 * remote.c: Remove _initialize_remote prototype.
4344 * reverse.c: Remove _initialize_reverse prototype.
4345 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
4346 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
4347 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
4348 prototype.
4349 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
4350 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
4351 * rust-exp.y: Remove _initialize_rust_exp prototype.
4352 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
4353 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
4354 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
4355 * score-tdep.c: Remove _initialize_score_tdep prototype.
4356 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
4357 prototype.
4358 * ser-go32.c: Remove _initialize_ser_dos prototype.
4359 * ser-mingw.c: Remove _initialize_ser_windows prototype.
4360 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
4361 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
4362 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
4363 * serial.c: Remove _initialize_serial prototype.
4364 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
4365 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
4366 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
4367 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
4368 * skip.c: Remove _initialize_step_skip prototype.
4369 * sol-thread.c: Remove _initialize_sol_thread prototype.
4370 * solib-aix.c: Remove _initialize_solib_aix prototype.
4371 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
4372 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
4373 * solib-frv.c: Remove _initialize_frv_solib prototype.
4374 * solib-spu.c: Remove _initialize_spu_solib prototype.
4375 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
4376 * solib-target.c: Remove _initialize_solib_target prototype.
4377 * solib.c: Remove _initialize_solib prototype.
4378 * source.c: Remove _initialize_source prototype.
4379 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
4380 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
4381 prototype.
4382 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
4383 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
4384 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
4385 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
4386 prototype.
4387 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
4388 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
4389 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
4390 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
4391 prototype.
4392 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
4393 prototype.
4394 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
4395 prototype.
4396 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
4397 prototype.
4398 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
4399 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
4400 prototype.
4401 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
4402 prototype.
4403 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
4404 prototype.
4405 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
4406 prototype.
4407 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
4408 prototype.
4409 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
4410 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
4411 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
4412 * stabsread.c: Remove _initialize_stabsread prototype.
4413 * stack.c: Remove _initialize_stack prototype.
4414 * stap-probe.c: Remove _initialize_stap_probe prototype.
4415 * std-regs.c: Remove _initialize_frame_reg prototype.
4416 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
4417 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
4418 * symfile.c: Remove _initialize_symfile prototype.
4419 * symmisc.c: Remove _initialize_symmisc prototype.
4420 * symtab.c: Remove _initialize_symtab prototype.
4421 * target-dcache.c: Remove _initialize_target_dcache prototype.
4422 * target-descriptions.c: Remove _initialize_target_descriptions
4423 prototype.
4424 * thread.c: Remove _initialize_thread prototype.
4425 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
4426 prototype.
4427 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
4428 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
4429 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
4430 prototype.
4431 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
4432 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
4433 * tracefile.c: Remove _initialize_tracefile prototype.
4434 * tracepoint.c: Remove _initialize_tracepoint prototype.
4435 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
4436 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
4437 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
4438 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
4439 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
4440 * tui/tui-win.c: Remove _initialize_tui_win prototype.
4441 * tui/tui.c: Remove _initialize_tui prototype.
4442 * typeprint.c: Remove _initialize_typeprint prototype.
4443 * user-regs.c: Remove _initialize_user_regs prototype.
4444 * utils.c: Remove _initialize_utils prototype.
4445 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
4446 * valarith.c: Remove _initialize_valarith prototype.
4447 * valops.c: Remove _initialize_valops prototype.
4448 * valprint.c: Remove _initialize_valprint prototype.
4449 * value.c: Remove _initialize_values prototype.
4450 * varobj.c: Remove _initialize_varobj prototype.
4451 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
4452 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
4453 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
4454 * windows-nat.c: Remove _initialize_windows_nat,
4455 _initialize_check_for_gdb_ini, and _initialize_loadable
4456 prototypes.
4457 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
4458 * xcoffread.c: Remove _initialize_xcoffread prototype.
4459 * xml-support.c: Remove _initialize_xml_support prototype.
4460 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
4461 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
4462 prototype.
4463 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
4464 prototype.
4465 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
4466
a611b5cb
KS
44672017-09-08 Keith Seitz <keiths@redhat.com>
4468
4469 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
4470 field.
4471
469412dd
CW
44722017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
4473
4474 * f-valprint.c (f_val_print): Remove check for one byte
4475 sized integers. Remove printing of character type.
4476
a5ad232b
FP
44772017-09-08 Frank Penczek <frank.penczek@intel.com>
4478 Christoph Weinmann <christoph.t.weinmann@intel.com>
4479 Bernhard Heckel <bernhard.heckel@intel.com>
4480
4481 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
4482 to maintain proper indentation when printing pointers/refs.
4483
e5014227
JB
44842017-09-07 Joel Brobecker <brobecker@adacore.com>
4485
4486 GDB 8.0.1 released.
4487
63c99141
JB
44882017-09-07 Joel Brobecker <brobecker@adacore.com>
4489
4490 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
4491
69c1e056
TT
44922017-09-05 Tom Tromey <tom@tromey.com>
4493
4494 * parse.c (funcall_chain): Now a std::vector.
4495 (start_arglist, end_arglist): Simplify.
4496 (free_funcalls): Remove.
4497 (parse_exp_in_context_1): Remove cleanup.
4498
fef704bf
TT
44992017-09-05 Tom Tromey <tom@tromey.com>
4500
4501 * go-exp.y (go_parse): Don't create a cleanup.
4502
5613c585
TT
45032017-09-05 Tom Tromey <tom@tromey.com>
4504
4505 * d-exp.y (PrimaryExpression): Use std::string.
4506 (d_parse): Don't create a cleanup.
4507
eae49211
TT
45082017-09-05 Tom Tromey <tom@tromey.com>
4509
4510 * utils.c (do_clear_parser_state): Remove.
4511 (make_cleanup_clear_parser_state): Remove.
4512 * p-exp.y (pascal_parse): Use scoped_restore.
4513 * m2-exp.y (m2_parse): Use scoped_restore.
4514 * f-exp.y (f_parse): Use scoped_restore.
4515 * d-exp.y (d_parse): Use scoped_restore.
4516 * c-exp.y (c_parse): Use scoped_restore.
4517 * ada-exp.y (ada_parse): Use scoped_restore.
4518 * utils.h (make_cleanup_clear_parser_state): Remove.
4519
73b9be8b
KS
45202017-09-06 Keith Seitz <keiths@redhat.com>
4521
4522 * dwarf2read.c (dw2_linkage_name_attr): New function.
4523 (dw2_linkage_name): New function.
4524 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
4525 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
4526 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
4527
a102602b
KR
45282017-09-06 Kamil Rytarowski <n54@gmx.com>
4529
4530 * config/djgpp/djconfig.sh: Correct shell portability issue.
4531
28ad437d
KR
45322017-09-06 Kamil Rytarowski <n54@gmx.com>
4533
4534 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
4535
351787dd
JB
45362017-09-06 John Baldwin <jhb@FreeBSD.org>
4537
4538 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
4539 * NEWS: Mention new FreeBSD/mips native configuration.
4540 * configure.host: Add aarch64*-*-freebsd*.
4541 * configure.nat: Likewise.
4542 * aarch64-fbsd-nat.c: New file.
4543
c0f84956
JB
45442017-09-06 John Baldwin <jhb@FreeBSD.org>
4545
4546 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
4547 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
4548 * NEWS: Mention new FreeBSD/aarch64 target.
4549 * configure.tgt: Add aarch64*-*-freebsd*.
4550 * aarch64-fbsd-tdep.c: New file.
4551 * aarch64-fbsd-tdep.h: New file.
4552
7610297a
KR
45532017-09-06 Kamil Rytarowski <n54@gmx.com>
4554
4555 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
4556
fbd1b771
JK
45572017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4558
4559 * parse.c (find_minsym_type_and_address): Don't relocate addresses
4560 of TLS symbols.
4561
5ca79eae
PW
45622017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4563
4564 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
4565 call.
4566
bf93d7ba
SM
45672017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4568
4569 * infrun.c (follow_exec): Call add_thread after
4570 target_find_description.
4571
1bb7c059
SM
45722017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4573
4574 * infrun.c (handle_inferior_event_1): When exec'ing, read
4575 stop_pc after follow_exec.
4576
fc809827
SM
45772017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4578
4579 * remote.c (process_g_packet): Update error message.
4580
d2fcdd85
YQ
45812017-09-05 Yao Qi <yao.qi@linaro.org>
4582
4583 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
4584 targets.
4585
e69570ee
PA
45862017-09-05 Pedro Alves <palves@redhat.com>
4587
4588 * eval.c (eval_call, evaluate_funcall): New functions, factored
4589 out from ...
4590 (evaluate_subexp_standard): ... this.
4591
22916b07
YQ
45922017-09-05 Yao Qi <yao.qi@linaro.org>
4593
4594 * amd64-tdep.c (amd64_target_description): Create target
4595 descriptions.
4596 (_initialize_amd64_tdep): Don't call functions
4597 initialize_tdesc_amd64_*. Add self tests.
4598 * arch/amd64.c (amd64_create_target_description): Add parameter
4599 is_linux. Call set_tdesc_osabi if is_linux is true.
4600 * arch/amd64.h (amd64_create_target_description): Update the
4601 declaration.
4602 * arch/i386.c (i386_create_target_description): Add parameter
4603 is_linux. Call set_tdesc_osabi if is_linux is true.
4604 * arch/i386.h (i386_create_target_description): Update
4605 declaration.
4606 * configure.tgt: Add i386.o to gdb_target_obs.
4607 * features/Makefile (XMLTOC): Remove i386/*.xml.
4608 * features/i386/amd64-avx-avx512.c: Remove.
4609 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
4610 * features/i386/amd64-avx-mpx.c: Remove.
4611 * features/i386/amd64-avx.c: Remove.
4612 * features/i386/amd64-mpx.c: Remove.
4613 * features/i386/amd64.c: Remove.
4614 * features/i386/i386-avx-avx512.c: Remove.
4615 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
4616 * features/i386/i386-avx-mpx.c: Remove.
4617 * features/i386/i386-avx.c: Remove.
4618 * features/i386/i386-mmx.c: Remove.
4619 * features/i386/i386-mpx.c: Remove.
4620 * features/i386/i386.c: Remove.
4621 * i386-tdep.c: Don't include features/i386/i386*.c., include
4622 target-descriptions.h and arch/i386.h.
4623 (i386_target_description): Create target descriptions.
4624 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
4625 functions. Do self tests.
4626
0854b7b1
YQ
46272017-09-05 Yao Qi <yao.qi@linaro.org>
4628
4629 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
4630 * features/i386/amd64-avx-avx512-linux.c: Removed.
4631 * features/i386/amd64-avx-linux.c: Removed.
4632 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
4633 * features/i386/amd64-avx-mpx-linux.c: Removed.
4634 * features/i386/amd64-linux.c: Removed.
4635 * features/i386/amd64-mpx-linux.c: Removed.
4636 * features/i386/x32-avx-avx512-linux.c: Removed.
4637 * features/i386/x32-avx-linux.c: Removed.
4638 * features/i386/x32-linux.c: Removed.
4639
b4570e4b
YQ
46402017-09-05 Yao Qi <yao.qi@linaro.org>
4641
4642 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
4643 features/i386/*.c.
4644 (amd64_linux_read_description): Call
4645 amd64_create_target_description.
4646 * arch/amd64.c: New file.
4647 * arch/amd64.h: New file.
4648 * configure.tgt (x86_64-*-linux*): Append amd64.o.
4649 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
4650
6c73f67f
YQ
46512017-09-05 Yao Qi <yao.qi@linaro.org>
4652
4653 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
4654 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
4655 (amd64_linux_read_description): Create target descriptions.
4656 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
4657 functions. Add unit tests.
4658 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
4659 x32-core.xml.
4660 * features/i386/64bit-avx.c: Generated.
4661 * features/i386/64bit-avx512.c: Generated.
4662 * features/i386/64bit-core.c: Generated.
4663 * features/i386/64bit-linux.c: Generated.
4664 * features/i386/64bit-mpx.c: Generated.
4665 * features/i386/64bit-pkeys.c: Generated.
4666 * features/i386/64bit-segments.c: Generated.
4667 * features/i386/64bit-sse.c: Generated.
4668 * features/i386/x32-core.c: Generated.
4669 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
4670 c files for amd64-linux and x32-linux.
4671
9d3d478b
YQ
46722017-09-05 Yao Qi <yao.qi@linaro.org>
4673
4674 * amd64-linux-tdep.c (amd64_linux_read_description): New
4675 function.
4676 (amd64_linux_core_read_description): Call
4677 amd64_linux_read_description.
4678 (amd64_linux_init_abi): Likewise.
4679 (amd64_x32_linux_init_abi): Likewise.
4680 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
4681 * x86-linux-nat.c (x86_linux_read_description): Call
4682 amd64_linux_read_description.
4683
b9f1d50f
YQ
46842017-09-05 Yao Qi <yao.qi@linaro.org>
4685
4686 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
4687 comments.
4688
188c9e6d
YQ
46892017-09-05 Yao Qi <yao.qi@linaro.org>
4690
4691 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
4692 * features/i386/i386-avx-avx512-linux.c: Remove.
4693 * features/i386/i386-avx-linux.c: Remove.
4694 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
4695 * features/i386/i386-avx-mpx-linux.c: Remove.
4696 * features/i386/i386-linux.c: Remove.
4697 * features/i386/i386-mmx-linux.c: Remove.
4698 * features/i386/i386-mpx-linux.c: Remove.
4699
5f035c07
YQ
47002017-09-05 Yao Qi <yao.qi@linaro.org>
4701
4702 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
4703 (SFILES): Add arch/i386.c.
4704 (HFILES_NO_SRCDIR): Add arch/i386.h.
4705 * arch/i386.c: New file.
4706 * arch/i386.h: New file.
4707 * arch/tdesc.h (allocate_target_description): Declare.
4708 (set_tdesc_architecture): Declare.
4709 (set_tdesc_osabi): Declare.
4710 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
4711 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
4712 include arch/i386.h.
4713 (i386_linux_read_description): Remove code and call
4714 i386_create_target_description.
4715 (set_tdesc_architecture): New function.
4716 (set_tdesc_osabi): New function.
4717 * target-descriptions.h (allocate_target_description): Remove.
4718
0abe8a89
YQ
47192017-09-05 Yao Qi <yao.qi@linaro.org>
4720
4721 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
4722 * target-descriptions.c (tdesc_create_feature): Likewise, and
4723 adjust code.
4724 * features/i386/32bit-avx.c: Re-generated.
4725 * features/i386/32bit-avx512.c: Re-generated.
4726 * features/i386/32bit-core.c: Re-generated.
4727 * features/i386/32bit-linux.c: Re-generated.
4728 * features/i386/32bit-mpx.c: Re-generated.
4729 * features/i386/32bit-pkeys.c: Re-generated.
4730 * features/i386/32bit-sse.c: Re-generated.
4731
0a188386
YQ
47322017-09-05 Yao Qi <yao.qi@linaro.org>
4733
4734 * regformats/regdef.h (struct reg): Override operator == and !=.
4735
f49ff000
YQ
47362017-09-05 Yao Qi <yao.qi@linaro.org>
4737
4738 * arch/tdesc.h: New file.
4739 * regformats/regdat.sh: Generate code using tdesc_create_reg.
4740 * target-descriptions.c: Update comments.
4741 * target-descriptions.h: Include "arch/tdesc.h". Remove the
4742 declarations.
4743 * features/i386/32bit-avx.c: Re-generated.
4744 * features/i386/32bit-avx512.c: Re-generated.
4745 * features/i386/32bit-core.c: Re-generated.
4746 * features/i386/32bit-linux.c: Re-generated.
4747 * features/i386/32bit-mpx.c: Re-generated.
4748 * features/i386/32bit-pkeys.c: Re-generated.
4749 * features/i386/32bit-sse.c: Re-generated.
4750
f7000548
YQ
47512017-09-05 Yao Qi <yao.qi@linaro.org>
4752
4753 * regformats/regdat.sh: Update generated code.
4754
c9a5e2a5
YQ
47552017-09-05 Yao Qi <yao.qi@linaro.org>
4756
4757 * regformats/regdat.sh: Adjust code order.
4758
d6b687ac
SM
47592017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4760
4761 * expprint.c (dump_subexp_body_standard): Use constant format
4762 string in fprintf_filtered call.
4763
a379bfd0
JB
47642017-09-04 John Baldwin <jhb@FreeBSD.org>
4765
4766 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
4767 NetBSD/i386.
4768 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
4769
f7efc967
JB
47702017-09-04 John Baldwin <jhb@FreeBSD.org>
4771
4772 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
4773
c49fbc6c
JB
47742017-09-04 John Baldwin <jhb@FreeBSD.org>
4775
4776 * bsd-kvm.o: Define _KMEMUSER.
4777 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
4778 * configure: Regenerate.
4779
26562e73
JB
47802017-09-04 John Baldwin <jhb@FreeBSD.org>
4781
4782 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
4783 * i386-fbsd-nat.c: Likewise.
4784
31cf1487
JB
47852017-09-04 John Baldwin <jhb@FreeBSD.org>
4786
4787 * unittests/array-view-selftests.c: Add include of <array>.
4788
5b9f8a7c
JB
47892017-09-04 John Baldwin <jhb@FreeBSD.org>
4790
4791 * spu-tdep.c (flush_ea_cache): Add missing argument to
4792 call_function_by_hand.
4793
d69cf9b2
PA
47942017-09-04 Pedro Alves <palves@redhat.com>
4795
4796 * NEWS (Safer support for debugging with no debug info): New.
4797
3693fdb3
PA
47982017-09-04 Pedro Alves <palves@redhat.com>
4799
4800 * c-exp.y (function_method, function_method_void): Add current
4801 instance flags to TYPE_INSTANCE.
4802 * dwarf2read.c (check_modifier): New.
4803 (compute_delayed_physnames): Assert that only C++ adds delayed
4804 physnames. Mark fn_fields as const/volatile depending on
4805 physname.
4806 * eval.c (make_params): New type_instance_flags parameter. Use
4807 it as the new type's instance flags.
4808 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
4809 flags element and pass it to make_params.
4810 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
4811 instance flags element.
4812 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
4813 * gdbtypes.h: Include "enum-flags.h".
4814 (type_instance_flags): New enum-flags type.
4815 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
4816 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
4817 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
4818 (follow_type_instance_flags): New function.
4819 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
4820 * parser-defs.h (follow_type_instance_flags): Declare.
4821 * valops.c (value_struct_elt_for_reference): const/volatile must
4822 match too.
4823
e68cb8e0
PA
48242017-09-04 Pedro Alves <palves@redhat.com>
4825
4826 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
4827 function/method scopes; lookup the nested name as a function local
4828 static variable.
4829
858be34c
PA
48302017-09-04 Pedro Alves <palves@redhat.com>
4831
4832 (%type <voidval>): Add function_method.
4833 * c-exp.y (exp): New production for calls with no arguments.
4834 (function_method, function_method_void_or_typelist): New
4835 productions.
4836 (exp): New production for "method()::static_var".
4837 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
4838 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4839 Handle OP_FUNC_STATIC_VAR.
4840 * parse.c (operator_length_standard):
4841 Handle OP_FUNC_STATIC_VAR.
4842
dd5901a6
PA
48432017-09-04 Pedro Alves <palves@redhat.com>
4844
4845 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
4846 handling.
4847 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4848 Ditto.
4849 * parse.c (operator_length_standard, operator_check_standard):
4850 Ditto.
4851 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
4852
46a4882b
PA
48532017-09-04 Pedro Alves <palves@redhat.com>
4854
4855 * ax-gdb.c: Include "typeprint.h".
4856 (gen_expr_for_cast): New function.
4857 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
4858 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
4859 type is unknown.
4860 * dwarf2read.c (new_symbol_full): Fallback to int instead of
4861 nodebug_data_symbol.
4862 * eval.c: Include "typeprint.h".
4863 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
4864 Error out if symbol has unknown type.
4865 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
4866 evaluate_subexp_for_cast.
4867 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
4868 OP_VAR_MSYM_VALUE.
4869 (evaluate_subexp_for_cast): New function.
4870 * gdbtypes.c (init_nodebug_var_type): New function.
4871 (objfile_type): Use it to initialize types of variables with no
4872 debug info.
4873 * typeprint.c (error_unknown_type): New.
4874 * typeprint.h (error_unknown_type): New declaration.
4875 * compile/compile-c-types.c (convert_type_basic): Handle
4876 TYPE_CODE_ERROR; warn and fallback to int for variables with
4877 unknown type.
4878
fe13dfec
PA
48792017-09-04 Pedro Alves <palves@redhat.com>
4880
4881 * eval.c (evaluate_var_value): New function, factored out from ...
4882 (evaluate_subexp_standard): ... here.
4883
d008ee21
PA
48842017-09-04 Pedro Alves <palves@redhat.com>
4885
4886 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
4887 Remove useless assignments to 'op'.
4888
827d0c51
PA
48892017-09-04 Pedro Alves <palves@redhat.com>
4890
4891 * eval.c (eval_skip_value): New function.
4892 (evaluate_subexp_standard): Use it.
4893
2c5a2be1
PA
48942017-09-04 Pedro Alves <palves@redhat.com>
4895
4896 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
4897 function name from symbol/minsym and pass it to
4898 error_call_unknown_return_type.
4899
74ea4be4
PA
49002017-09-04 Pedro Alves <palves@redhat.com>
4901
4902 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
4903 * ax-gdb.c (gen_msym_var_ref): New function.
4904 (gen_expr): Handle OP_VAR_MSYM_VALUE.
4905 * eval.c (evaluate_var_msym_value): New function.
4906 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
4907 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
4908 to call_function_by_hand.
4909 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4910 Handle OP_VAR_MSYM_VALUE.
4911 (union exp_element) <msymbol>: New field.
4912 * minsyms.h (struct type): Forward declare.
4913 (find_minsym_type_and_address): Declare.
4914 * parse.c (write_exp_elt_msym): New function.
4915 (write_exp_msymbol): Delete, refactored as ...
4916 (find_minsym_type_and_address): ... this new function.
4917 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
4918 (operator_length_standard, operator_check_standard): Handle
4919 OP_VAR_MSYM_VALUE.
4920 * std-operator.def (OP_VAR_MSYM_VALUE): New.
4921
7022349d
PA
49222017-09-04 Pedro Alves <palves@redhat.com>
4923
4924 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
4925 TYPE_GNU_IFUNC specially here. Throw error if return type is
4926 unknown.
4927 * ada-typeprint.c (print_func_type): Handle functions with unknown
4928 return type.
4929 * c-typeprint.c (c_type_print_base): Handle functions and methods
4930 with unknown return type.
4931 * compile/compile-c-symbols.c (convert_symbol_bmsym)
4932 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
4933 * compile/compile-c-types.c: Include "objfiles.h".
4934 (convert_func): For functions with unknown return type, warn and
4935 default to int.
4936 * compile/compile-object-run.c (compile_object_run): Adjust call
4937 to call_function_by_hand_dummy.
4938 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
4939 call_function_by_hand.
4940 * eval.c (evaluate_subexp_standard): Adjust calls to
4941 call_function_by_hand. Handle functions and methods with unknown
4942 return type. Pass expect_type to call_function_by_hand.
4943 * f-typeprint.c (f_type_print_base): Handle functions with unknown
4944 return type.
4945 * gcore.c (call_target_sbrk): Adjust call to
4946 call_function_by_hand.
4947 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
4948 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
4949 an integer address type instead of nodebug.
4950 * guile/scm-value.c (gdbscm_value_call): Adjust call to
4951 call_function_by_hand.
4952 * infcall.c (error_call_unknown_return_type): New function.
4953 (call_function_by_hand): New "default_return_type" parameter.
4954 Pass it down.
4955 (call_function_by_hand_dummy): New "default_return_type"
4956 parameter. Use it instead of defaulting to int. If there's no
4957 default and the return type is unknown, throw an error. If
4958 there's a default return type, and the called function has no
4959 debug info, then assume the function is prototyped.
4960 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
4961 New "default_return_type" parameter.
4962 (error_call_unknown_return_type): New declaration.
4963 * linux-fork.c (call_lseek): Cast return type of lseek.
4964 (inferior_call_waitpid, checkpoint_command): Adjust calls to
4965 call_function_by_hand.
4966 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
4967 calls to call_function_by_hand.
4968 * m2-typeprint.c (m2_procedure): Handle functions with unknown
4969 return type.
4970 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4971 (value_nsstring, print_object_command): Adjust calls to
4972 call_function_by_hand.
4973 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
4974 functions with unknown return type.
4975 (pascal_type_print_func_varspec_suffix): New function.
4976 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
4977 TYPE_CODE_METHOD>: Use it.
4978 * python/py-value.c (valpy_call): Adjust call to
4979 call_function_by_hand.
4980 * rust-lang.c (rust_evaluate_funcall): Adjust call to
4981 call_function_by_hand.
4982 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
4983 call_function_by_hand.
4984 * valops.c (value_allocate_space_in_inferior): Adjust call to
4985 call_function_by_hand.
4986 * typeprint.c (type_print_unknown_return_type): New function.
4987 * typeprint.h (type_print_unknown_return_type): New declaration.
4988
54990598
PA
49892017-09-04 Pedro Alves <palves@redhat.com>
4990
4991 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
4992 types with more than one parameter as prototyped.
4993
9a24775b
PA
49942017-09-04 Pedro Alves <palves@redhat.com>
4995
4996 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
4997 (disassemble_command): Use gdb_disassembly_flags instead of bare
4998 int.
4999 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
5000 (dump_insns, do_mixed_source_and_assembly_deprecated)
5001 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
5002 Use gdb_disassembly_flags instead of bare int.
5003 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
5004 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
5005 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
5006 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
5007 (enum gdb_disassembly_flag): ... values of this new enumeration.
5008 (gdb_disassembly_flags): Define.
5009 (gdb_disassembly)
5010 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
5011 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
5012 gdb_disassembly_flags instead of bare int.
5013 * record-btrace.c (btrace_insn_history)
5014 (record_btrace_insn_history, record_btrace_insn_history_range)
5015 (record_btrace_insn_history_from): Use gdb_disassembly_flags
5016 instead of bare int.
5017 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
5018 Use gdb_disassembly_flags instead of bare int.
5019 * target-debug.h (target_debug_print_gdb_disassembly_flags):
5020 Define.
5021 * target-delegates.c: Regenerate.
5022 * target.c (target_insn_history, target_insn_history_from)
5023 (target_insn_history_range): Use gdb_disassembly_flags instead of
5024 bare int.
5025 * target.h: Include "disasm.h".
5026 (struct target_ops) <to_insn_history, to_insn_history_from,
5027 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
5028 int.
5029 (target_insn_history, target_insn_history_from)
5030 (target_insn_history_range): Use gdb_disassembly_flags instead of
5031 bare int.
5032
80a65e9b
SM
50332017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5034
5035 * cli/cli-script.c (build_command_line): For if/while commands,
5036 check whether args is empty.
5037
6b66338c
SM
50382017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5039
5040 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
5041 (enum command_control_type): Likewise.
5042 (struct command_line): Likewise.
5043 (free_command_lines): Likewise.
5044 (struct command_lines_deleter): Likewise.
5045 (command_line_up): Likewise.
5046 (read_command_lines): Likewise.
5047 (read_command_lines_1): Likewise.
5048 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
5049 (enum command_control_type): Likewise.
5050 (struct command_line): Likewise.
5051 (free_command_lines): Likewise.
5052 (struct command_lines_deleter): Likewise.
5053 (command_line_up): Likewise.
5054 (read_command_lines): Likewise.
5055 (read_command_lines_1): Likewise.
5056 * breakpoint.h: Include cli/cli-script.h.
5057 * extension-priv.h: Likewise.
5058 * gdbcmd.h: Likewise.
5059
51abb421
PA
50602017-09-04 Pedro Alves <palves@redhat.com>
5061
5062 * ada-lang.c (is_known_support_routine): Move sal declaration to
5063 where it is initialized.
5064 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
5065 (parse_breakpoint_sals, decode_static_tracepoint_spec)
5066 (clear_command, update_static_tracepoint): Remove init_sal
5067 references. Move declarations closer to initializations.
5068 * cli/cli-cmds.c (list_command): Move sal declarations closer to
5069 initializations.
5070 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
5071 references. Move sal declarations closer to initializations.
5072 * frame.c (find_frame_sal): Return a symtab_and_line via function
5073 return instead of output parameter. Remove init_sal references.
5074 * frame.h (find_frame_sal): Return a symtab_and_line via function
5075 return instead of output parameter.
5076 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
5077 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
5078 instead of memset.
5079 (gdbscm_find_pc_line): Remove init_sal reference.
5080 * infcall.c (call_function_by_hand_dummy): Remove init_sal
5081 references. Move declarations closer to initializations.
5082 * infcmd.c (set_step_frame): Update. Move declarations closer to
5083 initializations.
5084 (finish_backward): Remove init_sal references. Move declarations
5085 closer to initializations.
5086 * infrun.c (process_event_stop_test, handle_step_into_function)
5087 (insert_hp_step_resume_breakpoint_at_frame)
5088 (insert_step_resume_breakpoint_at_caller): Likewise.
5089 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
5090 (symbol_to_sal): Likewise.
5091 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
5092 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
5093 to its initialization.
5094 * reverse.c (save_bookmark_command): Use new/delete. Remove
5095 init_sal references. Move declarations closer to initializations.
5096 * source.c (get_current_source_symtab_and_line): Remove brace
5097 initialization.
5098 (set_current_source_symtab_and_line): Now takes the sal by const
5099 reference. Remove brace initialization.
5100 (line_info): Remove init_sal reference.
5101 * source.h (set_current_source_symtab_and_line): Now takes a
5102 symtab_and_line via const reference.
5103 * stack.c (set_current_sal_from_frame): Adjust.
5104 (print_frame_info): Adjust.
5105 (get_last_displayed_sal): Return the sal via function return
5106 instead of via output parameter. Simplify.
5107 (frame_info): Adjust.
5108 * stack.h (get_last_displayed_sal): Return the sal via function
5109 return instead of via output parameter.
5110 * symtab.c (init_sal): Delete.
5111 (find_pc_sect_line): Remove init_sal references. Move
5112 declarations closer to initializations.
5113 (find_function_start_sal): Remove init_sal references. Move
5114 declarations closer to initializations.
5115 * symtab.h (struct symtab_and_line): In-class initialize all
5116 fields.
5117 * tracepoint.c (set_traceframe_context)
5118 (print_one_static_tracepoint_marker): Remove init_sal references.
5119 Move declarations closer to initializations.
5120 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
5121 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
5122 declarations closer to initializations.
5123 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
5124 init_sal references. Adjust.
5125
6c5b2ebe
PA
51262017-09-04 Pedro Alves <palves@redhat.com>
5127
5128 * ax-gdb.c (agent_command_1): Use range-for.
5129 * break-catch-throw.c (re_set_exception_catchpoint): Update.
5130 * breakpoint.c: Include "common/array-view.h".
5131 (init_breakpoint_sal, create_breakpoint_sal): Change sals
5132 parameter from struct symtabs_and_lines to
5133 array_view<symtab_and_line>. Adjust. Use range-for. Update.
5134 (breakpoint_sals_to_pc): Change sals parameter from struct
5135 symtabs_and_lines to std::vector reference.
5136 (check_fast_tracepoint_sals): Change sals parameter from struct
5137 symtabs_and_lines to std::array_view. Use range-for.
5138 (decode_static_tracepoint_spec): Return a std::vector instead of
5139 symtabs_and_lines. Update.
5140 (create_breakpoint): Update.
5141 (break_range_command, until_break_command, clear_command): Update.
5142 (base_breakpoint_decode_location, bkpt_decode_location)
5143 (bkpt_probe_create_sals_from_location)
5144 (bkpt_probe_decode_location, tracepoint_decode_location)
5145 (tracepoint_probe_decode_location)
5146 (strace_marker_create_sals_from_location): Return a std::vector
5147 instead of symtabs_and_lines.
5148 (strace_marker_create_breakpoints_sal): Update.
5149 (strace_marker_decode_location): Return a std::vector instead of
5150 symtabs_and_lines. Update.
5151 (update_breakpoint_locations): Change struct symtabs_and_lines
5152 parameters to gdb::array_view. Adjust.
5153 (location_to_sals): Return a std::vector instead of
5154 symtabs_and_lines. Update.
5155 (breakpoint_re_set_default): Use std::vector instead of struct
5156 symtabs_and_lines.
5157 (decode_location_default): Return a std::vector instead of
5158 symtabs_and_lines. Update.
5159 * breakpoint.h: Include "common/array-view.h".
5160 (struct breakpoint_ops) <decode_location>: Now returns a
5161 std::vector instead of returning a symtabs_and_lines via output
5162 parameter.
5163 (update_breakpoint_locations): Change sals parameters to use
5164 gdb::array_view.
5165 * cli/cli-cmds.c (edit_command, list_command): Update to use
5166 std::vector and gdb::array_view.
5167 (ambiguous_line_spec): Adjust to use gdb::array_view and
5168 range-for.
5169 (compare_symtabs): Rename to ...
5170 (cmp_symtabs): ... this. Change parameters to symtab_and_line
5171 const reference and adjust.
5172 (filter_sals): Rewrite using std::vector and standard algorithms.
5173 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
5174 (jump_command): Update to use std::vector.
5175 * linespec.c (struct linespec_state) <canonical_names>: Update
5176 comment.
5177 (add_sal_to_sals_basic): Delete.
5178 (add_sal_to_sals, filter_results, convert_results_to_lsals)
5179 (decode_line_2, create_sals_line_offset)
5180 (convert_address_location_to_sals, convert_linespec_to_sals)
5181 (convert_explicit_location_to_sals, parse_linespec)
5182 (event_location_to_sals, decode_line_full, decode_line_1)
5183 (decode_line_with_current_source)
5184 (decode_line_with_last_displayed, decode_objc)
5185 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
5186 (linespec_result::~linespec_result): Adjust to use std::vector
5187 instead of symtabs_and_lines.
5188 * linespec.h (linespec_sals::sals): Now a std::vector.
5189 (struct linespec_result): Use std::vector, bool, and in-class
5190 initialization.
5191 (decode_line_1, decode_line_with_current_source)
5192 (decode_line_with_last_displayed): Return std::vector.
5193 * macrocmd.c (info_macros_command): Use std::vector.
5194 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
5195 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
5196 std::vector.
5197 * probe.h (parse_probes): Return a std::vector.
5198 * python/python.c (gdbpy_decode_line): Use std::vector and
5199 gdb::array_view.
5200 * source.c (select_source_symtab, line_info): Use std::vector.
5201 * stack.c (func_command): Use std::vector.
5202 * symtab.h (struct symtabs_and_lines): Delete.
5203 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
5204
7c44b49c
PA
52052017-09-04 Pedro Alves <palves@redhat.com>
5206
5207 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5208 unittests/array-view-selftests.c.
5209 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
5210 * common/array-view.h: New file.
5211 * unittests/array-view-selftests.c: New file.
5212
e439fa14
PA
52132017-09-04 Pedro Alves <palves@redhat.com>
5214
5215 * cli/cli-cmds.c (edit_command): Pass message to
5216 ambiguous_line_spec.
5217 (list_command): Pass message to ambiguous_line_spec. Say
5218 "first"/"last" instead of "start" and "end" to be consistent with
5219 the manual.
5220 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
5221 them to print formatted message.
5222
7525b645
PA
52232017-09-04 Pedro Alves <palves@redhat.com>
5224
5225 * btrace.c (ftrace_add_pt): Pass btrace_insn to
5226 ftrace_update_insns by reference instead of pointer.
5227
badc0020
YQ
52282017-09-04 Yao Qi <yao.qi@linaro.org>
5229
5230 * i386-go32-tdep.c: Include x86-xstate.h.
5231 (i386_go32_init_abi): Call i386_target_description.
5232 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
5233 if xcr0 is X86_XSTATE_X87_MASK.
5234 * i386-tdep.h (tdesc_i386): Remove the declaration.
5235 (tdesc_i386_mmx): Likewise.
5236
d78bdb54
YQ
52372017-09-04 Yao Qi <yao.qi@linaro.org>
5238
5239 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
5240 X86_XSTATE_SSE_MASK instead of 0.
5241
ca1fa5ee
YQ
52422017-09-04 Yao Qi <yao.qi@linaro.org>
5243
5244 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
5245 i386_target_description.
5246 * i386-fbsd-nat.c (i386fbsd_read_description): Call
5247 i386_target_description.
5248 * i386-tdep.c (i386_gdbarch_init): Likewise.
5249
2434b019
YQ
52502017-09-04 Yao Qi <yao.qi@linaro.org>
5251
5252 * amd64-darwin-tdep.c: Include "x86-xstate.h".
5253 (x86_darwin_init_abi_64): Call amd64_target_description.
5254 * amd64-dicos-tdep.c: Likewise.
5255 * amd64-fbsd-nat.c: Likewise.
5256 * amd64-fbsd-tdep.c: Likewise.
5257 * amd64-nbsd-tdep.c: Likewise.
5258 * amd64-obsd-tdep.c: Likewise.
5259 * amd64-sol2-tdep.c: Likewise.
5260 * amd64-windows-tdep.c: Likewise.
5261 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
5262
0860c437
SM
52632017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5264
5265 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
5266 (btrace_function) <insn>: Change type to use std::vector.
5267 * btrace.c (ftrace_debug, ftrace_call_num_insn,
5268 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
5269 ftrace_update_insns, ftrace_compute_global_level_offset,
5270 btrace_stitch_bts, btrace_clear, btrace_insn_get,
5271 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
5272 change to std::vector.
5273 (ftrace_update_insns): Adjust to change to std::vector, change
5274 type of INSN parameter.
5275 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
5276 * record-btrace.c (btrace_call_history_insn_range,
5277 btrace_compute_src_line_range,
5278 record_btrace_frame_prev_register): Adjust to change to
5279 std::vector.
5280 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
5281 to change to std::vector.
5282
0638b7f9
TT
52832017-09-03 Tom Tromey <tom@tromey.com>
5284
5285 * corefile.c (reopen_exec_file): Use std::string.
5286
8f84fb0e
TT
52872017-09-03 Tom Tromey <tom@tromey.com>
5288
5289 * compile/compile.c (compile_register_name_mangled): Return
5290 std::string.
5291 * compile/compile-loc2c.c (pushf_register_address): Update.
5292 (pushf_register): Update.
5293 * compile/compile-c-types.c (convert_array): Update.
5294 * compile/compile-c-symbols.c (generate_vla_size): Update.
5295 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
5296 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
5297 (convert_one_symbol): Update.
5298 (generate_c_for_for_one_variable): Update.
5299 * compile/compile-c-support.c (c_get_range_decl_name): Return a
5300 std::string.
5301 (generate_register_struct): Update.
5302 * compile/compile-internal.h (c_get_range_decl_name): Return a
5303 std::string.
5304 (compile_register_name_mangled): Return std::string.
5305
18e9961f
TT
53062017-09-03 Tom Tromey <tom@tromey.com>
5307
5308 * utils.c (perror_string): Return a std::string.
5309 (throw_perror_with_name, perror_warning_with_name): Update.
5310
45343786
TT
53112017-09-03 Tom Tromey <tom@tromey.com>
5312
5313 * demangle.c (demangle_command): Use std::string,
5314 unique_xmalloc_ptr.
5315
b57af503
TT
53162017-09-03 Tom Tromey <tom@tromey.com>
5317
5318 * cli/cli-setshow.c (do_set_command): Use std::string.
5319
6eecf35f
TT
53202017-09-03 Tom Tromey <tom@tromey.com>
5321
5322 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
5323
56496dd4
TT
53242017-09-03 Tom Tromey <tom@tromey.com>
5325
5326 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
5327
e91a1fa7
TT
53282017-09-03 Tom Tromey <tom@tromey.com>
5329
5330 * mi/mi-cmd-env.c (env_execute_cli_command): Use
5331 gdb::unique_xmalloc_ptr.
5332
7ffd83d7
TT
53332017-09-03 Tom Tromey <tom@tromey.com>
5334
5335 * thread.c (print_thread_info_1): Use string_printf.
5336 (thread_apply_command, thread_apply_all_command): Use
5337 std::string.
5338
1ccbe998
TT
53392017-09-03 Tom Tromey <tom@tromey.com>
5340
5341 * valprint.c (val_print_string): Update.
5342 * gdbcore.h (memory_error_message): Return std::string.
5343 * corefile.c (memory_error_message): Return std::string.
5344 (memory_error): Update.
5345 * breakpoint.c (insert_bp_location): Update.
5346
23fdd69e
SM
53472017-09-03 Simon Marchi <simon.marchi@ericsson.com>
5348
5349 * target/waitstatus.h (target_waitstatus_to_string): Change
5350 return type to std::string.
5351 * target/waitstatus.c (target_waitstatus_to_string): Return
5352 std::string.
5353 * target.h (target_waitstatus_to_string): Remove declaration.
5354 * infrun.c (resume, clear_proceed_status_thread,
5355 print_target_wait_results, do_target_wait, save_waitstatus,
5356 stop_all_threads): Adjust.
5357 * record-btrace.c (record_btrace_wait): Adjust.
5358 * target-debug.h
5359 (target_debug_print_struct_target_waitstatus_p): Adjust.
5360
5c811d30
JK
53612017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5362
5363 PR gdb/22046
5364 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
5365 detection.
5366
0a2dde4a
SDJ
53672017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
5368
5369 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
5370 for setting/unsetting environment variables on the remote target.
5371 (New remote packets): Add entries for QEnvironmentHexEncoded,
5372 QEnvironmentUnset and QEnvironmentReset.
5373 * common/environ.c (gdb_environ::operator=): Extend method to
5374 handle m_user_set_env_list and m_user_unset_env_list.
5375 (gdb_environ::clear): Likewise.
5376 (match_var_in_string): Change type of first parameter from 'char
5377 *' to 'const char *'.
5378 (gdb_environ::set): Extend method to handle
5379 m_user_set_env_list and m_user_unset_env_list.
5380 (gdb_environ::unset): Likewise.
5381 (gdb_environ::clear_user_set_env): New method.
5382 (gdb_environ::user_set_envp): Likewise.
5383 (gdb_environ::user_unset_envp): Likewise.
5384 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
5385 m_user_unset_env_list on move constructor/assignment.
5386 (unset): Add new default parameter 'update_unset_list = true'.
5387 (clear_user_set_env): New method.
5388 (user_set_envp): Likewise.
5389 (user_unset_envp): Likewise.
5390 (m_user_set_env_list): New std::set.
5391 (m_user_unset_env_list): Likewise.
5392 * common/rsp-low.c (hex2str): New function.
5393 (bin2hex): New overload for bin2hex function.
5394 * common/rsp-low.c (hex2str): New prototype.
5395 (str2hex): New overload prototype.
5396 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
5397 QEnvironmentUnset and QEnvironmentReset.
5398 (remote_protocol_features): Add QEnvironmentHexEncoded,
5399 QEnvironmentUnset and QEnvironmentReset packets.
5400 (send_environment_packet): New function.
5401 (extended_remote_environment_support): Likewise.
5402 (extended_remote_create_inferior): Call
5403 extended_remote_environment_support.
5404 (_initialize_remote): Add QEnvironmentHexEncoded,
5405 QEnvironmentUnset and QEnvironmentReset packet configs.
5406 * unittests/environ-selftests.c (gdb_selftest_env_var):
5407 New variable.
5408 (test_vector_initialization): New function.
5409 (test_init_from_host_environ): Likewise.
5410 (test_reinit_from_host_environ): Likewise.
5411 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
5412 Likewise.
5413 (test_unset_set_empty_vector): Likewise.
5414 (test_vector_clear): Likewise.
5415 (test_std_move): Likewise.
5416 (test_move_constructor):
5417 (test_self_move): Likewise.
5418 (test_set_unset_reset): Likewise.
5419 (run_tests): Rewrite in terms of the functions above.
5420
654670a4
WP
54212017-08-31 Weimin Pan <weimin.pan@oracle.com>
5422
5423 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
5424 (adi_available): Use a temp variable of type CORE_ADDR as argument
5425 3 when calling target_auxv_search.
5426 (adi_normalize_address): Use masks and xor operators to calculate
5427 normalized address.
5428 (adi_read_versions, adi_write_versions, adi_print_versions)
5429 (do_examine, do_assign): Use paddress.
5430
7755ddb7
JB
54312017-08-29 John Baldwin <jhb@FreeBSD.org>
5432
5433 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
5434 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
5435 out of loop and add supply of FIR.
5436 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
5437 add collect of FIR.
5438
fd437cbc
SM
54392017-08-28 Simon Marchi <simon.marchi@ericsson.com>
5440
3804a343 5441 PR gdb/21827
fd437cbc
SM
5442 * cli/cli-script.c (define_command): Don't convert command name
5443 to lower case.
5444
988f6b3d
JB
54452017-08-25 Joel Brobecker <brobecker@adacore.com>
5446
5447 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
5448 Update all callers accordingly. Remove all code blocks handling
5449 the case where DISPP is not NULL.
5450
663c44ac
JK
54512017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5452
5453 PR symtab/22003
5454 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
5455 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
5456 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
5457
f1902523
JK
54582017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5459
5460 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
5461 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
5462 (read_comp_units_from_section): New parameter abbrev_section, use
5463 read_and_check_comp_unit_head, allocate signatured_type if needed.
5464 (create_all_comp_units): Update read_comp_units_from_section caller.
5465
87215ad1
SDJ
54662017-08-23 Pedro Alves <palves@redhat.com>
5467
5468 PR remote/21852
5469 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
5470 to null_ptid and switch to thread without reading the registers
5471 after adding the inferior.
5472
6e41ddec
JK
54732017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5474
5475 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
5476 compile-gcc.
5477 * compile/compile.c (compile_gcc, show_compile_gcc): New.
5478 (compile_to_object): Implement compile_gcc.
5479 (_initialize_compile): Install "set compile-gcc". Initialize
5480 compile_gcc.
5481
e68c32d5
JK
54822017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5483
5484 * compile/compile.c (compile_to_object): Conditionally call
5485 set_verbose. Conditionally call compile or compile_v0.
5486
58afddc6
WP
54872017-08-07 Weimin Pan <weimin.pan@oracle.com>
5488
5489 * sparc64-tdep.h: (adi_normalize_address): New export.
5490 * sparc-nat.h: (open_adi_tag_fd): New export.
5491 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
5492 * sparc64-linux-tdep.c:
5493 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
5494 (sparc64_linux_handle_segmentation_fault): New function.
5495 (sparc64_linux_init_abi): Register
5496 sparc64_linux_handle_segmentation_fault
5497 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
5498 (sparc64_addr_bits_remove): New function.
5499 (sparc64_init_abi): Register sparc64_addr_bits_remove.
5500 (MAX_PROC_NAME_SIZE): New macro.
5501 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
5502 (sparc64adilist): New variable.
5503 (adi_proc_list): New variable.
5504 (find_adi_info): New function.
5505 (add_adi_info): New function.
5506 (get_adi_info_proc): New function.
5507 (get_adi_info): New function.
5508 (info_adi_command): New function.
5509 (read_maps_entry): New function.
5510 (adi_available): New function.
5511 (adi_normalize_address): New function.
5512 (adi_align_address): New function.
5513 (adi_convert_byte_count): New function.
5514 (adi_tag_fd): New function.
5515 (adi_is_addr_mapped): New function.
5516 (adi_read_versions): New function.
5517 (adi_write_versions): New function.
5518 (adi_print_versions): New function.
5519 (do_examine): New function.
5520 (do_assign): New function.
5521 (adi_examine_command): New function.
5522 (adi_assign_command): New function.
5523 (_initialize_sparc64_adi_tdep): New function.
5524
11db9430
SM
55252017-08-22 Simon Marchi <simon.marchi@ericsson.com>
5526
5527 * breakpoint.c (breakpoints_info): Rename to ...
5528 (info_breakpoints_command): ... this.
5529 (watchpoints_info): Rename to ...
5530 (info_watchpoints_command): ... this.
5531 (tracepoints_info): Rename to ...
5532 (info_tracepoints_command): ... this.
5533 (_initialize_breakpoint): Adjust.
5534 * dcache.c (dcache_info): Rename to ...
5535 (info_display_command): ... this.
5536 (_initialize_dcache): Adjust.
5537 * frame.h (args_info): Rename to ...
5538 (info_args_command): ... this.
5539 (locals_info): Rename to ...
5540 (info_locals_command): ... this.
5541 * infcmd.c (nofp_registers_info): Rename to ...
5542 (info_registers_command): ... this.
5543 (float_info): Rename to ...
5544 (info_float_command): ... this.
5545 (program_info): Rename to ...
5546 (info_program_command): ... this.
5547 (all_registers_info): Rename to ...
5548 (info_all_registers_command): ... this.
5549 (vector_info): Rename to ...
5550 (info_vector_command): ... this.
5551 (float_info): Rename to ...
5552 (info_float_command): ... this.
5553 (_initialize_infcmd): Adjust.
5554 * inferior.h (term_info): Rename to ...
5555 (info_terminal_command): ... this.
5556 * inflow.c (term_info): Rename to ...
5557 (info_terminal_command): ... this.
5558 (_initialize_inflow): Adjust.
5559 * infrun.c (signals_info): Rename to ...
5560 (info_signals_command): ... this.
5561 (_initialize_infrun): Adjust.
5562 * objc-lang.c (classes_info): Rename to ...
5563 (info_classes_command): ... this.
5564 (selectors_info): Rename to ...
5565 (info_selectors_command): ... this.
5566 (_initialize_objc_language): Adjust.
5567 * printcmd.c (sym_info): Rename to ...
5568 (info_symbol_command): ... this.
5569 (address_info): Rename to ...
5570 (info_address_command): ... this.
5571 (display_info): Rename to ...
5572 (info_display_command): ... this.
5573 (_initialize_printcmd): Adjust.
5574 * reverse.c (bookmarks_info): Rename to ...
5575 (info_breakpoints_command): ... this.
5576 (_initialize_reverse): Adjust.
5577 * ser-go32.c (dos_info): Rename to ...
5578 (info_serial_command): ... this.
5579 (_initialize_ser_dos): Adjust.
5580 * skip.c (skip_info): Rename to ...
5581 (info_skip_command): ... this.
5582 (_initialize_step_skip): Adjust.
5583 * source.c (line_info): Rename to ...
5584 (info_line_command): ... this.
5585 (source_info): Rename to ...
5586 (info_source_command)
5587 * stack.c (frame_info): Rename to ...
5588 (info_frame_command): ... this.
5589 (locals_info): Rename to ...
5590 (info_locals_command): ... this.
5591 (args_info): Rename to ...
5592 (info_args_command): ... this.
5593 (_initialize_stack): Adjust.
5594 * symtab.c (sources_info): Rename to ...
5595 (info_sources_command): ... this.
5596 (variables_info): Rename to ...
5597 (info_variables_command): ... this.
5598 (functions_info): Rename to ...
5599 (info_functions_command): ... this.
5600 (types_info): Rename to ...
5601 (info_types_command): ... this.
5602 (_initialize_symtab): Adjust.
5603 * target.c (target_info): Rename to ...
5604 (info_target_command): ... this.
5605 (initialize_targets): Adjust.
5606 * tracepoint.c (tvariables_info): Rename to ...
5607 (info_tvariables_command): ... this.
5608 (scope_info): Rename to ...
5609 (info_scope_command): ... this.
5610 (trace_dump_actions): Adjust.
5611 (_initialize_tracepoint): Adjust.
5612
b270e6f9
TT
56132017-08-22 Tom Tromey <tom@tromey.com>
5614
5615 * breakpoint.h (install_breakpoint): Update.
5616 * breakpoint.c (add_solib_catchpoint): Update.
5617 (install_breakpoint): Change argument to a std::unique_ptr.
5618 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
5619 (create_breakpoint_sal, create_breakpoint): Update.
5620 (watch_command_1, catch_exec_command_1)
5621 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
5622 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
5623 Return the breakpoint.
5624 (set_raw_breakpoint_without_location, set_raw_breakpoint)
5625 (new_single_step_breakpoint): Update.
5626 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
5627 std::unique_ptr.
5628 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
5629 std::unique_ptr.
5630 * break-catch-sig.c (create_signal_catchpoint): Use
5631 std::unique_ptr.
5632 * ada-lang.c (create_ada_exception_catchpoint): Use
5633 std::unique_ptr.
5634
36bd8eaa
TT
56352017-08-22 Tom Tromey <tom@tromey.com>
5636
5637 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
5638
56f37645
TT
56392017-08-22 Tom Tromey <tom@tromey.com>
5640
5641 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
5642 (lookup_partial_symbol): Update.
5643
0b581c69
TT
56442017-08-22 Tom Tromey <tom@tromey.com>
5645
5646 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
5647 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
5648 (find_and_open_source, symtab_to_fullname): Update.
5649 * psymtab.c (psymtab_to_fullname): Update.
5650
14278e1f
TT
56512017-08-22 Tom Tromey <tom@tromey.com>
5652
5653 * exec.c (exec_file_attach): Update.
5654 * linux-thread-db.c (try_thread_db_load): Update.
5655 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
5656 * utils.c (gdb_realpath): Change return type.
5657 (gdb_realpath_keepfile): Update.
5658 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
5659 (_initialize_utils): Register the new self test.
5660 * source.c (openp): Update.
5661 (find_and_open_source): Update.
5662 * nto-tdep.c (nto_find_and_open_solib): Update.
5663 * main.c (set_gdb_data_directory): Update.
5664 (captured_main_1): Update.
5665 * dwarf2read.c (dwarf2_get_dwz_file): Update
5666 (dw2_map_symbol_filenames): Update.
5667 * auto-load.c (auto_load_safe_path_vec_update): Update.
5668 (filename_is_in_auto_load_safe_path_vec): Change type of
5669 "filename_realp".
5670 (auto_load_objfile_script): Update.
5671 (file_is_auto_load_safe): Update. Use std::string.
5672 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
5673
4971c9a7
TT
56742017-08-22 Tom Tromey <tom@tromey.com>
5675
5676 * utils.c (gdb_realpath_keepfile): Return a
5677 gdb::unique_xmalloc_ptr.
5678 * exec.c (exec_file_attach): Update.
5679 * utils.h (gdb_realpath_keepfile): Return a
5680 gdb::unique_xmalloc_ptr.
5681
e3e41d58
TT
56822017-08-22 Tom Tromey <tom@tromey.com>
5683
5684 * compile/compile.c (compile_file_command): Use
5685 gdb::unique_xmalloc_ptr, std::string.
5686 * utils.c (gdb_abspath): Change return type.
5687 * source.c (openp): Update.
5688 * objfiles.c (allocate_objfile): Update.
5689 * main.c (set_gdb_data_directory): Update.
5690 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
5691
0d999a6e
ZZ
56922017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
5693
5694 * cli-cmds.c (list_commands): List actual code around more than
5695 one location.
5696
329d5e7e
JB
56972017-08-21 John Baldwin <jhb@FreeBSD.org>
5698
5699 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
5700
bf223d3e
PA
57012017-08-21 Pedro Alves <palves@redhat.com>
5702
5703 PR gdb/19487
5704 * c-exp.y (variable production): Handle function aliases.
5705 * minsyms.c (msymbol_is_text): New function.
5706 * minsyms.h (msymbol_is_text): Declare.
5707 * symtab.c (find_function_alias_target): New function.
5708 * symtab.h (find_function_alias_target): Declare.
5709
c973d0aa
PA
57102017-08-21 Pedro Alves <palves@redhat.com>
5711
5712 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
5713 typedefs.
5714 * typeprint.c (whatis_exp): If handling "whatis", and expression
5715 is OP_TYPE, strip one typedef level. Otherwise don't strip
5716 typedefs here.
5717 * valops.c (value_cast): Save "to" type before resolving
5718 stubs/typedefs. Use that type as resulting value's type.
5719
2989a365
TT
57202017-08-18 Tom Tromey <tom@tromey.com>
5721 Pedro Alves <palves@redhat.com>
5722
5723 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
5724 * sol-thread.c (sol_thread_resume, sol_thread_wait)
5725 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
5726 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
5727 * proc-service.c (ps_xfer_memory): Use scoped_restore.
5728 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
5729 (linux_get_siginfo_data): Add "thread" argument. Use
5730 scoped_restore.
5731 * linux-nat.c (linux_child_follow_fork)
5732 (check_stopped_by_watchpoint): Use scoped_restore.
5733 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
5734 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
5735 (restore_inferior_ptid, save_inferior_ptid): Remove.
5736 * btrace.c (btrace_fetch): Use scoped_restore.
5737 * bsd-uthread.c (bsd_uthread_fetch_registers)
5738 (bsd_uthread_store_registers): Use scoped_restore.
5739 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
5740 scoped_restore.
5741 * aix-thread.c (aix_thread_resume, aix_thread_wait)
5742 (aix_thread_xfer_partial): Use scoped_restore.
5743 * inferior.h (save_inferior_ptid): Remove.
5744
e60eb288
YQ
57452017-08-18 Yao Qi <yao.qi@linaro.org>
5746
5747 PR tdep/21818
5748 * arm-tdep.c (gdb_print_insn_arm): Mark
5749 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
5750
6d580b63
YQ
57512017-08-18 Yao Qi <yao.qi@linaro.org>
5752
5753 * NEWS: Mention GDBserver's new option "--selftest".
5754 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
5755 * selftest.c: Move it to common/selftest.c.
5756 * selftest.h: Move it to common/selftest.h.
5757 * selftest-arch.c (reset): New function.
5758 (tests_with_arch): Call reset.
5759
86dcbf50
YQ
57602017-08-18 Yao Qi <yao.qi@linaro.org>
5761
5762 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
5763 instead of exception_fprintf and printf_filtered.
5764
7649770c
YQ
57652017-08-18 Yao Qi <yao.qi@linaro.org>
5766
5767 * selftest.c (register_self_test): Rename it to
5768 selftests::register_test.
5769 (run_self_tests): selftest::run_tests.
5770 * selftest.h: Update declarations.
5771 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
5772 selftests::register_test_foreach_arch.
5773 * selftest-arch.h: Update declaration.
5774 * aarch64-tdep.c: Update.
5775 * arm-tdep.c: Likewise.
5776 * disasm-selftests.c: Likewise.
5777 * dwarf2loc.c: Likewise.
5778 * dwarf2-frame.c: Likewise.
5779 * findvar.c: Likewise.
5780 * gdbarch-selftests.c: Likewise.
5781 * maint.c (maintenance_selftest): Likewise.
5782 * regcache.c: Likewise.
5783 * rust-exp.y: Likewise.
5784 * selftest-arch.c: Likewise.
5785 * unittests/environ-selftests.c: Likewise.
5786 * unittests/function-view-selftests.c: Likewise.
5787 * unittests/offset-type-selftests.c: Likewise.
5788 * unittests/optional-selftests.c: Likewise.
5789 * unittests/scoped_restore-selftests.c: Likewise.
5790 * utils-selftests.c: Likewise.
5791
b0cba12e
PA
57922017-08-17 Pedro Alves <palves@redhat.com>
5793
5794 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
5795 local.
5796
4c8aa72d
PA
57972017-08-17 Pedro Alves <palves@redhat.com>
5798
5799 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
5800 field.
5801 (reset_die_in_process): Delete, replaced by ...
5802 (process_die_scope): ... this new class. Make it responsible for
5803 freeing cu->line_header too.
5804 (process_die): Use process_die_scope.
5805 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
5806 cu->line_header_die_owner. Don't release the line header if it's
5807 owned by the CU.
5808 (setup_type_unit_groups): Make the CU/DIE own the line header.
5809 Don't release the line header here.
5810
ba713918
AL
58112017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
5812
5813 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
5814
44d0fb3a
RK
58152017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
5816
5817 * NEWS: Mention new shortcuts for nexti and stepi in TUI
5818 Single-Key mode
5819
a5afdb16
RK
58202017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
5821
5822 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
5823 mode command list.
5824
47613aeb
SH
58252017-08-15 Stafford Horne <shorne@gmail.com>
5826
5827 * MAINTAINERS (Write After Approval): Add Stafford Horne.
5828
9c3cc999
SH
58292017-08-15 Stafford Horne <shorne@gmail.com>
5830
5831 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
5832
206726fb
SDJ
58332017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
5834
5835 PR gdb/21954
5836 * infcmd.c (unset_environment_command): Use the 'clear' method on
5837 the environment instead of resetting it.
5838
0335ac6d
JB
58392017-08-15 John Baldwin <jhb@FreeBSD.org>
5840
5841 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
5842 platforms.
5843
d3abe1c8
TT
58442017-08-14 Tom Tromey <tom@tromey.com>
5845
5846 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
5847 (print_binary_chars): Likewise.
5848 (BITS_IN_BYTES): Remove.
5849
d6382fff
TT
58502017-08-14 Tom Tromey <tom@tromey.com>
5851
5852 PR gdb/21675
5853 * valprint.c (LOW_ZERO): Change value to 034.
5854 (print_octal_chars): Add static_asserts for octal constants.
5855 * printcmd.c (print_scalar_formatted): Add 'd' case.
5856
f978cb06
TT
58572017-08-11 Tom Tromey <tom@tromey.com>
5858
5859 * symfile.c (add_symbol_file_command): Use std::vector.
5860
2f5404b3
TT
58612017-08-14 Tom Tromey <tom@tromey.com>
5862
5863 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
5864 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
5865 std::move.
5866 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
5867
de7985c3
PA
58682017-08-11 Pedro Alves <palves@redhat.com>
5869
5870 * infrun.c (process_event_stop_test): Adjust
5871 function_name_is_marked_for_skip call.
5872 * skip.c: Include <list>.
5873 (skiplist_entry): Make it a class with private fields, and
5874 getters/setters.
5875 (skiplist_entry_chain): Delete.
5876 (skiplist_entries): New.
5877 (skiplist_entry_count): Delete.
5878 (highest_skiplist_entry_num): New.
5879 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
5880 (add_skiplist_entry): Delete.
5881 (skiplist_entry::skiplist_entry): New.
5882 (skiplist_entry::add_entry): New.
5883 (skip_file_command, skip_function): Adjust.
5884 (compile_skip_regexp): Delete.
5885 (skip_command): Don't compile regexp here. Adjust to use
5886 skiplist_entry::add_entry.
5887 (skip_info): Adjust to use range-for and getters.
5888 (skip_enable_command, skip_disable_command): Adjust to use
5889 range-for and setters.
5890 (skip_delete_command): Adjust to use std::list.
5891 (add_skiplist_entry): Delete.
5892 (skip_file_p): Delete, refactored as ...
5893 (skiplist_entry::do_skip_file_p): ... this new method.
5894 (skip_gfile_p): Delete, refactored as ...
5895 (skiplist_entry::do_gskip_file_p): ... this new method.
5896 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
5897 (skiplist_entry::skip_function_p): ... this new method.
5898 (function_name_is_marked_for_skip): Now returns bool, and takes
5899 the function sal by const reference. Adjust to use range-for and
5900 skiplist_entry methods.
5901 (_initialize_step_skip): Remove references to
5902 skiplist_entry_chain, skiplist_entry_count.
5903 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
5904 takes the function sal by const reference.
5905
be7d3cd5
YQ
59062017-08-11 Yao Qi <yao.qi@linaro.org>
5907
5908 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
5909 (dwarf2_frame_cache): Remove reset_cache_cleanup.
5910 (dwarf2_frame_cache):
5911 * frame-unwind.c (frame_unwind_try_unwinder): Catch
5912 RETURN_MASK_ALL and set *this_case to NULL.
5913 * frame-unwind.h: Update comments.
5914
1c90d9f0
YQ
59152017-08-11 Yao Qi <yao.qi@linaro.org>
5916
5917 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
5918 (dwarf2_frame_state_copy_regs): Remove.
5919 (dwarf2_frame_state_free_regs): Remove.
5920 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
5921 (dwarf2_restore_rule): Call method .alloc_regs instead of
5922 dwarf2_frame_state_alloc_regs.
5923 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
5924 constructor. Call std::move.
5925 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
5926 (dwarf2_frame_cache): Likewise.
5927
5928 [GDB_SELF_TEST]: Include selftest.h and
5929 selftest-arch.h.
5930 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
5931 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
5932 execute_cfa_program_test.
5933
5934 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
5935 copy ctor, assignment operator, move assignment.
5936 <alloc_regs>: New method.
5937 <swap>: New method.
5938 (struct dwarf2_frame_state): Delete dtor.
5939 (dwarf2_frame_state_alloc_regs): Remove declaration.
5940 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
5941 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
5942
afe37d6b
YQ
59432017-08-11 Yao Qi <yao.qi@linaro.org>
5944
5945 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
5946 (dwarf2_frame_state::dwarf2_frame_state): New.
5947 (dwarf2_frame_state::~dwarf2_frame_state): New.
5948 (dwarf2_fetch_cfa_info): Update.
5949 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
5950 rather than a pointer. Update code.
5951 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
5952 dtor.
5953 <data_align, code_align, retaddr_column>: Change them to const.
5954 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
5955 to bool.
5956
b348037f
YQ
59572017-08-11 Yao Qi <yao.qi@linaro.org>
5958
5959 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
5960 <loc.exp>: New field.
5961 * dwarf2-frame.c (execute_cfa_program): Update.
5962 (dwarf2_frame_prev_register): Update.
5963
e7c9de26
PA
59642017-08-10 Pedro Alves <palves@redhat.com>
5965
5966 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
5967
e8c6b620
JB
59682017-08-09 John Baldwin <jhb@FreeBSD.org>
5969
5970 * fbsd-nat.c (struct fbsd_fork_info): Remove.
5971 (fbsd_pending_children): Use std::list.
5972 (fbsd_remember_child): Likewise.
5973 (fbsd_is_child_pending): Likewise.
5974 (fbsd_pending_vfork_done): Use std::forward_list.
5975 (fbsd_add_vfork_done): Likewise.
5976 (fbsd_is_vfork_done_pending): Likewise.
5977 (fbsd_next_vfork_done): Likewise.
5978
e4a26669
JB
59792017-08-09 John Baldwin <jhb@FreeBSD.org>
5980
5981 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
5982 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
5983 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
5984 for `mapfilename'.
5985 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 5986 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 5987
142311d3
JB
59882017-08-09 John Baldwin <jhb@FreeBSD.org>
5989
5990 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
5991 "filestuff.h".
5992 (fbsd_find_memory_regions): Fix `mapfile' initialization.
5993
42fa2e0e
TT
59942017-08-09 Tom Tromey <tom@tromey.com>
5995
5996 * skip.c (skiplist_entry): New constructor.
5997 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
5998 (skiplist_entry::file_is_glob): Now bool.
5999 (skiplist_entry::file, skiplist_entry::function): Now
6000 std::string.
6001 (make_skip_entry): Return a unique_ptr. Use new.
6002 (free_skiplist_entry, free_skiplist_entry_cleanup)
6003 (make_free_skiplist_entry_cleanup): Remove.
6004 (skip_command, skip_disable_command, add_skiplist_entry)
6005 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
6006 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
6007 (function_name_is_marked_for_skip): Update.
6008 (skip_delete_command): Update. Use delete.
6009
cd3af38d
JW
60102017-08-09 Jiong Wang <jiong.wang@arm.com>
6011
6012 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
6013 (aarch64_linux_core_read_description): New function.
6014 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
6015
29592bde
PA
60162017-08-09 Pedro Alves <palves@redhat.com>
6017
6018 * cp-name-parser.y (cp_comp_to_string): Return a
6019 gdb::unique_xmalloc_ptr<char>.
6020 * cp-support.c (replace_typedefs_qualified_name)
6021 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
6022 (cp_canonicalize_string_full): Use op= instead of explicit
6023 convertion.
6024 (cp_class_name_from_physname, method_name_from_physname)
6025 (cp_func_name, cp_remove_params): Adjust to use
6026 gdb::unique_xmalloc_ptr<char>.
6027 * cp-support.h (cp_comp_to_string): Return a
6028 gdb::unique_xmalloc_ptr<char>.
6029 * python/py-type.c (typy_lookup_type): Adjust to use
6030 gdb::unique_xmalloc_ptr<char>.
6031
b3340438
L
60322017-08-09 H.J. Lu <hongjiu.lu@intel.com>
6033
6034 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
6035
e88e8651
YQ
60362017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
6037 Yao Qi <yao.qi@linaro.org>
6038
6039 * cp-support.c (cp_canonicalize_string_full): Use
6040 gdb::unique_xmalloc_ptr<char>.
6041 (cp_canonicalize_string): Likewise.
6042
f5a29eb0
YQ
60432017-08-09 Yao Qi <yao.qi@linaro.org>
6044
6045 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
6046 * regformats/i386/amd64-avx-avx512.dat: Remove.
6047 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
6048 * regformats/i386/amd64-avx-mpx.dat:Remove.
6049 * regformats/i386/amd64-avx.dat: Remove.
6050 * regformats/i386/amd64-mpx.dat: Remove.
6051 * regformats/i386/i386-avx-avx512.dat: Remove.
6052 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
6053 * regformats/i386/i386-avx-mpx.dat: Remove.
6054 * regformats/i386/i386-mmx.dat: Remove.
6055 * regformats/i386/i386-mpx.dat: Remove.
6056
57757c2f
YQ
60572017-08-09 Yao Qi <yao.qi@linaro.org>
6058
6059 * amd64-tdep.h (tdesc_x32): Remove the declaration.
6060 * amd64-tdep.c: Don't include features/i386/x32*.c.
6061 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
6062 functions.
6063 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
6064 and i386/x32-avx-avx512.
6065 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
6066 and i386/x32.xml.
6067 * features/i386/x32-avx-avx512.c: Removed.
6068 * features/i386/x32-avx-avx512.xml: Removed.
6069 * features/i386/x32-avx.c: Removed.
6070 * features/i386/x32-avx.xml: Removed.
6071 * features/i386/x32.c: Removed.
6072 * features/i386/x32.xml: Removed.
6073 * regformats/i386/x32-avx-avx512.dat: Removed.
6074 * regformats/i386/x32-avx.dat: Removed.
6075 * regformats/i386/x32.dat: Removed.
6076
ba7b109b
MR
60772017-08-07 Maciej W. Rozycki <macro@imgtec.com>
6078
6079 PR breakpoints/21886
6080 * mem-break.c (default_memory_insert_breakpoint): Use
6081 `->placed_address' rather than `->reqstd_address' for the
6082 breakpoint location.
6083
e347efc3
MR
60842017-08-07 Maciej W. Rozycki <macro@imgtec.com>
6085
6086 * arch-utils.c (default_print_insn): Remove arch/mach/endian
6087 assertions.
6088
0dba2a6c
MR
60892017-08-07 Maciej W. Rozycki <macro@imgtec.com>
6090
6091 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
6092 a union of `tdep_info', `tdesc_data' and `id'.
6093 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
6094 rather than `info.tdep_info'.
6095 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
6096 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6097 * i386-tdep.c (i386_gdbarch_init): Likewise.
6098 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
6099 * mips-tdep.c (mips_gdbarch_init): Likewise.
6100 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
6101 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
6102 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
6103 `info.tdep_info'.
6104 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
6105 `info.tdep_info'.
6106 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6107 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
6108 `info.tdep_info'.
6109 * spu-tdep.c (spu_gdbarch_init): Likewise.
6110 * gdbarch.h: Regenerate.
6111
16eb6b2d
LS
61122017-08-07 Leszek Swirski <leszeks@google.com>
6113
7b005726 6114 PR symtab/20899
16eb6b2d
LS
6115 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
6116
74cbb09e
SM
61172017-08-07 Simon Marchi <simon.marchi@ericsson.com>
6118
6119 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
6120 (gdbsim_open): Rename gdb_argv args object to argv.
6121
ee0c3293
TT
61222017-08-05 Tom Tromey <tom@tromey.com>
6123
6124 * compile/compile-object-load.c (compile_object_load): Use
6125 gdb::unique_xmalloc_ptr.
6126 * cli/cli-dump.c (scan_filename): Rename from
6127 scan_filename_with_cleanup. Change return type.
6128 (scan_expression): Rename from scan_expression_with_cleanup.
6129 Change return type.
6130 (dump_memory_to_file, dump_value_to_file, restore_command):
6131 Use gdb::unique_xmalloc_ptr. Update.
6132 * cli/cli-cmds.c (find_and_open_script): Use
6133 gdb::unique_xmalloc_ptr.
6134 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
6135 * symmisc.c (maintenance_print_symbols)
6136 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
6137 * symfile.c (symfile_bfd_open, generic_load)
6138 (add_symbol_file_command, remove_symbol_file_command): Use
6139 gdb::unique_xmalloc_ptr.
6140 * source.c (openp): Use gdb::unique_xmalloc_ptr.
6141 * psymtab.c (maintenance_print_psymbols): Use
6142 gdb::unique_xmalloc_ptr.
6143 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
6144 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
6145 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
6146 (reload_shared_libraries_1): Likewise.
6147
3232fabd
TT
61482017-08-05 Tom Tromey <tom@tromey.com>
6149
6150 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
6151 (rust_op_vector, rust_set_vector): New typedefs.
6152 (current_parser): New global.
6153 (work_obstack): Change to pointer type. Update all users.
6154 (rust_ast, pstate): Remove globals.
6155 (struct rust_parser): New.
6156 (%union) <params, field_inits>: Change type.
6157 (start, tuple_expr, unit_expr, struct_expr_list, literal)
6158 (field_expr, expr_list, maybe_expr_list, type_list): Update.
6159 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
6160 (convert_params_to_types, convert_params_to_expression): Change
6161 type of "params".
6162 (ast_string): Change type of "fields".
6163 (rust_parse): Make a rust_parser. Remove cleanups.
6164 (rust_lex_tests): Make and install an auto_obstack.
6165
f02fd774
YQ
61662017-08-04 Yao Qi <yao.qi@linaro.org>
6167
6168 * configure.srv (ipa_x32_linux_regobj): New.
6169 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
6170 instead of X86_TDESC_AVX512.
6171 (initialize_low_tracepoint): Call
6172 init_registers_x32_avx_avx512_linux.
6173
91975afd
YQ
61742017-08-04 Yao Qi <yao.qi@linaro.org>
6175
6176 * utils.h (gdb_argv): Add namespace std for nullptr_t.
6177
2331fa3a
RK
61782017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
6179
6180 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
6181
744e4fe1
TT
61822017-08-03 Tom Tromey <tom@tromey.com>
6183
6184 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
6185 Remove.
6186 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
6187
1c034b67
TT
61882017-08-03 Tom Tromey <tom@tromey.com>
6189
6190 * python/py-param.c (compute_enum_values): Use gdb_argv.
6191
773a1edc
TT
61922017-08-03 Tom Tromey <tom@tromey.com>
6193
6194 * utils.h (struct gdb_argv_deleter): New.
6195 (gdb_argv): New class.
6196 * utils.c (gdb_argv::reset): New method.
6197 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
6198 * tracefile.c (tsave_command): Use gdb_argv.
6199 * top.c (new_ui_command): Use gdb_argv.
6200 * symmisc.c (maintenance_print_symbols)
6201 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
6202 * symfile.c (symbol_file_command, generic_load)
6203 (remove_symbol_file_command): Use gdb_argv.
6204 * stack.c (backtrace_command): Use gdb_argv.
6205 * source.c (add_path, show_substitute_path_command)
6206 (unset_substitute_path_command, set_substitute_path_command):
6207 Use gdb_argv.
6208 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
6209 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
6210 * remote.c (extended_remote_run, remote_put_command)
6211 (remote_get_command, remote_delete_command): Use gdb_argv.
6212 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
6213 (gdbsim_open): Use gdb_argv.
6214 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
6215 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
6216 * procfs.c (procfs_info_proc): Use gdb_argv.
6217 * interps.c (interpreter_exec_cmd): Use gdb_argv.
6218 * infrun.c (handle_command): Use gdb_argv.
6219 * inferior.c (add_inferior_command, clone_inferior_command):
6220 Use gdb_argv.
6221 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
6222 * exec.c (exec_file_command): Use gdb_argv.
6223 * cli/cli-cmds.c (alias_command): Use gdb_argv.
6224 * compile/compile.c (build_argc_argv): Use gdb_argv.
6225
0d50bde3
TT
62262017-08-03 Tom Tromey <tom@tromey.com>
6227
6228 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
6229
7f968c89
TT
62302017-08-03 Tom Tromey <tom@tromey.com>
6231
6232 * python/python.c (compute_python_string): Return std::string.
6233 (gdbpy_eval_from_control_command): Update.
6234 (do_start_initialization): Use std::string.
6235 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
6236 xstrprintf.
6237 * python/py-breakpoint.c (local_setattro): Use string_printf, not
6238 xstrprintf.
6239
3c9ebddd
TT
62402017-08-03 Tom Tromey <tom@tromey.com>
6241
6242 * top.h (do_restore_instream_cleanup): Remove.
6243 * top.c (do_restore_instream_cleanup): Remove.
6244 (read_command_file): Use scoped_restore.
6245 * cli/cli-script.c (execute_user_command): Use scoped_restore.
6246
b51b225e
TT
62472017-08-03 Tom Tromey <tom@tromey.com>
6248
6249 * cli/cli-script.c (execute_user_command)
6250 (execute_control_command): Use scoped_restore.
6251
ac991630
TT
62522017-08-03 Tom Tromey <tom@tromey.com>
6253
6254 * cli/cli-script.c (do_restore_user_call_depth): Remove.
6255 (execute_user_command): Remove user_call_depth; use
6256 user_args_stack's size instead.
6257
898e0c8e
TT
62582017-08-03 Tom Tromey <tom@tromey.com>
6259
6260 * top.h (in_user_command): Remove.
6261 * top.c (in_user_command): Remove.
6262 * cli/cli-script.c (do_restore_user_call_depth)
6263 (execute_user_command): Update.
6264
26fcd5d7
TT
62652017-08-03 Tom Tromey <tom@tromey.com>
6266
6267 * valops.c (search_struct_method): Use gdb::byte_vector.
6268 * valarith.c (value_concat): Use std::vector.
6269 * target.c (memory_xfer_partial): Use gdb::byte_vector.
6270 (simple_search_memory): Likewise.
6271 * printcmd.c (find_string_backward): Use gdb::byte_vector.
6272 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
6273 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
6274 * elfread.c (elf_rel_plt_read): Use std::string.
6275 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
6276 * cli/cli-dump.c (restore_section_callback): Use
6277 gdb::byte_vector.
6278
7c218e6c
TT
62792017-08-03 Tom Tromey <tom@tromey.com>
6280
6281 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
6282
31b68d4a
TT
62832017-08-03 Tom Tromey <tom@tromey.com>
6284
6285 * tui/tui-regs.c (tui_restore_gdbout): Remove.
6286 (tui_register_format): Use scoped_restore.
6287
2ec845e7
TT
62882017-08-03 Tom Tromey <tom@tromey.com>
6289
6290 * reverse.c (exec_direction_default): Remove.
6291 (exec_reverse_once): Use scoped_restore.
6292 * remote.c (restore_remote_timeout): Remove.
6293 (remote_flash_erase, remote_flash_write, remote_flash_done)
6294 (readchar, remote_serial_write): Use scoped_restore.
6295 * cli/cli-script.c (struct source_cleanup_lines_args)
6296 (source_cleanup_lines): Remove.
6297 (script_from_file): Use scoped_restore.
6298 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
6299 (source_command): Use scoped_restore.
6300
b3bc8453
TT
63012017-08-03 Tom Tromey <tom@tromey.com>
6302
6303 * utils.h (make_cleanup_free_so): Remove.
6304 * utils.c (do_free_so, make_cleanup_free_so): Remove.
6305 * solist.h (struct so_deleter): New.
6306 (so_list_up): New typedef.
6307 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
6308
e3ad2841
TT
63092017-08-03 Tom Tromey <tom@tromey.com>
6310
6311 * utils.h (make_cleanup_restore_current_language): Remove.
6312 * utils.c (do_restore_current_language)
6313 (make_cleanup_restore_current_language): Remove.
6314 * parse.c (parse_exp_in_context_1)
6315 (parse_expression_with_language): Use
6316 scoped_restore_current_language.
6317 * mi/mi-main.c (mi_cmd_execute): Use
6318 scoped_restore_current_language.
6319 * language.h (scoped_restore_current_language): New class.
6320
b80cf838
TT
63212017-08-03 Tom Tromey <tom@tromey.com>
6322
6323 * compile/compile.c (cleanup_unlink_file): Remove.
6324 (compile_to_object): Use gdb::unlinker.
6325 (eval_compile_command): Likewise.
6326
fad0444a
TT
63272017-08-03 Tom Tromey <tom@tromey.com>
6328
6329 * utils.h (make_cleanup_fclose): Remove.
6330 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
6331
6e7bc05c
TT
63322017-08-03 Tom Tromey <tom@tromey.com>
6333
6334 * top.c (open_terminal_stream): Return gdb_file_up.
6335 (new_ui_command): Update.
6336
4a45905b
TT
63372017-08-03 Tom Tromey <tom@tromey.com>
6338
6339 * source.c (print_source_lines_base, forward_search_command)
6340 (reverse_search_command): Use gdb_file_up.
6341
7cd06d6e
TT
63422017-08-03 Tom Tromey <tom@tromey.com>
6343
6344 * fbsd-nat.c (fbsd_find_memory_regions): Update.
6345
ed166945
TT
63462017-08-03 Tom Tromey <tom@tromey.com>
6347
6348 * cli/cli-cmds.c (find_and_open_script): Change return type.
6349 Remove "streamp" and "full_path" parameters.
6350 (source_script_with_search): Update.
6351 * auto-load.c (source_script_file): Update.
6352 * cli/cli-cmds.h (find_and_open_script): Change type.
6353 (open_script): New struct.
6354
d419f42d
TT
63552017-08-03 Tom Tromey <tom@tromey.com>
6356
6357 * xml-support.c (xml_fetch_content_from_file): Update.
6358 * ui-file.c (stdio_file::open): Update.
6359 * tracefile-tfile.c (tfile_start): Update.
6360 * remote.c (remote_file_put, remote_file_get): Update.
6361 * nat/linux-procfs.c (linux_proc_get_int)
6362 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
6363 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
6364 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
6365 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6366 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
6367 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
6368 * linux-nat.c (linux_proc_pending_signals): Update.
6369 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
6370 (file_closer): Remove.
6371 * compile/compile.c (compile_to_object): Update.
6372 * common/filestuff.h (struct gdb_file_deleter): New.
6373 (gdb_file_up): New typedef.
6374 (gdb_fopen_cloexec): Change return type.
6375 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
6376 * cli/cli-dump.c (fopen_with_cleanup): Remove.
6377 (dump_binary_file, restore_binary_file): Update.
6378 * auto-load.c (auto_load_objfile_script_1): Update.
6379
4a2b031d
TT
63802017-08-03 Tom Tromey <tom@tromey.com>
6381
6382 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
6383 (info_static_tracepoint_markers_command): Likewise.
6384 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
6385 * skip.c (skip_info): Use ui_out_emit_table.
6386 * progspace.c (print_program_space): Use ui_out_emit_table.
6387 * osdata.c (info_osdata): Use ui_out_emit_table.
6388 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
6389 ui_out_emit_table.
6390 * linux-thread-db.c (info_auto_load_libthread_db): Use
6391 ui_out_emit_table.
6392 * inferior.c (print_inferior): Use ui_out_emit_table.
6393 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
6394 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
6395 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
6396 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
6397 * ui-out.h (class ui_out_emit_table): New.
6398
a4f320fd
MR
63992017-08-02 Maciej W. Rozycki <macro@imgtec.com>
6400
6401 * mips-tdep.c (mips_fpu_type_str): New function.
6402 (mips_dump_tdep): Call it.
6403
a2f1f308
MR
64042017-08-01 Maciej W. Rozycki <macro@imgtec.com>
6405
6406 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
6407 `->mips_fpu_type'.
6408
7e5ed83b
XR
64092017-07-31 Xavier Roirand <roirand@adacore.com>
6410
6411 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6412
4c9dc811
XR
64132017-07-27 Xavier Roirand <roirand@adacore.com>
6414
6415 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
6416
27d41eac
YQ
64172017-07-26 Yao Qi <yao.qi@linaro.org>
6418
6419 * cli/cli-cmds.c (maintenancechecklist): New variable.
6420 * gdbcmd.h (maintenancechecklist): Declare it.
6421 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
6422 Call i386_linux_read_description with different masks.
6423 * maint.c (maintenance_check_command): New function.
6424 (_initialize_maint_cmds): Call add_prefix_cmd.
6425 * target-descriptions.c (tdesc_reg): override operator != and ==.
6426 (tdesc_type): Likewise.
6427 (tdesc_feature): Likewise.
6428 (target_desc): Likewise.
6429 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
6430 (maintenance_check_xml_descriptions): New function.
6431 (_initialize_target_descriptions) Add command "xml-descriptions".
6432 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
6433
ea03d0d3
YQ
64342017-07-26 Yao Qi <yao.qi@linaro.org>
6435
6436 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
6437 Include features/i386/32bit-*.c.
6438 (i386_linux_read_description): Generate target description if it
6439 doesn't exist.
6440 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
6441 functions.
6442 * features/i386/32bit-linux.c: Re-generated.
6443 * features/i386/32bit-sse.c: Likewise.
6444 * target-descriptions.c (print_c_feature::visit): Print code to
6445 set register number if needed.
6446 (print_c_feature) <m_next_regnum>: New field.
6447
25aa13e5
YQ
64482017-07-26 Yao Qi <yao.qi@linaro.org>
6449
6450 * features/Makefile (CFILES): Rename with TDESC_CFILES.
6451 (FEATURE_XMLFILES): New.
6452 (FEATURE_CFILES): New.
6453 New rules.
6454 (clean-cfiles): Remove generated c files.
6455 * features/i386/32bit-avx.c: Generated.
6456 * features/i386/32bit-avx512.c: Generated.
6457 * features/i386/32bit-core.c: Generated.
6458 * features/i386/32bit-linux.c: Generated.
6459 * features/i386/32bit-mpx.c: Generated.
6460 * features/i386/32bit-pkeys.c: Generated.
6461 * features/i386/32bit-sse.c: Generated.
6462 * target-descriptions.c: Include algorithm.
6463 (tdesc_element_visitor): Add method visit_end.
6464 (print_c_tdesc): Implement visit_end.
6465 (print_c_tdesc:: m_filename_after_features): Move it to
6466 protected.
6467 (print_c_feature): New class.
6468 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
6469 name starts with "i386/32bit-".
6470
6eb1e6a8
YQ
64712017-07-26 Yao Qi <yao.qi@linaro.org>
6472
6473 * target-descriptions.c (tdesc_element_visitor): New class.
6474 (tdesc_element): New class.
6475 (tdesc_reg): Inherit from tdesc_element.
6476 (tdesc_reg::accept): New function.
6477 (tdesc_type): Inherit from tdesc_element.
6478 (tdesc_type::accept): New function.
6479 (tdesc_feature): Inherit from tdesc_element.
6480 (tdesc_feature::accept): New function.
6481 (target_desc): Inherit from tdesc_element.
6482 (target_desc::target_desc): New.
6483 (target_desc::~target_desc): New.
6484 (target_desc::accept): New.
6485 (allocate_target_description): Use new.
6486 (free_target_description): Use delete.
6487 (print_c_tdesc): New class.
6488 (maint_print_c_tdesc_cmd): Adjust.
6489
6490 * features/aarch64.c: Re-generated.
6491 * features/arc-arcompact.c: Re-generated.
6492 * features/arc-v2.c: Re-generated.
6493 * features/arm/arm-with-iwmmxt.c: Re-generated.
6494 * features/arm/arm-with-m.c: Re-generated.
6495 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
6496 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
6497 * features/arm/arm-with-neon.c: Re-generated.
6498 * features/arm/arm-with-vfpv2.c: Re-generated.
6499 * features/arm/arm-with-vfpv3.c: Re-generated.
6500 * features/i386/amd64-avx-avx512.c: Re-generated.
6501 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
6502 * features/i386/amd64-avx.c: Re-generated.
6503 * features/i386/amd64-avx-linux.c: Re-generated.
6504 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
6505 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
6506 * features/i386/amd64-avx-mpx.c: Re-generated.
6507 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
6508 * features/i386/amd64.c: Re-generated.
6509 * features/i386/amd64-linux.c: Re-generated.
6510 * features/i386/amd64-mpx.c: Re-generated.
6511 * features/i386/amd64-mpx-linux.c: Re-generated.
6512 * features/i386/i386-avx-avx512.c: Re-generated.
6513 * features/i386/i386-avx-avx512-linux.c: Re-generated.
6514 * features/i386/i386-avx.c: Re-generated.
6515 * features/i386/i386-avx-linux.c: Re-generated.
6516 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
6517 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
6518 * features/i386/i386-avx-mpx.c: Re-generated.
6519 * features/i386/i386-avx-mpx-linux.c: Re-generated.
6520 * features/i386/i386.c: Re-generated.
6521 * features/i386/i386-linux.c: Re-generated.
6522 * features/i386/i386-mmx.c: Re-generated.
6523 * features/i386/i386-mmx-linux.c: Re-generated.
6524 * features/i386/i386-mpx.c: Re-generated.
6525 * features/i386/i386-mpx-linux.c: Re-generated.
6526 * features/i386/x32-avx-avx512.c: Re-generated.
6527 * features/i386/x32-avx-avx512-linux.c: Re-generated.
6528 * features/i386/x32-avx.c: Re-generated.
6529 * features/i386/x32-avx-linux.c: Re-generated.
6530 * features/i386/x32.c: Re-generated.
6531 * features/i386/x32-linux.c: Re-generated.
6532 * features/microblaze.c: Re-generated.
6533 * features/microblaze-with-stack-protect.c: Re-generated.
6534 * features/mips64-dsp-linux.c: Re-generated.
6535 * features/mips64-linux.c: Re-generated.
6536 * features/mips-dsp-linux.c: Re-generated.
6537 * features/mips-linux.c: Re-generated.
6538 * features/nds32.c: Re-generated.
6539 * features/nios2.c: Re-generated.
6540 * features/nios2-linux.c: Re-generated.
6541 * features/rs6000/powerpc-32.c: Re-generated.
6542 * features/rs6000/powerpc-32l.c: Re-generated.
6543 * features/rs6000/powerpc-403.c: Re-generated.
6544 * features/rs6000/powerpc-403gc.c : Re-generated.
6545 * features/rs6000/powerpc-405.c: Re-generated.
6546 * features/rs6000/powerpc-505.c: Re-generated.
6547 * features/rs6000/powerpc-601.c: Re-generated.
6548 * features/rs6000/powerpc-602.c: Re-generated.
6549 * features/rs6000/powerpc-603.c: Re-generated.
6550 * features/rs6000/powerpc-604.c: Re-generated.
6551 * features/rs6000/powerpc-64.c: Re-generated.
6552 * features/rs6000/powerpc-64l.c: Re-generated.
6553 * features/rs6000/powerpc-7400.c: Re-generated.
6554 * features/rs6000/powerpc-750.c: Re-generated.
6555 * features/rs6000/powerpc-860.c: Re-generated.
6556 * features/rs6000/powerpc-altivec32.c: Re-generated.
6557 * features/rs6000/powerpc-altivec32l.c: Re-generated.
6558 * features/rs6000/powerpc-altivec64.c: Re-generated.
6559 * features/rs6000/powerpc-altivec64l.c: Re-generated.
6560 * features/rs6000/powerpc-cell32l.c: Re-generated.
6561 * features/rs6000/powerpc-cell64l.c: Re-generated.
6562 * features/rs6000/powerpc-e500.c: Re-generated.
6563 * features/rs6000/powerpc-e500l.c: Re-generated.
6564 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
6565 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
6566 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
6567 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
6568 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
6569 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
6570 * features/rs6000/powerpc-vsx32.c: Re-generated.
6571 * features/rs6000/powerpc-vsx32l.c: Re-generated.
6572 * features/rs6000/powerpc-vsx64.c: Re-generated.
6573 * features/rs6000/powerpc-vsx64l.c: Re-generated.
6574 * features/rs6000/rs6000.c: Re-generated.
6575 * features/s390-linux32.c: Re-generated.
6576 * features/s390-linux32v1.c: Re-generated.
6577 * features/s390-linux32v2.c: Re-generated.
6578 * features/s390-linux64.c: Re-generated.
6579 * features/s390-linux64v1.c: Re-generated.
6580 * features/s390-linux64v2.c: Re-generated.
6581 * features/s390-te-linux64.c: Re-generated.
6582 * features/s390-tevx-linux64.c: Re-generated.
6583 * features/s390-vx-linux64.c: Re-generated.
6584 * features/s390x-linux64.c: Re-generated.
6585 * features/s390x-linux64v1.c: Re-generated.
6586 * features/s390x-linux64v2.c: Re-generated.
6587 * features/s390x-te-linux64.c: Re-generated.
6588 * features/s390x-tevx-linux64.c: Re-generated.
6589 * features/s390x-vx-linux64.c: Re-generated.
6590 * features/sparc/sparc32-solaris.c: Re-generated.
6591 * features/sparc/sparc64-solaris.c: Re-generated.
6592 * features/tic6x-c62x.c: Re-generated.
6593 * features/tic6x-c62x-linux.c: Re-generated.
6594 * features/tic6x-c64x.c: Re-generated.
6595 * features/tic6x-c64x-linux.c: Re-generated.
6596 * features/tic6x-c64xp.c: Re-generated.
6597 * features/tic6x-c64xp-linux.c: Re-generated.
6598
35b4818d
YQ
65992017-07-26 Yao Qi <yao.qi@linaro.org>
6600
6601 * i386-linux-tdep.c (i386_linux_read_description): New function.
6602 (i386_linux_core_read_description): Call
6603 i386_linux_read_description.
6604 * i386-linux-tdep.h (i386_linux_read_description): Declare.
6605 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
6606 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
6607 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
6608 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
6609 * x86-linux-nat.c (x86_linux_read_description): Call
6610 i386_linux_read_description.
6611
8e2141c6
YQ
66122017-07-26 Yao Qi <yao.qi@linaro.org>
6613
6614 * NEWS: Mention it.
6615 * features/Makefile (%.c: %.xml): Pass the xml file name to
6616 command "maint print c-tdesc".
6617 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
6618 name from 'arg'.
6619
b468ff4c
YQ
66202017-07-26 Yao Qi <yao.qi@linaro.org>
6621
6622 * target-descriptions.c (target_desc): Add ctor and dtor. Do
6623 in-class initialization.
6624 (tdesc_create_feature): Call new instead of XCNEW.
6625 (free_target_description): Ue delete.
6626
b9c0e1b4
JB
66272017-07-25 John Baldwin <jhb@FreeBSD.org>
6628
6629 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
6630
a04b5337
YQ
66312017-07-25 Yao Qi <yao.qi@linaro.org>
6632
6633 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
6634 constant.
6635 (amd64_x32_init_abi): Likewise.
6636 * amd64-tdep.h (amd64_init_abi): Update declaration.
6637 (amd64_x32_init_abi): Likewise.
6638
02ad7fc2
YQ
66392017-07-25 Yao Qi <yao.qi@linaro.org>
6640
6641 PR tdep/21717
6642 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
6643 condition for FPSCR.
6644 (arm_linux_store_inferior_registers): Likewise.
6645
b6f48cb0
TT
66462017-07-22 Tom Tromey <tom@tromey.com>
6647
6648 * break-catch-syscall.c (struct catch_syscall_inferior_data)
6649 <syscalls_counts>: Now a std::vector.
6650 (get_catch_syscall_inferior_data): Use "new".
6651 (catch_syscall_inferior_data_cleanup): Use "delete".
6652 (insert_catch_syscall, remove_catch_syscall)
6653 (clear_syscall_counts): Update.
6654
e12c9b7a
TT
66552017-07-22 Tom Tromey <tom@tromey.com>
6656
6657 * break-catch-syscall.c (syscall_catchpoint)
6658 <syscalls_to_be_caught>: Now a std::vector<int>
6659 (~syscall_catchpoint): Remove.
6660 (insert_catch_syscall, remove_catch_syscall)
6661 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
6662 (print_mention_catch_syscall, print_recreate_catch_syscall):
6663 Update.
6664 (create_syscall_event_catchpoint): Change type of "filter"
6665 parameter.
6666 (catch_syscall_split_args): Return a std::vector.
6667 (catch_syscall_command_1, catching_syscall_number_1): Update.
6668
4fa8aeac
TT
66692017-07-22 Tom Tromey <tom@tromey.com>
6670
6671 * break-catch-throw.c (struct exception_catchpoint)
6672 <exception_rx>: Now a std::string.
6673 (~exception_catchpoint): Remove.
6674 (print_one_detail_exception_catchpoint): Update.
6675 (handle_gnu_v3_exceptions): Change type of except_rx.
6676 (extract_exception_regexp): Return a std::string.
6677 (catch_exception_command_1): Update.
6678
f746a154
TT
66792017-07-22 Tom Tromey <tom@tromey.com>
6680
6681 * break-catch-sig.c (gdb_signal_type): Remove typedef.
6682 (struct signal_catchpoint) <signals_to_be_caught>: Now a
6683 std::vector.
6684 <catch_all>: Now a bool.
6685 (~signal_catchpoint): Remove.
6686 (signal_catchpoint_insert_location)
6687 (signal_catchpoint_remove_location)
6688 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
6689 (signal_catchpoint_print_mention)
6690 (signal_catchpoint_print_recreate)
6691 (signal_catchpoint_explains_signal): Update.
6692 (create_signal_catchpoint): Change type of "filter" and
6693 "catch_all".
6694 (catch_signal_split_args): Return a std::vector. Change type of
6695 "catch_all".
6696 (catch_signal_command): Update.
6697
47e77640
PA
66982017-07-20 Pedro Alves <palves@redhat.com>
6699
6700 * ada-lang.c (ada_language_defn): Make extern.
6701 (_initialize_ada_language): Remove add_language call.
6702 * c-lang.c (c_language_defn, cplus_language_defn)
6703 (asm_language_defn, minimal_language_defn): Make extern.
6704 (_initialize_c_language): Delete.
6705 * completer.c (compare_cstrings): Delete, moved to utils.h.
6706 * d-lang.c (d_language_defn): Make extern.
6707 (_initialize_d_language): Remove add_language calls.
6708 * defs.h (enum language): Add comment.
6709 * f-lang.c (f_language_defn): Make extern.
6710 (_initialize_f_language): Remove add_language call.
6711 * go-lang.c (go_language_defn): Make extern.
6712 (_initialize_go_language): Remove add_language call.
6713 * language.c: Include <algorithm>.
6714 (languages): Redefine as const array.
6715 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
6716 (set_language_command): Handle "local". Use for-range loop.
6717 (set_language): Remove loop.
6718 (language_enum): Rewrite.
6719 (language_def, language_str): Remove loops.
6720 (add_language): Delete.
6721 (add_set_language_command): New, based on add_languages.
6722 (skip_language_trampoline): Adjust.
6723 (local_language_defn): Delete.
6724 (language_gdbarch_post_init): Adjust.
6725 (_initialize_language): Remove add_language calls. Call
6726 add_set_language_command.
6727 * language.h (add_language): Delete.
6728 (auto_language_defn)
6729 (unknown_language_defn, minimal_language_defn, ada_language_defn)
6730 (asm_language_defn, c_language_defn, cplus_language_defn)
6731 (d_language_defn, f_language_defn, go_language_defn)
6732 (m2_language_defn, objc_language_defn, opencl_language_defn)
6733 (pascal_language_defn, rust_language_defn): Declare.
6734 * m2-lang.c (m2_language_defn): Make extern.
6735 (_initialize_m2_language): Remove add_language call.
6736 * objc-lang.c (objc_language_defn): Make extern.
6737 (_initialize_objc_language): Remove add_language call.
6738 * opencl-lang.c (opencl_language_defn): Make extern.
6739 (_initialize_opencl_language): Remove add_language call.
6740 * p-lang.c (pascal_language_defn): Make extern.
6741 (_initialize_pascal_language): Delete.
6742 * rust-lang.c (rust_language_defn): Make extern.
6743 (_initialize_rust_language): Delete.
6744 * utils.h (compare_cstrings): New static inline function.
6745
edb0c9cb
PA
67462017-07-20 Pedro Alves <palves@redhat.com>
6747
6748 * ada-lang.c (ada_to_fixed_type_1): Adjust.
6749 (get_var_value): Constify parameters.
6750 (get_int_var_value): Change prototype.
6751 (to_fixed_range_type): Adjust.
6752 * ada-lang.h (get_int_var_value): Change prototype.
6753
a778f165
PA
67542017-07-20 Pedro Alves <palves@redhat.com>
6755
6756 * dwarf2read.c (dw2_lookup_symbol): Use
6757 SYMBOL_MATCHES_SEARCH_NAME.
6758 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
6759
42edd901
PA
67602017-07-20 Pedro Alves <palves@redhat.com>
6761
6762 * block.c (block_iter_name_step, block_iter_name_first)
6763 (block_iter_name_next): Delete.
6764 (block_lookup_symbol_primary): Adjust to use
6765 dict_iter_match_first/dict_iter_match_next.
6766 * block.h (block_iter_name_first, block_iter_name_next): Delete
6767 declarations.
6768 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
6769 dict_iter_match_first/dict_iter_match_next.
6770
cf325299
PA
67712017-07-20 Pedro Alves <palves@redhat.com>
6772
6773 * cp-support.c (cp_find_first_component_aux): Add missing case for
6774 end of string.
6775
c5ed0576
DB
67762017-07-18 David Blaikie <dblaikie@gmail.com>
6777
6778 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
6779 of dwo_cu's dwo_file.
6780
27841e76
YQ
67812017-07-18 Yao Qi <yao.qi@linaro.org>
6782
6783 * remote.c (store_registers_using_G): Remove one line comment.
6784
cfb7e58b
YQ
67852017-07-18 Yao Qi <yao.qi@linaro.org>
6786
6787 * regcache.c (regcache_cpy): Simplify it.
6788 (regcache::cpy_no_passthrough): Remove it.
6789 * regcache.h (cpy_no_passthrough): Remove it.
6790 (regcache_dup, regcache_cpy): Update comments.
6791
386535dd
PA
67922017-07-18 Pedro Alves <palves@redhat.com>
6793
6794 * remote-sim.c (sim_command_completer): Adjust to work with a
6795 completion_tracker instead of a VEC.
6796
c45ec17c
PA
67972017-07-17 Pedro Alves <palves@redhat.com>
6798
6799 * completer.c (complete_source_filenames): New function.
6800 (complete_address_and_linespec_locations): New function.
6801 (location_completer): Use complete_address_and_linespec_locations.
6802 (completion_tracker::build_completion_result): Honor the tracker's
6803 request to suppress append.
6804 * completer.h (completion_tracker::suppress_append_ws)
6805 (completion_tracker::set_suppress_append_ws): New methods.
6806 (completion_tracker::m_suppress_append_ws): New field.
6807 (complete_source_filenames): New declaration.
6808 * linespec.c (linespec_complete_what): New.
6809 (struct ls_parser) <complete_what, completion_word,
6810 completion_quote_char, completion_quote_end, completion_tracker>:
6811 New fields.
6812 (string_find_incomplete_keyword_at_end): New.
6813 (linespec_lexer_lex_string): Record quote char. If in completion
6814 mode, don't throw.
6815 (linespec_lexer_consume_token): Advance the completion word point.
6816 (linespec_lexer_peek_token): Save/restore completion info.
6817 (save_stream_and_consume_token): New.
6818 (set_completion_after_number): New.
6819 (linespec_parse_basic): Set what to complete next depending on
6820 token. Handle function and label completions specially.
6821 (parse_linespec): Disable objc shortcut in completion mode. Set
6822 what to complete next depending on token type. Skip keyword if in
6823 completion mode.
6824 (complete_linespec_component, linespec_complete): New.
6825 * linespec.h (linespec_complete): Declare.
6826
be966d42
PA
68272017-07-17 Pedro Alves <palves@redhat.com>
6828
6829 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
6830 Handle 'operator<' / 'operator<<'.
6831
a2459270
PA
68322017-07-17 Pedro Alves <palves@redhat.com>
6833
6834 * completer.c (collect_explicit_location_matches): Handle
6835 MATCH_LABEL.
6836 (convert_explicit_location_to_linespec): New, factored out from
6837 ...
6838 (convert_explicit_location_to_sals): ... this.
6839 (complete_label): New.
6840 (linespec_complete_label, find_label_symbols_in_block): New.
6841 (find_label_symbols): Add completion_mode parameter and adjust to
6842 call find_label_symbols_in_block.
6843 * linespec.h (linespec_complete_label): Declare.
6844
c6756f62
PA
68452017-07-17 Pedro Alves <palves@redhat.com>
6846
6847 * ada-lang.c (ada_collect_symbol_completion_matches): Add
6848 complete_symbol_mode parameter.
6849 * cli/cli-cmds.c (complete_command): Get the completion result out
6850 of the handle_brkchars tracker if used a custom word point.
6851 * completer.c: Include "linespec.h".
6852 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
6853 (advance_to_expression_complete_word_point): New.
6854 (completion_tracker::completes_to_completion_word): New.
6855 (complete_files_symbols): Pass down
6856 complete_symbol_mode::EXPRESSION.
6857 (explicit_options, probe_options): New.
6858 (collect_explicit_location_matches): Complete on the
6859 explictit_loc->foo instead of word. Use
6860 linespec_complete_function. Handle MATCH_LINE. Handle offering
6861 keyword and options completions.
6862 (backup_text_ptr): Delete.
6863 (skip_keyword): New.
6864 (complete_explicit_location): Remove 'word' parameter. Add
6865 language, quoted_arg_start and quoted_arg_end parameters.
6866 Rewrite, parsing left to right.
6867 (location_completer): Rewrite.
6868 (location_completer_handle_brkchars): New function.
6869 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
6870 (enum complete_line_internal_reason): Adjust comments.
6871 (completion_tracker::discard_completions): New.
6872 (completer_handle_brkchars_func_for_completer): Handle
6873 location_completer.
6874 (gdb_custom_word_point_brkchars)
6875 (gdb_org_rl_basic_quote_characters): New.
6876 (gdb_completion_word_break_characters_throw)
6877 (completion_find_completion_word): Handle trackers that use a
6878 custom word point.
6879 (completion_tracker::advance_custom_word_point_by): New.
6880 (completion_tracker::build_completion_result): Don't rely on
6881 readline appending the quote char.
6882 (gdb_rl_attempted_completion_function_throw): Handle trackers that
6883 use a custom word point.
6884 (gdb_rl_attempted_completion_function): Restore
6885 rl_basic_quote_characters.
6886 * completer.h (class completion_tracker): Extend intro comment.
6887 (completion_tracker::set_quote_char)
6888 (completion_tracker::quote_char)
6889 (completion_tracker::set_use_custom_word_point)
6890 (completion_tracker::use_custom_word_point)
6891 (completion_tracker::custom_word_point)
6892 (completion_tracker::set_custom_word_point)
6893 (completion_tracker::advance_custom_word_point_by)
6894 (completion_tracker::completes_to_completion_word)
6895 (completion_tracker::discard_completions): New methods.
6896 (completion_tracker::m_quote_char)
6897 (completion_tracker::m_use_custom_word_point)
6898 (completion_tracker::m_custom_word_point): New fields.
6899 (advance_to_expression_complete_word_point): Declare.
6900 * f-lang.c (f_collect_symbol_completion_matches): Add
6901 complete_symbol_mode parameter.
6902 * language.h (struct language_defn)
6903 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
6904 parameter.
6905 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
6906 (linespec_complete_function): New function.
6907 (linespec_lexer_lex_keyword): Adjust.
6908 * linespec.h (linespec_keywords, linespec_complete_function): New
6909 declarations.
6910 * location.c (find_end_quote): New function.
6911 (explicit_location_lex_one): Add explicit_completion_info
6912 parameter. Save quoting info. Don't throw if being called for
6913 completion. Don't handle Ada operators here.
6914 (is_cp_operator, skip_op_false_positives, first_of)
6915 (explicit_location_lex_one_function): New function.
6916 (string_to_explicit_location): Replace 'dont_throw' parameter with
6917 an explicit_completion_info pointer parameter. Handle it. Don't
6918 use explicit_location_lex_one to lex function names. Use
6919 explicit_location_lex_one_function instead.
6920 * location.h (struct explicit_completion_info): New.
6921 (string_to_explicit_location): Replace 'dont_throw' parameter with
6922 an explicit_completion_info pointer parameter.
6923 * symtab.c (default_collect_symbol_completion_matches_break_on):
6924 Add complete_symbol_mode parameter. Handle LINESPEC mode.
6925 (default_collect_symbol_completion_matches)
6926 (collect_symbol_completion_matches): Add complete_symbol_mode
6927 parameter.
6928 (collect_symbol_completion_matches_type): Pass down
6929 complete_symbol_mode::EXPRESSION.
6930 (collect_file_symbol_completion_matches): Add complete_symbol_mode
6931 parameter. Handle LINESPEC mode.
6932 * symtab.h (complete_symbol_mode): New.
6933 (default_collect_symbol_completion_matches_break_on)
6934 (default_collect_symbol_completion_matches)
6935 (collect_symbol_completion_matches)
6936 (collect_file_symbol_completion_matches): Add complete_symbol_mode
6937 parameter.
6938
1d550c82
PA
69392017-07-17 Pedro Alves <palves@redhat.com>
6940
6941 * utils.c (enum class strncmp_iw_mode): New.
6942 (strcmp_iw): Rename to ...
6943 (strncmp_iw_with_mode): ... this. Add string2_len and mode
6944 parameters. Handle them.
6945 (strncmp_iw): New.
6946 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
6947 * utils.h (strncmp_iw): Declare.
6948 (strcmp_iw): Move describing comments here.
6949
8090b426
PA
69502017-07-17 Pedro Alves <palves@redhat.com>
6951
6952 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
6953 CP_OPERATOR_STR.
6954 * c-typeprint.c (is_type_conversion_operator): Use
6955 CP_OPERATOR_STR.
6956 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
6957 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
6958 CP_OPERATOR_LEN.
6959 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
6960 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
6961 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
6962 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
6963 CP_OPERATOR_STR.
6964 * location.c: Include "cp-support.h".
6965 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
6966 CP_OPERATOR_STR.
6967 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
6968 CP_OPERATOR_LEN.
6969
6a2c1b87
PA
69702017-07-17 Pedro Alves <palves@redhat.com>
6971
6972 * cli/cli-cmds.c (complete_command): Use a completion tracker
6973 along with completion_find_completion_word for handle_brkchars
6974 phase.
6975 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
6976 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
6977 (struct gdb_rl_completion_word_info): New.
6978 (gdb_rl_find_completion_word): New.
6979 (completion_find_completion_word): New.
6980 * completer.h (completion_find_completion_word): Declare.
6981
eb3ff9a5
PA
69822017-07-17 Pedro Alves <palves@redhat.com>
6983
6984 * ada-lang.c (symbol_completion_match): Adjust comments.
6985 (symbol_completion_add): Replace vector parameter with
6986 completion_tracker parameter. Use it.
6987 (ada_make_symbol_completion_list): Rename to...
6988 (ada_collect_symbol_completion_matches): ... this. Add
6989 completion_tracker parameter and use it.
6990 (ada_language_defn): Adjust.
6991 * break-catch-syscall.c (catch_syscall_completer): Adjust
6992 prototype and work with completion_tracker instead of VEC.
6993 * breakpoint.c (condition_completer): Adjust prototype and work
6994 with completion_tracker instead of VEC.
6995 * c-lang.c (c_language_defn, cplus_language_defn)
6996 (asm_language_defn, minimal_language_defn): Adjust to renames.
6997 * cli/cli-cmds.c (complete_command): Rework using
6998 completion_tracker. Catch exceptions when completing.
6999 * cli/cli-decode.c (integer_unlimited_completer)
7000 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
7001 with completion_tracker instead of VEC.
7002 * command.h (struct completion_tracker): Forward declare.
7003 (completer_ftype, completer_handle_brkchars_ftype): Change
7004 types.
7005 (complete_on_cmdlist, complete_on_enum): Adjust.
7006 * completer.c: Include <algorithm>.
7007 (struct gdb_completer_state): New.
7008 (current_completion): New global.
7009 (readline_line_completion_function): Delete.
7010 (noop_completer, filename_completer)
7011 (filename_completer_handle_brkchars, complete_files_symbols)
7012 (linespec_location_completer): Adjust to work with a
7013 completion_tracker instead of a VEC.
7014 (string_or_empty): New.
7015 (collect_explicit_location_matches): Adjust to work with a
7016 completion_tracker instead of a VEC.
7017 (explicit_location_completer): Rename to ...
7018 (complete_explicit_location): ... this and adjust to work with a
7019 completion_tracker instead of a VEC.
7020 (location_completer): Adjust to work with a completion_tracker
7021 instead of a VEC.
7022 (add_struct_fields): Adjust to work with a completion_list instead
7023 of VEC.
7024 (expression_completer): Rename to ...
7025 (complete_expression): ... this and adjust to work with a
7026 completion_tracker instead of a VEC. Use complete_files_symbols.
7027 (expression_completer): Reimplement on top of complete_expression.
7028 (symbol_completer): Adjust to work with a completion_tracker
7029 instead of a VEC.
7030 (enum complete_line_internal_reason): Add describing comments.
7031 (complete_line_internal_normal_command): Adjust to work with a
7032 completion_tracker instead of a VEC.
7033 (complete_line_internal): Rename to ...
7034 (complete_line_internal_1): ... this and adjust to work with a
7035 completion_tracker instead of a VEC. Assert TEXT is NULL in the
7036 handle_brkchars phase.
7037 (new_completion_tracker): Delete.
7038 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
7039 complete_line_internal_1.
7040 (free_completion_tracker): Delete.
7041 (INITIAL_COMPLETION_HTAB_SIZE): New.
7042 (completion_tracker::completion_tracker)
7043 (completion_tracker::~completion_tracker): New.
7044 (maybe_add_completion): Delete.
7045 (completion_tracker::maybe_add_completion)
7046 (completion_tracker::add_completion)
7047 (completion_tracker::add_completions): New.
7048 (throw_max_completions_reached_error): Delete.
7049 (complete_line): Adjust to work with a completion_tracker instead
7050 of a VEC. Don't create a completion_tracker_t or check for max
7051 completions here.
7052 (command_completer, command_completer_handle_brkchars)
7053 (signal_completer, reg_or_group_completer_1)
7054 (reg_or_group_completer, default_completer_handle_brkchars):
7055 Adjust to work with a completion_tracker.
7056 (gdb_completion_word_break_characters_throw): New.
7057 (gdb_completion_word_break_characters): Reimplement.
7058 (line_completion_function): Delete.
7059 (completion_tracker::recompute_lowest_common_denominator)
7060 (expand_preserving_ws)
7061 (completion_tracker::build_completion_result)
7062 (completion_result::completion_result)
7063 (completion_result::completion_result)
7064 (completion_result::~completion_result)
7065 (completion_result::completion_result)
7066 (completion_result::release_match_list, compare_cstrings)
7067 (completion_result::sort_match_list)
7068 (completion_result::reset_match_list)
7069 (gdb_rl_attempted_completion_function_throw)
7070 (gdb_rl_attempted_completion_function): New.
7071 * completer.h (completion_list, struct completion_result)
7072 (class completion_tracker): New.
7073 (complete_line): Add completion_tracker parameter.
7074 (readline_line_completion_function): Delete.
7075 (gdb_rl_attempted_completion_function): New.
7076 (noop_completer, filename_completer, expression_completer)
7077 (location_completer, symbol_completer, command_completer)
7078 (signal_completer, reg_or_group_completer): Update prototypes.
7079 (completion_tracker_t, new_completion_tracker)
7080 (make_cleanup_free_completion_tracker): Delete.
7081 (enum maybe_add_completion_enum): Delete.
7082 (maybe_add_completion): Delete.
7083 (throw_max_completions_reached_error): Delete.
7084 * corefile.c (complete_set_gnutarget): Adjust to work with a
7085 completion_tracker instead of a VEC.
7086 * cp-abi.c (cp_abi_completer): Adjust to work with a
7087 completion_tracker instead of a VEC.
7088 * d-lang.c (d_language_defn): Adjust.
7089 * disasm.c (disassembler_options_completer): Adjust to work with a
7090 completion_tracker instead of a VEC.
7091 * f-lang.c (f_make_symbol_completion_list): Rename to ...
7092 (f_collect_symbol_completion_matches): ... this. Adjust to work
7093 with a completion_tracker instead of a VEC.
7094 (f_language_defn): Adjust.
7095 * go-lang.c (go_language_defn): Adjust.
7096 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
7097 Adjust to work with a completion_tracker instead of a VEC.
7098 * infrun.c (handle_completer): Likewise.
7099 * interps.c (interpreter_completer): Likewise.
7100 * interps.h (interpreter_completer): Likewise.
7101 * language.c (unknown_language_defn, auto_language_defn)
7102 (local_language_defn): Adjust.
7103 * language.h (language_defn::la_make_symbol_completion_list):
7104 Rename to ...
7105 (language_defn::la_collect_symbol_completion_matches): ... this
7106 and adjust to work with a completion_tracker instead of a VEC.
7107 * m2-lang.c (m2_language_defn): Adjust.
7108 * objc-lang.c (objc_language_defn): Adjust.
7109 * opencl-lang.c (opencl_language_defn): Adjust.
7110 * p-lang.c (pascal_language_defn): Adjust.
7111 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
7112 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
7113 with a completion_tracker.
7114 * rust-lang.c (rust_language_defn): Adjust.
7115 * symtab.c (free_completion_list, do_free_completion_list)
7116 (return_val, completion_tracker): Delete.
7117 (completion_list_add_name, completion_list_add_symbol)
7118 (completion_list_add_msymbol, completion_list_objc_symbol)
7119 (completion_list_add_fields, add_symtab_completions): Add
7120 completion_tracker parameter and use it.
7121 (default_make_symbol_completion_list_break_on_1): Rename to...
7122 (default_collect_symbol_completion_matches_break_on): ... this.
7123 Add completion_tracker parameter and use it instead of allocating
7124 a completion tracker here.
7125 (default_make_symbol_completion_list_break_on): Delete old
7126 implementation.
7127 (default_make_symbol_completion_list): Delete.
7128 (default_collect_symbol_completion_matches): New.
7129 (make_symbol_completion_list): Delete.
7130 (collect_symbol_completion_matches): New.
7131 (make_symbol_completion_type): Rename to ...
7132 (collect_symbol_completion_matches_type): ... this. Add
7133 completion_tracker parameter and use it instead of VEC.
7134 (make_file_symbol_completion_list_1): Rename to...
7135 (collect_file_symbol_completion_matches): ... this. Add
7136 completion_tracker parameter and use it instead of VEC.
7137 (make_file_symbol_completion_list): Delete.
7138 (add_filename_to_list): Use completion_list instead of a VEC.
7139 (add_partial_filename_data::list): Now a completion_list.
7140 (make_source_files_completion_list): Work with a completion_list
7141 instead of a VEC.
7142 * symtab.h: Include "completer.h".
7143 (default_make_symbol_completion_list_break_on)
7144 (default_make_symbol_completion_list, make_symbol_completion_list)
7145 (make_symbol_completion_type, make_file_symbol_completion_list)
7146 (make_source_files_completion_list): Delete.
7147 (default_collect_symbol_completion_matches_break_on)
7148 (default_collect_symbol_completion_matches)
7149 (collect_symbol_completion_matches)
7150 (collect_symbol_completion_matches_type)
7151 (collect_file_symbol_completion_matches)
7152 (make_source_files_completion_list): New.
7153 * top.c (init_main): Don't install a rl_completion_entry_function
7154 hook. Install a rl_attempted_completion_function hook instead.
7155 * tui/tui-layout.c (layout_completer): Adjust to work with a
7156 completion_tracker.
7157 * tui/tui-regs.c (tui_reggroup_completer):
7158 * tui/tui-win.c (window_name_completer, focus_completer)
7159 (winheight_completer): Adjust to work with a completion_tracker.
7160 * value.c: Include "completer.h".
7161 (complete_internalvar): Adjust to work with a completion_tracker.
7162 * value.h (complete_internalvar): Likewise.
7163
6e1dbf8c
PA
71642017-07-17 Pedro Alves <palves@redhat.com>
7165
7166 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
7167 renames.
7168 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
7169 comments to completer_ftype's declaration.
7170 <completer_handle_brkchars>: Change type to
7171 completer_handle_brkchars_ftype.
7172 * command.h (completer_ftype): Add describing comment and give
7173 names to parameters.
7174 (completer_ftype_void): Rename to ...
7175 (completer_handle_brkchars_ftype) ... this. Add describing comment.
7176 (set_cmd_completer_handle_brkchars): Adjust.
7177 * completer.c (filename_completer_handle_brkchars): New function.
7178 (complete_line_internal_normal_command): New function, factored
7179 out from ...
7180 (complete_line_internal): ... here.
7181 (command_completer_handle_brkchars)
7182 (default_completer_handle_brkchars)
7183 (completer_handle_brkchars_func_for_completer): New functions.
7184 * completer.h (set_gdb_completion_word_break_characters): Delete
7185 declaration.
7186 (completer_handle_brkchars_func_for_completer): New declaration.
7187 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
7188 completer_handle_brkchars_func_for_completer.
7189
78b13106
PA
71902017-07-17 Pedro Alves <palves@redhat.com>
7191
7192 * completer.c (symbol_completer): New function, based on
7193 make_symbol_completion_list_fn.
7194 * completer.h (symbol_completer): New declaration.
7195 * guile/scm-cmd.c (cmdscm_completers): Adjust.
7196 * python/py-cmd.c (completers): Adjust.
7197 * symtab.c (make_symbol_completion_list_fn): Delete.
7198 * symtab.h (make_symbol_completion_list_fn): Delete.
7199 * cli/cli-decode.c (add_cmd): Adjust.
7200
bbf2f4df
PA
72012017-07-17 Pedro Alves <palves@redhat.com>
7202
7203 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
7204 * dwarf2read.c: Include "filename-seen-cache.h".
7205 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
7206 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
7207 * filename-seen-cache.c: New file.
7208 * filename-seen-cache.h: New file.
7209 * symtab.c: Include "filename-seen-cache.h".
7210 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
7211 (create_filename_seen_cache, clear_filename_seen_cache)
7212 (delete_filename_seen_cache, filename_seen): Delete, parts moved
7213 to filename-seen-cache.h/filename-seen-cache.c.
7214 (output_source_filename, sources_info)
7215 (maybe_add_partial_symtab_filename)
7216 (make_source_files_completion_list): Adjust to use
7217 filename_seen_cache.
7218
330cdd98
PA
72192017-07-17 Pedro Alves <palves@redhat.com>
7220
7221 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
7222 fields.
7223 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
7224 dwarf2_debug_sections*)): New.
7225 (dwarf2_per_objfile::dwarf2_per_objfile(const
7226 dwarf2_per_objfile&)): Declare as deleted.
7227 (dwarf2_per_objfile::operator=): Declare as deleted.
7228 (dwarf2_per_objfile::dwarf2_per_objfile)
7229 (dwarf2_per_objfile::~dwarf2_per_objfile)
7230 (dwarf2_per_objfile::free_cached_comp_units): New.
7231 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
7232 ctor. Call dwarf2_per_objfile's ctor manually.
7233 (dwarf2_locate_sections): Deleted/refactored as ...
7234 (dwarf2_per_objfile::locate_sections): ... this new method.
7235 (free_cached_comp_units): Defer to
7236 dwarf2_per_objfile::free_cached_comp_units.
7237 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
7238
8880f2a9
TT
72392017-07-14 Tom Tromey <tom@tromey.com>
7240
7241 PR rust/21764:
7242 * rust-exp.y (convert_ast_to_expression): Add "want_type"
7243 parameter.
7244 <UNOP_SIZEOF>: Split into separate case.
7245 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
7246
65547233
TT
72472017-07-14 Tom Tromey <tom@tromey.com>
7248
7249 PR rust/21763:
7250 * symtab.c (symbol_matches_domain): Add language_rust to special
7251 case.
7252 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
7253 treat LOC_TYPEDEF symbols as variables.
7254
8f14146e
PA
72552017-07-14 Pedro Alves <palves@redhat.com>
7256
7257 * symtab.c (make_file_symbol_completion_list_1): Iterate over
7258 symtabs matching all symtabs with SRCFILE as file name instead of
7259 only considering the first hit, with lookup_symtab.
7260
2347965c
SM
72612017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7262
7263 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
7264 operator_name parameters.
7265 (gen_expr): Update function call.
7266
40f4af28
SM
72672017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7268
7269 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
7270 parameter.
7271 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
7272 Likewise.
7273 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
7274 parameter, use agent_expr::gdbarch instead, update function
7275 calls.
7276 (locexpr_tracepoint_var_ref): Likewise.
7277 (loclist_tracepoint_var_ref): Likewise.
7278 * ax-gdb.c (gen_trace_static_fields): Likewise.
7279 (gen_traced_pop): Likewise.
7280 (gen_frame_args_address): Likewise.
7281 (gen_frame_locals_address): Likewise.
7282 (gen_var_ref): Likewise.
7283 (gen_struct_ref_recursive): Likewise.
7284 (gen_static_field): Likewise.
7285 (gen_maybe_namespace_elt): Likewise.
7286 (gen_expr): Likewise.
7287 (gen_trace_for_var): Likewise.
7288 (gen_trace_for_expr): Likewise.
7289 (gen_trace_for_return_address): Likewise.
7290
053f8057
SM
72912017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7292
7293 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
7294 parameter.
7295 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
7296
6661ad48
SM
72972017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7298
7299 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
7300 from ax, update calls.
7301 (gen_usual_arithmetic): Likewise.
7302 (gen_integral_promotions): Likewise.
7303 (gen_bitfield_ref): Likewise.
7304 (gen_primitive_field): Likewise.
7305 (gen_struct_ref_recursive): Likewise.
7306 (gen_struct_ref): Likewise.
7307 (gen_maybe_namespace_elt): Likewise.
7308 (gen_struct_elt_for_reference): Likewise.
7309 (gen_namespace_elt): Likewise.
7310 (gen_aggregate_elt_ref): Likewise.
7311 (gen_expr): Get gdbarch from ax, update calls.
7312 (gen_expr_binop_rest): Likewise.
7313
c55a47e7
PA
73142017-07-13 Pedro Alves <palves@redhat.com>
7315
7316 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
7317 as default tdesc.
7318 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
7319 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
7320 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
7321 tdesc_amd64_linux as default tdesc. Get final tdesc from the
7322 tdep.
7323 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
7324 Get final tdesc from the tdep.
7325 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
7326 default tdesc.
7327 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
7328 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
7329 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
7330 Use it as default tdesc.
7331 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
7332 down to amd_init_abi. No longer handle fallback tdesc here.
7333 * amd64-tdep.h (tdesc_x32): Declare.
7334 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
7335 parameter.
7336 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
7337 as default tdesc.
7338
55efceab
AA
73392017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7340
7341 * s390-linux-tdep.c (s390_process_record): Add support for
7342 instructions new in arch12.
7343
0aa37b65
JB
73442017-07-11 John Baldwin <jhb@FreeBSD.org>
7345
7346 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
7347 PT_GETFSBASE and PT_GETGSBASE.
7348 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
7349 PT_SETGSBASE.
7350
48aeef91
JB
73512017-07-11 John Baldwin <jhb@FreeBSD.org>
7352
7353 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
7354 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
7355 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
7356 those rules.
7357 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
7358 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
7359 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
7360 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
7361 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
7362 * features/i386/amd64.xml: Add 64bit-segments.xml.
7363 * features/i386/amd64-avx-avx512.c: Regenerated.
7364 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
7365 * features/i386/amd64-avx-mpx.c: Regenerated.
7366 * features/i386/amd64-avx.c: Regenerated.
7367 * features/i386/amd64-mpx.c: Regenerated.
7368 * features/i386/amd64.c: Regenerated.
7369 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
7370 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
7371 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
7372 * regformats/i386/amd64-avx.dat: Regenerated.
7373 * regformats/i386/amd64-mpx.dat: Regenerated.
7374 * regformats/i386/amd64.dat: Regenerated.
7375
77c501bc
YQ
73762017-07-10 Yao Qi <yao.qi@linaro.org>
7377
7378 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
7379 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
7380
6dc8d757
AK
73812017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
7382
7383 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
7384 unsetenv.
7385 * gnulib/aclocal.m4: Regenerate.
7386 * gnulib/config.in: Regenerate.
7387 * gnulib/configure: Regenerate.
7388 * gnulib/import/Makefile.am: Regenerate.
7389 * gnulib/import/Makefile.in: Regenerate.
7390 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
7391 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
7392 * gnulib/import/m4/environ.m4: New file.
7393 * gnulib/import/m4/setenv.m4: New file.
7394 * gnulib/import/setenv.c: New file.
7395 * gnulib/import/unsetenv.c: New file.
7396
266934d1
SM
73972017-07-09 Simon Marchi <simon.marchi@ericsson.com>
7398
7399 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
7400 address when op is DW_OP_addr.
7401
03278692
TT
74022017-07-09 Tom Tromey <tom@tromey.com>
7403
7404 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
7405 check and apply to outer type.
7406
4b654465
JB
74072017-07-07 John Baldwin <jhb@FreeBSD.org>
7408
7409 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
7410 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
7411 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
7412 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
7413
2af9fc44
JB
74142017-07-07 John Baldwin <jhb@FreeBSD.org>
7415
7416 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
7417
382b69bb
JB
74182017-07-07 John Baldwin <jhb@FreeBSD.org>
7419
7420 * corelow.c (get_core_siginfo): Remove.
7421 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
7422 instead of get_core_siginfo.
7423 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
7424 * gdbarch.h: Re-generate.
7425 * gdbarch.c: Re-generate.
7426 * linux-tdep.c (linux_core_xfer_siginfo): New.
7427 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
7428
6e5eab33
JB
74292017-07-07 John Baldwin <jhb@FreeBSD.org>
7430
7431 * corelow.c (thread_section_name): Move to ...
7432 * gdbcore.h (thread_section_name): ... here.
7433
929edea9
JB
74342017-07-07 John Baldwin <jhb@FreeBSD.org>
7435
7436 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
7437 (struct siginfo32): New.
7438 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
7439 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
7440 via ptrace(PT_LWPINFO).
7441
762c974a
JB
74422017-07-07 John Baldwin <jhb@FreeBSD.org>
7443
7444 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
7445 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
7446 (fbsd_get_siginfo_type): New.
7447 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
7448 (_initialize_fbsd_tdep): New.
7449
33c5cd75
DB
74502017-07-06 David Blaikie <dblaikie@gmail.com>
7451
7452 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
7453 a singular dwo_unit*) to support multiple CUs in the same way that
7454 multiple TUs are supported.
7455 (create_cus_hash_table): Replace create_dwo_cu with a function for
7456 parsing multiple CUs from a DWO file.
7457 (open_and_init_dwo_file): Use create_cus_hash_table rather than
7458 create_dwo_cu.
7459 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
7460 htab_find, rather than comparing the signature to a singleton CU in
7461 the dwo_file.
7462
8455d262
PA
74632017-07-06 Pedro Alves <palves@redhat.com>
7464
7465 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
7466
4da3eb35
PA
74672017-07-04 Pedro Alves <palves@redhat.com>
7468
7469 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
7470 * gdbtypes.h (TYPE_STATIC): Delete.
7471 (struct fn_field) <is_public, is_abstract, is_static, is_final,
7472 is_synchronized, is_native>: Delete.
7473 <dummy>: Bump.
7474 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
7475 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
7476 (TYPE_FN_FIELD_ABSTRACT): Delete.
7477
5bfd255c
SM
74782017-07-03 Simon Marchi <simon.marchi@ericsson.com>
7479
7480 * buffer.h (buffer_finish): Fix spelling mistakes.
7481
25c54127
EZ
74822017-07-01 Eli Zaretskii <eliz@gnu.org>
7483
7484 * .dir-locals.el: Automatically switch to C-style comments in
7485 versions of Emacs that support the feature.
7486
dc4bde35
SDJ
74872017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
7488 Pedro Alves <palves@redhat.com>
7489
7490 PR cli/21688
7491 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
7492 (process_next_line): New variable 'inline_cmd'.
7493 Adjust 'if' clauses for "python", "compile" and "guile" to use
7494 'command_name_equals' and check for '!inline_cmd'.
7495
51ed89aa
SDJ
74962017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
7497
7498 PR cli/21688
7499 * cli/cli-script.c (command_name_equals_not_inline): New function.
7500 (process_next_line): Adjust 'if' clauses for "python", "compile"
7501 and "guile" to use command_name_equals_not_inline.
7502
eb17d413
PA
75032017-06-29 Pedro Alves <palves@redhat.com>
7504
7505 * completer.c (expression_completer): Call
7506 linespec_location_completer instead of location_completer.
7507
195bcdd5
PA
75082017-06-29 Pedro Alves <palves@redhat.com>
7509
7510 * completer.c (expression_completer): Remove code that recomputes
7511 'text' from 'word'.
7512
adc764e7
YQ
75132017-06-29 Yao Qi <yao.qi@linaro.org>
7514
7515 * regformats/regdat.sh: Generate code with
7516 "ifndef IN_PROCESS_AGENT".
7517
6e75794e
PA
75182017-06-28 Pedro Alves <palves@redhat.com>
7519
7520 * command.h: Include "common/scoped_restore.h".
7521
bc491f2e
YQ
75222017-06-28 Yao Qi <yao.qi@linaro.org>
7523
7524 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
7525 instead of obstack_grow.
7526
41664b45
DG
75272017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
7528
7529 PR gdb/21337
7530 * symfile.c (reread_symbols): Call objfiles_changed just before
7531 read_symbols.
7532
6da67eb1
PA
75332017-06-27 Pedro Alves <palves@redhat.com>
7534
7535 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
7536 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
7537 (completion_list_add_symbol, completion_list_add_msymbol):
7538 ... these new functions.
7539 (add_symtab_completions)
7540 (default_make_symbol_completion_list_break_on_1): Adjust.
7541
23732b1e
PA
75422017-06-27 Pedro Alves <palves@redhat.com>
7543
7544 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
7545 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
7546 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
7547 dtor.
7548 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
7549 'storage_obstack' field an auto_obstack. In-class initialize all
7550 non-bitfield fields. Make minsyms_read bool.
7551 * symfile.c (read_symbols): Adjust.
7552
a4d1e79a
AH
75532017-06-27 Alan Hayward <alan.hayward@arm.com>
7554
7555 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
7556 (gdbsim_store_register): Likewise.
7557
8268c778
PA
75582017-06-27 Pedro Alves <palves@redhat.com>
7559
7560 * c-exp.y (name_obstack): Now an auto_obstack.
7561 (yylex): Use auto_obstack::clear.
7562 (c_parse): Use auto_obstack::clear instead of reinitializing and
7563 freeing the obstack.
7564 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
7565 * d-exp.y (name_obstack): Now an auto_obstack.
7566 (yylex): Use auto_obstack::clear.
7567 (d_parse): Use auto_obstack::clear instead of reinitializing and
7568 freeing the obstack.
7569 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
7570 auto_obstack.
7571 * dwarf2read.c (create_addrmap_from_index)
7572 (dwarf2_build_psymtabs_hard)
7573 (update_enumeration_type_from_children): Likewise.
7574 * gdb_obstack.h (auto_obstack): New type.
7575 * go-exp.y (name_obstack): Now an auto_obstack.
7576 (build_packaged_name): Use auto_obstack::clear.
7577 (go_parse): Use auto_obstack::clear instead of reinitializing and
7578 freeing the obstack.
7579 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
7580 auto_obstack.
7581 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
7582 * rust-exp.y (work_obstack): Now an auto_obstack.
7583 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
7584 reinitializing and freeing the obstack.
7585 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
7586 (host_char_to_target): Use auto_obstack.
7587 * utils.h (make_cleanup_obstack_free): Delete declaration.
7588 * valprint.c (generic_emit_char, generic_printstr): Use
7589 auto_obstack.
7590
db665f42
SM
75912017-06-27 Simon Marchi <simon.marchi@ericsson.com>
7592
7593 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
7594 thread.
7595 (darwin_init_thread_list): Don't update dummy thread.
7596 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
7597
873c0814
SM
75982017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7599
7600 * record-full.c (netorder16): Remove.
7601
8b5a7a6e
SM
76022017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7603
7604 * common/diagnostics.h: Define macros for GCC.
7605 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
7606 * common/vec.h: Include diagnostics.h.
7607 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
7608 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
7609 warning.
7610
d1435379
SM
76112017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7612
7613 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
7614 New macro.
7615 * ada-lex.l: Ignore deprecated register warnings.
7616
cc75e0fd
SM
76172017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7618
7619 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
7620 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
7621
07809eaf
SM
76222017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7623
7624 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
7625 its own line.
7626
f076f034
SM
76272017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7628
7629 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
7630
0dd5cbc5
AH
76312017-06-23 Alan Hayward <alan.hayward@arm.com>
7632
7633 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
7634 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
7635 (xtensa_register_read_masked): Likewise.
7636
d4c6ce5b
SDJ
76372017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
7638
7639 * common/environ.c (gdb_environ::unset): Update comment.
7640
16892a03
AH
76412017-06-22 Alan Hayward <alan.hayward@arm.com>
7642
7643 * python/py-unwind.c (pyuw_sniffer): Allocate space for
7644 registers.
7645
d7dcbefc
AH
76462017-06-22 Alan Hayward <alan.hayward@arm.com>
7647
7648 * record-full.c (record_full_exec_insn): Use byte_vector.
7649
b30ff123
YQ
76502017-06-22 Yao Qi <yao.qi@linaro.org>
7651
7652 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
7653 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
7654
4fa847d7
AH
76552017-06-22 Alan Hayward <alan.hayward@arm.com>
7656
7657 * remote.c (cached_reg): Move from here...
7658 * regcache.h (cached_reg): ...to here.
7659 * python/py-unwind.c (struct reg_info): Remove.
7660 (cached_frame_info): Use cached_reg_t.
7661 (pyuw_prev_register): Likewise.
7662 (pyuw_sniffer): Use cached_reg_t and allocate registers.
7663 (pyuw_dealloc_cache): Free all registers.
7664
f4906a9a
PA
76652017-06-22 Pedro Alves <palves@redhat.com>
7666 Simon Marchi <simon.marchi@ericsson.com>
7667
7668 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
7669 warning.
7670 * common/diagnostics.h: New file.
7671
b45a1208
PA
76722017-06-22 Pedro Alves <palves@redhat.com>
7673
7674 * common/agent.h: Add include guards.
7675
e4da2c61
SM
76762017-06-21 Simon Marchi <simon.marchi@ericsson.com>
7677
7678 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
7679 talk about addressable units instead of bytes.
7680
96160d60
SDJ
76812017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7682
7683 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
7684 of '::const_iterator'.
7685
9a6c7d9c
SDJ
76862017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7687
7688 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7689 'unittests/environ-selftests.c'.
7690 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
7691 * charset.c (find_charset_names): Declare object 'iconv_env'.
7692 Update code to use 'iconv_env' object. Remove call to
7693 'free_environ'.
7694 * common/environ.c: Include <utility>.
7695 (make_environ): Delete function.
7696 (free_environ): Delete function.
7697 (gdb_environ::clear): New function.
7698 (gdb_environ::operator=): New function.
7699 (gdb_environ::get): Likewise.
7700 (environ_vector): Delete function.
7701 (set_in_environ): Delete function.
7702 (gdb_environ::set): New function.
7703 (unset_in_environ): Delete function.
7704 (gdb_environ::unset): New function.
7705 (gdb_environ::envp): Likewise.
7706 * common/environ.h: Include <vector>.
7707 (struct gdb_environ): Delete; transform into...
7708 (class gdb_environ): ... this class.
7709 (free_environ): Delete prototype.
7710 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
7711 environ_vector): Likewise.
7712 * infcmd.c (run_command_1): Update code to call
7713 'envp' from 'gdb_environ' class.
7714 (environment_info): Update code to call methods from 'gdb_environ'
7715 class.
7716 (unset_environment_command): Likewise.
7717 (path_info): Likewise.
7718 (path_command): Likewise.
7719 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
7720 (inferior::inferior): Initialize 'environment' using the host's
7721 information.
7722 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
7723 Include "environ.h".
7724 (class inferior) <environment>: Change type from 'struct
7725 gdb_environ' to 'gdb_environ'.
7726 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
7727 methods from 'gdb_environ' class.
7728 * solib.c (solib_find_1): Likewise
7729 * unittests/environ-selftests.c: New file.
7730
75c554cf
YQ
77312017-06-20 Yao Qi <yao.qi@linaro.org>
7732
7733 * features/i386/i386-linux.xml: Exchange the order of including
7734 32bit-linux.xml and 32bit-sse.xml.
7735 * features/i386/i386-linux.c: Regenerated.
7736
72ddacb7
YQ
77372017-06-20 Yao Qi <yao.qi@linaro.org>
7738
7739 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
7740 Delete copy ctor and assignment operator.
7741 (tdesc_type): Likewise.
7742 (tdesc_feature): Likewise.
7743 (tdesc_free_reg): Remove.
7744 (tdesc_create_reg): Use new.
7745 (tdesc_free_type): Remove.
7746 (tdesc_create_vector): Use new.
7747 (tdesc_create_union): Likewise.
7748 (tdesc_create_flags): Likewise.
7749 (tdesc_create_enum): Likewise.
7750 (tdesc_free_feature): Delete.
7751 (free_target_description): Use delete.
7752
325c9fd4
JB
77532017-06-19 John Baldwin <jhb@FreeBSD.org>
7754
7755 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
7756 registers.
7757
16b7a719
PA
77582017-06-19 Pedro Alves <palves@redhat.com>
7759
7760 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
7761 after gdb::unlinker.
7762
1c8e01c9
SDJ
77632017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
7764
7765 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
7766 gdb_environ to access an environment variable.
7767
ffce45d2
TP
77682017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7769
7770 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
7771 gdb_byte*.
7772
1d4fbac9
SM
77732017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7774
7775 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
7776
8465943a
SM
77772017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7778
7779 * configure: Re-generate.
7780 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
7781
3e019bdc
SM
77822017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7783
7784 * configure: Re-generate.
7785 * warning.m4: Pass -Werror to compiler when checking for
7786 supported warning flags.
7787
cf0dd6f0
SM
77882017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7789
7790 * Makefile.in (COMPILE.pre): Add "-x c++".
7791
6f98355c
YQ
77922017-06-16 Alan Hayward <alan.hayward@arm.com>
7793 Pedro Alves <palves@redhat.com>
7794 Yao Qi <yao.qi@linaro.org>
7795
7796 * defs.h (RequireLongest): New.
7797 (extract_integer): Declare function template.
7798 (extract_signed_integer): Remove the declaration, but define it
7799 static inline.
7800 (extract_unsigned_integer): Likewise.
7801 (store_integer): Declare function template.
7802 (store_signed_integer): Remove the declaration, but define it
7803 static inline.
7804 (store_unsigned_integer): Likewise.
7805 * findvar.c (extract_integer): New function template.
7806 (extract_signed_integer): Remove.
7807 (extract_unsigned_integer): Remove.
7808 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
7809 instantiations.
7810 (store_integer): New function template.
7811 (store_signed_integer): Remove.
7812 (store_unsigned_integer): Remove.
7813 (store_integer): Explicit instantiations.
7814 * regcache.c (regcache_raw_read_signed): Update.
7815 (regcache::raw_read): New function.
7816 (regcache::raw_read_signed): Remove.
7817 (regcache::raw_read_unsigned): Remove.
7818 (regcache_raw_read_unsigned): Update.
7819 (regcache_raw_write_unsigned): Update.
7820 (regcache::raw_write_signed): Remove.
7821 (regcache::raw_write): New function.
7822 (regcache_cooked_read_signed): Update.
7823 (regcache::raw_write_unsigned): Remove.
7824 (regcache::cooked_read_signed): Remove.
7825 (regcache_cooked_read_unsigned): Update.
7826 (regcache::cooked_read_unsigned): Remove.
7827 (regcache_cooked_write_signed): Update.
7828 (regcache_cooked_write_unsigned): Update.
7829 * regcache.h (regcache) <raw_read_signed>: Remove.
7830 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
7831 <raw_read, raw_write>: New.
7832 <cooked_read_signed, cooked_write_signed>: Remove.
7833 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
7834 <cooked_read, cooked_write>: New.
7835 * sh64-tdep.c (sh64_pseudo_register_read): Update.
7836 (sh64_pseudo_register_write): Update.
7837
a87dc45a
AK
78382017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
7839
7840 * arc-tdep.c (arc_disassembler_options): New variable.
7841 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
7842 of default_print_insn.
7843 (arc_delayed_print_insn): Set info->section when needed,
7844 use default_print_insn to retrieve a disassembler.
7845
45159d6a
SDJ
78462017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
7847
7848 PR gdb/21574
7849 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
7850 to mention $SHELL and startup-with-shell.
7851
b46c4cf0
MF
78522017-06-14 Max Filippov <jcmvbkbc@gmail.com>
7853
7854 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
7855
6394c606
YQ
78562017-06-14 Yao Qi <yao.qi@linaro.org>
7857
7858 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
7859 default_print_insn instead of print_insn_aarch64.
7860 * arm-tdep.c (gdb_print_insn_arm): Call
7861 default_print_insn instead of print_insn_big_arm
7862 and print_insn_little_arm.
7863 * i386-tdep.c (i386_print_insn): Call default_print_insn
7864 instead of print_insn_i386.
7865 * ia64-tdep.c (ia64_print_insn): Call
7866 default_print_insn instead of print_insn_ia64.
7867 * mips-tdep.c (gdb_print_insn_mips): Call
7868 default_print_insn instead of print_insn_big_mips
7869 and print_insn_little_mips.
7870 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
7871 instead of print_insn_spu.
7872
d5722aa2
PA
78732017-06-14 Pedro Alves <palves@redhat.com>
7874
7875 * ada-lang.c: Include "common/byte-vector.h".
7876 (ada_value_primitive_packed_val): Use gdb::byte_vector.
7877 * charset.c (wchar_iterator::iterate): Resize the vector instead
7878 of reserving it.
7879 * common/byte-vector.h: Include "common/def-vector.h".
7880 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
7881 * cli/cli-dump.c: Include "common/byte-vector.h".
7882 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
7883 * common/byte-vector.h: New file.
7884 * common/def-vector.h: New file.
7885 * common/default-init-alloc.h: New file.
7886 * dwarf2loc.c: Include "common/byte-vector.h".
7887 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
7888 instead of reserving it.
7889 * dwarf2read.c: Include "common/byte-vector.h".
7890 (data_buf::m_vec): Now a gdb::byte_vector.
7891 * gdb_regex.c: Include "common/def-vector.h".
7892 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
7893 * mi/mi-main.c: Include "common/byte-vector.h".
7894 (mi_cmd_data_read_memory): Use gdb::byte_vector.
7895 * printcmd.c: Include "common/byte-vector.h".
7896 (print_scalar_formatted): Use gdb::byte_vector.
7897 * valprint.c: Include "common/byte-vector.h".
7898 (maybe_negate_by_bytes, print_decimal_chars): Use
7899 gdb::byte_vector.
7900
01ec7a27
SM
79012017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7902
7903 * darwin-nat.c: Include "nat/fork-inferior.h".
7904
848d9074
SM
79052017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7906
7907 * configure.nat: Factor out Darwin bits that are not
7908 architecture-specific. Add fork-inferior.o.
7909
3b912944
SM
79102017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7911
7912 * configure.nat: Factor out AIX bits that are not
7913 architecture-specific. Add fork-inferior.o.
7914
55acdf22
AA
79152017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7916
7917 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
7918 (read_pieced_value, write_pieced_value): ...here. Reduce to
7919 wrappers that just call rw_pieced_value.
7920
f65e2044
AA
79212017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7922
7923 * dwarf2loc.c (write_pieced_value): When writing the data for a
7924 memory piece, use write_memory_with_notification instead of
7925 write_memory.
7926
23f945bf
AA
79272017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7928
7929 * valops.c (read_value_memory): Change embedded_offset to
7930 represent a bit offset instead of a byte offset.
7931 * value.h (read_value_memory): Adjust comment.
7932
f236533e
AA
79332017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7934
7935 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
7936 dest_offset_bits and source_offset_bits.
7937 (write_pieced_value): Likewise.
7938
65d84b76
AA
79392017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7940
7941 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
7942 given by DW_OP_bit_piece.
7943 (write_pieced_value): Likewise.
7944
242d31ab
AA
79452017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7946
7947 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
7948 some other preparations to the places where sufficient information
7949 is available.
7950 (write_pieced_value): Likewise.
7951
03c8af18
AA
79522017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7953
7954 * dwarf2loc.c (bits_to_bytes): New function.
7955 (read_pieced_value): Fix offset calculations for register pieces
7956 on big-endian targets.
7957 (write_pieced_value): Likewise.
7958
840989c1
AA
79592017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7960
7961 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
7962 (write_pieced_value): Likewise.
7963
359b19bb
AA
79642017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7965
7966 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
7967 transfer the source value's least significant bits, instead of its
7968 lowest-addressed ones. Rename type_len to max_offset.
7969 (read_pieced_value): Mirror above changes to write_pieced_value as
7970 applicable.
7971
07c9ca3b
AA
79722017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7973
7974 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
7975 truncate full bytes from dest_offset_bits before using it as an
7976 offset into the buffer.
7977
f1cc9874
AA
79782017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7979
7980 * dwarf2loc.c (write_pieced_value): Include transfer size in
7981 byte-wise check.
7982
cdaac320
AA
79832017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7984
7985 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
7986 calculation of this_size.
7987
af547a96
AA
79882017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7989
7990 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
7991 when targeting a bit-field.
7992 (write_pieced_value): Likewise.
7993
ddd7882a
AA
79942017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7995
7996 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
7997 (allocate_piece_closure): Drop addr_size parameter.
7998 (dwarf2_evaluate_loc_desc_full): Adjust call to
7999 allocate_piece_closure.
8000
e9352324
AA
80012017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8002
8003 PR gdb/21226
8004 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
8005 the LSB end, independent of endianness.
8006
d5d1163e
AA
80072017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8008
8009 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
8010 size capping.
8011
032bb6ea
YQ
80122017-06-13 Yao Qi <yao.qi@linaro.org>
8013
8014 * mips-linux-nat.c: Move include features/mips*-linux.c to
8015 mips-linux-tdep.c.
8016 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
8017 to mips-linux-tdep.c.
8018 * mips-linux-tdep.c: Include features/mips*-linux.c
8019 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
8020 functions.
8021 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
8022 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
8023 (tdesc_mips64_dsp_linux): Declare.
8024
f12f6bad
TT
80252017-06-12 Tom Tromey <tom@tromey.com>
8026
8027 * valprint.h (val_print_type_code_int): Remove.
8028 * valprint.c (generic_val_print_int): Always call
8029 val_print_scalar_formatted.
8030 (val_print_type_code_int): Remove.
8031 * printcmd.c (print_scalar_formatted): Handle options->format==0.
8032 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
8033 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
8034 * ada-valprint.c (ada_val_print_num): Use
8035 val_print_scalar_formatted.
8036
d9109c80
TT
80372017-06-12 Tom Tromey <tom@tromey.com>
8038
8039 * printcmd.c (print_scalar_formatted): Unify the two switches.
8040 Don't convert scalars to LONGEST.
8041
4ac0cb1c
TT
80422017-06-12 Tom Tromey <tom@tromey.com>
8043
8044 PR exp/16225:
8045 * valprint.h (print_decimal_chars): Update.
8046 * valprint.c (maybe_negate_by_bytes): New function.
8047 (print_decimal_chars): Add "is_signed" argument.
8048 * printcmd.c (print_scalar_formatted): Update.
8049
30a25466
TT
80502017-06-12 Tom Tromey <tom@tromey.com>
8051
8052 PR exp/16225:
8053 * valprint.h (print_binary_chars, print_hex_chars): Update.
8054 * valprint.c (val_print_type_code_int): Update.
8055 (print_binary_chars): Add "zero_pad" argument.
8056 (emit_octal_digit): New function.
8057 (print_octal_chars): Don't zero-pad.
8058 (print_decimal_chars): Likewise.
8059 (print_hex_chars): Add "zero_pad" argument.
8060 * sh64-tdep.c (sh64_do_fp_register): Update.
8061 * regcache.c (regcache::dump): Update.
8062 * printcmd.c (print_scalar_formatted): Update.
8063 * infcmd.c (default_print_one_register_info): Update.
8064
b3464d03
PA
80652017-06-12 Pedro Alves <palves@redhat.com>
8066 Alan Hayward <alan.hayward@arm.com>
8067
8068 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
8069 (mips_eabi_push_dummy_call): Rename local 'regsize' to
8070 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
8071 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
8072 Assert that abi_regsize bytes fit in 'ref_valbuf'.
8073
4b76cda9
PA
80742017-06-12 Pedro Alves <palves@redhat.com>
8075
8076 * dwarf2read.c (mapped_symtab::data): Now a vector of
8077 symtab_index_entry instead of vector of
8078 std::unique_ptr<symtab_index_entry>. All users adjusted to check
8079 whether an element's name is NULL instead of checking whether the
8080 element itself is NULL.
8081 (find_slot): Change return type. Adjust.
8082 (hash_expand, , add_index_entry, uniquify_cu_indices)
8083 (write_hash_table): Adjust.
8084
e8f8bcb3
PA
80852017-06-12 Pedro Alves <palves@redhat.com>
8086
8087 * dwarf2read.c (recursively_count_psymbols): New function.
8088 (write_psymtabs_to_index): Call it to compute number of psyms and
8089 pass estimate size of psyms_seen to unordered_set's ctor.
8090
70a1152b
PA
80912017-06-12 Pedro Alves <palves@redhat.com>
8092
8093 * dwarf2read.c (write_hash_table): Check if key already exists
8094 before emplacing.
8095
c2f134ac
PA
80962017-06-12 Pedro Alves <palves@redhat.com>
8097
8098 * dwarf2read.c (data_buf::append_space): Rename to...
8099 (data_buf::grow): ... this, and make private. Adjust all callers.
8100 (data_buf::append_uint): New method.
8101 (add_address_entry, write_one_signatured_type)
8102 (write_psymtabs_to_index): Use it.
8103
a81e6d4d
PA
81042017-06-12 Pedro Alves <palves@redhat.com>
8105
8106 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
8107 (file_write (FILE *, const std::vector<Elem>&)): Delete.
8108 (data_buf::file_write): Call ::fwrite directly.
8109
6fd931f2
PA
81102017-06-12 Pedro Alves <palves@redhat.com>
8111
8112 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
8113 std::vector::erase.
8114
bc8f2430
JK
81152017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8116
8117 Code cleanup: C++ify .gdb_index producer.
8118 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
8119 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
8120 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
8121 (create_strtab, add_string): Remove.
8122 (file_write, data_buf): New.
8123 (struct symtab_index_entry): Use std::vector for cu_indices.
8124 (struct mapped_symtab): Use std::vector for data.
8125 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
8126 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
8127 Remove.
8128 (find_slot): Change return type. Update it to the new data structures.
8129 (hash_expand, add_index_entry): Update it to the new data structures.
8130 (offset_type_compare): Remove.
8131 (uniquify_cu_indices): Update it to the new data structures.
8132 (c_str_view, c_str_view_hasher, vector_hasher): New.
8133 (add_indices_to_cpool): Remove.
8134 (write_hash_table): Update it to the new data structures.
8135 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
8136 (eq_psymtab_cu_index): Remove.
8137 (psym_index_map): New typedef.
8138 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
8139 reference and std::unordered_map for cu_index_htab.
8140 (add_address_entry, add_address_entry_worker, write_address_map)
8141 (write_psymbols): Update it to the new data structures.
8142 (write_obstack): Remove.
8143 (struct signatured_type_index_data): Change types_list to a data_buf
8144 reference and psyms_seen to a std::unordered_set reference.
8145 (write_one_signatured_type, recursively_write_psymbols)
8146 (write_psymtabs_to_index): Update it to the new data structures.
8147
c4dcb155
SM
81482017-06-11 Simon Marchi <simon.marchi@ericsson.com>
8149
8150 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
8151 separate-debug-file commands.
8152 * symfile.h (separate_debug_file_debug): New global.
8153 * symfile.c (separate_debug_file_debug): New global.
8154 (separate_debug_file_exists, find_separate_debug_file): Add
8155 debug output.
8156 (_initialize_symfile): Add "set debug separate-debug-file"
8157 command.
8158 * build-id.c (build_id_to_debug_bfd,
8159 find_separate_debug_file_by_buildid): Add debug output.
8160
6d45d4b4
SM
81612017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
8162
8163 * gdbarch.sh (displaced_step_free_closure): Remove.
8164 * gdbarch.h, gdbarch.c: Re-generate.
8165 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
8166 displaced_step_free_closure.
8167 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
8168 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8169 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8170 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
8171 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
8172 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8173 * arch-utils.h (simple_displaced_step_free_closure): Remove.
8174 * arch-utils.c (simple_displaced_step_free_closure): Remove.
8175 * infrun.c (displaced_step_clear): Call xfree instead of
8176 gdbarch_displaced_step_free_closure.
8177
2f91880f
SDJ
81782017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
8179
8180 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
8181 NULL".
8182
b8b6e72f
AH
81832017-06-08 Alan Hayward <alan.hayward@arm.com>
8184
8185 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
8186 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
8187 (mn10300_push_dummy_call): Likewise.
8188
5369082e
AH
81892017-06-08 Alan Hayward <alan.hayward@arm.com>
8190
8191 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
8192
ff4ca5ac
AH
81932017-06-08 Alan Hayward <alan.hayward@arm.com>
8194
8195 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
8196
aefd8b33
SDJ
81972017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8198
8199 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
8200 able to start inferiors using a shell.
8201 (New remote packets): Announce new packet "QStartupWithShell".
8202 * remote.c: Add PACKET_QStartupWithShell.
8203 (extended_remote_create_inferior): Handle new
8204 PACKET_QStartupWithShell.
8205 (remote_protocol_features) <QStartupWithShell>: New entry for
8206 PACKET_QStartupWithShell.
8207 (_initialize_remote): Call "add_packet_config_cmd" for
8208 QStartupShell.
8209
2090129c
SDJ
82102017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8211 Pedro Alves <palves@redhat.com>
8212
8213 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
8214 and "nat/fork-inferior.h".
8215 * common/common-inferior.h: New file, with contents from
8216 "gdb/inferior.h".
8217 * commom/common-utils.c: Include "common-utils.h".
8218 (stringify_argv): New function.
8219 * common/common-utils.h (stringify_argv): New prototype.
8220 * configure.nat: Add "fork-inferior.o" as a dependency for
8221 "*linux*", "fbsd*" and "nbsd*" hosts.
8222 * corefile.c (get_exec_file): Update comment.
8223 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
8224 instead of "startup_inferior".
8225 (darwin_create_inferior): Call "add_thread_silent" after
8226 "fork_inferior".
8227 * fork-child.c: Cleanup unnecessary includes.
8228 (SHELL_FILE): Move to "common/common-fork-child.c".
8229 (environ): Likewise.
8230 (exec_wrapper): Initialize.
8231 (get_exec_wrapper): New function.
8232 (breakup_args): Move to "common/common-fork-child.c"; rename to
8233 "breakup_args_for_exec".
8234 (escape_bang_in_quoted_argument): Move to
8235 "common/common-fork-child.c".
8236 (saved_ui): New variable.
8237 (prefork_hook): New function.
8238 (postfork_hook): Likewise.
8239 (postfork_child_hook): Likewise.
8240 (gdb_startup_inferior): Likewise.
8241 (fork_inferior): Move to "common/common-fork-child.c". Update
8242 function to support gdbserver.
8243 (startup_inferior): Likewise.
8244 * gdbcore.h (get_exec_file): Remove declaration.
8245 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
8246 instead of "startup_inferior". Call "add_thread_silent" after
8247 "fork_inferior".
8248 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
8249 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
8250 instead of "startup_inferior". Call "add_thread_silent" after
8251 "fork_inferior".
8252 * inferior.h: Include "common-inferior.h".
8253 (trace_start_error): Move to "common/common-utils.h".
8254 (trace_start_error_with_name): Likewise.
8255 (fork_inferior): Move prototype to "nat/fork-inferior.h".
8256 (startup_inferior): Likewise.
8257 (gdb_startup_inferior): New prototype.
8258 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
8259 * nat/fork-inferior.h: New file.
8260 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
8261 instead of "startup_inferior". Call "add_thread_silent" after
8262 "fork_inferior".
8263 * target.h (target_terminal_init): Move prototype to
8264 "target/target.h".
8265 (target_terminal_inferior): Likewise.
8266 (target_terminal_ours): Likewise.
8267 * target/target.h (target_terminal_init): New prototype, moved
8268 from "target.h".
8269 (target_terminal_inferior): Likewise.
8270 (target_terminal_ours): Likewise.
8271 * utils.c (gdb_flush_out_err): New function.
8272
043a4934
SDJ
82732017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8274
8275 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
8276 * common/common-gdbthread.h: New file, with parts from
8277 "gdb/gdbthread.h".
8278 * gdbthread.h: Include "common-gdbthread.h".
8279 (switch_to_thread): Moved to "common/common-gdbthread.h".
8280
15652511
SDJ
82812017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8282
8283 * Makefile.in (SFILES): Add "common/job-control.c".
8284 (HFILES_NO_SRCDIR): Add "common/job-control.h".
8285 (COMMON_OBS): Add "job-control.o".
8286 * common/job-control.c: New file, with contents from
8287 "gdb/inflow.c".
8288 * common/job-control.h: New file, with contents from "terminal.h".
8289 * fork-child.c: Include "job-control.h".
8290 * inflow.c: Include "job-control.h".
8291 (gdb_setpgid): Move to "common/common-inflow.c".
8292 (_initialize_inflow): Move setting of "job_control" to
8293 "handle_job_control".
8294 * terminal.h (job_control): Moved to "common/common-terminal.h".
8295 (gdb_setpgid): Likewise.
8296 * top.c: Include "job_control.h".
8297 * utils.c: Likewise.
8298 (job_control): Moved to "job-control.c".
8299
2d7cc5c7
PA
83002017-06-07 Pedro Alves <palves@redhat.com>
8301
8302 * Makefile.in (SFILES): Add gdb_regex.c.
8303 (COMMON_OBS): Add gdb_regex.o.
8304 * ada-lang.c (ada_add_standard_exceptions)
8305 (ada_add_exceptions_from_frame, name_matches_regex)
8306 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
8307 parameter type to compiled_regex. Adjust.
8308 (ada_exceptions_list): Use compiled_regex.
8309 * break-catch-throw.c (exception_catchpoint::pattern): Now a
8310 std::unique_ptr<compiled_regex>.
8311 (exception_catchpoint::~exception_catchpoint): Remove regfree
8312 call.
8313 (check_status_exception_catchpoint): Adjust to use compiled_regex.
8314 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
8315 * breakpoint.c (solib_catchpoint::compiled): Now a
8316 std::unique_ptr<compiled_regex>.
8317 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
8318 (check_status_catch_solib): Adjust to use compiled_regex.
8319 (add_solib_catchpoint): Adjust to use compiled_regex.
8320 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
8321 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
8322 compiled_regex reference. Adjust to use it.
8323 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
8324 declaration. Include "gdb_regex.h".
8325 (apropos_cmd): Change regex parameter to compiled_regex reference.
8326 * gdb_regex.c: New file.
8327 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
8328 declarations.
8329 (class compiled_regex): New.
8330 * linux-tdep.c: Include "common/gdb_optional.h".
8331 (struct mapping_regexes): New, factored out from
8332 mapping_is_anonymous_p, and adjusted to use compiled_regex.
8333 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
8334 gdb::optional and remove cleanups. Adjust to compiled_regex.
8335 * probe.c: Include "common/gdb_optional.h".
8336 (collect_probes): Use compiled_regex and gdb::optional and remove
8337 cleanups.
8338 * skip.c: Include "common/gdb_optional.h".
8339 (skiplist_entry::compiled_function_regexp): Now a
8340 gdb::optional<compiled_regex>.
8341 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
8342 (free_skiplist_entry): Remove regfree call.
8343 (compile_skip_regexp, skip_rfunction_p): Adjust to use
8344 compiled_regex and gdb::optional.
8345 * symtab.c: Include "common/gdb_optional.h".
8346 (search_symbols): Use compiled_regex and gdb::optional.
8347 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
8348 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
8349 to gdb_regex.c.
8350
50d6adef
AH
83512017-06-07 Alan Hayward <alan.hayward@arm.com>
8352
8353 * regcache.c (regcache::save): Avoid buffer use.
8354 (regcache::dump): Likewise.
8355
4a8a33c8
AH
83562017-06-07 Alan Hayward <alan.hayward@arm.com>
8357
8358 * sh-tdep.c (sh_pseudo_register_read): Remove
8359 MAX_REGISTER_SIZE.
8360 (sh_pseudo_register_write): Likewise.
8361 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
8362 (sh64_pseudo_register_write): Likewise
8363
d1be909e
AH
83642017-06-07 Alan Hayward <alan.hayward@arm.com>
8365
8366 * aarch64-tdep.c (aarch64_store_return_value): Use
8367 V_REGISTER_SIZE.
8368 (aarch64_pseudo_read_value): Likewise.
8369 (aarch64_pseudo_write): Likewise.
8370
f4a65042
YQ
83712017-06-06 Yao Qi <yao.qi@linaro.org>
8372
8373 * regformats/regdef.h (set_register_cache): Remove the
8374 declaration.
8375
9f7fb0aa
AH
83762017-06-06 Alan Hayward <alan.hayward@arm.com>
8377
8378 * frame.c (frame_unwind_register_signed): Use
8379 frame_unwind_register_value.
8380
e1e01040
PA
83812017-06-06 Pedro Alves <palves@redhat.com>
8382
8383 PR breakpoints/21553
8384 * breakpoint.c (create_breakpoints_sal_default)
8385 (init_breakpoint_sal, create_breakpoint_sal): Use
8386 gdb::unique_xmalloc_ptr for string parameters.
8387 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8388 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
8389 (base_breakpoint_create_breakpoints_sal)
8390 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
8391 (strace_marker_create_breakpoints_sal)
8392 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
8393 string parameters.
8394 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
8395 gdb::unique_xmalloc_ptr for string parameters.
8396 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8397 parameters.
8398
fbe654c8
AH
83992017-06-06 Alan Hayward <alan.hayward@arm.com>
8400
8401 * alpha-tdep.c (alpha_register_to_value): Use
8402 get_frame_register_value.
8403 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
8404
ae0d01d6
AH
84052017-06-06 Alan Hayward <alan.hayward@arm.com>
8406
8407 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
8408 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
8409 (ia64_value_to_register): Likewise.
8410 (ia64_extract_return_value): Likewise.
8411 (ia64_store_return_value): Likewise.
8412 (ia64_push_dummy_call): Likewise.
8413
49cf576c
JB
84142017-06-04 Joel Brobecker <brobecker@adacore.com>
8415
8416 GDB 8.0 released.
8417
26b6a6ab
SM
84182017-06-03 Simon Marchi <simon.marchi@ericsson.com>
8419
8420 * x86-linux-nat.c (struct arch_lwp_info): Remove.
8421
22827c51
SM
84222017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
8423
8424 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
8425 parameter.
8426 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
8427
0e05cf3a
SM
84282017-06-02 Simon Marchi <simon.marchi@ericsson.com>
8429
8430 * event-loop.c (poll_timers): Unallocate timer using delete
8431 instead of xfree.
8432
c1fc2657
SM
84332017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8434
8435 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
8436 (struct breakpoint) <~breakpoint>: New.
8437 (struct watchpoint): Inherit from breakpoint.
8438 <~watchpoint>: New.
8439 <base>: Remove.
8440 (struct tracepoint): Inherit from breakpoint.
8441 <base>: Remove.
8442 * breakpoint.c (longjmp_breakpoint_ops): Remove.
8443 (struct longjmp_breakpoint): Inherit from breakpoint.
8444 <~longjmp_breakpoint>: New.
8445 <base>: Remove.
8446 (new_breakpoint_from_type): Remove casts.
8447 (watchpoint_in_thread_scope): Remove reference to base field.
8448 (watchpoint_del_at_next_stop): Likewise.
8449 (update_watchpoint): Likewise.
8450 (watchpoint_check): Likewise.
8451 (bpstat_check_watchpoint): Likewise.
8452 (set_longjmp_breakpoint): Likewise.
8453 (struct fork_catchpoint): Inherit from breakpoint.
8454 <base>: Remove.
8455 (struct solib_catchpoint): Inherit from breakpoint.
8456 <~solib_catchpoint>: New.
8457 <base>: Remove.
8458 (dtor_catch_solib): Change to ...
8459 (solib_catchpoint::~solib_catchpoint): ... this.
8460 (breakpoint_hit_catch_solib): Remove reference to base field.
8461 (add_solib_catchpoint): Likewise.
8462 (create_fork_vfork_event_catchpoint): Likewise.
8463 (struct exec_catchpoint): Inherit from breakpoint.
8464 <~exec_catchpoint>: New.
8465 <base>: Remove.
8466 (dtor_catch_exec): Change to ...
8467 (exec_catchpoint::~exec_catchpoint): ... this.
8468 (dtor_watchpoint): Change to ...
8469 (watchpoint::~watchpoint): ... this.
8470 (watch_command_1): Remove reference to base field.
8471 (catch_exec_command_1): Likewise.
8472 (base_breakpoint_dtor): Change to ...
8473 (breakpoint::~breakpoint): ... this.
8474 (base_breakpoint_ops): Remove dtor field value.
8475 (longjmp_bkpt_dtor): Change to ...
8476 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
8477 (strace_marker_create_breakpoints_sal): Remove reference to base
8478 field.
8479 (delete_breakpoint): Don't manually call breakpoint destructor.
8480 (create_tracepoint_from_upload): Remove reference to base field.
8481 (trace_pass_set_count): Likewise.
8482 (initialize_breakpoint_ops): Don't initialize
8483 momentary_breakpoint_ops, don't set dtors.
8484 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
8485 <~ada_catchpoint>: New.
8486 <base>: Remove.
8487 (create_excep_cond_exprs): Remove reference to base field.
8488 (dtor_exception): Change to ...
8489 (ada_catchpoint::~ada_catchpoint): ... this.
8490 (dtor_catch_exception): Remove.
8491 (dtor_catch_exception_unhandled): Remove.
8492 (dtor_catch_assert): Remove.
8493 (create_ada_exception_catchpoint): Remove reference to base
8494 field.
8495 (initialize_ada_catchpoint_ops): Don't set dtors.
8496 * break-catch-sig.c (struct signal_catchpoint): Inherit from
8497 breakpoint.
8498 <~signal_catchpoint>: New.
8499 <base>: Remove.
8500 (signal_catchpoint_dtor): Change to ...
8501 (signal_catchpoint::~signal_catchpoint): ... this.
8502 (create_signal_catchpoint): Remove reference to base field.
8503 (initialize_signal_catchpoint_ops): Don't set dtor.
8504 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
8505 from breakpoint.
8506 <~syscall_catchpoint>: New.
8507 <base>: Remove.
8508 (dtor_catch_syscall): Change to ...
8509 (syscall_catchpoint::~syscall_catchpoint): ... this.
8510 (create_syscall_event_catchpoint): Remove reference to base
8511 field.
8512 (initialize_syscall_catchpoint_ops): Don't set dtor.
8513 * break-catch-throw.c (struct exception_catchpoint): Inherit
8514 from breakpoint.
8515 <~exception_catchpoint>: New.
8516 <base>: Remove.
8517 (dtor_exception_catchpoint): Change to ...
8518 (exception_catchpoint::~exception_catchpoint): ... this.
8519 (handle_gnu_v3_exceptions): Remove reference to base field.
8520 (initialize_throw_catchpoint_ops): Don't set dtor.
8521 * ctf.c (ctf_get_traceframe_address): Remove reference to base
8522 field.
8523 * remote.c (remote_get_tracepoint_status): Likewise.
8524 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
8525 * tracefile.c (tracefile_fetch_registers): Likewise.
8526 * tracepoint.c (actions_command): Likewise.
8527 (validate_actionline): Likewise.
8528 (tfind_1): Likewise.
8529 (get_traceframe_location): Likewise.
8530 (find_matching_tracepoint_location): Likewise.
8531 (parse_tracepoint_status): Likewise.
8532 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
8533
3b0871f4
SM
85342017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8535
8536 * breakpoint.c (struct longjmp_breakpoint): New struct.
8537 (is_tracepoint_type): Change return type to bool.
8538 (is_longjmp_type): New function.
8539 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
8540 (set_raw_breakpoint_without_location): Use
8541 new_breakpoint_from_type.
8542 (set_raw_breakpoint): Likewise.
8543
a5e364af
SM
85442017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8545
8546 * breakpoint.c (new_breakpoint_from_type): New function.
8547 (create_breakpoint_sal): Use new_breakpoint_from_type and
8548 unique_ptr.
8549 (create_breakpoint): Likewise.
8550
ae3b3f34
SM
85512017-05-31 Simon Marchi <simon.marchi@ericsson.com>
8552
8553 * memattr.c (mem_info_command): Rename to ...
8554 (info_mem_command): ... this.
8555 (mem_enable_command): Rename to ...
8556 (enable_mem_command): ... this.
8557 (mem_disable_command): Rename to ...
8558 (disable_mem_command): ... this.
8559 (mem_delete_command): Rename to ...
8560 (delete_mem_command): ... this.
8561 (_initialize_mem): Adjust function names.
8562
13ace077
MM
85632017-05-31 Markus Metzger <markus.t.metzger@intel.com>
8564
8565 * btrace.c (handle_pt_insn_events): New.
8566 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
8567 STATUS. Split into this and ...
8568 (handle_pt_insn_event_flags): ... this.
8569
c56ccc05
MM
85702017-05-31 Markus Metzger <markus.t.metzger@intel.com>
8571
8572 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
8573 and struct pt_insn.resynced.
8574 * configure: Regenerated.
8575 * config.in: Regenerated.
8576
08c3f6d2
TW
85772017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8578
8579 * btrace.c (ftrace_find_call_by_number): New function.
8580 (ftrace_new_function): Store objects, not pointers.
8581 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
8582 ftrace_new_gap, ftrace_update_function,
8583 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
8584 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
8585 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
8586 btrace_ends_with_single_insn, btrace_call_get): Account for
8587 btrace_thread_info::functions now storing objects.
8588 * btrace.h (struct btrace_thread_info): Add constructor.
8589 (struct btrace_thread_info) <functions>: Make std::vector.
8590 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
8591 Initialize with default values.
8592 * record-btrace.c (record_btrace_frame_sniffer): Account for
8593 btrace_thread_info::functions now storing objects.
8594
8ffd39f2
TW
85952017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8596
8597 * btrace.c: Remove typedef bfun_s.
8598 (ftrace_new_gap): Directly add gaps to the list of gaps.
8599 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
8600 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
8601 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
8602 instead of gdb VEC.
8603
4aeb0dfc
TW
86042017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8605
8606 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
8607 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
8608 with btrace_thread_info::next_segment and
8609 btrace_thread_info::prev_segment.
8610 * btrace.h: Remove struct btrace_func_link.
8611 (struct btrace_function): Replace pair of function segment pointers
8612 with pair of indices.
8613 * python/py-record-btrace.c (btpy_call_prev_sibling,
8614 btpy_call_next_sibling): Replace references to
8615 btrace_thread_info::segment with btrace_thread_info::next_segment and
8616 btrace_thread_info::prev_segment.
8617 * record-btrace.c (record_btrace_frame_this_id): Use
8618 btrace_find_call_by_number.
8619
eb8f2b9c
TW
86202017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8621
8622 * btrace.c (ftrace_new_function, ftrace_fixup_level,
8623 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
8624 btrace_insn_next, btrace_insn_prev): Remove references to
8625 btrace_thread_info::flow.
8626 * btrace.h (struct btrace_function): Remove FLOW.
8627
42bfe59e
TW
86282017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8629
8630 * btrace.c (ftrace_find_call_by_number): New function.
8631 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
8632 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
8633 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
8634 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
8635 index.
8636 * btrace.h (struct btrace_function): Turn UP into an index.
8637 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
8638 as an index.
8639 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
8640 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
8641 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
8642
b54b03bd
TW
86432017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8644
8645 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
8646 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
8647 ftrace_update_function, ftrace_compute_global_level_offset,
8648 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
8649 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
8650 btrace_insn_end, btrace_is_empty): Remove references to
8651 btrace_thread_info::begin and btrace_thread_info::end.
8652 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
8653 (struct btrace_thread_info) <functions>: Adjust comment.
8654 * record-btrace.c (record_btrace_start_replaying): Remove reference to
8655 btrace_thread_info::begin.
8656
8286623c
TW
86572017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8658
8659 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
8660 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
8661 ftrace_update_function): Remove arguments that implicitly were always
8662 BTINFO->END.
8663 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
8664 Don't pass BTINFO->END.
8665
a0f1b963
TW
86662017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8667
8668 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
8669 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
8670 btrace_find_insn_by_number): Replace function segment pointer with
8671 index.
8672 (btrace_insn_cmp): Simplify.
8673 * btrace.h: (struct btrace_insn_iterator) Rename index to
8674 insn_index. Replace function segment pointer with index into function
8675 segment vector.
8676 * record-btrace.c (record_btrace_call_history): Replace function
8677 segment pointer use with index.
8678 (record_btrace_frame_sniffer): Retrieve function call segment through
8679 vector.
8680 (record_btrace_set_replay): Remove defunc't safety check.
8681
f158f208
TW
86822017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8683
8684 * btrace.c (btrace_ends_with_single_insn): New function.
8685 (btrace_call_get, btrace_call_number, btrace_call_begin,
8686 btrace_call_end, btrace_call_next, btrace_call_prev,
8687 btrace_find_call_by_number): Use index into call segment vector
8688 instead of pointer.
8689 (btrace_call_cmp): Simplify.
8690 * btrace.h (struct btrace_call_iterator): Replace function call segment
8691 pointer with index into vector.
8692 * record-btrace.c (record_btrace_call_history): Use index instead of
8693 pointer.
8694
521103fd
TW
86952017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8696
8697 * btrace.c (btrace_insn_begin, btrace_insn_end,
8698 btrace_find_insn_by_number): Add btinfo to iterator.
8699 * btrace.h (struct btrace_insn_iterator): Add btinfo.
8700
17b89b34
TW
87012017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8702
8703 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
8704 and save pointers directly.
8705 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
8706 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
8707 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
8708 changed signature of functions.
8709 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
8710 (btrace_fetch): Remove code that adds btrace_function pointers to
8711 vector of btrace_functions.
8712 (btrace_clear): Simplify freeing vector of btrace_functions.
8713
2b51eddc
TW
87142017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8715
8716 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
8717 Replace VEC_* with std::vector functions.
8718 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
8719 (struct btrace_thread_info)<functions>: Change type to std::vector.
8720
db6be0d5
SM
87212017-05-30 Simon Marchi <simon.marchi@ericsson.com>
8722
8723 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
8724 "Removed targets and native configurations" up. Merge duplicate
8725 "New commands" sub-sections. Add "New options" sub-sections.
8726
b057297a
AH
87272017-05-26 Alan Hayward <alan.hayward@arm.com>
8728
8729 * defs.h (copy_integer_to_size): New declaration.
8730 * findvar.c (copy_integer_to_size): New function.
8731 (do_cint_test): New selftest function.
8732 (copy_integer_to_size_test): Likewise.
8733 (_initialize_findvar): Likewise.
8734 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
8735 (mips_fbsd_collect_reg): Use raw_collect_integer.
8736 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
8737 (mips64_fill_gregset): Use raw_collect_integer
8738 (mips64_fill_fpregset): Use raw_supply_integer.
8739 * regcache.c (regcache::raw_supply_integer): New function.
8740 (regcache::raw_collect_integer): Likewise.
8741 * regcache.h: (regcache::raw_supply_integer): New declaration.
8742 (regcache::raw_collect_integer): Likewise.
8743
b77b02a5
YQ
87442017-05-24 Yao Qi <yao.qi@linaro.org>
8745
8746 * Makefile.in (SFILES): Add gdbarch-selftests.c.
8747 (COMMON_OBS): Add gdbarch-selftests.o.
8748 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
8749 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
8750 * gdbarch-selftests.c: New file.
8751 * regcache.h (regcache) <~regcache>: Mark it virtual if
8752 GDB_SELF_TEST.
8753 <raw_write>: Likewise.
8754
e521e87e
YQ
87552017-05-24 Yao Qi <yao.qi@linaro.org>
8756
8757 * regcache.c (current_regcache): Change it to
8758 regcache::current_regcache.
8759 (regcache_observer_target_changed): Update.
8760 (regcache_thread_ptid_changed): Make it a regcache static
8761 method.
8762 (regcache_thread_ptid_changed): Update.
8763 (class regcache_access): New.
8764 (current_regcache_test): Update.
8765 (_initialize_regcache): Update.
8766 * regcache.h: Include forward_list.
8767 (regcache): Declare regcache_thread_ptid_changed and declare
8768 registers_changed_ptid as friend.
8769
d8e07dda
YQ
87702017-05-24 Yao Qi <yao.qi@linaro.org>
8771
8772 * i387-tdep.c (i387_register_to_value): Use register_size
8773 instead of TYPE_LENGTH.
8774 * m68k-tdep.c (m68k_register_to_value): Likewise.
8775
8c8f9122
YQ
87762017-05-24 Yao Qi <yao.qi@linaro.org>
8777
8778 * i387-tdep.c (i387_convert_register_p): Return false if type
8779 code isn't TYPE_CODE_FLT.
8780
68fce50f
YQ
87812017-05-24 Yao Qi <yao.qi@linaro.org>
8782
8783 * alpha-tdep.c (alpha_convert_register_p): Return true if type
8784 length is 4.
8785 (alpha_register_to_value): Remove type length check.
8786 (alpha_value_to_register): Likewise.
8787
88954b49
YQ
87882017-05-24 Yao Qi <yao.qi@linaro.org>
8789
8790 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
8791 TYPE_CODE_FLT.
8792
e3ec9b69
YQ
87932017-05-24 Yao Qi <yao.qi@linaro.org>
8794
8795 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
8796 TYPE_CODE_FLT or not.
8797
cdd238da
YQ
87982017-05-24 Yao Qi <yao.qi@linaro.org>
8799
8800 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
8801 * avr-tdep.c (avr_gdbarch_init): Likewise.
8802 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8803 * cris-tdep.c (cris_gdbarch_init): Likewise.
8804 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
8805 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8806 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8807 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
8808 * mep-tdep.c (mep_gdbarch_init): Likewise.
8809 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8810 * mips-tdep.c (mips_gdbarch_init): Likewise.
8811 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
8812 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8813 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
8814 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8815 * v850-tdep.c (v850_gdbarch_init): Likewise.
8816
7a3929c4
YQ
88172017-05-24 Yao Qi <yao.qi@linaro.org>
8818
8819 * selftest-arch.c (tests_with_arch): Call registers_changed
8820 and reinit_frame_cache.
8821 * selftest.c (run_self_tests): Likewise.
8822
f4985dba
YQ
88232017-05-24 Yao Qi <yao.qi@linaro.org>
8824
8825 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
8826 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
8827
ab20fa4a
YQ
88282017-05-24 Yao Qi <yao.qi@linaro.org>
8829
8830 * rl78-tdep.c (rl78_gdbarch_init): Don't call
8831 set_gdbarch_print_insn.
8832
f532ab94
YQ
88332017-05-24 Yao Qi <yao.qi@linaro.org>
8834
8835 * h8300-tdep.c (h8300_gdbarch_init): Don't call
8836 set_gdbarch_print_insn.
8837
39503f82
YQ
88382017-05-24 Yao Qi <yao.qi@linaro.org>
8839
8840 * alpha-tdep.c (alpha_gdbarch_init): Don't call
8841 set_gdbarch_print_insn.
8842 * arc-tdep.c (arc_gdbarch_init): Likewise.
8843 * arch-utils.c: include dis-asm.h.
8844 (default_print_insn): New function.
8845 * arch-utils.h (default_print_insn): Declare.
8846 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
8847 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8848 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
8849 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
8850 * frv-tdep.c (frv_gdbarch_init): Likewise.
8851 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
8852 * gdbarch.sh (print_insn): Use default_print_insn.
8853 * gdbarch.c: Regenerated.
8854 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
8855 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
8856 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8857 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
8858 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8859 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
8860 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
8861 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
8862 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
8863 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8864 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
8865 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8866 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
8867 * mt-tdep.c (mt_gdbarch_init): Likewise.
8868 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
8869 * nios2-tdep.c (nios2_print_insn): Remove.
8870 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
8871 * rx-tdep.c (rx_gdbarch_init): Likewise.
8872 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8873 * score-tdep.c (score_print_insn): Remove.
8874 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
8875 * sh-tdep.c (sh_gdbarch_init): Likewise.
8876 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8877 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8878 * tic6x-tdep.c (tic6x_print_insn): Remove.
8879 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
8880 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
8881 * v850-tdep.c (v850_gdbarch_init): Likewise.
8882 * vax-tdep.c (vax_gdbarch_init): Likewise.
8883 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
8884 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
8885
f7241d4f
JB
88862017-05-23 John Baldwin <jhb@FreeBSD.org>
8887
8888 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
8889 (MIPS_FP0_REGNUM): Remove.
8890 (MIPS_FSR_REGNUM): Remove.
8891 (mips_fbsd_supply_fpregs): Use mips_regnum.
8892 (mips_fbsd_supply_gregs): Likewise.
8893 (mips_fbsd_collect_fpregs): Likewise.
8894 (mips_fbsd_collect_gregs): Likewise.
8895
d489d81d
JB
88962017-05-23 John Baldwin <jhb@FreeBSD.org>
8897
8898 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
8899 (getpfpregs_supplies): New function.
8900 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
8901 getfpregs_supplies.
8902 (mips_fbsd_store_inferior_registers): Likewise.
8903
e11b3cdc
PA
89042017-05-22 Pedro Alves <palves@redhat.com>
8905
8906 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
8907 maintainer.
8908
0f068fb5
AH
89092017-05-22 Alan Hayward <alan.hayward@arm.com>
8910
8911 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
8912 (store_register): Likewise.
8913 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
8914 (get_decimal_float_return_value): Likewise.
8915 (do_ppc_sysv_return_value): Likewise.
8916 (ppc64_sysv_abi_push_integer): Likewise.
8917 (ppc64_sysv_abi_push_freg): Likewise.
8918 (ppc64_sysv_abi_return_value_base): Likewise.
8919 (ppc64_sysv_abi_return_value): Likewise.
8920 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
8921 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
8922 * rs6000-nat.c: Likewise.
8923 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
8924 (rs6000_value_to_register): Likewise.
8925 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
8926
e6cf65f2
TT
89272017-05-21 Tom Tromey <tom@tromey.com>
8928
8929 PR rust/21466:
8930 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
8931 arrays as "[T]", not "[T; ]".
8932
43cc5389
TT
89332017-05-19 Tom Tromey <tom@tromey.com>
8934
8935 PR rust/21484:
8936 * rust-lang.c (exp_descriptor_rust): New function.
8937 (rust_language_defn): Use it.
8938 * p-lang.c (pascal_language_defn): Update.
8939 * opencl-lang.c (opencl_language_defn): Update.
8940 * objc-lang.c (objc_language_defn): Update.
8941 * m2-lang.c (m2_language_defn): Update.
8942 * language.h (struct language_defn)
8943 <la_watch_location_expression>: New member.
8944 * language.c (unknown_language_defn, auto_language_defn)
8945 (local_language_defn): Update.
8946 * go-lang.c (go_language_defn): Update.
8947 * f-lang.c (f_language_defn): Update.
8948 * d-lang.c (d_language_defn): Update.
8949 * c-lang.h (c_watch_location_expression): Declare.
8950 * c-lang.c (c_watch_location_expression): New function.
8951 (c_language_defn, cplus_language_defn, asm_language_defn)
8952 (minimal_language_defn): Use it.
8953 * breakpoint.c (watch_command_1): Call
8954 la_watch_location_expression.
8955 * ada-lang.c (ada_language_defn): Update.
8956
7a6e7fcc
RO
89572017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8958
6e7e1744
RO
8959 PR tui/21482
8960 * gdb_curses.h (NOMACROS): Define.
8961 (NCURSES_NOMACROS): Define.
8962
89632017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8964
8965 PR tui/21482
7a6e7fcc
RO
8966 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
8967 arg to char *.
8968 * tui/tui-wingeneral.c (box_win): Likewise.
8969 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
8970 (tui_show_source_line): Likewise.
8971 (tui_show_exec_info_content): Likewise.
8972
1933fd8e
VM
89732017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
8974
8975 * sparc-tdep.c (sparc_structure_return_p)
8976 (sparc_arg_on_registers_p): New functions.
8977 (sparc32_store_arguments): Use them.
8978 * sparc64-tdep.c (sparc64_16_byte_align_p)
8979 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
8980 Handle TYPE_CODE_ARRAY.
8981
21873064
YQ
89822017-05-17 Yao Qi <yao.qi@linaro.org>
8983
8984 * cli/cli-decode.c (add_alias_cmd): New function.
8985 * command.h (add_alias_cmd): Declare.
8986 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
8987 instead call add_alias_cmd.
8988
2b351b19
PA
89892017-05-17 Pedro Alves <palves@redhat.com>
8990
8991 * Makefile.in (nat_extra_makefile_frag): Rename to ...
8992 (nat_makefile_frag): ... this. All references updated.
8993 * configure.ac: Likewise.
8994 * configure.nat: Likewise. Enhance comments.
8995 * configure: Regenerate.
8996
5f2ad7a3
RO
89972017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8998
8999 * procfs.c (procfs_create_inferior): Change prototype to match
9000 definition.
9001
adf3dde5
EZ
90022017-05-13 Eli Zaretskii <eliz@gnu.org>
9003
9004 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
9005 C++ compiler warning.
9006
6830f270
TT
90072017-05-12 Tom Tromey <tom@tromey.com>
9008
9009 PR rust/21483:
9010 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
9011 recurse, just call value_struct_elt directly.
9012
68f2f2e3
TT
90132017-05-12 Tom Tromey <tom@tromey.com>
9014
9015 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
9016 OP_RUST_ARRAY>: Fix.
9017
256afbc2
TT
90182017-05-12 Tom Tromey <tom@tromey.com>
9019
9020 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
9021
94bb8dfe
YQ
90222017-05-09 Yao Qi <yao.qi@linaro.org>
9023
9024 * regcache.c: Include <forward_list>.
9025 (struct regcache_list): Remove.
9026 (current_regcache): Update.
9027 (get_thread_arch_aspace_regcache): Update for std::forward_list.
9028 (regcache_thread_ptid_changed): Likewise.
9029 (registers_changed_ptid): Likewise.
9030 (current_regcache_size): Likewise.
9031
8248946c
YQ
90322017-05-09 Yao Qi <yao.qi@linaro.org>
9033
9034 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
9035 (current_regcache_size): New function.
9036 (current_regcache_test): New function.
9037 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
9038
313c5961
AH
90392017-05-08 Alan Hayward <alan.hayward@arm.com>
9040
9041 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
9042 (print_gp_register_row): Use get_frame_register_value.
9043
27bfc1d1
AH
90442017-05-08 Alan Hayward <alan.hayward@arm.com>
9045
9046 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
9047 (mips_supply_fpregset): Likewise.
9048 (mips64_supply_gregset): Likewise.
9049
146e6c5c
AH
90502017-05-08 Alan Hayward <alan.hayward@arm.com>
9051
9052 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
9053 regcache->raw_supply_zeroed.
9054
e50f25ec
SDJ
90552017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
9056
9057 * configure.nat: Rearrange 'case' statements to match
9058 host before cpu.
9059
21ea5acd
SDJ
90602017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
9061
9062 * Makefile.in: Remove "@host_makefile_frag@". Add variables
9063 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
9064 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
9065 "@nat_extra_makefile_frag@".
9066 (Makefile): Remove dependency on "@frags@".
9067 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
9068 (data-directory/Makefile): Likewise.
9069 * config/aarch64/linux.mh: Deleted; moved contents to
9070 "gdb/configure.nat".
9071 * config/alpha/alpha-linux.mh: Likewise.
9072 * config/alpha/nbsd.mh: Likewise.
9073 * config/arm/linux.mh: Likewise.
9074 * config/arm/nbsdelf.mh: Likewise.
9075 * config/i386/cygwin.mh: Likewise.
9076 * config/i386/cygwin64.mh: Likewise.
9077 * config/i386/darwin.mh: Likewise.
9078 * config/i386/fbsd.mh: Likewise.
9079 * config/i386/fbsd64.mh: Likewise.
9080 * config/i386/go32.mh: Likewise.
9081 * config/i386/i386gnu.mh: Likewise.
9082 * config/i386/i386sol2.mh: Likewise.
9083 * config/i386/linux.mh: Likewise.
9084 * config/i386/linux64.mh: Likewise.
9085 * config/i386/mingw.mh: Likewise.
9086 * config/i386/mingw64.mh: Likewise.
9087 * config/i386/nbsd64.mh: Likewise.
9088 * config/i386/nbsdelf.mh: Likewise.
9089 * config/i386/nto.mh: Likewise.
9090 * config/i386/obsd.mh: Likewise.
9091 * config/i386/obsd64.mh: Likewise.
9092 * config/i386/sol2-64.mh: Likewise.
9093 * config/ia64/linux.mh: Likewise.
9094 * config/m32r/linux.mh: Likewise.
9095 * config/m68k/linux.mh: Likewise.
9096 * config/m68k/nbsdelf.mh: Likewise.
9097 * config/m68k/obsd.mh: Likewise.
9098 * config/m88k/obsd.mh: Likewise.
9099 * config/mips/fbsd.mh: Likewise.
9100 * config/mips/linux.mh: Likewise.
9101 * config/mips/nbsd.mh: Likewise.
9102 * config/mips/obsd64.mh: Likewise.
9103 * config/pa/linux.mh: Likewise.
9104 * config/pa/nbsd.mh: Likewise.
9105 * config/pa/obsd.mh: Likewise.
9106 * config/powerpc/aix.mh: Likewise.
9107 * config/powerpc/fbsd.mh: Likewise.
9108 * config/powerpc/linux.mh: Likewise.
9109 * config/powerpc/nbsd.mh: Likewise.
9110 * config/powerpc/obsd.mh: Likewise.
9111 * config/powerpc/ppc64-linux.mh: Likewise.
9112 * config/powerpc/spu-linux.mh: Likewise.
9113 * config/s390/linux.mh: Likewise.
9114 * config/sh/nbsd.mh: Likewise.
9115 * config/sparc/fbsd.mh: Likewise.
9116 * config/sparc/linux.mh: Likewise.
9117 * config/sparc/linux64.mh: Likewise.
9118 * config/sparc/nbsd64.mh: Likewise.
9119 * config/sparc/nbsdelf.mh: Likewise.
9120 * config/sparc/obsd64.mh: Likewise.
9121 * config/sparc/sol2.mh: Likewise.
9122 * config/tilegx/linux.mh: Likewise.
9123 * config/vax/nbsdelf.mh: Likewise.
9124 * config/vax/obsd.mh: Likewise.
9125 * config/xtensa/linux.mh: Likewise.
9126 * config/i386/i386gnu.mn: New file, with excerpts from
9127 "config/i386/i386gnu.mh".
9128 * configure: Regenerate.
9129 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
9130 *.mh files under "gdb/config".
9131 * configure.nat: New file, with contents from the
9132 "gdb/config/*/*.mh" files.
9133
7ed1acaf
TW
91342017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
9135
9136 * btrace.c (btrace_clear): Free insn vector.
9137
e13cb306
PA
91382017-05-05 Pedro Alves <palves@redhat.com>
9139
9140 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
9141 * configure: Regenerate.
9142
5ed8105e
PA
91432017-05-04 Pedro Alves <palves@redhat.com>
9144
9145 * Makefile.in (SFILES): Add progspace-and-thread.c.
9146 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
9147 (COMMON_OBS): Add progspace-and-thread.o.
9148 * breakpoint.c: Include "progspace-and-thread.h".
9149 (update_inserted_breakpoint_locations)
9150 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
9151 Use scoped_restore_current_pspace_and_thread.
9152 (create_std_terminate_master_breakpoint): Use
9153 scoped_restore_current_program_space.
9154 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
9155 (print_breakpoint_location): Use
9156 scoped_restore_current_program_space.
9157 (bp_loc_is_permanent): Use
9158 scoped_restore_current_pspace_and_thread.
9159 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
9160 (download_tracepoint_locations): Use
9161 scoped_restore_current_pspace_and_thread.
9162 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
9163 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
9164 (enum step_over_calls_kind): Moved from inferior.h.
9165 (class scoped_restore_current_thread): New class.
9166 * gdbthread.h (make_cleanup_restore_current_thread): Delete
9167 declaration.
9168 (scoped_restore_current_thread): New class.
9169 * infcmd.c: Include "common/gdb_optional.h".
9170 (continue_1, proceed_after_attach): Use
9171 scoped_restore_current_thread.
9172 (notice_new_inferior): Use scoped_restore_current_thread.
9173 * inferior.c: Include "progspace-and-thread.h".
9174 (restore_inferior, save_current_inferior): Delete.
9175 (add_inferior_command, clone_inferior_command): Use
9176 scoped_restore_current_pspace_and_thread.
9177 * inferior.h (scoped_restore_current_inferior): New class.
9178 * infrun.c: Include "progspace-and-thread.h" and
9179 "common/gdb_optional.h".
9180 (follow_fork_inferior): Use
9181 scoped_restore_current_pspace_and_thread.
9182 (scoped_restore_exited_inferior): New class.
9183 (handle_vfork_child_exec_or_exit): Use
9184 scoped_restore_exited_inferior,
9185 scoped_restore_current_pspace_and_thread,
9186 scoped_restore_current_thread and scoped_restore.
9187 (fetch_inferior_event): Use scoped_restore_current_thread.
9188 * linespec.c (decode_line_full, decode_line_1): Use
9189 scoped_restore_current_program_space.
9190 * mi/mi-main.c: Include "progspace-and-thread.h".
9191 (exec_continue): Use scoped_restore_current_thread.
9192 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
9193 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
9194 * proc-service.c (ps_pglobal_lookup): Use
9195 scoped_restore_current_program_space.
9196 * progspace-and-thread.c: New file.
9197 * progspace-and-thread.h: New file.
9198 * progspace.c (release_program_space, clone_program_space): Use
9199 scoped_restore_current_program_space.
9200 (restore_program_space, save_current_program_space)
9201 (save_current_space_and_thread): Delete.
9202 (switch_to_program_space_and_thread): Moved to
9203 progspace-and-thread.c.
9204 * progspace.h (save_current_program_space)
9205 (save_current_space_and_thread): Delete declarations.
9206 (scoped_restore_current_program_space): New class.
9207 * remote.c (remote_btrace_maybe_reopen): Use
9208 scoped_restore_current_thread.
9209 * symtab.c: Include "progspace-and-thread.h".
9210 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
9211 * thread.c (print_thread_info_1): Use
9212 scoped_restore_current_thread.
9213 (struct current_thread_cleanup): Delete.
9214 (do_restore_current_thread_cleanup)
9215 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
9216 (scoped_restore_current_thread::~scoped_restore_current_thread):
9217 ... this new dtor.
9218 (make_cleanup_restore_current_thread): Rename/convert to ...
9219 (scoped_restore_current_thread::scoped_restore_current_thread):
9220 ... this new ctor.
9221 (thread_apply_all_command): Use scoped_restore_current_thread.
9222 (thread_apply_command): Use scoped_restore_current_thread.
9223 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
9224 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
9225
f6223dbb
PA
92262017-05-04 Pedro Alves <palves@redhat.com>
9227
9228 * thread.c (make_cleanup_restore_current_thread): Move
9229 find_thread_ptid call before the is_stopped call. Assert that the
9230 thread is found. Replace is_stopped call by checking the thread's
9231 state directly. Remove unnecessary NULL-thread check.
9232
3c3ae77e
PA
92332017-05-04 Pedro Alves <palves@redhat.com>
9234
9235 * corelow.c (thread_section_name): New class.
9236 (get_core_register_section, get_core_siginfo): Use it.
9237
45eba0ab
AA
92382017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9239
9240 * corelow.c (sniff_core_bfd): Remove extra semicolon.
9241 (get_core_register_section): Remove xfree of NULL pointer.
9242
f81fdd35
AH
92432017-05-03 Alan Hayward <alan.hayward@arm.com>
9244
9245 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
9246 * regcache.c (regcache::raw_supply_zeroed): New function.
9247 * regcache.h (regcache::raw_supply_zeroed): New declaration.
9248
35837774
SM
92492017-05-03 Simon Marchi <simon.marchi@ericsson.com>
9250
9251 * gdbarch.sh: Remove commented out definition of
9252 TARGET_CHAR_BIT.
9253 * gdbarch.h: Re-generate.
9254
c94fee56
SDJ
92552017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
9256
9257 * configure: Regenerate.
9258
d17f7b36
SM
92592017-05-02 Simon Marchi <simon.marchi@ericsson.com>
9260
9261 * solib-target.c (solib_target_relocate_section_addresses):
9262 Remove num_section_bases, num_bases, segment_bases variables.
9263
b560ebd6
SM
92642017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9265
9266 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
9267
f2f46dfc
SM
92682017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9269
9270 * solib-target.c: Include <vector>
9271 (struct lm_info_target) <~lm_info_target>: Remove.
9272 <segment_bases, section_bases>: Change type to
9273 std::vector<CORE_ADDR>.
9274 (library_list_start_segment, library_list_start_section,
9275 library_list_end_library,
9276 solib_target_relocate_section_addresses): Adjust.
9277
a0ff9e1a
SM
92782017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9279
9280 * gdbarch.sh (software_single_step): Change return type to
9281 std::vector<CORE_ADDR>.
9282 * gdbarch.c, gdbarch.h: Re-generate.
9283 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
9284 Adjust.
9285 (arm_deal_with_atomic_sequence_raw): Adjust.
9286 (thumb_get_next_pcs_raw): Adjust.
9287 (arm_get_next_pcs_raw): Adjust.
9288 (arm_get_next_pcs): Adjust.
9289 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
9290 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
9291 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
9292 (alpha_software_single_step): Adjust.
9293 * alpha-tdep.h (alpha_software_single_step): Adjust.
9294 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
9295 * arm-tdep.c (arm_software_single_step): Adjust.
9296 (arm_breakpoint_kind_from_current_state): Adjust.
9297 * arm-tdep.h (arm_software_single_step): Adjust.
9298 * breakpoint.c (insert_single_step_breakpoint): Adjust.
9299 * cris-tdep.c (cris_software_single_step): Adjust.
9300 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
9301 (micromips_deal_with_atomic_sequence): Adjust.
9302 (deal_with_atomic_sequence): Adjust.
9303 (mips_software_single_step): Adjust.
9304 * mips-tdep.h (mips_software_single_step): Adjust.
9305 * moxie-tdep.c (moxie_software_single_step): Adjust.
9306 * nios2-tdep.c (nios2_software_single_step): Adjust.
9307 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
9308 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
9309 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
9310 * s390-linux-tdep.c (s390_software_single_step): Adjust.
9311 * sparc-tdep.c (sparc_software_single_step): Adjust.
9312 * spu-tdep.c (spu_software_single_step): Adjust.
9313 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
9314
ea480a30
SM
93152017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9316
9317 * gdbarch.sh: Use semi-colon as field separator instead of colon.
9318 * gdbarch.h: Re-generate.
9319
d050f7d7
TW
93202017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9321
9322 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
9323 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
9324 * python/py-instruction.c, python/py-instruction.h: New file.
9325 * python/py-record.c: Add py-instruction.h include.
9326 (gdbpy_initialize_record): Make gdb.Instruction a super class of
9327 gdb.RecordInstruction.
9328 * python/python-internal.h: Add gdbpy_initialize_instruction
9329 declaration.
9330 * python/python.c (do_start_initialization): Add
9331 gdbpy_initialize_instruction.
9332
14f819c8
TW
93332017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9334
9335 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
9336 Remove.
9337 (btrace_func_from_recpy_func): New function.
9338 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
9339 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
9340 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
9341 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
9342 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
9343 Also, use new helper functions.
9344 (btpy_list_item): Use new helper functions.
9345 (recpy_bt_function_call_history): Use new type name.
9346 (btpy_call_getset): Remove.
9347 (gdbpy_initialize_btrace): Remove code to initialize
9348 gdb.BtraceFunctionCall.
9349 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
9350 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
9351 recpy_bt_func_prev, recpy_bt_func_next): New export.
9352 * python/py-record.c (recpy_func_type): New static object.
9353 (recpy_func_new, recpy_func_level, recpy_func_symbol,
9354 recpy_func_instructions, recpy_func_up, recpy_func_prev,
9355 recpy_func_next): New function.
9356 (recpy_element_hash, recpy_element_richcompare): Updated comment.
9357 (recpy_func_getset): New static object.
9358 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
9359 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
9360
0ed5da75
TW
93612017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9362
9363 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
9364 (btpy_object, btpy_insn_type, btpy_new): Remove.
9365 (btpy_list_object): Use gdb.RecordInstruction type instead of
9366 gdb.BtraceInstruction type.
9367 (btrace_insn_from_recpy_insn): New function.
9368 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
9369 btpy_new.
9370 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
9371 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
9372 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
9373 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
9374 instead of btpy_object.
9375 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9376 btpy_insn_data, btpy_insn_decode): Rename to ...
9377 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
9378 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
9379 recpy_bt_insn_decode): This. Also, use new helper functions.
9380 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
9381 recpy_insn_type.
9382 (btpy_insn_getset): Remove.
9383 (gdbpy_initialize_btrace): Remove code to initialize
9384 gdb.BtraceInstruction. Use recpy_element_object.
9385 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
9386 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
9387 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
9388 * python/py-record.c (recpy_insn_type): New static object.
9389 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
9390 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
9391 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
9392 New function.
9393 (recpy_insn_getset): New static object.
9394 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
9395 * python/py-record.h (recpy_element_object): New typedef.
9396 (recpy_insn_type, recpy_insn_new): New export.
9397
913aeadd
TW
93982017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9399
9400 * py-record-btrace.c (btpy_insn_new): Removed.
9401 (btpy_insn_or_gap_new): New function.
9402 (btpy_insn_error): Removed.
9403 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9404 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
9405 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
9406 btpy_insn_or_gap_new instead of btpy_insn_new.
9407 (btpy_insn_getset): Remove btpy_insn_error.
9408 * py-record.c (recpy_gap_type): New static object.
9409 (recpy_gap_object): New typedef.
9410 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
9411 recpy_gap_reason_string): New function.
9412 (recpy_gap_getset): New static object.
9413 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
9414 * py-record.h (recpy_gap_new): New export.
9415
a3be24ad
TW
94162017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9417
9418 * python/py-record.c (recpy_ptid): Remove.
9419 (recpy_record_getset): Remove recpy_ptid.
9420
ae20e79a
TW
94212017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9422
9423 * btrace.c (btrace_fetch): Set inferior_ptid.
9424 * python/py-record-btrace.c: Add "py-record.h" include.
9425 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
9426 recpy_bt_end, recpy_bt_instruction_history,
9427 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
9428 in gdb.Record object instead of current ptid.
9429 * python/py-record.c: Include new "py-record.h" file.
9430 (recpy_record_object): Moved to py-record.h.
9431 * python/py-record.h: New file.
9432
8d0050ea
TW
94332017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9434
9435 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
9436 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
9437 indentation.
9438
3f380b50
JB
94392017-05-01 Joel Brobecker <brobecker@adacore.com>
9440
9441 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
9442 the past maintainers section.
9443
07495424
YQ
94442017-04-28 Yao Qi <yao.qi@linaro.org>
9445
9446 * infcmd.c (get_return_value): Use regcache ctor, and remove
9447 cleanup.
9448
deb1fa3e
YQ
94492017-04-28 Yao Qi <yao.qi@linaro.org>
9450 Pedro Alves <palves@redhat.com>
9451
9452 * regcache.c (regcache::regcache): New tag dispatch ctor.
9453 (do_cooked_read): Moved above.
9454 (regcache_dup): Use the tag dispatch ctor..
9455 * regcache.h (regcache): Declare ctor, delete copy ctor and
9456 assignment operator, remove friend regcache_dup.
9457
b421c83c
YQ
94582017-04-28 Yao Qi <yao.qi@linaro.org>
9459
9460 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
9461 call method save instead of regcache_cpy.
9462 * regcache.h (struct regcache): Make regcache_dup a friend.
9463
ef79d9a3
YQ
94642017-04-28 Yao Qi <yao.qi@linaro.org>
9465
9466 * regcache.c (struct regcache): Move to regcache.h
9467 (regcache::arch): New method.
9468 (regcache_get_ptid): Update.
9469 (get_regcache_arch): Call arch method.
9470 (get_regcache_aspace): Call method aspace.
9471 (register_buffer): Change it to method.
9472 (regcache_save): Change it to regcache::save.
9473 (regcache_restore): Likewise.
9474 (regcache_cpy_no_passthrough): Remove the declaration.
9475 (regcache_cpy): Call methods restore and cpy_no_passthrough.
9476 (regcache_cpy_no_passthrough): Change it to method
9477 cpy_no_passthrough.
9478 (regcache_register_status): Change it to method
9479 get_register_status.
9480 (regcache_invalidate): Change it to method invalidate.
9481 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
9482 (regcache_raw_update): Change it to method raw_update.
9483 (regcache_raw_read): Likewise.
9484 (regcache_raw_read_signed): Likewise.
9485 (regcache_raw_read_unsigned): Likewise.
9486 (regcache_raw_write_signed): Likewise.
9487 (regcache_raw_write_unsigned): Likewise.
9488 (regcache_cooked_read): Likewise.
9489 (regcache_cooked_read_value): Likewise.
9490 (regcache_cooked_read_signed): Likewise.
9491 (regcache_cooked_read_unsigned): Likewise.
9492 (regcache_cooked_write_signed): Likewise.
9493 (regcache_cooked_write_unsigned): Likewise.
9494 (regcache_raw_set_cached_value): Likewise.
9495 (regcache_raw_write): Likewise.
9496 (regcache_cooked_write): Likewise.
9497 (regcache_xfer_part): Likewise.
9498 (regcache_raw_read_part): Likewise.
9499 (regcache_raw_write_part): Likewise.
9500 (regcache_cooked_read_part): Likewise.
9501 (regcache_cooked_write_part): Likewise.
9502 (regcache_raw_supply): Likewise.
9503 (regcache_raw_collect): Likewise.
9504 (regcache_transfer_regset): Likewise.
9505 (regcache_supply_regset): Likewise.
9506 (regcache_collect_regset): Likewise.
9507 (regcache_debug_print_register): Likewise.
9508 (enum regcache_dump_what): Move it to regcache.h.
9509 (regcache_dump): Change it to method dump.
9510 * regcache.h (enum regcache_dump_what): New.
9511 (class regcache): New.
9512 * target.c (target_fetch_registers): Call method
9513 debug_print_register.
9514 (target_store_registers): Likewise.
9515
f8fdb78e
SM
95162017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9517
9518 * windows-nat.c (struct lm_info_windows): Initialize field.
9519 (windows_make_so): Allocate lm_info_windows with new.
9520 (windows_free_so): Free lm_info_windows with delete.
9521
9ccbfd7b
SM
95222017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9523
9524 * solib-darwin.c (struct lm_info_darwin): Initialize field.
9525 (darwin_current_sos): Allocate lm_info_darwin with new, remove
9526 cleanup.
9527 (darwin_free_so): Free lm_info_darwin with delete.
9528
76e75227
SM
95292017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9530
9531 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
9532 <l_addr_p>: Change type to bool.
9533 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
9534 (svr4_free_so): Free lm_info_svr4 with delete.
9535 (svr4_copy_library_list): Replace memcpy with call to copy
9536 constructor.
9537 (library_list_start_library, svr4_default_sos): Allocate
9538 lm_info_svr4 with new.
9539
51046d9e
SM
95402017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9541
9542 * solib-target.c (struct lm_info_target): Add destructor,
9543 initialize fields.
9544 <name>: Change type to std::string.
9545 (library_list_start_library): Allocate lm_info_target with new.
9546 (solib_target_free_library_list): Free lm_info_target with
9547 delete.
9548 (solib_target_current_sos): Adapt to std::string.
9549 (solib_target_free_so): Free lm_info_target with delete.
9550
4023ae76
SM
95512017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9552
9553 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
9554 fields.
9555 (frv_current_sos): Allocate lm_info_frv with new.
9556 (frv_relocate_main_executable): Free lm_info_frv with delete,
9557 allocate with new.
9558 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
9559
af43057b
SM
95602017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9561
9562 * solib-frv.c (struct lm_info_frv): Fix indentation.
9563
b0911207
SM
95642017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9565
9566 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
9567 map field.
9568 (dsbt_current_sos): Allocate lm_info_dsbt with new.
9569 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
9570 and allocate with new.
9571 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
9572
6c401f72
SM
95732017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9574
9575 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
9576 <filename, member_name>: Change type to std::string.
9577 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
9578 (library_list_start_library): Allocate lm_info_aix with new.
9579 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
9580 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
9581 with copy constructor.
9582
d0e449a1
SM
95832017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9584
9585 * solist.h (struct lm_info): Remove.
9586 (struct lm_info_base): New class.
9587 (struct so_list) <lm_info>: Change type to lm_info_base *.
9588 * nto-tdep.c (struct lm_info): Remove.
9589 (lm_addr): Adjust.
9590 * solib-aix.c (struct lm_info): Rename to ...
9591 (struct lm_info_aix): ... this. Extend lm_info_base.
9592 (lm_info_p): Rename to ...
9593 (lm_info_aix_p): ... this, and adjust.
9594 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
9595 solib_aix_parse_libraries, library_list_start_library,
9596 solib_aix_free_library_list, solib_aix_parse_libraries,
9597 solib_aix_get_library_list,
9598 solib_aix_relocate_section_addresses, solib_aix_free_so,
9599 solib_aix_get_section_offsets,
9600 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
9601 Adjust.
9602 (struct solib_aix_inferior_data) <library_list>: Adjust.
9603 * solib-darwin.c (struct lm_info): Rename to ...
9604 (struct lm_info_darwin): ... this. Extend lm_info_base.
9605 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
9606 * solib-dsbt.c (struct lm_info): Rename to ...
9607 (struct lm_info_dsbt): ... this. Extend lm_info_base.
9608 (struct dsbt_info) <main_executable_lm_info): Adjust.
9609 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
9610 dsbt_relocate_section_addresses): Adjust.
9611 * solib-frv.c (struct lm_info): Rename to ...
9612 (struct lm_info_frv): ... this. Extend lm_info_base.
9613 (main_executable_lm_info): Adjust.
9614 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
9615 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
9616 find_canonical_descriptor_in_load_object,
9617 frv_fdpic_find_canonical_descriptor): Adjust.
9618 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
9619 to lm_info_svr4.
9620 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
9621 svr4_clear_so, svr4_copy_library_list,
9622 library_list_start_library, svr4_default_sos, svr4_read_so_list,
9623 svr4_current_sos, svr4_fetch_objfile_link_map,
9624 solist_update_incremental): Adjust.
9625 * solib-svr4.h (struct lm_info_svr4): Move here from
9626 solib-svr4.c.
9627 * solib-target.c (struct lm_info): Rename to ...
9628 (struct lm_info_target): ... this. Extend lm_info_base.
9629 (lm_info_p): Rename to ...
9630 (lm_info_target_p): ... this.
9631 (solib_target_parse_libraries, library_list_start_segment,
9632 library_list_start_section, library_list_start_library,
9633 library_list_end_library, solib_target_free_library_list,
9634 solib_target_current_sos, solib_target_free_so,
9635 solib_target_relocate_section_addresses): Adjust.
9636 * windows-nat.c (struct lm_info): Rename to ...
9637 (struct lm_info_windows): ... this. Extend lm_info_base.
9638 (windows_make_so, handle_load_dll, handle_unload_dll,
9639 windows_xfer_shared_libraries): Adjust.
9640
434a4023
SM
96412017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9642
9643 * solib-darwin.c (struct darwin_so_list): Remove.
9644 (darwin_current_sos): Allocate an so_list object instead of a
9645 darwin_so_list, separately allocate an lm_info object.
9646 (darwin_free_so): Free lm_info.
9647
428544e8
JB
96482017-04-28 John Baldwin <jhb@FreeBSD.org>
9649
9650 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
9651 with fprintf_filtered.
9652
4621115f
YQ
96532017-04-28 Yao Qi <yao.qi@linaro.org>
9654
9655 * regcache.c (regcache::regcache): New function.
9656 (regcache::~regcache): New function.
9657 (regcache_xmalloc_1): Remove.
9658 (regcache_xmalloc): Call new regcache.
9659 (regcache_xfree): Call delete regcache.
9660 (get_thread_arch_aspace_regcache): Call new regcache.
9661
339053c2
YQ
96622017-04-28 Yao Qi <yao.qi@linaro.org>
9663
9664 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
9665 lwp instead of ptid_get_lwp.
9666
7974a605
YQ
96672017-04-28 Yao Qi <yao.qi@linaro.org>
9668
9669 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
9670 lwp_info instead of getting from inferior_ptid.
9671
e15c3eb4
KS
96722017-04-27 Keith Seitz <keiths@redhat.com>
9673
9674 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
9675 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
9676 (CV_CONVERSION_BADNESS): Define.
9677 (rank_one_type): Remove overly restrictive rvalue reference
9678 rank checks.
9679 Add cv-qualifier checks and subranks for type equality.
9680 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
9681 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
9682 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
9683
72bc1d24
SM
96842017-04-27 Simon Marchi <simon.marchi@ericsson.com>
9685
9686 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
9687 count when creating the object.
9688
55bcecda
UW
96892017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
9690 Ulrich Weigand <uweigand@de.ibm.com>
9691
9692 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
9693 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
9694 is used in AIX.
9695 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
9696 (process_xcoff_symbol): Likewise.
9697 (scan_xcoff_symtab): Likewise.
9698
5c99fcf8
AH
96992017-04-26 Alan Hayward <alan.hayward@arm.com>
9700
9701 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
9702 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
9703 (ia64_access_reg): Use get_frame_register_unsigned.
9704 (ia64_access_rse_reg): Likewise.
9705 (ia64_libunwind_frame_prev_register): Likewise.
9706
b41c5a85
JW
97072017-04-26 Jiong Wang <jiong.wang@arm.com>
9708
9709 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
9710 * gdbarch.c: Regenerated.
9711 * gdbarch.h: Regenerated.
9712 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
9713 visibility external.
9714 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
9715 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
9716 (enum cfa_how_kind): Move to ...
9717 (struct dwarf2_frame_state_reg_info): Likewise.
9718 (struct dwarf2_frame_state): Likewise.
9719 * dwarf2-frame.h: ... here.
9720 (dwarf2_frame_state_alloc_regs): New declaration.
9721 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
9722 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
9723
c185f580
AH
97242017-04-26 Alan Hayward <alan.hayward@arm.com>
9725
9726 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
9727 regcache_raw_read_unsigned.
9728 (xtensa_pseudo_register_write): Likewise.
9729
19c45594
AH
97302017-04-26 Alan Hayward <alan.hayward@arm.com>
9731
9732 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
9733 (nds32_pseudo_register_write): Likewise.
9734
4658f12e
YQ
97352017-04-25 Yao Qi <yao.qi@linaro.org>
9736
9737 * regcache.c (struct regcache) <readonly_p>: Change its type
9738 to bool.
9739 (regcache_xmalloc_1): Update parameter type and callers update.
9740
d581dda8
YQ
97412017-04-25 Yao Qi <yao.qi@linaro.org>
9742
9743 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9744 set_gdbarch_wchar_bit.
9745 * arm-tdep.c (arm_gdbarch_init): Likewise.
9746
debed3db
PA
97472017-04-25 Pedro Alves <palves@redhat.com>
9748
9749 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
9750 (BothAreRelocatable, memcopy, memmove): Don't define.
9751 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
9752 macros.
9753
b0b92aeb
PA
97542017-04-25 Pedro Alves <palves@redhat.com>
9755
9756 * common/common-defs.h: Include "common/poison.h".
9757 * common/function-view.h: (Not, Or, Requires): Move to traits.h
9758 and adjust.
9759 * common/poison.h: New file.
9760 * common/traits.h: Include <type_traits>.
9761 (Not, Or, Requires): New, moved from common/function-view.h.
9762
16c4d54a
PA
97632017-04-25 Pedro Alves <palves@redhat.com>
9764
9765 * breakpoint.h (struct breakpoint): In-class initialize all
9766 fields. Make boolean fields "bool".
9767 * breakpoint.c (init_raw_breakpoint_without_location): Remove
9768 memset call and initializations no longer necessary.
9769
b5c36682
PA
97702017-04-25 Pedro Alves <palves@redhat.com>
9771
9772 * btrace.c (pt_btrace_insn_flags): Change parameter type to
9773 reference.
9774 (pt_btrace_insn): New function.
9775 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
9776
5625a286
PA
97772017-04-25 Pedro Alves <palves@redhat.com>
9778
9779 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
9780 "base" field and inherit from "bp_location" instead. Add
9781 non-default ctor.
9782 (allocate_location_exception): Use new non-default ctor.
9783 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
9784 (init_bp_location): Convert to ...
9785 (bp_location::bp_location): ... this new ctor, and remove memset
9786 call.
9787 (base_breakpoint_allocate_location): Use the new non-default ctor.
9788 * breakpoint.h (bp_location): Now a class. Declare default and
9789 non-default ctors. In-class initialize all members.
9790 (init_bp_location): Remove declaration.
9791
23bcc18f
PA
97922017-04-25 Pedro Alves <palves@redhat.com>
9793
9794 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
9795 assignment operator.
9796
e1ba3053
YQ
97972017-04-24 Yao Qi <yao.qi@linaro.org>
9798
9799 * doublest.c (convert_doublest_to_floatformat): Call
9800 floatformat_totalsize_bytes.
9801
10f489e5
TT
98022017-04-22 Tom Tromey <tom@tromey.com>
9803
9804 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
9805 ui_out_emit_list.
9806 * stack.c (print_frame): Use ui_out_emit_list.
9807 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
9808 ui_out_emit_list.
9809 * mi/mi-main.c (print_one_inferior)
9810 (mi_cmd_data_list_register_names)
9811 (mi_cmd_data_list_register_values, mi_cmd_list_features)
9812 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
9813 ui_out_emit_list.
9814 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
9815 (mi_output_solib_attribs): Use ui_out_emit_list,
9816 ui_out_emit_tuple.
9817 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
9818 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9819 (mi_cmd_stack_list_args, list_args_or_locals): Use
9820 ui_out_emit_list.
9821 * disasm.c (do_assembly_only): Use ui_out_emit_list.
9822 * breakpoint.c (print_solib_event, output_thread_groups): Use
9823 ui_out_emit_list.
9824
0092b74d
TT
98252017-04-22 Tom Tromey <tom@tromey.com>
9826
9827 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
9828 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
9829 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
9830
a14a62dd
TT
98312017-04-22 Tom Tromey <tom@tromey.com>
9832
9833 * tracepoint.c (tvariables_info_1)
9834 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
9835
46b9c129
TT
98362017-04-22 Tom Tromey <tom@tromey.com>
9837
9838 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
9839 annotate_arg_emitter.
9840 * breakpoint.c (print_mention_watchpoint)
9841 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
9842 * annotate.h (struct annotate_arg_emitter): New.
9843
2e783024
TT
98442017-04-22 Tom Tromey <tom@tromey.com>
9845
9846 * record-btrace.c (record_btrace_insn_history)
9847 (record_btrace_insn_history_range, record_btrace_call_history)
9848 (record_btrace_call_history_range): Use ui_out_emit_tuple.
9849 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
9850 ui_out_emit_tuple.
9851 * stack.c (print_frame_info): Use ui_out_emit_tuple.
9852 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
9853 * skip.c (skip_info): Use ui_out_emit_tuple.
9854 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
9855 * progspace.c (print_program_space): Use ui_out_emit_tuple.
9856 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
9857 * osdata.c (info_osdata): Use ui_out_emit_tuple.
9858 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
9859 ui_out_emit_tuple.
9860 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
9861 (output_register, mi_cmd_data_read_memory)
9862 (mi_cmd_data_read_memory_bytes, mi_load_progress)
9863 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
9864 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
9865 Use ui_out_emit_tuple.
9866 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
9867 ui_out_emit_tuple.
9868 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
9869 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
9870 * linux-thread-db.c (info_auto_load_libthread_db): Use
9871 ui_out_emit_tuple.
9872 * inferior.c (print_inferior): Use ui_out_emit_tuple.
9873 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
9874 * disasm.c (do_mixed_source_and_assembly_deprecated)
9875 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
9876 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
9877 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
9878 * breakpoint.c (print_one_breakpoint_location)
9879 (print_one_breakpoint): Use ui_out_emit_tuple.
9880 * auto-load.c (print_script, info_auto_load_cmd): Use
9881 ui_out_emit_tuple.
9882 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
9883
9be21bb4
SM
98842017-04-21 Simon Marchi <simon.marchi@ericsson.com>
9885
9886 * thread.c (print_thread_info_1): Remove dead code.
9887
0d4c07af
JK
98882017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9889
9890 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
9891 GDB_SELF_TEST.
9892 * arm-tdep.c (selftests::arm_record_test): Likewise.
9893
4daf993d
YQ
98942017-04-21 Yao Qi <yao.qi@linaro.org>
9895
9896 * regcache.c (regcache_restore): Remove argument 2. Replace
9897 argument 3 with regcache. Get register status from
9898 src->register_status and get register contents from
9899 register_buffer (src, regnum).
9900 (regcache_cpy): Update.
9901
a6c21d4a
PA
99022017-04-19 Pedro Alves <palves@redhat.com>
9903
9904 * gdbthread.h (thread): Add missing closing parenthesis in
9905 comment.
9906
3a3fd0fd
PA
99072017-04-19 Pedro Alves <palves@redhat.com>
9908
9909 * common/refcounted-object.h: New file.
9910 * gdbthread.h: Include "common/refcounted-object.h".
9911 (thread_info): Inherit from refcounted_object and add comments.
9912 (thread_info::incref, thread_info::decref)
9913 (thread_info::m_refcount): Delete.
9914 (thread_info::deletable): Use the refcounted_object::refcount()
9915 method.
9916 * inferior.c (current_inferior_): Add comment.
9917 (set_current_inferior): Increment/decrement refcounts.
9918 (prune_inferiors, remove_inferior_command): Skip inferiors marked
9919 not-deletable instead of comparing with the current inferior.
9920 (initialize_inferiors): Increment the initial inferior's refcount.
9921 * inferior.h (struct inferior): Forward declare.
9922 Include "common/refcounted-object.h".
9923 (current_inferior, set_current_inferior): Move declaration to
9924 before struct inferior's definition, and fix comment.
9925 (inferior): Inherit from refcounted_object. Add comments.
9926 * thread.c (switch_to_thread_no_regs): Reference the thread's
9927 inferior pointer directly instead of doing a ptid lookup.
9928 (switch_to_no_thread): New function.
9929 (switch_to_thread(thread_info *)): New function, factored out
9930 from ...
9931 (switch_to_thread(ptid_t)): ... this.
9932 (restore_current_thread): Delete.
9933 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
9934 fields, and add 'inf' field.
9935 (do_restore_current_thread_cleanup): Check whether old->inf is
9936 alive instead of looking up an inferior by ptid. Use
9937 switch_to_thread and switch_to_no_thread.
9938 (restore_current_thread_cleanup_dtor): Use old->inf directly
9939 instead of lookup up an inferior by id. Decref the inferior.
9940 Don't restore 'removable'.
9941 (make_cleanup_restore_current_thread): Same the inferior pointer
9942 in old, instead of the inferior number. Incref the inferior.
9943 Don't save/clear 'removable'.
9944
9bcb1f16
PA
99452017-04-19 Pedro Alves <palves@redhat.com>
9946
9947 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9948 unittests/scoped_restore-selftests.c.
9949 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
9950 * common/scoped_restore.h (scoped_restore_base): Make "class".
9951 (scoped_restore_base::release): New public method.
9952 (scoped_restore_base::scoped_restore_base): New protected ctor.
9953 (scoped_restore_base::m_saved_var): New protected field.
9954 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
9955 scoped_restore_base base class instead of m_saved_var directly.
9956 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
9957 (scoped_restore_tmpl::scoped_restore_tmpl(const
9958 scoped_restore_tmpl<T>&)): Likewise.
9959 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
9960 method.
9961 (scoped_restore_tmpl::saved_var): New method.
9962 (scoped_restore_tmpl::m_saved_var): Delete.
9963 * inferior.h (inferior::detaching): Now a bool.
9964 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
9965 cleanup.
9966 * unittests/scoped_restore-selftests.c: New file.
9967
26fcd539
PA
99682017-04-19 Pedro Alves <palves@redhat.com>
9969
9970 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
9971 Re-sort in alphabetic order.
9972
fdd243b0
PA
99732017-04-18 Pedro Alves <palves@redhat.com>
9974
9975 * xml-support.c (obstack_xml_printf): Delete.
9976 * xml-support.h (obstack_xml_printf): Delete.
9977
4895cde2
PA
99782017-04-18 Pedro Alves <palves@redhat.com>
9979
9980 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
9981 vdebug, verror, body_text, start_element, end_element, name,
9982 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
9983 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
9984 is_xinclude>: Make private and add m_ prefix.
9985 (gdb_xml_parser::body_text): New method, based on ...
9986 (gdb_xml_body_text): ... this. Adjust.
9987 (gdb_xml_parser::vdebug): New method, based on ...
9988 (gdb_xml_debug): ... this. Adjust.
9989 (gdb_xml_parser::verror): New method, based on ...
9990 (gdb_xml_error): ... this. Adjust.
9991 (gdb_xml_parser::start_element): New method, based on ...
9992 (gdb_xml_start_element): ... this. Adjust.
9993 (gdb_xml_start_element_wrapper): Defer to
9994 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
9995 (gdb_xml_parser::end_element): New method, based on ...
9996 (gdb_xml_end_element_wrapper): ... this. Adjust.
9997 (gdb_xml_parser::~gdb_xml_parser): Adjust.
9998 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
9999 (gdb_xml_parser::use_dtd): New method, based on ...
10000 (gdb_xml_use_dtd): ... this. Adjust.
10001 (gdb_xml_parser::parse): New method, based on ...
10002 (gdb_xml_parse): ... this. Adjust.
10003 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
10004 (xinclude_start_include): Adjust to call the parser's name method.
10005 (xml_xinclude_default, xml_xinclude_start_doctype)
10006 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
10007 method.
10008 (xml_process_xincludes): Adjust to call parser methods.
10009 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
10010 declarations.
10011
bd8a901f
PA
100122017-04-18 Pedro Alves <palves@redhat.com>
10013
10014 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
10015 gdb::optional<std::string>.
10016 * xml-support.c: Include <string>.
10017 (scope_level::scope_level(scope_level &&))
10018 (scope_level::~scope_level): Delete.
10019 (scope_level::body): Now a std::string.
10020 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
10021 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
10022 parameter.
10023 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
10024 (xinclude_parsing_data::output): Now a std::string reference.
10025 (xinclude_start_include): Adjust.
10026 (xml_xinclude_default): Adjust.
10027 (xml_process_xincludes): Add 'output' parameter, and return bool.
10028 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
10029 and return bool.
10030 * xml-tdesc.c: Include <unordered_map> and <string>.
10031 (tdesc_xml_cache): Delete.
10032 (tdesc_xml_cache_s): Delete.
10033 (xml_cache): Now an std::unordered_map.
10034 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
10035 (target_fetch_description_xml): Change return type to
10036 gdb::optional<std::string>, and adjust.
10037 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
10038 (target_fetch_description_xml): Change return type to
10039 gdb::optional<std::string>.
10040
d35d1958
PA
100412017-04-18 Pedro Alves <palves@redhat.com>
10042
10043 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10044 unittests/optional-selftests.c.
10045 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
10046 * unittests/optional-selftests.c: New file.
10047 * unittests/optional/assignment/1.cc: New file.
10048 * unittests/optional/assignment/2.cc: New file.
10049 * unittests/optional/assignment/3.cc: New file.
10050 * unittests/optional/assignment/4.cc: New file.
10051 * unittests/optional/assignment/5.cc: New file.
10052 * unittests/optional/assignment/6.cc: New file.
10053 * unittests/optional/assignment/7.cc: New file.
10054 * unittests/optional/cons/copy.cc: New file.
10055 * unittests/optional/cons/default.cc: New file.
10056 * unittests/optional/cons/move.cc: New file.
10057 * unittests/optional/cons/value.cc: New file.
10058 * unittests/optional/in_place.cc: New file.
10059 * unittests/optional/observers/1.cc: New file.
10060 * unittests/optional/observers/2.cc: New file.
10061
22796e97
PA
100622017-04-18 Pedro Alves <palves@redhat.com>
10063
10064 * common/gdb_optional.h: Include common/traits.h.
10065 (in_place_t): New type.
10066 (in_place): New constexpr variable.
10067 (optional::optional): Remove member initialization of
10068 m_instantiated.
10069 (optional::optional(in_place_t...)): New constructor.
10070 (optional::~optional): Use reset.
10071 (optional::optional(const optional&)): New.
10072 (optional::optional(const optional&&)): New.
10073 (optional::optional(T &)): New.
10074 (optional::optional(T &&)): New.
10075 (operator::operator=(const optional &)): New.
10076 (operator::operator=(optional &&)): New.
10077 (operator::operator= (const T &))
10078 (operator::operator= (T &&))
10079 (operator::emplace (Args &&... args)): Return a T&. Use reset.
10080 (operator::reset): New.
10081 (operator::m_instantiated):: Add in-class initializer.
10082 * common/traits.h: Include <type_traits>.
10083 (struct And): New types.
10084
a7fc9b61
PA
100852017-04-18 Pedro Alves <palves@redhat.com>
10086
10087 * xml-support.c: Include <vector>.
10088 (scope_level::scope_level(const gdb_xml_element *))
10089 (scope_level::scope_level(scope_level&&)): New.
10090 (scope_level::~scope_level): New.
10091 (scope_level_s): Delete.
10092 (gdb_xml_parser::scopes): Now a std::vector.
10093 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
10094 Use std::vector.
10095 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
10096 scope cleanup code.
10097 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
10098 of the scopes member. Use std::vector::emplace_back.
10099
010151c9
PA
101002017-04-18 Pedro Alves <palves@redhat.com>
10101
10102 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
10103 a bool.
10104 (gdb_xml_end_element): Change type of first parameter.
10105 (gdb_xml_cleanup): Rename to ...
10106 (gdb_xml_parser::~gdb_xml_parser): ... this.
10107 (gdb_xml_create_parser_and_cleanup): Delete with ...
10108 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
10109 to this new ctor.
10110 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
10111 using gdb_xml_create_parser_and_cleanup.
10112 (xinclude_parsing_data): Add ctor/dtor.
10113 (xml_xinclude_cleanup): Delete.
10114 (xml_process_xincludes): Create a local xinclude_parsing_data
10115 instead of heap-allocating one. Create a local gdb_xml_parser
10116 instead of heap-allocating one with
10117 gdb_xml_create_parser_and_cleanup.
10118
d56060f0
JB
101192017-04-18 John Baldwin <jhb@FreeBSD.org>
10120
10121 PR threads/20743
10122 * fbsd-nat.c (resume_one_thread_cb): Remove.
10123 (resume_all_threads_cb): Remove.
10124 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
10125 iterate_over_threads.
10126
305d16a9
JB
101272017-04-17 Joel Brobecker <brobecker@adacore.com>
10128
10129 * NEWS: Create a new section for the next release branch.
10130 Rename the section of the current branch, now that it has
10131 been cut.
10132
8bb57231
JB
101332017-04-17 Joel Brobecker <brobecker@adacore.com>
10134
10135 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
10136 * version.in: Bump version to 8.0.50.DATE-git.
10137
096c92dd
SDJ
101382017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
10139
10140 PR gdb/21385
10141 * windows-nat.c (windows_create_inferior): Declare 'allargs'
10142 independently of the host, and fix build breakage on Cygwin.
10143
0550c955
PA
101442017-04-13 Pedro Alves <palves@redhat.com>
10145
10146 * inferior.c (free_inferior): Convert to ...
10147 (inferior::~inferior): ... this dtor.
10148 (inferior::inferior): New ctor, factored out from ...
10149 (add_inferior_silent): ... here. Allocate the inferior with a new
10150 expression.
10151 (delete_inferior): Call delete instead of free_inferior.
10152 * inferior.h (gdb_environ, continuation): Forward declare.
10153 (inferior): Now a class. Add in-class initialization to all
10154 members. Make boolean fields bool, except 'detaching'.
10155 (inferior::inferior): New explicit ctor.
10156 (inferior::~inferior): New.
10157
e3d60dfc
PA
101582017-04-13 Pedro Alves <palves@redhat.com>
10159
10160 * inferior.c (init_inferior_list): Delete.
10161 * inferior.h (init_inferior_list): Delete.
10162
5fd69d0a
PA
101632017-04-13 Pedro Alves <palves@redhat.com>
10164
10165 PR threads/13217
10166 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
10167 (top level): Call it twice, with different thread sets.
10168
c6609450
PA
101692017-04-13 Pedro Alves <palves@redhat.com>
10170
10171 * thread.c: Include <algorithm>.
10172 (thread_array_cleanup): Delete.
10173 (scoped_inc_dec_ref): New class.
10174 (live_threads_count): New function.
10175 (set_thread_refcount): Delete.
10176 (tp_array_compar_ascending): Now a bool.
10177 (tp_array_compar): Convert to a std::sort comparison function.
10178 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
10179 and live_threads_count.
10180
2a00d7ce
PA
101812017-04-13 Pedro Alves <palves@redhat.com>
10182
10183 * infrun.c (follow_fork_inferior): Also switch the current
10184 inferior.
10185
441d7c93
PA
101862017-04-13 Pedro Alves <palves@redhat.com>
10187
10188 * breakpoint.c (watch_command_1): Save watchpoint-frame info
10189 before calling create_internal_breakpoint.
10190
808480f6
PA
101912017-04-13 Pedro Alves <palves@redhat.com>
10192
10193 * fork-child.c (execv_argv): New class.
10194 (breakup_args): Refactored as ...
10195 (execv_argv::init_for_no_shell): .. this method of execv_argv.
10196 Copy arguments to storage and replace separators with NULL
10197 terminators in place.
10198 (escape_bang_in_quoted_argument): Adjust to return bool.
10199 (execv_argv::execv_argv): New ctor.
10200 (execv_argv::init_for_shell): New method, factored out from
10201 fork_inferior. Don't strdup strings into the vector.
10202 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
10203 Remove free_vector_argv call.
10204
ad3d022a
YQ
102052017-04-13 Yao Qi <yao.qi@linaro.org>
10206
10207 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
10208 tdep->rx_psw_type.
10209
e6ddc3bf
YQ
102102017-04-13 Yao Qi <yao.qi@linaro.org>
10211
10212 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
10213 * rx-tdep.c (rx_gdbarch_init): Likewise.
10214
bfb8cf90
PA
102152017-04-13 Pedro Alves <palves@redhat.com>
10216
10217 * breakpoint.h (struct breakpoint): Reindent.
10218
f5336ca5
PA
102192017-04-13 Pedro Alves <palves@redhat.com>
10220
10221 * breakpoint.c (bp_location): Rename to ...
10222 (bp_locations): ... this. All references updated.
10223 (bp_location_count): Rename to ...
10224 (bp_locations_count): ... this. All references updated.
10225 (bp_location_placed_address_before_address_max): Rename to ...
10226 (bp_locations_placed_address_before_address_max): ... this. All
10227 references updated.
10228 (bp_location_shadow_len_after_address_max): Rename to ...
10229 (bp_locations_shadow_len_after_address_max): ... this. All
10230 references updated.
10231 (bp_location_compare_addrs): Rename to ...
10232 (bp_locations_compare_addrs): ... this. All references updated.
10233 (bp_location_compare):Rename to ...
10234 (bp_locations_compare): ... this. All references updated.
10235 (bp_location_target_extensions_update): Rename to ...
10236 (bp_locations_target_extensions_update): ... this. All references
10237 updated.
10238
be628ab8
SDJ
102392017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10240
10241 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
10242 * common/common.m4: Check headers 'termios.h', 'termio.h' and
10243 'sgtty.h'.
10244 * common/gdb_termios.h: New file, with parts of "terminal.h".
10245 * inflow.c: Include "gdb_termios.h".
10246 * ser-unix.c: Include "gdb_termios.h".
10247 * terminal.h: Move terminal-related defines to
10248 "common/gdb_termios.h".
10249
8e9e35b1
TT
102502017-04-12 Tom Tromey <tom@tromey.com>
10251
10252 * probe.c (parse_probes): Update.
10253 * location.h (delete_event_location): Don't declare.
10254 (event_location_deleter::operator()): Update.
10255 * location.c (event_location_deleter::operator()): Rename from
10256 delete_event_location.
10257 * linespec.h (linespec_result) <location>: Change type to
10258 event_location_up.
10259 * linespec.c (canonicalize_linespec, event_location_to_sals)
10260 (decode_objc): Update.
10261 (linespec_result): Don't call delete_event_location.
10262 * breakpoint.c (create_breakpoints_sal)
10263 (bkpt_probe_create_sals_from_location)
10264 (strace_marker_create_sals_from_location): Update.
10265
16e802b9
TT
102662017-04-12 Tom Tromey <tom@tromey.com>
10267
10268 * linespec.h (struct linespec_result): Add constructor and
10269 destructor.
10270 (init_linespec_result, destroy_linespec_result)
10271 (make_cleanup_destroy_linespec_result): Don't declare.
10272 * linespec.c (init_linespec_result): Remove.
10273 (linespec_result::~linespec_result): Rename from
10274 destroy_linespec_result. Update.
10275 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
10276 Remove.
10277 * breakpoint.c (create_breakpoint, break_range_command)
10278 (decode_location_default): Update.
10279 * ax-gdb.c (agent_command_1): Update.
10280
d28cd78a
TT
102812017-04-12 Tom Tromey <tom@tromey.com>
10282
10283 * remote.c (remote_download_tracepoint): Update.
10284 * python/py-breakpoint.c (bppy_get_location): Update.
10285 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
10286 (gdbscm_breakpoint_location): Update.
10287 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
10288 * breakpoint.h (struct breakpoint) <location, location_range_end>:
10289 Change type to event_location_up.
10290 * breakpoint.c (create_overlay_event_breakpoint)
10291 (create_longjmp_master_breakpoint)
10292 (create_std_terminate_master_breakpoint)
10293 (create_exception_master_breakpoint)
10294 (breakpoint_event_location_empty_p, print_breakpoint_location)
10295 (print_one_breakpoint_location, create_thread_event_breakpoint)
10296 (init_breakpoint_sal, create_breakpoint)
10297 (print_recreate_ranged_breakpoint, break_range_command)
10298 (init_ada_exception_breakpoint, say_where): Update.
10299 (base_breakpoint_dtor): Don't call delete_event_location.
10300 (bkpt_print_recreate, tracepoint_print_recreate)
10301 (dprintf_print_recreate, update_static_tracepoint)
10302 (breakpoint_re_set_default): Update.
10303
711799d5
TT
103042017-04-12 Tom Tromey <tom@tromey.com>
10305
10306 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
10307 type of "to_do". Update.
10308 (compute_stack_depth): Use std::vector.
10309
52d214d3
TT
103102017-04-12 Tom Tromey <tom@tromey.com>
10311
10312 * printcmd.c (find_instruction_backward): Use std::vector.
10313
4c404b8b
TT
103142017-04-12 Tom Tromey <tom@tromey.com>
10315
10316 * symfile.c (objfilep): Remove typedef.
10317 (reread_symbols): Use a std::vector.
10318
156d9eab
TT
103192017-04-12 Tom Tromey <tom@tromey.com>
10320
10321 * mi/mi-main.c (exec_direction_forward): Remove.
10322 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
10323 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
10324 scoped_restore.
10325 * guile/guile.c (guile_repl_command, guile_command)
10326 (gdbscm_execute_gdb_command): Use scoped_restore.
10327 * go-exp.y (go_parse): Use scoped_restore.
10328 * d-exp.y (d_parse): Use scoped_restore.
10329 * cli/cli-decode.c (cmd_func): Use scoped_restore.
10330 * c-exp.y (c_parse): Use scoped_restore.
10331
4d89769a
TT
103322017-04-12 Tom Tromey <tom@tromey.com>
10333
10334 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
10335 (mi_parse): Update return type.
10336 (mi_parse_free): Remove.
10337 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
10338 (mi_parse::~mi_parse): Rename from mi_parse_free.
10339 (mi_parse_cleanup): Remove.
10340 (mi_parse): Return a unique_ptr. Use new.
10341 * mi/mi-main.c (mi_execute_command): Update.
10342
4b217cc7
TT
103432017-04-12 Tom Tromey <tom@tromey.com>
10344
10345 * location.c (explicit_location_lex_one): Return a
10346 unique_xmalloc_ptr.
10347 (string_to_explicit_location): Update. Remove cleanups.
10348
59d3651b
TT
103492017-04-12 Tom Tromey <tom@tromey.com>
10350
10351 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
10352 (compare_value_and_voffset): Change type. Update.
10353 (compute_vtable_size): Change type of "offset_vec".
10354 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
10355 (gnuv3_get_typeid): Remove extraneous declaration.
10356
b24b0d6c
TT
103572017-04-12 Tom Tromey <tom@tromey.com>
10358
10359 * charset.h (wchar_iterator): Fix comment.
10360
80a3b8c5
TT
103612017-04-12 Tom Tromey <tom@tromey.com>
10362
10363 * charset.c (iconv_wrapper): New class.
10364 (cleanup_iconv): Remove.
10365 (convert_between_encodings): Use it.
10366
c83dd867
TT
103672017-04-12 Tom Tromey <tom@tromey.com>
10368
10369 * symfile.h (increment_reading_symtab): Update type.
10370 * symfile.c (decrement_reading_symtab): Remove.
10371 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
10372 * psymtab.c (psymtab_to_symtab): Update.
10373 * dwarf2read.c (dw2_instantiate_symtab): Update.
10374
0e8621a0
TT
103752017-04-12 Tom Tromey <tom@tromey.com>
10376
10377 * jit.c (struct jit_reader): Declare separately. Add constructor
10378 and destructor. Change type of "handle".
10379 (loaded_jit_reader): Define separately.
10380 (jit_reader_load): Update. New "new".
10381 (jit_reader_unload_command): Use "delete".
10382 * gdb-dlfcn.h (struct dlclose_deleter): New.
10383 (gdb_dlhandle_up): New typedef.
10384 (gdb_dlopen, gdb_dlsym): Update types.
10385 (gdb_dlclose): Remove.
10386 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
10387 (gdb_dlsym): Change type of "handle".
10388 (make_cleanup_dlclose): Remove.
10389 (dlclose_deleter::operator()): Rename from gdb_dlclose.
10390 * compile/compile-c-support.c (load_libcc): Update.
10391
67d89901
TT
103922017-04-12 Tom Tromey <tom@tromey.com>
10393
10394 * symtab.h (find_pcs_for_symtab_line): Change return type.
10395 * symtab.c (find_pcs_for_symtab_line): Change return type.
10396 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
10397 type of "vec". Update.
10398 (ltpy_get_pcs_for_line): Update.
10399 * linespec.c (decode_digits_ordinary): Update.
10400
93921405
TT
104012017-04-12 Tom Tromey <tom@tromey.com>
10402
10403 * tracepoint.c (actions_command): Update.
10404 * python/python.c (python_command, python_interactive_command):
10405 Update.
10406 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
10407 * guile/guile.c (guile_command): Update.
10408 * defs.h (read_command_lines, read_command_lines_1): Return
10409 command_line_up.
10410 (command_lines_deleter): New struct.
10411 (command_line_up): New typedef.
10412 * compile/compile.c (compile_code_command)
10413 (compile_print_command): Update.
10414 * cli/cli-script.h (get_command_line, copy_command_lines): Return
10415 command_line_up.
10416 (make_cleanup_free_command_lines): Remove.
10417 * cli/cli-script.c (get_command_line, read_command_lines_1)
10418 (copy_command_lines): Return command_line_up.
10419 (while_command, if_command, read_command_lines, define_command)
10420 (document_command): Update.
10421 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
10422 Remove.
10423 * breakpoint.h (breakpoint_set_commands): Change type of
10424 "commands".
10425 * breakpoint.c (breakpoint_set_commands): Change type of
10426 "commands". Update.
10427 (do_map_commands_command, update_dprintf_command_list)
10428 (create_tracepoint_from_upload): Update.
10429
ffc2605c
TT
104302017-04-12 Tom Tromey <tom@tromey.com>
10431
10432 * tracepoint.c (scope_info): Update.
10433 * spu-tdep.c (spu_catch_start): Update.
10434 * python/python.c (gdbpy_decode_line): Update.
10435 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
10436 * python/py-breakpoint.c (bppy_init): Update.
10437 * probe.c (parse_probes): Update.
10438 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
10439 * location.h (event_location_deleter): New struct.
10440 (event_location_up): New typedef.
10441 (new_linespec_location, new_address_location, new_probe_location)
10442 (new_explicit_location, copy_event_location)
10443 (string_to_event_location, string_to_event_location_basic)
10444 (string_to_explicit_location): Update return type.
10445 (make_cleanup_delete_event_location): Remove.
10446 * location.c (new_linespec_location, new_address_location)
10447 (new_probe_location, new_explicit_location, copy_event_location):
10448 Return event_location_up.
10449 (delete_event_location_cleanup)
10450 (make_cleanup_delete_event_location): Remove.
10451 (string_to_explicit_location, string_to_event_location_basic)
10452 (string_to_event_location): Return event_location_up.
10453 * linespec.c (canonicalize_linespec, event_location_to_sals)
10454 (decode_line_with_current_source)
10455 (decode_line_with_last_displayed, decode_objc): Update.
10456 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10457 * completer.c (location_completer): Update.
10458 * cli/cli-cmds.c (edit_command, list_command): Update.
10459 * breakpoint.c (create_overlay_event_breakpoint)
10460 (create_longjmp_master_breakpoint)
10461 (create_std_terminate_master_breakpoint)
10462 (create_exception_master_breakpoint)
10463 (create_thread_event_breakpoint): Update.
10464 (init_breakpoint_sal): Update. Remove some dead code.
10465 (create_breakpoint_sal): Change type of "location". Update.
10466 (create_breakpoints_sal, create_breakpoint, break_command_1)
10467 (dprintf_command, break_range_command, until_break_command)
10468 (init_ada_exception_breakpoint)
10469 (strace_marker_create_sals_from_location)
10470 (update_static_tracepoint, trace_command, ftrace_command)
10471 (strace_command, create_tracepoint_from_upload): Update.
10472 * break-catch-throw.c (re_set_exception_catchpoint): Update.
10473 * ax-gdb.c (agent_command_1): Update.
10474
8f10c932
PA
104752017-04-12 Pedro Alves <palves@redhat.com>
10476
10477 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
10478 * configure.tgt: Handle i[34567]86-*-go32* and
10479 i[34567]86-*-msdosdjgpp*.
10480 * i386-tdep.c (i386_svr4_reg_to_regnum):
10481 Make extern.
10482 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
10483 i386-go32-tdep.c.
10484 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
10485 * i386-go32-tdep.c: New file.
10486 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
10487 declarations.
10488
0a31ccfb
SM
104892017-04-12 Simon Marchi <simon.marchi@ericsson.com>
10490
10491 * aix-thread.c (pd_status2str): Change return type to const char *.
10492
e9bb3fbb
PA
104932017-04-12 Pedro Alves <palves@redhat.com>
10494
10495 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
10496 calls to set_gdbarch_gnu_triplet_regexp.
10497
53375380
PA
104982017-04-12 Pedro Alves <palves@redhat.com>
10499
10500 PR gdb/21323
10501 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
10502 New enum value.
10503 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
10504 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
10505 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
10506 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
10507 * gdbarch.h, gdbarch.c: Regenerate.
10508 * aarch64-tdep.c (aarch64_gdbarch_init): Override
10509 gdbarch_wchar_bit and gdbarch_wchar_signed.
10510 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
10511 * arm-tdep.c (arm_gdbarch_init): Likewise.
10512 * avr-tdep.c (avr_gdbarch_init): Likewise.
10513 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10514 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
10515 * i386-tdep.c (i386_go32_init_abi): Likewise.
10516 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10517 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10518 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
10519 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
10520 * sh-tdep.c (sh_gdbarch_init): Likewise.
10521 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10522 * sparc64-tdep.c (sparc64_init_abi): Likewise.
10523 * windows-tdep.c (windows_init_abi): Likewise.
10524 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10525
53e710ac
PA
105262017-04-12 Pedro Alves <palves@redhat.com>
10527
10528 PR c++/21323
10529 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
10530 cplus_primitive_type_char32_t>: New enum values.
10531 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
10532 and cplus_primitive_type_char32_t.
10533 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
10534 32, use the archtecture's built-in type for char16_t and char32_t,
10535 respectively. Otherwise, fallback to init_integer_type as before,
10536 but make the type unsigned, and issue a complaint.
10537 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
10538
ab0538b8
AH
105392017-04-12 Alan Hayward <alan.hayward@arm.com>
10540
5e0e0422 10541 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
10542 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
10543
5430098f
SDJ
105442017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10545
10546 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
10547 'const char *'.
10548
7c5ded6a
SDJ
105492017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10550
10551 * common/common-utils.c (free_vector_argv): New function.
10552 * common/common-utils.h: Include <vector>.
10553 (free_vector_argv): New prototype.
10554 * darwin-nat.c (darwin_create_inferior): Rewrite function
10555 prototype in order to constify "exec_file" and accept a
10556 "std::string" for "allargs".
10557 * fork-child.c: Include <vector>.
10558 (breakup_args): Rewrite function, using C++.
10559 (fork_inferior): Rewrite function header, constify "exec_file_arg"
10560 and accept "std::string" for "allargs". Update the code to
10561 calculate "argv" based on "allargs". Update calls to "exec_fun"
10562 and "execvp".
10563 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
10564 order to constify "exec_file" and accept a "std::string" for
10565 "allargs".
10566 * go32-nat.c (go32_create_inferior): Likewise.
10567 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
10568 * infcmd.c (run_command_1): Constify "exec_file". Use
10569 "std::string" for inferior arguments.
10570 * inferior.h (fork_inferior): Update prototype.
10571 * linux-nat.c (linux_nat_create_inferior): Rewrite function
10572 prototype in order to constify "exec_file" and accept a
10573 "std::string" for "allargs".
10574 * nto-procfs.c (procfs_create_inferior): Likewise.
10575 * procfs.c (procfs_create_inferior): Likewise.
10576 * remote-sim.c (gdbsim_create_inferior): Likewise.
10577 * remote.c (extended_remote_run): Update code to accept
10578 "std::string" as argument.
10579 (extended_remote_create_inferior): Rewrite function prototype in
10580 order to constify "exec_file" and accept a "std::string" for
10581 "allargs".
10582 * rs6000-nat.c (super_create_inferior): Likewise.
10583 (rs6000_create_inferior): Likewise.
10584 * target.h (struct target_ops) <to_create_inferior>: Likewise.
10585 * windows-nat.c (windows_create_inferior): Likewise.
10586
ae0eee42
PA
105872017-04-11 Pedro Alves <palves@redhat.com>
10588
10589 * thread.c: Fix whitespace throughout.
10590
a6acac06
PR
105912017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
10592
10593 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
10594
64403bd1
AH
105952017-04-11 Alan Hayward <alan.hayward@arm.com>
10596
10597 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
10598
a5bef50f
SDJ
105992017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
10600
10601 PR gdb/21364
10602 * osdata.c (info_osdata): Check if 'type' is an empty string
10603 instead of NULL.
10604
9295a5a9
PA
106052017-04-10 Pedro Alves <palves@redhat.com>
10606
10607 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
10608 (ptid_to_global_thread_id, in_thread_list)
10609 (do_captured_list_thread_ids, set_resumed, set_running)
10610 (set_executing, set_stop_requested, finish_thread_state)
10611 (validate_registers_access, can_access_registers_ptid)
10612 (print_thread_info_1, switch_to_thread)
10613 (do_restore_current_thread_cleanup)
10614 (make_cleanup_restore_current_thread, thread_command)
10615 (thread_name_command): Use operator== instead of ptid_equal.
10616
996812e3
PA
106172017-04-10 Pedro Alves <palves@redhat.com>
10618
10619 * thread.c (struct current_thread_cleanup) <next>: Delete field.
10620 (current_thread_cleanup_chain): Delete.
10621 (restore_current_thread_cleanup_dtor)
10622 (make_cleanup_restore_current_thread): Remove references to
10623 current_thread_cleanup_chain.
10624
845b344f
AH
106252017-04-10 Alan Hayward <alan.hayward@arm.com>
10626
10627 * msp430-tdep.c (msp430_pseudo_register_read): Never return
10628 REG_UNKNOWN.
10629
803bdfe4
YQ
106302017-04-10 Yao Qi <yao.qi@linaro.org>
10631
10632 PR gdb/19942
10633 * gdbthread.h (thread_info::deletable): New method.
10634 (thread_info::incref): New method.
10635 (thread_info::decref): New method.
10636 (thread_info::refcount): Move it to private.
10637 * infrun.c (save_stop_context): Call inc_refcount.
10638 (release_stop_context_cleanup): Likewise.
10639 * thread.c (set_thread_exited): New function.
10640 (init_thread_list): Delete "tp" only it is deletable, otherwise
10641 call set_thread_exited.
10642 (delete_thread_1): Call set_thread_exited.
10643 (current_thread_cleanup) <inferior_pid>: Remove.
10644 <thread>: New field.
10645 (restore_current_thread_ptid_changed): Removed.
10646 (do_restore_current_thread_cleanup): Adjust.
10647 (restore_current_thread_cleanup_dtor): Don't call
10648 find_thread_ptid.
10649 (set_thread_refcount): Use dec_refcount.
10650 (make_cleanup_restore_current_thread): Adjust.
10651 (thread_apply_all_command): Call inc_refcount.
10652 (_initialize_thread): Don't call
10653 observer_attach_thread_ptid_changed.
10654
8c25b497
YQ
106552017-04-10 Yao Qi <yao.qi@linaro.org>
10656
10657 * thread.c (delete_thread_1): Hoist code on marking thread as
10658 exited.
10659
8473b447
SM
106602017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10661
10662 * windows-nat.c (windows_detach): Initialize ptid with
10663 minus_one_ptid.
10664
6670ec13
SM
106652017-04-07 Simon Marchi <simon.marchi@ericsson.com>
10666
10667 * unittests/ptid-selftests.c: Fix erroneous assert messages.
10668
ba2f91bb
AH
106692017-04-07 Alan Hayward <alan.hayward@arm.com>
10670
10671 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
10672 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
10673 (bfin_pseudo_register_write): Likewise
10674
436252de
SM
106752017-04-06 Simon Marchi <simon.marchi@ericsson.com>
10676
10677 * common/ptid.h (struct ptid): Change to...
10678 (class ptid_t): ... this.
10679 <ptid_t>: New constructors.
10680 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
10681 matches>: New methods.
10682 <make_null, make_minus_one>: New static methods.
10683 <pid>: Rename to...
10684 <m_pid>: ...this.
10685 <lwp>: Rename to...
10686 <m_lwp>: ...this.
10687 <tid>: Rename to...
10688 <m_tid>: ...this.
10689 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
10690 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
10691 as references, move comment to class ptid_t.
10692 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
10693 ptid_t static methods.
10694 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
10695 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
10696 Take ptid arguments as references, implement using ptid_t methods.
10697 * unittests/ptid-selftests.c: New file.
10698 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10699 unittests/ptid-selftests.c.
10700 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
10701
0dedf377
TP
107022017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
10703
10704 * python/python.c (python_run_simple_file): Cast mode literal to
10705 non-const char pointer as expected by PyFile_FromString.
10706
4e9868d4
SM
107072017-04-05 Simon Marchi <simon.marchi@ericsson.com>
10708
10709 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
10710 minus_one_ptid and null_ptid.
10711
9bf2a700
PA
107122017-04-05 Pedro Alves <palves@redhat.com>
10713
10714 * warning.m4 (build_warnings): Remove -Wno-write-strings.
10715 * configure: Regenerate.
10716
a121b7c1
PA
107172017-04-05 Pedro Alves <palves@redhat.com>
10718
10719 * ada-exp.y (yyerror): Constify.
10720 * ada-lang.c (bound_name, get_selections)
10721 (ada_variant_discrim_type)
10722 (ada_variant_discrim_name, ada_value_struct_elt)
10723 (ada_lookup_struct_elt_type, is_unchecked_variant)
10724 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
10725 (catch_ada_exception_command_split)
10726 (catch_ada_assert_command_split, catch_assert_command)
10727 (ada_op_name): Constify.
10728 * ada-lang.h (ada_yyerror, get_selections)
10729 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
10730 * arc-tdep.c (arc_print_frame_cache): Constify.
10731 * arm-tdep.c (arm_skip_stub): Constify.
10732 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
10733 (gen_aggregate_elt_ref): Constify.
10734 * bcache.c (print_bcache_statistics): Constify.
10735 * bcache.h (print_bcache_statistics): Constify.
10736 * break-catch-throw.c (catch_exception_command_1):
10737 * breakpoint.c (struct ep_type_description::description):
10738 Constify.
10739 (add_solib_catchpoint): Constify.
10740 (catch_fork_command_1): Add cast.
10741 (add_catch_command): Constify.
10742 * breakpoint.h (add_catch_command, add_solib_catchpoint):
10743 Constify.
10744 * bsd-uthread.c (bsd_uthread_state): Constify.
10745 * buildsym.c (patch_subfile_names): Constify.
10746 * buildsym.h (next_symbol_text_func, patch_subfile_names):
10747 Constify.
10748 * c-exp.y (yyerror): Constify.
10749 (token::oper): Constify.
10750 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
10751 * c-varobj.c (cplus_describe_child): Constify.
10752 * charset.c (find_charset_names): Add cast.
10753 (find_charset_names): Constify array and add const_cast.
10754 * cli/cli-cmds.c (complete_command, cd_command): Constify.
10755 (edit_command): Constify.
10756 * cli/cli-decode.c (lookup_cmd): Constify.
10757 * cli/cli-dump.c (dump_memory_command, dump_value_command):
10758 Constify.
10759 (struct dump_context): Constify.
10760 (add_dump_command, restore_command): Constify.
10761 * cli/cli-script.c (get_command_line): Constify.
10762 * cli/cli-script.h (get_command_line): Constify.
10763 * cli/cli-utils.c (check_for_argument): Constify.
10764 * cli/cli-utils.h (check_for_argument): Constify.
10765 * coff-pe-read.c (struct read_pe_section_data): Constify.
10766 * command.h (lookup_cmd): Constify.
10767 * common/print-utils.c (decimal2str): Constify.
10768 * completer.c (gdb_print_filename): Constify.
10769 * corefile.c (set_gnutarget): Constify.
10770 * cp-name-parser.y (yyerror): Constify.
10771 * cp-valprint.c (cp_print_class_member): Constify.
10772 * cris-tdep.c (cris_register_name, crisv32_register_name):
10773 Constify.
10774 * d-exp.y (yyerror): Constify.
10775 (struct token::oper): Constify.
10776 * d-lang.h (d_yyerror): Constify.
10777 * dbxread.c (struct header_file_location::name): Constify.
10778 (add_old_header_file, add_new_header_file, last_function_name)
10779 (dbx_next_symbol_text, add_bincl_to_list)
10780 (find_corresponding_bincl_psymtab, set_namestring)
10781 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
10782 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
10783 * defs.h (command_line_input, print_address_symbolic)
10784 (deprecated_readline_begin_hook): Constify.
10785 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
10786 Constify.
10787 * event-top.c (handle_line_of_input): Constify and add cast.
10788 * exceptions.c (catch_errors): Constify.
10789 * exceptions.h (catch_errors): Constify.
10790 * expprint.c (print_subexp_standard, op_string, op_name)
10791 (op_name_standard, dump_raw_expression, dump_raw_expression):
10792 * expression.h (op_name, op_string, dump_raw_expression):
10793 Constify.
10794 * f-exp.y (yyerror): Constify.
10795 (struct token::oper): Constify.
10796 (struct f77_boolean_val::name): Constify.
10797 * f-lang.c (f_word_break_characters): Constify.
10798 * f-lang.h (f_yyerror): Constify.
10799 * fork-child.c (fork_inferior): Add cast.
10800 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
10801 (new_variant): Constify.
10802 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
10803 * gdbarch.c: Regenerate.
10804 * gdbcore.h (set_gnutarget): Constify.
10805 * go-exp.y (yyerror): Constify.
10806 (token::oper): Constify.
10807 * go-lang.h (go_yyerror): Constify.
10808 * go32-nat.c (go32_sysinfo): Constify.
10809 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
10810 * guile/scm-cmd.c (cmdscm_function): Constify.
10811 * guile/scm-param.c (pascm_param_value): Constify.
10812 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
10813 (h8300sx_register_name): Constify.
10814 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
10815 Constify.
10816 * ia64-tdep.c (ia64_register_names): Constify.
10817 * infcmd.c (construct_inferior_arguments): Constify.
10818 (path_command, attach_post_wait): Constify.
10819 * language.c (show_range_command, show_case_command)
10820 (unk_lang_error): Constify.
10821 * language.h (language_defn::la_error)
10822 (language_defn::la_name_of_this): Constify.
10823 * linespec.c (decode_line_2): Constify.
10824 * linux-thread-db.c (thread_db_err_str): Constify.
10825 * lm32-tdep.c (lm32_register_name): Constify.
10826 * m2-exp.y (yyerror): Constify.
10827 * m2-lang.h (m2_yyerror): Constify.
10828 * m32r-tdep.c (m32r_register_names): Constify and make static.
10829 * m68hc11-tdep.c (m68hc11_register_names): Constify.
10830 * m88k-tdep.c (m88k_register_name): Constify.
10831 * macroexp.c (appendmem): Constify.
10832 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
10833 (upgrade_type, parse_external, parse_partial_symbols)
10834 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
10835 (new_symbol): Constify.
10836 * memattr.c (mem_info_command): Constify.
10837 * mep-tdep.c (register_name_from_keyword): Constify.
10838 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
10839 Constify.
10840 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
10841 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
10842 * mi/mi-main.c (captured_mi_execute_command): Constify and add
10843 cast.
10844 (mi_execute_async_cli_command): Constify.
10845 * mips-tdep.c (mips_register_name): Constify.
10846 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
10847 (am33_register_name, am33_2_register_name)
10848 * moxie-tdep.c (moxie_register_names): Constify.
10849 * nat/linux-osdata.c (osdata_type): Constify fields.
10850 * nto-tdep.c (nto_parse_redirection): Constify.
10851 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
10852 (lookup_child_selector): Constify.
10853 (objc_methcall::name): Constify.
10854 * objc-lang.h (lookup_objc_class, lookup_child_selector)
10855 (lookup_struct_typedef): Constify.
10856 * objfiles.c (pc_in_section): Constify.
10857 * objfiles.h (pc_in_section): Constify.
10858 * p-exp.y (struct token::oper): Constify.
10859 (yyerror): Constify.
10860 * p-lang.h (pascal_yyerror): Constify.
10861 * parser-defs.h (op_name_standard): Constify.
10862 (op_print::string): Constify.
10863 (exp_descriptor::op_name): Constify.
10864 * printcmd.c (print_address_symbolic): Constify.
10865 * psymtab.c (print_partial_symbols): Constify.
10866 * python/py-breakpoint.c (stop_func): Constify.
10867 (bppy_get_expression): Constify.
10868 * python/py-cmd.c (cmdpy_completer::name): Constify.
10869 (cmdpy_function): Constify.
10870 * python/py-event.c (evpy_add_attribute)
10871 (gdbpy_initialize_event_generic): Constify.
10872 * python/py-event.h (evpy_add_attribute)
10873 (gdbpy_initialize_event_generic): Constify.
10874 * python/py-evts.c (add_new_registry): Constify.
10875 * python/py-finishbreakpoint.c (outofscope_func): Constify.
10876 * python/py-framefilter.c (get_py_iter_from_func): Constify.
10877 * python/py-inferior.c (get_buffer): Add cast.
10878 * python/py-param.c (parm_constant::name): Constify.
10879 * python/py-unwind.c (fprint_frame_id): Constify.
10880 * python/python.c (gdbpy_parameter_value): Constify.
10881 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
10882 * remote.c (memory_packet_config::name): Constify.
10883 (show_packet_config_cmd, remote_write_bytes)
10884 (remote_buffer_add_string):
10885 * reverse.c (exec_reverse_once): Constify.
10886 * rs6000-tdep.c (variant::name, variant::description): Constify.
10887 * rust-exp.y (rustyyerror): Constify.
10888 * rust-lang.c (rust_op_name): Constify.
10889 * rust-lang.h (rustyyerror): Constify.
10890 * serial.h (serial_ops::name): Constify.
10891 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
10892 (sh_sh3e_register_name, sh_sh2e_register_name)
10893 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
10894 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
10895 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
10896 (sh_sh4al_dsp_register_name): Constify.
10897 * sh64-tdep.c (sh64_register_name): Constify.
10898 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
10899 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
10900 * stabsread.c (patch_block_stabs, read_type_number)
10901 (ref_map::stabs, ref_add, process_reference)
10902 (symbol_reference_defined, define_symbol, define_symbol)
10903 (error_type, read_type, read_member_functions, read_cpp_abbrev)
10904 (read_one_struct_field, read_struct_fields, read_baseclasses)
10905 (read_tilde_fields, read_struct_type, read_array_type)
10906 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
10907 (read_huge_number, read_range_type, read_args, common_block_start)
10908 (find_name_end): Constify.
10909 * stabsread.h (common_block_start, define_symbol)
10910 (process_one_symbol, symbol_reference_defined, ref_add):
10911 * symfile.c (get_section_index, add_symbol_file_command):
10912 * symfile.h (get_section_index): Constify.
10913 * target-descriptions.c (tdesc_type::name): Constify.
10914 (tdesc_free_type): Add cast.
10915 * target.c (find_default_run_target):
10916 (add_deprecated_target_alias, find_default_run_target)
10917 (target_announce_detach): Constify.
10918 (do_option): Constify.
10919 * target.h (add_deprecated_target_alias): Constify.
10920 * thread.c (print_thread_info_1): Constify.
10921 * top.c (deprecated_readline_begin_hook, command_line_input):
10922 Constify.
10923 (init_main): Add casts.
10924 * top.h (handle_line_of_input): Constify.
10925 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
10926 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
10927 (tfind_command): Rename to ...
10928 (tfind_command_1): ... this and constify.
10929 (tfind_command): New function.
10930 (tfind_end_command, tfind_start_command): Adjust.
10931 (encode_source_string): Constify.
10932 * tracepoint.h (encode_source_string): Constify.
10933 * tui/tui-data.c (tui_partial_win_by_name): Constify.
10934 * tui/tui-data.h (tui_partial_win_by_name): Constify.
10935 * tui/tui-source.c (tui_set_source_content_nil): Constify.
10936 * tui/tui-source.h (tui_set_source_content_nil): Constify.
10937 * tui/tui-win.c (parse_scrolling_args): Constify.
10938 * tui/tui-windata.c (tui_erase_data_content): Constify.
10939 * tui/tui-windata.h (tui_erase_data_content): Constify.
10940 * tui/tui-winsource.c (tui_erase_source_content): Constify.
10941 * tui/tui.c (tui_enable): Add cast.
10942 * utils.c (defaulted_query): Constify.
10943 (init_page_info): Add cast.
10944 (puts_debug, subset_compare): Constify.
10945 * utils.h (subset_compare): Constify.
10946 * varobj.c (varobj_format_string): Constify.
10947 * varobj.h (varobj_format_string): Constify.
10948 * vax-tdep.c (vax_register_name): Constify.
10949 * windows-nat.c (windows_detach): Constify.
10950 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
10951 * xml-support.c (gdb_xml_end_element): Constify.
10952 * xml-tdesc.c (tdesc_start_reg): Constify.
10953 * xstormy16-tdep.c (xstormy16_register_name): Constify.
10954 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
10955 * xtensa-tdep.h (xtensa_register_t::name): Constify.
10956
995816ba
PA
109572017-04-05 Pedro Alves <palves@redhat.com>
10958
10959 * proc-api.c (struct trans): Constify.
10960 (procfs_note): Constify.
10961 * proc-events.c (struct trans, syscall_table):
10962 * proc-flags.c (struct trans): Constify.
10963 * proc-utils.h (procfs_note): Constify.
10964 * proc-why.c (struct trans): Constify.
10965 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
10966 (procfs_detach): Constify.
10967 * sol-thread.c (struct string_map): Constify.
10968 (td_err_string, td_state_string): Constify.
10969
3e83a920
PA
109702017-04-05 Pedro Alves <palves@redhat.com>
10971
10972 * proc-api.c (procfs_filename): Don't initialize
10973 procfs_filename.
10974 (prepare_to_trace): Assume procfs_filename is non-NULL.
10975 (_initialize_proc_api): Give procfs_filename a default value here.
10976
63160a43
PA
109772017-04-05 Pedro Alves <palves@redhat.com>
10978
10979 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
10980 'cond_string' parameter.
10981 (extract_exception_regexp): Constify 'string' parameter.
10982 (catch_exception_command_1): Constify.
10983 * breakpoint.c (init_catchpoint)
10984 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
10985 parameter.
10986 (ep_parse_optional_if_clause, catch_fork_command_1)
10987 (catch_exec_command_1): Constify.
10988 * breakpoint.h (init_catchpoint): Constify 'cond_string'
10989 parameter.
10990 (ep_parse_optional_if_clause): Constify.
10991 * cli/cli-utils.c (remove_trailing_whitespace)
10992 (check_for_argument): Constify.
10993 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
10994 non-const overload.
10995 (check_for_argument): Likewise.
10996
9b2eba3d
PA
109972017-04-05 Pedro Alves <palves@redhat.com>
10998
10999 * event-top.c (command_line_handler): Add cast to execute_command
11000 call.
11001 * record-btrace.c (cmd_record_btrace_bts_start)
11002 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
11003 (cmd_record_btrace_start): Add cast to execute_command call.
11004 * record-full.c (record_full_goto_insn):
11005 * record.c (record_start, record_stop): Add cast to
11006 execute_command_to_string calls.
11007 (cmd_record_start): Add cast to execute_command calls.
11008
2adadf51
PA
110092017-04-05 Pedro Alves <palves@redhat.com>
11010
11011 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
11012 static inline function.
11013 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
11014 array and use gdb_PyArg_ParseTupleAndKeywords.
11015 * python/py-cmd.c (cmdpy_init): Likewise.
11016 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
11017 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
11018 (infpy_search_memory): Likewise.
11019 * python/py-objfile.c (objfpy_add_separate_debug_file)
11020 (gdbpy_lookup_objfile): Likewise.
11021 * python/py-symbol.c (gdbpy_lookup_symbol)
11022 (gdbpy_lookup_global_symbol): Likewise.
11023 * python/py-type.c (gdbpy_lookup_type): Likewise.
11024 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
11025 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
11026 Likewise.
11027
0d1f4ceb
PA
110282017-04-05 Pedro Alves <palves@redhat.com>
11029
11030 * python/python-internal.h (gdb_PyGetSetDef): New type.
11031 * python/py-block.c (block_object_getset)
11032 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
11033 * python/py-event.c (event_object_getset)
11034 (finish_breakpoint_object_getset): Likewise.
11035 * python/py-inferior.c (inferior_object_getset): Likewise.
11036 * python/py-infthread.c (thread_object_getset): Likewise.
11037 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
11038 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
11039 * python/py-objfile.c (objfile_getset): Likewise.
11040 * python/py-progspace.c (pspace_getset): Likewise.
11041 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
11042 Likewise.
11043 * python/py-record.c (recpy_record_getset): Likewise.
11044 * python/py-symbol.c (symbol_object_getset): Likewise.
11045 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
11046 Likewise.
11047 * python/py-type.c (type_object_getset, field_object_getset):
11048 Likewise.
11049 * python/py-value.c (value_object_getset): Likewise.
11050
4d759979
PA
110512017-04-05 Pedro Alves <palves@redhat.com>
11052
11053 * python/python-internal.h (gdb_PyObject_CallMethod)
11054 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
11055 New functions.
11056 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
11057 (PySys_GetObject, PySys_SetPath): New macros.
11058
fdf9e36f
PA
110592017-04-05 Pedro Alves <palves@redhat.com>
11060
11061 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
11062 info_osdata_command.
11063 * osdata.c (info_osdata_command): Rename to ...
11064 (info_osdata): ... this. Constify 'type' parameter, and remove
11065 the 'from_tty' parameter. Accept NULL TYPE.
11066 (info_osdata_command): New function.
11067 * osdata.h (info_osdata_command): Remove declaration.
11068 (info_osdata): New declaration.
11069
9f33b8b7
PA
110702017-04-05 Pedro Alves <palves@redhat.com>
11071
11072 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
11073 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
11074 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
11075 parameter.
11076 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
11077 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
11078 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
11079 parameter.
11080 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
11081 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
11082 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11083 (mi_cmd_file_list_exec_source_files)
11084 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
11085 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
11086 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
11087 parameter.
11088 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
11089 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
11090 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
11091 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
11092 (mi_cmd_stack_info_frame): Constify 'command' parameter.
11093 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
11094 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
11095 'command' parameter.
11096 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
11097 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
11098 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
11099 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
11100 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
11101 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
11102 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
11103 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
11104 (mi_cmd_var_set_update_range): Constify 'command' parameter.
11105 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
11106 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
11107 parameter.
11108 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
11109 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
11110 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
11111 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
11112 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
11113 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
11114 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
11115 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
11116 (mi_cmd_data_list_changed_registers)
11117 (mi_cmd_data_write_register_values)
11118 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
11119 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
11120 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
11121 (mi_cmd_list_features, mi_cmd_list_target_features)
11122 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
11123 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
11124 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
11125 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
11126 (mi_cmd_trace_frame_collected): Constify 'command'
11127 parameter.
11128 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
11129 'command' parameter.
11130
67cb5b2d
PA
111312017-04-05 Pedro Alves <palves@redhat.com>
11132
11133 * ada-lang.c (ada_completer_word_break_characters): Now a const
11134 array.
11135 (ada_get_gdb_completer_word_break_characters): Constify.
11136 * completer.c (gdb_completer_command_word_break_characters)
11137 (gdb_completer_file_name_break_characters)
11138 (gdb_completer_quote_characters): Now const arrays.
11139 (get_gdb_completer_quote_characters): Constify.
11140 (set_rl_completer_word_break_characters): New function.
11141 (set_gdb_completion_word_break_characters)
11142 (complete_line_internal): Use it.
11143 * completer.h (get_gdb_completer_quote_characters): Constify.
11144 (set_rl_completer_word_break_characters): Declare.
11145 * f-lang.c (f_word_break_characters): Constify.
11146 * language.c (default_word_break_characters): Constify.
11147 * language.h (language_defn::la_word_break_characters): Constify.
11148 (default_word_break_characters): Constify.
11149 * top.c (init_main): Use set_rl_completer_word_break_characters.
11150
7a114964
PA
111512017-04-05 Pedro Alves <palves@redhat.com>
11152
11153 * aix-thread.c (aix_thread_pid_to_str)
11154 (aix_thread_extra_thread_info): Constify.
11155 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
11156 * bsd-uthread.c (bsd_uthread_extra_thread_info)
11157 (bsd_uthread_pid_to_str): Constify.
11158 * corelow.c (core_pid_to_str): Constify.
11159 * darwin-nat.c (darwin_pid_to_str): Constify.
11160 * fbsd-nat.c (fbsd_pid_to_str): Constify.
11161 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
11162 Constify.
11163 * gnu-nat.c (gnu_pid_to_str): Constify.
11164 * go32-nat.c (go32_pid_to_str): Constify.
11165 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
11166 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
11167 * inferior.c (inferior_pid_to_str): Constify.
11168 * linux-nat.c (linux_nat_pid_to_str): Constify.
11169 * linux-tdep.c (linux_core_pid_to_str): Constify.
11170 * linux-thread-db.c (thread_db_pid_to_str)
11171 (thread_db_extra_thread_info): Constify.
11172 * nto-tdep.c (nto_extra_thread_info): Constify.
11173 * nto-tdep.h (nto_extra_thread_info): Constify.
11174 * obsd-nat.c (obsd_pid_to_str): Constify.
11175 * procfs.c (procfs_pid_to_str): Constify.
11176 * ravenscar-thread.c (ravenscar_extra_thread_info)
11177 (ravenscar_pid_to_str): Constify.
11178 * remote-sim.c (gdbsim_pid_to_str): Constify.
11179 * remote.c (remote_threads_extra_info, remote_pid_to_str):
11180 Constify.
11181 * sol-thread.c (solaris_pid_to_str): Constify.
11182 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
11183 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
11184 * target.c (default_pid_to_str, target_pid_to_str)
11185 (normal_pid_to_str, default_pid_to_str): Constify.
11186 * target.h (target_ops::to_pid_to_str)
11187 (target_ops::to_extra_thread_info): Constify.
11188 (target_pid_to_str, normal_pid_to_str): Constify.
11189 * windows-nat.c (windows_pid_to_str): Constify.
11190 * gdbarch.sh (core_pid_to_str): Constify.
11191 * target-delegates.c: Regenerate.
11192 * gdbarch.h, gdbarch.c: Regenerate.
11193
69bbf465
PA
111942017-04-05 Pedro Alves <palves@redhat.com>
11195
11196 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
11197 the memory of the temporary warning_pre_print override.
11198 * utils.c (warning_pre_print): Constify.
11199 * utils.h (warning_pre_print): Constify.
11200
be47f9e8
PA
112012017-04-05 Pedro Alves <palves@redhat.com>
11202
11203 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
11204 (shell_command): New function.
11205 (make_command): Use std::string.
11206 (init_cli_cmds): Register shell_command instead of shell_escape.
11207
bde6261a
PA
112082017-04-05 Pedro Alves <palves@redhat.com>
11209
11210 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
11211 * tracepoint.c (default_collect): Don't initialize.
11212
b38ef47f
PA
112132017-04-05 Pedro Alves <palves@redhat.com>
11214
11215 * macroexp.c (macro_buffer::shared): Now a bool.
11216 (init_buffer): Update.
11217 (init_shared_buffer): Constify 'addr' parameter.
11218 (substitute_args, expand, macro_expand, macro_expand_next): Remove
11219 casts.
11220
f995bbe8
PA
112212017-04-05 Pedro Alves <palves@redhat.com>
11222
11223 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
11224 * disasm.c (set_disassembler_options): Constify local.
11225 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
11226
4a596fe2
SDJ
112272017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
11228
11229 PR gdb/21352
11230 * tracefile.c (tsave_command): Fix argument parsing for '-r'
11231 option.
11232
2cad08ea
YQ
112332017-04-05 Yao Qi <yao.qi@linaro.org>
11234
11235 * frame.c (frame_unwind_register_unsigned): Call
11236 frame_unwind_register_value.
11237
55a98976
YQ
112382017-04-05 Yao Qi <yao.qi@linaro.org>
11239
11240 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
11241 Use gdb_test_multiple, and don't match anchor.
11242
4ac40124
PA
112432017-04-05 Pedro Alves <palves@redhat.com>
11244
11245 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
11246 (Write After Approval): Remove Simon Marchi.
11247
c053b654
PA
112482017-04-05 Pedro Alves <palves@redhat.com>
11249
11250 * common/gdb_optional.h (optional::optional): Make constexpr and
11251 initialize m_dummy.
11252
4c7bf4f9
JB
112532017-04-04 John Baldwin <jhb@FreeBSD.org>
11254
11255 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
11256 (amd64fbsd_jmp_buf_reg_offset): Remove.
11257 (amd64fbsd_supply_uthread): Remove function.
11258 (amd64fbsd_collect_uthread): Remove function.
11259 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
11260 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
11261 (x86_64-*-freebsd*): Remove bsd-uthread.o.
11262 (fbsd-nat.c): Update comment.
11263 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
11264 (i386fbsd_jmp_buf_reg_offset): Remove.
11265 (i386fbsd_supply_uthread): Remove function.
11266 (i386fbsd_collect_uthread): Remove function.
11267 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
11268
1e1a8bef
JB
112692017-04-04 John Baldwin <jhb@FreeBSD.org>
11270
11271 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
11272 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
11273 * NEWS: Mention that support for FreeBSD/alpha was removed.
11274 * alpha-fbsd-tdep.c: Delete file.
11275 * config/alpha/fbsd.mh: Delete file.
11276 * configure.host: Delete alpha*-*-freebsd* and
11277 alpha*-*-kfreebsd*-gnu.
11278 * configure.tgt: Delete alpha*-*-freebsd* and
11279 alpha*-*-kfreebsd*-gnu.
11280
49907934
JB
112812017-04-04 John Baldwin <jhb@FreeBSD.org>
11282
11283 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
11284 amd64bsd_store_inferior_registers): Use ptid from regcache.
11285
6f77053d
PA
112862017-04-04 Pedro Alves <palves@redhat.com>
11287
11288 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
11289 data fields, make them private and add "m_" prefixes.
11290 (lnp_state_machine::lnp_state_machine): New ctor.
11291 (record_line, check_line_address, handle_set_discriminator)
11292 (handle_set_address, handle_advance_pc, handle_special_opcode)
11293 (handle_advance_line, handle_set_file, handle_negate_stmt)
11294 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
11295 (end_sequence, advance_line): New methods.
11296 (m_gdbarch, m_record_lines_p): New fields.
11297 (lnp_reader_state): Delete.
11298 (dwarf_record_line): Rename to ...
11299 (lnp_state_machine::record_line): ... adjust.
11300 (init_lnp_state_machine): Delete.
11301 (lnp_state_machine::lnp_state_machine): New.
11302 (check_line_address): Rename to ...
11303 (lnp_state_machine::check_line_address): This.
11304 (dwarf_decode_lines_1): Remove reference to "reader_state".
11305 Adjust lnp_state_machine having a non-default ctor. Use bool.
11306 State machine internal state manipulation moved to
11307 lnp_state_machine methods.
11308
9c541725
PA
113092017-04-04 Pedro Alves <palves@redhat.com>
11310
11311 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11312 unittests/offset-type-selftests.c.
11313 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
11314 * common/offset-type.h: New file.
11315 * common/preprocessor.h: New file.
11316 * common/traits.h: New file.
11317 * common/valid-expr.h: New file.
11318 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
11319 sect_offset and cu_offset strong typedefs throughout.
11320 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
11321 typedefs throughout.
11322 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
11323 sect_offset and cu_offset strong typedefs throughout.
11324 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
11325 typedefs throughout.
11326 * gdbtypes.h: Include "common/offset-type.h".
11327 (cu_offset): Now an offset type (strong typedef) instead of a
11328 struct.
11329 (sect_offset): Likewise.
11330 (union call_site_parameter_u): Rename "param_offset" field to
11331 "param_cu_off".
11332 * unittests/offset-type-selftests.c: New file.
11333
ecfb656c
PA
113342017-04-04 Pedro Alves <palves@redhat.com>
11335
11336 * common/underlying.h: New file.
11337 * dwarf2read.c: Include "common/gdb_optional.h" and
11338 "common/underlying.h".
11339 (dir_index, file_name_index): New types.
11340 (file_entry): Use them.
11341 (file_entry::include): Use to_underlying.
11342 (line_header::add_file_name): Use dir_index.
11343 (read_formatted_entries): Use gdb::optional. Read form before
11344 writting to file_entry.
11345 (dwarf_decode_line_header): Use dir_index.
11346 (lnp_state_machine::current_file): Use to_underlying.
11347 (lnp_state_machine::file): Change type to file_name_index.
11348 (dwarf_record_line): Use to_underlying.
11349 (init_lnp_state_machine): Use file_name_index.
11350 (dwarf_decode_lines_1): Use dir_index and file_name_index.
11351
d194f1fe
PA
113522017-04-04 Pedro Alves <palves@redhat.com>
11353
11354 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
11355 operator bool, has_value and get methods.
11356
fff8551c
PA
113572017-04-04 Pedro Alves <palves@redhat.com>
11358
11359 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
11360 fields.
11361 (line_header): Initialize all data fields. Change type of
11362 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
11363 Change type of include_dirs to std::vector<const char *>. Remove
11364 num_include_dirs, include_dirs_size. Change type of file_names to
11365 std::vector<file_entry>. Remove num_file_names, file_names_size.
11366 (line_header::line_header): New.
11367 (line_header::add_include_dir, line_header::add_file_name): New
11368 methods.
11369 (line_header::include_dir_at): Remove NULL check.
11370 (line_header::file_name_at): Add const overload.
11371 (line_header_up): New unique_ptr typedef.
11372 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
11373 std::vector. Remove free_line_header call.
11374 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
11375 free_line_header call.
11376 (free_cu_line_header): Delete.
11377 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
11378 (setup_type_unit_groups): Use line_header_up instead of cleanups.
11379 Adjust to use std::vector.
11380 (free_line_header): Delete.
11381 (free_line_header_voidp): Use delete.
11382 (add_include_dir): Replace with ...
11383 (line_header::add_include_dir): ... this method. Use std::vector.
11384 (add_file_name): Replace with ...
11385 (line_header::add_file_name): ... this method. Use std::vector.
11386 (add_include_dir_stub): Delete.
11387 (read_formatted_entries): Remove memset.
11388 (dwarf_decode_line_header): Return a line_header_up instead of a
11389 raw pointer. Remove cleanup handling. Pass lambdas to
11390 read_formatted_entries. Adjust to use line_header methods.
11391 (dwarf_decode_lines_1): Adjust to use line_header methods.
11392 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
11393 use std::vector.
11394
d62a8ae2
SM
113952017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
11396
11397 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
11398 instead of struct ptid.
11399
db3a1dc7
AH
114002017-05-04 Alan Hayward <alan.hayward@arm.com>
11401
11402 * frame.c (get_frame_register_bytes): Unwind using value.
11403 (put_frame_register_bytes): Likewise.
11404
b1b45502
IB
114052017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
11406
11407 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
11408 aggregate-like.
11409
ec13808e
JK
114102017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11411
11412 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
11413
12316564
YQ
114142017-03-29 Yao Qi <yao.qi@linaro.org>
11415
11416 * gdbthread.h (struct thread_info): Declare constructor and
11417 destructor. Add some in-class member initializers.
11418 * thread.c (free_thread): Remove.
11419 (init_thread_list): Call delete instead of free_thread.
11420 (new_thread): Call thread_info constructor.
11421 (thread_info::thread_info): New function.
11422 (thread_info::~thread_info): New function.
11423 (delete_thread_1): Call delete instead of free_thread.
11424 (make_cleanup_restore_current_thread): Move tp and frame to
11425 inner block.
11426
fe5f7374
AK
114272017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11428
11429 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
11430 (arc_skip_prologue): Likewise.
11431 (arc_make_frame_cache): Likewise.
11432 (arc_pv_get_operand): New function.
11433 (arc_is_in_prologue): Likewise.
11434 (arc_analyze_prologue): Likewise.
11435 (arc_print_frame_cache): Likewise.
11436 (MAX_PROLOGUE_LENGTH): New constant.
11437
eea78757
AK
114382017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11439
11440 * configure.tgt: Add arc-insn.o.
11441 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
11442 (dump_arc_instruction_command): New function.
11443 (arc_fprintf_disasm): Likewise.
11444 (arc_disassemble_info): Likewise.
11445 (arc_insn_get_operand_value): Likewise.
11446 (arc_insn_get_operand_value_signed): Likewise.
11447 (arc_insn_get_memory_base_reg): Likewise.
11448 (arc_insn_get_memory_offset): Likewise.
11449 (arc_insn_get_branch_target): Likewise.
11450 (arc_insn_dump): Likewise.
11451 (arc_insn_get_linear_next_pc): Likewise.
11452 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
11453 (arc_disassemble_info): Likewise.
11454 (arc_insn_get_branch_target): Likewise.
11455 (arc_insn_get_linear_next_pc): Likewise.
11456 * NEWS: Mention new "maint print arc arc-instruction".
11457
3be78afd
AK
114582017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11459
11460 * arc-tdep (maintenance_print_arc_list): New variable.
11461 (maintenance_print_arc_command): New function.
11462
296ec4fa
AK
114632017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11464
11465 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
11466 Add "limm" and "reserved".
11467 (arc_cannot_fetch_register, arc_cannot_store_register): Add
11468 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
11469 * arc-tdep.h (arc_regnum): Likewise.
11470
f74f865e
MF
114712017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11472
11473 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
11474 for THREADPTR register.
11475 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
11476 register.
11477 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
11478 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
11479 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
11480
0d0bf81a
MF
114812017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11482
11483 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
11484 registers above gdbarch_num_regs (gdbarch) as privileged in
11485 call0 ABI.
11486
0ce4291e
MF
114872017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11488
11489 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
11490 for a single specified register or for all registers in
11491 a0_base..a0_base + C0_NREGS range.
11492 (supply_gregset_reg): Call regcache_raw_supply for a single
11493 specified register or for all registers in a0_base..a0_base +
11494 C0_NREGS range.
11495
c56054f9
MF
114962017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11497
11498 * arch/xtensa.h (C0_NREGS): Add definition.
11499 * xtensa-tdep.c (C0_NREGS): Remove definition.
11500
a4398628
MF
115012017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11502
11503 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
11504 Drop xtensa_default_isa initialization.
11505 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
11506
8c43009f
PA
115072017-03-27 Pedro Alves <palves@redhat.com>
11508
11509 * dwarf2read.c (file_entry) <dir_index>: Add comment.
11510 (file_entry::include_dir): New method.
11511 (line_header::include_dir_at, line_header::file_name_at): New
11512 methods.
11513 (setup_type_unit_groups, setup_type_unit_groups)
11514 (psymtab_include_file_name): Simplify using the new methods.
11515 (lnp_state_machine) <the_line_header>: New field.
11516 <file>: Add comment.
11517 (lnp_state_machine::current_file): New method.
11518 (dwarf_record_line): Simplify using the new methods.
11519 (init_lnp_state_machine): Initialize the "the_line_header" field.
11520 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
11521 Simplify using the new methods.
11522
a7e80b9e
PA
115232017-03-27 Pedro Alves <palves@redhat.com>
11524
11525 * cp-name-parser.y (make_empty): Delete.
11526 (demangler_special, nested_name, ptr_operator, array_indicator)
11527 (direct_declarator, declarator_1): Use fill_comp instead of
11528 make_empty.
11529
21047726
PA
115302017-03-27 Pedro Alves <palves@redhat.com>
11531
11532 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
11533 to ATTRIBUTE_PRINTF.
11534 * solib-target.c (library_list_start_list): Print "string" not
11535 "version".
11536 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
11537 gdb_xml_error call.
11538
d721ba37
PA
115392017-03-27 Pedro Alves <palves@redhat.com>
11540
11541 * dwarf2read.c (struct file_and_directory): New.
11542 (dwarf2_get_dwz_file): Adjust to use std::string.
11543 (dw2_get_file_names_reader): Adjust to use file_and_directory.
11544 (find_file_and_directory): Adjust to return a file_and_directory
11545 object.
11546 (read_file_scope): Adjust to use file_and_directory. Remove
11547 make_cleanup/do_cleanups calls.
11548 (open_and_init_dwp_file): Adjust to use std::string. Remove
11549 make_cleanup/do_cleanups calls.
11550 * python/python.c (do_start_initialization): Adjust to ldirname
11551 returning a std::string.
11552 * utils.c (ldirname): Now returns a std::string.
11553 * utils.h (ldirname): Change return type to std::string.
11554 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
11555 returning a std::string.
11556 * xml-tdesc.c (file_read_description_xml): Likewise.
11557
ed771251
AH
115582017-03-24 Alan Hayward <alan.hayward@arm.com>
11559
11560 * regcache.c (regcache_debug_print_register): New function.
11561 * regcache.h (regcache_debug_print_register): New declaration.
11562 * target.c (debug_print_register): Remove.
11563 (target_fetch_registers): Call regcache_debug_print_register.
11564 (target_store_registers): Likewise.
11565
568c1b9f
PB
115662017-03-24 Pádraig Brady <pbrady@fb.com>
11567
11568 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
11569 reference beyond the 'lh->include_dirs' array before accessing to
11570 it.
11571 (psymtab_include_file_name): Likewise.
11572 (dwarf_decode_lines_1): Likewise.
11573 (dwarf_decode_lines): Likewise.
11574 (file_file_name): Likewise.
11575
3e00d44f
SM
115762017-03-23 Simon Marchi <simon.marchi@ericsson.com>
11577
11578 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
11579 inferior_ptid.
11580 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
11581 ps_lsetfpregs): Likewise.
11582 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
11583 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
11584 ps_lsetfpregs): Likewise.
11585 * target.c (target_fetch_registers, target_store_registers):
11586 Remove asserts.
11587
077ae656
AH
115882017-03-23 Alan Hayward <alan.hayward@arm.com>
11589
11590 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
11591
1e2b521d
YQ
115922017-03-23 Yao Qi <yao.qi@linaro.org>
11593
11594 * aarch64-tdep.c (aarch64_process_record_test): Declare.
11595 (_initialize_aarch64_tdep): Register it.
11596 (aarch64_record_load_store): Handle PRFM instruction.
11597 (aarch64_process_record_test): New function.
11598
33877125
YQ
115992017-03-23 Yao Qi <yao.qi@linaro.org>
11600
11601 * aarch64-tdep.c (aarch64_record_load_store): Fix code
11602 indentation.
11603
a0eef940
YQ
116042017-03-23 Yao Qi <yao.qi@linaro.org>
11605
11606 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
11607
3f2a3564
PR
116082017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11609
11610 python/python.c (do_start_initialization): Fix memory leak.
11611
b67aeab0
SM
116122017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11613
11614 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
11615 using get_ptrace_pid.
11616 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
11617 inferior_ptid.
11618 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
11619 inferior_ptid instead of pid.
11620
ffdbe864
YQ
116212017-03-22 Yao Qi <yao.qi@linaro.org>
11622
11623 * aarch64-tdep.c: Wrap locally used classes in anonymous
11624 namespace.
11625 * arm-tdep.c: Likewise.
11626 * linespec.c: Likewise.
11627 * ui-out.c: Likewise.
11628
9d736fbf
JG
116292017-03-22 Jonah Graham <jonah@kichwacoders.com>
11630
11631 PR gdb/19637
11632 * python/lib/gdb/printer/bound_registers.py: Import sys.
11633
3de88e9a
SM
116342017-03-21 Simon Marchi <simon.marchi@ericsson.com>
11635
11636 * windows-nat.c (do_windows_fetch_inferior_registers): Add
11637 windows_thread_info parameter and use it instead of
11638 current_thread.
11639 (windows_fetch_inferior_registers): Don't set current_thread,
11640 pass the thread to do_windows_fetch_inferior_registers. Use
11641 ptid from regcache instead of inferior_ptid.
11642 (do_windows_store_inferior_registers): Add windows_thread_info
11643 parameter and use it instead of current_thread.
11644 (windows_store_inferior_registers): Don't set current_thread,
11645 pass the thread to do_windows_store_inferior_registers. Use
11646 ptid from regcache instead of inferior_ptid.
11647
0e7b8f61
SM
116482017-03-21 Simon Marchi <simon.marchi@ericsson.com>
11649
11650 * ser-mingw.c (ser_windows_raw): Remove reference to
11651 struct serial::current_timeout.
11652
5badf10a
IR
116532017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
11654
11655 PR tdep/20928
11656 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
11657 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
11658 (sparc64_fsr_type): Fix %fsr decoding.
11659
cee59b3f
TW
116602017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
11661
11662 * python/py-record-btrace.c (btpy_insn_data): Change return type
11663 for Python 2.
11664
639a9038
SM
116652017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
11666
11667 * spu-linux-nat.c (spu_fetch_inferior_registers,
11668 spu_store_inferior_registers): Use ptid from regcache, set and
11669 restore inferior_ptid.
11670 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
11671 Likewise.
11672
bcc0c096
SM
116732017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
11674
11675 * i386-linux-nat.c (fetch_register, store_register,
11676 i386_linux_fetch_inferior_registers,
11677 i386_linux_store_inferior_registers): Use ptid from regcache.
11678 * ia64-linux-nat.c (ia64_linux_fetch_register,
11679 ia64_linux_store_register): Likewise.
11680 * inf-ptrace.c (inf_ptrace_fetch_register,
11681 inf_ptrace_store_register): Likewise.
11682 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
11683 m32r_linux_store_inferior_registers): Likewise.
11684 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
11685 m68kbsd_store_inferior_registers): Likewise.
11686 * m68k-linux-nat.c (fetch_register, store_register,
11687 m68k_linux_fetch_inferior_registers,
11688 m68k_linux_store_inferior_registers): Likewise.
11689 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
11690 m88kbsd_store_inferior_registers): Likewise.
11691 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
11692 mips_fbsd_store_inferior_registers): Likewise.
11693 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
11694 mips64_linux_regsets_store_registers): Likewise.
11695 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
11696 mipsnbsd_store_inferior_registers): Likewise.
11697 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
11698 mips64obsd_store_inferior_registers): Likewise.
11699 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
11700 Likewise.
11701 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
11702 ppcfbsd_store_inferior_registers): Likewise.
11703 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
11704 ppc_linux_store_inferior_registers): Likewise.
11705 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
11706 ppcnbsd_store_inferior_registers): Likewise.
11707 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
11708 ppcobsd_store_registers): Likewise.
11709 * procfs.c (procfs_fetch_registers, procfs_store_registers):
11710 Likewise.
11711 * ravenscar-thread.c (ravenscar_fetch_registers,
11712 ravenscar_store_registers, ravenscar_prepare_to_store):
11713 Likewise.
11714 * record-btrace.c (record_btrace_fetch_registers,
11715 record_btrace_store_registers, record_btrace_prepare_to_store):
11716 Likewise.
11717 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
11718 Lookup inferior using ptid from regcache, instead of
11719 current_inferior.
11720 * remote.c (remote_fetch_registers, remote_store_registers): Use
11721 ptid from regcache.
11722 * rs6000-nat.c (fetch_register, store_register): Likewise.
11723 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
11724 s390_linux_store_inferior_registers): Likewise.
11725 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
11726 shnbsd_store_inferior_registers): Likewise.
11727 * sol-thread.c (sol_thread_fetch_registers,
11728 sol_thread_store_registers): Likewise.
11729 * sparc-nat.c (sparc_fetch_inferior_registers,
11730 sparc_store_inferior_registers): Likewise.
11731 * tilegx-linux-nat.c (fetch_inferior_registers,
11732 store_inferior_registers): Likewise.
11733 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
11734 vaxbsd_store_inferior_registers): Likewise.
11735 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
11736 store_xtregs): Likewise.
11737
c0f55cc6
AV
117382017-03-20 Artemiy Volkov <artemiyv@acm.org>
11739
11740 PR gdb/14441
11741 * NEWS: Mention support for rvalue references in GDB and python.
11742 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
11743 supports both lvalue and rvalue references.
11744
15c0a2a9
AV
117452017-03-20 Artemiy Volkov <artemiyv@acm.org>
11746
11747 PR gdb/14441
11748 * gdbtypes.c (rank_one_type): Implement overloading
11749 resolution rules regarding rvalue references.
11750
aa006118
AV
117512017-03-20 Artemiy Volkov <artemiyv@acm.org>
11752
11753 PR gdb/14441
11754 * aarch64-tdep.c (aarch64_type_align)
11755 (aarch64_extract_return_value, aarch64_store_return_value): Change
11756 lvalue reference type checks to general reference type checks.
11757 * amd64-tdep.c (amd64_classify): Likewise.
11758 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
11759 Likewise.
11760 * arm-tdep.c (arm_type_align, arm_extract_return_value)
11761 (arm_store_return_value): Likewise.
11762 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
11763 * c-typeprint.c (c_print_type): Likewise.
11764 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
11765 (cplus_number_of_children, cplus_describe_child): Likewise.
11766 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
11767 * completer.c (expression_completer): Likewise.
11768 * cp-support.c (make_symbol_overload_list_adl_namespace):
11769 Likewise.
11770 * darwin-nat-info.c (info_mach_region_command): Likewise.
11771 * dwarf2loc.c (entry_data_value_coerce_ref)
11772 (value_of_dwarf_reg_entry): Likewise.
11773 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
11774 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
11775 Likewise.
11776 * findvar.c (extract_typed_address, store_typed_address):
11777 Likewise.
11778 * gdbtypes.c (rank_one_type): Likewise.
11779 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
11780 * infcall.c (value_arg_coerce): Likewise.
11781 * language.c (pointer_type): Likewise.
11782 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
11783 Likewise.
11784 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
11785 * mn10300-tdep.c (mn10300_type_align): Likewise.
11786 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
11787 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
11788 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
11789 Likewise.
11790 * printcmd.c (print_formatted, x_command): Likewise.
11791 * python/py-type.c (typy_get_composite, typy_template_argument):
11792 Likewise.
11793 * python/py-value.c (valpy_referenced_value)
11794 (valpy_get_dynamic_type, value_has_field): Likewise.
11795 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
11796 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
11797 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
11798 * spu-tdep.c (spu_scalar_value_p): Likewise.
11799 * symtab.c (lookup_symbol_aux): Likewise.
11800 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
11801 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
11802 Likewise.
11803 * valops.c (value_cast_pointers, value_cast)
11804 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
11805 (value_struct_elt, value_struct_elt_bitpos)
11806 (value_find_oload_method_list, find_overload_match)
11807 (value_rtti_indirect_type): Likewise.
11808 * valprint.c (val_print_scalar_type_p, generic_val_print):
11809 Likewise.
11810 * value.c (value_actual_type, value_as_address, unpack_long)
11811 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
11812 (coerce_ref): Likewise.
11813 * varobj.c (varobj_get_value_type): Likewise.
11814
3fcf899d
AV
118152017-03-20 Artemiy Volkov <artemiyv@acm.org>
11816
11817 PR gdb/14441
11818 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
11819 table of constants.
11820 * python/lib/gdb/command/explore.py: Support exploring values
11821 of rvalue reference types.
11822 * python/lib/gdb/types.py: Implement get_basic_type() for
11823 rvalue reference types.
11824 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
11825 constant.
11826 * python/py-value.c (valpy_getitem): Add an rvalue reference
11827 check.
11828 (valpy_reference_value): Add new parameter "refcode".
11829 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
11830 New wrappers for valpy_reference_value().
11831 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
11832 (gdbpy_invoke_xmethod): Likewise.
11833
4297a3f0
AV
118342017-03-20 Artemiy Volkov <artemiyv@acm.org>
11835
11836 PR gdb/14441
11837 * dwarf2read.c (process_die, read_type_die_1): Handle the
11838 DW_TAG_rvalue_reference_type DIE.
11839 (read_tag_reference_type): Add new parameter "refcode".
11840
e1cb3213
AV
118412017-03-20 Artemiy Volkov <artemiyv@acm.org>
11842
11843 PR gdb/14441
11844 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
11845 (c_type_print_modifier, c_type_print_varspec_suffix)
11846 (c_type_print_base): Support printing rvalue reference types.
11847 * c-valprint.c (c_val_print, c_value_print): Support printing
11848 rvalue reference values.
11849
e4347c89
AV
118502017-03-20 Artemiy Volkov <artemiyv@acm.org>
11851
11852 PR gdb/14441
11853 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
11854 typename.
11855 * cp-support.c (replace_typedefs): Handle
11856 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
11857 * python/py-type.c (typy_lookup_type): Likewise.
11858
53cc15f5
AV
118592017-03-20 Artemiy Volkov <artemiyv@acm.org>
11860
11861 PR gdb/14441
11862 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
11863 * parse.c (insert_type): Change assert statement.
11864 (follow_types): Handle rvalue reference types.
11865 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
11866 constant.
11867
a65cfae5
AV
118682017-03-20 Artemiy Volkov <artemiyv@acm.org>
11869
11870 PR gdb/14441
11871 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
11872 value_ref() interface.
11873 * c-valprint.c (c_value_print): Likewise.
11874 * infcall.c (value_arg_coerce): Likewise.
11875 * python/py-value.c (valpy_reference_value): Likewise.
11876 * valops.c (value_cast, value_reinterpret_cast)
11877 (value_dynamic_cast, typecmp): Likewise.
11878 (value_ref): Parameterize by kind of return value reference type.
11879 * value.h (value_ref): Add new parameter "refcode".
11880
3b224330
AV
118812017-03-20 Artemiy Volkov <artemiyv@acm.org>
11882
11883 PR gdb/14441
11884 * dwarf2read.c (read_tag_reference_type): Use
11885 lookup_lvalue_reference_type() instead of lookup_reference_type().
11886 * eval.c (evaluate_subexp_standard): Likewise.
11887 * f-exp.y: Likewise.
11888 * gdbtypes.c (make_reference_type, lookup_reference_type):
11889 Generalize with rvalue reference types.
11890 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
11891 convenience wrappers for lookup_reference_type().
11892 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
11893 reference kind parameter.
11894 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
11895 wrappers for lookup_reference_type().
11896 * guile/scm-type.c (gdbscm_type_reference): Use
11897 lookup_lvalue_reference_type() instead of lookup_reference_type().
11898 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
11899 * parse.c (follow_types): Likewise.
11900 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
11901 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
11902 Likewise.
11903 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
11904 (gdbpy_invoke_xmethod): Likewise.
11905 * stabsread.c: Provide extra argument to make_reference_type()
11906 call.
11907 * valops.c (value_ref, value_rtti_indirect_type): Use
11908 lookup_lvalue_reference_type() instead of lookup_reference_type().
11909
f9aeb8d4
AV
119102017-03-20 Artemiy Volkov <artemiyv@acm.org>
11911
11912 PR gdb/14441
11913 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
11914 (TYPE_IS_REFERENCE): New macro.
11915 (struct type): Add rvalue_reference_type field.
11916 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
11917
51457a05
MAL
119182017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
11919
11920 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
11921 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
11922 New function definition.
11923 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
11924 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
11925 New function declaration.
11926 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
11927 * mi/mi-interp.h: New file.
11928 * solib.c (info_sharedlibrary_command): Replace for loop with
11929 ALL_SO_LIBS macro
11930 * solib.h (update_solib_list): New function declaration.
11931 (so_list_head): Move macro.
11932 * solist.h (ALL_SO_LIBS): New macro.
11933
e696b3ad
MAL
119342017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
11935
11936 * infcmd.c (post_create_inferior): Remove unused argument in
11937 call to solib_add.
11938 * remote.c (remote_start_remote): Likewise.
11939 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
11940 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
11941 (enable_break): Likewise.
11942 * solib.c (update_solib_list): Remove unused target argument
11943 and its documentation.
11944 (solib_add): Remove unused target argument. Remove unused
11945 argument in call to update_solib_list.
11946 (info_sharedlibrary_command): Remove unused argument in call
11947 to update_solib_list.
11948 (sharedlibrary_command): Remove unused argument in call to
11949 solib_add.
11950 (handle_solib_event): Likewise.
11951 (reload_shared_libraries): Likewise.
11952 * solib.h (solib_add): Remove unused target argument.
11953
dcb84eda
AA
119542017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
11955
11956 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
11957 (s390_displaced_step_fixup): Cover relative branches with the
11958 default fixup handling. This fixes lack of support for some
11959 relative branch instructions.
11960
d9cb6cdc
SM
119612017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11962
11963 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
11964 ptid from regcache.
11965
1afaf9f4
SM
119662017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11967
11968 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
11969 i386_darwin_store_inferior_registers): Use ptid from regcache.
11970
aac12e24
SM
119712017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11972
11973 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
11974 i386bsd_store_inferior_registers): Use ptid from regcache.
11975
bbe1eef1
SM
119762017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11977
11978 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
11979 hppaobsd_store_registers): Use ptid from regcache.
11980
10799020
SM
119812017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11982
11983 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
11984 hppanbsd_store_registers): Use ptid from regcache.
11985
00204cf7
SM
119862017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11987
11988 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
11989 from regcache. Use get_ptrace_pid.
11990
11a33714
SM
119912017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11992
11993 * corelow.c (get_core_register_section): Use ptid from regcache,
11994 update doc.
11995
317cd492
SM
119962017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11997
11998 * bsd-uthread.c (bsd_uthread_fetch_registers,
11999 bsd_uthread_store_registers): Use ptid from regcache, set and
12000 restore inferior_ptid.
12001
9ac8a7c2
SM
120022017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12003
12004 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
12005 fetch_fp_regs, store_register, store_regs, store_fp_register,
12006 store_fp_regs): Use ptid from regcache.
12007
4ac4bb6a
SM
120082017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12009
12010 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
12011 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
12012 store_vfp_regs): Use ptid from regcache.
12013
9bcbdca8
PA
120142017-03-17 Pedro Alves <palves@redhat.com>
12015
12016 PR remote/21188
12017 * ser-base.c (ser_base_wait_for): Add comment.
12018 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
12019 version.
12020 * ser-unix.c (hardwire_raw): Remove reference to
12021 scb->current_timeout.
12022 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
12023 (hardwire_ops): Install ser_base_readchar instead of
12024 hardwire_readchar.
12025 * serial.h (struct serial) <current_timeout, timeout_remaining>:
12026 Remove fields.
12027
7503099f
JG
120282017-03-17 Jonah Graham <jonah@kichwacoders.com>
12029
12030 PR gdb/19637
12031 * python/lib/gdb/printer/bound_registers.py: Add support for
12032 Python 3.
12033
7942e96e
AA
120342017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
12035
12036 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
12037 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
12038 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
12039 byte_offset to subobj_byte_offset. Fix the handling of
12040 DWARF_VALUE_STACK on big-endian targets when coming via an
12041 implicit pointer.
12042 (dwarf2_evaluate_loc_desc): Adjust call to
12043 dwarf2_evaluate_loc_desc_full.
12044 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
12045 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
12046
ba14f379
YQ
120472017-03-16 Yao Qi <yao.qi@linaro.org>
12048
12049 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
12050 and REVSH instructions.
12051
b121eeb9
YQ
120522017-03-16 Yao Qi <yao.qi@linaro.org>
12053
12054 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
12055 (arm_record_test): Declare.
12056 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
12057 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
12058 align with the manual.
12059 (thumb_record_misc): Adjust the code order to align with the
12060 manual.
12061 (thumb2_record_decode_insn_handler): Fix instruction matching.
12062 (instruction_reader_thumb): New class.
12063 (arm_record_test): New function.
12064
728a7913
YQ
120652017-03-16 Yao Qi <yao.qi@linaro.org>
12066
12067 * arm-tdep.c (abstract_memory_reader): New class.
12068 (instruction_reader): New class.
12069 (extract_arm_insn): Add argument 'reader'. Callers updated.
12070 (decode_insn): Likewise.
12071
34b43320
DE
120722017-03-16 Doug Evans <dje@google.com>
12073
a7c0469f
DE
12074 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
12075 member. Change type of TYPE member to SCM. All uses updated.
12076 (lsscm_make_lazy_string_smob): Add assert.
12077 (lsscm_make_lazy_string): Flag bad length values.
12078 (lsscm_elt_type): New function.
12079 (gdbscm_lazy_string_to_value): Rewrite to use
12080 lsscm_safe_lazy_string_to_value.
12081 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
12082 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
12083 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
12084 in incoming type.
12085 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
12086 * guile/scm-type.c (tyscm_scm_to_type): New function.
12087
120882017-03-15 Doug Evans <dje@google.com>
12089
34b43320
DE
12090 PR python/17728, python/18439, python/18779
12091 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
12092 member. Change type of TYPE member to PyObject *. All uses updated.
12093 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
12094 (gdbpy_create_lazy_string_object): Flag bad length values.
12095 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
12096 Handle typedefs in incoming type.
12097 (stpy_lazy_string_elt_type): New function.
12098 (gdbpy_extract_lazy_string): Call it.
12099 * python/py-value.c (valpy_lazy_string): Flag bad length values.
12100 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
12101 typedefs in incoming type.
12102
a3a5fecc
DE
121032017-03-16 Doug Evans <dje@google.com>
12104
12105 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
12106 * guile/scm-type.c (tyscm_scm_to_type): New function.
12107
28f1c605
JW
121082017-03-16 Jiong Wang <jiong.wang@arm.com>
12109
12110 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
12111 "ULONGEST" for "skip".
12112
87c336f6
AA
121132017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
12114
12115 PR gdb/21220
12116 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
12117 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
12118 (inf_ptrace_peek_poke): ...here. New function. Now also loop
12119 over ptrace peek/poke until end of buffer or error.
12120
cf81cf60
SM
121212017-03-14 Simon Marchi <simon.marchi@ericsson.com>
12122
12123 * parse.c (length_of_subexp): Make static.
12124 * parser-defs.h (length_of_subexp): Remove.
12125
a379284a
AA
121262017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
12127
12128 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
12129 as well.
12130
8a6200ba
PA
121312017-03-14 Pedro Alves <palves@redhat.com>
12132
12133 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
12134 (main): Use std::unique_ptr. Remove calls to
12135 cp_demangled_name_parse_free.
12136
f79ec206
SM
121372017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12138
12139 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
12140 alphabsd_store_inferior_registers): Use regcache->ptid instead
12141 of inferior_ptid.
12142
edb5fb00
SM
121432017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12144
12145 * aix-thread.c (aix_thread_fetch_registers,
12146 aix_thread_store_registers): Use regcache->ptid instead of
12147 inferior_ptid.
12148
55119686
SM
121492017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12150
12151 * aarch64-linux-nat.c (fetch_gregs_from_thread,
12152 store_gregs_to_thread, fetch_fpregs_from_thread,
12153 store_fpregs_to_thread): Use regcache->ptid instead of
12154 inferior_ptid.
12155
6a06fbb7
SM
121562017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12157
12158 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
12159 amd64_linux_fetch_inferior_registers): Use regcache->ptid
12160 instead of inferior_ptid.
12161
c6386875
SM
121622017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12163
12164 * target.c (target_fetch_registers, target_store_registers): Add
12165 assert.
12166
ddaaf0fb
SM
121672017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12168
12169 * regcache.h (regcache_get_ptid): New function.
12170 * regcache.c (regcache_get_ptid): New function.
12171
b9da89d1 121722017-03-13 Mark Wielaard <mark@klomp.org>
12173
12174 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
12175
5f4d1085
KS
121762017-03-10 Keith Seitz <keiths@redhat.com>
12177
12178 PR c++/8218
12179 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
12180
c65d6b55
PA
121812017-03-08 Pedro Alves <palves@redhat.com>
12182
12183 PR gdb/18360
12184 * infrun.c (start_step_over, do_target_resume, resume)
12185 (restart_threads): Assert we're not resuming a thread that is
12186 meant to be stopped.
12187 (infrun_thread_stop_requested_callback): Delete.
12188 (infrun_thread_stop_requested): If the thread is internally
12189 stopped, queue a pending stop event and clear the thread's
12190 inline-frame state.
12191 (handle_stop_requested): New function.
12192 (handle_syscall_event, handle_inferior_event_1): Use
12193 handle_stop_requested.
12194 (handle_stop_requested): New function.
12195 (handle_signal_stop): Set the thread's stop_signal here instead of
12196 at caller.
12197 (finish_step_over): Clear step over info unconditionally.
12198 (handle_signal_stop): If the user had interrupted the event
12199 thread, consider the stop a random signal.
12200 (handle_signal_stop) <signal arrived while stepping over
12201 breakpoint>: Don't restart threads here.
12202 (stop_waiting): Don't clear step-over info here.
12203
15c22686
PA
122042017-03-08 Pedro Alves <palves@redhat.com>
12205
12206 PR 21206
12207 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
12208 goes to argument 2, not 1.
12209
6e5d74e7
PA
122102017-03-08 Pedro Alves <palves@redhat.com>
12211
12212 PR cli/21218
12213 * top.c (gdb_readline_wrapper): Avoid passing NULL to
12214 display_gdb_prompt.
12215 (command_line_input): Add comment.
12216
9753a2f6
PA
122172017-03-08 Pedro Alves <palves@redhat.com>
12218
12219 PR tui/21216
12220 * tui/tui-file.c (tui_file::write): New.
12221 * tui/tui-file.h (tui_file): Override "write".
12222 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
12223 factored out from ...
12224 (tui_puts): ... here.
12225 (tui_putc): Use them.
12226 (tui_write): New function.
12227 * tui/tui-io.h (tui_write): Declare.
12228
1672e0d9
SDJ
122292017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
12230
12231 * Makefile.in (SFILES): Replace "environ.c" with
12232 "common/environ.c".
12233 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
12234 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
12235 to...
12236 * common/environ.c: ... here.
12237 * environ.h: Moved to...
12238 * common/environ.h: ... here.
12239
f7bb4e3a
PB
122402017-03-07 Peter Bergner <bergner@vnet.ibm.com>
12241
12242 * gdbarch.sh (pstring_ptr): New static function.
12243 (gdbarch_disassembler_options): Use it.
12244 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
12245 not valid_disassembler_option->name.
12246 * gdbarch.c: Regenerate.
12247
e45ced6c
PB
122482017-03-07 Peter Bergner <bergner@vnet.ibm.com>
12249
12250 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
12251
5f6fd321
PA
122522017-03-07 Pedro Alves <palves@redhat.com>
12253
12254 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
12255
6dbb839a 122562017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
12257
12258 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
12259 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
12260 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 12261 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 12262
d274ecf4
SM
122632017-03-06 Simon Marchi <simon.marchi@ericsson.com>
12264
12265 * xtensa-linux-nat.c (fetch_gregs): Remove const.
12266
df97be55
SM
122672017-03-03 Simon Marchi <simon.marchi@ericsson.com>
12268
12269 * remote.c (remote_add_target_side_commands): Use range-based
12270 for loop.
12271
7d45f3df
YQ
122722017-03-03 Yao Qi <yao.qi@linaro.org>
12273
12274 PR gdb/21165
12275 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
12276 value is lazy.
12277 * valprint.c (common_val_print): Likewise.
12278
65b48a81
PB
122792017-02-28 Peter Bergner <bergner@vnet.ibm.com>
12280
12281 * NEWS: Mention new set/show disassembler-options commands.
12282 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
12283 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
12284 (prospective_options): New static variable.
12285 (gdb_disassembler::gdb_disassembler): Initialize
12286 m_di.disassembler_options.
12287 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
12288 (get_disassembler_options): New function.
12289 (set_disassembler_options): Likewise.
12290 (set_disassembler_options_sfunc): Likewise.
12291 (show_disassembler_options_sfunc): Likewise.
12292 (disassembler_options_completer): Likewise.
12293 (_initialize_disasm): Likewise.
12294 * disasm.h (get_disassembler_options): New prototype.
12295 (set_disassembler_options): Likewise.
12296 * gdbarch.sh (gdbarch_disassembler_options): New variable.
12297 (gdbarch_verify_disassembler_options): Likewise.
12298 * gdbarch.c: Regenerate.
12299 * gdbarch.h: Likewise.
12300 * arm-tdep.c (num_disassembly_options): Delete.
12301 (set_disassembly_style): Likewise.
12302 (arm_disassembler_options): New static variable.
12303 (set_disassembly_style_sfunc): Convert short style name into long
12304 option name. Call set_disassembler_options.
12305 (show_disassembly_style_sfunc): New function.
12306 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
12307 set_gdbarch_verify_disassembler_options.
12308 (_initialize_arm_tdep): Delete regnames variable and update callers.
12309 (arm_disassembler_options): Initialize.
12310 (disasm_options): New variable.
12311 (num_disassembly_options): Rename from this...
12312 (num_disassembly_styles): ...to this. Compute by scanning through
12313 disasm_options.
12314 (valid_disassembly_styles): Initialize using disasm_options.
12315 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
12316 set_arm_regname_option.
12317 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
12318 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
12319 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
12320 set_gdbarch_verify_disassembler_options.
12321 * s390-tdep.c (s390_disassembler_options): New static variable.
12322 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
12323 set_gdbarch_verify_disassembler_options.
12324
d538e36d
SM
123252017-02-27 Simon Marchi <simon.marchi@ericsson.com>
12326
12327 * remote.c (remote_add_target_side_condition): Remove "struct"
12328 keyword from range-based for loop.
12329
83621223
SM
123302017-02-27 Simon Marchi <simon.marchi@ericsson.com>
12331
12332 * remote.c (remote_add_target_side_condition): Use range-based
12333 for loop. Update comment.
12334
2123df0e
YQ
123352017-02-27 Yao Qi <yao.qi@linaro.org>
12336
12337 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
12338
8e368124
AH
123392017-02-26 Alan Hayward <alan.hayward@arm.com>
12340
12341 * regcache.c (regcache_raw_update): New function.
12342 (regcache_raw_read): Move code to regcache_raw_update.
12343 * regcache.h (regcache_raw_update): New declaration.
12344 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
12345
a49dd8dd
JK
123462017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
12347
12348 * dwarf2read.c (create_debug_type_hash_table): Initialize
12349 header.signature and header.type_offset_in_tu.
12350
34e4bae9
PA
123512017-02-24 Pedro Alves <palves@redhat.com>
12352
12353 * symtab.c (make_file_symbol_completion_list_1): Use
12354 add_symtab_completions.
12355
b0e4b369
AH
123562017-02-24 Alan Hayward <alan.hayward@arm.com>
12357
12358 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
12359
975c21ab
AH
123602017-02-24 Alan Hayward <alan.hayward@arm.com>
12361
12362 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
12363 I386_MAX_REGISTER_SIZE.
12364 (i386_pseudo_register_write): Likewise.
12365 (i386_process_record): Likewise.
12366 * i387-tdep.c (i387_supply_xsave): Likewise.
12367 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
12368 (store_register): Likewise.
12369
14bc53a8
PA
123702017-02-23 Pedro Alves <palves@redhat.com>
12371
12372 * ada-lang.c: Include "common/function-view.h".
12373 (ada_iterate_over_symbols): Adjust to use function_view as
12374 callback type.
12375 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
12376 (ada_make_symbol_completion_list): Use a lambda.
12377 (ada_exc_search_name_matches): Delete.
12378 (name_matches_regex): New.
12379 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
12380 * compile/compile-c-support.c: Include "common/function-view.h".
12381 (print_one_macro): Change prototype to accept a ui_file pointer.
12382 (write_macro_definitions): Use a lambda.
12383 * dwarf2read.c: Include "common/function-view.h".
12384 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
12385 (dw2_expand_symtabs_matching): Adjust to use function_view as
12386 callback type.
12387 * language.h: Include "common/function-view.h".
12388 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
12389 function_view as callback type.
12390 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
12391 * linespec.c: Include "common/function-view.h".
12392 (collect_info::add_symbol): New method.
12393 (struct symbol_and_data_callback, iterate_inline_only, struct
12394 symbol_matcher_data, iterate_name_matcher): Delete.
12395 (iterate_over_all_matching_symtabs): Adjust to use function_view
12396 as callback type and lambdas.
12397 (iterate_over_file_blocks): Adjust to use function_view as
12398 callback type.
12399 (decode_compound_collector): Now a class with private fields.
12400 (decode_compound_collector::release_symbols): New method.
12401 (collect_one_symbol): Rename to...
12402 (decode_compound_collector::operator()): ... this and adjust.
12403 (lookup_prefix_sym): decode_compound_collector construction bits
12404 move to decode_compound_collector ctor. Pass the
12405 decode_compound_collector object directly as callback. Remove
12406 cleanups and use decode_compound_collector::release_symbols
12407 instead.
12408 (symtab_collector): Now a class with private fields.
12409 (symtab_collector::release_symtabs): New method.
12410 (add_symtabs_to_list): Rename to...
12411 (symtab_collector::operator()): ... this and adjust.
12412 (collect_symtabs_from_filename): symtab_collector construction
12413 bits move to symtab_collector ctor. Pass the symtab_collector
12414 object directly as callback. Remove cleanups and use
12415 symtab_collector::release_symtabs instead.
12416 (collect_symbols): Delete.
12417 (add_matching_symbols_to_info): Use lambdas.
12418 * macrocmd.c (print_macro_callback): Delete.
12419 (info_macro_command): Use a lambda.
12420 (info_macros_command): Pass print_macro_definition as callable
12421 directly.
12422 (print_one_macro): Remove 'ignore' parameter.
12423 (macro_list_command): Adjust.
12424 * macrotab.c (macro_for_each_data::fn): Now a function_view.
12425 (macro_for_each_data::user_data): Delete field.
12426 (foreach_macro): Adjust to call the function_view.
12427 (macro_for_each): Adjust to use function_view as callback type.
12428 (foreach_macro_in_scope): Adjust to call the function_view.
12429 (macro_for_each_in_scope): Adjust to use function_view as callback
12430 type.
12431 * macrotab.h: Include "common/function-view.h".
12432 (macro_callback_fn): Declare a prototype instead of a pointer.
12433 Remove "user_data" parameter.
12434 (macro_for_each, macro_for_each_in_scope): Adjust to use
12435 function_view as callback type.
12436 * psymtab.c (partial_map_expand_apply)
12437 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
12438 Adjust to use function_view as callback type and to return bool.
12439 (psym_expand_symtabs_matching): Adjust to use function_view as
12440 callback types.
12441 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
12442 to use function_view as callback type and to return bool.
12443 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
12444 callback types.
12445 * symfile.c (expand_symtabs_matching): Adjust to use function_view
12446 as callback types.
12447 * symfile.h: Include "common/function-view.h".
12448 (expand_symtabs_file_matcher_ftype)
12449 (expand_symtabs_symbol_matcher_ftype)
12450 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
12451 return bool.
12452 (quick_symbol_functions::map_symtabs_matching_filename)
12453 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
12454 function_view as callback type and return bool.
12455 (expand_symtabs_matching): Adjust to use function_view as callback
12456 type.
12457 (maintenance_expand_name_matcher)
12458 (maintenance_expand_file_matcher): Delete.
12459 (maintenance_expand_symtabs): Use lambdas.
12460 * symtab.c (iterate_over_some_symtabs): Adjust to use
12461 function_view as callback types and return bool.
12462 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
12463 of a cleanup.
12464 (lookup_symtab_callback): Delete.
12465 (lookup_symtab): Use a lambda.
12466 (iterate_over_symbols): Adjust to use function_view as callback
12467 type.
12468 (struct search_symbols_data, search_symbols_file_matches)
12469 (search_symbols_name_matches): Delete.
12470 (search_symbols): Use a pair of lambdas.
12471 (struct add_name_data, add_macro_name, symbol_completion_matcher)
12472 (symtab_expansion_callback): Delete.
12473 (default_make_symbol_completion_list_break_on_1): Use lambdas.
12474 * symtab.h: Include "common/function-view.h".
12475 (iterate_over_some_symtabs): Adjust to use function_view as
12476 callback type and return bool.
12477 (iterate_over_symtabs): Adjust to use function_view as callback
12478 type.
12479 (symbol_found_callback_ftype): Remove 'data' parameter and return
12480 bool.
12481 (iterate_over_symbols): Adjust to use function_view as callback
12482 type.
12483
07e253aa
PA
124842017-02-23 Pedro Alves <palves@redhat.com>
12485
12486 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
12487 (%.o) <unittests/%.c>: New pattern.
12488 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
12489 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
12490 * common/function-view.h: New file.
12491 * unittests/function-view-selftests.c: New file.
12492 * configure: Regenerate.
12493
8eaf5320
SM
124942017-02-23 Simon Marchi <simon.marchi@ericsson.com>
12495
12496 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
12497 inferior_ptid.
12498 * go32-nat.c (go32_thread_alive): Likewise.
12499
38768751
YQ
125002017-02-23 Yao Qi <yao.qi@linaro.org>
12501
12502 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
12503 delete.
12504
0a8beaba
YQ
125052017-02-23 Yao Qi <yao.qi@linaro.org>
12506
12507 * varobj.c (varobj_clear_saved_item): Use delete instead of
12508 xfree.
12509 (update_dynamic_varobj_children): Likewise.
12510
58fdfd2c
JK
125112017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12512
12513 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
12514
1b90b139
SM
125152017-02-21 Simon Marchi <simon.marchi@ericsson.com>
12516
12517 * common/enum-flags.h (enum_flags::enum_flags): Initialize
12518 m_enum_value to 0 in default constructor.
12519
2039d74e
EBM
125202017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12521
12522 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
12523 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
12524 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
12525 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
12526 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
12527 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
12528 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
12529 IS_STORE_CONDITIONAL_INSN.
12530
7814882a
JK
125312017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12532
12533 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
12534
0ae60b63
JK
125352017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12536
12537 * NEWS (Changes since GDB 7.12): Add DWARF-5.
12538
0224619f
JK
125392017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12540
12541 * dwarf2read.c (skip_one_die, read_attribute_value)
12542 (dwarf2_const_value_attr, dump_die_shallow)
12543 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
12544 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
12545
0af92d60
JK
125462017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12547
12548 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
12549 (dwarf_parse_macro_header): Accept DWARF version 5.
12550 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
12551
216f72a1
JK
125522017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12553
12554 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
12555 DW_AT_GNU_*.
12556 * common/common-exceptions.h (enum errors): Likewise.
12557 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
12558 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
12559 (dwarf_expr_context::execute_stack_op): Likewise.
12560 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
12561 Likewise.
12562 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
12563 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12564 (show_entry_values_debug, call_site_to_target_addr)
12565 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
12566 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
12567 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
12568 (value_of_dwarf_block_entry, indirect_pieced_value)
12569 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
12570 (disassemble_dwarf_expression): Likewise.
12571 * dwarf2read.c (process_die, inherit_abstract_dies)
12572 (read_call_site_scope): Likewise.
12573 * gdbtypes.h (struct func_type, struct call_site_parameter)
12574 (struct call_site): Likewise.
12575 * stack.c (read_frame_arg): Likewise.
12576 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
12577
43988095
JK
125782017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12579
12580 * defs.h (read_unsigned_leb128): New declaration.
12581 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
12582 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
12583 (dwarf2_find_location_expression): Call also
12584 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
12585 * dwarf2loc.h (dwarf2_version): New declaration.
12586 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
12587 rnglists.
12588 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
12589 .debug_rnglists.
12590 (struct dwop_section_names): Add loclists_dwo.
12591 (dwop_section_names): Add .debug_loclists.dwo.
12592 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
12593 (struct dwarf2_per_cu_data): Add dwarf_version.
12594 (struct dwo_sections): Add loclists.
12595 (struct attr_abbrev): Add implicit_const.
12596 (read_indirect_line_string): New declaration.
12597 (read_unsigned_leb128): Delete declaration.
12598 (rcuh_kind): New definition.
12599 (read_and_check_comp_unit_head): Change parameter
12600 is_debug_types_section to section_kind.
12601 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
12602 (read_comp_unit_head): Change parameter abfd to section, add parameter
12603 section_kind. Handle DWARF-5.
12604 (error_check_comp_unit_head): Accept also DWARF version 5.
12605 (read_and_check_comp_unit_head): Change parameter
12606 is_debug_types_section to section_kind.
12607 (read_and_check_type_unit_head): Delete function.
12608 (read_abbrev_offset): Handle DWARF-5.
12609 (create_debug_type_hash_table): Add parameter section_kind. Process
12610 only DW_UT_type. Use signature and type_offset_in_tu from struct
12611 comp_unit_head.
12612 (create_debug_types_hash_table): Update create_debug_type_hash_table
12613 caller.
12614 (create_all_type_units): Call create_debug_type_hash_table.
12615 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
12616 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
12617 caller.
12618 (skip_one_die): Handle DW_FORM_implicit_const.
12619 (dwarf2_rnglists_process): New function.
12620 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
12621 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
12622 (read_attribute_value): Handle DW_FORM_implicit_const,
12623 DW_FORM_line_strp.
12624 (read_attribute): Handle DW_FORM_implicit_const.
12625 (read_indirect_string_at_offset_from): New function from
12626 read_indirect_string_at_offset.
12627 (read_indirect_string_at_offset): Call
12628 read_indirect_string_at_offset_from.
12629 (read_indirect_line_string_at_offset): New function.
12630 (read_indirect_string): New function comment.
12631 (read_indirect_line_string): New function.
12632 (read_unsigned_leb128): Make it global.
12633 (dwarf2_string_attr): Handle DWARF-5.
12634 (add_include_dir_stub, read_formatted_entries): New functions.
12635 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
12636 Handle DWARF-5.
12637 (per_cu_header_read_in): Update read_comp_unit_head caller.
12638 (dwarf2_version): New function.
12639 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
12640 rnglists.
12641 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
12642 fields.
12643
22d2f3ab
JK
126442017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12645
12646 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
12647
5f46c5a5
JK
126482017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12649
12650 * dwarf2read.c (dwarf2_ranges_process): New function from
12651 dwarf2_ranges_read.
12652 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
12653 dwarf2_ranges_process.
12654
78d4d2c5
JK
126552017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12656
12657 * dwarf2read.c (create_debug_type_hash_table): New function from
12658 create_debug_types_hash_table.
12659 (create_debug_types_hash_table): Call create_debug_type_hash_table.
12660 (create_all_type_units, open_and_init_dwo_file): Update
12661 create_debug_types_hash_table callers.
12662
1b076f25
SDJ
126632017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12664
12665 PR gdb/16188
12666 * fork-child.c (trace_start_error): Fix thinko. va_end should
12667 refer to 'ap', not 'args'.
12668
0db8980c
SDJ
126692017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12670 Pedro Alves <palves@redhat.com>
12671
12672 PR gdb/16188
12673 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
12674 calls succeeded.
12675 * fork-child.c (trace_start_error): New function.
12676 (trace_start_error_with_name): Likewise.
12677 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
12678 * inf-ptrace.c (inf_ptrace_me): Likewise.
12679 * inferior.h (trace_start_error): New prototype.
12680 (trace_start_error_with_name): Likewise.
12681
99e8a4f9
SDJ
126822017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
12683
12684 PR gdb/21164
12685 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
12686 NULL before using it.
12687 * symmisc.c (maintenance_print_symbols): Likewise.
12688 (maintenance_print_msymbols): Likewise.
12689
4e746bb6
TW
126902017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12691
12692 * NEWS: Add record Python bindings entry.
12693
126942017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12695
12696 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
12697 py-record-full.o.
12698 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
12699 * python/py-record-btrace.c, python/py-record-btrace.h,
12700 python/py-record-full.c, python/py-record-full.h: New file.
12701 * python/py-record.c: Add include for py-record-btrace.h and
12702 py-record-full.h.
12703 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
12704 recpy_instruction_history, recpy_function_call_history, recpy_begin,
12705 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
12706 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
12707 New definition.
12708 (gdbpy_initialize_btrace): New export.
12709 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
12710
127112017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12712
12713 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
12714 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
12715 * python/py-record.c: New file.
12716 * python/python-internal.h (gdbpy_start_recording,
12717 gdbpy_current_recording, gdpy_stop_recording,
12718 gdbpy_initialize_record): New export.
12719 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
12720 (python_GdbMethods): Add gdbpy_start_recording,
12721 gdbpy_current_recording and gdbpy_stop_recording.
12722
127232017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12724
12725 * record-btrace.c (record_btrace_record_method): New function.
12726 (init_record_btrace_ops): Initialize to_record_method.
12727 * record-full.c (record_full_record_method): New function.
12728 (init_record_full_ops, init_record_full_core_ops): Add
12729 record_full_record_method.
12730 * record.h (enum record_method): New enum.
12731 * target-debug.h (target_debug_print_enum_record_method: New define.
12732 * target-delegates.c: Regenerate.
12733 * target.c (target_record_method): New function.
12734 * target.h: Include record.h.
12735 (struct target_ops) <to_record_method>: New field.
12736 (target_record_method): New export.
12737
127382017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12739
12740 * record.h (record_start, record_stop): New export.
12741 * record.c (record_start, record_stop): New function.
12742
127432017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12744
12745 * btrace.c (btrace_fetch): Copy function call segments pointer
12746 into a vector.
12747 (btrace_clear): Clear the vector.
12748 (btrace_find_insn_by_number): Use binary search to find the correct
12749 function call segment.
12750 * btrace.h (brace_fun_p): New typedef.
12751 (struct btrace_thread_info) <functions>: New field.
12752
127532017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12754
12755 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
12756 * btrace.c (btrace_decode_error): ... here. New function.
12757 * btrace.h (btrace_decode_error): New export.
12758
127592017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12760
12761 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
12762 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
12763 btrace_find_insn_by_number): Remove special case for gaps.
12764 * btrace.h (btrace_insn_get_error): New export.
12765 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
12766 * record-btrace.c (btrace_insn_history): Print number for gaps.
12767 (record_btrace_info, record_btrace_goto): Handle gaps.
12768
3f77c769
TT
127692017-02-14 Tom Tromey <tom@tromey.com>
12770
12771 PR python/13598:
12772 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
12773 event.
12774 * python/py-evts.c (gdbpy_initialize_py_events): Add
12775 before_prompt registry.
12776 * python/py-events.h (events_object) <before_prompt>: New field.
12777
4c2c7ac6
MM
127782017-02-14 Markus Metzger <markus.t.metzger@intel.com>
12779
12780 * btrace.c (ftrace_new_switch): Preserve up link and flags.
12781
5cf30ebf
LM
127822017-02-13 Luis Machado <lgustavo@codesourcery.com>
12783
12784 * symfile (_initialize_symfile): Add usage text to the load command's
12785 help text.
12786
26a06916
SM
127872017-02-10 Simon Marchi <simon.marchi@ericsson.com>
12788
12789 * utils.c (defaulted_query): Don't query on secondary UIs.
12790
0b145e37
TT
127912017-02-10 Tom Tromey <tom@tromey.com>
12792
12793 * rust-lang.c (rust_get_disr_info): Remove unused variable.
12794
2d8365c4
TT
127952017-02-10 Tom Tromey <tom@tromey.com>
12796
12797 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
12798 "cleanup" local.
12799 * python/py-type.c (typy_legacy_template_argument): Remove
12800 unnecessary "cleanup" local.
12801
2bb8f231
TT
128022017-02-10 Tom Tromey <tom@tromey.com>
12803
12804 * python/python.c (do_start_initialization): New function, from
12805 _initialize_python.
12806 (_initialize_python): Call do_start_initialization.
12807 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
12808 goto.
12809
1bdfaf42
TT
128102017-02-10 Tom Tromey <tom@tromey.com>
12811
12812 * python/py-prettyprint.c (pretty_print_one_value): Use
12813 gdbpy_ref.
12814
88b6faea
TT
128152017-02-10 Tom Tromey <tom@tromey.com>
12816
12817 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
12818 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
12819 gdbpy_ref.
12820 * python/py-type.c (field_new): Use gdbpy_ref.
12821 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
12822 gdbpy_ref.
12823 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
12824 (py_free_pspace): Likewise.
12825 (pspace_to_pspace_object): Likewise.
12826 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
12827 (py_free_objfile): Likewise.
12828 (objfile_to_objfile_object): Likewise.
12829 * python/py-inferior.c (delete_thread_object): Use
12830 gdbpy_ref.
12831 (infpy_read_memory): Likewise.
12832 (py_free_inferior): Likewise.
12833 * python/py-evtregistry.c (create_eventregistry_object): Use
12834 gdbpy_ref.
12835 * python/py-event.c (create_event_object): Use gdbpy_ref.
12836
7780f186
TT
128372017-02-10 Tom Tromey <tom@tromey.com>
12838
12839 * python/py-ref.h (gdbpy_ref_policy): Now a template.
12840 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
12841 used.
12842 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
12843 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
12844 python/py-exitedevent.c, python/py-finishbreakpoint.c,
12845 python/py-framefilter.c, python/py-function.c,
12846 python/py-inferior.c, python/py-infevents.c,
12847 python/py-linetable.c, python/py-newobjfileevent.c,
12848 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
12849 python/py-signalevent.c, python/py-stopevent.c,
12850 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
12851 python/py-unwind.c, python/py-utils.c, python/py-value.c,
12852 python/py-varobj.c, python/py-xmethods.c, python/python.c,
12853 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
12854
d4b0bb18
TT
128552017-02-10 Tom Tromey <tom@tromey.com>
12856
12857 * ui-out.h (ui_out_emit_type): New class.
12858 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
12859 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
12860 and ui_out_emit_tuple.
12861 (enumerate_locals): Likewise.
12862 (py_mi_print_variables, py_print_locals, py_print_args): Use
12863 ui_out_emit_list.
12864 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
12865 ui_out_emit_list.
12866 * common/gdb_optional.h: New file.
12867
f67f945c
MG
128682017-02-10 Martin Galvan <martingalvan@sourceware.org>
12869
12870 * MAINTAINERS (Write After Approval): Update my e-mail address.
12871
18da0c51
MG
128722017-02-10 Martin Galvan <martingalvan@sourceware.org>
12873
12874 PR gdb/21122
12875 * breakpoint.c (_initialize_breakpoint): Update the help description
12876 of the 'commands' command to indicate that it takes a list argument.
12877
62c14536
SM
128782017-02-09 Simon Marchi <simon.marchi@ericsson.com>
12879
12880 * interps.c (current_interp_set_logging): Remove "return".
12881
ff6fa247
GB
128822017-02-09 Gary Benson <gbenson@redhat.com>
12883
12884 * symtab.c (add_symtab_completions): Prevent NULL pointer
12885 dereference.
12886
a474bd8e
PA
128872017-02-08 Pedro Alves <palves@redhat.com>
12888
12889 * interps.c (interp::interp): Remove reference to quiet_p.
12890 (interp_set): Make static. Remove dead "Switching to" output
12891 code.
12892 (interp_quiet_p, interp_set_quiet): Delete.
12893 (interpreter_exec_cmd): Don't set the interpreter quiet.
12894 * interps.h (interp_quiet_p): Make static.
12895 (class interp) <quiet_p>: Remove field
12896
3d7b173c
JG
128972017-02-08 Jerome Guitton <guitton@adacore.com>
12898
604c4576
JG
12899 * cli/cli-decode.c (find_command_name_length): Make it extern.
12900 * cli/cli-decode.h (find_command_name_length): Declare.
12901 * cli/cli-script.c (command_name_equals, line_first_arg):
12902 New functions.
12903 (process_next_line): Use cli-decode to parse command names.
12904 (build_command_line): Make args a constant pointer.
12905
129062017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 12907
3d7b173c
JG
12908 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
12909 Remove case-insensitive search.
12910
1291063d
JM
129112017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
12912
12913 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
12914 at the end of the line. Avoids an ARI warning.
12915
20b477a7
LM
129162017-02-06 Luis Machado <lgustavo@codesourcery.com>
12917
12918 * NEWS: Mention support for record/replay of Intel 64 rdrand and
12919 rdseed instructions.
12920 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
12921
3f7b46f2
IR
129222017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
12923
12924 PR tdep/20936
12925 Provide and use sparc32 and sparc64 target description XML files.
12926 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
12927 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
12928 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
12929 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
12930 * features/sparc/sparc32-solaris.xml: New file.
12931 * features/sparc/sparc64-solaris.xml: New file.
12932 * features/sparc/sparc32-solaris.c: Generated.
12933 * features/sparc/sparc64-solaris.c: Generated.
12934 * sparc-tdep.h: Account for differences in target descriptions.
12935 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
12936 (sparc32_register_type): Use target provided registers.
12937 (validate_tdesc_registers): New function.
12938 (sparc32_gdbarch_init): Use tdesc_has_registers.
12939 Set pseudoregister functions.
12940 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
12941 (sparc64_register_type): Use target provided registers.
12942 (sparc64_init_abi): Set pseudoregister functions.
12943
f0fd41c1
TT
129442017-02-03 Tom Tromey <tom@tromey.com>
12945
12946 PR rust/21097:
12947 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
12948 with a single member.
12949
d6f9b0fb
PA
129502017-02-03 Pedro Alves <palves@redhat.com>
12951
12952 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
12953 (cli_interp_base::~cli_interp_base): New.
12954 (cli_interp): New struct.
12955 (as_cli_interp): Cast the interp itself to cli_interp.
12956 (cli_interpreter_pre_command_loop): Rename to ...
12957 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
12958 parameter.
12959 (cli_interpreter_init): Rename to ...
12960 (cli_interp::init): ... this. Remove 'self' parameter. Use
12961 boolean. Make extern.
12962 (cli_interpreter_resume): Rename to ...
12963 (cli_interp::resume): ... this. Remove 'data' parameter. Make
12964 extern.
12965 (cli_interpreter_suspend): Rename to ...
12966 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
12967 extern.
12968 (cli_interpreter_exec): Rename to ...
12969 (cli_interp::exec): ... this. Remove 'data' parameter. Make
12970 extern.
12971 (cli_interpreter_supports_command_editing): Rename to ...
12972 (cli_interp_base::supports_command_editing): ... this. Remove
12973 'interp' parameter. Make extern.
12974 (cli_ui_out): Rename to ...
12975 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
12976 Make extern.
12977 (cli_set_logging): Rename to ...
12978 (cli_interp_base::set_logging): ... this. Remove 'interp'
12979 parameter. Make extern.
12980 (cli_interp_procs): Delete.
12981 (cli_interp_factory): Adjust to use "new".
12982 * cli/cli-interp.h: Include "interps.h".
12983 (struct cli_interp_base): New struct.
12984 * interps.c (struct interp): Delete. Fields moved to interps.h.
12985 (interp_new): Delete.
12986 (interp::interp, interp::~interp): New.
12987 (interp_set): Use bool, and return void. Assume the interpreter
12988 has suspend, init and resume methods, and that the all return
12989 void.
12990 (set_top_level_interpreter): interp_set returns void.
12991 (interp_ui_out): Adapt.
12992 (current_interp_set_logging): Adapt.
12993 (interp_data): Delete.
12994 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
12995 (interp_exec): Adapt.
12996 (top_level_interpreter_data): Delete.
12997 * interps.h (interp_init_ftype, interp_resume_ftype)
12998 (interp_suspend_ftype, interp_exec_ftype)
12999 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
13000 (class interp): New.
13001 (interp_new): Delete.
13002 (interp_set): Now returns void. Use bool.
13003 (interp_data, top_level_interpreter_data): Delete.
13004 * mi/mi-common.h: Include interps.h.
13005 (class mi_interp): Inherit from interp. Define a ctor. Declare
13006 init, resume, suspect, exec, interp_ui_out, set_logging and
13007 pre_command_loop methods.
13008 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
13009 (mi_interpreter_init): Rename to ...
13010 (mi_interp::init): ... this. Remove the 'interp' parameter, use
13011 bool, return void and make extern. Adjust.
13012 (mi_interpreter_resume): ... Rename to ...
13013 (mi_interp::resume): ... this. Remove the 'data' parameter,
13014 return void and make extern. Adjust.
13015 (mi_interpreter_suspend): ... Rename to ...
13016 (mi_interp::suspend): ... this. Remove the 'data' parameter,
13017 return void and make extern. Adjust.
13018 (mi_interpreter_exec): ... Rename to ...
13019 (mi_interp::exec): ... this. Remove the 'data' parameter and make
13020 extern. Adjust.
13021 (mi_interpreter_pre_command_loop): ... Rename to ...
13022 (mi_interp::pre_command_loop): ... this. Remove the 'self'
13023 parameter and make extern.
13024 (mi_on_normal_stop_1): Adjust.
13025 (mi_ui_out): Rename to ...
13026 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
13027 parameter and make extern. Adjust.
13028 (mi_set_logging): Rename to ...
13029 (mi_interp::set_logging): ... this. Remove the 'interp'
13030 parameter and make extern. Adjust.
13031 (mi_interp_procs): Delete.
13032 (mi_interp_factory): Adjust to use 'new'.
13033 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
13034 (mi_print_exception, mi_execute_command, mi_load_progress):
13035 Adjust.
13036 * tui/tui-interp.c (tui_interp): New class.
13037 (as_tui_interp): Return a tui_interp pointer.
13038 (tui_on_normal_stop, tui_on_signal_received)
13039 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
13040 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
13041 to use interp::interp_ui_out.
13042 (tui_init): Rename to ...
13043 (tui_interp::init): ... this. Remove the 'self' parameter, use
13044 bool, return void and make extern. Adjust.
13045 (tui_resume): Rename to ...
13046 (tui_interp::resume): ... this. Remove the 'data' parameter,
13047 return void and make extern. Adjust.
13048 (tui_suspend): Rename to ...
13049 (tui_interp::suspend): ... this. Remove the 'data' parameter,
13050 return void and make extern. Adjust.
13051 (tui_ui_out): Rename to ...
13052 (tui_interp::interp_ui_out): ... this. Remove the 'self'
13053 parameter, and make extern. Adjust.
13054 (tui_exec): Rename to ...
13055 (tui_interp::exec): ... this. Remove the 'data' parameter and
13056 make extern.
13057 (tui_interp_procs): Delete.
13058 (tui_interp_factory): Use "new".
13059
65c40c95
TT
130602017-02-02 Tom Tromey <tom@tromey.com>
13061
13062 * rust-exp.y (ends_raw_string, space_then_number)
13063 (rust_identifier_start_p): Return bool.
13064 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
13065 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
13066 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
13067 (rust_chartype_p): Return bool.
13068 (val_print_struct, rust_print_struct_def, rust_print_type):
13069 Update.
13070 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
13071 Return bool.
13072
b50f188d
TT
130732017-02-02 Tom Tromey <tom@tromey.com>
13074
13075 * rust-lang.c: Reindent.
13076
03c85b11
TT
130772017-02-02 Tom Tromey <tom@tromey.com>
13078
13079 * rust-lang.h (rust_crate_for_block): Update.
13080 * rust-lang.c (rust_crate_for_block): Return std::string.
13081 (rust_get_disr_info): Use std:;string, not
13082 gdb::unique_xmalloc_ptr.
13083 * rust-exp.y (crate_name): Update.
13084
9b6da501
PA
130852017-02-02 Pedro Alves <palves@redhat.com>
13086
13087 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
13088 field out of gdb_disassembler_test and make it static.
13089
ec4cb20b
PA
130902017-02-02 Pedro Alves <palves@redhat.com>
13091
13092 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
13093 mi1_interp and mi_interp fields.
13094
5be5dbf0
PA
130952017-02-02 Pedro Alves <palves@redhat.com>
13096
616268b6
PA
13097 * cli/cli-interp.c (struct saved_output_files, saved_output):
13098 Moved from cli/cli-logging.c.
13099 (cli_set_logging): New function.
13100 (cli_interp_procs): Install cli_set_logging.
13101 * cli/cli-interp.h (make_logging_output, cli_set_logging):
13102 Declare.
13103 * cli/cli-logging.c (struct saved_output_files, saved_output):
13104 Moved to cli/cli-interp.c.
13105 (pop_output_files): Don't save outputs here.
13106 (make_logging_output): New function.
13107 (handle_redirections): Don't build tee nor save previous outputs
13108 here.
13109 * interps.c (current_interp_set_logging): Change prototype.
13110 Assume there's always a set_logging_proc method installed.
13111 * interps.h (interp_set_logging_ftype): Change prototype.
13112 (current_interp_set_logging): Change prototype and adjust comment.
13113 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
13114 use make_logging_output.
13115 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
131162017-02-02 Pedro Alves <palves@redhat.com>
13117
5be5dbf0
PA
13118 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
13119 from ...
13120 (set_logging_overwrite): ... here.
13121 (logging_no_redirect_file): Delete.
13122 (set_logging_redirect): Don't handle redirection on the fly.
13123 Instead warn that "logging off" / "logging on" is necessary.
13124 (pop_output_files): Delete references to logging_no_redirect_file.
13125 (show_logging_command): Always speak in terms of what will happen
13126 once logging is reenabled.
13127
c99cc448
PA
131282017-02-02 Pedro Alves <palves@redhat.com>
13129
13130 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
13131
8b172ce7
PA
131322017-02-02 Pedro Alves <palves@redhat.com>
13133
13134 * disasm.c (gdb_pretty_print_insn): Rename to ...
13135 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
13136 Remove gdbarch parameter. Adapt to clear the object's buffers
13137 instead of allocating new buffers, and to print using the object's
13138 gdb_disassembler instead of calling gdb_print_insn.
13139 (dump_insns): Use gdb_pretty_print_disassembler.
13140 * disasm.h (gdb_pretty_print_insn): Delete declaration.
13141 (gdb_pretty_print_disassembler): New class.
13142 * record-btrace.c (btrace_insn_history): Use
13143 gdb_pretty_print_disassembler.
13144
d7e74731
PA
131452017-02-02 Pedro Alves <palves@redhat.com>
13146
13147 * ada-lang.c (type_as_string): Use string_file.
13148 * ada-valprint.c (ada_print_floating): Use string_file.
13149 * ada-varobj.c (ada_varobj_scalar_image)
13150 (ada_varobj_get_value_image): Use string_file.
13151 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
13152 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
13153 * breakpoint.c (update_inserted_breakpoint_locations)
13154 (insert_breakpoint_locations, reattach_breakpoints)
13155 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
13156 (print_it_watchpoint): Use string_file.
13157 (save_breakpoints): Use stdio_file.
13158 * c-exp.y (oper): Use string_file.
13159 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
13160 tee_file.
13161 (pop_output_files): Use delete.
13162 (handle_redirections): Use stdio_file and tee_file.
13163 * cli/cli-setshow.c (do_show_command): Use string_file.
13164 * compile/compile-c-support.c (c_compute_program): Use
13165 string_file.
13166 * compile/compile-c-symbols.c (generate_vla_size): Take a
13167 'string_file &' instead of a 'ui_file *'.
13168 (generate_c_for_for_one_variable): Take a 'string_file &' instead
13169 of a 'ui_file *'. Use string_file.
13170 (generate_c_for_variable_locations): Take a 'string_file &'
13171 instead of a 'ui_file *'.
13172 * compile/compile-internal.h (generate_c_for_for_one_variable):
13173 Take a 'string_file &' instead of a 'ui_file *'.
13174 * compile/compile-loc2c.c (push, pushf, unary, binary)
13175 (print_label, pushf_register_address, pushf_register)
13176 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
13177 'ui_file *'. Adjust.
13178 * compile/compile.c (compile_to_object): Use string_file.
13179 * compile/compile.h (compile_dwarf_expr_to_c)
13180 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
13181 'ui_file *'.
13182 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
13183 (replace_typedefs_qualified_name): Use string_file and
13184 obstack_copy0.
13185 * disasm.c (gdb_pretty_print_insn): Use string_file.
13186 (gdb_disassembly): Adjust reference the null_stream global.
13187 (do_ui_file_delete): Delete.
13188 (gdb_insn_length): Use null_stream.
13189 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
13190 * dwarf2loc.c (dwarf2_compile_property_to_c)
13191 (locexpr_generate_c_location, loclist_generate_c_location): Take a
13192 'string_file &' instead of a 'ui_file *'.
13193 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
13194 * dwarf2read.c (do_ui_file_peek_last): Delete.
13195 (dwarf2_compute_name): Use string_file.
13196 * event-top.c (gdb_setup_readline): Use stdio_file.
13197 * gdbarch.sh (verify_gdbarch): Use string_file.
13198 * gdbtypes.c (safe_parse_type): Use null_stream.
13199 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
13200 string_file.
13201 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
13202 'string_file *' instead of a 'ui_file *'.
13203 (gdbscm_arch_disassemble): Use string_file.
13204 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
13205 * guile/scm-ports.c (class ioscm_file_port): Now a class that
13206 inherits from ui_file.
13207 (ioscm_file_port_delete, ioscm_file_port_rewind)
13208 (ioscm_file_port_put): Delete.
13209 (ioscm_file_port_write): Rename to ...
13210 (ioscm_file_port::write): ... this. Remove file_port_magic
13211 checks.
13212 (ioscm_file_port_new): Delete.
13213 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
13214 ui_file_up.
13215 * guile/scm-type.c (tyscm_type_name): Use string_file.
13216 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
13217 Use string_file.
13218 * infcmd.c (print_return_value_1): Use string_file.
13219 * infrun.c (print_target_wait_results): Use string_file.
13220 * language.c (add_language): Use string_file.
13221 * location.c (explicit_to_string_internal): Use string_file.
13222 * main.c (captured_main_1): Use null_file.
13223 * maint.c (maintenance_print_architecture): Use stdio_file.
13224 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
13225 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
13226 event_channel>: Change type to mi_console_file pointer.
13227 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
13228 (mi_console_file_delete): Delete.
13229 (struct mi_console_file): Delete.
13230 (mi_console_file_magic): Delete.
13231 (mi_console_file_new): Delete.
13232 (mi_console_file::mi_console_file): New.
13233 (mi_console_file_delete): Delete.
13234 (mi_console_file_fputs): Delete.
13235 (mi_console_file::write): New.
13236 (mi_console_raw_packet): Delete.
13237 (mi_console_file::flush): New.
13238 (mi_console_file_flush): Delete.
13239 (mi_console_set_raw): Rename to ...
13240 (mi_console_file::set_raw): ... this.
13241 * mi/mi-console.h (class mi_console_file): New class.
13242 (mi_console_file_new, mi_console_set_raw): Delete.
13243 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
13244 (mi_set_logging): Use delete and tee_file. Adjust.
13245 * mi/mi-main.c (output_register): Use string_file.
13246 (mi_cmd_data_evaluate_expression): Use string_file.
13247 (mi_cmd_data_read_memory): Use string_file.
13248 (mi_cmd_execute, print_variable_or_computed): Use string_file.
13249 * mi/mi-out.c (mi_ui_out::main_stream): New.
13250 (mi_ui_out::rewind): Use main_stream and
13251 string_file.
13252 (mi_ui_out::put): Use main_stream and string_file.
13253 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
13254 Allocate a 'string_file' instead.
13255 (mi_out_new): Don't allocate a mem_fileopen stream here.
13256 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
13257 (mi_ui_out::main_stream): Declare method.
13258 * printcmd.c (eval_command): Use string_file.
13259 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
13260 * python/py-arch.c (archpy_disassemble): Use string_file.
13261 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
13262 * python/py-frame.c (frapy_str): Use string_file.
13263 * python/py-framefilter.c (py_print_type, py_print_single_arg):
13264 Use string_file.
13265 * python/py-type.c (typy_str): Use string_file.
13266 * python/py-unwind.c (unwind_infopy_str): Use string_file.
13267 * python/py-value.c (valpy_str): Use string_file.
13268 * record-btrace.c (btrace_insn_history): Use string_file.
13269 * regcache.c (regcache_print): Use stdio_file.
13270 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
13271 * remote.c (escape_buffer): Use string_file.
13272 * rust-lang.c (rust_get_disr_info): Use string_file.
13273 * serial.c (serial_open_ops_1): Use stdio_file.
13274 (do_serial_close): Use delete.
13275 * stack.c (print_frame_arg): Use string_file.
13276 (print_frame_args): Remove local mem_fileopen stream, not used.
13277 (print_frame): Use string_file.
13278 * symmisc.c (maintenance_print_symbols): Use stdio_file.
13279 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
13280 Take a 'string_file *' instead of a 'ui_file *'.
13281 * top.c (new_ui): Use stdio_file and stderr_file.
13282 (free_ui): Use delete.
13283 (execute_command_to_string): Use string_file.
13284 (quit_confirm): Use string_file.
13285 * tracepoint.c (collection_list::append_exp): Use string_file.
13286 * tui/tui-disasm.c (tui_disassemble): Use string_file.
13287 * tui/tui-file.c: Don't include "ui-file.h".
13288 (enum streamtype, struct tui_stream): Delete.
13289 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
13290 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
13291 (tui_file::tui_file): New method.
13292 (tui_file_fputs): Delete.
13293 (tui_file_get_strbuf): Delete.
13294 (tui_file::puts): New method.
13295 (tui_file_adjust_strbuf): Delete.
13296 (tui_file_flush): Delete.
13297 (tui_file::flush): New method.
13298 * tui/tui-file.h: Tweak intro comment.
13299 Include ui-file.h.
13300 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
13301 (tui_file_adjust_strbuf): Delete declarations.
13302 (class tui_file): New class.
13303 * tui/tui-io.c (tui_initialize_io): Use tui_file.
13304 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
13305 (tui_register_format): Use string_stream.
13306 * tui/tui-stack.c (tui_make_status_line): Use string_file.
13307 (tui_get_function_from_frame): Use string_file.
13308 * typeprint.c (type_to_string): Use string_file.
13309 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
13310 (null_stream): New global.
13311 (ui_file_delete): Delete.
13312 (ui_file::ui_file): New.
13313 (null_file_isatty): Delete.
13314 (ui_file::~ui_file): New.
13315 (null_file_rewind): Delete.
13316 (ui_file::printf): New.
13317 (null_file_put): Delete.
13318 (null_file_flush): Delete.
13319 (ui_file::putstr): New.
13320 (null_file_write): Delete.
13321 (ui_file::putstrn): New.
13322 (null_file_read): Delete.
13323 (ui_file::putc): New.
13324 (null_file_fputs): Delete.
13325 (null_file_write_async_safe): Delete.
13326 (ui_file::vprintf): New.
13327 (null_file_delete): Delete.
13328 (null_file::write): New.
13329 (null_file_fseek): Delete.
13330 (null_file::puts): New.
13331 (ui_file_data): Delete.
13332 (null_file::write_async_safe): New.
13333 (gdb_flush, ui_file_isatty): Adjust.
13334 (ui_file_put, ui_file_rewind): Delete.
13335 (ui_file_write): Adjust.
13336 (ui_file_write_for_put): Delete.
13337 (ui_file_write_async_safe, ui_file_read): Adjust.
13338 (ui_file_fseek): Delete.
13339 (fputs_unfiltered): Adjust.
13340 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
13341 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
13342 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
13343 (set_ui_file_data): Delete.
13344 (string_file::~string_file, string_file::write)
13345 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
13346 (do_ui_file_as_string, ui_file_as_string): Delete.
13347 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
13348 (struct mem_file): Delete.
13349 (mem_file_new): Delete.
13350 (stdio_file::stdio_file): New.
13351 (mem_file_delete): Delete.
13352 (stdio_file::stdio_file): New.
13353 (mem_fileopen): Delete.
13354 (stdio_file::~stdio_file): New.
13355 (mem_file_rewind): Delete.
13356 (stdio_file::set_stream): New.
13357 (mem_file_put): Delete.
13358 (stdio_file::open): New.
13359 (mem_file_write): Delete.
13360 (stdio_file_magic, struct stdio_file): Delete.
13361 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
13362 (stdio_file::flush): New.
13363 (stdio_file_read): Rename to ...
13364 (stdio_file::read): ... this. Adjust.
13365 (stdio_file_write): Rename to ...
13366 (stdio_file::write): ... this. Adjust.
13367 (stdio_file_write_async_safe): Rename to ...
13368 (stdio_file::write_async_safe) ... this. Adjust.
13369 (stdio_file_fputs): Rename to ...
13370 (stdio_file::puts) ... this. Adjust.
13371 (stdio_file_isatty): Delete.
13372 (stdio_file_fseek): Delete.
13373 (stdio_file::isatty): New.
13374 (stderr_file_write): Rename to ...
13375 (stderr_file::write) ... this. Adjust.
13376 (stderr_file_fputs): Rename to ...
13377 (stderr_file::puts) ... this. Adjust.
13378 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
13379 (stderr_file::stderr_file): New.
13380 (tee_file_magic): Delete.
13381 (struct tee_file): Delete.
13382 (tee_file::tee_file): New.
13383 (tee_file_new): Delete.
13384 (tee_file::~tee_file): New.
13385 (tee_file_delete): Delete.
13386 (tee_file_flush): Rename to ...
13387 (tee_file::flush): ... this. Adjust.
13388 (tee_file_write): Rename to ...
13389 (tee_file::write): ... this. Adjust.
13390 (tee_file::write_async_safe): New.
13391 (tee_file_fputs): Rename to ...
13392 (tee_file::puts): ... this. Adjust.
13393 (tee_file_isatty): Rename to ...
13394 (tee_file::isatty): ... this. Adjust.
13395 * ui-file.h (struct obstack, struct ui_file): Don't
13396 forward-declare.
13397 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
13398 (ui_file_write_ftype)
13399 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
13400 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
13401 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
13402 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
13403 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
13404 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
13405 (set_ui_file_fseek): Delete.
13406 (ui_file_data, ui_file_delete, ui_file_rewind)
13407 (struct ui_file): New.
13408 (ui_file_up): New.
13409 (class null_file): New.
13410 (null_stream): Declare.
13411 (ui_file_write_for_put, ui_file_put): Delete.
13412 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
13413 Delete.
13414 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
13415 (gdb_fopen, tee_file_new): Delete.
13416 (struct string_file): New.
13417 (struct stdio_file): New.
13418 (stdio_file_up): New.
13419 (struct stderr_file): New.
13420 (class tee_file): New.
13421 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
13422 of a 'ui_file *'. Adjust.
13423 * ui-out.h (class ui_out) <field_stream>: Likewise.
13424 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
13425 (null_stream): Delete.
13426 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
13427 Adjust.
13428 * utils.h (struct ui_file): Delete forward declaration..
13429 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
13430 (error_stream): Take a 'string_file &' instead of a
13431 'ui_file *'.
13432 * varobj.c (varobj_value_get_print_value): Use string_file.
13433 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
13434 * gdbarch.c: Regenerate.
13435
187808b0
PA
134362017-02-02 Pedro Alves <palves@redhat.com>
13437
13438 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
13439 (gdb_pretty_print_insn): ... this. Now a free function. Add back
13440 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
13441 Adjust to call gdb_print_insn instead of
13442 gdb_disassembler::print_insn.
13443 (dump_insns, do_mixed_source_and_assembly_deprecated)
13444 (do_mixed_source_and_assembly, do_assembly_only): Add back a
13445 'gdbarch' parameter. Remove gdb_disassembler parameter.
13446 (gdb_disassembly): Don't allocate a gdb_disassembler here.
13447 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
13448 declaration.
13449 (gdb_pretty_print_insn): Re-add declaration.
13450 * record-btrace.c (btrace_insn_history): Don't allocate a
13451 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
13452
7a8eb317
SM
134532017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
13454
13455 * disasm.h (gdb_disassembly): Remove file_string parameter.
13456 * disasm.c (gdb_disassembly): Likewise.
13457 * cli/cli-cmds.c (print_disassembly): Adapt.
13458 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
13459 * stack.c (do_gdb_disassembly): Likewise.
13460
7346ef59
AA
134612017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
13462
13463 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
13464 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
13465 targets. And if the implicit value is longer than needed, extract
13466 the first bytes instead of the "least significant" ones.
13467
cd4007e4
MM
134682017-02-01 Markus Metzger <markus.t.metzger@intel.com>
13469
13470 * btrace.c (btrace_enable): Do not call btrace_add_pc for
13471 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
13472 (btrace_fetch): Assert can_access_registers_ptid.
13473 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
13474 validate_registers_access.
13475
cf77c34e
MM
134762017-02-01 Markus Metzger <markus.t.metzger@intel.com>
13477
13478 * gdbthread.h (can_access_registers_ptid): New.
13479 * thread.c (can_access_registers_ptid): New.
13480
be85ce7d
PA
134812017-02-01 Pedro Alves <palves@redhat.com>
13482
13483 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
13484
29b0b251
PA
134852017-01-31 Pedro Alves <palves@redhat.com>
13486
13487 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
13488 Fix typos.
13489
289b5b24
PA
134902017-01-31 Pedro Alves <palves@redhat.com>
13491
13492 * stack.c (print_frame_args): Remove local mem_fileopen stream,
13493 not used.
13494
b47413b4
PA
134952017-01-31 Pedro Alves <palves@redhat.com>
13496
13497 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
13498
60adb36c
PA
134992017-01-31 Pedro Alves <palves@redhat.com>
13500
13501 * common/scoped_restore.h
13502 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
13503 change the value's parameter type to T2.
13504 (make_scoped_restore): Likewise.
13505
2735833d
WT
135062017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13507 Richard Henderson <rth@redhat.com>
13508
13509 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
13510 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
13511 GS_BASE for older kernels.
13512 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
13513 GS_BASE for older kernels.
13514 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
13515 and GS_BASE to the offset table.
13516 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
13517 system register group.
13518 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
13519 for older kernels.
13520 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
13521 amd64 ABI.
13522 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
13523 AMD64_GSBASE_REGNUM.
13524 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
13525 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
13526 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
13527 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
13528 i386/64bit-segments.xml in those rules.
13529 * features/i386/64bit-segments.xml: New file.
13530 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
13531 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
13532 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
13533 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
13534 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
13535 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
13536 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
13537 * features/i386/amd64-avx-linux.c: Regenerated.
13538 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
13539 * features/i386/amd64-avx-mpx.c: Regenerated.
13540 * features/i386/amd64-avx512-linux.c: Regenerated.
13541 * features/i386/amd64-linux.c: Regenerated.
13542 * features/i386/amd64-mpx-linux.c: Regenerated.
13543 * features/i386/i386-avx-mpx-linux.c: Regenerated.
13544 * features/i386/i386-avx-mpx.c: Regenerated.
13545 * features/i386/x32-avx-linux.c: Regenerated.
13546 * features/i386/x32-avx512-linux.c: Regenerated.
13547 * regformats/i386/amd64-avx-linux.dat: Regenerated.
13548 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
13549 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
13550 * regformats/i386/amd64-linux.dat: Regenerated.
13551 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
13552 * regformats/i386/x32-avx-linux.dat: Regenerated.
13553 * regformats/i386/x32-avx512-linux.dat: Regenerated.
13554 * regformats/i386/x32-linux.dat: Regenerated.
13555
8884e97e
WT
135562017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13557
13558 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
13559 Set to AMD64_NUM_REGS.
13560
7005d26a
WT
135612017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13562
13563 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
13564 that checks validity of a register number.
13565
4bd2e1b2
KC
135662017-01-27 Kees Cook <keescook@google.com>
13567
13568 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
13569 fetch_fpregs if target has fpa registers.
13570 (arm_linux_store_inferior_registers): Call store_fpregs if target
13571 has fpa registers.
13572
7cf1de6c
AA
135732017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
13574
13575 * cris-tdep.c (cris_gdbarch_init): Remove check for
13576 info.byte_order and force it to BFD_ENDIAN_LITTLE.
13577
874a1c8c
AT
135782017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
13579
13580 * corelow.c (get_core_register_section): Check for regset
13581 existence before checking for REGSET_VARIABLE_SIZE.
13582
d8b49cf0
YQ
135832017-01-26 Yao Qi <yao.qi@linaro.org>
13584 Pedro Alves <palves@redhat.com>
13585
13586 PR gdb/20939
13587 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
13588 call memory_error, save memaddr instead.
13589 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
13590 negative, cal memory_error.
13591 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
13592
658ca58c
YQ
135932017-01-26 Yao Qi <yao.qi@linaro.org>
13594
13595 * disasm-selftests.c (memory_error_test): New function.
13596 (_initialize_disasm_selftests): Register memory_error_test.
13597
79843d45
YQ
135982017-01-26 Yao Qi <yao.qi@linaro.org>
13599
13600 * Makefile.in (SFILES): Add disasm-selftests.c and
13601 selftest-arch.c.
13602 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
13603 * disasm-selftests.c: New file.
13604 * selftest-arch.c: New file.
13605 * selftest-arch.h: New file.
13606
8cafda32
YQ
136072017-01-26 Yao Qi <yao.qi@linaro.org>
13608
13609 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
13610 to bfd_arch_mep. Don't return 0 if section is not
13611 found. Call print_insn_mep.
13612
e47ad6c0
YQ
136132017-01-26 Pedro Alves <palves@redhat.com>
13614 Yao Qi <yao.qi@linaro.org>
13615
13616 * arm-tdep.c: Include "disasm.h".
13617 (gdb_print_insn_arm): Update code to get gdbarch.
13618 * disasm.c (dis_asm_read_memory): Change it to
13619 gdb_disassembler::dis_asm_read_memory.
13620 (dis_asm_memory_error): Likewise.
13621 (dis_asm_print_address): Likewise.
13622 (gdb_pretty_print_insn): Change it to
13623 gdb_disassembler::pretty_print_insn.
13624 (dump_insns): Add one argument gdb_disassemlber. All
13625 callers updated.
13626 (do_mixed_source_and_assembly_deprecated): Likewise.
13627 (do_mixed_source_and_assembly): Likewise.
13628 (do_assembly_only): Likewise.
13629 (gdb_disassembler::gdb_disassembler): New.
13630 (gdb_disassembler::print_insn): New.
13631 * disasm.h (class gdb_disassembler): New.
13632 (gdb_pretty_print_insn): Remove declaration.
13633 (gdb_disassemble_info): Likewise.
13634 * guile/scm-disasm.c (class gdbscm_disassembler): New.
13635 (gdbscm_disasm_read_memory_worker): Update.
13636 (gdbscm_disasm_read_memory): Update.
13637 (gdbscm_disasm_memory_error): Remove.
13638 (gdbscm_disasm_print_address): Remove.
13639 (gdbscm_disassembler::gdbscm_disassembler): New.
13640 (gdbscm_print_insn_from_port): Update.
13641 * mips-tdep.c: Include disasm.h.
13642 (gdb_print_insn_mips): Update code to get gdbarch.
13643 * record-btrace.c (btrace_insn_history): Update.
13644 * spu-tdep.c: Include disasm.h.
13645 (struct spu_dis_asm_data): Remove.
13646 (struct spu_dis_asm_info): New.
13647 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
13648 SPU id.
13649 (gdb_print_insn_spu): Cast disassemble_info to
13650 spu_dis_asm_info.
13651
80d75874
YQ
136522017-01-26 Yao Qi <yao.qi@linaro.org>
13653
13654 * disasm.c (do_ui_file_delete): Delete.
13655 (gdb_insn_length): Move code creating stream to ...
13656 * utils.c (null_stream): ... here. New function.
13657 * utils.h (null_stream): Declare.
13658
60685cd0
SM
136592017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13660
13661 * python/py-inferior.c (find_thread_object): Return directly
13662 from the loop. Remove "found" variable.
13663
eb1cdb62
JB
136642017-01-21 Joel Brobecker <brobecker@adacore.com>
13665
13666 GDB 7.12.1 released.
13667
b1ce6568
SM
136682017-01-20 Simon Marchi <simon.marchi@ericsson.com>
13669
13670 * python/py-function.c (fnpy_call): Reorder declarations to have
13671 the gdbpy_enter object declared first.
13672 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
13673
6f8b0407
SM
136742017-01-20 Simon Marchi <simon.marchi@ericsson.com>
13675
fec93fb1 13676 PR python/21068
6f8b0407
SM
13677 * python/python-internal.h (PyMem_RawMalloc): Define for
13678 Python < 3.4.
13679 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
13680 PyMem_RawMalloc instead of PyMem_Malloc.
13681
78cbbba8
LM
136822017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
13683 Luis Machado <lgustavo@codesourcery.com>
13684
13685 * NEWS (New commands): Mention flash-erase.
13686 (New MI commands): Mention target-flash-erase.
13687 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
13688 command.
13689 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
13690 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
13691 * target.c (flash_erase_command): New function.
13692 (initialize_targets): Add new flash-erase command.
13693 * target.h (flash_erase_command): New declaration.
13694
2132fe85
JB
136952017-01-20 Joel Brobecker <brobecker@adacore.com>
13696
13697 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
13698 HAVE_SYS_PROCFS_H is defined.
13699
d1dff226
AH
137002017-01-18 Alan Hayward <alan.hayward@arm.com>
13701
13702 * remote.c (struct cached_reg): Change data into a pointer.
13703 * (stop_reply_dtr): Free data pointers before deleting vector.
13704 (process_stop_reply): Likewise.
13705 (remote_parse_stop_reply): Allocate space for data
13706
9890e433
AH
137072017-01-18 Alan Hayward <alan.hayward@arm.com>
13708
13709 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
13710 MAX_REGISTER_SIZE.
13711 (amd64_pseudo_register_read_value): Likewise.
13712 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
13713 (store_register_using_P): Likewise.
13714 * regcache.c (regcache_xfer_part): Likewise.
13715
7a36499a
IR
137162017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
13717
13718 Split real and pseudo registers.
13719 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
13720 (sparc32_pseudo_regnum): New enum.
13721 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
13722 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
13723 (SPARC32_CP0_REGISTERS): New macro.
13724 (sparc32_pseudo_register_name): New function.
13725 (sparc32_register_name): Use sparc32_pseudo_register_name.
13726 (sparc32_pseudo_register_type): New function.
13727 (sparc32_register_type): Use sparc32_pseudo_register_type.
13728 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
13729 pseudo register numbers.
13730 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
13731 (SPARC64_CP0_REGISTERS): New macro.
13732 (sparc64_pseudo_register_name): New function.
13733 (sparc64_register_name): Use sparc64_pseudo_register_name.
13734 (sparc64_pseudo_register_type): New function.
13735 (sparc64_register_type): Use sparc64_pseudo_register_type.
13736 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
13737 pseudo register numbers.
13738 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
13739 sparc64_store_arguments): Handle pseudo register numbers.
13740
6f8976bf
YQ
137412017-01-13 Yao Qi <yao.qi@linaro.org>
13742
13743 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
13744 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
13745 output.
13746 (getpkt_or_notif_sane_1): Likewise.
13747
e4241ace
YQ
137482017-01-13 Yao Qi <yao.qi@linaro.org>
13749
13750 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
13751 of CC. Pass "-x c++-header" instead of "-x c".
13752
3015c064
SM
137532017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13754
13755 * remote.c (remote_can_async_p): Update comment.
13756
fde1b17d
SM
137572017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13758
13759 * linux-nat.c (linux_nat_can_async_p): Update comment.
13760
ca1ca08b
SM
137612017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13762
13763 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
13764
4ad2da73
SM
137652017-01-11 Simon Marchi <simon.marchi@ericsson.com>
13766
13767 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
13768
c8b23b3f
TT
137692017-01-10 Tom Tromey <tom@tromey.com>
13770
13771 * python/py-type.c (typy_legacy_template_argument): Update.
13772 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
13773 ~demangle_parse_info): Declare new members.
13774 (cp_demangled_name_to_comp): Return unique_ptr.
13775 (cp_demangled_name_parse_free)
13776 (make_cleanup_cp_demangled_name_parse_free)
13777 (cp_new_demangle_parse_info): Remove.
13778 * cp-support.c (do_demangled_name_parse_free_cleanup)
13779 (make_cleanup_cp_demangled_name_parse_free): Remove.
13780 (inspect_type, cp_canonicalize_string_full)
13781 (cp_canonicalize_string): Update.
13782 (mangled_name_to_comp): Change return type.
13783 (cp_class_name_from_physname, method_name_from_physname)
13784 (cp_func_name, cp_remove_params): Update.
13785 * cp-name-parser.y (demangle_parse_info): New constructor, from
13786 cp_new_demangle_parse_info.
13787 (~demangle_parse_info): New destructor, from
13788 cp_demangled_name_parse_free.
13789 (cp_merge_demangle_parse_infos): Update.
13790 (cp_demangled_name_to_comp): Change return type.
13791
1ac32117
TT
137922017-01-10 Tom Tromey <tom@tromey.com>
13793
13794 * top.c (prevent_dont_repeat): Change return type.
13795 * python/python.c (execute_gdb_command): Use std::string.
13796 Update.
13797 * guile/guile.c (gdbscm_execute_gdb_command): Update.
13798 * command.h (prevent_dont_repeat): Change return type.
13799 * breakpoint.c (bpstat_do_actions_1): Update.
13800
0cf08227
TT
138012017-01-10 Tom Tromey <tom@tromey.com>
13802
13803 * value.h (scoped_value_mark::~scoped_value_mark): Call
13804 free_to_mark.
13805 (scoped_value_mark::free_to_mark): New method.
13806 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
13807 scoped_value_mark.
13808
eb115069
TT
138092017-01-10 Tom Tromey <tom@tromey.com>
13810
13811 * python/py-value.c (valpy_dereference, valpy_referenced_value)
13812 (valpy_reference_value, valpy_const_value, valpy_get_address)
13813 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
13814 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
13815 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
13816 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
13817 scoped_value_mark.
13818 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
13819 * value.h (scoped_value_mark): New class.
13820
906768f9
TT
138212017-01-10 Tom Tromey <tom@tromey.com>
13822
13823 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
13824 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
13825 * psymtab.c (discard_psymtabs_upto): Remove.
13826 (make_cleanup_discard_psymtabs): Remove.
13827 (struct psymtab_state): Remove.
13828
bef155c3
TT
138292017-01-10 Tom Tromey <tom@tromey.com>
13830
13831 * record-full.c (record_full_save_cleanups): Remove.
13832 (record_full_save): Use gdb::unlinker.
13833 * gcore.c (do_bfd_delete_cleanup): Remove.
13834 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
13835 cleanups.
13836 * dwarf2read.c (unlink_if_set): Remove.
13837 (write_psymtabs_to_index): Use gdb::unlinker.
13838 * common/gdb_unlinker.h: New file.
13839
192b62ce
TT
138402017-01-10 Tom Tromey <tom@tromey.com>
13841
13842 * windows-tdep.c (windows_xfer_shared_library): Update.
13843 * windows-nat.c (windows_make_so): Update.
13844 * utils.h (make_cleanup_bfd_unref): Remove.
13845 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
13846 * symfile.h (symfile_bfd_open)
13847 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
13848 * symfile.c (read_symbols, symbol_file_add)
13849 (separate_debug_file_exists): Update.
13850 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
13851 (generic_load, reread_symbols): Update.
13852 * symfile-mem.c (symbol_file_add_from_memory): Update.
13853 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
13854 (spu_symbol_file_add_from_memory): Update.
13855 * solist.h (struct target_so_ops) <bfd_open>: Return
13856 gdb_bfd_ref_ptr.
13857 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
13858 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
13859 gdb_bfd_ref_ptr.
13860 (solib_map_sections, reload_shared_libraries_1): Update.
13861 * solib-svr4.c (enable_break): Update.
13862 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
13863 * solib-frv.c (enable_break2): Update.
13864 * solib-dsbt.c (enable_break): Update.
13865 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
13866 gdb_bfd_ref_ptr.
13867 (darwin_solib_get_all_image_info_addr_at_init): Update.
13868 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
13869 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
13870 * record-full.c (record_full_save): Update.
13871 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
13872 * procfs.c (insert_dbx_link_bpt_in_file): Update.
13873 * minidebug.c (find_separate_debug_file_in_section): Return
13874 gdb_bfd_ref_ptr.
13875 * machoread.c (macho_add_oso_symfile): Change abfd to
13876 gdb_bfd_ref_ptr.
13877 (macho_symfile_read_all_oso): Update.
13878 (macho_check_dsym): Return gdb_bfd_ref_ptr.
13879 (macho_symfile_read): Update.
13880 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
13881 (jit_bfd_try_read_symtab): Update.
13882 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
13883 (gdb_bfd_openw, gdb_bfd_openr_iovec)
13884 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
13885 gdb_bfd_ref_ptr.
13886 (gdb_bfd_ref_policy): New struct.
13887 (gdb_bfd_ref_ptr): New typedef.
13888 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
13889 (gdb_bfd_openw, gdb_bfd_openr_iovec)
13890 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
13891 gdb_bfd_ref_ptr.
13892 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
13893 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
13894 (gcore_command): Update.
13895 * exec.c (exec_file_attach): Update.
13896 * elfread.c (elf_symfile_read): Update.
13897 * dwarf2read.c (dwarf2_get_dwz_file): Update.
13898 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
13899 (open_and_init_dwo_file): Update.
13900 (open_dwp_file): Return gdb_bfd_ref_ptr.
13901 (open_and_init_dwp_file): Update.
13902 * corelow.c (core_open): Update.
13903 * compile/compile-object-load.c (compile_object_load): Update.
13904 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
13905 * coffread.c (coff_symfile_read): Update.
13906 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
13907 gdb_bfd_ref_ptr. Rename.
13908 (dump_bfd_file, restore_command): Update.
13909 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
13910 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
13911 (find_separate_debug_file_by_buildid): Update.
13912
50315b21
TT
139132017-01-10 Tom Tromey <tom@tromey.com>
13914
13915 * common/gdb_ref_ptr.h: New file.
13916 * python/py-ref.h (struct gdbpy_ref_policy): New.
13917 (gdbpy_ref): Now a typedef.
13918
fc4007c9
TT
139192017-01-10 Tom Tromey <tom@tromey.com>
13920
13921 * utils.h (make_cleanup_htab_delete): Don't declare.
13922 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
13923 Remove.
13924 * linespec.c (decode_compound_collector): Add constructor,
13925 destructor.
13926 (lookup_prefix_sym): Remove cleanup.
13927 (symtab_collector): Add constructor, destructor.
13928 (collect_symtabs_from_filename): Remove cleanup.
13929 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
13930 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
13931 Use htab_up.
13932 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
13933 * dwarf2read.c (dw2_expand_symtabs_matching)
13934 (dw2_map_symbol_filenames, dwarf_decode_macros)
13935 (write_psymtabs_to_index): Use htab_up.
13936 * dwarf2loc.c (func_verify_no_selftailcall)
13937 (call_site_find_chain_1, func_verify_no_selftailcall)
13938 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
13939 std::vector, gdb::unique_xmalloc_ptr.
13940 (call_sitep): Remove typedef.
13941 (dwarf2_locexpr_baton_eval): Remove unused variable.
13942
8dbcee67
TT
139432017-01-10 Tom Tromey <tom@tromey.com>
13944
13945 * python/python-internal.h (make_cleanup_py_decref)
13946 (make_cleanup_py_xdecref): Don't declare.
13947 * python/py-utils.c (py_decref, make_cleanup_py_decref)
13948 (py_xdecref, make_cleanup_py_xdecref): Remove.
13949
13df46cc
TT
139502017-01-10 Tom Tromey <tom@tromey.com>
13951
13952 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
13953 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
13954
06fc9bf7
TT
139552017-01-10 Tom Tromey <tom@tromey.com>
13956
13957 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
13958
830a4934
TT
139592017-01-10 Tom Tromey <tom@tromey.com>
13960
13961 * python/py-utils.c (unicode_to_encoded_string)
13962 (python_string_to_target_string)
13963 (python_string_to_target_python_string)
13964 (python_string_to_host_string, gdbpy_obj_to_string)
13965 (get_addr_from_python): Use gdbpy_ref.
13966
4586d543
TT
139672017-01-10 Tom Tromey <tom@tromey.com>
13968
13969 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
13970 gdbpy_ref.
13971
59876f8f
TT
139722017-01-10 Tom Tromey <tom@tromey.com>
13973
13974 * python/python.c (eval_python_command, gdbpy_decode_line)
13975 (gdbpy_run_events, gdbpy_start_type_printers)
13976 (gdbpy_apply_type_printers): Use gdbpy_ref.
13977
97d83487
TT
139782017-01-10 Tom Tromey <tom@tromey.com>
13979
13980 * python/py-param.c (get_doc_string, compute_enum_values): Use
13981 gdbpy_ref.
13982
9205649a
TT
139832017-01-10 Tom Tromey <tom@tromey.com>
13984
13985 * python/py-inferior.c (find_thread_object, build_inferior_list):
13986 Use gdbpy_ref.
13987
74c49d45
TT
139882017-01-10 Tom Tromey <tom@tromey.com>
13989
13990 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
13991
16361ffb
TT
139922017-01-10 Tom Tromey <tom@tromey.com>
13993
13994 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
13995 gdbpy_ref.
13996
905f2cca
TT
139972017-01-10 Tom Tromey <tom@tromey.com>
13998
13999 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
14000 extra incref.
14001 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
14002 Use gdbpy_ref.
14003
64081434
TT
140042017-01-10 Tom Tromey <tom@tromey.com>
14005
14006 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
14007 gdbpy_ref.
14008
59e9e831
TT
140092017-01-10 Tom Tromey <tom@tromey.com>
14010
14011 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
14012 decref results of PyArg_ParseTupleAndKeywords.
14013
9de10f6d
TT
140142017-01-10 Tom Tromey <tom@tromey.com>
14015
14016 * python/python.c (python_run_simple_file): Use
14017 unique_xmalloc_ptr, gdbpy_ref.
14018
2bd5759d
TT
140192017-01-10 Tom Tromey <tom@tromey.com>
14020
14021 * python/py-prettyprint.c (print_stack_unless_memory_error)
14022 (print_string_repr, print_children): Use gdbpy_ref.
14023 (dummy_python_frame): New class.
14024 (dummy_python_frame::dummy_python_frame): Rename from
14025 push_dummy_python_frame.
14026 (py_restore_tstate): Remove.
14027
3b4e0e01
TT
140282017-01-10 Tom Tromey <tom@tromey.com>
14029
14030 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
14031
17a22718
TT
140322017-01-10 Tom Tromey <tom@tromey.com>
14033
14034 * python/python.c (ensure_python_env, restore_python_env):
14035 Remove.
14036 * python/python-internal.h (ensure_python_env): Don't declare.
14037 * varobj.h (varobj_ensure_python_env): Don't declare.
14038 * varobj.c (varobj_ensure_python_env): Remove.
14039
68cdc557
TT
140402017-01-10 Tom Tromey <tom@tromey.com>
14041
14042 * varobj.c (varobj_value_get_print_value): Use
14043 gdbpy_enter_varobj.
14044
1eba6383
TT
140452017-01-10 Tom Tromey <tom@tromey.com>
14046
14047 * python/py-prettyprint.c (print_string_repr, print_children):
14048 Update.
14049 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
14050 of "encoding".
14051 * varobj.c (varobj_value_get_print_value): Update.
14052 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
14053
bde7b3e3
TT
140542017-01-10 Tom Tromey <tom@tromey.com>
14055
14056 * varobj.c (varobj_get_display_hint)
14057 (dynamic_varobj_has_child_method, install_new_value_visualizer)
14058 (varobj_set_visualizer, free_variable): Use
14059 gdbpy_enter_varobj.
14060
a7785f8c
TT
140612017-01-10 Tom Tromey <tom@tromey.com>
14062
14063 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
14064 (do_finish_initialization): New function. Use gdbpy_ref.
14065 (gdbpy_finish_initialization): Use gdbpy_enter. Call
14066 do_finish_initialization.
14067
2865bfce
TT
140682017-01-10 Tom Tromey <tom@tromey.com>
14069
14070 * python/py-param.c (get_set_value, get_show_value): Use
14071 gdbpy_enter, gdbpy_ref.
14072
0e9dcc75
TT
140732017-01-10 Tom Tromey <tom@tromey.com>
14074
14075 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
14076
12a5cedd
TT
140772017-01-10 Tom Tromey <tom@tromey.com>
14078
14079 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
14080
788f2586
TT
140812017-01-10 Tom Tromey <tom@tromey.com>
14082
14083 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
14084 Use gdbpy_enter_varobj.
14085
6cd67bea
TT
140862017-01-10 Tom Tromey <tom@tromey.com>
14087
14088 * varobj.c (gdbpy_enter_varobj): New constructor.
14089 * python/python-internal.h (gdbpy_enter_varobj): New class.
14090 * python/py-varobj.c (py_varobj_get_iterator): Use
14091 gdbpy_enter_varobj.
14092
14b122bf
TT
140932017-01-10 Tom Tromey <tom@tromey.com>
14094
14095 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
14096 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
14097 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
14098 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
14099 unique_xmalloc_ptr.
14100 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
14101
bf1ca3b9
TT
141022017-01-10 Tom Tromey <tom@tromey.com>
14103
14104 * python/py-xmethods.c (invoke_match_method): Use
14105 gdbpy_ref.
14106
572a5524
TT
141072017-01-10 Tom Tromey <tom@tromey.com>
14108
14109 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
14110 gdbpy_enter, gdbpy_ref.
14111
396a78b6
TT
141122017-01-10 Tom Tromey <tom@tromey.com>
14113
14114 * python/python.c (python_interactive_command): Use gdbpy_enter.
14115
a88b13c7
TT
141162017-01-10 Tom Tromey <tom@tromey.com>
14117
14118 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
14119 gdbpy_ref.
14120
e9f0c363
TT
141212017-01-10 Tom Tromey <tom@tromey.com>
14122
14123 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
14124 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
14125
6349f452
TT
141262017-01-10 Tom Tromey <tom@tromey.com>
14127
14128 * utils.h (htab_deleter): New struct.
14129 (htab_up): New typedef.
14130 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
14131 gdbpy_enter, gdbpy_ref, htab_up.
14132
c0171de6
TT
141332017-01-10 Tom Tromey <tom@tromey.com>
14134
14135 * python/py-unwind.c (pending_frame_invalidate): Remove.
14136 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
14137
f18e226f
TT
141382017-01-10 Tom Tromey <tom@tromey.com>
14139
14140 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
14141 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
14142
c57af3f1
TT
141432017-01-10 Tom Tromey <tom@tromey.com>
14144
14145 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
14146
60e600ec
TT
141472017-01-10 Tom Tromey <tom@tromey.com>
14148
14149 * python/python.c (gdbpy_eval_from_control_command)
14150 (gdbpy_source_script, gdbpy_run_events)
14151 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
14152 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
14153 gdbpy_enter.
14154
bf7da5b0
TT
141552017-01-10 Tom Tromey <tom@tromey.com>
14156
14157 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
14158
2d38bced
TT
141592017-01-10 Tom Tromey <tom@tromey.com>
14160
14161 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
14162
07bc7329
TT
141632017-01-10 Tom Tromey <tom@tromey.com>
14164
14165 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
14166 (python_on_inferior_call_pre, python_on_inferior_call_post)
14167 (python_on_memory_change, python_on_register_change)
14168 (python_inferior_exit, python_new_objfile, add_thread_object)
14169 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
14170
6e7c365e
TT
141712017-01-10 Tom Tromey <tom@tromey.com>
14172
14173 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
14174 (bpfinishpy_handle_exit): Use gdbpy_enter.
14175
6ba0cd40
TT
141762017-01-10 Tom Tromey <tom@tromey.com>
14177
14178 * python/py-cmd.c (cmdpy_destroyer)
14179 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
14180 gdbpy_enter.
14181
de2dc875
TT
141822017-01-10 Tom Tromey <tom@tromey.com>
14183
14184 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
14185 gdbpy_enter.
14186 (gdbpy_breakpoint_has_cond): Likewise.
14187
4ecee2c4
TT
141882017-01-10 Tom Tromey <tom@tromey.com>
14189
14190 * python/python.c (gdbpy_enter): New constructor.
14191 (~gdbpy_enter): New destructor.
14192 (restore_python_env, ensure_python_env): Rewrite.
14193 * python/python-internal.h (gdbpy_enter): New class.
14194
37fce74f
TT
141952017-01-10 Tom Tromey <tom@tromey.com>
14196
14197 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
14198
53a0cca3
TT
141992017-01-10 Tom Tromey <tom@tromey.com>
14200
14201 * python/py-value.c (value_has_field, get_field_flag)
14202 (get_field_type, valpy_getitem, convert_value_from_python): Use
14203 gdbpy_ref.
14204
ff3724f5
TT
142052017-01-10 Tom Tromey <tom@tromey.com>
14206
14207 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
14208 gdbpy_ref.
14209
0700aea5
TT
142102017-01-10 Tom Tromey <tom@tromey.com>
14211
14212 * python/py-prettyprint.c (search_pp_list)
14213 (find_pretty_printer_from_objfiles)
14214 (find_pretty_printer_from_progspace)
14215 (find_pretty_printer_from_gdb, find_pretty_printer)
14216 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
14217 gdbpy_ref.
14218
1bb44c9f
TT
142192017-01-10 Tom Tromey <tom@tromey.com>
14220
14221 * python/py-param.c (call_doc_function): Use gdbpy_ref.
14222
87ce03fd
TT
142232017-01-10 Tom Tromey <tom@tromey.com>
14224
14225 * python/py-linetable.c (build_line_table_tuple_from_pcs)
14226 (ltpy_get_all_source_lines): Use gdbpy_ref.
14227
ee0a3fb8
TT
142282017-01-10 Tom Tromey <tom@tromey.com>
14229
14230 * python/py-framefilter.c (extract_sym, extract_value)
14231 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
14232 gdbpy_ref.
14233
bf2a52fa
TT
142342017-01-10 Tom Tromey <tom@tromey.com>
14235
14236 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
14237
f59fe7f8
TT
142382017-01-10 Tom Tromey <tom@tromey.com>
14239
14240 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
14241
80bd970a
TT
142422017-01-10 Tom Tromey <tom@tromey.com>
14243
14244 * python/py-function.c (convert_values_to_python, fnpy_init): Use
14245 gdbpy_ref.
14246
d1b3de2e
TT
142472017-01-10 Tom Tromey <tom@tromey.com>
14248
14249 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
14250
3bb43384
TT
142512017-01-10 Tom Tromey <tom@tromey.com>
14252
14253 * python/py-type.c (convert_field, make_fielditem, typy_fields)
14254 (typy_range): Use gdbpy_ref.
14255
abf5651e
TT
142562017-01-10 Tom Tromey <tom@tromey.com>
14257
14258 * python/py-threadevent.c (create_thread_event_object): Use
14259 gdbpy_ref.
14260 * python/py-stopevent.c (create_stop_event_object): Simplify.
14261 (emit_stop_event): Use gdbpy_ref.
14262 * python/py-signalevent.c (create_signal_event_object): Use
14263 gdbpy_ref.
14264 * python/py-newobjfileevent.c (create_new_objfile_event_object)
14265 (emit_new_objfile_event, create_clear_objfiles_event_object)
14266 (emit_clear_objfiles_event): Use gdbpy_ref.
14267 * python/py-infevents.c (create_inferior_call_event_object)
14268 (create_register_changed_event_object)
14269 (create_memory_changed_event_object, emit_inferior_call_event)
14270 (emit_memory_changed_event, emit_register_changed_event): Use
14271 gdbpy_ref.
14272 * python/py-exitedevent.c (create_exited_event_object)
14273 (emit_exited_event): Use gdbpy_ref.
14274 * python/py-event.h (evpy_emit_event): Remove
14275 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
14276 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
14277 * python/py-continueevent.c (emit_continue_event): Use
14278 gdbpy_ref.
14279 * python/py-breakpoint.c (gdbpy_breakpoint_created)
14280 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
14281 gdbpy_ref.
14282 * python/py-bpevent.c (create_breakpoint_event_object): Use
14283 gdbpy_ref.
14284
a68ff33e
TT
142852017-01-10 Tom Tromey <tom@tromey.com>
14286
14287 * python/py-ref.h: New file.
14288
7becfd03
SM
142892017-01-10 Simon Marchi <simon.marchi@ericsson.com>
14290
14291 * cli-out.c (cli_ui_out::do_redirect): Change return type to
14292 void.
14293 * cli-out.h (cli_ui_out::do_redirect): Likewise.
14294 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
14295 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
14296 * ui-out.c (ui_out::redirect): Likewise.
14297 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
14298 * cli/cli-logging.c (set_logging_redirect): Update call site of
14299 ui_out::redirect.
14300 (handle_redirections): Likewise.
14301 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
14302 * top.c (execute_command_to_string): Likewise.
14303 * utils.c (do_ui_out_redirect_pop): Likewise.
14304
df294654
SM
143052017-01-10 Simon Marchi <simon.marchi@ericsson.com>
14306
14307 * stack.c (_initialize_stack): Update "frame" command help message.
14308
f5e6296e
IB
143092017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
14310
14311 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
14312
0e2d6fa6
YQ
143132017-01-06 Yao Qi <yao.qi@linaro.org>
14314
14315 * x86-linux-nat.h: Include gdb_proc_service.h.
14316
44d6d3f9
YQ
143172017-01-06 Yao Qi <yao.qi@linaro.org>
14318
14319 * ser-base.h: Include serial.h.
14320
656731fe
YQ
143212017-01-06 Yao Qi <yao.qi@linaro.org>
14322
14323 * ppc-linux-tdep.h: Include ppc-tdep.h.
14324
1ca8f924
YQ
143252017-01-06 Yao Qi <yao.qi@linaro.org>
14326
14327 * nat/amd64-linux-siginfo.h: Include signal.h.
14328
bc3008c4
YQ
143292017-01-06 Yao Qi <yao.qi@linaro.org>
14330
14331 * nat/aarch64-linux-hw-point.h: Include break-common.h.
14332
66c80d03
YQ
143332017-01-06 Yao Qi <yao.qi@linaro.org>
14334
14335 * mi/mi-parse.h: Include mi-cmds.h.
14336
051d2dda
YQ
143372017-01-06 Yao Qi <yao.qi@linaro.org>
14338
14339 * inf-loop.c: Don't include "target.h".
14340 * inf-loop.h: Include it here.
14341
8018d34f
YQ
143422017-01-06 Yao Qi <yao.qi@linaro.org>
14343
14344 * dfp.h: Include "dboulest.h" and "expression.h".
14345
c0b8369c
YQ
143462017-01-06 Yao Qi <yao.qi@linaro.org>
14347
14348 * ax-gdb.h: Include "ax.h".
14349
ad5cba2a
YQ
143502017-01-06 Yao Qi <yao.qi@linaro.org>
14351
14352 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
14353 with nat/gdb_ptrace.h.
14354
1c33cd7f
YQ
143552017-01-05 Yao Qi <yao.qi@linaro.org>
14356
14357 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
14358 new line.
14359 (mips64_fbsd_sigframe_init): Likewise.
14360
c988ac1d
JB
143612017-01-04 John Baldwin <jhb@FreeBSD.org>
14362
14363 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
14364 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
14365
b268007c
JB
143662017-01-04 John Baldwin <jhb@FreeBSD.org>
14367
14368 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
14369 * NEWS: Mention new FreeBSD/mips native configuration.
14370 * config/mips/fbsd.mh: New file.
14371 * configure.host: Add mips*-*-freebsd*.
14372 * mips-fbsd-nat.c: New file.
14373
387360da
JB
143742017-01-04 John Baldwin <jhb@FreeBSD.org>
14375
14376 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
14377 (ALLDEPFILES): Add mips-fbsd-tdep.c.
14378 * NEWS: Mention new FreeBSD/mips target.
14379 * configure.tgt: Add mips*-*-freebsd*.
14380 * mips-fbsd-tdep.c: New file.
14381 * mips-fbsd-tdep.h: New file.
14382
2aaaf250
YQ
143832017-01-04 Yao Qi <yao.qi@linaro.org>
14384
14385 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
14386 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
14387
61baf725
JB
143882017-01-01 Joel Brobecker <brobecker@adacore.com>
14389
6dbb839a 14390 Update copyright year range in all GDB files.
61baf725 14391
c113e7ff 143922017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 14393
c113e7ff 14394 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 14395
c113e7ff 14396For older changes see ChangeLog-2016.
c906108c
SS
14397\f
14398Local Variables:
14399mode: change-log
14400left-margin: 8
14401fill-column: 74
14402version-control: never
57da7796 14403coding: utf-8
c906108c 14404End:
This page took 2.688443 seconds and 4 git commands to generate.