]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Use std::vector in h8300-tdep.c
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ab4b1c46
TT
12017-11-04 Tom Tromey <tom@tromey.com>
2
3 * h8300-tdep.c (h8300_push_dummy_call): Use std::vector.
4
454dafbd
TT
52017-11-04 Tom Tromey <tom@tromey.com>
6
7 * breakpoint.c (set_momentary_breakpoint): Return
8 breakpoint_up.
9 (until_break_command): Update.
10 (new_until_break_fsm): Change argument types to
11 breakpoint_up.
12 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
13 (do_delete_breakpoint_cleanup, make_cleanup_delete_breakpoint):
14 Remove.
15 * infcmd.c (finish_forward): Update.
16 * breakpoint.h (set_momentary_breakpoint)
17 (set_momentary_breakpoint_at_pc): Return breakpoint_up.
18 (make_cleanup_delete_breakpoint): Remove.
19 (struct breakpoint_deleter): New.
20 (breakpoint_up): New typedef.
21 * infrun.c (insert_step_resume_breakpoint_at_sal_1): Update.
22 (insert_exception_resume_breakpoint): Update.
23 (insert_exception_resume_from_probe): Update.
24 (insert_longjmp_resume_breakpoint): Update.
25 * arm-linux-tdep.c (arm_linux_copy_svc): Update.
26 * elfread.c (elf_gnu_ifunc_resolver_stop): Update.
27 * infcall.c (call_function_by_hand_dummy): Update
28
331b71e5
TT
292017-11-04 Tom Tromey <tom@tromey.com>
30
31 * c-typeprint.c (c_type_print_base): Use gdb::unique_xmalloc_ptr.
32
9f584b37
TT
332017-11-04 Tom Tromey <tom@tromey.com>
34
35 * linux-tdep.c (linux_core_info_proc_mappings): Use
36 gdb::def_vector.
37 (linux_get_siginfo_data): Return gdb::byte_vector. Remove
38 "size" argument.
39 (linux_corefile_thread): Update.
40 (linux_make_corefile_notes): Remove unused variable.
41
779bc38e
TT
422017-11-04 Tom Tromey <tom@tromey.com>
43
44 * ppc-linux-tdep.c (ppc_linux_get_syscall_number): Use
45 gdb::byte_vector.
46
ed2b3126
TT
472017-11-04 Tom Tromey <tom@tromey.com>
48
49 * objfiles.c (do_free_objfile_cleanup): Remove.
50 * compile/compile-object-load.c (compile_object_load): Update.
51 * objfiles.h (make_cleanup_free_objfile): Remove.
52
7f6743fd
TT
532017-11-04 Tom Tromey <tom@tromey.com>
54
55 * sparc64-tdep.c (do_examine): Use gdb::def_vector.
56 (adi_read_versions): Change "tags" to "gdb_byte *".
57 (adi_print_versions): Likewise.
58
c80049d3
TT
592017-11-04 Tom Tromey <tom@tromey.com>
60
61 * breakpoint.c
62 (scoped_rbreak_breakpoints::scoped_rbreak_breakpoints): Rename
63 from start_rbreak_breakpoints.
64 (scoped_rbreak_breakpoints): Rename from end_rbreak_breakpoints.
65 * breakpoint.h (class scoped_rbreak_breakpoints): New.
66 (start_rbreak_breakpoints, end_rbreak_breakpoints): Remove.
67 * symtab.c (do_end_rbreak_breakpoints): Remove.
68 (rbreak_command): Use scoped_rbreak_breakpoints, std::string.
69
167b0be1
TT
702017-11-04 Tom Tromey <tom@tromey.com>
71
72 * cp-namespace.c (reset_directive_searched): Remove.
73 (cp_lookup_symbol_via_imports): Use scoped_restore.
74 * cp-support.c (reset_directive_searched): Remove.
75 (make_symbol_overload_list_using): Use scoped_restore.
76 * d-namespace.c (d_lookup_symbol_imports): Use scoped_restore.
77 (reset_directive_searched): Remove.
78
5eae7aea
TT
792017-11-04 Tom Tromey <tom@tromey.com>
80
81 * symfile.c (find_separate_debug_file_by_debuglink): Use
82 unique_xmalloc_ptr.
83
c6bcad5f
TT
842017-11-04 Tom Tromey <tom@tromey.com>
85
86 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
87 type of "info".
88 (compute_stack_depth): Likewise.
89 (do_compile_dwarf_expr_to_c): Use std::vector.
90
20dcd8ca
TT
912017-11-04 Tom Tromey <tom@tromey.com>
92
93 * compile/compile-object-load.c (link_callbacks_einfo): Use
94 std::string.
95
33c7c59d
TT
962017-11-04 Tom Tromey <tom@tromey.com>
97
98 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
99 Use scoped_free_pendings.
100 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
101 scoped_free_pendings.
102 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
103 (xcoff_initial_scan): Likewise.
104 * buildsym.c (reset_symtab_globals): Update comment.
105 (scoped_free_pendings): Rename from really_free_pendings.
106 (prepare_for_building): Update comment.
107 (buildsym_init): Likewise.
108 * buildsym.h (class scoped_free_pendings): New class.
109 (really_free_pendings): Don't declare.
110
67fa57cf
UW
1112017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
112
113 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
114 output when converting a zero value to a special byteorder format.
115
f26ae15b
YQ
1162017-11-02 Yao Qi <yao.qi@linaro.org>
117
118 * frame.c (do_frame_register_read): Remove aspace.
119 * jit.c (jit_frame_sniffer): Likwise.
120 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
121 * regcache.c (regcache::regcache): Pass nullptr.
122 (regcache_print): Caller updated.
123 * regcache.h (regcache::regcache): Remove one constructor
124 parameter aspace.
125
6c6e9412
YQ
1262017-11-02 Yao Qi <yao.qi@linaro.org>
127
128 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
129
8b86c959
YQ
1302017-11-02 Yao Qi <yao.qi@linaro.org>
131
132 * breakpoint.c (insert_single_step_breakpoints): Update.
133 * frame.c (struct frame_info) <aspace>: Add const.
134 (frame_save_as_regcache): Add const.
135 (get_frame_address_space): Return const address_space *.
136 * frame.h (get_frame_address_space): Update declaration.
137 * infrun.c (struct step_over_info) <aspace>: Add const.
138 (set_step_over_info): Make aspace const.
139 (displaced_step_prepare_throw): Change variable const.
140 (resume): Likewise.
141 (proceed): Likewise.
142 (adjust_pc_after_break): Likewise.
143 (save_waitstatus): Likewise.
144 (handle_signal_stop): Likewise.
145 (keep_going_pass_signal): Likewise.
146 * jit.c (jit_frame_sniffer): Add const.
147 * mips-tdep.c (mips_single_step_through_delay): Likewise.
148 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
149 * record-full.c (record_full_wait_1): Likewise.
150 * regcache.c (regcache::regcache): Change parameter to const.
151 * regcache.h (regcache::regcache): Likewise.
152 (regcache::aspace): Return const address_space *.
153 (regcache) <m_aspace>: Add const.
154
a01bda52
YQ
1552017-11-02 Yao Qi <yao.qi@linaro.org>
156
157 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
158 * frame.c (create_sentinel_frame): Likewise.
159 * infrun.c (displaced_step_prepare_throw): Likewise.
160 (resume): Likewise.
161 (thread_still_needs_step_over_bp): Likewise.
162 (proceed): Likewise.
163 (do_target_wait): Likewise.
164 (adjust_pc_after_break): Likewise.
165 (handle_syscall_event): Likewise.
166 (save_waitstatus): Likewise.
167 (handle_inferior_event_1): Likewise.
168 (handle_signal_stop): Likewise.
169 (keep_going_pass_signal): Likewise.
170 * linux-nat.c (status_callback): Likewise.
171 (save_stop_reason): Likewise.
172 (resume_stopped_resumed_lwps): Likewise.
173 * record-full.c (record_full_exec_insn): Likewise.
174 (record_full_wait_1): Likewise.
175 * regcache.c (get_regcache_aspace): Remove.
176 * regcache.h (get_regcache_aspace): Remove.
177
d999647b
YQ
1782017-11-02 Yao Qi <yao.qi@linaro.org>
179
180 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
181 (init_regcache_descr): Use gdbarch_num_regs.
182 (regcache::regcache): Likewise.
183 (regcache::get_register_status): Likewise.
184 (regcache::assert_raw_regnum): Likewise.
185 (regcache::cooked_read): Likewise.
186 (regcache::cooked_read_value): Likewise.
187 (regcache::cooked_write): Likewise.
188 (regcache::dump): Likewise.
189 (regcache::num_raw_registers): New method.
190 * regcache.h (class regcache) <num_raw_registers>: New.
191
4e888c28
YQ
1922017-11-02 Yao Qi <yao.qi@linaro.org>
193
194 * regcache.c (regcache::assert_regnum): New method.
195 (regcache::invalidate): Call assert_regnum.
196 (regcache::raw_update): Likewise.
197 (regcache::raw_write): Likewise.
198 (regcache::raw_read_part): Likewise.
199 (regcache::raw_write_part): Likewise.
200 (regcache::raw_supply): Likewise.
201 (regcache::raw_supply_integer): Likewise.
202 (regcache::raw_supply_zeroed): Likewise.
203 (regcache::raw_collect): Likewise.
204 (regcache::raw_collect_integer): Likewise.
205 * regcache.h (regcache::assert_regnum): Declare.
206
2e1b49b3
YQ
2072017-11-02 Yao Qi <yao.qi@linaro.org>
208
209 * regcache.c (regcache::dump): Remove code.
210
6c5218df
YQ
2112017-11-02 Yao Qi <yao.qi@linaro.org>
212
213 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
214 Remove.
215 <sizeof_cooked_register_status>: Remove.
216 (init_regcache_descr): Update.
217 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
218 (regcache::save): Likewise.
219 (regcache::dump): Likewise.
220
dcc31d28
JB
2212017-11-01 James Bowman <james.bowman@ftdichip.com>
222
223 * ft32-tdep.c (ft32_fetch_instruction): New function.
224 (ft32_analyze_prologue): Use ft32_fetch_instruction().
225
3a87ae65
SM
2262017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
227
228 * cli/cli-script.c (execute_control_command): Rename to ...
229 (execute_control_command_1): ... this.
230 (execute_control_command): New function.
231
09b847f3
SM
2322017-10-31 Simon Marchi <simon.marchi@ericsson.com>
233
234 * tracepoint.c (tfind_command): Remove const_cast.
235
f871c485
MG
2362017-10-30 Mike Gulick <mgulick@mathworks.com>
237
238 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
239
b020ff80
SM
2402017-10-30 Simon Marchi <simon.marchi@ericsson.com>
241
242 * common/common-utils.h (in_inclusive_range): New function.
243 * arm-tdep.c (arm_record_extension_space): Use
244 in_inclusive_range.
245 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
246 * cris-tdep.c (cris_spec_reg_applicable): Use
247 in_inclusive_range.
248
1b81856f
PA
2492017-10-30 Pedro Alves <palves@redhat.com>
250 Simon Marchi <simon.marchi@ericsson.com>
251
252 * remote.c (remote_set_syscall_catchpoint): Build a std::string
253 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
254
31b833b3
PA
2552017-10-30 Pedro Alves <palves@redhat.com>
256
257 * common/common-utils.c (string_appendf, string_vappendf): New
258 functions.
259 * common/common-utils.h (string_appendf, string_vappendf): New
260 declarations.
261 * unittests/common-utils-selftests.c (string_appendf_func)
262 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
263 (string_vappendf_tests): New functions.
264 (_initialize_common_utils_selftests): Register "string_appendf" and
265 "string_vappendf tests".
266
4a250334
PA
2672017-10-30 Pedro Alves <palves@redhat.com>
268
269 * unittests/common-utils-selftests.c (format_func): New typedef.
270 (string_printf_tests, string_vprintf_tests): Tests factored out
271 and merged to ...
272 (test_format_func): ... this new function.
273 (string_printf_tests, string_vprintf_tests): Reimplement on top of
274 test_format_func.
275
16c5c17e
SM
2762017-10-29 Simon Marchi <simon.marchi@ericsson.com>
277
278 * darwin-nat.c: Remove include of gdb.h.
279
7ca51576
SM
2802017-10-29 Simon Marchi <simon.marchi@ericsson.com>
281
282 * xtensa-xtregs.c: Fix formatting issues.
283
c1342859
SM
2842017-10-29 Simon Marchi <simon.marchi@ericsson.com>
285
286 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
287
484d8d36
MD
2882017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
289
290 PR python/21213
291 * python/py-infthread.c (thpy_get_inferior): Increment reference
292 of inferior before returning it.
293
b5540b5f
SM
2942017-10-27 Simon Marchi <simon.marchi@ericsson.com>
295
296 * unittests/common-utils-selftests.c (format): Add
297 ATTRIBUTE_PRINTF.
298
5a9dcda1
SM
2992017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
300
301 * xml-syscall.c (struct syscall_desc): Add constructor.
302 <name>: Change type to std::string.
303 (syscall_desc_up): New typedef.
304 (syscall_desc_p): Remove typeder.
305 (DEF_VEC_P(syscall_desc_p)): Remove.
306 (struct syscall_group_desc): Add constructor.
307 <name>: Change type to std::string.
308 <syscalls>: Change type to std::vector.
309 (syscall_group_desc_up): New typedef.
310 (syscall_group_desc_p): Remove typedef.
311 (DEF_VEC_P(syscall_group_desc_p)): Remove.
312 (struct syscalls_info) <syscalls>: Change type to std::vector of
313 unique_ptr.
314 <groups>: Likewise.
315 <my_gdb_datadir>: Change type to std::string.
316 (syscalls_info_up): New typedef.
317 (allocate_syscalls_info): Remove.
318 (syscalls_info_free_syscalls_desc): Remove.
319 (syscalls_info_free_syscall_group_desc): Remove.
320 (free_syscalls_info): Remove.
321 (make_cleanup_free_syscalls_info): Remove.
322 (syscall_group_create_syscall_group_desc): Adjust.
323 (syscall_group_add_syscall): Adjust.
324 (syscall_create_syscall_desc): Adjust.
325 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
326 (init_syscalls_info): Adjust.
327 (syscall_group_get_group_by_name): Adjust.
328 (xml_get_syscall_number): Adjust.
329 (xml_get_syscall_name): Adjust.
330 (xml_list_of_syscalls): Adjust.
331 (xml_list_syscalls_by_group): Adjust.
332 (xml_list_of_groups): Adjust.
333
45461e0d
SM
3342017-10-27 Simon Marchi <simon.marchi@ericsson.com>
335
336 * probe.h: Don't include gdb_vecs.h.
337 (DEF_VEC_P (probe_p)): Remove.
338 (find_probes_in_objfile): Return an std::vector.
339 * probe.c (find_probes_in_objfile): Likewise.
340 * breakpoint.c (breakpoint_objfile_data)
341 <longjmp_probes>: Change type to std::vector.
342 <exception_probes>: Likewise.
343 (free_breakpoint_probes): Don't manually free vectors.
344 (create_longjmp_master_breakpoint): Adjust.
345 (create_exception_master_breakpoint): Adjust.
346 * solib-svr4.c (svr4_create_probe_breakpoints): Change
347 parameter type, adjust.
348 (svr4_create_solib_event_breakpoints): Adjust.
349
43dce439
SM
3502017-10-27 Simon Marchi <simon.marchi@ericsson.com>
351
352 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
353 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
354 with new.
355 (free_breakpoint_probes): Rename to ...
356 (free_breakpoint_objfile_data): ... this, and call delete on
357 bp_objfile_data..
358
6a1b9516
SM
3592017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
360
361 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
362 (loaded_script_ptr): Remove typedef.
363 (DEF_VEC_P (loaded_script_ptr)): Remove.
364 (struct collect_matching_scripts_data): Add constructor.
365 <scripts_p>: Change type to (pointer to) std::vector.
366 (collect_matching_scripts_data): Adjust.
367 (sort_scripts_by_name): Make suitable for std::sort.
368 (print_scripts): Don't sort vector, adjust to std::vector.
369 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
370
593e3209
SM
3712017-10-27 Simon Marchi <simon.marchi@ericsson.com>
372
373 * symfile.c (filename_language): Make struct, not typedef. Add
374 constructor.
375 <ext>: Change type to std::string.
376 (DEF_VEC_O (filename_language)): Remove.
377 (filename_language_table): Change type to std::vector.
378 (add_filename_language): Adjust.
379 (set_ext_lang_command): Adjust.
380 (info_ext_lang_command): Adjust.
381 (deduce_language_from_filename): Adjust.
382 (class scoped_restore_filename_language_table): Remove.
383 (test_filename_language): Use scoped_restore.
384 (test_set_ext_lang_command): Use scoped_restore, adjust to
385 std::vector change.
386
32fa66eb
SM
3872017-10-27 Simon Marchi <simon.marchi@ericsson.com>
388
389 * symfile.c: Include selftest.h.
390 (class scoped_restore_filename_language_table): New.
391 (test_filename_language): New test.
392 (test_set_ext_lang_command): New test.
393 (_initialize_symfile): Register tests.
394
4a27f119
KS
3952017-10-27 Keith Seitz <keiths@redhat.com>
396
397 * breakpoint.c (print_breakpoint_location): Use the symbol saved
398 in the bp_location, falling back to find_pc_sect_function when
399 needed.
400 (add_location_to_breakpoint): Save sal->symbol.
401 * breakpoint.h (struct bp_location) <symbol>: New field.
402 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
403 * symtab.h (struct symtab_and_line) <symbol>: New field.
404
a43f3893
PF
4052017-10-26 Patrick Frants <osscontribute@gmail.com>
406
7453e6b2 407 PR gdb/13669
a43f3893
PF
408 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
409 to rewind obstack.
410
23cc4e1b
PA
4112017-10-26 Pedro Alves <palves@redhat.com>
412
413 * remote.c (remote_async_terminal_ours_p): Delete.
414 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
415 Remove references to 'remote_async_terminal_ours_p'.
416
6abc18bb
YQ
4172017-10-26 Yao Qi <yao.qi@linaro.org>
418
419 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
420
bd522513
YQ
4212017-10-26 Yao Qi <yao.qi@linaro.org>
422
423 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
424 aspace const.
425 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
426 Likewise.
427 * breakpoint.c (bpstat_check_location): Remove cast.
428 (breakpoint_hit_catch_fork): Make aspce const.
429 (breakpoint_hit_catch_solib): Likewise.
430 (breakpoint_hit_catch_exec): Likewise.
431 (breakpoint_hit_ranged_breakpoint): Likewise.
432 (breakpoint_hit_watchpoint): Likewise.
433 (base_breakpoint_breakpoint_hit): Likewise.
434 (bkpt_breakpoint_hit): Likewise.
435 (dprintf_breakpoint_hit): Likewise.
436 (tracepoint_breakpoint_hit): Likewise.
437 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
438
accd0bcd
YQ
4392017-10-26 Yao Qi <yao.qi@linaro.org>
440
441 * breakpoint.c (breakpoint_location_address_match): Change
442 "struct address_space *" to "const address_space".
443 (breakpoint_location_address_range_overlap): Likewise.
444 (breakpoint_here_p): Likewise.
445 (breakpoint_in_range_p): Likewise.
446 (moribund_breakpoint_here_p): Likewise.
447 (bp_location_inserted_here_p): Likewise.
448 (software_breakpoint_inserted_here_p): Likewise.
449 (hardware_breakpoint_inserted_here_p): Likewise.
450 (hardware_watchpoint_inserted_in_range): Likewise.
451 (bpstat_check_location): Likewise.
452 (bpstat_stop_status): Likewise.
453 (breakpoint_address_match): Likewise.
454 (breakpoint_address_match_range): Likewise.
455 (breakpoint_location_address_match): Likewise.
456 (breakpoint_location_address_range_overlap): Likewise.
457 (insert_single_step_breakpoint): Likewise.
458 (breakpoint_has_location_inserted_here): Likewise.
459 (single_step_breakpoint_inserted_here_p): Likewise.
460 (pc_at_non_inline_function): Likewise.
461 * breakpoint.h (bpstat_stop_status): Update declaration.
462 (breakpoint_here_p): Likewise.
463 (breakpoint_in_range_p): Likewise.
464 (moribund_breakpoint_here_p): Likewise.
465 (breakpoint_inserted_here_p): Likewise.
466 (software_breakpoint_inserted_here_p): Likewise.
467 (hardware_breakpoint_inserted_here_p): Likewise.
468 (breakpoint_has_location_inserted_here): Likewise.
469 (single_step_breakpoint_inserted_here_p): Likewise.
470 (hardware_watchpoint_inserted_in_range): Likewise.
471 (breakpoint_address_match): Likewise.
472 (insert_single_step_breakpoint): Likewise.
473 (pc_at_non_inline_function): Likewise.
474 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
475 * record.c (record_check_stopped_by_breakpoint): Likewise.
476 * record.h (record_check_stopped_by_breakpoint): Likewise.
477 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
478
ac7936df
YQ
4792017-10-25 Yao Qi <yao.qi@linaro.org>
480
481 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
482 regcache->arch () instead get_regcache_arch.
483 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
484 Likewise.
485 (aarch64_fbsd_store_inferior_registers): Likewise.
486 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
487 (store_gregs_to_thread): Likewise.
488 (fetch_fpregs_from_thread): Likewise.
489 (store_fpregs_to_thread): Likewise.
490 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
491 (aarch64_store_return_value): Likewise.
492 (aarch64_software_single_step): Likewise.
493 * aix-thread.c (aix_thread_wait): Likewise.
494 (supply_reg32): Likewise.
495 (supply_sprs64): Likewise.
496 (supply_sprs32): Likewise.
497 (fill_gprs64): Likewise.
498 (fill_gprs32): Likewise.
499 (fill_sprs64): Likewise.
500 (fill_sprs32): Likewise.
501 (store_regs_user_thread): Likewise.
502 (store_regs_kernel_thread): Likewise.
503 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
504 (alphabsd_store_inferior_registers): Likewise.
505 * alpha-tdep.c (alpha_extract_return_value): Likewise.
506 (alpha_store_return_value): Likewise.
507 (alpha_deal_with_atomic_sequence): Likewise.
508 (alpha_next_pc): Likewise.
509 (alpha_software_single_step): Likewise.
510 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
511 (amd64bsd_store_inferior_registers): Likewise.
512 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
513 Likewise.
514 (amd64_linux_store_inferior_registers): Likewise.
515 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
516 (amd64_collect_native_gregset): Likewise.
517 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
518 (amd64obsd_collect_uthread): Likewise.
519 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
520 (amd64_collect_fpregset): Likewise.
521 (amd64_supply_fxsave): Likewise.
522 (amd64_supply_xsave): Likewise.
523 (amd64_collect_fxsave): Likewise.
524 (amd64_collect_xsave): Likewise.
525 * arc-tdep.c (arc_write_pc): Likewise.
526 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
527 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
528 (arm_fbsd_store_inferior_registers): Likewise.
529 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
530 (store_vfp_regs): Likewise.
531 (arm_linux_fetch_inferior_registers): Likewise.
532 (arm_linux_store_inferior_registers): Likewise.
533 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
534 (arm_linux_sigreturn_next_pc): Likewise.
535 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
536 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
537 (fetch_register): Likewise.
538 (store_register): Likewise.
539 * arm-tdep.c (arm_is_thumb): Likewise.
540 (displaced_in_arm_mode): Likewise.
541 (bx_write_pc): Likewise.
542 (arm_get_next_pcs_addr_bits_remove): Likewise.
543 (arm_software_single_step): Likewise.
544 (arm_extract_return_value): Likewise.
545 (arm_store_return_value): Likewise.
546 (arm_write_pc): Likewise.
547 * bfin-tdep.c (bfin_extract_return_value): Likewise.
548 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
549 (bsd_uthread_store_registers): Likewise.
550 * core-regset.c (fetch_core_registers): Likewise.
551 * corelow.c (get_core_registers): Likewise.
552 * cris-tdep.c (cris_store_return_value): Likewise.
553 (cris_extract_return_value): Likewise.
554 (find_step_target): Likewise.
555 (find_step_target): Likewise.
556 (cris_software_single_step): Likewise.
557 * ctf.c (ctf_fetch_registers): Likewise.
558 * darwin-nat.c (cancel_breakpoint): Likewise.
559 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
560 * frv-tdep.c (frv_extract_return_value): Likewise.
561 * ft32-tdep.c (ft32_store_return_value): Likewise.
562 (ft32_extract_return_value): Likewise.
563 * go32-nat.c (fetch_register): Likewise.
564 (go32_fetch_registers): Likewise.
565 (go32_store_registers): Likewise.
566 (store_register): Likewise.
567 * h8300-tdep.c (h8300_extract_return_value): Likewise.
568 (h8300_store_return_value): Likewise.
569 * hppa-linux-nat.c (fetch_register): Likewise.
570 (store_register): Likewise.
571 (hppa_linux_fetch_inferior_registers): Likewise.
572 (hppa_linux_store_inferior_registers): Likewise.
573 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
574 (i386_darwin_store_inferior_registers): Likewise.
575 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
576 (gnu_store_registers): Likewise.
577 * i386-linux-nat.c (fetch_register): Likewise.
578 (store_register): Likewise.
579 (supply_gregset): Likewise.
580 (fill_gregset): Likewise.
581 (i386_linux_fetch_inferior_registers): Likewise.
582 (i386_linux_store_inferior_registers): Likewise.
583 (i386_linux_resume): Likewise.
584 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
585 Likewise.
586 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
587 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
588 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
589 (i386obsd_collect_uthread): Likewise.
590 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
591 (i386_supply_gregset): Likewise.
592 (i386_collect_gregset): Likewise.
593 (i386_supply_fpregset): Likewise.
594 (i386_collect_fpregset): Likewise.
595 (i386_mpx_bd_base): Likewise.
596 * i386-v4-nat.c (supply_fpregset): Likewise.
597 (fill_fpregset): Likewise.
598 * i387-tdep.c (i387_supply_fsave): Likewise.
599 (i387_collect_fsave): Likewise.
600 (i387_supply_fxsave): Likewise.
601 (i387_collect_fxsave): Likewise.
602 (i387_supply_xsave): Likewise.
603 (i387_collect_xsave): Likewise.
604 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
605 (ia64_linux_store_registers): Likewise.
606 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
607 (ia64_extract_return_value): Likewise.
608 (ia64_store_return_value): Likewise.
609 (find_func_descr): Likewise.
610 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
611 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
612 (inf_ptrace_store_registers): Likewise.
613 * infrun.c (use_displaced_stepping): Likewise.
614 (displaced_step_prepare_throw): Likewise.
615 (resume): Likewise.
616 (proceed): Likewise.
617 (do_target_wait): Likewise.
618 (adjust_pc_after_break): Likewise.
619 (handle_inferior_event_1): Likewise.
620 (handle_signal_stop): Likewise.
621 (save_infcall_suspend_state): Likewise.
622 (restore_infcall_suspend_state): Likewise.
623 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
624 * jit.c (jit_frame_prev_register): Likewise.
625 * linux-nat.c (save_stop_reason): Likewise.
626 (linux_nat_wait_1): Likewise.
627 (resume_stopped_resumed_lwps): Likewise.
628 * linux-record.c (record_linux_sockaddr): Likewise.
629 (record_linux_msghdr): Likewise.
630 (record_linux_system_call): Likewise.
631 * linux-tdep.c (linux_collect_thread_registers): Likewise.
632 * lm32-tdep.c (lm32_extract_return_value): Likewise.
633 (lm32_store_return_value): Likewise.
634 * m32c-tdep.c (m32c_read_flg): Likewise.
635 (m32c_pseudo_register_read): Likewise.
636 (m32c_pseudo_register_write): Likewise.
637 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
638 (m32r_linux_collect_gregset): Likewise.
639 * m32r-tdep.c (m32r_store_return_value): Likewise.
640 (m32r_extract_return_value): Likewise.
641 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
642 (m68kbsd_collect_fpregset): Likewise.
643 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
644 * m68k-linux-nat.c (fetch_register): Likewise.
645 (old_fetch_inferior_registers): Likewise.
646 (old_store_inferior_registers): Likewise.
647 (store_regs): Likewise.
648 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
649 (m68k_svr4_store_return_value): Likewise.
650 * m88k-tdep.c (m88k_store_arguments): Likewise.
651 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
652 (mi_cmd_data_write_register_values): Likewise.
653 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
654 (mips_fbsd_store_inferior_registers): Likewise.
655 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
656 (mips_fbsd_supply_gregs): Likewise.
657 (mips_fbsd_collect_fpregs): Likewise.
658 (mips_fbsd_collect_gregs): Likewise.
659 (mips_fbsd_supply_fpregset): Likewise.
660 (mips_fbsd_collect_fpregset): Likewise.
661 (mips_fbsd_supply_gregset): Likewise.
662 (mips_fbsd_collect_gregset): Likewise.
663 * mips-linux-nat.c (supply_gregset): Likewise.
664 (fill_gregset): Likewise.
665 (supply_fpregset): Likewise.
666 (fill_fpregset): Likewise.
667 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
668 (mips_fill_gregset): Likewise.
669 (mips_supply_fpregset): Likewise.
670 (mips_fill_fpregset): Likewise.
671 (mips64_supply_gregset): Likewise.
672 (micromips_linux_sigframe_validate): Likewise.
673 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
674 (mipsnbsd_fetch_inferior_registers): Likewise.
675 (mipsnbsd_store_inferior_registers): Likewise.
676 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
677 (mipsnbsd_supply_gregset): Likewise.
678 (mipsnbsd_iterate_over_regset_sections): Likewise.
679 (mipsnbsd_supply_reg): Likewise.
680 (mipsnbsd_supply_fpreg): Likewise.
681 * mips-tdep.c (mips_in_frame_stub): Likewise.
682 (mips_dummy_id): Likewise.
683 (is_octeon_bbit_op): Likewise.
684 (micromips_bc1_pc): Likewise.
685 (extended_mips16_next_pc): Likewise.
686 (mips16_next_pc): Likewise.
687 (deal_with_atomic_sequence): Likewise.
688 * moxie-tdep.c (moxie_process_readu): Likewise.
689 * nios2-tdep.c (nios2_get_next_pc): Likewise.
690 * nto-procfs.c (procfs_store_registers): Likewise.
691 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
692 (ppcfbsd_store_inferior_registers): Likewise.
693 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
694 (fetch_altivec_register): Likewise.
695 (get_spe_registers): Likewise.
696 (fetch_spe_register): Likewise.
697 (fetch_altivec_registers): Likewise.
698 (fetch_all_gp_regs): Likewise.
699 (fetch_all_fp_regs): Likewise.
700 (store_vsx_register): Likewise.
701 (store_altivec_register): Likewise.
702 (set_spe_registers): Likewise.
703 (store_spe_register): Likewise.
704 (store_altivec_registers): Likewise.
705 (store_all_gp_regs): Likewise.
706 (store_all_fp_regs): Likewise.
707 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
708 (ppc_linux_collect_gregset): Likewise.
709 (ppc_canonicalize_syscall): Likewise.
710 (ppc_linux_record_signal): Likewise.
711 (ppu2spu_prev_register): Likewise.
712 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
713 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
714 (ppcobsd_store_registers): Likewise.
715 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
716 Likewise.
717 (ppc_ravenscar_generic_store_registers): Likewise.
718 * procfs.c (procfs_fetch_registers): Likewise.
719 (procfs_store_registers): Likewise.
720 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
721 (ravenscar_store_registers): Likewise.
722 (ravenscar_prepare_to_store): Likewise.
723 * record-btrace.c (record_btrace_fetch_registers): Likewise.
724 * record-full.c (record_full_wait_1): Likewise.
725 (record_full_registers_change): Likewise.
726 (record_full_store_registers): Likewise.
727 (record_full_core_fetch_registers): Likewise.
728 (record_full_save): Likewise.
729 (record_full_goto_insn): Likewise.
730 * regcache.c (regcache_register_size): Likewise.
731 (get_regcache_arch): Remove.
732 (regcache_read_pc): Likewise.
733 * regcache.h (get_regcache_arch): Remove.
734 * remote-sim.c (gdbsim_fetch_register): Likewise.
735 (gdbsim_store_register): Likewise.
736 * remote.c (fetch_register_using_p): Likewise.
737 (send_g_packet): Likewise.
738 (remote_prepare_to_store): Likewise.
739 (store_registers_using_G): Likewise.
740 * reverse.c (save_bookmark_command): Likewise.
741 (goto_bookmark_command): Likewise.
742 * rs6000-aix-tdep.c (branch_dest): Likewise.
743 * rs6000-nat.c (rs6000_ptrace64): Likewise.
744 (fetch_register): Likewise.
745 * rs6000-tdep.c (ppc_supply_reg): Likewise.
746 (ppc_collect_reg): Likewise.
747 (ppc_collect_gregset): Likewise.
748 (ppc_collect_fpregset): Likewise.
749 (ppc_collect_vsxregset): Likewise.
750 (ppc_collect_vrregset): Likewise.
751 (ppc_displaced_step_hw_singlestep): Likewise.
752 (rs6000_pseudo_register_read): Likewise.
753 (rs6000_pseudo_register_write): Likewise.
754 * s390-linux-nat.c (supply_gregset): Likewise.
755 (fill_gregset): Likewise.
756 (s390_linux_fetch_inferior_registers): Likewise.
757 * s390-linux-tdep.c (s390_write_pc): Likewise.
758 (s390_software_single_step): Likewise.
759 (s390_all_but_pc_registers_record): Likewise.
760 (s390_linux_syscall_record): Likewise.
761 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
762 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
763 (shnbsd_store_inferior_registers): Likewise.
764 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
765 (sh_extract_return_value_fpu): Likewise.
766 (sh_store_return_value_nofpu): Likewise.
767 (sh_corefile_supply_regset): Likewise.
768 (sh_corefile_collect_regset): Likewise.
769 * sh64-tdep.c (sh64_extract_return_value): Likewise.
770 (sh64_store_return_value): Likewise.
771 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
772 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
773 (sparc_store_inferior_registers): Likewise.
774 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
775 (sparc_ravenscar_prepare_to_store): Likewise.
776 * sparc-tdep.c (sparc32_store_arguments): Likewise.
777 (sparc_analyze_control_transfer): Likewise.
778 (sparc_step_trap): Likewise.
779 (sparc_software_single_step): Likewise.
780 (sparc32_gdbarch_init): Likewise.
781 (sparc_supply_rwindow): Likewise.
782 (sparc_collect_rwindow): Likewise.
783 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
784 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
785 (sparc64nbsd_collect_gregset): Likewise.
786 (sparc64nbsd_supply_fpregset): Likewise.
787 (sparc64nbsd_collect_fpregset): Likewise.
788 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
789 (sparc64_supply_gregset): Likewise.
790 (sparc64_collect_gregset): Likewise.
791 (sparc64_supply_fpregset): Likewise.
792 (sparc64_collect_fpregset): Likewise.
793 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
794 * spu-tdep.c (spu_unwind_sp): Likewise.
795 (spu2ppu_prev_register): Likewise.
796 (spu_memory_remove_breakpoint): Likewise.
797 * stack.c (return_command): Likewise.
798 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
799 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
800 * tracefile.c (trace_save_ctf): Likewise.
801 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
802 (do_windows_store_inferior_registers): Likewise.
803 (windows_resume): Likewise.
804 * xtensa-linux-nat.c (fill_gregset): Likewise.
805 (supply_gregset_reg): Likewise.
806 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
807 (xtensa_register_read_masked): Likewise.
808 (xtensa_supply_gregset): Likewise.
809 (xtensa_extract_return_value): Likewise.
810 (xtensa_store_return_value): Likewise.
811
edd079d9
UW
8122017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
813
814 * doublest.c (floatformat_from_string): New function.
815 * doublest.h (floatformat_from_string): Add prototype.
816
817 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
818 (OP_FLOAT): ... this.
819 * expression.h: Do not include "doublest.h".
820 (union exp_element): Replace doubleconst and decfloatconst by
821 new element floatconst.
822 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
823 (ada_evaluate_subexp): Likewise.
824 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
825 OP_DOUBLE and OP_DECFLOAT.
826 * expprint.c (print_subexp_standard): Likewise.
827 (dump_subexp_body_standard): Likewise.
828 * breakpoint.c (watchpoint_exp_is_const): Likewise.
829
830 * parse.c: Include "dfp.h".
831 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
832 (write_exp_elt_floatcst): New function.
833 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
834 and OP_DECFLOAT.
835 (operator_check_standard): Likewise.
836 (parse_float): Do not accept suffix. Take type as input. Return bool.
837 Return target format buffer instead of host DOUBLEST.
838 Use floatformat_from_string and decimal_from_string to parse
839 either binary or decimal floating-point types.
840 (parse_c_float): Remove.
841 * parser-defs.h: Do not include "doublest.h".
842 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
843 (write_exp_elt_floatcst): Add prototype.
844 (parse_float): Update prototype.
845 (parse_c_float): Remove.
846
847 * c-exp.y: Do not include "dfp.h".
848 (typed_val_float): Use byte buffer instead of DOUBLEST.
849 (typed_val_decfloat): Remove.
850 (DECFLOAT): Remove.
851 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
852 (parse_number): Update to new parse_float interface.
853 Parse suffixes and determine type before calling parse_float.
854 Handle decimal and binary FP types the same way.
855
856 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
857 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
858 (parse_number): Update to new parse_float interface.
859 Parse suffixes and determine type before calling parse_float.
860
861 * f-exp.y: Replace dval by typed_val_float.
862 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
863 (parse_number): Use parse_float instead of atof.
864
865 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
866 (parse_go_float): Remove.
867 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
868 (parse_number): Call parse_float instead of parse_go_float.
869 Parse suffixes and determine type before calling parse_float.
870
871 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
872 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
873 (parse_number): Update to new parse_float interface.
874 Parse suffixes and determine type before calling parse_float.
875
876 * m2-exp.y: Replace dval by byte buffer val.
877 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
878 (parse_number): Call parse_float instead of atof.
879
880 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
881 (lex_number): Call parse_float instead of strtod.
882 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
883 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
884 Use write_exp_elt_floatcst.
885 (unit_testing): Remove static variable.
886 (rust_type): Do not check unit_testing.
887 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
888
889 * ada-exp.y (type_float, type_double): Remove.
890 (typed_val_float): Use byte buffer instead of DOUBLEST.
891 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
892 * ada-lex.l (processReal): Use parse_float instead of sscanf.
893
cc628f3d
AH
8942017-10-25 Alan Hayward <alan.hayward@arm.com>
895
896 * aarch64-tdep.h (enum aarch64_regnum): Remove.
897 * arch/aarch64.h: New file.
898
09a7c6aa
UW
8992017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
900
901 * dfp.h (decimal_from_string): Use const reference for argument.
902 * dfp.c (decimal_from_string): Likewise.
903
8ba0dd51
UW
9042017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
905
906 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
907 * sh64-tdep.c (sh64_do_fp_register): Likewise.
908 * mips-tdep.c (mips_print_fp_register): Likewise.
909
16e812b2
UW
9102017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
911
912 * common/format.h (enum argclass): Replace decfloat_arg by
913 dec32float_arg, dec64float_arg, and dec128float_arg.
914 * common/format.c (parse_format_string): Update to return
915 new decimal float argument classes.
916
917 * printcmd.c (printf_decfloat): Rename to ...
918 (printf_floating): ... this. Add argclass argument, and use it
919 instead of parsing the format string again. Add support for
920 binary floating-point values, using floatformat_to_string.
921 Convert value to the target format if it doesn't already match.
922 (ui_printf): Call printf_floating instead of printf_decfloat,
923 also for double_arg / long_double_arg. Pass argclass.
924
925 * dfp.c (decimal_to_string): Add format string argument.
926 * dfp.h (decimal_to_string): Likewise.
927
928 * doublest.c (floatformat_to_string): Add format string argument.
929 * doublest.h (floatformat_to_string): Likewise.
930
fdf0cbc2
UW
9312017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
932
933 * doublest.c (floatformat_precision): New routine.
934 (floatformat_to_string): Likewise.
935 * doublest.c (floatformat_to_string): Add prototype.
936
937 * printcmd.c (print_scalar_formatted): Only call print_floating
938 on floating-point types.
939 * valprint.c: Do not include "floatformat.h".
940 (generic_val_print_decfloat): Remove.
941 (generic_val_print): Call generic_val_print_float for both
942 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
943 (print_floating): Use floatformat_to_string. Handle decimal float.
944 (print_decimal_floating): Remove, merge into floatformat_to_string.
945 * value.h (print_decimal_floating): Remove.
946
947 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
948
5033013f
UW
9492017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
950
951 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
952
a664f67e
SM
9532017-10-21 Simon Marchi <simon.marchi@ericsson.com>
954
955 * memattr.h: Don't include vec.h.
956 (struct mem_attrib): Initialize fields.
957 <unknown>: New static method.
958 (struct mem_region): Add constructors, operator<, initialize
959 fields.
960 * memattr.c: Include algorithm.
961 (default_mem_attrib, unknown_mem_attrib): Remove.
962 (user_mem_region_list): New global.
963 (target_mem_region_list, mem_region_list): Change type to
964 std::vector<mem_region>.
965 (mem_use_target): Now a function.
966 (target_mem_regions_valid): Change type to bool.
967 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
968 (require_user_regions): Adjust.
969 (require_target_regions): Adjust.
970 (create_mem_region): Adjust.
971 (lookup_mem_region): Adjust.
972 (invalidate_target_mem_regions): Adjust.
973 (mem_clear): Rename to...
974 (user_mem_clear): ... this, and adjust.
975 (mem_command): Adjust.
976 (info_mem_command): Adjust.
977 (mem_enable, enable_mem_command, mem_disable,
978 disable_mem_command): Adjust.
979 (mem_delete): Adjust.
980 (delete_mem_command): Adjust.
981 * memory-map.h (parse_memory_map): Return an std::vector.
982 * memory-map.c (parse_memory_map): Likewise.
983 (struct memory_map_parsing_data): Add constructor.
984 <memory_map>: Point to std::vector.
985 (memory_map_start_memory): Adjust.
986 (memory_map_end_memory): Adjust.
987 (memory_map_end_property): Adjust.
988 (clear_result): Remove.
989 * remote.c (remote_memory_map): Return an std::vector.
990 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
991 Remove.
992 (target_debug_print_mem_region_vector): New.
993 * target-delegates.c: Regenerate.
994 * target.h (mem_region_vector): New typedef.
995 (to_memory_map): Return mem_region_vector.
996 (target_memory_map): Return an std::vector.
997 * target.c (target_memory_map): Return an std::vector.
998 (flash_erase_command): Adjust.
999
6e17c565
SM
10002017-10-21 Simon Marchi <simon.marchi@ericsson.com>
1001
1002 * memory-map.c (struct memory_map_parsing_data) <property_name>:
1003 Change type to std::string.
1004 (memory_map_start_property): Adjust.
1005 (memory_map_end_property): Adjust.
1006
cfba9872
SM
10072017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1008
1009 * infrun.h: Include common/byte-vector.h.
1010 (struct displaced_step_closure): New struct.
1011 (struct buf_displaced_step_closure): New struct.
1012 * infrun.c (displaced_step_closure::~displaced_step_closure):
1013 Provide default implementation.
1014 (displaced_step_clear): Deallocate step closure with delete.
1015 * aarch64-tdep.c (displaced_step_closure): Rename to ...
1016 (aarch64_displaced_step_closure): ... this, extend
1017 displaced_step_closure.
1018 (aarch64_displaced_step_data) <dsc>: Change type to
1019 aarch64_displaced_step_closure.
1020 (aarch64_displaced_step_copy_insn): Adjust to type change, use
1021 unique_ptr.
1022 (aarch64_displaced_step_fixup): Add cast for displaced step
1023 closure.
1024 * amd64-tdep.c (displaced_step_closure): Rename to ...
1025 (amd64_displaced_step_closure): ... this, extend
1026 displaced_step_closure.
1027 <insn_buf>: Change type to std::vector<gdb_byte>.
1028 <max_len>: Remove.
1029 (fixup_riprel): Change type of DSC parameter, adjust to type
1030 change of insn_buf.
1031 (fixup_displaced_copy): Change type of DSC parameter.
1032 (amd64_displaced_step_copy_insn): Instantiate
1033 amd64_displaced_step_closure.
1034 (amd64_displaced_step_fixup): Add cast for closure type, adjust
1035 to type change of insn_buf.
1036 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
1037 parameter DSC.
1038 (arm_linux_copy_svc): Likewise.
1039 (cleanup_kernel_helper_return): Likewise.
1040 (arm_catch_kernel_helper_return): Likewise.
1041 (arm_linux_displaced_step_copy_insn): Instantiate
1042 arm_displaced_step_closure.
1043 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
1044 (displaced_read_reg): Change type of parameter DSC.
1045 (branch_write_pc): Likewise.
1046 (load_write_pc): Likewise.
1047 (alu_write_pc): Likewise.
1048 (displaced_write_reg): Likewise.
1049 (arm_copy_unmodified): Likewise.
1050 (thumb_copy_unmodified_32bit): Likewise.
1051 (thumb_copy_unmodified_16bit): Likewise.
1052 (cleanup_preload): Likewise.
1053 (install_preload): Likewise.
1054 (arm_copy_preload): Likewise.
1055 (thumb2_copy_preload): Likewise.
1056 (install_preload_reg): Likewise.
1057 (arm_copy_preload_reg): Likewise.
1058 (cleanup_copro_load_store): Likewise.
1059 (install_copro_load_store): Likewise.
1060 (arm_copy_copro_load_store) Likewise.
1061 (thumb2_copy_copro_load_store): Likewise.
1062 (cleanup_branch): Likewise.
1063 (install_b_bl_blx): Likewise.
1064 (arm_copy_b_bl_blx): Likewise.
1065 (thumb2_copy_b_bl_blx): Likewise.
1066 (thumb_copy_b): Likewise.
1067 (install_bx_blx_reg): Likewise.
1068 (arm_copy_bx_blx_reg): Likewise.
1069 (thumb_copy_bx_blx_reg): Likewise.
1070 (cleanup_alu_imm): Likewise.
1071 (arm_copy_alu_imm): Likewise.
1072 (thumb2_copy_alu_imm): Likewise.
1073 (cleanup_alu_reg): Likewise.
1074 (install_alu_reg): Likewise.
1075 (arm_copy_alu_reg): Likewise.
1076 (thumb_copy_alu_reg): Likewise.
1077 (cleanup_alu_shifted_reg): Likewise.
1078 (install_alu_shifted_reg): Likewise.
1079 (arm_copy_alu_shifted_reg): Likewise.
1080 (cleanup_load): Likewise.
1081 (cleanup_store): Likewise.
1082 (arm_copy_extra_ld_st): Likewise.
1083 (install_load_store): Likewise.
1084 (thumb2_copy_load_literal): Likewise.
1085 (thumb2_copy_load_reg_imm): Likewise.
1086 (arm_copy_ldr_str_ldrb_strb): Likewise.
1087 (cleanup_block_load_all): Likewise.
1088 (cleanup_block_store_pc): Likewise.
1089 (cleanup_block_load_pc): Likewise.
1090 (arm_copy_block_xfer): Likewise.
1091 (thumb2_copy_block_xfer): Likewise.
1092 (cleanup_svc): Likewise.
1093 (install_svc): Likewise.
1094 (arm_copy_svc): Likewise.
1095 (thumb_copy_svc): Likewise.
1096 (arm_copy_undef): Likewise.
1097 (thumb_32bit_copy_undef): Likewise.
1098 (arm_copy_unpred): Likewise.
1099 (arm_decode_misc_memhint_neon): Likewise.
1100 (arm_decode_unconditional): Likewise.
1101 (arm_decode_miscellaneous): Likewise.
1102 (arm_decode_dp_misc): Likewise.
1103 (arm_decode_ld_st_word_ubyte): Likewise.
1104 (arm_decode_media): Likewise.
1105 (arm_decode_b_bl_ldmstm): Likewise.
1106 (arm_decode_ext_reg_ld_st): Likewise.
1107 (thumb2_decode_dp_shift_reg): Likewise.
1108 (thumb2_decode_ext_reg_ld_st): Likewise.
1109 (arm_decode_svc_copro): Likewise.
1110 (thumb2_decode_svc_copro): Likewise.
1111 (install_pc_relative): Likewise.
1112 (thumb_copy_pc_relative_16bit): Likewise.
1113 (thumb_decode_pc_relative_16bit): Likewise.
1114 (thumb_copy_pc_relative_32bit): Likewise.
1115 (thumb_copy_16bit_ldr_literal): Likewise.
1116 (thumb_copy_cbnz_cbz): Likewise.
1117 (thumb2_copy_table_branch): Likewise.
1118 (cleanup_pop_pc_16bit_all): Likewise.
1119 (thumb_copy_pop_pc_16bit): Likewise.
1120 (thumb_process_displaced_16bit_insn): Likewise.
1121 (decode_thumb_32bit_ld_mem_hints): Likewise.
1122 (thumb_process_displaced_32bit_insn): Likewise.
1123 (thumb_process_displaced_insn): Likewise.
1124 (arm_process_displaced_insn): Likewise.
1125 (arm_displaced_init_closure): Likewise.
1126 (arm_displaced_step_fixup): Add cast for closure.
1127 * arm-tdep.h: Include infrun.h.
1128 (displaced_step_closure): Rename to ...
1129 (arm_displaced_step_closure): ... this, extend
1130 displaced_step_closure.
1131 <u::svc::copy_svc_os>: Change type of parameter DSC.
1132 <cleanup>: Likewise.
1133 (arm_process_displaced_insn): Likewise.
1134 (arm_displaced_init_closure): Likewise.
1135 (displaced_read_reg): Likewise.
1136 (displaced_write_reg): Likewise.
1137 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
1138 Adjust.
1139 * i386-tdep.h: Include infrun.h.
1140 (i386_displaced_step_closure): New typedef.
1141 * i386-tdep.c (i386_displaced_step_copy_insn): Use
1142 i386_displaced_step_closure.
1143 (i386_displaced_step_fixup): Adjust.
1144 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
1145 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
1146 and unique_ptr.
1147 (ppc_displaced_step_fixup): Adjust.
1148 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
1149 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
1150 and unique_ptr.
1151 (s390_displaced_step_fixup): Adjust.
1152
b392b304
SM
11532017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1154
1155 * interps.h (interp_resume, interp_suspend, interp_set_temp):
1156 Remove declarations.
1157
d5833c62
TT
11582017-10-20 Tom Tromey <tom@tromey.com>
1159
1160 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
1161 std::vector.
1162 (gdb_bfd_record_inclusion): Update.
1163 (bfdp): Remove typedef.
1164
06d5bbc8
TT
11652017-10-20 Tom Tromey <tom@tromey.com>
1166
1167 * gdb_bfd.c (gdb_bfd_ref): Use new.
1168 (struct gdb_bfd_data): Add constructor, destructor, and member
1169 initializers.
1170 (gdb_bfd_unref): Use delete.
1171
2712ce2e
TT
11722017-10-20 Tom Tromey <tom@tromey.com>
1173
1174 * exec.c (exec_file_attach): Use new_bfd_ref.
1175 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
1176 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
1177 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
1178 new_bfd_ref.
1179 * gdb_bfd.h (new_bfd_ref): New function.
1180
fcc8fb2f
PA
11812017-10-20 Pedro Alves <palves@redhat.com>
1182
1183 * main.c (captured_command_loop): Add attribute noinline.
1184
4c2287b0
SM
11852017-10-19 Simon Marchi <simon.marchi@ericsson.com>
1186
1187 * interps.c (struct interp_factory): Add constructor.
1188 (interp_factory_p): Remove typedef.
1189 (DEF_VEC_P(interp_factory_p)): Remove.
1190 (interpreter_factories): Change type to std::vector.
1191 (interp_factory_register): Adjust.
1192 (interp_lookup): Adjust.
1193 (interpreter_completer): Adjust.
1194
3d415c26
TT
11952017-10-19 Tom Tromey <tom@tromey.com>
1196
1197 * break-catch-syscall.c (catch_syscall_completer): Use
1198 std::string, gdb::unique_xmalloc_ptr.
1199
395423c4
TT
12002017-10-19 Tom Tromey <tom@tromey.com>
1201
1202 * infcall.c (call_function_by_hand_dummy): Use std::string.
1203
54f70bc1
TT
12042017-10-19 Tom Tromey <tom@tromey.com>
1205
1206 * mi/mi-main.c (mi_cmd_execute): Update.
1207 * top.h (prepare_execute_command): Return scoped_value_mark.
1208 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
1209 Add move constructor.
1210 * top.c (prepare_execute_command): Return scoped_value_mark.
1211 (execute_command): Update.
1212
63929e84
PA
12132017-10-19 Pedro Alves <palves@redhat.com>
1214
1215 * xml-support.c (xml_fetch_content_from_file): Check fread's
1216 return.
1217
a75868f5
PA
12182017-10-19 Pedro Alves <palves@redhat.com>
1219
1220 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
1221 async.
1222 (handle_error_fd): New function.
1223 (ser_base_async): Add/delete an event loop file handler for
1224 error_fd.
1225
2edf834e
PA
12262017-10-19 Pedro Alves <palves@redhat.com>
1227
1228 * xml-support.c (xml_fetch_content_from_file): Don't read in
1229 chunks. Instead use fseek to determine the file's size, and read
1230 it in one go.
1231
c8ba13ad
KS
12322017-11-18 Keith Seitz <keiths@redhat.com>
1233
1234 * c-exp.y (oper): Canonicalize conversion operators of user-defined
1235 types.
1236 Add whitespace to front of type name.
1237
37534686
KS
12382017-10-18 Keith Seitz <keiths@redhat.com>
1239
1240 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
1241 DW_AT_accessibility.
1242
28c7c158
YQ
12432017-10-18 Yao Qi <yao.qi@linaro.org>
1244
1245 * features/tic6x-c62x-linux.c: Remove.
1246
30f0b101
TT
12472017-10-17 Tom Tromey <tom@tromey.com>
1248
1249 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
1250 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
1251 (do_mixed_source_and_assembly): Likewise.
1252
57e12da9
TT
12532017-10-17 Tom Tromey <tom@tromey.com>
1254
1255 * regcache.c (regcache::xfer_part): Remove assertion.
1256
7b700999
PA
12572017-10-17 Pedro Alves <palves@redhat.com>
1258
1259 * xml-support.c (xml_fetch_content_from_file): Call
1260 unique_ptr::release() instead unique_ptr::get() when passing
1261 through xrealloc.
1262
d3037ba6
YQ
12632017-10-17 Yao Qi <yao.qi@linaro.org>
1264
1265 * regcache.c (regcache::xfer_part): Remove parameters read and
1266 write, add parameter is_raw. All callers are updated.
1267
83d5a34d
KS
12682017-10-16 Keith Seitz <keiths@redhat.com>
1269
1270 * c-typeprint.c (enum access_specifier): Moved here from
1271 c_type_print_base.
1272 (output_access_specifier): New function.
1273 (c_type_print_base): Consider typedefs when assessing
1274 whether access labels are needed.
1275 Use output_access_specifier as needed.
1276 Output access specifier for typedefs, if needed.
1277 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
1278 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
1279 fields.
1280 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
1281 accessor macros.
1282
87028b87
TT
12832017-10-16 Tom Tromey <tom@tromey.com>
1284
1285 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
1286 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
1287 * target.c (target_fileio_read_stralloc): Update.
1288 * sparc64-tdep.c (adi_is_addr_mapped): Update.
1289 * target.h (target_fileio_read_stralloc): Return
1290 unique_xmalloc_ptr.
1291
b7b030ad
TT
12922017-10-16 Tom Tromey <tom@tromey.com>
1293
1294 * xml-syscall.c (xml_init_syscalls_info): Update.
1295 * xml-support.c (xinclude_start_include): Update.
1296 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
1297 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
1298 (xml_fetch_content_from_file): Likewise.
1299 * osdata.c (get_osdata): Update.
1300 * target.h (target_read_stralloc, target_get_osdata): Return
1301 unique_xmalloc_ptr.
1302 * solib-aix.c (solib_aix_get_library_list): Update.
1303 * solib-target.c (solib_target_current_sos): Update.
1304 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
1305 * xml-tdesc.c (fetch_available_features_from_target): Update.
1306 (target_fetch_description_xml): Update.
1307 (file_read_description_xml): Update.
1308 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
1309 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
1310 (remote_pid_to_exec_file): Update.
1311 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
1312 (target_get_osdata): Likewise.
1313
b80406ac
TT
13142017-10-16 Tom Tromey <tom@tromey.com>
1315
1316 * remote.c (remote_register_number_and_offset): Use std::vector.
1317 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
1318 (putpkt_binary): Use gdb::def_vector.
1319 (compare_sections_command): Use gdb::byte_vector.
1320
a90ecff8
TT
13212017-10-16 Tom Tromey <tom@tromey.com>
1322
1323 * ppc-linux-nat.c (hwdebug_insert_point): Use
1324 gdb::unique_xmalloc_ptr, XDUP.
1325
2dc0e219
TT
13262017-10-16 Tom Tromey <tom@tromey.com>
1327
1328 * probe.c (parse_probes): Use std::string.
1329 (info_probes_for_ops, enable_probes_command)
1330 (disable_probes_command): Remove cleanups.
1331
b05628f0
TT
13322017-10-16 Tom Tromey <tom@tromey.com>
1333
1334 * buildsym.c (block_compar): Remove.
1335 (end_symtab_get_static_block): Use std::vector.
1336
a79b1bc6
SM
13372017-10-16 Simon Marchi <simon.marchi@ericsson.com>
1338
1339 * memrange.h (struct mem_range): Define operator< and operator==.
1340 (mem_range_s): Remove.
1341 (DEF_VEC_O (mem_range_s)): Remove.
1342 (normalize_mem_ranges): Change parameter type to std::vector.
1343 * memrange.c (compare_mem_ranges): Remove.
1344 (normalize_mem_ranges): Change parameter type to std::vector,
1345 adjust to vector change.
1346 * exec.c (section_table_available_memory): Return vector, remove
1347 parameter.
1348 (section_table_read_available_memory): Adjust to std::vector
1349 change.
1350 * remote.c (remote_read_bytes): Adjust to std::vector
1351 change.
1352 * tracepoint.h (traceframe_available_memory): Change parameter
1353 type to std::vector.
1354 * tracepoint.c (traceframe_available_memory): Change parameter
1355 type to std::vector, adjust.
1356 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
1357 std::vector change.
1358 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1359 unittests/memrange-selftests.c.
1360 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
1361 * gdb/unittests/memrange-selftests.c: New file.
1362
63f0e930
PA
13632017-10-16 Pedro Alves <palves@redhat.com>
1364
1365 * elfread.c (probe_key_free): Rename range-for variable.
1366 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
1367 (find_probe_by_pc, collect_probes): Rename range-for variable.
1368
c40c7bfc
YQ
13692017-10-16 Yao Qi <yao.qi@linaro.org>
1370
1371 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
1372 * features/tic6x-c62x.c: Remove.
1373 * features/tic6x-c64x-linux.c: Remove.
1374 * features/tic6x-c64x.c: Remove.
1375 * features/tic6x-c64xp-linux.c: Remove.
1376 * features/tic6x-c64xp.c: Remove.
1377 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
1378 initialize_tdesc_tic6x_*_linux functions.
1379 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
1380 initialize_tdesc_tic6x_* functions.
1381
df27ae6a
YQ
13822017-10-16 Yao Qi <yao.qi@linaro.org>
1383
1384 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
1385 tic6x-c62x.
1386 * regformats/tic6x-c62x.dat: Remove.
1387 * regformats/tic6x-c64x.dat: Remove.
1388 * regformats/tic6x-c64xp.dat: Remove.
1389
86766165
SM
13902017-10-15 Simon Marchi <simon.marchi@ericsson.com>
1391
1392 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
1393 (the !HAVE_LIBEXPAT version).
1394
824dfcc3
SM
13952017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1396
1397 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
1398 const.
1399
2098b393
SM
14002017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1401
1402 * target.h: Include tracepoint.h.
1403 (enum trace_find_type): Move to tracepoint.h.
1404 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
1405 * tracepoint.h: Don't include target.h
1406 (enum trace_find_type): Move from target.h.
1407 (parse_traceframe_info): Return a unique ptr.
1408 * tracepoint.c (current_traceframe_info): Change type to unique
1409 ptr.
1410 (free_traceframe_info): Remove.
1411 (clear_traceframe_info): Don't manually free
1412 current_traceframe_info.
1413 (free_result): Remove.
1414 (parse_traceframe_info): Return a unique ptr.
1415 (get_traceframe_info): Adjust to unique ptr.
1416 * ctf.c (ctf_traceframe_info): Return a unique ptr.
1417 * remote.c (remote_traceframe_info): Return a unique ptr.
1418 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
1419 ptr.
1420 * target-debug.h (target_debug_print_traceframe_info_up): New
1421 macro.
1422 * target-delegates.c: Regenerate.
1423
4cdd21a8
SM
14242017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1425
1426 * memrange.h (struct mem_range): Add constructors.
1427 * tracepoint.h (struct traceframe_info) <memory>: Change type to
1428 std::vector<mem_range>.
1429 * tracepoint.c (free_traceframe_info): Don't manually free
1430 vector.
1431 (traceframe_info_start_memory): Adjust to vector change.
1432 (traceframe_available_memory): Likewise.
1433 * tracefile-tfile.c (build_traceframe_info): Likewise.
1434 * ctf.c (ctf_traceframe_info): Likewise.
1435
d0d292a2
SM
14362017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1437
1438 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
1439 std::vector<int>.
1440 * tracepoint.c (free_traceframe_info): Deallocate with delete.
1441 (traceframe_info_start_tvar): Adjust to vector change.
1442 (parse_traceframe_info): Allocate with new.
1443 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
1444 vector change.
1445 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
1446 change.
1447 tfile_traceframe_info): Allocate with new.
1448 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
1449 change.
1450
8d3c73ef
SM
14512017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1452
1453 * tracepoint.c (traceframe_info): Rename to...
1454 (current_traceframe_info): ...this.
1455 (clear_traceframe_info): Adjust.
1456 (get_traceframe_info): Adjust.
1457
b129dcac
SM
14582017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1459
1460 * nat/linux-osdata.c: Include algorithm.
1461 (compare_processes): Remove.
1462 (struct pid_pgid_entry): New struct.
1463 (linux_xfer_osdata_processgroups): Use std::vector instead of
1464 XNEWVEC.
1465
af5bf4ad
SM
14662017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1467
1468 * objfiles.h: Don't include symfile.h.
1469 (struct partial_symbol): Remove forward-declaration.
1470 (struct objfile) <global_psymbols, static_psymbols>: Change type
1471 to std::vector<partial_symbol *>.
1472 * objfiles.c (objfile::objfile): Don't memset those fields.
1473 (objfile::~objfile): Don't free those fields.
1474 * psympriv.h (struct psymbol_allocation_list): Remove
1475 forward-declaration.
1476 (add_psymbol_to_list): Change psymbol_allocation_list parameter
1477 to std::vector.
1478 (start_psymtab_common): Change parameters to std::vector.
1479 * psymtab.c: Include algorithm.
1480 (require_partial_symbols): Call shrink_to_fit.
1481 (find_pc_sect_psymbol): Adjust to vector change.
1482 (match_partial_symbol): Likewise.
1483 (lookup_partial_symbol): Likewise.
1484 (psym_relocate): Likewise.
1485 (dump_psymtab): Likewise.
1486 (recursively_search_psymtabs): Likewise.
1487 (compare_psymbols): Remove.
1488 (sort_pst_symbols): Adjust to vector change.
1489 (start_psymtab_common): Likewise.
1490 (end_psymtab_common): Likewise.
1491 (psymbol_bcache_full): De-constify return value.
1492 (add_psymbol_to_bcache): Likewise.
1493 (extend_psymbol_list): Remove.
1494 (append_psymbol_to_list): Adjust to vector change.
1495 (add_psymbol_to_list): Likewise.
1496 (init_psymbol_list): Likewise.
1497 (maintenance_info_psymtabs): Likewise.
1498 (maintenance_check_psymtabs): Likewise.
1499 * symfile.h (struct psymbol_allocation_list): Remove.
1500 * symfile.c (reread_symbols): Adjust to vector change.
1501 * dbxread.c (start_psymtab): Change type of parameters.
1502 (dbx_symfile_read): Adjust to vector change.
1503 (read_dbx_symtab): Likewise.
1504 (start_psymtab): Change type of parameters.
1505 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
1506 (create_partial_symtab): Likewise.
1507 (add_partial_symbol): Likewise.
1508 (write_one_signatured_type): Likewise.
1509 (recursively_write_psymbols): Likewise.
1510 * mdebugread.c (parse_partial_symbols): Likewise.
1511 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
1512 (scan_xcoff_symtab): Adjust to vector change.
1513 (xcoff_initial_scan): Likewise.
1514
3ec5942f
SM
15152017-10-13 Simon Marchi <simon.marchi@ericsson.com>
1516
1517 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
1518
2399fe6a
YQ
15192017-10-13 Yao Qi <yao.qi@linaro.org>
1520
1521 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
1522 Remove s390x-*-expedite, add s390x-expedite.
1523
4bf3f4a8
YQ
15242017-10-13 Yao Qi <yao.qi@linaro.org>
1525
1526 * features/s390-gs-linux64.c: Regenerated.
1527 * features/s390x-gs-linux64.c: Regenerated.
1528
9e86da07
TT
15292017-10-13 Tom Tromey <tom@tromey.com>
1530
1531 * compile/compile-object-run.c (do_module_cleanup): Use delete.
1532 * solib.c (update_solib_list, reload_shared_libraries_1): Use
1533 delete.
1534 * symfile.c (symbol_file_add_with_addrs): Use new.
1535 (symbol_file_add_separate): Update comment.
1536 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
1537 * jit.c (jit_object_close_impl): Use new.
1538 (jit_unregister_code): Use delete.
1539 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
1540 (~objfile): Rename from free_objfile.
1541 (free_objfile_separate_debug, do_free_objfile_cleanup)
1542 (free_all_objfiles, objfile_purge_solibs): Use delete.
1543 * objfiles.h (struct objfile): Add constructor and destructor.
1544 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
1545 (allocate_objfile, free_objfile): Don't declare.
1546 (struct objstats): Add initializers.
1547
c2508e90
SM
15482017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1549
1550 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
1551 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
1552 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
1553 * gdbarch.h: Regenerate.
1554 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
1555 Adjust comment.
1556 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
1557 (i386_displaced_step_fixup): Adjust comment.
1558 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
1559
a900ff72
TT
15602017-10-12 Tom Tromey <tom@tromey.com>
1561
1562 * prologue-value.h (pv_area::store_would_trash): Return bool.
1563 (pv_area::find_reg): Likewise.
1564 * prologue-value.c (pv_area::store_would_trash): Return bool.
1565 (pv_area::find_reg): Likewise.
1566
f7b7ed97
TT
15672017-10-12 Tom Tromey <tom@tromey.com>
1568
1569 * s390-linux-tdep.c (s390_store, s390_load)
1570 (s390_check_for_saved, s390_analyze_prologue): Update.
1571 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
1572 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
1573 * prologue-value.h (class pv_area): Move from prologue-value.c.
1574 Change names of members. Add constructor, destructor, member
1575 functions.
1576 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
1577 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
1578 (pv_area_fetch, pv_area_scan): Don't declare.
1579 * prologue-value.c (struct pv_area::area_entry): Now member of
1580 pv_area.
1581 (struct pv_area): Move to prologue-value.h.
1582 (pv_area::pv_area): Rename from make_pv_area.
1583 (pv_area::~pv_area): Rename from free_pv_area.
1584 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
1585 (clear_entries, find_entry, overlaps, store_would_trash, store)
1586 (fetch, find_reg, scan): Now member of pv_area.
1587 Remove "area" argument. Update.
1588 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
1589 Update.
1590 * mn10300-tdep.c (push_reg, check_for_saved)
1591 (mn10300_analyze_prologue): Update.
1592 * mep-tdep.c (is_arg_spill, check_for_saved)
1593 (mep_analyze_prologue): Update.
1594 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
1595 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
1596 (m32c_is_struct_return, m32c_analyze_prologue): Update.
1597 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
1598 Update.
1599 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
1600 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
1601
466eecee
SM
16022017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1603
1604 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
1605 * linux-nat.c (linux_nat_delete_thread): New variable.
1606 (lwp_free): Invoke linux_nat_delete_thread if set.
1607 (linux_nat_set_delete_thread): New function.
1608 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
1609 thread delete callback.
1610 * arm-linux-nat.c (arm_linux_delete_thread): New function.
1611 (_initialize_arm_linux_nat): Assign thread delete callback.
1612 * s390-linux-nat.c (s390_delete_thread): New function.
1613 (_initialize_s390_nat): Assign thread delete callback.
1614 * x86-linux-nat.c (x86_linux_add_target): Likewise.
1615 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
1616 function.
1617 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
1618 declaration.
1619 * nat/x86-linux.c (x86_linux_delete_thread): New function.
1620 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
1621
f71c8822
TT
16222017-10-09 Tom Tromey <tom@tromey.com>
1623
1624 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
1625 std::string.
1626 * tui/tui-layout.c (enum tui_status): Use std::string.
1627
981a3fb3
TT
16282017-10-11 Tom Tromey <tom@tromey.com>
1629
1630 * gdbthread.h (thread_command): Constify.
1631 * inferior.h (detach_command): Constify.
1632 * top.h (set_history, show_history): Constify.
1633 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
1634 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
1635 * bsd-kvm.c (bsd_kvm_cmd): Constify.
1636 * printcmd.c (set_command): Constify.
1637 (non_const_set_command): New function.
1638 * dcache.c (set_dcache_command, show_dcache_command): Constify.
1639 * breakpoint.c (enable_command, disable_command, delete_command)
1640 (catch_command, tcatch_command, set_breakpoint_cmd)
1641 (show_breakpoint_cmd): Constify.
1642 * macrocmd.c (macro_command): Constify.
1643 * infcmd.c (unset_command, kill_command, detach_command)
1644 (info_proc_cmd): Constify.
1645 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
1646 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
1647 (info_auto_load_cmd): Constify.
1648 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
1649 (unset_tdesc_cmd): Constify.
1650 * ada-lang.c (set_ada_command, show_ada_command)
1651 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
1652 * guile/guile.c (set_guile_command, show_guile_command)
1653 (info_guile_command): Constify.
1654 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
1655 Constify.
1656 * skip.c (skip_command): Constify.
1657 * compile/compile.c (_initialize_compile): Constify.
1658 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
1659 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
1660 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
1661 (maint_btrace_pt_show_cmd): Constify.
1662 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
1663 Constify.
1664 * python/python.c (user_show_python, user_set_python): Constify.
1665 * mips-tdep.c (set_mips_command, show_mips_command)
1666 (set_mipsfpu_command): Constify.
1667 * record-btrace.c (cmd_record_btrace_start)
1668 (cmd_set_record_btrace, cmd_show_record_btrace)
1669 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
1670 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
1671 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
1672 Constify.
1673 * symfile.c (overlay_command): Constify.
1674 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
1675 * cli/cli-logging.c (set_logging_command, show_logging_command):
1676 Constify.
1677 * cli/cli-dump.c (dump_command, append_command)
1678 (srec_dump_command, ihex_dump_command, verilog_dump_command)
1679 (tekhex_dump_command, binary_dump_command)
1680 (binary_append_command): Constify.
1681 * cli/cli-decode.c (struct cmd_list_element): Change type of
1682 "fun".
1683 * cli/cli-cmds.c (info_command, show_command, set_debug)
1684 (show_debug): Constify.
1685 (show_command): Add non-const overload.
1686 * top.c (set_history, show_history): Constify.
1687 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
1688 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
1689 * target.c (target_command): Constify.
1690 * sparc64-tdep.c (info_adi_command): Constify.
1691 * record-full.c (cmd_record_full_start): Constify.
1692 (set_record_full_command): Constify. Fix typo.
1693 (show_record_full_command): Constify.
1694 * thread.c (thread_command, thread_apply_command): Constify.
1695 * memattr.c (dummy_cmd): Constify.
1696 * value.c (function_command): Constify.
1697 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
1698 * probe.c (info_probes_command): Constify.
1699 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
1700 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
1701 (show_thread_cmd, set_thread_default_cmd)
1702 (show_thread_default_cmd): Constify.
1703 (check_empty): Constify.
1704 * tracepoint.c (tfind_command): Constify.
1705 * cp-support.c (maint_cplus_command): Constify.
1706 * windows-tdep.c (info_w32_command): Constify.
1707 * record.c (cmd_record_start, set_record_command)
1708 (show_record_command, info_record_command, cmd_record_goto):
1709 Constify.
1710 * ravenscar-thread.c (set_ravenscar_command)
1711 (show_ravenscar_command): Constify.
1712 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
1713 Constify.
1714 (add_internal_problem_command): Remove casts.
1715 * arc-tdep.c (maintenance_print_arc_command): Constify.
1716 * valprint.c (set_print, show_print, set_print_raw)
1717 (show_print_raw): Constify.
1718 * maint.c (maintenance_command, maintenance_info_command)
1719 (maintenance_print_command, maintenance_set_cmd)
1720 (maintenance_show_cmd, set_per_command_cmd)
1721 (show_per_command_cmd, maintenance_check_command): Constify.
1722 * language.c (set_check, show_check): Constify.
1723 * typeprint.c (show_print_type, set_print_type): Constify.
1724 * go32-nat.c (go32_info_dos_command): Constify.
1725
fdf44873
TT
17262017-10-11 Tom Tromey <tom@tromey.com>
1727
1728 * breakpoint.c (prepare_re_set_context): Remove.
1729 (breakpoint_re_set_one): Update. Don't use cleanups.
1730 (breakpoint_re_set): Use scoped_restore, std::string, and
1731 scoped_restore_current_language.
1732
81b1e71c
TT
17332017-10-11 Tom Tromey <tom@tromey.com>
1734
1735 * breakpoint.c (commands_command_1): Use std::string.
1736 (cleanup_executing_breakpoints): Remove.
1737 (bpstat_do_actions_1): Use scoped_restore.
1738 (bpstat_check_watchpoint): Use std::string.
1739 (decode_static_tracepoint_spec): Likewise.
1740 (break_range_command): Likewise.
1741 (watch_command_1): Likewise.
1742 (compare_breakpoints): Change argument types.
1743 (clear_command): Use std::vector.
1744 (cleanup_executing_breakpoints): Remove.
1745 (update_global_location_list): Use unique_xmalloc_ptr.
1746 (strace_command): Remove unused declaration.
1747
4f9d9906
JB
17482017-10-11 John Baldwin <jhb@FreeBSD.org>
1749
1750 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
1751 * NEWS: Mention new FreeBSD/arm native configuration.
1752 * configure.host: Add arm*-*-freebsd*.
1753 * configure.nat: Likewise.
1754 * arm-fbsd-nat.c: New file.
1755
7176dfd2
JB
17562017-10-11 John Baldwin <jhb@FreeBSD.org>
1757
1758 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
1759 (ALLDEPFILES): Add arm-fbsd-tdep.c.
1760 * NEWS: Mention new FreeBSD/arm target.
1761 * configure.tgt: Add arm*-*-freebsd*.
1762 * arm-fbsd-tdep.c: New file.
1763 * arm-fbsd-tdep.h: New file.
1764
fe220226
MR
17652017-10-11 Maciej W. Rozycki <macro@imgtec.com>
1766
1767 * linux-tdep.c (linux_make_corefile_notes): Remove call to
1768 `gdbarch_elfcore_write_linux_prpsinfo'.
1769 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
1770 method.
1771 (elf_internal_linux_prpsinfo): Remove declaration.
1772 * gdbarch.h: Regenerate.
1773 * gdbarch.c: Regenerate.
1774
a2f63b2e
MR
17752017-10-11 Maciej W. Rozycki <macro@imgtec.com>
1776
1777 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
1778 `set_gdbarch_elfcore_write_linux_prpsinfo'.
1779
458ca1d0
PA
17802017-10-11 Pedro Alves <palves@redhat.com>
1781
1782 * breakpoint.c (reattach_breakpoints): Delete.
1783 * breakpoint.h (reattach_breakpoints): Delete.
1784
905014d7
SM
17852017-10-11 Simon Marchi <simon.marchi@ericsson.com>
1786
1787 * symfile.c (registered_sym_fns): Make struct, not typedef.
1788 (DEF_VEC_O (registered_sym_fns)): Remove.
1789 (symtab_fns): Change type to std::vector.
1790 (add_symtab_fns): Adjust.
1791 (find_sym_fns): Adjust.
1792
56d704da
AK
17932017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
1794
1795 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
1796 * arc-tdep.h (arc_arch_is_em): New function.
1797 (arc_arch_is_hs): Likewise.
1798
7fa29be9
EB
17992017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
1800
1801 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
1802 parentheses in the declaration.
1803 (macro_lookup_inclusion): Likewise.
1804 (macro_lookup_definition): Likewise.
1805 * p-lang.h (pascal_builtin_types): Likewise.
1806 * tui/tui-data.c (tui_win_list): Likewise.
1807 * tui/tui-data.h (tui_win_list): Likewise.
1808 * utils.h (make_cleanup_free_section_addr_info): Likewise.
1809
d9b477e3
KB
18102017-10-11 Mark Rages <markrages@gmail.com>
1811
1812 * target-memory.c (block_boundaries): Fix for block address not
1813 aligned on block size.
1814
65630365
PA
18152017-10-10 Pedro Alves <palves@redhat.com>
1816 Tom Tromey <tom@tromey.com>
1817
1818 * breakpoint.c (struct captured_breakpoint_query_args)
1819 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
1820 (print_breakpoint): New.
1821 * breakpoint.h (print_breakpoint): Declare.
1822 * common/common-exceptions.h (enum return_reason): Remove
1823 references to catch_exceptions.
1824 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
1825 Delete.
1826 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
1827 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
1828 * gdb.h: Delete.
1829 * gdbthread.h (thread_select): Declare.
1830 * mi/mi-cmd-break.c: Don't include gdb.h.
1831 (breakpoint_notify): Use print_breakpoint.
1832 * mi/mi-cmd-catch.c: Don't include gdb.h.
1833 * mi/mi-interp.c: Don't include gdb.h.
1834 (mi_print_breakpoint_for_event): New.
1835 (mi_breakpoint_created, mi_breakpoint_modified): Use
1836 mi_print_breakpoint_for_event.
1837 * mi/mi-main.c: Don't include gdb.h.
1838 (mi_cmd_thread_select): Parse the global thread ID here. Use
1839 thread_select instead of gdb_thread_select.
1840 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
1841 of using gdb_list_thread_ids.
1842 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
1843 FILEIO_ENOSYS here.
1844 (remote_fileio_request): Use TRY/CATCH instead of
1845 catch_exceptions.
1846 * symfile-mem.c (struct symbol_file_add_from_memory_args)
1847 (symbol_file_add_from_memory_wrapper): Delete.
1848 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
1849 * thread.c: Don't include gdb.h.
1850 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
1851 (thread_alive): Use thread_select.
1852 (do_captured_thread_select): Delete, parts salvaged as ...
1853 (thread_select): ... this new function.
1854 (gdb_thread_select): Delete.
1855
bf469271
PA
18562017-10-10 Pedro Alves <palves@redhat.com>
1857 Tom Tromey <tom@tromey.com>
1858
1859 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
1860 and reverse logic.
1861 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
1862 No longer macros. Instead ...
1863 (enum wp_check_result): They're now values of this new
1864 enumeration.
1865 (watchpoint_check): Change return type to wp_check_result and
1866 parameter type to bpstat.
1867 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
1868 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
1869 catch_errors. Reverse logic of watchpoint_check call.
1870 (breakpoint_re_set_one): Now returns void and takes a breakpoint
1871 pointer as parameter.
1872 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
1873 * common/common-exceptions.c (throw_exception_sjlj): Update
1874 comments to avoid mentioning catch_errors.
1875 * exceptions.c (catch_errors): Delete.
1876 * exceptions.h: Update comments to avoid mentioning catch_errors.
1877 (catch_errors_ftype, catch_errors): Delete.
1878 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
1879 (hook_stop_stub): Delete.
1880 (restore_selected_frame): Change return type to void, and
1881 parameter type to const frame_id &.
1882 (restore_infcall_control_state): Use TRY/CATCH instead of
1883 catch_errors.
1884 * main.c (captured_command_loop): Return void and remove
1885 parameter. Remove references to catch_errors.
1886 (captured_main): Use TRY/CATCH instead of catch_errors.
1887 * objc-lang.c (objc_submethod_helper_data)
1888 (find_objc_msgcall_submethod_helper): Delete.
1889 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
1890 catch_errors.
1891 * record-full.c (record_full_message): Return void.
1892 (record_full_message_args, record_full_message_wrapper): Delete.
1893 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
1894 instead of catch_errors.
1895 * solib-aix.c (solib_aix_open_symbol_file_object): Change
1896 parameter type to int.
1897 * solib-darwin.c (open_symbol_file_object): Ditto.
1898 * solib-dsbt.c (open_symbol_file_object): Ditto.
1899 * solib-frv.c (open_symbol_file_object): Ditto.
1900 * solib-svr4.c (open_symbol_file_object): Ditto.
1901 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
1902 * solib.c (update_solib_list): Use TRY/CATCH instead of
1903 catch_errors.
1904 * solist.h (struct target_so_ops) <open_symbol_file_object>:
1905 Change type.
1906 * symmisc.c (struct print_symbol_args): Remove.
1907 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
1908 (print_symbol): Change type.
1909 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
1910 and remove parameters.
1911 (catch_errors): New.
1912 (get_windows_debug_event): Adjust.
1913
1a56bfa5
TT
19142017-10-09 Tom Tromey <tom@tromey.com>
1915
1916 * mi/mi-main.c (free_splay_tree): Remove.
1917 (list_available_thread_groups): Use splay_tree_up.
1918 * common/gdb_splay_tree.h: New file.
1919
0c478e2d
TT
19202017-10-09 Tom Tromey <tom@tromey.com>
1921
1922 * mi/mi-main.c (do_nothing): Remove.
1923 (list_available_thread_groups): Update.
1924
cbd2b4e3
PA
19252017-10-09 Pedro Alves <palves@redhat.com>
1926
1927 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
1928 reading registers when switching context.
1929
a181c0bf
JB
19302017-10-09 John Baldwin <jhb@FreeBSD.org>
1931
1932 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
1933 (fbsd_convert_siginfo): Likewise.
1934 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
1935
6e66f753
SM
19362017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
1937
1938 * configure.ac (try_guile_versions): Remove guile-2.2.
1939 * configure: Regenerate.
1940
890e9790
TT
19412017-10-09 Tom Tromey <tom@tromey.com>
1942
1943 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
1944 (COMPILE.pre): Use $(CXX).
1945
109483d9
PA
19462017-10-09 Pedro Alves <palves@redhat.com>
1947
1948 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
1949 Use bool.
1950 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
1951 * cp-support.h (cp_remove_params): Now returns a
1952 gdb::unique_xmalloc_ptr.
1953 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
1954 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
1955 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
1956 returning a gdb::unique_xmalloc_ptr.
1957 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
1958 * stack.c (find_frame_funname): Adjust to cp_remove_params
1959 returning a gdb::unique_xmalloc_ptr.
1960
791afaa2
TT
19612017-10-08 Tom Tromey <tom@tromey.com>
1962
1963 * dwarf2read.c (dwarf2_get_dwz_file): Use
1964 gdb::unique_xmalloc_ptr.
1965 (find_slot_in_mapped_hash): Likewise.
1966 (dwarf2_physname): Likewise.
1967 (create_dwo_unit_in_dwp_v1): Use std::string.
1968 (create_dwo_unit_in_dwp_v2): Likewise.
1969 (lookup_dwo_cutu): Likewise.
1970 (inherit_abstract_dies): Use std::vector.
1971 (read_array_type): Likewise.
1972 (dwarf_decode_macros): Remove unused declaration.
1973 (unsigned_int_compar): Remove.
1974 (dwarf2_build_psymtabs_hard): Use scoped_restore.
1975 (psymtabs_addrmap_cleanup): Remove.
1976
30a9c02f
TT
19772017-10-08 Tom Tromey <tom@tromey.com>
1978
1979 * frame-unwind.c (frame_unwind_try_unwinder): Update.
1980 * frame.h (frame_cleanup_after_sniffer): Declare.
1981 (frame_prepare_for_sniffer): Return void.
1982 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
1983 type of argument.
1984 (frame_prepare_for_sniffer): Return void.
1985
757325a3
TT
19862017-10-08 Tom Tromey <tom@tromey.com>
1987
1988 * utils.h (make_cleanup_value_free): Remove.
1989 * utils.c (do_value_free, struct cleanup): Remove.
1990 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
1991 Use gdb_value_up.
1992 * value.h (struct value_deleter): New.
1993 (gdb_value_up): New typedef.
1994
b9c04fb2
TT
19952017-10-08 Tom Tromey <tom@tromey.com>
1996
1997 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
1998 (make_cleanup_free_search_symbols): Remove.
1999 (search_symbols): Return std::vector.
2000 (symbol_search::compare_search_syms): Now member of
2001 symbol_search. Change arguments.
2002 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
2003 (symtab_symbol_info, rbreak_command): Update.
2004 * symtab.h (struct symbol_search) <next>: Remove.
2005 Add constructors.
2006 (symbol_search::operator<): New function.
2007 (symbol_search::operator==): New function.
2008 (search_symbols): Remove std::vector.
2009 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
2010 (symbol_search::compare_search_syms): Declare.
2011
0d28b0a5
YQ
20122017-10-06 Yao Qi <yao.qi@linaro.org>
2013
2014 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
2015 arch/aarch64-insn.o.
2016 Remove one rule.
2017 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
2018
71917808
YQ
20192017-10-06 Yao Qi <yao.qi@linaro.org>
2020
2021 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
2022 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
2023 arch/arm-linux.o respectively.
2024 * configure.tgt: Likewise.
2025
2081b2b2
YQ
20262017-10-06 Yao Qi <yao.qi@linaro.org>
2027
2028 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
2029 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
2030
a1b85d28
PA
20312017-10-06 Pedro Alves <palves@redhat.com>
2032
2033 * windows-nat.c: Include <algorithm>.
2034
d97987e2
YQ
20352017-10-06 Yao Qi <yao.qi@linaro.org>
2036
2037 * configure.tgt (i386_tobjs): New variable.
2038 (amd64_tobjs): New variable.
2039 Set $cpu_obs and $os_obs.
2040
f38307f5
YQ
20412017-10-06 Yao Qi <yao.qi@linaro.org>
2042
2043 * Makefile.in (CONFIG_SRC_SUBDIR): New.
2044 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
2045 (clean): Remove object files and dependency files.
2046 (distclean): Remove the directory.
2047 * configure.ac: Invoke AC_CONFIG_COMMANDS.
2048 * configure: Re-generated.
2049 * configure.tgt: Replace amd64.o with arch/amd64.o.
2050
2f924de6
JM
20512017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
2052
2053 PR build/22188
2054 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
2055 and SETEND.
2056
2fd9d7ca
PA
20572017-10-05 Pedro Alves <palves@redhat.com>
2058
2059 * linux-nat.c (linux_child_follow_fork): When following the parent
2060 and detaching the child, consult the parent thread's architecture
2061 instead of the child's.
2062
d13b8493
UW
20632017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
2064
2065 * ax.h: Do not include "doublest.h".
2066 (union agent_val): Remove.
2067
3b4b2f16
UW
20682017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
2069
2070 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
2071 (decimal_to_string): Return std::string object.
2072 (decimal_from_string): Accept std::string object. Return bool.
2073 (decimal_from_integral, decimal_from_doublest): Remove.
2074 (decimal_from_longest): Add prototype.
2075 (decimal_from_ulongest): Likewise.
2076 (decimal_to_longest): Likewise.
2077 (decimal_from_doublest): Likewise.
2078 * dfp.c: Do not include "gdbtypes.h" or "value.h".
2079 (MAX_DECIMAL_STRING): Move here.
2080 (decimal_to_string): Return std::string object.
2081 (decimal_from_string): Accept std::string object. Return bool.
2082 (decimal_from_integral): Remove, replace by ...
2083 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
2084 (decimal_to_longest): New function.
2085 (decimal_from_floating): Remove, replace by ...
2086 (decimal_from_doublest): ... this new function.
2087 (decimal_to_doublest): Update to new decimal_to_string interface.
2088
2089 * value.c (unpack_long): Use decimal_to_longest.
2090 * valops.c (value_cast): Use decimal_from_doublest instead of
2091 decimal_from_floating. Use decimal_from_[u]longest isntead of
2092 decimal_from_integral.
2093 * valarith.c (value_args_as_decimal): Likewise.
2094 * valprint.c (print_decimal_floating): Update to new
2095 decimal_to_string interface.
2096 * printcmd.c (printf_decfloat): Likewise.
2097 * c-exp.y (parse_number): Update to new decimal_from_string interface.
2098
1841ee5d
UW
20992017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
2100
2101 * doublest.h: Do not include "floatformat.h". Remove stale comments.
2102 * gdbtypes.c: Include "floatformat.h".
2103 * value.c: Likewise.
2104 * m68k-tdep.c: Likewise.
2105
2106 * findvar.c: Do not include "floatformat.h".
2107 * amd64-darwin-tdep.c: Likewise.
2108 * arm-linux-tdep.c: Likewise.
2109 * i386-darwin-tdep.c: Likewise.
2110 * i387-tdep.c: Likewise.
2111 * m68k-linux-tdep.c: Likewise.
2112 * mep-tdep.c: Likewise.
2113 * mips-tdep.c: Likewise.
2114 * nios2-tdep.c: Likewise.
2115 * s390-linux-tdep.c: Likewise.
2116 * sparc-obsd-tdep.c: Likewise.
2117 * sparc-tdep.c: Likewise.
2118 * sparc64-tdep.c: Likewise.
2119 * spu-tdep.c: Likewise.
2120 * tic6x-tdep.c: Likewise.
2121 * tilegx-tdep.c: Likewise.
2122 * vax-tdep.c: Likewise.
2123 * xstormy16-tdep.c: Likewise.
2124 * xtensa-tdep.c: Likewise.
2125
2126 * top.c: Do not include "doublest.h".
2127 * aarch64-tdep.c: Likewise.
2128 * alpha-tdep.c: Likewise.
2129 * arm-linux-tdep.c: Likewise.
2130 * m68k-linux-tdep.c: Likewise.
2131 * tilegx-tdep.c: Likewise.
2132 * xstormy16-tdep.c: Likewise.
2133
a80a6471
JB
21342017-10-05 John Baldwin <jhb@FreeBSD.org>
2135
2136 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
2137 (mipsn32_fbsd_sigframe): Define.
2138 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
2139 for FreeBSD/mipsn32.
2140
12c4bd7f
JB
21412017-10-05 John Baldwin <jhb@FreeBSD.org>
2142
2143 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
2144 AT_HWCAP.
2145
c91933e9
TG
21462017-10-05 Tristan Gingold <tgingold@free.fr>
2147
2148 * MAINTAINERS (Misc): Update my email address.
2149
5cd63fda
PA
21502017-10-04 Pedro Alves <palves@redhat.com>
2151
2152 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
2153 it instead of target_gdbarch.
2154 (get_remote_state, get_remote_packet_size): Adjust
2155 get_remote_arch_state calls, passing down target_gdbarch
2156 explicitly.
2157 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
2158 'gdbarch' and use it instead of target_gdbarch.
2159 (get_memory_packet_size): Adjust get_remote_arch_state calls,
2160 passing down target_gdbarch explicitly.
2161 (struct stop_reply) <arch>: New field.
2162 (remote_parse_stop_reply): Use the stopped thread's architecture,
2163 not the current inferior's. Save the architecture in the
2164 stop_reply.
2165 (process_stop_reply): Use the stop reply's architecture.
2166 (process_g_packet, remote_fetch_registers)
2167 (remote_prepare_to_store, store_registers_using_G)
2168 (remote_store_registers): Adjust get_remote_arch_state calls,
2169 using the regcache's architecture.
2170 (remote_get_trace_status): Adjust get_remote_arch_state calls,
2171 passing down target_gdbarch explicitly.
2172 * spu-multiarch.c (spu_thread_architecture): Defer to the target
2173 beneath instead of calling target_gdbarch.
2174 * target.c (default_thread_architecture): Use the specified
2175 inferior's architecture, instead of the current inferior's
2176 architecture (via target_gdbarch).
2177
ed4227b7
PA
21782017-10-04 Pedro Alves <palves@redhat.com>
2179
2180 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
2181 case.
2182 (regcache_print): Handle !target_has_registers here instead.
2183
55b11ddf
PA
21842017-10-04 Pedro Alves <palves@redhat.com>
2185
2186 * frame.c (create_test_frame): Delete.
2187 * frame.h (create_test_frame): Delete.
2188 * gdbarch-selftests.c: Include gdbthread.h and target.h.
2189 (class regcache_test): Delete.
2190 (test_target_has_registers, test_target_has_stack)
2191 (test_target_has_memory, test_target_prepare_to_store)
2192 (test_target_store_registers): New functions.
2193 (test_target_ops): New class.
2194 (register_to_value_test): Error out if there's already a
2195 process_stratum (or higher) target pushed. Create a fuller mock
2196 environment, with mock target_ops, inferior, address space, thread
2197 and inferior_ptid.
2198 * progspace.c (struct address_space): Move to ...
2199 * progspace.h (struct address_space): ... here.
2200 * regcache.h (regcache::~regcache, regcache::raw_write)
2201 [GDB_SELF_TEST]: No longer virtual.
2202
4c71c105
SM
22032017-10-04 Simon Marchi <simon.marchi@ericsson.com>
2204
2205 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
2206
73dcd72d
PA
22072017-10-04 Pedro Alves <palves@redhat.com>
2208
2209 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
2210 out of 'between TRY and CATCH'.
2211
44704526
PA
22122017-10-04 Pedro Alves <palves@redhat.com>
2213
2214 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
2215 * common/common-exceptions.h (TRY): Open an outermost scope.
2216 Expand intro comment.
2217 (CATCH): Reindent.
2218 (END_CATCH): Close the outermost scope.
2219 * completer.c (complete_line_internal): Add missing END_CATCH.
2220
bc3b087d
SDJ
22212017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2222
2223 * NEWS (Changes since GDB 8.0): Add entry about new
2224 'set-cwd-on-gdbserver' feature.
2225 (New remote packets): Add entry for QSetWorkingDir.
2226 * common/common-inferior.h (set_inferior_cwd): New prototype.
2227 * infcmd.c (set_inferior_cwd): Remove "static".
2228 (show_cwd_command): Expand text to include remote debugging.
2229 * remote.c: Add PACKET_QSetWorkingDir.
2230 (remote_protocol_features) <QSetWorkingDir>: New entry for
2231 PACKET_QSetWorkingDir.
2232 (extended_remote_set_inferior_cwd): New function.
2233 (extended_remote_create_inferior): Call
2234 "extended_remote_set_inferior_cwd".
2235 (_initialize_remote): Call "add_packet_config_cmd" for
2236 QSetWorkingDir.
2237
d092c5a2
SDJ
22382017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2239
2240 * NEWS (New commands): Mention "set/show cwd".
2241 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
2242 "cd" command's help text.
2243 * common/common-inferior.h (get_inferior_cwd): New prototype.
2244 * infcmd.c (inferior_cwd_scratch): New global variable.
2245 (set_inferior_cwd): New function.
2246 (get_inferior_cwd): Likewise.
2247 (set_cwd_command): Likewise.
2248 (show_cwd_command): Likewise.
2249 (_initialize_infcmd): Add "set/show cwd" commands.
2250 * inferior.h (class inferior) <cwd>: New field.
2251 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
2252 (fork_inferior): Change inferior's cwd before its execution.
2253 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
2254 to CreateProcess.
2255
7da0a886
SDJ
22562017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2257
2258 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
2259 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
2260 (COMMON_OBS): Add gdb_tilde_expand.o.
2261 * common/gdb_tilde_expand.c: New file.
2262 * common/gdb_tilde_expand.h: Likewise.
2263
db8dd160
MR
22642017-10-03 Maciej W. Rozycki <macro@imgtec.com>
2265
2266 * gdbarch.sh (objfile): Remove duplicate declaration.
2267 * gdbarch.h: Regenerate.
2268
f8bfbf22
TT
22692017-10-03 Tom Tromey <tom@tromey.com>
2270
2271 * utils.c (internal_vproblem): Use string_vprintf.
2272
5178ed48
TT
22732017-10-03 Tom Tromey <tom@tromey.com>
2274
2275 * printcmd.c (info_symbol_command): Use std::string.
2276
8cff8730
TT
22772017-10-03 Tom Tromey <tom@tromey.com>
2278
2279 * top.c (gdb_safe_append_history): Use std::string.
2280
895b8f30
TT
22812017-10-03 Tom Tromey <tom@tromey.com>
2282
2283 * event-top.c (stdin_event_handler): Update.
2284 * main.c (captured_main_1): Update.
2285 * top.h (make_delete_ui_cleanup): Remove.
2286 (struct ui): Add constructor and destructor.
2287 (new_ui, delete_ui): Remove.
2288 * top.c (make_delete_ui_cleanup): Remove.
2289 (new_ui_command): Use std::unique_ptr.
2290 (delete_ui_cleanup): Remove.
2291 (ui::ui): Rename from new_ui. Update.
2292 (free_ui): Remove.
2293 (ui::~ui): Rename from delete_ui. Update.
2294
0efef640
TT
22952017-10-03 Tom Tromey <tom@tromey.com>
2296
2297 * symfile.c (load_progress): Use gdb::byte_vector.
2298
245ad7d3
TT
22992017-10-03 Tom Tromey <tom@tromey.com>
2300
2301 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
2302 declaration.
2303 * printcmd.c (x_command): Remove unused declaration.
2304 * symfile.c (symbol_file_command): Remove unused declaration.
2305
e05550d7
TT
23062017-10-03 Tom Tromey <tom@tromey.com>
2307
2308 * utils.c (internal_vproblem): Use std::string.
2309 (defaulted_query): Likewise.
2310
b95de2b7
TT
23112017-10-03 Tom Tromey <tom@tromey.com>
2312
2313 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
2314 * top.c (execute_command_to_string): Update.
2315 * utils.c (make_cleanup_restore_page_info): Remove.
2316 (do_restore_page_info_cleanup): Remove.
2317 (set_batch_flag_and_restore_page_info):
2318 New.
2319 (make_cleanup_restore_page_info): Remove.
2320 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
2321 (~set_batch_flag_and_restore_page_info): New
2322 (make_cleanup_restore_uinteger): Remove.
2323 (make_cleanup_restore_integer): Remove.
2324 (struct restore_integer_closure): Remove.
2325 (restore_integer): Remove.
2326 * utils.h (struct set_batch_flag_and_restore_page_info): New
2327 class.
2328 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
2329 (make_cleanup_restore_page_info): Remove.
2330 (make_cleanup_restore_uinteger) Remove.
2331 (make_cleanup_restore_integer) Remove.
2332
07036511
TT
23332017-10-03 Tom Tromey <tom@tromey.com>
2334
2335 * record-full.h (record_full_gdb_operation_disable_set): Return
2336 scoped_restore_tmpl<int>.
2337 * infrun.c (adjust_pc_after_break): Update.
2338 (handle_signal_stop): Update.
2339 * record-full.c (record_full_gdb_operation_disable_set): Return
2340 scoped_restore_tmpl<int>.
2341 (record_full_wait_1, record_full_insert_breakpoint)
2342 (record_full_remove_breakpoint, record_full_save)
2343 (record_full_goto_insn): Update.
2344
45320ffa
TT
23452017-10-02 Tom Tromey <tom@tromey.com>
2346
2347 PR rust/22236:
2348 * rust-lang.c (rust_val_print_str): New function.
2349 (val_print_struct): Call it.
2350 (rust_subscript): Preserve name of slice type.
2351
b3e3859b
TT
23522017-10-02 Tom Tromey <tom@tromey.com>
2353
2354 * rust-lang.c (rust_subscript): Handle slices in
2355 EVAL_AVOID_SIDE_EFFECTS case.
2356
01af5e0d
TT
23572017-10-02 Tom Tromey <tom@tromey.com>
2358
2359 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
2360
888e3ddb
TT
23612017-10-02 Tom Tromey <tom@tromey.com>
2362
2363 * rust-lang.h (rust_slice_type): Add "extern".
2364
cc536b21
PA
23652017-10-02 Tom Tromey <tom@tromey.com>
2366 Pedro Alves <palves@redhat.com>
2367
2368 * ada-lang.h (ada_exc_info::operator<): Make const.
2369 (ada_exc_info::operator==): Make const.
2370 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
2371 Make const.
2372
386c8614
TT
23732017-09-29 Tom Tromey <tom@tromey.com>
2374
2375 * target.c (read_whatever_is_readable): Change type of "result".
2376 Update.
2377 (free_memory_read_result_vector): Remove.
2378 (read_memory_robust): Change return type. Update.
2379 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
2380 bin2hex, std::string.
2381 * target.h (memory_read_result_s): Remove typedef.
2382 (free_memory_read_result_vector): Remove.
2383 (read_memory_robust): Return std::vector.
2384
789c4b5e
TT
23852017-09-29 Tom Tromey <tom@tromey.com>
2386
2387 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
2388
ab816a27
TT
23892017-09-29 Tom Tromey <tom@tromey.com>
2390
2391 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
2392 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
2393 operator< and operator==.
2394 (ada_exceptions_list): Return a std::vector.
2395 * ada-lang.c (ada_exc_info::operator<): Rename from
2396 compare_ada_exception_info.
2397 (ada_exc_info::operator==): New.
2398 (sort_remove_dups_ada_exceptions_list): Change type of
2399 "exceptions".
2400 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
2401 (ada_add_global_exceptions): Likewise.
2402 (ada_exceptions_list_1): Return a std::vector.
2403 (ada_exceptions_list): Likewise.
2404
52f9abe4
TT
24052017-09-29 Tom Tromey <tom@tromey.com>
2406
2407 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
2408 'std::set *'.
2409 (print_one_inferior): Update.
2410 (free_vector_of_ints): Remove.
2411 (list_available_thread_groups): Change "ids" to std::set.
2412 (mi_cmd_list_thread_groups): Update.
2413 (struct collect_cores_data) <core>: Now a std::set.
2414 (collect_cores): Update.
2415 (unique): Remove.
2416 (print_one_inferior): Update.
2417
dcd5ddcc
TT
24182017-09-29 Tom Tromey <tom@tromey.com>
2419
2420 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
2421 (mi_execute_async_cli_command): Likewise.
2422 (mi_cmd_trace_frame_collected): Use field_fmt.
2423
45d288cc
TT
24242017-09-29 Tom Tromey <tom@tromey.com>
2425
2426 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
2427 gdb::byte_vector.
2428
6afe2f4a
TT
24292017-09-29 Tom Tromey <tom@tromey.com>
2430
2431 * mi/mi-parse.c (mi_parse): Remove unused declaration.
2432
9813429a
TT
24332017-09-29 Tom Tromey <tom@tromey.com>
2434
2435 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
2436
2d6960b4
TT
24372017-09-29 Tom Tromey <tom@tromey.com>
2438
2439 * varobj.h (varobj_gen_name): Return std::string.
2440 * varobj.c (varobj_gen_name): Return std::string.
2441 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
2442 (mi_cmd_var_delete): Don't copy "name".
2443
784c453a
TT
24442017-09-29 Tom Tromey <tom@tromey.com>
2445
2446 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
2447 (mi_cmd_break_insert_1): Update.
2448
a9bc57b9
TT
24492017-09-29 Tom Tromey <tom@tromey.com>
2450
2451 * target.h (make_scoped_defer_target_commit_resume): Update.
2452 * target.c (make_scoped_defer_target_commit_resume): Rename from
2453 make_cleanup_defer_target_commit_resume. Return a
2454 scoped_restore.
2455 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
2456
9754d8c4
TT
24572017-09-29 Tom Tromey <tom@tromey.com>
2458
2459 * main.c (captured_main_1): Remove unused declaration.
2460 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
2461
99ef965c
TT
24622017-09-29 Tom Tromey <tom@tromey.com>
2463
2464 * symtab.c (search_symbols): Remove unused outer cleanup.
2465 (make_source_files_completion_list): Remove unused declaration.
2466
42518ba7
TT
24672017-09-29 Tom Tromey <tom@tromey.com>
2468
2469 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
2470
726b2169
TT
24712017-09-29 Tom Tromey <tom@tromey.com>
2472
2473 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
2474 gdb::byte_vector.
2475
55b06432
TT
24762017-09-29 Tom Tromey <tom@tromey.com>
2477
2478 * complaints.c (vcomplaint): Use std::string.
2479
8abcee91
TT
24802017-09-29 Tom Tromey <tom@tromey.com>
2481
2482 * tracepoint.c (trace_variable_command): Use std::string.
2483 (encode_actions_1): Remove unused declarations.
2484 (create_tsv_from_upload): Use std::string.
2485
6ad94bc7
TT
24862017-09-29 Tom Tromey <tom@tromey.com>
2487
2488 * cp-support.c (gdb_demangle): Use std::string.
2489
2003f3d8
TT
24902017-09-29 Tom Tromey <tom@tromey.com>
2491
2492 * stack.c (parse_frame_specification): Use std::string
2493 (info_frame_command): Use gdb::unique_xmalloc_ptr.
2494
8f8accb5
TT
24952017-09-29 Tom Tromey <tom@tromey.com>
2496
2497 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
2498
200aa7b1
TT
24992017-09-29 Tom Tromey <tom@tromey.com>
2500
2501 * utils.c (vfprintf_maybe_filtered): Use std::string.
2502 (vfprintf_unfiltered): Likewise.
2503
606aae8a
TT
25042017-09-29 Tom Tromey <tom@tromey.com>
2505
2506 * event-top.c (top_level_prompt): Return std::string.
2507 (display_gdb_prompt): Update.
2508
bd413795
TT
25092017-09-29 Tom Tromey <tom@tromey.com>
2510
2511 * unittests/common-utils-selftests.c (format): New function.
2512 (string_vprintf_tests): New function.
2513 (_initialize_common_utils_selftests): Register new tests.
2514 * common/common-utils.c (string_vprintf): New function.
2515 * common/common-utils.h (string_vprintf): Declare.
2516
256642e8
PA
25172017-09-29 Pedro Alves <palves@redhat.com>
2518
2519 * common/rsp-low.c (unpack_varlen_hex): Constify.
2520 * common/rsp-low.h (unpack_varlen_hex): Constify.
2521 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
2522 Constify.
2523 * remote.c (remote_set_permissions, read_ptid)
2524 (remote_current_thread, remote_get_threads_with_qthreadinfo)
2525 (remote_static_tracepoint_marker_at)
2526 (remote_static_tracepoint_markers_by_strid)
2527 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
2528 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
2529 (parse_tracepoint_definition, parse_tsv_definition)
2530 (parse_static_tracepoint_marker_definition): Constify.
2531 * tracepoint.h (parse_static_tracepoint_marker_definition)
2532 (parse_trace_status, parse_tracepoint_status)
2533 (parse_tracepoint_definition, parse_tsv_definition): Constify.
2534
b6bb3468
PA
25352017-09-29 Pedro Alves <palves@redhat.com>
2536
2537 * remote.c (target_buf, target_buf_size): Delete.
2538 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
2539 Use the connection's packet buffer instead.
2540 All callers adjusted.
2541 (_initialize_remote): Remove references to target_buf and
2542 target_buf_size.
2543
b2f8eb7a
PA
25442017-09-28 Pedro Alves <palves@redhat.com>
2545
2546 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2547 unittests/common-utils-selftests.c.
2548 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
2549 (COMMON_OBS): Remove utils-selftests.o.
2550 * utils-selftests.c: Move to ...
2551 * unittests/common-utils-selftests.c: ... here and rename self
2552 test to "string_printf".
2553
08302ed2
DE
25542017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
2555
2556 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
2557 having NULL cus or tus.
2558
96a5a1d3
UW
25592017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2560
2561 * arm-tdep.c: (convert_from_extended): Remove.
2562 (convert_to_extended): Likewise.
2563 (arm_extract_return_value): Use convert_typed_floating.
2564 (arm_store_return_value): Likewise.
2565
2566 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
2567 * sh-tdep.c: Do not include "floatformat.h".
2568 (sh_littlebyte_bigword_type): New function.
2569 (sh_register_convert_to_virtual): Use convert_typed_floating.
2570 (sh_register_convert_to_raw): Likewise.
2571 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
2572 (sh64_littlebyte_bigword_type): New function.
2573 (sh64_extract_return_value): Use convert_typed_floating.
2574 (sh64_register_convert_to_virtual): Likewise.
2575 (sh64_register_convert_to_raw): Likewise.
2576
0db7851f
UW
25772017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2578
2579 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
2580 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
2581
2582 * gdbtypes.h (union type_specific): Make field floatformat hold
2583 just a single struct floatformat, not an array.
2584 (floatformat_from_type): Move here.
2585 * gdbtypes.c (floatformat_from_type): Move here. Update to
2586 changed TYPE_FLOATFORMAT definition.
2587 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
2588 (recursive_dump_type): Likewise.
2589 (init_float_type): Install correct floatformat for byte order.
2590 (arch_float_type): Likewise.
2591
77b7c781
UW
25922017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2593
2594 * gdbtypes.c (init_type): Change incoming argument from
2595 length-in-bytes to length-in-bits. Assert length is a
2596 multiple of TARGET_CHAR_BITS.
2597 (arch_type, arch_flags_type): Likewise.
2598 (init_integer_type): Update call to init_type.
2599 (init_character_type): Likewise.
2600 (init_boolean_type): Likewise.
2601 (init_float_type): Likewise.
2602 (init_decfloat_type): Likewise.
2603 (init_complex_type): Likewise.
2604 (init_pointer_type): Likewise.
2605 (objfile_type): Likewise.
2606 (arch_integer_type): Update call to arch_type.
2607 (arch_character_type): Likewise.
2608 (arch_boolean_type): Likewise.
2609 (arch_float_type): Likewise.
2610 (arch_decfloat_type): Likewise.
2611 (arch_complex_type): Likewise.
2612 (arch_pointer_type): Likewise.
2613 (gdbtypes_post_init): Likewise.
2614
2615 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
2616 (read_base_type): Likewise.
2617 * mdebugread.c (basic_type): Likewise.
2618 * stabsread.c (dbx_init_float_type): Likewise.
2619 (rs6000_builtin_type): Likewise.
2620 (read_range_type): Likewise. Also, fix call to init_integer_type
2621 with erroneous length argument.
2622
2623 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
2624 * d-lang.c (build_d_types): Likewise.
2625 * f-lang.c (build_fortran_types): Likewise.
2626 * go-lang.c (build_go_types): Likewise.
2627 * opencl-lang.c (build_opencl_types): Likewise.
2628 * jit.c (finalize_symtab): Likewise.
2629 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2630 (build_std_type_info_type): Likewise.
2631 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
2632 update call to arch_flags_type.
2633
2634 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
2635 arch_type.
2636 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
2637 * windows-tdep.c (windows_get_tlb_type): Likewise.
2638
2639 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
2640 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
2641 * m32c-tdep.c (make_types): Likewise.
2642 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
2643 (rl78_psw_type): Update call to arch_flags_type.
2644 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
2645 * rx-tdep.c (rx_psw_type): Likewise.
2646 (rx_fpsw_type): Likewise.
2647 * sparc-tdep.c (sparc_psr_type): Likewise.
2648 (sparc_fsr_type): Likewise.
2649 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
2650 (sparc64_ccr_type): Likewise.
2651 (sparc64_fsr_type): Likewise.
2652 (sparc64_fprs_type): Likewise.
2653
f21b4d5c
TT
26542017-09-27 Tom Tromey <tom@tromey.com>
2655
2656 * findcmd.c (find_command): Constify.
2657
643c2ffa
TT
26582017-09-27 Tom Tromey <tom@tromey.com>
2659
2660 * ada-tasks.c (task_command_1, task_command): Constify.
2661
510e5e56
TT
26622017-09-27 Tom Tromey <tom@tromey.com>
2663
2664 * symtab.c (maintenance_print_symbol_cache)
2665 (maintenance_flush_symbol_cache)
2666 (maintenance_print_symbol_cache_statistics): Constify.
2667
e503b191
TT
26682017-09-27 Tom Tromey <tom@tromey.com>
2669
2670 * inferior.c (detach_inferior_command, kill_inferior_command)
2671 (inferior_command): Constify.
2672
4e001312
TT
26732017-09-27 Tom Tromey <tom@tromey.com>
2674
2675 * regcache.c (regcache_print, maintenance_print_registers)
2676 (maintenance_print_raw_registers)
2677 (maintenance_print_cooked_registers)
2678 (maintenance_print_register_groups)
2679 (maintenance_print_remote_registers): Constify.
2680
77763700
TT
26812017-09-27 Tom Tromey <tom@tromey.com>
2682
2683 * printcmd.c (map_display_numbers, undisplay_command)
2684 (enable_disable_display_command, enable_display_command)
2685 (disable_display_command): Constify.
2686
4495129a
TT
26872017-09-27 Tom Tromey <tom@tromey.com>
2688
2689 * breakpoint.h (delete_command): Don't declare.
2690 * breakpoint.c (delete_command, enable_once_command)
2691 (enable_count_command, enable_delete_command, breakpoint_1)
2692 (maintenance_info_breakpoints, stopin_command, stopat_command)
2693 (delete_command, delete_trace_command, save_breakpoints)
2694 (save_breakpoints_command, save_tracepoints_command): Constify.
2695
3088cf40
TT
26962017-09-27 Tom Tromey <tom@tromey.com>
2697
2698 * macrocmd.c (macro_expand_command, macro_expand_once_command)
2699 (skip_ws, extract_identifier, macro_define_command)
2700 (macro_undef_command, macro_list_command): Constify.
2701
69f476a3
TT
27022017-09-27 Tom Tromey <tom@tromey.com>
2703
2704 * infcmd.c (environment_info, set_environment_command)
2705 (unset_environment_command, path_info, info_proc_cmd_1)
2706 (info_proc_cmd_mappings, info_proc_cmd_stat)
2707 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
2708 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
2709
c4a3e68e
TT
27102017-09-27 Tom Tromey <tom@tromey.com>
2711
2712 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
2713 Constify.
2714
c9d31bd6
TT
27152017-09-27 Tom Tromey <tom@tromey.com>
2716
2717 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
2718
1f3f85eb
TT
27192017-09-27 Tom Tromey <tom@tromey.com>
2720
2721 * demangle.c (demangle_command): Constify.
2722
9c504b5d
TT
27232017-09-27 Tom Tromey <tom@tromey.com>
2724
2725 * progspace.c (maintenance_info_program_spaces_command):
2726 Constify.
2727
6663cf91
TT
27282017-09-27 Tom Tromey <tom@tromey.com>
2729
2730 * compile/compile.c (check_raw_argument, compile_file_command)
2731 (compile_code_command, compile_print_command): Constify.
2732
34e5fa26
TT
27332017-09-27 Tom Tromey <tom@tromey.com>
2734
2735 * reggroups.c (maintenance_print_reggroups): Constify.
2736
8384c356
TT
27372017-09-27 Tom Tromey <tom@tromey.com>
2738
2739 * dwarf2read.c (save_gdb_index_command): Constify.
2740
884beb0c
TT
27412017-09-27 Tom Tromey <tom@tromey.com>
2742
2743 * stap-probe.c (info_probes_stap_command): Constify.
2744
e0b2930c
TT
27452017-09-27 Tom Tromey <tom@tromey.com>
2746
2747 * fork-child.c (unset_exec_wrapper_command): Constify.
2748
f938677d
TT
27492017-09-27 Tom Tromey <tom@tromey.com>
2750
2751 * btrace.c (get_uint, get_context_size, no_chunk)
2752 (maint_btrace_packet_history_cmd)
2753 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
2754 (maint_info_btrace_cmd): Constify.
2755
8949cb87
TT
27562017-09-27 Tom Tromey <tom@tromey.com>
2757
2758 * reverse.c (delete_bookmark_command): Constify.
2759
ac88e2de
TT
27602017-09-27 Tom Tromey <tom@tromey.com>
2761
2762 * remote.c (set_memory_packet_size)
2763 (set_memory_write_packet_size, show_memory_write_packet_size)
2764 (set_memory_read_packet_size, show_memory_read_packet_size)
2765 (compare_sections_command, packet_command, remote_put_command)
2766 (remote_get_command, remote_delete_command): Constify.
2767
bd4c9dfe
TT
27682017-09-27 Tom Tromey <tom@tromey.com>
2769
2770 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
2771 (set_mipsfpu_double_command, set_mipsfpu_none_command)
2772 (set_mipsfpu_auto_command): Constify.
2773
5e93d4c6
TT
27742017-09-27 Tom Tromey <tom@tromey.com>
2775
2776 * cli/cli-cmds.h (cd_command): Constify.
2777 * cli/cli-cmds.c (cd_command): Constify.
2778
fc41a75b
TT
27792017-09-27 Tom Tromey <tom@tromey.com>
2780
2781 * thread.c (thread_name_command, thread_find_command): Constify.
2782
67810076
TT
27832017-09-27 Tom Tromey <tom@tromey.com>
2784
2785 * probe.c (enable_probes_command, disable_probes_command):
2786 Constify.
2787
1d8b34a7
TT
27882017-09-27 Tom Tromey <tom@tromey.com>
2789
2790 * symfile.c (symbol_file_command): Constify.
2791 * gdbcore.h (deprecated_file_changed_hook): Constify.
2792 * exec.c (deprecated_file_changed_hook, exec_file_command)
2793 (file_command): Constify.
2794 * defs.h (symbol_file_command): Constify.
2795
442019e1
TT
27962017-09-27 Tom Tromey <tom@tromey.com>
2797
2798 * remote-fileio.c (set_system_call_allowed)
2799 (show_system_call_allowed): Constify.
2800
2983f7cb
TT
28012017-09-27 Tom Tromey <tom@tromey.com>
2802
2803 * tracepoint.c (delete_trace_variable_command)
2804 (tfind_end_command, tfind_start_command, tfind_pc_command)
2805 (tfind_tracepoint_command, tfind_line_command)
2806 (tfind_range_command, tfind_outside_command): Constify.
2807
4fd41b24
TT
28082017-09-27 Tom Tromey <tom@tromey.com>
2809
2810 * ax-gdb.c (maint_agent_printf_command, agent_command)
2811 (agent_eval_command): Constify.
2812
f2fc3015
TT
28132017-09-27 Tom Tromey <tom@tromey.com>
2814
2815 * tracepoint.c (info_scope_command): Constify.
2816 * python/python.c (gdbpy_decode_line): Constify.
2817 * python/py-breakpoint.c (bppy_init): Constify.
2818 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
2819 * location.h: (new_linespec_location)
2820 (string_to_event_location_basic, string_to_event_location):
2821 Constify.
2822 * location.c (new_linespec_location)
2823 (string_to_event_location_basic, string_to_event_location):
2824 Constify.
2825 * linespec.h (decode_line_with_current_source)
2826 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
2827 * linespec.c (linespec_lex_to_end)
2828 (decode_line_with_current_source)
2829 (decode_line_with_last_displayed): Constify.
2830 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
2831 Constify.
2832 * cli/cli-cmds.c (edit_command, list_command): Constify.
2833 * breakpoint.h (until_break_command, watch_command_wrapper)
2834 (awatch_command_wrapper, rwatch_command_wrapper)
2835 (init_ada_exception_breakpoint): Constify.
2836 * breakpoint.c (break_command_1, dprintf_command)
2837 (break_range_command, watch_command_wrapper)
2838 (rwatch_command_wrapper, awatch_command_wrapper)
2839 (until_break_command, init_ada_exception_breakpoint)
2840 (strace_marker_create_sals_from_location, trace_command)
2841 (ftrace_command, strace_command, struct tracepoint): Constify.
2842 * ax-gdb.c (agent_command_1): Constify.
2843 * ada-lang.c (ada_exception_sal): Constify.
2844
8c2f95f4
TT
28452017-09-27 Tom Tromey <tom@tromey.com>
2846
2847 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
2848 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
2849 (get_context_size, no_chunk, get_insn_history_modifiers)
2850 (cmd_record_insn_history, get_call_history_modifiers)
2851 (cmd_record_call_history): Constify.
2852
a0d65762
TT
28532017-09-27 Tom Tromey <tom@tromey.com>
2854
2855 * source.c (show_substitute_path_command)
2856 (unset_substitute_path_command, set_substitute_path_command):
2857 Constify.
2858
58971144
TT
28592017-09-27 Tom Tromey <tom@tromey.com>
2860
2861 * typeprint.c (maintenance_print_type): Constify.
2862 * maint.c (maintenance_dump_me, maintenance_demangle)
2863 (maintenance_time_display, maintenance_info_sections)
2864 (maintenance_print_statistics, maintenance_deprecate)
2865 (maintenance_undeprecate): Constify.
2866 (maintenance_do_deprecate): Constify. Use std::string.
2867 (maintenance_selftest): Constify.
2868 * gdbtypes.h (maintenance_print_type): Constify.
2869
c482f52c
TT
28702017-09-27 Tom Tromey <tom@tromey.com>
2871
2872 * hppa-tdep.c (unwind_command): Constify.
2873
e100df1a
TT
28742017-09-27 Tom Tromey <tom@tromey.com>
2875
2876 * target-descriptions.c (unset_tdesc_filename_cmd)
2877 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
2878 Constify.
2879
31d56ade
TT
28802017-09-27 Tom Tromey <tom@tromey.com>
2881
2882 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
2883
b961da0b
TT
28842017-09-27 Tom Tromey <tom@tromey.com>
2885
2886 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
2887
e2d8ae16
TT
28882017-09-27 Tom Tromey <tom@tromey.com>
2889
2890 * tui/tui-regs.c (tui_reg_command): Constify.
2891
863779b0
TT
28922017-09-27 Tom Tromey <tom@tromey.com>
2893
2894 * skip.c (skip_file_command, skip_function_command)
2895 (skip_enable_command, skip_disable_command, skip_delete_command):
2896 Constify.
2897
cdb34d4a
TT
28982017-09-27 Tom Tromey <tom@tromey.com>
2899
2900 * record-btrace.c (cmd_record_btrace_bts_start)
2901 (cmd_record_btrace_pt_start): Constify.
2902
e99c83e7
TT
29032017-09-27 Tom Tromey <tom@tromey.com>
2904
2905 * symmisc.c (maintenance_print_symbols)
2906 (maintenance_print_msymbols, maintenance_print_objfiles)
2907 (maintenance_info_symtabs, maintenance_check_symtabs)
2908 (maintenance_expand_symtabs, maintenance_info_line_tables):
2909 Constify.
2910
32faf971
TT
29112017-09-27 Tom Tromey <tom@tromey.com>
2912
2913 * top.c (new_ui_command): Constify.
2914
2cf311eb
TT
29152017-09-27 Tom Tromey <tom@tromey.com>
2916
2917 * symfile.c (add_symbol_file_command)
2918 (remove_symbol_file_command, list_overlays_command)
2919 (map_overlay_command, unmap_overlay_command)
2920 (overlay_auto_command, overlay_manual_command)
2921 (overlay_off_command, overlay_load_command): Constify.
2922
e6738699
TT
29232017-09-27 Tom Tromey <tom@tromey.com>
2924
2925 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2926 (info_spu_mailbox_command, info_spu_dma_command)
2927 (info_spu_proxydma_command): Constify.
2928
aa360cd5
TT
29292017-09-27 Tom Tromey <tom@tromey.com>
2930
2931 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
2932
898241a5
TT
29332017-09-27 Tom Tromey <tom@tromey.com>
2934
2935 * cli/cli-script.c (user_defined_command): Constify.
2936
2d0ac106
TT
29372017-09-27 Tom Tromey <tom@tromey.com>
2938
2939 * cli/cli-dump.c (dump_memory_command, dump_value_command)
2940 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
2941 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
2942 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
2943 (dump_binary_value, append_binary_memory, append_binary_value):
2944 Constify.
2945 (struct dump_context) <func>: Constify.
2946 (add_dump_command): Update.
2947
dede02ce
TT
29482017-09-27 Tom Tromey <tom@tromey.com>
2949
2950 * cli/cli-cmds.c (show_version, show_configuration)
2951 (source_command, show_user): Constify.
2952
d3cb6b99
TT
29532017-09-27 Tom Tromey <tom@tromey.com>
2954
2955 * target.c (maintenance_print_target_stack): Constify.
2956
1970a12f
TT
29572017-09-27 Tom Tromey <tom@tromey.com>
2958
2959 * interps.c (interpreter_exec_cmd): Constify.
2960
41243651
TT
29612017-09-27 Tom Tromey <tom@tromey.com>
2962
2963 * record-full.c (cmd_record_full_restore): Constify.
2964
4465d9db
TT
29652017-09-27 Tom Tromey <tom@tromey.com>
2966
2967 * memattr.c (enable_mem_command, disable_mem_command)
2968 (delete_mem_command): Constify.
2969
ad25e423
TT
29702017-09-27 Tom Tromey <tom@tromey.com>
2971
2972 * value.c (show_convenience): Constify.
2973
d64097b1
TT
29742017-09-27 Tom Tromey <tom@tromey.com>
2975
2976 * gdbcore.h (core_file_command): Update.
2977 * corefile.c (core_file_command): Constify.
2978
4d4589ef
TT
29792017-09-27 Tom Tromey <tom@tromey.com>
2980
2981 * user-regs.c (maintenance_print_user_registers): Constify.
2982
32a7bf17
TT
29832017-09-27 Tom Tromey <tom@tromey.com>
2984
2985 * cp-namespace.c (maintenance_cplus_namespace): Constify.
2986
4a475551
TT
29872017-09-27 Tom Tromey <tom@tromey.com>
2988
2989 * cp-support.c (first_component_command): Constify.
2990
990b9f9f
TT
29912017-09-27 Tom Tromey <tom@tromey.com>
2992
2993 * psymtab.c (maintenance_print_psymbols)
2994 (maintenance_info_psymtabs, maintenance_check_psymtabs):
2995 Constify.
2996
c281872e
TT
29972017-09-27 Tom Tromey <tom@tromey.com>
2998
2999 * windows-tdep.c (display_tib): Constify.
3000
5b64bf74
TT
30012017-09-27 Tom Tromey <tom@tromey.com>
3002
3003 * linux-fork.c (delete_checkpoint_command)
3004 (detach_checkpoint_command): Constify.
3005
4ada038f
TT
30062017-09-27 Tom Tromey <tom@tromey.com>
3007
3008 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
3009
57f5a81b
TT
30102017-09-27 Tom Tromey <tom@tromey.com>
3011
3012 * arc-tdep.c (dump_arc_instruction_command): Constify.
3013
b0a8e6c4
TT
30142017-09-27 Tom Tromey <tom@tromey.com>
3015
3016 * valprint.c (set_radix, show_radix): Constify.
3017
8d97dc1c
TT
30182017-09-27 Tom Tromey <tom@tromey.com>
3019
3020 * dtrace-probe.c (info_probes_dtrace_command): Constify.
3021
eb7c454d
TT
30222017-09-27 Tom Tromey <tom@tromey.com>
3023
3024 * command.h (not_just_help_class_command): Update.
3025 * cli/cli-decode.h (not_just_help_class_command): Update.
3026 * cli/cli-decode.c (not_just_help_class_command): Constify.
3027
e4e33335
TT
30282017-09-27 Tom Tromey <tom@tromey.com>
3029
3030 * gdb_bfd.c (maintenance_info_bfds): Constify.
3031
0450cc4c
TT
30322017-09-27 Tom Tromey <tom@tromey.com>
3033
3034 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
3035 overloads.
3036 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
3037 (do_const_cfunc): New function.
3038 (cmd_cfunc_eq): New overload.
3039 (cli_user_command_p): Check do_const_cfunc.
3040 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
3041 const_cfunc.
3042 * command.h (add_cmd): Add const overload and no-function
3043 overload.
3044 (set_cmd_cfunc): Add const overload.
3045 (cmd_const_cfunc_ftype): Declare.
3046 (cmd_cfunc_eq): Add const overload.
3047 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
3048 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
3049 overload.
3050
a9bbfbd8
TT
30512017-09-27 Tom Tromey <tom@tromey.com>
3052
3053 * macroexp.c (get_next_token_for_substitution): New function.
3054 (substitute_args): Call it. Check for __VA_OPT__.
3055
5230b05a
WT
30562017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
3057 Pedro Alves <palves@redhat.com>
3058
3059 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
3060 producer_is_icc_lt_14.
3061 (producer_is_icc_lt_14): New function.
3062 (check_producer): Add code for checking version of ICC.
3063 (producer_is_icc): Move to producer.c.
3064 (read_structure_type): Restrict ICC workaround to ICC<14.
3065 * producer.c: Include selftest.h.
3066 (producer_is_icc, producer_parsing_tests, _initialize_producer):
3067 New functions.
3068 * producer.h (producer_is_icc): New declaration.
3069
b32b108a
WT
30702017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
3071
3072 * Makefile.in (SFILES): Add producer.c.
3073 (COMMON_OBS): Add producer.o
3074 * amd64-tdep.c (producer.h): Add new include.
3075 * dwarf2read.c (producer.h): Add new include.
3076 * producer.c: New file.
3077 * producer.h: New file.
3078 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
3079 producer.c.
3080 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
3081 producer.h.
3082
5007d765
MK
30832017-09-26 Matthias Klose <doko@ubuntu.com>
3084
3085 * configure.ac: Search ncursesw before ncurses.
3086 Check ncursesw/ncurses.h before ncurses/ncurses.h.
3087 * gdb_curses.h: Include <ncursesw/ncurses.h>
3088 * config.in, configure: Regenerate.
3089
281c4447
RO
30902017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3091
3092 PR gdb/22185
3093 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
3094 obsolete.
3095 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
3096 Remove i386sol2 support.
3097 * configure.nat <i386sol2>: Remove.
3098 <sol2-64>: Fold into ...
3099 <sol2>: ... this.
3100 Move common settings to default section.
3101 Add sol-thread.o.
3102 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
3103 x86_64-*-solaris2.1[0-9]*>: Rename to ...
3104 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
3105 <i[34567]86-*-solaris*>: Remove.
3106 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
3107
3108 * configure.ac: Remove wctype in libw check.
3109 (_MSE_INT_H): Don't define on Solaris 7-9.
3110 <solaris*>: Remove libthread_db.so.1 check.
3111 * configure: Regenerate.
3112 * config.in: Regenerate.
3113
3114 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
3115 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
3116 (gdb_ps_size_t): Remove.
3117 Use base types in users.
3118 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
3119
3120 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
3121
39b06c20
RO
31222017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3123
3124 PR build/22206
3125 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
3126 (adi_is_addr_mapped): Likewise.
3127 (PSR_ICC): Don't redefine.
3128 (PSR_IMPL): Likewise.
3129
6c3e20f1
TT
31302017-09-25 Tom Tromey <tom@tromey.com>
3131
3132 * regcache.c (regcache::dump): Use string_printf.
3133
b292235f
TT
31342017-09-25 Tom Tromey <tom@tromey.com>
3135
3136 * regcache.c (class regcache_invalidator): New.
3137 (struct register_to_invalidate): Remove.
3138 (make_cleanup_regcache_invalidate): Remove.
3139 (regcache::raw_write): Use regcache_invalidator.
3140
9ac86b52
TT
31412017-09-25 Tom Tromey <tom@tromey.com>
3142
3143 * spu-tdep.c (spu2ppu_sniffer): Update.
3144 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
3145 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
3146 Remove.
3147 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
3148 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
3149 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
3150 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
3151 (frame_pop): Update.
3152
c0e383c6
TT
31532017-09-25 Tom Tromey <tom@tromey.com>
3154
3155 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
3156 * regcache.h (regcache_xfree): Don't declare.
3157 * regcache.c (regcache_xfree): Remove.
3158 (do_regcache_xfree): Use delete.
3159 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
3160 * linux-fork.c (free_fork): Use delete.
3161 (fork_save_infrun_state): Likewise.
3162 * jit.c (jit_dealloc_cache): Use delete.
3163 * infrun.c (discard_infcall_suspend_state): Use delete.
3164
791199cc
TT
31652017-09-25 Tom Tromey <tom@tromey.com>
3166
3167 * regcache.h (regcache_xmalloc): Don't declare.
3168 (regcache_raw_set_cached_value): Update comment.
3169 * regcache.c (regcache_xmalloc): Remove.
3170 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
3171 * jit.c (jit_frame_sniffer): Use new.
3172 * frame.c (frame_save_as_regcache): Use new.
3173
289e23aa
AA
31742017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3175
3176 * NEWS: Advertise support for guarded-storage registers on IBM z.
3177
1b63490c
AA
31782017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3179
3180 * s390-linux-nat.c (have_regset_gs): New static variable.
3181 (s390_linux_fetch_inferior_registers): Handle guarded-storage
3182 control block and guarded-storage broadcast control regsets.
3183 (s390_read_description): Detect whether the target has
3184 guarded-storage support, return appropriate tdesc.
3185 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
3186 (features/s390x-gs-linux64.c): Likewise.
3187 (struct gdbarch_tdep) <have_gs>: New field.
3188 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
3189 (s390_gsbc_regset): New variables.
3190 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
3191 and s390_gsbc_regset, if applicable.
3192 (s390_core_read_description): Check whether core file was from a
3193 target with guarded-storage support; include appropriate regsets.
3194 (s390_gdbarch_init): Add registers for guarded-storage support.
3195 (_initialize_s390_tdep): Initialize new target descriptions that
3196 include registers for guarded-storage support.
3197 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
3198 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
3199 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
3200 (S390_NUM_REGS): Adjust macro definition.
3201 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
3202 (tdesc_s390x_gs_linux64): New declarations.
3203
96235dc1
AA
32042017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3205
3206 * features/s390-gs-linux64.xml: New file.
3207 * features/s390-gs.xml: New file.
3208 * features/s390-gsbc.xml: New file.
3209 * features/s390x-gs-linux64.xml: New file.
3210 * features/Makefile (WHICH): Add s390-gs-linux64 and
3211 s390x-gs-linux64.
3212 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
3213 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
3214 * features/s390-gs-linux64.c: New generated file.
3215 * features/s390x-gs-linux64.c: New file.
3216 * regformats/s390-gs-linux64.dat: New file.
3217 * regformats/s390x-gs-linux64.dat: New file.
3218
b4a7c699
TT
32192017-09-23 Tom Tromey <tom@tromey.com>
3220
3221 * defs.h (make_cleanup_override_quit_handler): Don't declare.
3222
c2f97536
TT
32232017-09-22 Tom Tromey <tom@tromey.com>
3224
3225 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
3226 type to scoped_restore_tmpl.
3227 <scoped_input_handler>: Initialize m_quit_handler directly.
3228
43573013
SDJ
32292017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
3230
3231 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
3232 (cd_command): Likewise. Free "current_directory" before
3233 assigning to it.
3234 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
3235 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
3236 * top.c (gdb_dirbuf): Remove global declaration.
3237 * top.h (gdb_dirbuf): Likewise.
3238
6ec2e0f5
SDJ
32392017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
3240
3241 * gnulib/aclocal.m4: Regenerate.
3242 * gnulib/config.in: Regenerate.
3243 * gnulib/configure: Regenerate.
3244 * gnulib/import/Makefile.am: Regenerate.
3245 * gnulib/import/Makefile.in: Regenerate.
3246 * gnulib/import/assure.h: New file.
3247 * gnulib/import/at-func.c: Likewise
3248 * gnulib/import/chdir-long.c: New file.
3249 * gnulib/import/chdir-long.h: New file.
3250 * gnulib/import/cloexec.c: New file.
3251 * gnulib/import/cloexec.h: New file.
3252 * gnulib/import/close.c: New file.
3253 * gnulib/import/closedir.c: New file.
3254 * gnulib/import/dirent-private.h: New file.
3255 * gnulib/import/dup-safer.c: New file.
3256 * gnulib/import/dup.c: New file.
3257 * gnulib/import/dup2.c: New file.
3258 * gnulib/import/error.c: New file.
3259 * gnulib/import/error.h: New file.
3260 * gnulib/import/exitfail.c: New file.
3261 * gnulib/import/exitfail.h: New file.
3262 * gnulib/import/fchdir.c: New file.
3263 * gnulib/import/fcntl.c: New file.
3264 * gnulib/import/fcntl.in.h: New file.
3265 * gnulib/import/fd-hook.c: New file.
3266 * gnulib/import/fd-hook.h: New file.
3267 * gnulib/import/fd-safer.c: New file.
3268 * gnulib/import/fdopendir.c: New file.
3269 * gnulib/import/filename.h: New file.
3270 * gnulib/import/filenamecat-lgpl.c: New file.
3271 * gnulib/import/filenamecat.h: New file.
3272 * gnulib/import/fstat.c: New file.
3273 * gnulib/import/fstatat.c: New file.
3274 * gnulib/import/getcwd-lgpl.c: New file.
3275 * gnulib/import/getcwd.c: New file.
3276 * gnulib/import/getdtablesize.c: New file.
3277 * gnulib/import/getlogin_r.c: New file.
3278 * gnulib/import/getprogname.c: New file.
3279 * gnulib/import/getprogname.h: New file.
3280 * gnulib/import/gettext.h: New file.
3281 * gnulib/import/glob-libc.h: New file.
3282 * gnulib/import/glob.c: New file.
3283 * gnulib/import/glob.in.h: New file.
3284 * gnulib/import/intprops.h: New file.
3285 * gnulib/import/m4/chdir-long.m4: New file.
3286 * gnulib/import/m4/close.m4: New file.
3287 * gnulib/import/m4/closedir.m4: New file.
3288 * gnulib/import/m4/d-ino.m4: New file.
3289 * gnulib/import/m4/d-type.m4: New file.
3290 * gnulib/import/m4/dup.m4: New file.
3291 * gnulib/import/m4/dup2.m4: New file.
3292 * gnulib/import/m4/error.m4: New file.
3293 * gnulib/import/m4/fchdir.m4: New file.
3294 * gnulib/import/m4/fcntl.m4: New file.
3295 * gnulib/import/m4/fcntl_h.m4: New file.
3296 * gnulib/import/m4/fdopendir.m4: New file.
3297 * gnulib/import/m4/filenamecat.m4: New file.
3298 * gnulib/import/m4/fstat.m4: New file.
3299 * gnulib/import/m4/fstatat.m4: New file.
3300 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
3301 * gnulib/import/m4/getcwd-path-max.m4: New file.
3302 * gnulib/import/m4/getcwd.m4: New file.
3303 * gnulib/import/m4/getdtablesize.m4: New file.
3304 * gnulib/import/m4/getlogin_r.m4: New file.
3305 * gnulib/import/m4/getprogname.m4: New file.
3306 * gnulib/import/m4/glob.m4: New file.
3307 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3308 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3309 * gnulib/import/m4/mempcpy.m4: New file.
3310 * gnulib/import/m4/memrchr.m4: New file.
3311 * gnulib/import/m4/mode_t.m4: New file.
3312 * gnulib/import/m4/msvc-inval.m4: New file.
3313 * gnulib/import/m4/msvc-nothrow.m4: New file.
3314 * gnulib/import/m4/open.m4: New file.
3315 * gnulib/import/m4/openat.m4: New file.
3316 * gnulib/import/m4/opendir.m4: New file.
3317 * gnulib/import/m4/readdir.m4: New file.
3318 * gnulib/import/m4/realloc.m4: New file.
3319 * gnulib/import/m4/rewinddir.m4: New file.
3320 * gnulib/import/m4/save-cwd.m4: New file.
3321 * gnulib/import/m4/strdup.m4: New file.
3322 * gnulib/import/m4/strerror.m4: New file.
3323 * gnulib/import/m4/unistd-safer.m4: New file.
3324 * gnulib/import/mempcpy.c: New file.
3325 * gnulib/import/memrchr.c: New file.
3326 * gnulib/import/msvc-inval.c: New file.
3327 * gnulib/import/msvc-inval.h: New file.
3328 * gnulib/import/msvc-nothrow.c: New file.
3329 * gnulib/import/msvc-nothrow.h: New file.
3330 * gnulib/import/open.c: New file.
3331 * gnulib/import/openat-die.c: New file.
3332 * gnulib/import/openat-priv.h: New file.
3333 * gnulib/import/openat-proc.c: New file.
3334 * gnulib/import/openat.c: New file.
3335 * gnulib/import/openat.h: New file.
3336 * gnulib/import/opendir.c: New file.
3337 * gnulib/import/pipe-safer.c: New file.
3338 * gnulib/import/readdir.c: New file.
3339 * gnulib/import/realloc.c: New file.
3340 * gnulib/import/rewinddir.c: New file.
3341 * gnulib/import/save-cwd.c: New file.
3342 * gnulib/import/save-cwd.h: New file.
3343 * gnulib/import/strdup.c: New file.
3344 * gnulib/import/strerror-override.c: New file.
3345 * gnulib/import/strerror-override.h: New file.
3346 * gnulib/import/strerror.c: New file.
3347 * gnulib/import/unistd--.h: New file.
3348 * gnulib/import/unistd-safer.h: New file.
3349 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
3350 "getcwd" and "glob".
3351 * ser-tcp.c: Undefine "close" before redefining it.
3352
432ae719
SM
33532017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3354
3355 * guile/scm-value.c (gdbscm_value_address): Initialize address,
3356 get rid of res_val.
3357
4fa7574e
RO
33582017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3359
3360 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
3361 <sol2,sparc>: Likewise.
3362 <sol2-64,i386>: Likewise.
3363
3364 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
3365 -Wdeprecated-declarations on *-*-solaris*.
3366 * configure: Regenerate.
3367
3368 * procfs.c: Include "nat/inferior.h".
3369 (procfs_info_proc): Fix typo.
3370
f6327dcb
KB
33712017-09-21 Kevin Buettner <kevinb@redhat.com>
3372
3373 * remote.c (vector): Include.
3374 (struct private_thread_info): Add field, thread_handle.
3375 (free_private_thread_info): Deallocate storage associated with
3376 thread handle.
3377 (get_private_info_thread): Initialize `thread_handle' field.
3378 (struct thread_item): Add field, thread_handle.
3379 (clear_threads_listing_context): Deallocate storage associated
3380 with thread handle.
3381 (start_thread): Add support for "handle" attribute.
3382 (thread_attributes): Add "handle".
3383 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
3384 field.
3385 (remote_update_thread_list): Update thread_handle.
3386 (remote_thread_handle_to_thread_info): New function.
3387 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
3388
fbbe5337
KB
33892017-09-21 Kevin Buettner <kevinb@redhat.com>
3390
3391 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
3392 function.
3393 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
3394 * python/python-internal.h (thread_object_type): Declare.
3395
e04ee09e
KB
33962017-09-21 Kevin Buettner <kevinb@redhat.com>
3397
3398 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
3399 (target_thread_handle_to_thread_info): Declare.
3400 * target.c (target_thread_handle_to_thread_info): New function.
3401 * target-delegates.c: Regenerate.
3402 * gdbthread.h (find_thread_by_handle): Declare.
3403 * thread.c (find_thread_by_handle): New function.
3404 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
3405 function.
3406 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
3407
1e5b66ed
SM
34082017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3409
3410 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
3411
ebe48ba0
SM
34122017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3413
3414 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
3415
0a0bf5dc
YQ
34162017-09-21 Yao Qi <yao.qi@linaro.org>
3417
3418 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
3419 to gdb_target_obs.
3420
d1b0a7bf
TT
34212017-09-20 Tom Tromey <tom@tromey.com>
3422
3423 * breakpoint.c (struct counted_command_line): Remove.
3424 (breakpoint_commands): Update.
3425 (alloc_counted_command_line, incref_counted_command_line)
3426 (decref_counted_command_line, do_cleanup_counted_command_line)
3427 (make_cleanup_decref_counted_command_line): Remove.
3428 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
3429 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
3430 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
3431 (save_breakpoints): Update.
3432 * breakpoint.h (counted_command_line): Now a typedef to
3433 shared_ptr.
3434 (struct breakpoint) <commands>: Now a counted_command_line.
3435 (struct bpstats) <command>: Likewise.
3436
48649e1b
TT
34372017-09-20 Tom Tromey <tom@tromey.com>
3438
3439 * breakpoint.c (struct commands_info, do_map_commands_command):
3440 Remove.
3441 (commands_command_1): Update.
3442 (iterate_over_related_breakpoints): Take a function_view.
3443 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
3444 (delete_command): Update.
3445 (map_breakpoint_numbers): Take a function_view.
3446 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
3447 (disable_command): Update.
3448 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
3449 (enable_command): Update.
3450 (struct disp_data, do_enable_breakpoint_disp)
3451 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
3452 (do_map_enable_delete_breakpoint): Remove.
3453 (enable_once_command, enable_count_command, enable_delete_command)
3454 (delete_trace_variable_command): Update.
3455
04afa70c
TT
34562017-09-20 Tom Tromey <tom@tromey.com>
3457
3458 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
3459 (bpstat_clear): Use delete.
3460 (bpstats): New constructors.
3461 (bpstat_copy, bpstat_stop_status): Use new.
3462 (dprintf_after_condition_true): Update.
3463 * breakpoint.h (bpstats::bpstats): Add constructors.
3464 (bpstats::~bpstats): Add destructor.
3465
c83833f4
PA
34662017-09-20 Pedro Alves <palves@redhat.com>
3467
3468 * eval.c (make_params): Delete, refactored as ...
3469 (class fake_method): ... this new type's ctor.
3470 (fake_method::~fake_method): New.
3471 (evaluate_subexp_standard): Use 'fake_method'.
3472
223ffa71
TT
34732017-09-20 Tom Tromey <tom@tromey.com>
3474
3475 * windows-nat.c (get_windows_debug_event, windows_wait)
3476 (do_initial_windows_stuff, windows_attach): Update.
3477 * utils.c (vwarning, internal_vproblem): Update.
3478 (ui_unregister_input_event_handler_cleanup)
3479 (prepare_to_handle_input): Remove.
3480 (class scoped_input_handler): New.
3481 (defaulted_query, prompt_for_continue): Update.
3482 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
3483 Update.
3484 * top.c (undo_terminal_modifications_before_exit): Update.
3485 * target/target.h (target_terminal_init, target_terminal_inferior)
3486 (target_terminal_ours): Don't declare.
3487 (class target_terminal): New.
3488 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
3489 (target_terminal_ours_for_output)
3490 (make_cleanup_restore_target_terminal): Don't declare.
3491 (target_terminal_info): Remove.
3492 * target.c (enum terminal_state, terminal_state): Remove.
3493 (target_terminal::terminal_state): Define.
3494 (target_terminal::init): Rename from target_terminal_init.
3495 (target_terminal::inferior): Rename from
3496 target_terminal_inferior.
3497 (target_terminal::ours): Rename from target_terminal_ours.
3498 (target_terminal::ours_for_output): Rename from
3499 target_terminal_ours_for_output.
3500 (target_terminal::info): New method.
3501 (cleanup_restore_target_terminal)
3502 (make_cleanup_restore_target_terminal): Remove.
3503 * solib.c (handle_solib_event): Update.
3504 * remote.c (remote_serial_quit_handler): Update.
3505 (remote_terminal_inferior, remote_wait_as): Update.
3506 * record-full.c (record_full_wait_1): Update.
3507 * nto-procfs.c (procfs_create_inferior): Update.
3508 * nat/fork-inferior.c (startup_inferior): Update.
3509 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
3510 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
3511 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
3512 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
3513 (mi_breakpoint_created, mi_breakpoint_deleted)
3514 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
3515 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
3516 (mi_user_selected_context_changed, report_initial_inferior):
3517 Update.
3518 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
3519 (linux_nat_terminal_inferior): Update.
3520 * infrun.c (follow_fork_inferior)
3521 (handle_vfork_child_exec_or_exit, do_target_resume)
3522 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
3523 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
3524 Update.
3525 * inflow.c (child_terminal_init, info_terminal_command): Update.
3526 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
3527 (attach_command): Update.
3528 * infcall.c (call_thread_fsm_should_stop): Update.
3529 * gnu-nat.c (gnu_attach): Update.
3530 * extension.c (struct active_ext_lang_state)
3531 (restore_active_ext_lang): Update.
3532 * exceptions.c (print_flush): Update.
3533 * event-top.c (async_enable_stdin, default_quit_handler): Update.
3534 (struct quit_handler_cleanup_data, restore_quit_handler)
3535 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
3536 Remove.
3537 * cp-support.c (gdb_demangle): Update.
3538 * breakpoint.c (update_inserted_breakpoint_locations)
3539 (insert_breakpoint_locations, handle_jit_event)
3540 (disable_breakpoints_in_unloaded_shlib): Update.
3541 * annotate.c (annotate_breakpoints_invalid)
3542 (annotate_frames_invalid): Update.
3543
013af3fc
TT
35442017-09-20 Tom Tromey <tom@tromey.com>
3545
3546 * main.c (catch_command_errors): Rename from
3547 catch_command_errors_const.
3548 (captured_main_1): Update.
3549
06871ae8
PA
35502017-09-20 Pedro Alves <palves@redhat.com>
3551
3552 * cli/cli-cmds.c (list_command): Use print_sal_location.
3553 (print_sal_location): New function.
3554 (ambiguous_line_spec): Use print_sal_location.
3555 * linespec.c (symbol_to_sal): Record the symbol in the sal.
3556 * symtab.c (find_function_start_sal): Likewise.
3557 * symtab.h (symtab_and_line::symbol): New field.
3558
e5f25bc5
PA
35592017-09-20 Pedro Alves <palves@redhat.com>
3560
3561 * linespec.c (minsym_found): Handle non-text minsyms.
3562 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
3563
1b7fa39e
WT
35642017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
3565
3566 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
3567 backslash.
3568
37dd0825
WT
35692017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
3570
3571 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
3572 vmovups instead vmovaps.
3573 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
3574
4e5a4f58
JB
35752017-09-19 John Baldwin <jhb@FreeBSD.org>
3576
3577 * NEWS (Changes since GDB 8.0): Add starti.
3578 * infcmd.c (enum run_break): New.
3579 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
3580 case.
3581 (run_command): Use enum run_how.
3582 (start_command): Likewise.
3583 (starti_command): New function.
3584 (RUN_ARGS_HELP): New macro.
3585 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
3586 commands. Add starti command.
3587
aa70c9f1
YQ
35882017-09-19 Yao Qi <yao.qi@linaro.org>
3589
3590 * Makefile.in (monitor.o): Remove the rule.
3591
d6541620
YQ
35922017-09-19 Yao Qi <yao.qi@linaro.org>
3593
3594 * annotate.h (struct annotate_arg_emitter): Use
3595 DISABLE_COPY_AND_ASSIGN.
3596 * common/refcounted-object.h (refcounted_object): Likewise.
3597 * completer.h (struct completion_result): Likewise.
3598 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
3599 * filename-seen-cache.h (filename_seen_cache): Likewise.
3600 * gdbcore.h (thread_section_name): Likewise.
3601 * gdb_regex.h (compiled_regex): Likewise.
3602 * gdbthread.h (scoped_restore_current_thread): Likewise.
3603 * inferior.h (scoped_restore_current_inferior): Likewise.
3604 * jit.c (jit_reader): Likewise.
3605 * linespec.h (struct linespec_result): Likewise.
3606 * mi/mi-parse.h (struct mi_parse): Likewise.
3607 * nat/fork-inferior.c (execv_argv): Likewise.
3608 * progspace.h (scoped_restore_current_program_space): Likewise.
3609 * python/python-internal.h (class gdbpy_enter): Likewise.
3610 * regcache.h (regcache): Likewise.
3611 * target-descriptions.c (struct tdesc_reg): Likewise.
3612 (struct tdesc_type): Likewise.
3613 (struct tdesc_feature): Likewise.
3614 * ui-out.h (ui_out_emit_type): Likewise.
3615
0615127c
SM
36162017-09-18 Simon Marchi <simon.marchi@ericsson.com>
3617
3618 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
3619 label abort_expression.
3620
5e187554
SM
36212017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3622
3623 * common/buffer.c (buffer_xml_printf): Adjust.
3624 * common/xml-utils.c (xml_escape_text): Change return type to
3625 std::string, update code accordingly.
3626 * common/xml-utils.h (xml_escape_text): Change return type to
3627 std::string.
3628 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
3629 * windows-tdep.c (windows_xfer_shared_library): Adjust.
3630 * unittests/xml-utils-selftests.c (test_xml_escape_text):
3631 Adjust.
3632
c3d7b541
SM
36332017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3634
3635 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
3636 (SUBDIR_UNITTESTS_OBS): Add new object file.
3637 * unittests/xml-utils-selftests.c: New file.
3638
1526853e
SM
36392017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3640
3641 * common/selftest.h (selftest): New struct/interface.
3642 (register_test): Add name parameter, add new overload.
3643 (run_tests): Add filter parameter.
3644 (for_each_selftest_ftype): New typedef.
3645 (for_each_selftest): New declaration.
3646 * common/selftest.c (tests): Change type to
3647 map<string, unique_ptr<selftest>>.
3648 (simple_selftest): New struct.
3649 (register_test): New function.
3650 (register_test): Add name parameter and use it.
3651 (run_tests): Add filter parameter and use it. Add prints.
3652 Adjust to vector -> map change.
3653 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
3654 registering selftests.
3655 * arm-tdep.c (_initialize_arm_tdep): Likewise.
3656 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
3657 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
3658 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
3659 * findvar.c (_initialize_findvar): Likewise.
3660 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
3661 * maint.c (maintenance_selftest): Update call to run_tests.
3662 (maintenance_info_selftests): New function.
3663 (_initialize_maint_cmds): Register "maintenance info selftests"
3664 command. Update "maintenance selftest" doc.
3665 * regcache.c (_initialize_regcache): Add names when registering
3666 selftests.
3667 * rust-exp.y (_initialize_rust_exp): Likewise.
3668 * selftest-arch.c (gdbarch_selftest): New struct.
3669 (gdbarch_tests): Remove.
3670 (register_test_foreach_arch): Add name parameter. Call
3671 register_test.
3672 (tests_with_arch): Remove, move most content to
3673 gdbarch_selftest::operator().
3674 (_initialize_selftests_foreach_arch): Remove.
3675 * selftest-arch.h (register_test_foreach_arch): Add name
3676 parameter.
3677 (run_tests_with_arch): New declaration.
3678 * utils-selftests.c (_initialize_utils_selftests): Add names
3679 when registering selftests.
3680 * utils.c (_initialize_utils): Likewise.
3681 * unittests/array-view-selftests.c
3682 (_initialize_array_view_selftests): Likewise.
3683 * unittests/environ-selftests.c (_initialize_environ_selftests):
3684 Likewise.
3685 * unittests/function-view-selftests.c
3686 (_initialize_function_view_selftests): Likewise.
3687 * unittests/offset-type-selftests.c
3688 (_initialize_offset_type_selftests): Likewise.
3689 * unittests/optional-selftests.c
3690 (_initialize_optional_selftests): Likewise.
3691 * unittests/scoped_restore-selftests.c
3692 (_initialize_scoped_restore_selftests): Likewise.
3693 * NEWS: Document "maintenance selftest" and "maint info
3694 selftests".
3695
5846367a
SM
36962017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3697
3698 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
3699 scoped_restore.
3700
bd77e8ff
SM
37012017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3702
3703 * mi/mi-main.c (mi_load_progress): Make uiout variable
3704 a unique_ptr.
3705
26a67918
PA
37062017-09-15 Pedro Alves <palves@redhat.com>
3707
3708 * compile/compile-c-types.c (convert_enum, convert_int)
3709 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
3710
3f8a7804
SM
37112017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3712
3713 * dwarf2read.c (copy_string): Remove.
3714 (parse_macro_definition): Replace copy_string with savestring.
3715
8d200706
YQ
37162017-09-15 Yao Qi <yao.qi@linaro.org>
3717
3718 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
3719 gdb_target_obs.
3720 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
3721 Likewise.
3722 (i[34567]86-*-linux*): Likewise.
3723
d185219d
SM
37242017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3725
3726 * dwarf2expr.h (dwarf_stack_value): Add constructor.
3727 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
3728 <stack>: Change type to std::vector.
3729 <stack_len, stack_allocated>: Remove.
3730 <grow_stack>: Remove.
3731 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
3732 (dwarf_expr_context::~dwarf_expr_context): Remove.
3733 (dwarf_expr_context::grow_stack): Remove.
3734 (dwarf_expr_context::push): Adjust.
3735 (dwarf_expr_context::pop): Adjust.
3736 (dwarf_expr_context::fetch): Adjust.
3737 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
3738 (dwarf_expr_context::stack_empty_p): Adjust.
3739 (dwarf_expr_context::execute_stack_op): Adjust.
3740
eccd80d6
SM
37412017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3742
3743 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
3744 return type to bool.
3745 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
3746
69009882
SM
37472017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3748
3749 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
3750 Change type to bool.
3751 (dwarf_stack_value) <in_stack_memory>: Likewise.
3752 (dwarf_expr_context) <push_address>: Change parameter type to
3753 bool.
3754 <fetch_in_stack_memory>: Change return type to bool.
3755 <push>: Change parameter type to bool.
3756 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
3757 to bool.
3758 (dwarf_expr_context::push_address): Likewise.
3759 (dwarf_expr_context::fetch_in_stack_memory): Change return type
3760 to bool.
3761 (dwarf_expr_context::execute_stack_op): Adjust.
3762 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
3763
1e467161
SM
37642017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3765
3766 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
3767 (struct dwarf_expr_context) <n_pieces>: Remove.
3768 <pieces>: Change type to std::vector.
3769 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
3770 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
3771 pieces.
3772 (dwarf_expr_context::add_piece): Adjust.
3773 * dwarf2loc.c (struct piece_closure): Initialize fields.
3774 <n_pieces>: Remove.
3775 <pieces>: Change type to std::vector.
3776 (allocate_piece_closure): Adjust, change parameter to
3777 std::vector rvalue and std::move it to piece_closure.
3778 (rw_pieced_value): Adjust.
3779 (check_pieced_synthetic_pointer): Adjust.
3780 (indirect_synthetic_pointer): Adjust.
3781 (coerce_pieced_ref): Adjust.
3782 (free_pieced_value_closure): Adjust. Use delete to free
3783 piece_closure.
3784 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
3785 to allocate_piece_closure.
3786 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
3787
0782db84
SM
37882017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3789
3790 * probe.h (probe_ops_cp): Remove typedef.
3791 (DEF_VEC_P (probe_ops_cp)): Remove.
3792 (all_probe_ops): Change type to std::vector.
3793 * probe.c (info_probes_for_ops): Adjust to vector change.
3794 (probe_linespec_to_ops): Likewise.
3795 (all_probe_ops): Change type to std::vector.
3796 (_initialize_probe): Adjust to vector change.
3797 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
3798 * elfread.c (elf_get_probes): Likewise.
3799 * stap-probe.c (_initialize_stap_probe): Likewise.
3800
1eac6bea
SM
38012017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3802
3803 * probe.h (struct bound_probe): Define constructors.
3804 * probe.c (bound_probe_s): Remove typedef.
3805 (DEF_VEC_O (bound_probe_s)): Remove VEC.
3806 (collect_probes): Change return type to std::vector, remove
3807 cleanup.
3808 (compare_probes): Return bool, change parameter type. Change
3809 semantic to "less than".
3810 (gen_ui_out_table_header_info): Change parameter to std::vector
3811 and update.
3812 (exists_probe_with_pops): Likewise.
3813 (info_probes_for_ops): Update to std::vector change.
3814 (enable_probes_command): Likewise.
3815 (disable_probes_command): Likewise.
3816
aaa63a31
SM
38172017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3818
3819 * probe.h (struct probe_ops) <get_probes>: Change parameter from
3820 vec to std::vector.
3821 * probe.c (parse_probes_in_pspace): Update.
3822 (find_probes_in_objfile): Update.
3823 (find_probe_by_pc): Update.
3824 (collect_probes): Update.
3825 (probe_any_get_probes): Update.
3826 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
3827 return type to reference to std::vector.
3828 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
3829 std::vector and update.
3830 (dtrace_process_dof): Likewise.
3831 (dtrace_get_probes): Likewise.
3832 * elfread.c (elf_get_probes): Change return type to std::vector,
3833 store an std::vector in bfd_data.
3834 (probe_key_free): Update to std::vector.
3835 * stap-probe.c (handle_stap_probe): Change parameter to
3836 std::vector and update.
3837 (stap_get_probes): Likewise.
3838 * symfile-debug.c (debug_sym_get_probes): Change return type to
3839 std::vector and update.
3840
cb85b21b
TT
38412017-09-11 Tom Tromey <tom@tromey.com>
3842
3843 * breakpoint.c (program_breakpoint_here_p): Update.
3844 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
3845 from make_show_memory_breakpoints_cleanup. Return a
3846 scoped_restore_tmpl<int>.
3847 (restore_show_memory_breakpoints): Remove.
3848 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
3849 * mem-break.c (memory_validate_breakpoint): Update.
3850 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
3851 (ia64_memory_remove_breakpoint): Update.
3852 (ia64_breakpoint_from_pc): Update.
3853 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
3854 from make_show_memory_breakpoints_cleanup.
3855
8fbc99ef
TT
38562017-09-11 Tom Tromey <tom@tromey.com>
3857
3858 * d-namespace.c (d_lookup_symbol): Use std::string.
3859 (find_symbol_in_baseclass): Likewise.
3860
50feb4bd
TT
38612017-09-11 Tom Tromey <tom@tromey.com>
3862
3863 * ctf.c (ctf_start): Use std::string.
3864
c6dc63a1
TT
38652017-09-11 Tom Tromey <tom@tromey.com>
3866
3867 * ada-lang.c (is_known_support_routine): Update.
3868 (ada_unhandled_exception_name_addr_from_raise): Update.
3869 * guile/scm-frame.c (gdbscm_frame_name): Update.
3870 * python/py-frame.c (frapy_name): Update.
3871 (frapy_function): Update.
3872 * stack.h (find_frame_funname): Update.
3873 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
3874 (print_frame): Update.
3875
d6b9b80f
TT
38762017-09-11 Tom Tromey <tom@tromey.com>
3877
3878 * findcmd.c (put_bits): Take a gdb::byte_vector.
3879 (parse_find_args): Return gdb::byte_vector. "args" now const.
3880 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
3881 cleanups.
3882 (find_command): Update.
3883
a9921622
TT
38842017-09-11 Tom Tromey <tom@tromey.com>
3885
3886 * cli/cli-script.c (class scoped_restore_hook_in): New.
3887 (clear_hook_in_cleanup): Remove.
3888 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
3889 scoped_restore_hook_in.
3890
be0d7abb
TT
38912017-09-11 Tom Tromey <tom@tromey.com>
3892
3893 * cli/cli-script.c (restore_interp): Remove.
3894 (read_command_lines): Use scoped_restore_interp.
3895 * interps.c (scoped_restore_interp::set_temp): Rename from
3896 interp_set_temp.
3897 * interps.h (class scoped_restore_interp): New.
3898 (interp_set_temp): Remove.
3899
00f675ff
TT
39002017-09-11 Tom Tromey <tom@tromey.com>
3901
3902 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
3903 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
3904 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
3905 scoped_restore.
3906 (mi_cmd_break_insert_1): Update.
3907 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
3908 scoped_restore.
3909
cb791d59
TT
39102017-09-11 Tom Tromey <tom@tromey.com>
3911
3912 * demangle.c (demangle_command): Update.
3913 * breakpoint.c (disable_command): Update.
3914 (enable_command): Update.
3915 (find_location_by_number): Make "number" const. Use
3916 get_number_trailer.
3917 * cli/cli-utils.c (extract_arg): Return std::string.
3918 * probe.c (parse_probe_linespec): Update. Change types.
3919 (collect_probes): Take string arguments.
3920 (parse_probe_linespec): Likewise.
3921 (info_probes_for_ops): Update.
3922 (enable_probes_command): Update.
3923 (disable_probes_command): Update.
3924 * break-catch-sig.c (catch_signal_split_args): Update.
3925 * mi/mi-parse.c (mi_parse): Update.
3926
2039bd9f
TT
39272017-09-11 Tom Tromey <tom@tromey.com>
3928
3929 * language.h (language_enum): Make argument const.
3930 * language.c (language_enum): Make argument const.
3931
f1735a53
TT
39322017-09-11 Tom Tromey <tom@tromey.com>
3933
3934 * common/common-utils.h (skip_to_space): Remove macro, redeclare
3935 as function.
3936 (skip_to_space): Rename from skip_to_space_const.
3937 * common/common-utils.c (skip_to_space): New function.
3938 (skip_to_space): Rename from skip_to_space_const.
3939 * cli/cli-utils.h (get_number): Rename from get_number_const.
3940 (extract_arg): Rename from extract_arg_const.
3941 * cli/cli-utils.c (get_number): Rename from get_number_const.
3942 (extract_arg): Rename from extract_arg_const.
3943 (number_or_range_parser::get_number): Use ::get_number.
3944 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
3945 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
3946 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
3947 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
3948 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
3949 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
3950 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
3951 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
3952
7d221d74
TT
39532017-09-11 Tom Tromey <tom@tromey.com>
3954
3955 * python/python.c (do_start_initialization): Use
3956 py-event-types.def to initialize types.
3957 Define all object type structures.
3958 * python/python-internal.h: Don't declare event initialization
3959 functions.
3960 * python/py-threadevent.c (thread_event_object_type): Don't
3961 define.
3962 * python/py-stopevent.c (stop_event_object_type): Don't define.
3963 * python/py-signalevent.c (signal_event_object_type): Don't
3964 declare or define.
3965 * python/py-newobjfileevent.c (new_objfile_event_object_type)
3966 (clear_objfiles_event_object_type): Don't declare or define.
3967 * python/py-infevents.c (inferior_call_pre_event_object_type)
3968 (inferior_call_post_event_object_type)
3969 (register_changed_event_object_type)
3970 (memory_changed_event_object_type): Don't declare or define.
3971 * python/py-inferior.c (new_thread_event_object_type)
3972 (new_inferior_event_object_type)
3973 (inferior_deleted_event_object_type): Don't declare or define.
3974 * python/py-exitedevent.c (exited_event_object_type): Don't
3975 declare or define.
3976 * python/py-evts.c (gdbpy_initialize_py_events): Use
3977 py-all-events.def.
3978 * python/py-events.h (thread_event_object_type): Don't declare.
3979 (events_object): Use py-all-events.def.
3980 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
3981 py-event-types.def.
3982 * python/py-event-types.def: New file.
3983 * python/py-continueevent.c (create_continue_event_object): Don't
3984 declare or define.
3985 * python/py-bpevent.c (breakpoint_event_object_type): Don't
3986 declare or define.
3987 * python/py-all-events.def: New file.
3988
35c61a1d
TT
39892017-09-11 Tom Tromey <tom@tromey.com>
3990
3991 * python/py-threadevent.c (create_thread_event_object): Return
3992 gdbpy_ref.
3993 * python/py-stopevent.h (create_stop_event_object)
3994 (create_breakpoint_event_object, create_signal_event_object):
3995 Update.
3996 * python/py-stopevent.c (create_stop_event_object): Return
3997 gdbpy_ref.
3998 (emit_stop_event): Update.
3999 * python/py-signalevent.c (create_signal_event_object): Return
4000 gdbpy_ref.
4001 * python/py-infevents.c (create_inferior_call_event_object):
4002 Update.
4003 * python/py-event.h (create_event_object)
4004 (create_thread_event_object): Update.
4005 * python/py-event.c (create_event_object): Return gdbpy_ref.
4006 * python/py-continueevent.c: Return gdbpy_ref.
4007 * python/py-bpevent.c (create_breakpoint_event_object): Return
4008 gdbpy_ref.
4009
7c96f8c1
TT
40102017-09-11 Tom Tromey <tom@tromey.com>
4011
4012 PR python/15622:
4013 * NEWS: Add entry.
4014 * python/python.c (do_start_initialization): Initialize new event
4015 types.
4016 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
4017 (gdbpy_initialize_inferior_deleted_event)
4018 (gdbpy_initialize_new_thread_event): Declare.
4019 * python/py-threadevent.c (create_thread_event_object): Add option
4020 "thread" parameter.
4021 * python/py-inferior.c (new_thread_event_object_type)
4022 (new_inferior_event_object_type)
4023 (inferior_deleted_event_object_type): Declare.
4024 (python_new_inferior, python_inferior_deleted): New functions.
4025 (add_thread_object): Emit new_thread event.
4026 (gdbpy_initialize_inferior): Attach new functions to corresponding
4027 observers.
4028 (new_thread, new_inferior, inferior_deleted): Define new event
4029 types.
4030 * python/py-evts.c (gdbpy_initialize_py_events): Add new
4031 registries.
4032 * python/py-events.h (events_object) <new_inferior,
4033 inferior_deleted, new_thread>: New fields.
4034 * python/py-event.h (create_thread_event_breakpoint): Add optional
4035 "thread" parameter.
4036
72542b8e
AB
40372017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
4038
4039 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
4040 check current_ui instead.
4041 (internal_vproblem): Likewise.
4042
0d64823e
SM
40432017-09-09 Simon Marchi <simon.marchi@ericsson.com>
4044
4045 * thread.c (print_thread_info_1): Remove unnecessary calls to
4046 uiout->is_mi_like_p.
4047
eb1e02fd
TT
40482017-09-09 Tom Tromey <tom@tromey.com>
4049
4050 * namespace.h (add_using_directive): Update.
4051 * namespace.c (add_using_directive): Change type of excludes to
4052 std::vector.
4053 * dwarf2read.c (read_import_statement): Use std::vector.
4054 (read_namespace): Update.
4055 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
4056
0fc21fd8
TT
40572017-09-09 Tom Tromey <tom@tromey.com>
4058
4059 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
4060
49663d05
TT
40612017-09-09 Tom Tromey <tom@tromey.com>
4062
4063 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
4064
0b868b60
TT
40652017-09-09 Tom Tromey <tom@tromey.com>
4066
4067 * stack.c (func_command): Use gdb::def_vector.
4068
c0470d48
TT
40692017-09-09 Tom Tromey <tom@tromey.com>
4070
4071 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
4072 ui_out_emit_list, ui_out_emit_tuple.
4073 (mi_cmd_var_update): Likewise.
4074
ca5909c7
TT
40752017-09-09 Tom Tromey <tom@tromey.com>
4076
4077 * mi/mi-interp.c (mi_user_selected_context_changed): Use
4078 ui_out_redirect_pop.
4079 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
4080 ui_out_redirect_pop.
4081 * utils.c (do_ui_out_redirect_pop)
4082 (make_cleanup_ui_out_redirect_pop): Remove.
4083 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
4084 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
4085 * ui-out.h (ui_out_redirect_pop): New class.
4086
e6a2252a
TT
40872017-09-09 Tom Tromey <tom@tromey.com>
4088
4089 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
4090 (list_available_thread_groups, mi_cmd_list_thread_groups)
4091 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
4092 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
4093 Likewise.
4094
393702cd
TT
40952017-09-09 Tom Tromey <tom@tromey.com>
4096
4097 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
4098 ui_out_emit_tuple.
4099
76f9c9cf
TT
41002017-09-09 Tom Tromey <tom@tromey.com>
4101
4102 * target.c (flash_erase_command): Use ui_out_emit_tuple.
4103 * stack.c (print_frame): Use ui_out_emit_tuple.
4104 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
4105 (info_spu_mailbox_command, info_spu_dma_command)
4106 (info_spu_proxydma_command): Likewise.
4107 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
4108 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
4109 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
4110 ui_out_emit_tuple.
4111 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
4112
dc9fe180
TT
41132017-09-09 Tom Tromey <tom@tromey.com>
4114
4115 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
4116 (class ui_out_emit_table): Update comment.
4117 * ui-out.c (do_cleanup_table_end)
4118 (make_cleanup_ui_out_table_begin_end): Remove.
4119 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
4120 (info_spu_dma_cmdlist): Likewise.
4121 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
4122 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
4123 ui_out_emit_table.
4124
f8cc3da6
TT
41252017-09-09 Tom Tromey <tom@tromey.com>
4126
4127 * thread.c (print_thread_info_1): Use ui_out_emit_table,
4128 ui_out_emit_list, gdb::optional.
4129
481695ed
JB
41302017-09-09 John Baldwin <jhb@FreeBSD.org>
4131
4132 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
4133 prototype.
4134 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
4135 prototype.
4136 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
4137 prototype.
4138 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
4139 * ada-exp.y: Remove _initialize_ada_exp prototype.
4140 * ada-lang.c: Remove _initialize_ada_language prototype.
4141 * ada-tasks.c: Remove _initialize_tasks prototype.
4142 * addrmap.c: Remove _initialize_addrmap prototype.
4143 * agent.c: Remove _initialize_agent prototype.
4144 * aix-thread.c: Remove _initialize_aix_thread prototype.
4145 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
4146 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
4147 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
4148 prototype.
4149 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
4150 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
4151 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
4152 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
4153 prototype.
4154 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
4155 prototype.
4156 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
4157 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
4158 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
4159 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
4160 prototype.
4161 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
4162 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
4163 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
4164 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
4165 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
4166 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
4167 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
4168 prototype.
4169 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
4170 prototype.
4171 * annotate.c: Remove _initialize_annotate prototype.
4172 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
4173 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
4174 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
4175 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
4176 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
4177 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
4178 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
4179 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
4180 prototype.
4181 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
4182 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
4183 * auto-load.c: Remove _initialize_auto_load prototype.
4184 * auxv.c: Remove _initialize_auxv prototype.
4185 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
4186 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
4187 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
4188 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
4189 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
4190 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
4191 prototype.
4192 * break-catch-throw.c: Remove _initialize_break_catch_throw
4193 prototype.
4194 * breakpoint.c: Remove _initialize_breakpoint prototype.
4195 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
4196 * btrace.c: Remove _initialize_btrace prototype.
4197 * charset.c: Remove _initialize_charset prototype.
4198 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
4199 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
4200 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
4201 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
4202 * cli/cli-script.c: Remove _initialize_cli_script prototype.
4203 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
4204 * coffread.c: Remove _initialize_coffread prototype.
4205 * compile/compile.c: Remove _initialize_compile prototype.
4206 * complaints.c: Remove _initialize_complaints prototype.
4207 * completer.c: Remove _initialize_completer prototype.
4208 * copying.awk: Remove _initialize_copying prototype.
4209 * copying.c: Regenerate.
4210 * core-regset.c: Remove _initialize_core_regset prototype.
4211 * corefile.c: Remove _initialize_core prototype.
4212 * corelow.c: Remove _initialize_corelow prototype.
4213 * cp-abi.c: Remove _initialize_cp_abi prototype.
4214 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
4215 * cp-support.c: Remove _initialize_cp_support prototype.
4216 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
4217 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
4218 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
4219 * ctf.c: Remove _initialize_ctf prototype.
4220 * d-lang.c: Remove _initialize_d_language prototype.
4221 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
4222 prototype.
4223 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
4224 * dbxread.c: Remove _initialize_dbxread prototype.
4225 * dcache.c: Remove _initialize_dcache prototype.
4226 * demangle.c: Remove _initialize_demangler prototype.
4227 * disasm-selftests.c: Remove _initialize_disasm_selftests
4228 prototype.
4229 * disasm.c: Remove _initialize_disasm prototype.
4230 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
4231 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
4232 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
4233 prototype.
4234 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
4235 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
4236 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
4237 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
4238 * elfread.c: Remove _initialize_elfread prototype.
4239 * exec.c: Remove _initialize_exec prototype.
4240 * extension.c: Remove _initialize_extension prototype.
4241 * f-lang.c: Remove _initialize_f_language prototype.
4242 * f-valprint.c: Remove _initialize_f_valprint prototype.
4243 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
4244 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
4245 * filesystem.c: Remove _initialize_filesystem prototype.
4246 * findcmd.c: Remove _initialize_mem_search prototype.
4247 * fork-child.c: Remove _initialize_fork_child prototype.
4248 * frame-base.c: Remove _initialize_frame_base prototype.
4249 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
4250 * frame.c: Remove _initialize_frame prototype.
4251 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
4252 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
4253 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
4254 * gcore.c: Remove _initialize_gcore prototype.
4255 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
4256 * gdbarch.c: Regenerate.
4257 * gdbarch.sh: Remove _initialize_gdbarch prototype.
4258 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
4259 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
4260 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
4261 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
4262 * go-lang.c: Remove _initialize_go_language prototype.
4263 * go32-nat.c: Remove _initialize_go32_nat prototype.
4264 * guile/guile.c: Remove _initialize_guile prototype.
4265 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
4266 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
4267 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
4268 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
4269 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
4270 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
4271 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
4272 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
4273 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
4274 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
4275 prototype.
4276 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
4277 prototype.
4278 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
4279 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
4280 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
4281 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
4282 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
4283 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
4284 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
4285 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
4286 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
4287 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
4288 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
4289 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
4290 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
4291 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
4292 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
4293 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
4294 prototype.
4295 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
4296 prototype.
4297 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
4298 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
4299 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
4300 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
4301 * infcall.c: Remove _initialize_infcall prototype.
4302 * infcmd.c: Remove _initialize_infcmd prototype.
4303 * inferior.c: Remove _initialize_inferiors prototype.
4304 * inflow.c: Remove _initialize_inflow prototype.
4305 * infrun.c: Remove _initialize_infrun prototype.
4306 * interps.c: Remove _initialize_interpreter prototype.
4307 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
4308 * jit.c: Remove _initialize_jit prototype.
4309 * language.c: Remove _initialize_language prototype.
4310 * linux-fork.c: Remove _initialize_linux_fork prototype.
4311 * linux-nat.c: Remove _initialize_linux_nat prototype.
4312 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
4313 * linux-thread-db.c: Remove _initialize_thread_db prototype.
4314 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
4315 * m2-lang.c: Remove _initialize_m2_language prototype.
4316 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
4317 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
4318 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
4319 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
4320 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
4321 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
4322 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
4323 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
4324 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
4325 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
4326 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
4327 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
4328 * machoread.c: Remove _initialize_machoread prototype.
4329 * macrocmd.c: Remove _initialize_macrocmd prototype.
4330 * macroscope.c: Remove _initialize_macroscope prototype.
4331 * maint.c: Remove _initialize_maint_cmds prototype.
4332 * mdebugread.c: Remove _initialize_mdebugread prototype.
4333 * memattr.c: Remove _initialize_mem prototype.
4334 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
4335 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
4336 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
4337 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
4338 * mi/mi-main.c: Remove _initialize_mi_main prototype.
4339 * microblaze-linux-tdep.c: Remove
4340 _initialize_microblaze_linux_tdep prototype.
4341 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
4342 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
4343 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
4344 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
4345 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
4346 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
4347 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
4348 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
4349 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
4350 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
4351 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
4352 prototype.
4353 * mipsread.c: Remove _initialize_mipsread prototype.
4354 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
4355 prototype.
4356 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
4357 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
4358 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
4359 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
4360 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
4361 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
4362 prototype.
4363 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
4364 * nto-procfs.c: Remove _initialize_procfs prototype.
4365 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
4366 * objc-lang.c: Remove _initialize_objc_language prototype.
4367 * objfiles.c: Remove _initialize_objfiles prototype.
4368 * observer.c: Remove observer_test_first_notification_function,
4369 observer_test_second_notification_function,
4370 observer_test_third_notification_function, and
4371 _initialize_observer prototypes.
4372 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
4373 * osabi.c: Remove _initialize_gdb_osabi prototype.
4374 * osdata.c: Remove _initialize_osdata prototype.
4375 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
4376 * parse.c: Remove _initialize_parse prototype.
4377 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
4378 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
4379 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
4380 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
4381 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
4382 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
4383 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
4384 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
4385 * printcmd.c: Remove _initialize_printcmd prototype.
4386 * probe.c: Remove _initialize_probe prototype.
4387 * proc-api.c: Remove _initialize_proc_api prototype.
4388 * proc-events.c: Remove _initialize_proc_events prototype.
4389 * proc-service.c: Remove _initialize_proc_service prototype.
4390 * procfs.c: Remove _initialize_procfs prototype.
4391 * psymtab.c: Remove _initialize_psymtab prototype.
4392 * python/python.c: Remove _initialize_python prototype.
4393 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
4394 * record-btrace.c: Remove _initialize_record_btrace prototype.
4395 * record-full.c: Remove _initialize_record_full prototype.
4396 * record.c: Remove _initialize_record prototype.
4397 * regcache.c: Remove _initialize_regcache prototype.
4398 * reggroups.c: Remove _initialize_reggroup prototype.
4399 * remote-notif.c: Remove _initialize_notif prototype.
4400 * remote-sim.c: Remove _initialize_remote_sim prototype.
4401 * remote.c: Remove _initialize_remote prototype.
4402 * reverse.c: Remove _initialize_reverse prototype.
4403 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
4404 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
4405 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
4406 prototype.
4407 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
4408 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
4409 * rust-exp.y: Remove _initialize_rust_exp prototype.
4410 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
4411 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
4412 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
4413 * score-tdep.c: Remove _initialize_score_tdep prototype.
4414 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
4415 prototype.
4416 * ser-go32.c: Remove _initialize_ser_dos prototype.
4417 * ser-mingw.c: Remove _initialize_ser_windows prototype.
4418 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
4419 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
4420 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
4421 * serial.c: Remove _initialize_serial prototype.
4422 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
4423 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
4424 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
4425 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
4426 * skip.c: Remove _initialize_step_skip prototype.
4427 * sol-thread.c: Remove _initialize_sol_thread prototype.
4428 * solib-aix.c: Remove _initialize_solib_aix prototype.
4429 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
4430 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
4431 * solib-frv.c: Remove _initialize_frv_solib prototype.
4432 * solib-spu.c: Remove _initialize_spu_solib prototype.
4433 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
4434 * solib-target.c: Remove _initialize_solib_target prototype.
4435 * solib.c: Remove _initialize_solib prototype.
4436 * source.c: Remove _initialize_source prototype.
4437 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
4438 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
4439 prototype.
4440 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
4441 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
4442 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
4443 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
4444 prototype.
4445 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
4446 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
4447 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
4448 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
4449 prototype.
4450 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
4451 prototype.
4452 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
4453 prototype.
4454 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
4455 prototype.
4456 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
4457 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
4458 prototype.
4459 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
4460 prototype.
4461 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
4462 prototype.
4463 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
4464 prototype.
4465 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
4466 prototype.
4467 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
4468 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
4469 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
4470 * stabsread.c: Remove _initialize_stabsread prototype.
4471 * stack.c: Remove _initialize_stack prototype.
4472 * stap-probe.c: Remove _initialize_stap_probe prototype.
4473 * std-regs.c: Remove _initialize_frame_reg prototype.
4474 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
4475 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
4476 * symfile.c: Remove _initialize_symfile prototype.
4477 * symmisc.c: Remove _initialize_symmisc prototype.
4478 * symtab.c: Remove _initialize_symtab prototype.
4479 * target-dcache.c: Remove _initialize_target_dcache prototype.
4480 * target-descriptions.c: Remove _initialize_target_descriptions
4481 prototype.
4482 * thread.c: Remove _initialize_thread prototype.
4483 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
4484 prototype.
4485 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
4486 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
4487 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
4488 prototype.
4489 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
4490 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
4491 * tracefile.c: Remove _initialize_tracefile prototype.
4492 * tracepoint.c: Remove _initialize_tracepoint prototype.
4493 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
4494 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
4495 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
4496 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
4497 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
4498 * tui/tui-win.c: Remove _initialize_tui_win prototype.
4499 * tui/tui.c: Remove _initialize_tui prototype.
4500 * typeprint.c: Remove _initialize_typeprint prototype.
4501 * user-regs.c: Remove _initialize_user_regs prototype.
4502 * utils.c: Remove _initialize_utils prototype.
4503 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
4504 * valarith.c: Remove _initialize_valarith prototype.
4505 * valops.c: Remove _initialize_valops prototype.
4506 * valprint.c: Remove _initialize_valprint prototype.
4507 * value.c: Remove _initialize_values prototype.
4508 * varobj.c: Remove _initialize_varobj prototype.
4509 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
4510 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
4511 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
4512 * windows-nat.c: Remove _initialize_windows_nat,
4513 _initialize_check_for_gdb_ini, and _initialize_loadable
4514 prototypes.
4515 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
4516 * xcoffread.c: Remove _initialize_xcoffread prototype.
4517 * xml-support.c: Remove _initialize_xml_support prototype.
4518 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
4519 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
4520 prototype.
4521 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
4522 prototype.
4523 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
4524
a611b5cb
KS
45252017-09-08 Keith Seitz <keiths@redhat.com>
4526
4527 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
4528 field.
4529
469412dd
CW
45302017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
4531
4532 * f-valprint.c (f_val_print): Remove check for one byte
4533 sized integers. Remove printing of character type.
4534
a5ad232b
FP
45352017-09-08 Frank Penczek <frank.penczek@intel.com>
4536 Christoph Weinmann <christoph.t.weinmann@intel.com>
4537 Bernhard Heckel <bernhard.heckel@intel.com>
4538
4539 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
4540 to maintain proper indentation when printing pointers/refs.
4541
e5014227
JB
45422017-09-07 Joel Brobecker <brobecker@adacore.com>
4543
4544 GDB 8.0.1 released.
4545
63c99141
JB
45462017-09-07 Joel Brobecker <brobecker@adacore.com>
4547
4548 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
4549
69c1e056
TT
45502017-09-05 Tom Tromey <tom@tromey.com>
4551
4552 * parse.c (funcall_chain): Now a std::vector.
4553 (start_arglist, end_arglist): Simplify.
4554 (free_funcalls): Remove.
4555 (parse_exp_in_context_1): Remove cleanup.
4556
fef704bf
TT
45572017-09-05 Tom Tromey <tom@tromey.com>
4558
4559 * go-exp.y (go_parse): Don't create a cleanup.
4560
5613c585
TT
45612017-09-05 Tom Tromey <tom@tromey.com>
4562
4563 * d-exp.y (PrimaryExpression): Use std::string.
4564 (d_parse): Don't create a cleanup.
4565
eae49211
TT
45662017-09-05 Tom Tromey <tom@tromey.com>
4567
4568 * utils.c (do_clear_parser_state): Remove.
4569 (make_cleanup_clear_parser_state): Remove.
4570 * p-exp.y (pascal_parse): Use scoped_restore.
4571 * m2-exp.y (m2_parse): Use scoped_restore.
4572 * f-exp.y (f_parse): Use scoped_restore.
4573 * d-exp.y (d_parse): Use scoped_restore.
4574 * c-exp.y (c_parse): Use scoped_restore.
4575 * ada-exp.y (ada_parse): Use scoped_restore.
4576 * utils.h (make_cleanup_clear_parser_state): Remove.
4577
73b9be8b
KS
45782017-09-06 Keith Seitz <keiths@redhat.com>
4579
4580 * dwarf2read.c (dw2_linkage_name_attr): New function.
4581 (dw2_linkage_name): New function.
4582 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
4583 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
4584 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
4585
a102602b
KR
45862017-09-06 Kamil Rytarowski <n54@gmx.com>
4587
4588 * config/djgpp/djconfig.sh: Correct shell portability issue.
4589
28ad437d
KR
45902017-09-06 Kamil Rytarowski <n54@gmx.com>
4591
4592 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
4593
351787dd
JB
45942017-09-06 John Baldwin <jhb@FreeBSD.org>
4595
4596 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
4597 * NEWS: Mention new FreeBSD/mips native configuration.
4598 * configure.host: Add aarch64*-*-freebsd*.
4599 * configure.nat: Likewise.
4600 * aarch64-fbsd-nat.c: New file.
4601
c0f84956
JB
46022017-09-06 John Baldwin <jhb@FreeBSD.org>
4603
4604 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
4605 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
4606 * NEWS: Mention new FreeBSD/aarch64 target.
4607 * configure.tgt: Add aarch64*-*-freebsd*.
4608 * aarch64-fbsd-tdep.c: New file.
4609 * aarch64-fbsd-tdep.h: New file.
4610
7610297a
KR
46112017-09-06 Kamil Rytarowski <n54@gmx.com>
4612
4613 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
4614
fbd1b771
JK
46152017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4616
4617 * parse.c (find_minsym_type_and_address): Don't relocate addresses
4618 of TLS symbols.
4619
5ca79eae
PW
46202017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4621
4622 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
4623 call.
4624
bf93d7ba
SM
46252017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4626
4627 * infrun.c (follow_exec): Call add_thread after
4628 target_find_description.
4629
1bb7c059
SM
46302017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4631
4632 * infrun.c (handle_inferior_event_1): When exec'ing, read
4633 stop_pc after follow_exec.
4634
fc809827
SM
46352017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4636
4637 * remote.c (process_g_packet): Update error message.
4638
d2fcdd85
YQ
46392017-09-05 Yao Qi <yao.qi@linaro.org>
4640
4641 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
4642 targets.
4643
e69570ee
PA
46442017-09-05 Pedro Alves <palves@redhat.com>
4645
4646 * eval.c (eval_call, evaluate_funcall): New functions, factored
4647 out from ...
4648 (evaluate_subexp_standard): ... this.
4649
22916b07
YQ
46502017-09-05 Yao Qi <yao.qi@linaro.org>
4651
4652 * amd64-tdep.c (amd64_target_description): Create target
4653 descriptions.
4654 (_initialize_amd64_tdep): Don't call functions
4655 initialize_tdesc_amd64_*. Add self tests.
4656 * arch/amd64.c (amd64_create_target_description): Add parameter
4657 is_linux. Call set_tdesc_osabi if is_linux is true.
4658 * arch/amd64.h (amd64_create_target_description): Update the
4659 declaration.
4660 * arch/i386.c (i386_create_target_description): Add parameter
4661 is_linux. Call set_tdesc_osabi if is_linux is true.
4662 * arch/i386.h (i386_create_target_description): Update
4663 declaration.
4664 * configure.tgt: Add i386.o to gdb_target_obs.
4665 * features/Makefile (XMLTOC): Remove i386/*.xml.
4666 * features/i386/amd64-avx-avx512.c: Remove.
4667 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
4668 * features/i386/amd64-avx-mpx.c: Remove.
4669 * features/i386/amd64-avx.c: Remove.
4670 * features/i386/amd64-mpx.c: Remove.
4671 * features/i386/amd64.c: Remove.
4672 * features/i386/i386-avx-avx512.c: Remove.
4673 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
4674 * features/i386/i386-avx-mpx.c: Remove.
4675 * features/i386/i386-avx.c: Remove.
4676 * features/i386/i386-mmx.c: Remove.
4677 * features/i386/i386-mpx.c: Remove.
4678 * features/i386/i386.c: Remove.
4679 * i386-tdep.c: Don't include features/i386/i386*.c., include
4680 target-descriptions.h and arch/i386.h.
4681 (i386_target_description): Create target descriptions.
4682 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
4683 functions. Do self tests.
4684
0854b7b1
YQ
46852017-09-05 Yao Qi <yao.qi@linaro.org>
4686
4687 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
4688 * features/i386/amd64-avx-avx512-linux.c: Removed.
4689 * features/i386/amd64-avx-linux.c: Removed.
4690 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
4691 * features/i386/amd64-avx-mpx-linux.c: Removed.
4692 * features/i386/amd64-linux.c: Removed.
4693 * features/i386/amd64-mpx-linux.c: Removed.
4694 * features/i386/x32-avx-avx512-linux.c: Removed.
4695 * features/i386/x32-avx-linux.c: Removed.
4696 * features/i386/x32-linux.c: Removed.
4697
b4570e4b
YQ
46982017-09-05 Yao Qi <yao.qi@linaro.org>
4699
4700 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
4701 features/i386/*.c.
4702 (amd64_linux_read_description): Call
4703 amd64_create_target_description.
4704 * arch/amd64.c: New file.
4705 * arch/amd64.h: New file.
4706 * configure.tgt (x86_64-*-linux*): Append amd64.o.
4707 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
4708
6c73f67f
YQ
47092017-09-05 Yao Qi <yao.qi@linaro.org>
4710
4711 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
4712 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
4713 (amd64_linux_read_description): Create target descriptions.
4714 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
4715 functions. Add unit tests.
4716 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
4717 x32-core.xml.
4718 * features/i386/64bit-avx.c: Generated.
4719 * features/i386/64bit-avx512.c: Generated.
4720 * features/i386/64bit-core.c: Generated.
4721 * features/i386/64bit-linux.c: Generated.
4722 * features/i386/64bit-mpx.c: Generated.
4723 * features/i386/64bit-pkeys.c: Generated.
4724 * features/i386/64bit-segments.c: Generated.
4725 * features/i386/64bit-sse.c: Generated.
4726 * features/i386/x32-core.c: Generated.
4727 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
4728 c files for amd64-linux and x32-linux.
4729
9d3d478b
YQ
47302017-09-05 Yao Qi <yao.qi@linaro.org>
4731
4732 * amd64-linux-tdep.c (amd64_linux_read_description): New
4733 function.
4734 (amd64_linux_core_read_description): Call
4735 amd64_linux_read_description.
4736 (amd64_linux_init_abi): Likewise.
4737 (amd64_x32_linux_init_abi): Likewise.
4738 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
4739 * x86-linux-nat.c (x86_linux_read_description): Call
4740 amd64_linux_read_description.
4741
b9f1d50f
YQ
47422017-09-05 Yao Qi <yao.qi@linaro.org>
4743
4744 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
4745 comments.
4746
188c9e6d
YQ
47472017-09-05 Yao Qi <yao.qi@linaro.org>
4748
4749 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
4750 * features/i386/i386-avx-avx512-linux.c: Remove.
4751 * features/i386/i386-avx-linux.c: Remove.
4752 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
4753 * features/i386/i386-avx-mpx-linux.c: Remove.
4754 * features/i386/i386-linux.c: Remove.
4755 * features/i386/i386-mmx-linux.c: Remove.
4756 * features/i386/i386-mpx-linux.c: Remove.
4757
5f035c07
YQ
47582017-09-05 Yao Qi <yao.qi@linaro.org>
4759
4760 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
4761 (SFILES): Add arch/i386.c.
4762 (HFILES_NO_SRCDIR): Add arch/i386.h.
4763 * arch/i386.c: New file.
4764 * arch/i386.h: New file.
4765 * arch/tdesc.h (allocate_target_description): Declare.
4766 (set_tdesc_architecture): Declare.
4767 (set_tdesc_osabi): Declare.
4768 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
4769 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
4770 include arch/i386.h.
4771 (i386_linux_read_description): Remove code and call
4772 i386_create_target_description.
4773 (set_tdesc_architecture): New function.
4774 (set_tdesc_osabi): New function.
4775 * target-descriptions.h (allocate_target_description): Remove.
4776
0abe8a89
YQ
47772017-09-05 Yao Qi <yao.qi@linaro.org>
4778
4779 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
4780 * target-descriptions.c (tdesc_create_feature): Likewise, and
4781 adjust code.
4782 * features/i386/32bit-avx.c: Re-generated.
4783 * features/i386/32bit-avx512.c: Re-generated.
4784 * features/i386/32bit-core.c: Re-generated.
4785 * features/i386/32bit-linux.c: Re-generated.
4786 * features/i386/32bit-mpx.c: Re-generated.
4787 * features/i386/32bit-pkeys.c: Re-generated.
4788 * features/i386/32bit-sse.c: Re-generated.
4789
0a188386
YQ
47902017-09-05 Yao Qi <yao.qi@linaro.org>
4791
4792 * regformats/regdef.h (struct reg): Override operator == and !=.
4793
f49ff000
YQ
47942017-09-05 Yao Qi <yao.qi@linaro.org>
4795
4796 * arch/tdesc.h: New file.
4797 * regformats/regdat.sh: Generate code using tdesc_create_reg.
4798 * target-descriptions.c: Update comments.
4799 * target-descriptions.h: Include "arch/tdesc.h". Remove the
4800 declarations.
4801 * features/i386/32bit-avx.c: Re-generated.
4802 * features/i386/32bit-avx512.c: Re-generated.
4803 * features/i386/32bit-core.c: Re-generated.
4804 * features/i386/32bit-linux.c: Re-generated.
4805 * features/i386/32bit-mpx.c: Re-generated.
4806 * features/i386/32bit-pkeys.c: Re-generated.
4807 * features/i386/32bit-sse.c: Re-generated.
4808
f7000548
YQ
48092017-09-05 Yao Qi <yao.qi@linaro.org>
4810
4811 * regformats/regdat.sh: Update generated code.
4812
c9a5e2a5
YQ
48132017-09-05 Yao Qi <yao.qi@linaro.org>
4814
4815 * regformats/regdat.sh: Adjust code order.
4816
d6b687ac
SM
48172017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4818
4819 * expprint.c (dump_subexp_body_standard): Use constant format
4820 string in fprintf_filtered call.
4821
a379bfd0
JB
48222017-09-04 John Baldwin <jhb@FreeBSD.org>
4823
4824 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
4825 NetBSD/i386.
4826 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
4827
f7efc967
JB
48282017-09-04 John Baldwin <jhb@FreeBSD.org>
4829
4830 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
4831
c49fbc6c
JB
48322017-09-04 John Baldwin <jhb@FreeBSD.org>
4833
4834 * bsd-kvm.o: Define _KMEMUSER.
4835 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
4836 * configure: Regenerate.
4837
26562e73
JB
48382017-09-04 John Baldwin <jhb@FreeBSD.org>
4839
4840 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
4841 * i386-fbsd-nat.c: Likewise.
4842
31cf1487
JB
48432017-09-04 John Baldwin <jhb@FreeBSD.org>
4844
4845 * unittests/array-view-selftests.c: Add include of <array>.
4846
5b9f8a7c
JB
48472017-09-04 John Baldwin <jhb@FreeBSD.org>
4848
4849 * spu-tdep.c (flush_ea_cache): Add missing argument to
4850 call_function_by_hand.
4851
d69cf9b2
PA
48522017-09-04 Pedro Alves <palves@redhat.com>
4853
4854 * NEWS (Safer support for debugging with no debug info): New.
4855
3693fdb3
PA
48562017-09-04 Pedro Alves <palves@redhat.com>
4857
4858 * c-exp.y (function_method, function_method_void): Add current
4859 instance flags to TYPE_INSTANCE.
4860 * dwarf2read.c (check_modifier): New.
4861 (compute_delayed_physnames): Assert that only C++ adds delayed
4862 physnames. Mark fn_fields as const/volatile depending on
4863 physname.
4864 * eval.c (make_params): New type_instance_flags parameter. Use
4865 it as the new type's instance flags.
4866 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
4867 flags element and pass it to make_params.
4868 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
4869 instance flags element.
4870 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
4871 * gdbtypes.h: Include "enum-flags.h".
4872 (type_instance_flags): New enum-flags type.
4873 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
4874 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
4875 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
4876 (follow_type_instance_flags): New function.
4877 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
4878 * parser-defs.h (follow_type_instance_flags): Declare.
4879 * valops.c (value_struct_elt_for_reference): const/volatile must
4880 match too.
4881
e68cb8e0
PA
48822017-09-04 Pedro Alves <palves@redhat.com>
4883
4884 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
4885 function/method scopes; lookup the nested name as a function local
4886 static variable.
4887
858be34c
PA
48882017-09-04 Pedro Alves <palves@redhat.com>
4889
4890 (%type <voidval>): Add function_method.
4891 * c-exp.y (exp): New production for calls with no arguments.
4892 (function_method, function_method_void_or_typelist): New
4893 productions.
4894 (exp): New production for "method()::static_var".
4895 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
4896 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4897 Handle OP_FUNC_STATIC_VAR.
4898 * parse.c (operator_length_standard):
4899 Handle OP_FUNC_STATIC_VAR.
4900
dd5901a6
PA
49012017-09-04 Pedro Alves <palves@redhat.com>
4902
4903 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
4904 handling.
4905 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4906 Ditto.
4907 * parse.c (operator_length_standard, operator_check_standard):
4908 Ditto.
4909 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
4910
46a4882b
PA
49112017-09-04 Pedro Alves <palves@redhat.com>
4912
4913 * ax-gdb.c: Include "typeprint.h".
4914 (gen_expr_for_cast): New function.
4915 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
4916 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
4917 type is unknown.
4918 * dwarf2read.c (new_symbol_full): Fallback to int instead of
4919 nodebug_data_symbol.
4920 * eval.c: Include "typeprint.h".
4921 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
4922 Error out if symbol has unknown type.
4923 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
4924 evaluate_subexp_for_cast.
4925 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
4926 OP_VAR_MSYM_VALUE.
4927 (evaluate_subexp_for_cast): New function.
4928 * gdbtypes.c (init_nodebug_var_type): New function.
4929 (objfile_type): Use it to initialize types of variables with no
4930 debug info.
4931 * typeprint.c (error_unknown_type): New.
4932 * typeprint.h (error_unknown_type): New declaration.
4933 * compile/compile-c-types.c (convert_type_basic): Handle
4934 TYPE_CODE_ERROR; warn and fallback to int for variables with
4935 unknown type.
4936
fe13dfec
PA
49372017-09-04 Pedro Alves <palves@redhat.com>
4938
4939 * eval.c (evaluate_var_value): New function, factored out from ...
4940 (evaluate_subexp_standard): ... here.
4941
d008ee21
PA
49422017-09-04 Pedro Alves <palves@redhat.com>
4943
4944 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
4945 Remove useless assignments to 'op'.
4946
827d0c51
PA
49472017-09-04 Pedro Alves <palves@redhat.com>
4948
4949 * eval.c (eval_skip_value): New function.
4950 (evaluate_subexp_standard): Use it.
4951
2c5a2be1
PA
49522017-09-04 Pedro Alves <palves@redhat.com>
4953
4954 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
4955 function name from symbol/minsym and pass it to
4956 error_call_unknown_return_type.
4957
74ea4be4
PA
49582017-09-04 Pedro Alves <palves@redhat.com>
4959
4960 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
4961 * ax-gdb.c (gen_msym_var_ref): New function.
4962 (gen_expr): Handle OP_VAR_MSYM_VALUE.
4963 * eval.c (evaluate_var_msym_value): New function.
4964 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
4965 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
4966 to call_function_by_hand.
4967 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4968 Handle OP_VAR_MSYM_VALUE.
4969 (union exp_element) <msymbol>: New field.
4970 * minsyms.h (struct type): Forward declare.
4971 (find_minsym_type_and_address): Declare.
4972 * parse.c (write_exp_elt_msym): New function.
4973 (write_exp_msymbol): Delete, refactored as ...
4974 (find_minsym_type_and_address): ... this new function.
4975 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
4976 (operator_length_standard, operator_check_standard): Handle
4977 OP_VAR_MSYM_VALUE.
4978 * std-operator.def (OP_VAR_MSYM_VALUE): New.
4979
7022349d
PA
49802017-09-04 Pedro Alves <palves@redhat.com>
4981
4982 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
4983 TYPE_GNU_IFUNC specially here. Throw error if return type is
4984 unknown.
4985 * ada-typeprint.c (print_func_type): Handle functions with unknown
4986 return type.
4987 * c-typeprint.c (c_type_print_base): Handle functions and methods
4988 with unknown return type.
4989 * compile/compile-c-symbols.c (convert_symbol_bmsym)
4990 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
4991 * compile/compile-c-types.c: Include "objfiles.h".
4992 (convert_func): For functions with unknown return type, warn and
4993 default to int.
4994 * compile/compile-object-run.c (compile_object_run): Adjust call
4995 to call_function_by_hand_dummy.
4996 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
4997 call_function_by_hand.
4998 * eval.c (evaluate_subexp_standard): Adjust calls to
4999 call_function_by_hand. Handle functions and methods with unknown
5000 return type. Pass expect_type to call_function_by_hand.
5001 * f-typeprint.c (f_type_print_base): Handle functions with unknown
5002 return type.
5003 * gcore.c (call_target_sbrk): Adjust call to
5004 call_function_by_hand.
5005 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
5006 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
5007 an integer address type instead of nodebug.
5008 * guile/scm-value.c (gdbscm_value_call): Adjust call to
5009 call_function_by_hand.
5010 * infcall.c (error_call_unknown_return_type): New function.
5011 (call_function_by_hand): New "default_return_type" parameter.
5012 Pass it down.
5013 (call_function_by_hand_dummy): New "default_return_type"
5014 parameter. Use it instead of defaulting to int. If there's no
5015 default and the return type is unknown, throw an error. If
5016 there's a default return type, and the called function has no
5017 debug info, then assume the function is prototyped.
5018 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
5019 New "default_return_type" parameter.
5020 (error_call_unknown_return_type): New declaration.
5021 * linux-fork.c (call_lseek): Cast return type of lseek.
5022 (inferior_call_waitpid, checkpoint_command): Adjust calls to
5023 call_function_by_hand.
5024 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
5025 calls to call_function_by_hand.
5026 * m2-typeprint.c (m2_procedure): Handle functions with unknown
5027 return type.
5028 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5029 (value_nsstring, print_object_command): Adjust calls to
5030 call_function_by_hand.
5031 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
5032 functions with unknown return type.
5033 (pascal_type_print_func_varspec_suffix): New function.
5034 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
5035 TYPE_CODE_METHOD>: Use it.
5036 * python/py-value.c (valpy_call): Adjust call to
5037 call_function_by_hand.
5038 * rust-lang.c (rust_evaluate_funcall): Adjust call to
5039 call_function_by_hand.
5040 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
5041 call_function_by_hand.
5042 * valops.c (value_allocate_space_in_inferior): Adjust call to
5043 call_function_by_hand.
5044 * typeprint.c (type_print_unknown_return_type): New function.
5045 * typeprint.h (type_print_unknown_return_type): New declaration.
5046
54990598
PA
50472017-09-04 Pedro Alves <palves@redhat.com>
5048
5049 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
5050 types with more than one parameter as prototyped.
5051
9a24775b
PA
50522017-09-04 Pedro Alves <palves@redhat.com>
5053
5054 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
5055 (disassemble_command): Use gdb_disassembly_flags instead of bare
5056 int.
5057 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
5058 (dump_insns, do_mixed_source_and_assembly_deprecated)
5059 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
5060 Use gdb_disassembly_flags instead of bare int.
5061 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
5062 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
5063 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
5064 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
5065 (enum gdb_disassembly_flag): ... values of this new enumeration.
5066 (gdb_disassembly_flags): Define.
5067 (gdb_disassembly)
5068 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
5069 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
5070 gdb_disassembly_flags instead of bare int.
5071 * record-btrace.c (btrace_insn_history)
5072 (record_btrace_insn_history, record_btrace_insn_history_range)
5073 (record_btrace_insn_history_from): Use gdb_disassembly_flags
5074 instead of bare int.
5075 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
5076 Use gdb_disassembly_flags instead of bare int.
5077 * target-debug.h (target_debug_print_gdb_disassembly_flags):
5078 Define.
5079 * target-delegates.c: Regenerate.
5080 * target.c (target_insn_history, target_insn_history_from)
5081 (target_insn_history_range): Use gdb_disassembly_flags instead of
5082 bare int.
5083 * target.h: Include "disasm.h".
5084 (struct target_ops) <to_insn_history, to_insn_history_from,
5085 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
5086 int.
5087 (target_insn_history, target_insn_history_from)
5088 (target_insn_history_range): Use gdb_disassembly_flags instead of
5089 bare int.
5090
80a65e9b
SM
50912017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5092
5093 * cli/cli-script.c (build_command_line): For if/while commands,
5094 check whether args is empty.
5095
6b66338c
SM
50962017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5097
5098 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
5099 (enum command_control_type): Likewise.
5100 (struct command_line): Likewise.
5101 (free_command_lines): Likewise.
5102 (struct command_lines_deleter): Likewise.
5103 (command_line_up): Likewise.
5104 (read_command_lines): Likewise.
5105 (read_command_lines_1): Likewise.
5106 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
5107 (enum command_control_type): Likewise.
5108 (struct command_line): Likewise.
5109 (free_command_lines): Likewise.
5110 (struct command_lines_deleter): Likewise.
5111 (command_line_up): Likewise.
5112 (read_command_lines): Likewise.
5113 (read_command_lines_1): Likewise.
5114 * breakpoint.h: Include cli/cli-script.h.
5115 * extension-priv.h: Likewise.
5116 * gdbcmd.h: Likewise.
5117
51abb421
PA
51182017-09-04 Pedro Alves <palves@redhat.com>
5119
5120 * ada-lang.c (is_known_support_routine): Move sal declaration to
5121 where it is initialized.
5122 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
5123 (parse_breakpoint_sals, decode_static_tracepoint_spec)
5124 (clear_command, update_static_tracepoint): Remove init_sal
5125 references. Move declarations closer to initializations.
5126 * cli/cli-cmds.c (list_command): Move sal declarations closer to
5127 initializations.
5128 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
5129 references. Move sal declarations closer to initializations.
5130 * frame.c (find_frame_sal): Return a symtab_and_line via function
5131 return instead of output parameter. Remove init_sal references.
5132 * frame.h (find_frame_sal): Return a symtab_and_line via function
5133 return instead of output parameter.
5134 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
5135 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
5136 instead of memset.
5137 (gdbscm_find_pc_line): Remove init_sal reference.
5138 * infcall.c (call_function_by_hand_dummy): Remove init_sal
5139 references. Move declarations closer to initializations.
5140 * infcmd.c (set_step_frame): Update. Move declarations closer to
5141 initializations.
5142 (finish_backward): Remove init_sal references. Move declarations
5143 closer to initializations.
5144 * infrun.c (process_event_stop_test, handle_step_into_function)
5145 (insert_hp_step_resume_breakpoint_at_frame)
5146 (insert_step_resume_breakpoint_at_caller): Likewise.
5147 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
5148 (symbol_to_sal): Likewise.
5149 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
5150 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
5151 to its initialization.
5152 * reverse.c (save_bookmark_command): Use new/delete. Remove
5153 init_sal references. Move declarations closer to initializations.
5154 * source.c (get_current_source_symtab_and_line): Remove brace
5155 initialization.
5156 (set_current_source_symtab_and_line): Now takes the sal by const
5157 reference. Remove brace initialization.
5158 (line_info): Remove init_sal reference.
5159 * source.h (set_current_source_symtab_and_line): Now takes a
5160 symtab_and_line via const reference.
5161 * stack.c (set_current_sal_from_frame): Adjust.
5162 (print_frame_info): Adjust.
5163 (get_last_displayed_sal): Return the sal via function return
5164 instead of via output parameter. Simplify.
5165 (frame_info): Adjust.
5166 * stack.h (get_last_displayed_sal): Return the sal via function
5167 return instead of via output parameter.
5168 * symtab.c (init_sal): Delete.
5169 (find_pc_sect_line): Remove init_sal references. Move
5170 declarations closer to initializations.
5171 (find_function_start_sal): Remove init_sal references. Move
5172 declarations closer to initializations.
5173 * symtab.h (struct symtab_and_line): In-class initialize all
5174 fields.
5175 * tracepoint.c (set_traceframe_context)
5176 (print_one_static_tracepoint_marker): Remove init_sal references.
5177 Move declarations closer to initializations.
5178 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
5179 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
5180 declarations closer to initializations.
5181 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
5182 init_sal references. Adjust.
5183
6c5b2ebe
PA
51842017-09-04 Pedro Alves <palves@redhat.com>
5185
5186 * ax-gdb.c (agent_command_1): Use range-for.
5187 * break-catch-throw.c (re_set_exception_catchpoint): Update.
5188 * breakpoint.c: Include "common/array-view.h".
5189 (init_breakpoint_sal, create_breakpoint_sal): Change sals
5190 parameter from struct symtabs_and_lines to
5191 array_view<symtab_and_line>. Adjust. Use range-for. Update.
5192 (breakpoint_sals_to_pc): Change sals parameter from struct
5193 symtabs_and_lines to std::vector reference.
5194 (check_fast_tracepoint_sals): Change sals parameter from struct
5195 symtabs_and_lines to std::array_view. Use range-for.
5196 (decode_static_tracepoint_spec): Return a std::vector instead of
5197 symtabs_and_lines. Update.
5198 (create_breakpoint): Update.
5199 (break_range_command, until_break_command, clear_command): Update.
5200 (base_breakpoint_decode_location, bkpt_decode_location)
5201 (bkpt_probe_create_sals_from_location)
5202 (bkpt_probe_decode_location, tracepoint_decode_location)
5203 (tracepoint_probe_decode_location)
5204 (strace_marker_create_sals_from_location): Return a std::vector
5205 instead of symtabs_and_lines.
5206 (strace_marker_create_breakpoints_sal): Update.
5207 (strace_marker_decode_location): Return a std::vector instead of
5208 symtabs_and_lines. Update.
5209 (update_breakpoint_locations): Change struct symtabs_and_lines
5210 parameters to gdb::array_view. Adjust.
5211 (location_to_sals): Return a std::vector instead of
5212 symtabs_and_lines. Update.
5213 (breakpoint_re_set_default): Use std::vector instead of struct
5214 symtabs_and_lines.
5215 (decode_location_default): Return a std::vector instead of
5216 symtabs_and_lines. Update.
5217 * breakpoint.h: Include "common/array-view.h".
5218 (struct breakpoint_ops) <decode_location>: Now returns a
5219 std::vector instead of returning a symtabs_and_lines via output
5220 parameter.
5221 (update_breakpoint_locations): Change sals parameters to use
5222 gdb::array_view.
5223 * cli/cli-cmds.c (edit_command, list_command): Update to use
5224 std::vector and gdb::array_view.
5225 (ambiguous_line_spec): Adjust to use gdb::array_view and
5226 range-for.
5227 (compare_symtabs): Rename to ...
5228 (cmp_symtabs): ... this. Change parameters to symtab_and_line
5229 const reference and adjust.
5230 (filter_sals): Rewrite using std::vector and standard algorithms.
5231 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
5232 (jump_command): Update to use std::vector.
5233 * linespec.c (struct linespec_state) <canonical_names>: Update
5234 comment.
5235 (add_sal_to_sals_basic): Delete.
5236 (add_sal_to_sals, filter_results, convert_results_to_lsals)
5237 (decode_line_2, create_sals_line_offset)
5238 (convert_address_location_to_sals, convert_linespec_to_sals)
5239 (convert_explicit_location_to_sals, parse_linespec)
5240 (event_location_to_sals, decode_line_full, decode_line_1)
5241 (decode_line_with_current_source)
5242 (decode_line_with_last_displayed, decode_objc)
5243 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
5244 (linespec_result::~linespec_result): Adjust to use std::vector
5245 instead of symtabs_and_lines.
5246 * linespec.h (linespec_sals::sals): Now a std::vector.
5247 (struct linespec_result): Use std::vector, bool, and in-class
5248 initialization.
5249 (decode_line_1, decode_line_with_current_source)
5250 (decode_line_with_last_displayed): Return std::vector.
5251 * macrocmd.c (info_macros_command): Use std::vector.
5252 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
5253 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
5254 std::vector.
5255 * probe.h (parse_probes): Return a std::vector.
5256 * python/python.c (gdbpy_decode_line): Use std::vector and
5257 gdb::array_view.
5258 * source.c (select_source_symtab, line_info): Use std::vector.
5259 * stack.c (func_command): Use std::vector.
5260 * symtab.h (struct symtabs_and_lines): Delete.
5261 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
5262
7c44b49c
PA
52632017-09-04 Pedro Alves <palves@redhat.com>
5264
5265 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5266 unittests/array-view-selftests.c.
5267 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
5268 * common/array-view.h: New file.
5269 * unittests/array-view-selftests.c: New file.
5270
e439fa14
PA
52712017-09-04 Pedro Alves <palves@redhat.com>
5272
5273 * cli/cli-cmds.c (edit_command): Pass message to
5274 ambiguous_line_spec.
5275 (list_command): Pass message to ambiguous_line_spec. Say
5276 "first"/"last" instead of "start" and "end" to be consistent with
5277 the manual.
5278 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
5279 them to print formatted message.
5280
7525b645
PA
52812017-09-04 Pedro Alves <palves@redhat.com>
5282
5283 * btrace.c (ftrace_add_pt): Pass btrace_insn to
5284 ftrace_update_insns by reference instead of pointer.
5285
badc0020
YQ
52862017-09-04 Yao Qi <yao.qi@linaro.org>
5287
5288 * i386-go32-tdep.c: Include x86-xstate.h.
5289 (i386_go32_init_abi): Call i386_target_description.
5290 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
5291 if xcr0 is X86_XSTATE_X87_MASK.
5292 * i386-tdep.h (tdesc_i386): Remove the declaration.
5293 (tdesc_i386_mmx): Likewise.
5294
d78bdb54
YQ
52952017-09-04 Yao Qi <yao.qi@linaro.org>
5296
5297 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
5298 X86_XSTATE_SSE_MASK instead of 0.
5299
ca1fa5ee
YQ
53002017-09-04 Yao Qi <yao.qi@linaro.org>
5301
5302 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
5303 i386_target_description.
5304 * i386-fbsd-nat.c (i386fbsd_read_description): Call
5305 i386_target_description.
5306 * i386-tdep.c (i386_gdbarch_init): Likewise.
5307
2434b019
YQ
53082017-09-04 Yao Qi <yao.qi@linaro.org>
5309
5310 * amd64-darwin-tdep.c: Include "x86-xstate.h".
5311 (x86_darwin_init_abi_64): Call amd64_target_description.
5312 * amd64-dicos-tdep.c: Likewise.
5313 * amd64-fbsd-nat.c: Likewise.
5314 * amd64-fbsd-tdep.c: Likewise.
5315 * amd64-nbsd-tdep.c: Likewise.
5316 * amd64-obsd-tdep.c: Likewise.
5317 * amd64-sol2-tdep.c: Likewise.
5318 * amd64-windows-tdep.c: Likewise.
5319 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
5320
0860c437
SM
53212017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5322
5323 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
5324 (btrace_function) <insn>: Change type to use std::vector.
5325 * btrace.c (ftrace_debug, ftrace_call_num_insn,
5326 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
5327 ftrace_update_insns, ftrace_compute_global_level_offset,
5328 btrace_stitch_bts, btrace_clear, btrace_insn_get,
5329 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
5330 change to std::vector.
5331 (ftrace_update_insns): Adjust to change to std::vector, change
5332 type of INSN parameter.
5333 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
5334 * record-btrace.c (btrace_call_history_insn_range,
5335 btrace_compute_src_line_range,
5336 record_btrace_frame_prev_register): Adjust to change to
5337 std::vector.
5338 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
5339 to change to std::vector.
5340
0638b7f9
TT
53412017-09-03 Tom Tromey <tom@tromey.com>
5342
5343 * corefile.c (reopen_exec_file): Use std::string.
5344
8f84fb0e
TT
53452017-09-03 Tom Tromey <tom@tromey.com>
5346
5347 * compile/compile.c (compile_register_name_mangled): Return
5348 std::string.
5349 * compile/compile-loc2c.c (pushf_register_address): Update.
5350 (pushf_register): Update.
5351 * compile/compile-c-types.c (convert_array): Update.
5352 * compile/compile-c-symbols.c (generate_vla_size): Update.
5353 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
5354 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
5355 (convert_one_symbol): Update.
5356 (generate_c_for_for_one_variable): Update.
5357 * compile/compile-c-support.c (c_get_range_decl_name): Return a
5358 std::string.
5359 (generate_register_struct): Update.
5360 * compile/compile-internal.h (c_get_range_decl_name): Return a
5361 std::string.
5362 (compile_register_name_mangled): Return std::string.
5363
18e9961f
TT
53642017-09-03 Tom Tromey <tom@tromey.com>
5365
5366 * utils.c (perror_string): Return a std::string.
5367 (throw_perror_with_name, perror_warning_with_name): Update.
5368
45343786
TT
53692017-09-03 Tom Tromey <tom@tromey.com>
5370
5371 * demangle.c (demangle_command): Use std::string,
5372 unique_xmalloc_ptr.
5373
b57af503
TT
53742017-09-03 Tom Tromey <tom@tromey.com>
5375
5376 * cli/cli-setshow.c (do_set_command): Use std::string.
5377
6eecf35f
TT
53782017-09-03 Tom Tromey <tom@tromey.com>
5379
5380 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
5381
56496dd4
TT
53822017-09-03 Tom Tromey <tom@tromey.com>
5383
5384 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
5385
e91a1fa7
TT
53862017-09-03 Tom Tromey <tom@tromey.com>
5387
5388 * mi/mi-cmd-env.c (env_execute_cli_command): Use
5389 gdb::unique_xmalloc_ptr.
5390
7ffd83d7
TT
53912017-09-03 Tom Tromey <tom@tromey.com>
5392
5393 * thread.c (print_thread_info_1): Use string_printf.
5394 (thread_apply_command, thread_apply_all_command): Use
5395 std::string.
5396
1ccbe998
TT
53972017-09-03 Tom Tromey <tom@tromey.com>
5398
5399 * valprint.c (val_print_string): Update.
5400 * gdbcore.h (memory_error_message): Return std::string.
5401 * corefile.c (memory_error_message): Return std::string.
5402 (memory_error): Update.
5403 * breakpoint.c (insert_bp_location): Update.
5404
23fdd69e
SM
54052017-09-03 Simon Marchi <simon.marchi@ericsson.com>
5406
5407 * target/waitstatus.h (target_waitstatus_to_string): Change
5408 return type to std::string.
5409 * target/waitstatus.c (target_waitstatus_to_string): Return
5410 std::string.
5411 * target.h (target_waitstatus_to_string): Remove declaration.
5412 * infrun.c (resume, clear_proceed_status_thread,
5413 print_target_wait_results, do_target_wait, save_waitstatus,
5414 stop_all_threads): Adjust.
5415 * record-btrace.c (record_btrace_wait): Adjust.
5416 * target-debug.h
5417 (target_debug_print_struct_target_waitstatus_p): Adjust.
5418
5c811d30
JK
54192017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5420
5421 PR gdb/22046
5422 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
5423 detection.
5424
0a2dde4a
SDJ
54252017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
5426
5427 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
5428 for setting/unsetting environment variables on the remote target.
5429 (New remote packets): Add entries for QEnvironmentHexEncoded,
5430 QEnvironmentUnset and QEnvironmentReset.
5431 * common/environ.c (gdb_environ::operator=): Extend method to
5432 handle m_user_set_env_list and m_user_unset_env_list.
5433 (gdb_environ::clear): Likewise.
5434 (match_var_in_string): Change type of first parameter from 'char
5435 *' to 'const char *'.
5436 (gdb_environ::set): Extend method to handle
5437 m_user_set_env_list and m_user_unset_env_list.
5438 (gdb_environ::unset): Likewise.
5439 (gdb_environ::clear_user_set_env): New method.
5440 (gdb_environ::user_set_envp): Likewise.
5441 (gdb_environ::user_unset_envp): Likewise.
5442 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
5443 m_user_unset_env_list on move constructor/assignment.
5444 (unset): Add new default parameter 'update_unset_list = true'.
5445 (clear_user_set_env): New method.
5446 (user_set_envp): Likewise.
5447 (user_unset_envp): Likewise.
5448 (m_user_set_env_list): New std::set.
5449 (m_user_unset_env_list): Likewise.
5450 * common/rsp-low.c (hex2str): New function.
5451 (bin2hex): New overload for bin2hex function.
5452 * common/rsp-low.c (hex2str): New prototype.
5453 (str2hex): New overload prototype.
5454 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
5455 QEnvironmentUnset and QEnvironmentReset.
5456 (remote_protocol_features): Add QEnvironmentHexEncoded,
5457 QEnvironmentUnset and QEnvironmentReset packets.
5458 (send_environment_packet): New function.
5459 (extended_remote_environment_support): Likewise.
5460 (extended_remote_create_inferior): Call
5461 extended_remote_environment_support.
5462 (_initialize_remote): Add QEnvironmentHexEncoded,
5463 QEnvironmentUnset and QEnvironmentReset packet configs.
5464 * unittests/environ-selftests.c (gdb_selftest_env_var):
5465 New variable.
5466 (test_vector_initialization): New function.
5467 (test_init_from_host_environ): Likewise.
5468 (test_reinit_from_host_environ): Likewise.
5469 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
5470 Likewise.
5471 (test_unset_set_empty_vector): Likewise.
5472 (test_vector_clear): Likewise.
5473 (test_std_move): Likewise.
5474 (test_move_constructor):
5475 (test_self_move): Likewise.
5476 (test_set_unset_reset): Likewise.
5477 (run_tests): Rewrite in terms of the functions above.
5478
654670a4
WP
54792017-08-31 Weimin Pan <weimin.pan@oracle.com>
5480
5481 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
5482 (adi_available): Use a temp variable of type CORE_ADDR as argument
5483 3 when calling target_auxv_search.
5484 (adi_normalize_address): Use masks and xor operators to calculate
5485 normalized address.
5486 (adi_read_versions, adi_write_versions, adi_print_versions)
5487 (do_examine, do_assign): Use paddress.
5488
7755ddb7
JB
54892017-08-29 John Baldwin <jhb@FreeBSD.org>
5490
5491 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
5492 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
5493 out of loop and add supply of FIR.
5494 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
5495 add collect of FIR.
5496
fd437cbc
SM
54972017-08-28 Simon Marchi <simon.marchi@ericsson.com>
5498
3804a343 5499 PR gdb/21827
fd437cbc
SM
5500 * cli/cli-script.c (define_command): Don't convert command name
5501 to lower case.
5502
988f6b3d
JB
55032017-08-25 Joel Brobecker <brobecker@adacore.com>
5504
5505 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
5506 Update all callers accordingly. Remove all code blocks handling
5507 the case where DISPP is not NULL.
5508
663c44ac
JK
55092017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5510
5511 PR symtab/22003
5512 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
5513 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
5514 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
5515
f1902523
JK
55162017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5517
5518 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
5519 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
5520 (read_comp_units_from_section): New parameter abbrev_section, use
5521 read_and_check_comp_unit_head, allocate signatured_type if needed.
5522 (create_all_comp_units): Update read_comp_units_from_section caller.
5523
87215ad1
SDJ
55242017-08-23 Pedro Alves <palves@redhat.com>
5525
5526 PR remote/21852
5527 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
5528 to null_ptid and switch to thread without reading the registers
5529 after adding the inferior.
5530
6e41ddec
JK
55312017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5532
5533 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
5534 compile-gcc.
5535 * compile/compile.c (compile_gcc, show_compile_gcc): New.
5536 (compile_to_object): Implement compile_gcc.
5537 (_initialize_compile): Install "set compile-gcc". Initialize
5538 compile_gcc.
5539
e68c32d5
JK
55402017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5541
5542 * compile/compile.c (compile_to_object): Conditionally call
5543 set_verbose. Conditionally call compile or compile_v0.
5544
58afddc6
WP
55452017-08-07 Weimin Pan <weimin.pan@oracle.com>
5546
5547 * sparc64-tdep.h: (adi_normalize_address): New export.
5548 * sparc-nat.h: (open_adi_tag_fd): New export.
5549 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
5550 * sparc64-linux-tdep.c:
5551 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
5552 (sparc64_linux_handle_segmentation_fault): New function.
5553 (sparc64_linux_init_abi): Register
5554 sparc64_linux_handle_segmentation_fault
5555 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
5556 (sparc64_addr_bits_remove): New function.
5557 (sparc64_init_abi): Register sparc64_addr_bits_remove.
5558 (MAX_PROC_NAME_SIZE): New macro.
5559 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
5560 (sparc64adilist): New variable.
5561 (adi_proc_list): New variable.
5562 (find_adi_info): New function.
5563 (add_adi_info): New function.
5564 (get_adi_info_proc): New function.
5565 (get_adi_info): New function.
5566 (info_adi_command): New function.
5567 (read_maps_entry): New function.
5568 (adi_available): New function.
5569 (adi_normalize_address): New function.
5570 (adi_align_address): New function.
5571 (adi_convert_byte_count): New function.
5572 (adi_tag_fd): New function.
5573 (adi_is_addr_mapped): New function.
5574 (adi_read_versions): New function.
5575 (adi_write_versions): New function.
5576 (adi_print_versions): New function.
5577 (do_examine): New function.
5578 (do_assign): New function.
5579 (adi_examine_command): New function.
5580 (adi_assign_command): New function.
5581 (_initialize_sparc64_adi_tdep): New function.
5582
11db9430
SM
55832017-08-22 Simon Marchi <simon.marchi@ericsson.com>
5584
5585 * breakpoint.c (breakpoints_info): Rename to ...
5586 (info_breakpoints_command): ... this.
5587 (watchpoints_info): Rename to ...
5588 (info_watchpoints_command): ... this.
5589 (tracepoints_info): Rename to ...
5590 (info_tracepoints_command): ... this.
5591 (_initialize_breakpoint): Adjust.
5592 * dcache.c (dcache_info): Rename to ...
5593 (info_display_command): ... this.
5594 (_initialize_dcache): Adjust.
5595 * frame.h (args_info): Rename to ...
5596 (info_args_command): ... this.
5597 (locals_info): Rename to ...
5598 (info_locals_command): ... this.
5599 * infcmd.c (nofp_registers_info): Rename to ...
5600 (info_registers_command): ... this.
5601 (float_info): Rename to ...
5602 (info_float_command): ... this.
5603 (program_info): Rename to ...
5604 (info_program_command): ... this.
5605 (all_registers_info): Rename to ...
5606 (info_all_registers_command): ... this.
5607 (vector_info): Rename to ...
5608 (info_vector_command): ... this.
5609 (float_info): Rename to ...
5610 (info_float_command): ... this.
5611 (_initialize_infcmd): Adjust.
5612 * inferior.h (term_info): Rename to ...
5613 (info_terminal_command): ... this.
5614 * inflow.c (term_info): Rename to ...
5615 (info_terminal_command): ... this.
5616 (_initialize_inflow): Adjust.
5617 * infrun.c (signals_info): Rename to ...
5618 (info_signals_command): ... this.
5619 (_initialize_infrun): Adjust.
5620 * objc-lang.c (classes_info): Rename to ...
5621 (info_classes_command): ... this.
5622 (selectors_info): Rename to ...
5623 (info_selectors_command): ... this.
5624 (_initialize_objc_language): Adjust.
5625 * printcmd.c (sym_info): Rename to ...
5626 (info_symbol_command): ... this.
5627 (address_info): Rename to ...
5628 (info_address_command): ... this.
5629 (display_info): Rename to ...
5630 (info_display_command): ... this.
5631 (_initialize_printcmd): Adjust.
5632 * reverse.c (bookmarks_info): Rename to ...
5633 (info_breakpoints_command): ... this.
5634 (_initialize_reverse): Adjust.
5635 * ser-go32.c (dos_info): Rename to ...
5636 (info_serial_command): ... this.
5637 (_initialize_ser_dos): Adjust.
5638 * skip.c (skip_info): Rename to ...
5639 (info_skip_command): ... this.
5640 (_initialize_step_skip): Adjust.
5641 * source.c (line_info): Rename to ...
5642 (info_line_command): ... this.
5643 (source_info): Rename to ...
5644 (info_source_command)
5645 * stack.c (frame_info): Rename to ...
5646 (info_frame_command): ... this.
5647 (locals_info): Rename to ...
5648 (info_locals_command): ... this.
5649 (args_info): Rename to ...
5650 (info_args_command): ... this.
5651 (_initialize_stack): Adjust.
5652 * symtab.c (sources_info): Rename to ...
5653 (info_sources_command): ... this.
5654 (variables_info): Rename to ...
5655 (info_variables_command): ... this.
5656 (functions_info): Rename to ...
5657 (info_functions_command): ... this.
5658 (types_info): Rename to ...
5659 (info_types_command): ... this.
5660 (_initialize_symtab): Adjust.
5661 * target.c (target_info): Rename to ...
5662 (info_target_command): ... this.
5663 (initialize_targets): Adjust.
5664 * tracepoint.c (tvariables_info): Rename to ...
5665 (info_tvariables_command): ... this.
5666 (scope_info): Rename to ...
5667 (info_scope_command): ... this.
5668 (trace_dump_actions): Adjust.
5669 (_initialize_tracepoint): Adjust.
5670
b270e6f9
TT
56712017-08-22 Tom Tromey <tom@tromey.com>
5672
5673 * breakpoint.h (install_breakpoint): Update.
5674 * breakpoint.c (add_solib_catchpoint): Update.
5675 (install_breakpoint): Change argument to a std::unique_ptr.
5676 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
5677 (create_breakpoint_sal, create_breakpoint): Update.
5678 (watch_command_1, catch_exec_command_1)
5679 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
5680 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
5681 Return the breakpoint.
5682 (set_raw_breakpoint_without_location, set_raw_breakpoint)
5683 (new_single_step_breakpoint): Update.
5684 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
5685 std::unique_ptr.
5686 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
5687 std::unique_ptr.
5688 * break-catch-sig.c (create_signal_catchpoint): Use
5689 std::unique_ptr.
5690 * ada-lang.c (create_ada_exception_catchpoint): Use
5691 std::unique_ptr.
5692
36bd8eaa
TT
56932017-08-22 Tom Tromey <tom@tromey.com>
5694
5695 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
5696
56f37645
TT
56972017-08-22 Tom Tromey <tom@tromey.com>
5698
5699 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
5700 (lookup_partial_symbol): Update.
5701
0b581c69
TT
57022017-08-22 Tom Tromey <tom@tromey.com>
5703
5704 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
5705 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
5706 (find_and_open_source, symtab_to_fullname): Update.
5707 * psymtab.c (psymtab_to_fullname): Update.
5708
14278e1f
TT
57092017-08-22 Tom Tromey <tom@tromey.com>
5710
5711 * exec.c (exec_file_attach): Update.
5712 * linux-thread-db.c (try_thread_db_load): Update.
5713 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
5714 * utils.c (gdb_realpath): Change return type.
5715 (gdb_realpath_keepfile): Update.
5716 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
5717 (_initialize_utils): Register the new self test.
5718 * source.c (openp): Update.
5719 (find_and_open_source): Update.
5720 * nto-tdep.c (nto_find_and_open_solib): Update.
5721 * main.c (set_gdb_data_directory): Update.
5722 (captured_main_1): Update.
5723 * dwarf2read.c (dwarf2_get_dwz_file): Update
5724 (dw2_map_symbol_filenames): Update.
5725 * auto-load.c (auto_load_safe_path_vec_update): Update.
5726 (filename_is_in_auto_load_safe_path_vec): Change type of
5727 "filename_realp".
5728 (auto_load_objfile_script): Update.
5729 (file_is_auto_load_safe): Update. Use std::string.
5730 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
5731
4971c9a7
TT
57322017-08-22 Tom Tromey <tom@tromey.com>
5733
5734 * utils.c (gdb_realpath_keepfile): Return a
5735 gdb::unique_xmalloc_ptr.
5736 * exec.c (exec_file_attach): Update.
5737 * utils.h (gdb_realpath_keepfile): Return a
5738 gdb::unique_xmalloc_ptr.
5739
e3e41d58
TT
57402017-08-22 Tom Tromey <tom@tromey.com>
5741
5742 * compile/compile.c (compile_file_command): Use
5743 gdb::unique_xmalloc_ptr, std::string.
5744 * utils.c (gdb_abspath): Change return type.
5745 * source.c (openp): Update.
5746 * objfiles.c (allocate_objfile): Update.
5747 * main.c (set_gdb_data_directory): Update.
5748 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
5749
0d999a6e
ZZ
57502017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
5751
5752 * cli-cmds.c (list_commands): List actual code around more than
5753 one location.
5754
329d5e7e
JB
57552017-08-21 John Baldwin <jhb@FreeBSD.org>
5756
5757 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
5758
bf223d3e
PA
57592017-08-21 Pedro Alves <palves@redhat.com>
5760
5761 PR gdb/19487
5762 * c-exp.y (variable production): Handle function aliases.
5763 * minsyms.c (msymbol_is_text): New function.
5764 * minsyms.h (msymbol_is_text): Declare.
5765 * symtab.c (find_function_alias_target): New function.
5766 * symtab.h (find_function_alias_target): Declare.
5767
c973d0aa
PA
57682017-08-21 Pedro Alves <palves@redhat.com>
5769
5770 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
5771 typedefs.
5772 * typeprint.c (whatis_exp): If handling "whatis", and expression
5773 is OP_TYPE, strip one typedef level. Otherwise don't strip
5774 typedefs here.
5775 * valops.c (value_cast): Save "to" type before resolving
5776 stubs/typedefs. Use that type as resulting value's type.
5777
2989a365
TT
57782017-08-18 Tom Tromey <tom@tromey.com>
5779 Pedro Alves <palves@redhat.com>
5780
5781 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
5782 * sol-thread.c (sol_thread_resume, sol_thread_wait)
5783 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
5784 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
5785 * proc-service.c (ps_xfer_memory): Use scoped_restore.
5786 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
5787 (linux_get_siginfo_data): Add "thread" argument. Use
5788 scoped_restore.
5789 * linux-nat.c (linux_child_follow_fork)
5790 (check_stopped_by_watchpoint): Use scoped_restore.
5791 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
5792 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
5793 (restore_inferior_ptid, save_inferior_ptid): Remove.
5794 * btrace.c (btrace_fetch): Use scoped_restore.
5795 * bsd-uthread.c (bsd_uthread_fetch_registers)
5796 (bsd_uthread_store_registers): Use scoped_restore.
5797 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
5798 scoped_restore.
5799 * aix-thread.c (aix_thread_resume, aix_thread_wait)
5800 (aix_thread_xfer_partial): Use scoped_restore.
5801 * inferior.h (save_inferior_ptid): Remove.
5802
e60eb288
YQ
58032017-08-18 Yao Qi <yao.qi@linaro.org>
5804
5805 PR tdep/21818
5806 * arm-tdep.c (gdb_print_insn_arm): Mark
5807 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
5808
6d580b63
YQ
58092017-08-18 Yao Qi <yao.qi@linaro.org>
5810
5811 * NEWS: Mention GDBserver's new option "--selftest".
5812 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
5813 * selftest.c: Move it to common/selftest.c.
5814 * selftest.h: Move it to common/selftest.h.
5815 * selftest-arch.c (reset): New function.
5816 (tests_with_arch): Call reset.
5817
86dcbf50
YQ
58182017-08-18 Yao Qi <yao.qi@linaro.org>
5819
5820 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
5821 instead of exception_fprintf and printf_filtered.
5822
7649770c
YQ
58232017-08-18 Yao Qi <yao.qi@linaro.org>
5824
5825 * selftest.c (register_self_test): Rename it to
5826 selftests::register_test.
5827 (run_self_tests): selftest::run_tests.
5828 * selftest.h: Update declarations.
5829 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
5830 selftests::register_test_foreach_arch.
5831 * selftest-arch.h: Update declaration.
5832 * aarch64-tdep.c: Update.
5833 * arm-tdep.c: Likewise.
5834 * disasm-selftests.c: Likewise.
5835 * dwarf2loc.c: Likewise.
5836 * dwarf2-frame.c: Likewise.
5837 * findvar.c: Likewise.
5838 * gdbarch-selftests.c: Likewise.
5839 * maint.c (maintenance_selftest): Likewise.
5840 * regcache.c: Likewise.
5841 * rust-exp.y: Likewise.
5842 * selftest-arch.c: Likewise.
5843 * unittests/environ-selftests.c: Likewise.
5844 * unittests/function-view-selftests.c: Likewise.
5845 * unittests/offset-type-selftests.c: Likewise.
5846 * unittests/optional-selftests.c: Likewise.
5847 * unittests/scoped_restore-selftests.c: Likewise.
5848 * utils-selftests.c: Likewise.
5849
b0cba12e
PA
58502017-08-17 Pedro Alves <palves@redhat.com>
5851
5852 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
5853 local.
5854
4c8aa72d
PA
58552017-08-17 Pedro Alves <palves@redhat.com>
5856
5857 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
5858 field.
5859 (reset_die_in_process): Delete, replaced by ...
5860 (process_die_scope): ... this new class. Make it responsible for
5861 freeing cu->line_header too.
5862 (process_die): Use process_die_scope.
5863 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
5864 cu->line_header_die_owner. Don't release the line header if it's
5865 owned by the CU.
5866 (setup_type_unit_groups): Make the CU/DIE own the line header.
5867 Don't release the line header here.
5868
ba713918
AL
58692017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
5870
5871 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
5872
44d0fb3a
RK
58732017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
5874
5875 * NEWS: Mention new shortcuts for nexti and stepi in TUI
5876 Single-Key mode
5877
a5afdb16
RK
58782017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
5879
5880 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
5881 mode command list.
5882
47613aeb
SH
58832017-08-15 Stafford Horne <shorne@gmail.com>
5884
5885 * MAINTAINERS (Write After Approval): Add Stafford Horne.
5886
9c3cc999
SH
58872017-08-15 Stafford Horne <shorne@gmail.com>
5888
5889 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
5890
206726fb
SDJ
58912017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
5892
5893 PR gdb/21954
5894 * infcmd.c (unset_environment_command): Use the 'clear' method on
5895 the environment instead of resetting it.
5896
0335ac6d
JB
58972017-08-15 John Baldwin <jhb@FreeBSD.org>
5898
5899 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
5900 platforms.
5901
d3abe1c8
TT
59022017-08-14 Tom Tromey <tom@tromey.com>
5903
5904 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
5905 (print_binary_chars): Likewise.
5906 (BITS_IN_BYTES): Remove.
5907
d6382fff
TT
59082017-08-14 Tom Tromey <tom@tromey.com>
5909
5910 PR gdb/21675
5911 * valprint.c (LOW_ZERO): Change value to 034.
5912 (print_octal_chars): Add static_asserts for octal constants.
5913 * printcmd.c (print_scalar_formatted): Add 'd' case.
5914
f978cb06
TT
59152017-08-11 Tom Tromey <tom@tromey.com>
5916
5917 * symfile.c (add_symbol_file_command): Use std::vector.
5918
2f5404b3
TT
59192017-08-14 Tom Tromey <tom@tromey.com>
5920
5921 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
5922 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
5923 std::move.
5924 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
5925
de7985c3
PA
59262017-08-11 Pedro Alves <palves@redhat.com>
5927
5928 * infrun.c (process_event_stop_test): Adjust
5929 function_name_is_marked_for_skip call.
5930 * skip.c: Include <list>.
5931 (skiplist_entry): Make it a class with private fields, and
5932 getters/setters.
5933 (skiplist_entry_chain): Delete.
5934 (skiplist_entries): New.
5935 (skiplist_entry_count): Delete.
5936 (highest_skiplist_entry_num): New.
5937 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
5938 (add_skiplist_entry): Delete.
5939 (skiplist_entry::skiplist_entry): New.
5940 (skiplist_entry::add_entry): New.
5941 (skip_file_command, skip_function): Adjust.
5942 (compile_skip_regexp): Delete.
5943 (skip_command): Don't compile regexp here. Adjust to use
5944 skiplist_entry::add_entry.
5945 (skip_info): Adjust to use range-for and getters.
5946 (skip_enable_command, skip_disable_command): Adjust to use
5947 range-for and setters.
5948 (skip_delete_command): Adjust to use std::list.
5949 (add_skiplist_entry): Delete.
5950 (skip_file_p): Delete, refactored as ...
5951 (skiplist_entry::do_skip_file_p): ... this new method.
5952 (skip_gfile_p): Delete, refactored as ...
5953 (skiplist_entry::do_gskip_file_p): ... this new method.
5954 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
5955 (skiplist_entry::skip_function_p): ... this new method.
5956 (function_name_is_marked_for_skip): Now returns bool, and takes
5957 the function sal by const reference. Adjust to use range-for and
5958 skiplist_entry methods.
5959 (_initialize_step_skip): Remove references to
5960 skiplist_entry_chain, skiplist_entry_count.
5961 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
5962 takes the function sal by const reference.
5963
be7d3cd5
YQ
59642017-08-11 Yao Qi <yao.qi@linaro.org>
5965
5966 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
5967 (dwarf2_frame_cache): Remove reset_cache_cleanup.
5968 (dwarf2_frame_cache):
5969 * frame-unwind.c (frame_unwind_try_unwinder): Catch
5970 RETURN_MASK_ALL and set *this_case to NULL.
5971 * frame-unwind.h: Update comments.
5972
1c90d9f0
YQ
59732017-08-11 Yao Qi <yao.qi@linaro.org>
5974
5975 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
5976 (dwarf2_frame_state_copy_regs): Remove.
5977 (dwarf2_frame_state_free_regs): Remove.
5978 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
5979 (dwarf2_restore_rule): Call method .alloc_regs instead of
5980 dwarf2_frame_state_alloc_regs.
5981 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
5982 constructor. Call std::move.
5983 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
5984 (dwarf2_frame_cache): Likewise.
5985
5986 [GDB_SELF_TEST]: Include selftest.h and
5987 selftest-arch.h.
5988 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
5989 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
5990 execute_cfa_program_test.
5991
5992 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
5993 copy ctor, assignment operator, move assignment.
5994 <alloc_regs>: New method.
5995 <swap>: New method.
5996 (struct dwarf2_frame_state): Delete dtor.
5997 (dwarf2_frame_state_alloc_regs): Remove declaration.
5998 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
5999 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
6000
afe37d6b
YQ
60012017-08-11 Yao Qi <yao.qi@linaro.org>
6002
6003 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
6004 (dwarf2_frame_state::dwarf2_frame_state): New.
6005 (dwarf2_frame_state::~dwarf2_frame_state): New.
6006 (dwarf2_fetch_cfa_info): Update.
6007 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
6008 rather than a pointer. Update code.
6009 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
6010 dtor.
6011 <data_align, code_align, retaddr_column>: Change them to const.
6012 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
6013 to bool.
6014
b348037f
YQ
60152017-08-11 Yao Qi <yao.qi@linaro.org>
6016
6017 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
6018 <loc.exp>: New field.
6019 * dwarf2-frame.c (execute_cfa_program): Update.
6020 (dwarf2_frame_prev_register): Update.
6021
e7c9de26
PA
60222017-08-10 Pedro Alves <palves@redhat.com>
6023
6024 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
6025
e8c6b620
JB
60262017-08-09 John Baldwin <jhb@FreeBSD.org>
6027
6028 * fbsd-nat.c (struct fbsd_fork_info): Remove.
6029 (fbsd_pending_children): Use std::list.
6030 (fbsd_remember_child): Likewise.
6031 (fbsd_is_child_pending): Likewise.
6032 (fbsd_pending_vfork_done): Use std::forward_list.
6033 (fbsd_add_vfork_done): Likewise.
6034 (fbsd_is_vfork_done_pending): Likewise.
6035 (fbsd_next_vfork_done): Likewise.
6036
e4a26669
JB
60372017-08-09 John Baldwin <jhb@FreeBSD.org>
6038
6039 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
6040 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
6041 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
6042 for `mapfilename'.
6043 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 6044 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 6045
142311d3
JB
60462017-08-09 John Baldwin <jhb@FreeBSD.org>
6047
6048 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
6049 "filestuff.h".
6050 (fbsd_find_memory_regions): Fix `mapfile' initialization.
6051
42fa2e0e
TT
60522017-08-09 Tom Tromey <tom@tromey.com>
6053
6054 * skip.c (skiplist_entry): New constructor.
6055 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
6056 (skiplist_entry::file_is_glob): Now bool.
6057 (skiplist_entry::file, skiplist_entry::function): Now
6058 std::string.
6059 (make_skip_entry): Return a unique_ptr. Use new.
6060 (free_skiplist_entry, free_skiplist_entry_cleanup)
6061 (make_free_skiplist_entry_cleanup): Remove.
6062 (skip_command, skip_disable_command, add_skiplist_entry)
6063 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
6064 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
6065 (function_name_is_marked_for_skip): Update.
6066 (skip_delete_command): Update. Use delete.
6067
cd3af38d
JW
60682017-08-09 Jiong Wang <jiong.wang@arm.com>
6069
6070 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
6071 (aarch64_linux_core_read_description): New function.
6072 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
6073
29592bde
PA
60742017-08-09 Pedro Alves <palves@redhat.com>
6075
6076 * cp-name-parser.y (cp_comp_to_string): Return a
6077 gdb::unique_xmalloc_ptr<char>.
6078 * cp-support.c (replace_typedefs_qualified_name)
6079 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
6080 (cp_canonicalize_string_full): Use op= instead of explicit
6081 convertion.
6082 (cp_class_name_from_physname, method_name_from_physname)
6083 (cp_func_name, cp_remove_params): Adjust to use
6084 gdb::unique_xmalloc_ptr<char>.
6085 * cp-support.h (cp_comp_to_string): Return a
6086 gdb::unique_xmalloc_ptr<char>.
6087 * python/py-type.c (typy_lookup_type): Adjust to use
6088 gdb::unique_xmalloc_ptr<char>.
6089
b3340438
L
60902017-08-09 H.J. Lu <hongjiu.lu@intel.com>
6091
6092 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
6093
e88e8651
YQ
60942017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
6095 Yao Qi <yao.qi@linaro.org>
6096
6097 * cp-support.c (cp_canonicalize_string_full): Use
6098 gdb::unique_xmalloc_ptr<char>.
6099 (cp_canonicalize_string): Likewise.
6100
f5a29eb0
YQ
61012017-08-09 Yao Qi <yao.qi@linaro.org>
6102
6103 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
6104 * regformats/i386/amd64-avx-avx512.dat: Remove.
6105 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
6106 * regformats/i386/amd64-avx-mpx.dat:Remove.
6107 * regformats/i386/amd64-avx.dat: Remove.
6108 * regformats/i386/amd64-mpx.dat: Remove.
6109 * regformats/i386/i386-avx-avx512.dat: Remove.
6110 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
6111 * regformats/i386/i386-avx-mpx.dat: Remove.
6112 * regformats/i386/i386-mmx.dat: Remove.
6113 * regformats/i386/i386-mpx.dat: Remove.
6114
57757c2f
YQ
61152017-08-09 Yao Qi <yao.qi@linaro.org>
6116
6117 * amd64-tdep.h (tdesc_x32): Remove the declaration.
6118 * amd64-tdep.c: Don't include features/i386/x32*.c.
6119 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
6120 functions.
6121 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
6122 and i386/x32-avx-avx512.
6123 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
6124 and i386/x32.xml.
6125 * features/i386/x32-avx-avx512.c: Removed.
6126 * features/i386/x32-avx-avx512.xml: Removed.
6127 * features/i386/x32-avx.c: Removed.
6128 * features/i386/x32-avx.xml: Removed.
6129 * features/i386/x32.c: Removed.
6130 * features/i386/x32.xml: Removed.
6131 * regformats/i386/x32-avx-avx512.dat: Removed.
6132 * regformats/i386/x32-avx.dat: Removed.
6133 * regformats/i386/x32.dat: Removed.
6134
ba7b109b
MR
61352017-08-07 Maciej W. Rozycki <macro@imgtec.com>
6136
6137 PR breakpoints/21886
6138 * mem-break.c (default_memory_insert_breakpoint): Use
6139 `->placed_address' rather than `->reqstd_address' for the
6140 breakpoint location.
6141
e347efc3
MR
61422017-08-07 Maciej W. Rozycki <macro@imgtec.com>
6143
6144 * arch-utils.c (default_print_insn): Remove arch/mach/endian
6145 assertions.
6146
0dba2a6c
MR
61472017-08-07 Maciej W. Rozycki <macro@imgtec.com>
6148
6149 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
6150 a union of `tdep_info', `tdesc_data' and `id'.
6151 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
6152 rather than `info.tdep_info'.
6153 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
6154 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6155 * i386-tdep.c (i386_gdbarch_init): Likewise.
6156 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
6157 * mips-tdep.c (mips_gdbarch_init): Likewise.
6158 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
6159 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
6160 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
6161 `info.tdep_info'.
6162 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
6163 `info.tdep_info'.
6164 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6165 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
6166 `info.tdep_info'.
6167 * spu-tdep.c (spu_gdbarch_init): Likewise.
6168 * gdbarch.h: Regenerate.
6169
16eb6b2d
LS
61702017-08-07 Leszek Swirski <leszeks@google.com>
6171
7b005726 6172 PR symtab/20899
16eb6b2d
LS
6173 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
6174
74cbb09e
SM
61752017-08-07 Simon Marchi <simon.marchi@ericsson.com>
6176
6177 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
6178 (gdbsim_open): Rename gdb_argv args object to argv.
6179
ee0c3293
TT
61802017-08-05 Tom Tromey <tom@tromey.com>
6181
6182 * compile/compile-object-load.c (compile_object_load): Use
6183 gdb::unique_xmalloc_ptr.
6184 * cli/cli-dump.c (scan_filename): Rename from
6185 scan_filename_with_cleanup. Change return type.
6186 (scan_expression): Rename from scan_expression_with_cleanup.
6187 Change return type.
6188 (dump_memory_to_file, dump_value_to_file, restore_command):
6189 Use gdb::unique_xmalloc_ptr. Update.
6190 * cli/cli-cmds.c (find_and_open_script): Use
6191 gdb::unique_xmalloc_ptr.
6192 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
6193 * symmisc.c (maintenance_print_symbols)
6194 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
6195 * symfile.c (symfile_bfd_open, generic_load)
6196 (add_symbol_file_command, remove_symbol_file_command): Use
6197 gdb::unique_xmalloc_ptr.
6198 * source.c (openp): Use gdb::unique_xmalloc_ptr.
6199 * psymtab.c (maintenance_print_psymbols): Use
6200 gdb::unique_xmalloc_ptr.
6201 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
6202 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
6203 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
6204 (reload_shared_libraries_1): Likewise.
6205
3232fabd
TT
62062017-08-05 Tom Tromey <tom@tromey.com>
6207
6208 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
6209 (rust_op_vector, rust_set_vector): New typedefs.
6210 (current_parser): New global.
6211 (work_obstack): Change to pointer type. Update all users.
6212 (rust_ast, pstate): Remove globals.
6213 (struct rust_parser): New.
6214 (%union) <params, field_inits>: Change type.
6215 (start, tuple_expr, unit_expr, struct_expr_list, literal)
6216 (field_expr, expr_list, maybe_expr_list, type_list): Update.
6217 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
6218 (convert_params_to_types, convert_params_to_expression): Change
6219 type of "params".
6220 (ast_string): Change type of "fields".
6221 (rust_parse): Make a rust_parser. Remove cleanups.
6222 (rust_lex_tests): Make and install an auto_obstack.
6223
f02fd774
YQ
62242017-08-04 Yao Qi <yao.qi@linaro.org>
6225
6226 * configure.srv (ipa_x32_linux_regobj): New.
6227 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
6228 instead of X86_TDESC_AVX512.
6229 (initialize_low_tracepoint): Call
6230 init_registers_x32_avx_avx512_linux.
6231
91975afd
YQ
62322017-08-04 Yao Qi <yao.qi@linaro.org>
6233
6234 * utils.h (gdb_argv): Add namespace std for nullptr_t.
6235
2331fa3a
RK
62362017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
6237
6238 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
6239
744e4fe1
TT
62402017-08-03 Tom Tromey <tom@tromey.com>
6241
6242 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
6243 Remove.
6244 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
6245
1c034b67
TT
62462017-08-03 Tom Tromey <tom@tromey.com>
6247
6248 * python/py-param.c (compute_enum_values): Use gdb_argv.
6249
773a1edc
TT
62502017-08-03 Tom Tromey <tom@tromey.com>
6251
6252 * utils.h (struct gdb_argv_deleter): New.
6253 (gdb_argv): New class.
6254 * utils.c (gdb_argv::reset): New method.
6255 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
6256 * tracefile.c (tsave_command): Use gdb_argv.
6257 * top.c (new_ui_command): Use gdb_argv.
6258 * symmisc.c (maintenance_print_symbols)
6259 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
6260 * symfile.c (symbol_file_command, generic_load)
6261 (remove_symbol_file_command): Use gdb_argv.
6262 * stack.c (backtrace_command): Use gdb_argv.
6263 * source.c (add_path, show_substitute_path_command)
6264 (unset_substitute_path_command, set_substitute_path_command):
6265 Use gdb_argv.
6266 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
6267 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
6268 * remote.c (extended_remote_run, remote_put_command)
6269 (remote_get_command, remote_delete_command): Use gdb_argv.
6270 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
6271 (gdbsim_open): Use gdb_argv.
6272 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
6273 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
6274 * procfs.c (procfs_info_proc): Use gdb_argv.
6275 * interps.c (interpreter_exec_cmd): Use gdb_argv.
6276 * infrun.c (handle_command): Use gdb_argv.
6277 * inferior.c (add_inferior_command, clone_inferior_command):
6278 Use gdb_argv.
6279 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
6280 * exec.c (exec_file_command): Use gdb_argv.
6281 * cli/cli-cmds.c (alias_command): Use gdb_argv.
6282 * compile/compile.c (build_argc_argv): Use gdb_argv.
6283
0d50bde3
TT
62842017-08-03 Tom Tromey <tom@tromey.com>
6285
6286 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
6287
7f968c89
TT
62882017-08-03 Tom Tromey <tom@tromey.com>
6289
6290 * python/python.c (compute_python_string): Return std::string.
6291 (gdbpy_eval_from_control_command): Update.
6292 (do_start_initialization): Use std::string.
6293 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
6294 xstrprintf.
6295 * python/py-breakpoint.c (local_setattro): Use string_printf, not
6296 xstrprintf.
6297
3c9ebddd
TT
62982017-08-03 Tom Tromey <tom@tromey.com>
6299
6300 * top.h (do_restore_instream_cleanup): Remove.
6301 * top.c (do_restore_instream_cleanup): Remove.
6302 (read_command_file): Use scoped_restore.
6303 * cli/cli-script.c (execute_user_command): Use scoped_restore.
6304
b51b225e
TT
63052017-08-03 Tom Tromey <tom@tromey.com>
6306
6307 * cli/cli-script.c (execute_user_command)
6308 (execute_control_command): Use scoped_restore.
6309
ac991630
TT
63102017-08-03 Tom Tromey <tom@tromey.com>
6311
6312 * cli/cli-script.c (do_restore_user_call_depth): Remove.
6313 (execute_user_command): Remove user_call_depth; use
6314 user_args_stack's size instead.
6315
898e0c8e
TT
63162017-08-03 Tom Tromey <tom@tromey.com>
6317
6318 * top.h (in_user_command): Remove.
6319 * top.c (in_user_command): Remove.
6320 * cli/cli-script.c (do_restore_user_call_depth)
6321 (execute_user_command): Update.
6322
26fcd5d7
TT
63232017-08-03 Tom Tromey <tom@tromey.com>
6324
6325 * valops.c (search_struct_method): Use gdb::byte_vector.
6326 * valarith.c (value_concat): Use std::vector.
6327 * target.c (memory_xfer_partial): Use gdb::byte_vector.
6328 (simple_search_memory): Likewise.
6329 * printcmd.c (find_string_backward): Use gdb::byte_vector.
6330 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
6331 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
6332 * elfread.c (elf_rel_plt_read): Use std::string.
6333 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
6334 * cli/cli-dump.c (restore_section_callback): Use
6335 gdb::byte_vector.
6336
7c218e6c
TT
63372017-08-03 Tom Tromey <tom@tromey.com>
6338
6339 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
6340
31b68d4a
TT
63412017-08-03 Tom Tromey <tom@tromey.com>
6342
6343 * tui/tui-regs.c (tui_restore_gdbout): Remove.
6344 (tui_register_format): Use scoped_restore.
6345
2ec845e7
TT
63462017-08-03 Tom Tromey <tom@tromey.com>
6347
6348 * reverse.c (exec_direction_default): Remove.
6349 (exec_reverse_once): Use scoped_restore.
6350 * remote.c (restore_remote_timeout): Remove.
6351 (remote_flash_erase, remote_flash_write, remote_flash_done)
6352 (readchar, remote_serial_write): Use scoped_restore.
6353 * cli/cli-script.c (struct source_cleanup_lines_args)
6354 (source_cleanup_lines): Remove.
6355 (script_from_file): Use scoped_restore.
6356 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
6357 (source_command): Use scoped_restore.
6358
b3bc8453
TT
63592017-08-03 Tom Tromey <tom@tromey.com>
6360
6361 * utils.h (make_cleanup_free_so): Remove.
6362 * utils.c (do_free_so, make_cleanup_free_so): Remove.
6363 * solist.h (struct so_deleter): New.
6364 (so_list_up): New typedef.
6365 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
6366
e3ad2841
TT
63672017-08-03 Tom Tromey <tom@tromey.com>
6368
6369 * utils.h (make_cleanup_restore_current_language): Remove.
6370 * utils.c (do_restore_current_language)
6371 (make_cleanup_restore_current_language): Remove.
6372 * parse.c (parse_exp_in_context_1)
6373 (parse_expression_with_language): Use
6374 scoped_restore_current_language.
6375 * mi/mi-main.c (mi_cmd_execute): Use
6376 scoped_restore_current_language.
6377 * language.h (scoped_restore_current_language): New class.
6378
b80cf838
TT
63792017-08-03 Tom Tromey <tom@tromey.com>
6380
6381 * compile/compile.c (cleanup_unlink_file): Remove.
6382 (compile_to_object): Use gdb::unlinker.
6383 (eval_compile_command): Likewise.
6384
fad0444a
TT
63852017-08-03 Tom Tromey <tom@tromey.com>
6386
6387 * utils.h (make_cleanup_fclose): Remove.
6388 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
6389
6e7bc05c
TT
63902017-08-03 Tom Tromey <tom@tromey.com>
6391
6392 * top.c (open_terminal_stream): Return gdb_file_up.
6393 (new_ui_command): Update.
6394
4a45905b
TT
63952017-08-03 Tom Tromey <tom@tromey.com>
6396
6397 * source.c (print_source_lines_base, forward_search_command)
6398 (reverse_search_command): Use gdb_file_up.
6399
7cd06d6e
TT
64002017-08-03 Tom Tromey <tom@tromey.com>
6401
6402 * fbsd-nat.c (fbsd_find_memory_regions): Update.
6403
ed166945
TT
64042017-08-03 Tom Tromey <tom@tromey.com>
6405
6406 * cli/cli-cmds.c (find_and_open_script): Change return type.
6407 Remove "streamp" and "full_path" parameters.
6408 (source_script_with_search): Update.
6409 * auto-load.c (source_script_file): Update.
6410 * cli/cli-cmds.h (find_and_open_script): Change type.
6411 (open_script): New struct.
6412
d419f42d
TT
64132017-08-03 Tom Tromey <tom@tromey.com>
6414
6415 * xml-support.c (xml_fetch_content_from_file): Update.
6416 * ui-file.c (stdio_file::open): Update.
6417 * tracefile-tfile.c (tfile_start): Update.
6418 * remote.c (remote_file_put, remote_file_get): Update.
6419 * nat/linux-procfs.c (linux_proc_get_int)
6420 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
6421 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
6422 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
6423 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6424 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
6425 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
6426 * linux-nat.c (linux_proc_pending_signals): Update.
6427 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
6428 (file_closer): Remove.
6429 * compile/compile.c (compile_to_object): Update.
6430 * common/filestuff.h (struct gdb_file_deleter): New.
6431 (gdb_file_up): New typedef.
6432 (gdb_fopen_cloexec): Change return type.
6433 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
6434 * cli/cli-dump.c (fopen_with_cleanup): Remove.
6435 (dump_binary_file, restore_binary_file): Update.
6436 * auto-load.c (auto_load_objfile_script_1): Update.
6437
4a2b031d
TT
64382017-08-03 Tom Tromey <tom@tromey.com>
6439
6440 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
6441 (info_static_tracepoint_markers_command): Likewise.
6442 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
6443 * skip.c (skip_info): Use ui_out_emit_table.
6444 * progspace.c (print_program_space): Use ui_out_emit_table.
6445 * osdata.c (info_osdata): Use ui_out_emit_table.
6446 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
6447 ui_out_emit_table.
6448 * linux-thread-db.c (info_auto_load_libthread_db): Use
6449 ui_out_emit_table.
6450 * inferior.c (print_inferior): Use ui_out_emit_table.
6451 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
6452 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
6453 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
6454 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
6455 * ui-out.h (class ui_out_emit_table): New.
6456
a4f320fd
MR
64572017-08-02 Maciej W. Rozycki <macro@imgtec.com>
6458
6459 * mips-tdep.c (mips_fpu_type_str): New function.
6460 (mips_dump_tdep): Call it.
6461
a2f1f308
MR
64622017-08-01 Maciej W. Rozycki <macro@imgtec.com>
6463
6464 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
6465 `->mips_fpu_type'.
6466
7e5ed83b
XR
64672017-07-31 Xavier Roirand <roirand@adacore.com>
6468
6469 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6470
4c9dc811
XR
64712017-07-27 Xavier Roirand <roirand@adacore.com>
6472
6473 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
6474
27d41eac
YQ
64752017-07-26 Yao Qi <yao.qi@linaro.org>
6476
6477 * cli/cli-cmds.c (maintenancechecklist): New variable.
6478 * gdbcmd.h (maintenancechecklist): Declare it.
6479 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
6480 Call i386_linux_read_description with different masks.
6481 * maint.c (maintenance_check_command): New function.
6482 (_initialize_maint_cmds): Call add_prefix_cmd.
6483 * target-descriptions.c (tdesc_reg): override operator != and ==.
6484 (tdesc_type): Likewise.
6485 (tdesc_feature): Likewise.
6486 (target_desc): Likewise.
6487 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
6488 (maintenance_check_xml_descriptions): New function.
6489 (_initialize_target_descriptions) Add command "xml-descriptions".
6490 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
6491
ea03d0d3
YQ
64922017-07-26 Yao Qi <yao.qi@linaro.org>
6493
6494 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
6495 Include features/i386/32bit-*.c.
6496 (i386_linux_read_description): Generate target description if it
6497 doesn't exist.
6498 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
6499 functions.
6500 * features/i386/32bit-linux.c: Re-generated.
6501 * features/i386/32bit-sse.c: Likewise.
6502 * target-descriptions.c (print_c_feature::visit): Print code to
6503 set register number if needed.
6504 (print_c_feature) <m_next_regnum>: New field.
6505
25aa13e5
YQ
65062017-07-26 Yao Qi <yao.qi@linaro.org>
6507
6508 * features/Makefile (CFILES): Rename with TDESC_CFILES.
6509 (FEATURE_XMLFILES): New.
6510 (FEATURE_CFILES): New.
6511 New rules.
6512 (clean-cfiles): Remove generated c files.
6513 * features/i386/32bit-avx.c: Generated.
6514 * features/i386/32bit-avx512.c: Generated.
6515 * features/i386/32bit-core.c: Generated.
6516 * features/i386/32bit-linux.c: Generated.
6517 * features/i386/32bit-mpx.c: Generated.
6518 * features/i386/32bit-pkeys.c: Generated.
6519 * features/i386/32bit-sse.c: Generated.
6520 * target-descriptions.c: Include algorithm.
6521 (tdesc_element_visitor): Add method visit_end.
6522 (print_c_tdesc): Implement visit_end.
6523 (print_c_tdesc:: m_filename_after_features): Move it to
6524 protected.
6525 (print_c_feature): New class.
6526 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
6527 name starts with "i386/32bit-".
6528
6eb1e6a8
YQ
65292017-07-26 Yao Qi <yao.qi@linaro.org>
6530
6531 * target-descriptions.c (tdesc_element_visitor): New class.
6532 (tdesc_element): New class.
6533 (tdesc_reg): Inherit from tdesc_element.
6534 (tdesc_reg::accept): New function.
6535 (tdesc_type): Inherit from tdesc_element.
6536 (tdesc_type::accept): New function.
6537 (tdesc_feature): Inherit from tdesc_element.
6538 (tdesc_feature::accept): New function.
6539 (target_desc): Inherit from tdesc_element.
6540 (target_desc::target_desc): New.
6541 (target_desc::~target_desc): New.
6542 (target_desc::accept): New.
6543 (allocate_target_description): Use new.
6544 (free_target_description): Use delete.
6545 (print_c_tdesc): New class.
6546 (maint_print_c_tdesc_cmd): Adjust.
6547
6548 * features/aarch64.c: Re-generated.
6549 * features/arc-arcompact.c: Re-generated.
6550 * features/arc-v2.c: Re-generated.
6551 * features/arm/arm-with-iwmmxt.c: Re-generated.
6552 * features/arm/arm-with-m.c: Re-generated.
6553 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
6554 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
6555 * features/arm/arm-with-neon.c: Re-generated.
6556 * features/arm/arm-with-vfpv2.c: Re-generated.
6557 * features/arm/arm-with-vfpv3.c: Re-generated.
6558 * features/i386/amd64-avx-avx512.c: Re-generated.
6559 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
6560 * features/i386/amd64-avx.c: Re-generated.
6561 * features/i386/amd64-avx-linux.c: Re-generated.
6562 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
6563 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
6564 * features/i386/amd64-avx-mpx.c: Re-generated.
6565 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
6566 * features/i386/amd64.c: Re-generated.
6567 * features/i386/amd64-linux.c: Re-generated.
6568 * features/i386/amd64-mpx.c: Re-generated.
6569 * features/i386/amd64-mpx-linux.c: Re-generated.
6570 * features/i386/i386-avx-avx512.c: Re-generated.
6571 * features/i386/i386-avx-avx512-linux.c: Re-generated.
6572 * features/i386/i386-avx.c: Re-generated.
6573 * features/i386/i386-avx-linux.c: Re-generated.
6574 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
6575 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
6576 * features/i386/i386-avx-mpx.c: Re-generated.
6577 * features/i386/i386-avx-mpx-linux.c: Re-generated.
6578 * features/i386/i386.c: Re-generated.
6579 * features/i386/i386-linux.c: Re-generated.
6580 * features/i386/i386-mmx.c: Re-generated.
6581 * features/i386/i386-mmx-linux.c: Re-generated.
6582 * features/i386/i386-mpx.c: Re-generated.
6583 * features/i386/i386-mpx-linux.c: Re-generated.
6584 * features/i386/x32-avx-avx512.c: Re-generated.
6585 * features/i386/x32-avx-avx512-linux.c: Re-generated.
6586 * features/i386/x32-avx.c: Re-generated.
6587 * features/i386/x32-avx-linux.c: Re-generated.
6588 * features/i386/x32.c: Re-generated.
6589 * features/i386/x32-linux.c: Re-generated.
6590 * features/microblaze.c: Re-generated.
6591 * features/microblaze-with-stack-protect.c: Re-generated.
6592 * features/mips64-dsp-linux.c: Re-generated.
6593 * features/mips64-linux.c: Re-generated.
6594 * features/mips-dsp-linux.c: Re-generated.
6595 * features/mips-linux.c: Re-generated.
6596 * features/nds32.c: Re-generated.
6597 * features/nios2.c: Re-generated.
6598 * features/nios2-linux.c: Re-generated.
6599 * features/rs6000/powerpc-32.c: Re-generated.
6600 * features/rs6000/powerpc-32l.c: Re-generated.
6601 * features/rs6000/powerpc-403.c: Re-generated.
6602 * features/rs6000/powerpc-403gc.c : Re-generated.
6603 * features/rs6000/powerpc-405.c: Re-generated.
6604 * features/rs6000/powerpc-505.c: Re-generated.
6605 * features/rs6000/powerpc-601.c: Re-generated.
6606 * features/rs6000/powerpc-602.c: Re-generated.
6607 * features/rs6000/powerpc-603.c: Re-generated.
6608 * features/rs6000/powerpc-604.c: Re-generated.
6609 * features/rs6000/powerpc-64.c: Re-generated.
6610 * features/rs6000/powerpc-64l.c: Re-generated.
6611 * features/rs6000/powerpc-7400.c: Re-generated.
6612 * features/rs6000/powerpc-750.c: Re-generated.
6613 * features/rs6000/powerpc-860.c: Re-generated.
6614 * features/rs6000/powerpc-altivec32.c: Re-generated.
6615 * features/rs6000/powerpc-altivec32l.c: Re-generated.
6616 * features/rs6000/powerpc-altivec64.c: Re-generated.
6617 * features/rs6000/powerpc-altivec64l.c: Re-generated.
6618 * features/rs6000/powerpc-cell32l.c: Re-generated.
6619 * features/rs6000/powerpc-cell64l.c: Re-generated.
6620 * features/rs6000/powerpc-e500.c: Re-generated.
6621 * features/rs6000/powerpc-e500l.c: Re-generated.
6622 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
6623 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
6624 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
6625 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
6626 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
6627 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
6628 * features/rs6000/powerpc-vsx32.c: Re-generated.
6629 * features/rs6000/powerpc-vsx32l.c: Re-generated.
6630 * features/rs6000/powerpc-vsx64.c: Re-generated.
6631 * features/rs6000/powerpc-vsx64l.c: Re-generated.
6632 * features/rs6000/rs6000.c: Re-generated.
6633 * features/s390-linux32.c: Re-generated.
6634 * features/s390-linux32v1.c: Re-generated.
6635 * features/s390-linux32v2.c: Re-generated.
6636 * features/s390-linux64.c: Re-generated.
6637 * features/s390-linux64v1.c: Re-generated.
6638 * features/s390-linux64v2.c: Re-generated.
6639 * features/s390-te-linux64.c: Re-generated.
6640 * features/s390-tevx-linux64.c: Re-generated.
6641 * features/s390-vx-linux64.c: Re-generated.
6642 * features/s390x-linux64.c: Re-generated.
6643 * features/s390x-linux64v1.c: Re-generated.
6644 * features/s390x-linux64v2.c: Re-generated.
6645 * features/s390x-te-linux64.c: Re-generated.
6646 * features/s390x-tevx-linux64.c: Re-generated.
6647 * features/s390x-vx-linux64.c: Re-generated.
6648 * features/sparc/sparc32-solaris.c: Re-generated.
6649 * features/sparc/sparc64-solaris.c: Re-generated.
6650 * features/tic6x-c62x.c: Re-generated.
6651 * features/tic6x-c62x-linux.c: Re-generated.
6652 * features/tic6x-c64x.c: Re-generated.
6653 * features/tic6x-c64x-linux.c: Re-generated.
6654 * features/tic6x-c64xp.c: Re-generated.
6655 * features/tic6x-c64xp-linux.c: Re-generated.
6656
35b4818d
YQ
66572017-07-26 Yao Qi <yao.qi@linaro.org>
6658
6659 * i386-linux-tdep.c (i386_linux_read_description): New function.
6660 (i386_linux_core_read_description): Call
6661 i386_linux_read_description.
6662 * i386-linux-tdep.h (i386_linux_read_description): Declare.
6663 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
6664 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
6665 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
6666 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
6667 * x86-linux-nat.c (x86_linux_read_description): Call
6668 i386_linux_read_description.
6669
8e2141c6
YQ
66702017-07-26 Yao Qi <yao.qi@linaro.org>
6671
6672 * NEWS: Mention it.
6673 * features/Makefile (%.c: %.xml): Pass the xml file name to
6674 command "maint print c-tdesc".
6675 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
6676 name from 'arg'.
6677
b468ff4c
YQ
66782017-07-26 Yao Qi <yao.qi@linaro.org>
6679
6680 * target-descriptions.c (target_desc): Add ctor and dtor. Do
6681 in-class initialization.
6682 (tdesc_create_feature): Call new instead of XCNEW.
6683 (free_target_description): Ue delete.
6684
b9c0e1b4
JB
66852017-07-25 John Baldwin <jhb@FreeBSD.org>
6686
6687 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
6688
a04b5337
YQ
66892017-07-25 Yao Qi <yao.qi@linaro.org>
6690
6691 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
6692 constant.
6693 (amd64_x32_init_abi): Likewise.
6694 * amd64-tdep.h (amd64_init_abi): Update declaration.
6695 (amd64_x32_init_abi): Likewise.
6696
02ad7fc2
YQ
66972017-07-25 Yao Qi <yao.qi@linaro.org>
6698
6699 PR tdep/21717
6700 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
6701 condition for FPSCR.
6702 (arm_linux_store_inferior_registers): Likewise.
6703
b6f48cb0
TT
67042017-07-22 Tom Tromey <tom@tromey.com>
6705
6706 * break-catch-syscall.c (struct catch_syscall_inferior_data)
6707 <syscalls_counts>: Now a std::vector.
6708 (get_catch_syscall_inferior_data): Use "new".
6709 (catch_syscall_inferior_data_cleanup): Use "delete".
6710 (insert_catch_syscall, remove_catch_syscall)
6711 (clear_syscall_counts): Update.
6712
e12c9b7a
TT
67132017-07-22 Tom Tromey <tom@tromey.com>
6714
6715 * break-catch-syscall.c (syscall_catchpoint)
6716 <syscalls_to_be_caught>: Now a std::vector<int>
6717 (~syscall_catchpoint): Remove.
6718 (insert_catch_syscall, remove_catch_syscall)
6719 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
6720 (print_mention_catch_syscall, print_recreate_catch_syscall):
6721 Update.
6722 (create_syscall_event_catchpoint): Change type of "filter"
6723 parameter.
6724 (catch_syscall_split_args): Return a std::vector.
6725 (catch_syscall_command_1, catching_syscall_number_1): Update.
6726
4fa8aeac
TT
67272017-07-22 Tom Tromey <tom@tromey.com>
6728
6729 * break-catch-throw.c (struct exception_catchpoint)
6730 <exception_rx>: Now a std::string.
6731 (~exception_catchpoint): Remove.
6732 (print_one_detail_exception_catchpoint): Update.
6733 (handle_gnu_v3_exceptions): Change type of except_rx.
6734 (extract_exception_regexp): Return a std::string.
6735 (catch_exception_command_1): Update.
6736
f746a154
TT
67372017-07-22 Tom Tromey <tom@tromey.com>
6738
6739 * break-catch-sig.c (gdb_signal_type): Remove typedef.
6740 (struct signal_catchpoint) <signals_to_be_caught>: Now a
6741 std::vector.
6742 <catch_all>: Now a bool.
6743 (~signal_catchpoint): Remove.
6744 (signal_catchpoint_insert_location)
6745 (signal_catchpoint_remove_location)
6746 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
6747 (signal_catchpoint_print_mention)
6748 (signal_catchpoint_print_recreate)
6749 (signal_catchpoint_explains_signal): Update.
6750 (create_signal_catchpoint): Change type of "filter" and
6751 "catch_all".
6752 (catch_signal_split_args): Return a std::vector. Change type of
6753 "catch_all".
6754 (catch_signal_command): Update.
6755
47e77640
PA
67562017-07-20 Pedro Alves <palves@redhat.com>
6757
6758 * ada-lang.c (ada_language_defn): Make extern.
6759 (_initialize_ada_language): Remove add_language call.
6760 * c-lang.c (c_language_defn, cplus_language_defn)
6761 (asm_language_defn, minimal_language_defn): Make extern.
6762 (_initialize_c_language): Delete.
6763 * completer.c (compare_cstrings): Delete, moved to utils.h.
6764 * d-lang.c (d_language_defn): Make extern.
6765 (_initialize_d_language): Remove add_language calls.
6766 * defs.h (enum language): Add comment.
6767 * f-lang.c (f_language_defn): Make extern.
6768 (_initialize_f_language): Remove add_language call.
6769 * go-lang.c (go_language_defn): Make extern.
6770 (_initialize_go_language): Remove add_language call.
6771 * language.c: Include <algorithm>.
6772 (languages): Redefine as const array.
6773 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
6774 (set_language_command): Handle "local". Use for-range loop.
6775 (set_language): Remove loop.
6776 (language_enum): Rewrite.
6777 (language_def, language_str): Remove loops.
6778 (add_language): Delete.
6779 (add_set_language_command): New, based on add_languages.
6780 (skip_language_trampoline): Adjust.
6781 (local_language_defn): Delete.
6782 (language_gdbarch_post_init): Adjust.
6783 (_initialize_language): Remove add_language calls. Call
6784 add_set_language_command.
6785 * language.h (add_language): Delete.
6786 (auto_language_defn)
6787 (unknown_language_defn, minimal_language_defn, ada_language_defn)
6788 (asm_language_defn, c_language_defn, cplus_language_defn)
6789 (d_language_defn, f_language_defn, go_language_defn)
6790 (m2_language_defn, objc_language_defn, opencl_language_defn)
6791 (pascal_language_defn, rust_language_defn): Declare.
6792 * m2-lang.c (m2_language_defn): Make extern.
6793 (_initialize_m2_language): Remove add_language call.
6794 * objc-lang.c (objc_language_defn): Make extern.
6795 (_initialize_objc_language): Remove add_language call.
6796 * opencl-lang.c (opencl_language_defn): Make extern.
6797 (_initialize_opencl_language): Remove add_language call.
6798 * p-lang.c (pascal_language_defn): Make extern.
6799 (_initialize_pascal_language): Delete.
6800 * rust-lang.c (rust_language_defn): Make extern.
6801 (_initialize_rust_language): Delete.
6802 * utils.h (compare_cstrings): New static inline function.
6803
edb0c9cb
PA
68042017-07-20 Pedro Alves <palves@redhat.com>
6805
6806 * ada-lang.c (ada_to_fixed_type_1): Adjust.
6807 (get_var_value): Constify parameters.
6808 (get_int_var_value): Change prototype.
6809 (to_fixed_range_type): Adjust.
6810 * ada-lang.h (get_int_var_value): Change prototype.
6811
a778f165
PA
68122017-07-20 Pedro Alves <palves@redhat.com>
6813
6814 * dwarf2read.c (dw2_lookup_symbol): Use
6815 SYMBOL_MATCHES_SEARCH_NAME.
6816 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
6817
42edd901
PA
68182017-07-20 Pedro Alves <palves@redhat.com>
6819
6820 * block.c (block_iter_name_step, block_iter_name_first)
6821 (block_iter_name_next): Delete.
6822 (block_lookup_symbol_primary): Adjust to use
6823 dict_iter_match_first/dict_iter_match_next.
6824 * block.h (block_iter_name_first, block_iter_name_next): Delete
6825 declarations.
6826 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
6827 dict_iter_match_first/dict_iter_match_next.
6828
cf325299
PA
68292017-07-20 Pedro Alves <palves@redhat.com>
6830
6831 * cp-support.c (cp_find_first_component_aux): Add missing case for
6832 end of string.
6833
c5ed0576
DB
68342017-07-18 David Blaikie <dblaikie@gmail.com>
6835
6836 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
6837 of dwo_cu's dwo_file.
6838
27841e76
YQ
68392017-07-18 Yao Qi <yao.qi@linaro.org>
6840
6841 * remote.c (store_registers_using_G): Remove one line comment.
6842
cfb7e58b
YQ
68432017-07-18 Yao Qi <yao.qi@linaro.org>
6844
6845 * regcache.c (regcache_cpy): Simplify it.
6846 (regcache::cpy_no_passthrough): Remove it.
6847 * regcache.h (cpy_no_passthrough): Remove it.
6848 (regcache_dup, regcache_cpy): Update comments.
6849
386535dd
PA
68502017-07-18 Pedro Alves <palves@redhat.com>
6851
6852 * remote-sim.c (sim_command_completer): Adjust to work with a
6853 completion_tracker instead of a VEC.
6854
c45ec17c
PA
68552017-07-17 Pedro Alves <palves@redhat.com>
6856
6857 * completer.c (complete_source_filenames): New function.
6858 (complete_address_and_linespec_locations): New function.
6859 (location_completer): Use complete_address_and_linespec_locations.
6860 (completion_tracker::build_completion_result): Honor the tracker's
6861 request to suppress append.
6862 * completer.h (completion_tracker::suppress_append_ws)
6863 (completion_tracker::set_suppress_append_ws): New methods.
6864 (completion_tracker::m_suppress_append_ws): New field.
6865 (complete_source_filenames): New declaration.
6866 * linespec.c (linespec_complete_what): New.
6867 (struct ls_parser) <complete_what, completion_word,
6868 completion_quote_char, completion_quote_end, completion_tracker>:
6869 New fields.
6870 (string_find_incomplete_keyword_at_end): New.
6871 (linespec_lexer_lex_string): Record quote char. If in completion
6872 mode, don't throw.
6873 (linespec_lexer_consume_token): Advance the completion word point.
6874 (linespec_lexer_peek_token): Save/restore completion info.
6875 (save_stream_and_consume_token): New.
6876 (set_completion_after_number): New.
6877 (linespec_parse_basic): Set what to complete next depending on
6878 token. Handle function and label completions specially.
6879 (parse_linespec): Disable objc shortcut in completion mode. Set
6880 what to complete next depending on token type. Skip keyword if in
6881 completion mode.
6882 (complete_linespec_component, linespec_complete): New.
6883 * linespec.h (linespec_complete): Declare.
6884
be966d42
PA
68852017-07-17 Pedro Alves <palves@redhat.com>
6886
6887 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
6888 Handle 'operator<' / 'operator<<'.
6889
a2459270
PA
68902017-07-17 Pedro Alves <palves@redhat.com>
6891
6892 * completer.c (collect_explicit_location_matches): Handle
6893 MATCH_LABEL.
6894 (convert_explicit_location_to_linespec): New, factored out from
6895 ...
6896 (convert_explicit_location_to_sals): ... this.
6897 (complete_label): New.
6898 (linespec_complete_label, find_label_symbols_in_block): New.
6899 (find_label_symbols): Add completion_mode parameter and adjust to
6900 call find_label_symbols_in_block.
6901 * linespec.h (linespec_complete_label): Declare.
6902
c6756f62
PA
69032017-07-17 Pedro Alves <palves@redhat.com>
6904
6905 * ada-lang.c (ada_collect_symbol_completion_matches): Add
6906 complete_symbol_mode parameter.
6907 * cli/cli-cmds.c (complete_command): Get the completion result out
6908 of the handle_brkchars tracker if used a custom word point.
6909 * completer.c: Include "linespec.h".
6910 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
6911 (advance_to_expression_complete_word_point): New.
6912 (completion_tracker::completes_to_completion_word): New.
6913 (complete_files_symbols): Pass down
6914 complete_symbol_mode::EXPRESSION.
6915 (explicit_options, probe_options): New.
6916 (collect_explicit_location_matches): Complete on the
6917 explictit_loc->foo instead of word. Use
6918 linespec_complete_function. Handle MATCH_LINE. Handle offering
6919 keyword and options completions.
6920 (backup_text_ptr): Delete.
6921 (skip_keyword): New.
6922 (complete_explicit_location): Remove 'word' parameter. Add
6923 language, quoted_arg_start and quoted_arg_end parameters.
6924 Rewrite, parsing left to right.
6925 (location_completer): Rewrite.
6926 (location_completer_handle_brkchars): New function.
6927 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
6928 (enum complete_line_internal_reason): Adjust comments.
6929 (completion_tracker::discard_completions): New.
6930 (completer_handle_brkchars_func_for_completer): Handle
6931 location_completer.
6932 (gdb_custom_word_point_brkchars)
6933 (gdb_org_rl_basic_quote_characters): New.
6934 (gdb_completion_word_break_characters_throw)
6935 (completion_find_completion_word): Handle trackers that use a
6936 custom word point.
6937 (completion_tracker::advance_custom_word_point_by): New.
6938 (completion_tracker::build_completion_result): Don't rely on
6939 readline appending the quote char.
6940 (gdb_rl_attempted_completion_function_throw): Handle trackers that
6941 use a custom word point.
6942 (gdb_rl_attempted_completion_function): Restore
6943 rl_basic_quote_characters.
6944 * completer.h (class completion_tracker): Extend intro comment.
6945 (completion_tracker::set_quote_char)
6946 (completion_tracker::quote_char)
6947 (completion_tracker::set_use_custom_word_point)
6948 (completion_tracker::use_custom_word_point)
6949 (completion_tracker::custom_word_point)
6950 (completion_tracker::set_custom_word_point)
6951 (completion_tracker::advance_custom_word_point_by)
6952 (completion_tracker::completes_to_completion_word)
6953 (completion_tracker::discard_completions): New methods.
6954 (completion_tracker::m_quote_char)
6955 (completion_tracker::m_use_custom_word_point)
6956 (completion_tracker::m_custom_word_point): New fields.
6957 (advance_to_expression_complete_word_point): Declare.
6958 * f-lang.c (f_collect_symbol_completion_matches): Add
6959 complete_symbol_mode parameter.
6960 * language.h (struct language_defn)
6961 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
6962 parameter.
6963 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
6964 (linespec_complete_function): New function.
6965 (linespec_lexer_lex_keyword): Adjust.
6966 * linespec.h (linespec_keywords, linespec_complete_function): New
6967 declarations.
6968 * location.c (find_end_quote): New function.
6969 (explicit_location_lex_one): Add explicit_completion_info
6970 parameter. Save quoting info. Don't throw if being called for
6971 completion. Don't handle Ada operators here.
6972 (is_cp_operator, skip_op_false_positives, first_of)
6973 (explicit_location_lex_one_function): New function.
6974 (string_to_explicit_location): Replace 'dont_throw' parameter with
6975 an explicit_completion_info pointer parameter. Handle it. Don't
6976 use explicit_location_lex_one to lex function names. Use
6977 explicit_location_lex_one_function instead.
6978 * location.h (struct explicit_completion_info): New.
6979 (string_to_explicit_location): Replace 'dont_throw' parameter with
6980 an explicit_completion_info pointer parameter.
6981 * symtab.c (default_collect_symbol_completion_matches_break_on):
6982 Add complete_symbol_mode parameter. Handle LINESPEC mode.
6983 (default_collect_symbol_completion_matches)
6984 (collect_symbol_completion_matches): Add complete_symbol_mode
6985 parameter.
6986 (collect_symbol_completion_matches_type): Pass down
6987 complete_symbol_mode::EXPRESSION.
6988 (collect_file_symbol_completion_matches): Add complete_symbol_mode
6989 parameter. Handle LINESPEC mode.
6990 * symtab.h (complete_symbol_mode): New.
6991 (default_collect_symbol_completion_matches_break_on)
6992 (default_collect_symbol_completion_matches)
6993 (collect_symbol_completion_matches)
6994 (collect_file_symbol_completion_matches): Add complete_symbol_mode
6995 parameter.
6996
1d550c82
PA
69972017-07-17 Pedro Alves <palves@redhat.com>
6998
6999 * utils.c (enum class strncmp_iw_mode): New.
7000 (strcmp_iw): Rename to ...
7001 (strncmp_iw_with_mode): ... this. Add string2_len and mode
7002 parameters. Handle them.
7003 (strncmp_iw): New.
7004 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
7005 * utils.h (strncmp_iw): Declare.
7006 (strcmp_iw): Move describing comments here.
7007
8090b426
PA
70082017-07-17 Pedro Alves <palves@redhat.com>
7009
7010 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
7011 CP_OPERATOR_STR.
7012 * c-typeprint.c (is_type_conversion_operator): Use
7013 CP_OPERATOR_STR.
7014 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
7015 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
7016 CP_OPERATOR_LEN.
7017 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
7018 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
7019 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
7020 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
7021 CP_OPERATOR_STR.
7022 * location.c: Include "cp-support.h".
7023 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
7024 CP_OPERATOR_STR.
7025 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
7026 CP_OPERATOR_LEN.
7027
6a2c1b87
PA
70282017-07-17 Pedro Alves <palves@redhat.com>
7029
7030 * cli/cli-cmds.c (complete_command): Use a completion tracker
7031 along with completion_find_completion_word for handle_brkchars
7032 phase.
7033 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
7034 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
7035 (struct gdb_rl_completion_word_info): New.
7036 (gdb_rl_find_completion_word): New.
7037 (completion_find_completion_word): New.
7038 * completer.h (completion_find_completion_word): Declare.
7039
eb3ff9a5
PA
70402017-07-17 Pedro Alves <palves@redhat.com>
7041
7042 * ada-lang.c (symbol_completion_match): Adjust comments.
7043 (symbol_completion_add): Replace vector parameter with
7044 completion_tracker parameter. Use it.
7045 (ada_make_symbol_completion_list): Rename to...
7046 (ada_collect_symbol_completion_matches): ... this. Add
7047 completion_tracker parameter and use it.
7048 (ada_language_defn): Adjust.
7049 * break-catch-syscall.c (catch_syscall_completer): Adjust
7050 prototype and work with completion_tracker instead of VEC.
7051 * breakpoint.c (condition_completer): Adjust prototype and work
7052 with completion_tracker instead of VEC.
7053 * c-lang.c (c_language_defn, cplus_language_defn)
7054 (asm_language_defn, minimal_language_defn): Adjust to renames.
7055 * cli/cli-cmds.c (complete_command): Rework using
7056 completion_tracker. Catch exceptions when completing.
7057 * cli/cli-decode.c (integer_unlimited_completer)
7058 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
7059 with completion_tracker instead of VEC.
7060 * command.h (struct completion_tracker): Forward declare.
7061 (completer_ftype, completer_handle_brkchars_ftype): Change
7062 types.
7063 (complete_on_cmdlist, complete_on_enum): Adjust.
7064 * completer.c: Include <algorithm>.
7065 (struct gdb_completer_state): New.
7066 (current_completion): New global.
7067 (readline_line_completion_function): Delete.
7068 (noop_completer, filename_completer)
7069 (filename_completer_handle_brkchars, complete_files_symbols)
7070 (linespec_location_completer): Adjust to work with a
7071 completion_tracker instead of a VEC.
7072 (string_or_empty): New.
7073 (collect_explicit_location_matches): Adjust to work with a
7074 completion_tracker instead of a VEC.
7075 (explicit_location_completer): Rename to ...
7076 (complete_explicit_location): ... this and adjust to work with a
7077 completion_tracker instead of a VEC.
7078 (location_completer): Adjust to work with a completion_tracker
7079 instead of a VEC.
7080 (add_struct_fields): Adjust to work with a completion_list instead
7081 of VEC.
7082 (expression_completer): Rename to ...
7083 (complete_expression): ... this and adjust to work with a
7084 completion_tracker instead of a VEC. Use complete_files_symbols.
7085 (expression_completer): Reimplement on top of complete_expression.
7086 (symbol_completer): Adjust to work with a completion_tracker
7087 instead of a VEC.
7088 (enum complete_line_internal_reason): Add describing comments.
7089 (complete_line_internal_normal_command): Adjust to work with a
7090 completion_tracker instead of a VEC.
7091 (complete_line_internal): Rename to ...
7092 (complete_line_internal_1): ... this and adjust to work with a
7093 completion_tracker instead of a VEC. Assert TEXT is NULL in the
7094 handle_brkchars phase.
7095 (new_completion_tracker): Delete.
7096 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
7097 complete_line_internal_1.
7098 (free_completion_tracker): Delete.
7099 (INITIAL_COMPLETION_HTAB_SIZE): New.
7100 (completion_tracker::completion_tracker)
7101 (completion_tracker::~completion_tracker): New.
7102 (maybe_add_completion): Delete.
7103 (completion_tracker::maybe_add_completion)
7104 (completion_tracker::add_completion)
7105 (completion_tracker::add_completions): New.
7106 (throw_max_completions_reached_error): Delete.
7107 (complete_line): Adjust to work with a completion_tracker instead
7108 of a VEC. Don't create a completion_tracker_t or check for max
7109 completions here.
7110 (command_completer, command_completer_handle_brkchars)
7111 (signal_completer, reg_or_group_completer_1)
7112 (reg_or_group_completer, default_completer_handle_brkchars):
7113 Adjust to work with a completion_tracker.
7114 (gdb_completion_word_break_characters_throw): New.
7115 (gdb_completion_word_break_characters): Reimplement.
7116 (line_completion_function): Delete.
7117 (completion_tracker::recompute_lowest_common_denominator)
7118 (expand_preserving_ws)
7119 (completion_tracker::build_completion_result)
7120 (completion_result::completion_result)
7121 (completion_result::completion_result)
7122 (completion_result::~completion_result)
7123 (completion_result::completion_result)
7124 (completion_result::release_match_list, compare_cstrings)
7125 (completion_result::sort_match_list)
7126 (completion_result::reset_match_list)
7127 (gdb_rl_attempted_completion_function_throw)
7128 (gdb_rl_attempted_completion_function): New.
7129 * completer.h (completion_list, struct completion_result)
7130 (class completion_tracker): New.
7131 (complete_line): Add completion_tracker parameter.
7132 (readline_line_completion_function): Delete.
7133 (gdb_rl_attempted_completion_function): New.
7134 (noop_completer, filename_completer, expression_completer)
7135 (location_completer, symbol_completer, command_completer)
7136 (signal_completer, reg_or_group_completer): Update prototypes.
7137 (completion_tracker_t, new_completion_tracker)
7138 (make_cleanup_free_completion_tracker): Delete.
7139 (enum maybe_add_completion_enum): Delete.
7140 (maybe_add_completion): Delete.
7141 (throw_max_completions_reached_error): Delete.
7142 * corefile.c (complete_set_gnutarget): Adjust to work with a
7143 completion_tracker instead of a VEC.
7144 * cp-abi.c (cp_abi_completer): Adjust to work with a
7145 completion_tracker instead of a VEC.
7146 * d-lang.c (d_language_defn): Adjust.
7147 * disasm.c (disassembler_options_completer): Adjust to work with a
7148 completion_tracker instead of a VEC.
7149 * f-lang.c (f_make_symbol_completion_list): Rename to ...
7150 (f_collect_symbol_completion_matches): ... this. Adjust to work
7151 with a completion_tracker instead of a VEC.
7152 (f_language_defn): Adjust.
7153 * go-lang.c (go_language_defn): Adjust.
7154 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
7155 Adjust to work with a completion_tracker instead of a VEC.
7156 * infrun.c (handle_completer): Likewise.
7157 * interps.c (interpreter_completer): Likewise.
7158 * interps.h (interpreter_completer): Likewise.
7159 * language.c (unknown_language_defn, auto_language_defn)
7160 (local_language_defn): Adjust.
7161 * language.h (language_defn::la_make_symbol_completion_list):
7162 Rename to ...
7163 (language_defn::la_collect_symbol_completion_matches): ... this
7164 and adjust to work with a completion_tracker instead of a VEC.
7165 * m2-lang.c (m2_language_defn): Adjust.
7166 * objc-lang.c (objc_language_defn): Adjust.
7167 * opencl-lang.c (opencl_language_defn): Adjust.
7168 * p-lang.c (pascal_language_defn): Adjust.
7169 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
7170 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
7171 with a completion_tracker.
7172 * rust-lang.c (rust_language_defn): Adjust.
7173 * symtab.c (free_completion_list, do_free_completion_list)
7174 (return_val, completion_tracker): Delete.
7175 (completion_list_add_name, completion_list_add_symbol)
7176 (completion_list_add_msymbol, completion_list_objc_symbol)
7177 (completion_list_add_fields, add_symtab_completions): Add
7178 completion_tracker parameter and use it.
7179 (default_make_symbol_completion_list_break_on_1): Rename to...
7180 (default_collect_symbol_completion_matches_break_on): ... this.
7181 Add completion_tracker parameter and use it instead of allocating
7182 a completion tracker here.
7183 (default_make_symbol_completion_list_break_on): Delete old
7184 implementation.
7185 (default_make_symbol_completion_list): Delete.
7186 (default_collect_symbol_completion_matches): New.
7187 (make_symbol_completion_list): Delete.
7188 (collect_symbol_completion_matches): New.
7189 (make_symbol_completion_type): Rename to ...
7190 (collect_symbol_completion_matches_type): ... this. Add
7191 completion_tracker parameter and use it instead of VEC.
7192 (make_file_symbol_completion_list_1): Rename to...
7193 (collect_file_symbol_completion_matches): ... this. Add
7194 completion_tracker parameter and use it instead of VEC.
7195 (make_file_symbol_completion_list): Delete.
7196 (add_filename_to_list): Use completion_list instead of a VEC.
7197 (add_partial_filename_data::list): Now a completion_list.
7198 (make_source_files_completion_list): Work with a completion_list
7199 instead of a VEC.
7200 * symtab.h: Include "completer.h".
7201 (default_make_symbol_completion_list_break_on)
7202 (default_make_symbol_completion_list, make_symbol_completion_list)
7203 (make_symbol_completion_type, make_file_symbol_completion_list)
7204 (make_source_files_completion_list): Delete.
7205 (default_collect_symbol_completion_matches_break_on)
7206 (default_collect_symbol_completion_matches)
7207 (collect_symbol_completion_matches)
7208 (collect_symbol_completion_matches_type)
7209 (collect_file_symbol_completion_matches)
7210 (make_source_files_completion_list): New.
7211 * top.c (init_main): Don't install a rl_completion_entry_function
7212 hook. Install a rl_attempted_completion_function hook instead.
7213 * tui/tui-layout.c (layout_completer): Adjust to work with a
7214 completion_tracker.
7215 * tui/tui-regs.c (tui_reggroup_completer):
7216 * tui/tui-win.c (window_name_completer, focus_completer)
7217 (winheight_completer): Adjust to work with a completion_tracker.
7218 * value.c: Include "completer.h".
7219 (complete_internalvar): Adjust to work with a completion_tracker.
7220 * value.h (complete_internalvar): Likewise.
7221
6e1dbf8c
PA
72222017-07-17 Pedro Alves <palves@redhat.com>
7223
7224 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
7225 renames.
7226 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
7227 comments to completer_ftype's declaration.
7228 <completer_handle_brkchars>: Change type to
7229 completer_handle_brkchars_ftype.
7230 * command.h (completer_ftype): Add describing comment and give
7231 names to parameters.
7232 (completer_ftype_void): Rename to ...
7233 (completer_handle_brkchars_ftype) ... this. Add describing comment.
7234 (set_cmd_completer_handle_brkchars): Adjust.
7235 * completer.c (filename_completer_handle_brkchars): New function.
7236 (complete_line_internal_normal_command): New function, factored
7237 out from ...
7238 (complete_line_internal): ... here.
7239 (command_completer_handle_brkchars)
7240 (default_completer_handle_brkchars)
7241 (completer_handle_brkchars_func_for_completer): New functions.
7242 * completer.h (set_gdb_completion_word_break_characters): Delete
7243 declaration.
7244 (completer_handle_brkchars_func_for_completer): New declaration.
7245 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
7246 completer_handle_brkchars_func_for_completer.
7247
78b13106
PA
72482017-07-17 Pedro Alves <palves@redhat.com>
7249
7250 * completer.c (symbol_completer): New function, based on
7251 make_symbol_completion_list_fn.
7252 * completer.h (symbol_completer): New declaration.
7253 * guile/scm-cmd.c (cmdscm_completers): Adjust.
7254 * python/py-cmd.c (completers): Adjust.
7255 * symtab.c (make_symbol_completion_list_fn): Delete.
7256 * symtab.h (make_symbol_completion_list_fn): Delete.
7257 * cli/cli-decode.c (add_cmd): Adjust.
7258
bbf2f4df
PA
72592017-07-17 Pedro Alves <palves@redhat.com>
7260
7261 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
7262 * dwarf2read.c: Include "filename-seen-cache.h".
7263 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
7264 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
7265 * filename-seen-cache.c: New file.
7266 * filename-seen-cache.h: New file.
7267 * symtab.c: Include "filename-seen-cache.h".
7268 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
7269 (create_filename_seen_cache, clear_filename_seen_cache)
7270 (delete_filename_seen_cache, filename_seen): Delete, parts moved
7271 to filename-seen-cache.h/filename-seen-cache.c.
7272 (output_source_filename, sources_info)
7273 (maybe_add_partial_symtab_filename)
7274 (make_source_files_completion_list): Adjust to use
7275 filename_seen_cache.
7276
330cdd98
PA
72772017-07-17 Pedro Alves <palves@redhat.com>
7278
7279 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
7280 fields.
7281 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
7282 dwarf2_debug_sections*)): New.
7283 (dwarf2_per_objfile::dwarf2_per_objfile(const
7284 dwarf2_per_objfile&)): Declare as deleted.
7285 (dwarf2_per_objfile::operator=): Declare as deleted.
7286 (dwarf2_per_objfile::dwarf2_per_objfile)
7287 (dwarf2_per_objfile::~dwarf2_per_objfile)
7288 (dwarf2_per_objfile::free_cached_comp_units): New.
7289 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
7290 ctor. Call dwarf2_per_objfile's ctor manually.
7291 (dwarf2_locate_sections): Deleted/refactored as ...
7292 (dwarf2_per_objfile::locate_sections): ... this new method.
7293 (free_cached_comp_units): Defer to
7294 dwarf2_per_objfile::free_cached_comp_units.
7295 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
7296
8880f2a9
TT
72972017-07-14 Tom Tromey <tom@tromey.com>
7298
7299 PR rust/21764:
7300 * rust-exp.y (convert_ast_to_expression): Add "want_type"
7301 parameter.
7302 <UNOP_SIZEOF>: Split into separate case.
7303 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
7304
65547233
TT
73052017-07-14 Tom Tromey <tom@tromey.com>
7306
7307 PR rust/21763:
7308 * symtab.c (symbol_matches_domain): Add language_rust to special
7309 case.
7310 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
7311 treat LOC_TYPEDEF symbols as variables.
7312
8f14146e
PA
73132017-07-14 Pedro Alves <palves@redhat.com>
7314
7315 * symtab.c (make_file_symbol_completion_list_1): Iterate over
7316 symtabs matching all symtabs with SRCFILE as file name instead of
7317 only considering the first hit, with lookup_symtab.
7318
2347965c
SM
73192017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7320
7321 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
7322 operator_name parameters.
7323 (gen_expr): Update function call.
7324
40f4af28
SM
73252017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7326
7327 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
7328 parameter.
7329 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
7330 Likewise.
7331 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
7332 parameter, use agent_expr::gdbarch instead, update function
7333 calls.
7334 (locexpr_tracepoint_var_ref): Likewise.
7335 (loclist_tracepoint_var_ref): Likewise.
7336 * ax-gdb.c (gen_trace_static_fields): Likewise.
7337 (gen_traced_pop): Likewise.
7338 (gen_frame_args_address): Likewise.
7339 (gen_frame_locals_address): Likewise.
7340 (gen_var_ref): Likewise.
7341 (gen_struct_ref_recursive): Likewise.
7342 (gen_static_field): Likewise.
7343 (gen_maybe_namespace_elt): Likewise.
7344 (gen_expr): Likewise.
7345 (gen_trace_for_var): Likewise.
7346 (gen_trace_for_expr): Likewise.
7347 (gen_trace_for_return_address): Likewise.
7348
053f8057
SM
73492017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7350
7351 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
7352 parameter.
7353 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
7354
6661ad48
SM
73552017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7356
7357 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
7358 from ax, update calls.
7359 (gen_usual_arithmetic): Likewise.
7360 (gen_integral_promotions): Likewise.
7361 (gen_bitfield_ref): Likewise.
7362 (gen_primitive_field): Likewise.
7363 (gen_struct_ref_recursive): Likewise.
7364 (gen_struct_ref): Likewise.
7365 (gen_maybe_namespace_elt): Likewise.
7366 (gen_struct_elt_for_reference): Likewise.
7367 (gen_namespace_elt): Likewise.
7368 (gen_aggregate_elt_ref): Likewise.
7369 (gen_expr): Get gdbarch from ax, update calls.
7370 (gen_expr_binop_rest): Likewise.
7371
c55a47e7
PA
73722017-07-13 Pedro Alves <palves@redhat.com>
7373
7374 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
7375 as default tdesc.
7376 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
7377 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
7378 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
7379 tdesc_amd64_linux as default tdesc. Get final tdesc from the
7380 tdep.
7381 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
7382 Get final tdesc from the tdep.
7383 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
7384 default tdesc.
7385 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
7386 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
7387 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
7388 Use it as default tdesc.
7389 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
7390 down to amd_init_abi. No longer handle fallback tdesc here.
7391 * amd64-tdep.h (tdesc_x32): Declare.
7392 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
7393 parameter.
7394 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
7395 as default tdesc.
7396
55efceab
AA
73972017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7398
7399 * s390-linux-tdep.c (s390_process_record): Add support for
7400 instructions new in arch12.
7401
0aa37b65
JB
74022017-07-11 John Baldwin <jhb@FreeBSD.org>
7403
7404 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
7405 PT_GETFSBASE and PT_GETGSBASE.
7406 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
7407 PT_SETGSBASE.
7408
48aeef91
JB
74092017-07-11 John Baldwin <jhb@FreeBSD.org>
7410
7411 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
7412 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
7413 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
7414 those rules.
7415 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
7416 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
7417 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
7418 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
7419 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
7420 * features/i386/amd64.xml: Add 64bit-segments.xml.
7421 * features/i386/amd64-avx-avx512.c: Regenerated.
7422 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
7423 * features/i386/amd64-avx-mpx.c: Regenerated.
7424 * features/i386/amd64-avx.c: Regenerated.
7425 * features/i386/amd64-mpx.c: Regenerated.
7426 * features/i386/amd64.c: Regenerated.
7427 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
7428 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
7429 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
7430 * regformats/i386/amd64-avx.dat: Regenerated.
7431 * regformats/i386/amd64-mpx.dat: Regenerated.
7432 * regformats/i386/amd64.dat: Regenerated.
7433
77c501bc
YQ
74342017-07-10 Yao Qi <yao.qi@linaro.org>
7435
7436 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
7437 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
7438
6dc8d757
AK
74392017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
7440
7441 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
7442 unsetenv.
7443 * gnulib/aclocal.m4: Regenerate.
7444 * gnulib/config.in: Regenerate.
7445 * gnulib/configure: Regenerate.
7446 * gnulib/import/Makefile.am: Regenerate.
7447 * gnulib/import/Makefile.in: Regenerate.
7448 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
7449 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
7450 * gnulib/import/m4/environ.m4: New file.
7451 * gnulib/import/m4/setenv.m4: New file.
7452 * gnulib/import/setenv.c: New file.
7453 * gnulib/import/unsetenv.c: New file.
7454
266934d1
SM
74552017-07-09 Simon Marchi <simon.marchi@ericsson.com>
7456
7457 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
7458 address when op is DW_OP_addr.
7459
03278692
TT
74602017-07-09 Tom Tromey <tom@tromey.com>
7461
7462 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
7463 check and apply to outer type.
7464
4b654465
JB
74652017-07-07 John Baldwin <jhb@FreeBSD.org>
7466
7467 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
7468 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
7469 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
7470 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
7471
2af9fc44
JB
74722017-07-07 John Baldwin <jhb@FreeBSD.org>
7473
7474 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
7475
382b69bb
JB
74762017-07-07 John Baldwin <jhb@FreeBSD.org>
7477
7478 * corelow.c (get_core_siginfo): Remove.
7479 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
7480 instead of get_core_siginfo.
7481 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
7482 * gdbarch.h: Re-generate.
7483 * gdbarch.c: Re-generate.
7484 * linux-tdep.c (linux_core_xfer_siginfo): New.
7485 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
7486
6e5eab33
JB
74872017-07-07 John Baldwin <jhb@FreeBSD.org>
7488
7489 * corelow.c (thread_section_name): Move to ...
7490 * gdbcore.h (thread_section_name): ... here.
7491
929edea9
JB
74922017-07-07 John Baldwin <jhb@FreeBSD.org>
7493
7494 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
7495 (struct siginfo32): New.
7496 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
7497 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
7498 via ptrace(PT_LWPINFO).
7499
762c974a
JB
75002017-07-07 John Baldwin <jhb@FreeBSD.org>
7501
7502 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
7503 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
7504 (fbsd_get_siginfo_type): New.
7505 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
7506 (_initialize_fbsd_tdep): New.
7507
33c5cd75
DB
75082017-07-06 David Blaikie <dblaikie@gmail.com>
7509
7510 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
7511 a singular dwo_unit*) to support multiple CUs in the same way that
7512 multiple TUs are supported.
7513 (create_cus_hash_table): Replace create_dwo_cu with a function for
7514 parsing multiple CUs from a DWO file.
7515 (open_and_init_dwo_file): Use create_cus_hash_table rather than
7516 create_dwo_cu.
7517 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
7518 htab_find, rather than comparing the signature to a singleton CU in
7519 the dwo_file.
7520
8455d262
PA
75212017-07-06 Pedro Alves <palves@redhat.com>
7522
7523 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
7524
4da3eb35
PA
75252017-07-04 Pedro Alves <palves@redhat.com>
7526
7527 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
7528 * gdbtypes.h (TYPE_STATIC): Delete.
7529 (struct fn_field) <is_public, is_abstract, is_static, is_final,
7530 is_synchronized, is_native>: Delete.
7531 <dummy>: Bump.
7532 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
7533 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
7534 (TYPE_FN_FIELD_ABSTRACT): Delete.
7535
5bfd255c
SM
75362017-07-03 Simon Marchi <simon.marchi@ericsson.com>
7537
7538 * buffer.h (buffer_finish): Fix spelling mistakes.
7539
25c54127
EZ
75402017-07-01 Eli Zaretskii <eliz@gnu.org>
7541
7542 * .dir-locals.el: Automatically switch to C-style comments in
7543 versions of Emacs that support the feature.
7544
dc4bde35
SDJ
75452017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
7546 Pedro Alves <palves@redhat.com>
7547
7548 PR cli/21688
7549 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
7550 (process_next_line): New variable 'inline_cmd'.
7551 Adjust 'if' clauses for "python", "compile" and "guile" to use
7552 'command_name_equals' and check for '!inline_cmd'.
7553
51ed89aa
SDJ
75542017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
7555
7556 PR cli/21688
7557 * cli/cli-script.c (command_name_equals_not_inline): New function.
7558 (process_next_line): Adjust 'if' clauses for "python", "compile"
7559 and "guile" to use command_name_equals_not_inline.
7560
eb17d413
PA
75612017-06-29 Pedro Alves <palves@redhat.com>
7562
7563 * completer.c (expression_completer): Call
7564 linespec_location_completer instead of location_completer.
7565
195bcdd5
PA
75662017-06-29 Pedro Alves <palves@redhat.com>
7567
7568 * completer.c (expression_completer): Remove code that recomputes
7569 'text' from 'word'.
7570
adc764e7
YQ
75712017-06-29 Yao Qi <yao.qi@linaro.org>
7572
7573 * regformats/regdat.sh: Generate code with
7574 "ifndef IN_PROCESS_AGENT".
7575
6e75794e
PA
75762017-06-28 Pedro Alves <palves@redhat.com>
7577
7578 * command.h: Include "common/scoped_restore.h".
7579
bc491f2e
YQ
75802017-06-28 Yao Qi <yao.qi@linaro.org>
7581
7582 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
7583 instead of obstack_grow.
7584
41664b45
DG
75852017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
7586
7587 PR gdb/21337
7588 * symfile.c (reread_symbols): Call objfiles_changed just before
7589 read_symbols.
7590
6da67eb1
PA
75912017-06-27 Pedro Alves <palves@redhat.com>
7592
7593 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
7594 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
7595 (completion_list_add_symbol, completion_list_add_msymbol):
7596 ... these new functions.
7597 (add_symtab_completions)
7598 (default_make_symbol_completion_list_break_on_1): Adjust.
7599
23732b1e
PA
76002017-06-27 Pedro Alves <palves@redhat.com>
7601
7602 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
7603 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
7604 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
7605 dtor.
7606 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
7607 'storage_obstack' field an auto_obstack. In-class initialize all
7608 non-bitfield fields. Make minsyms_read bool.
7609 * symfile.c (read_symbols): Adjust.
7610
a4d1e79a
AH
76112017-06-27 Alan Hayward <alan.hayward@arm.com>
7612
7613 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
7614 (gdbsim_store_register): Likewise.
7615
8268c778
PA
76162017-06-27 Pedro Alves <palves@redhat.com>
7617
7618 * c-exp.y (name_obstack): Now an auto_obstack.
7619 (yylex): Use auto_obstack::clear.
7620 (c_parse): Use auto_obstack::clear instead of reinitializing and
7621 freeing the obstack.
7622 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
7623 * d-exp.y (name_obstack): Now an auto_obstack.
7624 (yylex): Use auto_obstack::clear.
7625 (d_parse): Use auto_obstack::clear instead of reinitializing and
7626 freeing the obstack.
7627 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
7628 auto_obstack.
7629 * dwarf2read.c (create_addrmap_from_index)
7630 (dwarf2_build_psymtabs_hard)
7631 (update_enumeration_type_from_children): Likewise.
7632 * gdb_obstack.h (auto_obstack): New type.
7633 * go-exp.y (name_obstack): Now an auto_obstack.
7634 (build_packaged_name): Use auto_obstack::clear.
7635 (go_parse): Use auto_obstack::clear instead of reinitializing and
7636 freeing the obstack.
7637 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
7638 auto_obstack.
7639 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
7640 * rust-exp.y (work_obstack): Now an auto_obstack.
7641 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
7642 reinitializing and freeing the obstack.
7643 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
7644 (host_char_to_target): Use auto_obstack.
7645 * utils.h (make_cleanup_obstack_free): Delete declaration.
7646 * valprint.c (generic_emit_char, generic_printstr): Use
7647 auto_obstack.
7648
db665f42
SM
76492017-06-27 Simon Marchi <simon.marchi@ericsson.com>
7650
7651 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
7652 thread.
7653 (darwin_init_thread_list): Don't update dummy thread.
7654 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
7655
873c0814
SM
76562017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7657
7658 * record-full.c (netorder16): Remove.
7659
8b5a7a6e
SM
76602017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7661
7662 * common/diagnostics.h: Define macros for GCC.
7663 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
7664 * common/vec.h: Include diagnostics.h.
7665 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
7666 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
7667 warning.
7668
d1435379
SM
76692017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7670
7671 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
7672 New macro.
7673 * ada-lex.l: Ignore deprecated register warnings.
7674
cc75e0fd
SM
76752017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7676
7677 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
7678 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
7679
07809eaf
SM
76802017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7681
7682 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
7683 its own line.
7684
f076f034
SM
76852017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7686
7687 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
7688
0dd5cbc5
AH
76892017-06-23 Alan Hayward <alan.hayward@arm.com>
7690
7691 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
7692 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
7693 (xtensa_register_read_masked): Likewise.
7694
d4c6ce5b
SDJ
76952017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
7696
7697 * common/environ.c (gdb_environ::unset): Update comment.
7698
16892a03
AH
76992017-06-22 Alan Hayward <alan.hayward@arm.com>
7700
7701 * python/py-unwind.c (pyuw_sniffer): Allocate space for
7702 registers.
7703
d7dcbefc
AH
77042017-06-22 Alan Hayward <alan.hayward@arm.com>
7705
7706 * record-full.c (record_full_exec_insn): Use byte_vector.
7707
b30ff123
YQ
77082017-06-22 Yao Qi <yao.qi@linaro.org>
7709
7710 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
7711 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
7712
4fa847d7
AH
77132017-06-22 Alan Hayward <alan.hayward@arm.com>
7714
7715 * remote.c (cached_reg): Move from here...
7716 * regcache.h (cached_reg): ...to here.
7717 * python/py-unwind.c (struct reg_info): Remove.
7718 (cached_frame_info): Use cached_reg_t.
7719 (pyuw_prev_register): Likewise.
7720 (pyuw_sniffer): Use cached_reg_t and allocate registers.
7721 (pyuw_dealloc_cache): Free all registers.
7722
f4906a9a
PA
77232017-06-22 Pedro Alves <palves@redhat.com>
7724 Simon Marchi <simon.marchi@ericsson.com>
7725
7726 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
7727 warning.
7728 * common/diagnostics.h: New file.
7729
b45a1208
PA
77302017-06-22 Pedro Alves <palves@redhat.com>
7731
7732 * common/agent.h: Add include guards.
7733
e4da2c61
SM
77342017-06-21 Simon Marchi <simon.marchi@ericsson.com>
7735
7736 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
7737 talk about addressable units instead of bytes.
7738
96160d60
SDJ
77392017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7740
7741 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
7742 of '::const_iterator'.
7743
9a6c7d9c
SDJ
77442017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7745
7746 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7747 'unittests/environ-selftests.c'.
7748 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
7749 * charset.c (find_charset_names): Declare object 'iconv_env'.
7750 Update code to use 'iconv_env' object. Remove call to
7751 'free_environ'.
7752 * common/environ.c: Include <utility>.
7753 (make_environ): Delete function.
7754 (free_environ): Delete function.
7755 (gdb_environ::clear): New function.
7756 (gdb_environ::operator=): New function.
7757 (gdb_environ::get): Likewise.
7758 (environ_vector): Delete function.
7759 (set_in_environ): Delete function.
7760 (gdb_environ::set): New function.
7761 (unset_in_environ): Delete function.
7762 (gdb_environ::unset): New function.
7763 (gdb_environ::envp): Likewise.
7764 * common/environ.h: Include <vector>.
7765 (struct gdb_environ): Delete; transform into...
7766 (class gdb_environ): ... this class.
7767 (free_environ): Delete prototype.
7768 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
7769 environ_vector): Likewise.
7770 * infcmd.c (run_command_1): Update code to call
7771 'envp' from 'gdb_environ' class.
7772 (environment_info): Update code to call methods from 'gdb_environ'
7773 class.
7774 (unset_environment_command): Likewise.
7775 (path_info): Likewise.
7776 (path_command): Likewise.
7777 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
7778 (inferior::inferior): Initialize 'environment' using the host's
7779 information.
7780 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
7781 Include "environ.h".
7782 (class inferior) <environment>: Change type from 'struct
7783 gdb_environ' to 'gdb_environ'.
7784 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
7785 methods from 'gdb_environ' class.
7786 * solib.c (solib_find_1): Likewise
7787 * unittests/environ-selftests.c: New file.
7788
75c554cf
YQ
77892017-06-20 Yao Qi <yao.qi@linaro.org>
7790
7791 * features/i386/i386-linux.xml: Exchange the order of including
7792 32bit-linux.xml and 32bit-sse.xml.
7793 * features/i386/i386-linux.c: Regenerated.
7794
72ddacb7
YQ
77952017-06-20 Yao Qi <yao.qi@linaro.org>
7796
7797 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
7798 Delete copy ctor and assignment operator.
7799 (tdesc_type): Likewise.
7800 (tdesc_feature): Likewise.
7801 (tdesc_free_reg): Remove.
7802 (tdesc_create_reg): Use new.
7803 (tdesc_free_type): Remove.
7804 (tdesc_create_vector): Use new.
7805 (tdesc_create_union): Likewise.
7806 (tdesc_create_flags): Likewise.
7807 (tdesc_create_enum): Likewise.
7808 (tdesc_free_feature): Delete.
7809 (free_target_description): Use delete.
7810
325c9fd4
JB
78112017-06-19 John Baldwin <jhb@FreeBSD.org>
7812
7813 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
7814 registers.
7815
16b7a719
PA
78162017-06-19 Pedro Alves <palves@redhat.com>
7817
7818 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
7819 after gdb::unlinker.
7820
1c8e01c9
SDJ
78212017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
7822
7823 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
7824 gdb_environ to access an environment variable.
7825
ffce45d2
TP
78262017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7827
7828 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
7829 gdb_byte*.
7830
1d4fbac9
SM
78312017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7832
7833 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
7834
8465943a
SM
78352017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7836
7837 * configure: Re-generate.
7838 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
7839
3e019bdc
SM
78402017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7841
7842 * configure: Re-generate.
7843 * warning.m4: Pass -Werror to compiler when checking for
7844 supported warning flags.
7845
cf0dd6f0
SM
78462017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7847
7848 * Makefile.in (COMPILE.pre): Add "-x c++".
7849
6f98355c
YQ
78502017-06-16 Alan Hayward <alan.hayward@arm.com>
7851 Pedro Alves <palves@redhat.com>
7852 Yao Qi <yao.qi@linaro.org>
7853
7854 * defs.h (RequireLongest): New.
7855 (extract_integer): Declare function template.
7856 (extract_signed_integer): Remove the declaration, but define it
7857 static inline.
7858 (extract_unsigned_integer): Likewise.
7859 (store_integer): Declare function template.
7860 (store_signed_integer): Remove the declaration, but define it
7861 static inline.
7862 (store_unsigned_integer): Likewise.
7863 * findvar.c (extract_integer): New function template.
7864 (extract_signed_integer): Remove.
7865 (extract_unsigned_integer): Remove.
7866 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
7867 instantiations.
7868 (store_integer): New function template.
7869 (store_signed_integer): Remove.
7870 (store_unsigned_integer): Remove.
7871 (store_integer): Explicit instantiations.
7872 * regcache.c (regcache_raw_read_signed): Update.
7873 (regcache::raw_read): New function.
7874 (regcache::raw_read_signed): Remove.
7875 (regcache::raw_read_unsigned): Remove.
7876 (regcache_raw_read_unsigned): Update.
7877 (regcache_raw_write_unsigned): Update.
7878 (regcache::raw_write_signed): Remove.
7879 (regcache::raw_write): New function.
7880 (regcache_cooked_read_signed): Update.
7881 (regcache::raw_write_unsigned): Remove.
7882 (regcache::cooked_read_signed): Remove.
7883 (regcache_cooked_read_unsigned): Update.
7884 (regcache::cooked_read_unsigned): Remove.
7885 (regcache_cooked_write_signed): Update.
7886 (regcache_cooked_write_unsigned): Update.
7887 * regcache.h (regcache) <raw_read_signed>: Remove.
7888 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
7889 <raw_read, raw_write>: New.
7890 <cooked_read_signed, cooked_write_signed>: Remove.
7891 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
7892 <cooked_read, cooked_write>: New.
7893 * sh64-tdep.c (sh64_pseudo_register_read): Update.
7894 (sh64_pseudo_register_write): Update.
7895
a87dc45a
AK
78962017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
7897
7898 * arc-tdep.c (arc_disassembler_options): New variable.
7899 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
7900 of default_print_insn.
7901 (arc_delayed_print_insn): Set info->section when needed,
7902 use default_print_insn to retrieve a disassembler.
7903
45159d6a
SDJ
79042017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
7905
7906 PR gdb/21574
7907 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
7908 to mention $SHELL and startup-with-shell.
7909
b46c4cf0
MF
79102017-06-14 Max Filippov <jcmvbkbc@gmail.com>
7911
7912 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
7913
6394c606
YQ
79142017-06-14 Yao Qi <yao.qi@linaro.org>
7915
7916 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
7917 default_print_insn instead of print_insn_aarch64.
7918 * arm-tdep.c (gdb_print_insn_arm): Call
7919 default_print_insn instead of print_insn_big_arm
7920 and print_insn_little_arm.
7921 * i386-tdep.c (i386_print_insn): Call default_print_insn
7922 instead of print_insn_i386.
7923 * ia64-tdep.c (ia64_print_insn): Call
7924 default_print_insn instead of print_insn_ia64.
7925 * mips-tdep.c (gdb_print_insn_mips): Call
7926 default_print_insn instead of print_insn_big_mips
7927 and print_insn_little_mips.
7928 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
7929 instead of print_insn_spu.
7930
d5722aa2
PA
79312017-06-14 Pedro Alves <palves@redhat.com>
7932
7933 * ada-lang.c: Include "common/byte-vector.h".
7934 (ada_value_primitive_packed_val): Use gdb::byte_vector.
7935 * charset.c (wchar_iterator::iterate): Resize the vector instead
7936 of reserving it.
7937 * common/byte-vector.h: Include "common/def-vector.h".
7938 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
7939 * cli/cli-dump.c: Include "common/byte-vector.h".
7940 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
7941 * common/byte-vector.h: New file.
7942 * common/def-vector.h: New file.
7943 * common/default-init-alloc.h: New file.
7944 * dwarf2loc.c: Include "common/byte-vector.h".
7945 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
7946 instead of reserving it.
7947 * dwarf2read.c: Include "common/byte-vector.h".
7948 (data_buf::m_vec): Now a gdb::byte_vector.
7949 * gdb_regex.c: Include "common/def-vector.h".
7950 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
7951 * mi/mi-main.c: Include "common/byte-vector.h".
7952 (mi_cmd_data_read_memory): Use gdb::byte_vector.
7953 * printcmd.c: Include "common/byte-vector.h".
7954 (print_scalar_formatted): Use gdb::byte_vector.
7955 * valprint.c: Include "common/byte-vector.h".
7956 (maybe_negate_by_bytes, print_decimal_chars): Use
7957 gdb::byte_vector.
7958
01ec7a27
SM
79592017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7960
7961 * darwin-nat.c: Include "nat/fork-inferior.h".
7962
848d9074
SM
79632017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7964
7965 * configure.nat: Factor out Darwin bits that are not
7966 architecture-specific. Add fork-inferior.o.
7967
3b912944
SM
79682017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7969
7970 * configure.nat: Factor out AIX bits that are not
7971 architecture-specific. Add fork-inferior.o.
7972
55acdf22
AA
79732017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7974
7975 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
7976 (read_pieced_value, write_pieced_value): ...here. Reduce to
7977 wrappers that just call rw_pieced_value.
7978
f65e2044
AA
79792017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7980
7981 * dwarf2loc.c (write_pieced_value): When writing the data for a
7982 memory piece, use write_memory_with_notification instead of
7983 write_memory.
7984
23f945bf
AA
79852017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7986
7987 * valops.c (read_value_memory): Change embedded_offset to
7988 represent a bit offset instead of a byte offset.
7989 * value.h (read_value_memory): Adjust comment.
7990
f236533e
AA
79912017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7992
7993 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
7994 dest_offset_bits and source_offset_bits.
7995 (write_pieced_value): Likewise.
7996
65d84b76
AA
79972017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7998
7999 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
8000 given by DW_OP_bit_piece.
8001 (write_pieced_value): Likewise.
8002
242d31ab
AA
80032017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8004
8005 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
8006 some other preparations to the places where sufficient information
8007 is available.
8008 (write_pieced_value): Likewise.
8009
03c8af18
AA
80102017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8011
8012 * dwarf2loc.c (bits_to_bytes): New function.
8013 (read_pieced_value): Fix offset calculations for register pieces
8014 on big-endian targets.
8015 (write_pieced_value): Likewise.
8016
840989c1
AA
80172017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8018
8019 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
8020 (write_pieced_value): Likewise.
8021
359b19bb
AA
80222017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8023
8024 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
8025 transfer the source value's least significant bits, instead of its
8026 lowest-addressed ones. Rename type_len to max_offset.
8027 (read_pieced_value): Mirror above changes to write_pieced_value as
8028 applicable.
8029
07c9ca3b
AA
80302017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8031
8032 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
8033 truncate full bytes from dest_offset_bits before using it as an
8034 offset into the buffer.
8035
f1cc9874
AA
80362017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8037
8038 * dwarf2loc.c (write_pieced_value): Include transfer size in
8039 byte-wise check.
8040
cdaac320
AA
80412017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8042
8043 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
8044 calculation of this_size.
8045
af547a96
AA
80462017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8047
8048 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
8049 when targeting a bit-field.
8050 (write_pieced_value): Likewise.
8051
ddd7882a
AA
80522017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8053
8054 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
8055 (allocate_piece_closure): Drop addr_size parameter.
8056 (dwarf2_evaluate_loc_desc_full): Adjust call to
8057 allocate_piece_closure.
8058
e9352324
AA
80592017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8060
8061 PR gdb/21226
8062 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
8063 the LSB end, independent of endianness.
8064
d5d1163e
AA
80652017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
8066
8067 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
8068 size capping.
8069
032bb6ea
YQ
80702017-06-13 Yao Qi <yao.qi@linaro.org>
8071
8072 * mips-linux-nat.c: Move include features/mips*-linux.c to
8073 mips-linux-tdep.c.
8074 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
8075 to mips-linux-tdep.c.
8076 * mips-linux-tdep.c: Include features/mips*-linux.c
8077 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
8078 functions.
8079 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
8080 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
8081 (tdesc_mips64_dsp_linux): Declare.
8082
f12f6bad
TT
80832017-06-12 Tom Tromey <tom@tromey.com>
8084
8085 * valprint.h (val_print_type_code_int): Remove.
8086 * valprint.c (generic_val_print_int): Always call
8087 val_print_scalar_formatted.
8088 (val_print_type_code_int): Remove.
8089 * printcmd.c (print_scalar_formatted): Handle options->format==0.
8090 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
8091 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
8092 * ada-valprint.c (ada_val_print_num): Use
8093 val_print_scalar_formatted.
8094
d9109c80
TT
80952017-06-12 Tom Tromey <tom@tromey.com>
8096
8097 * printcmd.c (print_scalar_formatted): Unify the two switches.
8098 Don't convert scalars to LONGEST.
8099
4ac0cb1c
TT
81002017-06-12 Tom Tromey <tom@tromey.com>
8101
8102 PR exp/16225:
8103 * valprint.h (print_decimal_chars): Update.
8104 * valprint.c (maybe_negate_by_bytes): New function.
8105 (print_decimal_chars): Add "is_signed" argument.
8106 * printcmd.c (print_scalar_formatted): Update.
8107
30a25466
TT
81082017-06-12 Tom Tromey <tom@tromey.com>
8109
8110 PR exp/16225:
8111 * valprint.h (print_binary_chars, print_hex_chars): Update.
8112 * valprint.c (val_print_type_code_int): Update.
8113 (print_binary_chars): Add "zero_pad" argument.
8114 (emit_octal_digit): New function.
8115 (print_octal_chars): Don't zero-pad.
8116 (print_decimal_chars): Likewise.
8117 (print_hex_chars): Add "zero_pad" argument.
8118 * sh64-tdep.c (sh64_do_fp_register): Update.
8119 * regcache.c (regcache::dump): Update.
8120 * printcmd.c (print_scalar_formatted): Update.
8121 * infcmd.c (default_print_one_register_info): Update.
8122
b3464d03
PA
81232017-06-12 Pedro Alves <palves@redhat.com>
8124 Alan Hayward <alan.hayward@arm.com>
8125
8126 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
8127 (mips_eabi_push_dummy_call): Rename local 'regsize' to
8128 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
8129 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
8130 Assert that abi_regsize bytes fit in 'ref_valbuf'.
8131
4b76cda9
PA
81322017-06-12 Pedro Alves <palves@redhat.com>
8133
8134 * dwarf2read.c (mapped_symtab::data): Now a vector of
8135 symtab_index_entry instead of vector of
8136 std::unique_ptr<symtab_index_entry>. All users adjusted to check
8137 whether an element's name is NULL instead of checking whether the
8138 element itself is NULL.
8139 (find_slot): Change return type. Adjust.
8140 (hash_expand, , add_index_entry, uniquify_cu_indices)
8141 (write_hash_table): Adjust.
8142
e8f8bcb3
PA
81432017-06-12 Pedro Alves <palves@redhat.com>
8144
8145 * dwarf2read.c (recursively_count_psymbols): New function.
8146 (write_psymtabs_to_index): Call it to compute number of psyms and
8147 pass estimate size of psyms_seen to unordered_set's ctor.
8148
70a1152b
PA
81492017-06-12 Pedro Alves <palves@redhat.com>
8150
8151 * dwarf2read.c (write_hash_table): Check if key already exists
8152 before emplacing.
8153
c2f134ac
PA
81542017-06-12 Pedro Alves <palves@redhat.com>
8155
8156 * dwarf2read.c (data_buf::append_space): Rename to...
8157 (data_buf::grow): ... this, and make private. Adjust all callers.
8158 (data_buf::append_uint): New method.
8159 (add_address_entry, write_one_signatured_type)
8160 (write_psymtabs_to_index): Use it.
8161
a81e6d4d
PA
81622017-06-12 Pedro Alves <palves@redhat.com>
8163
8164 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
8165 (file_write (FILE *, const std::vector<Elem>&)): Delete.
8166 (data_buf::file_write): Call ::fwrite directly.
8167
6fd931f2
PA
81682017-06-12 Pedro Alves <palves@redhat.com>
8169
8170 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
8171 std::vector::erase.
8172
bc8f2430
JK
81732017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8174
8175 Code cleanup: C++ify .gdb_index producer.
8176 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
8177 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
8178 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
8179 (create_strtab, add_string): Remove.
8180 (file_write, data_buf): New.
8181 (struct symtab_index_entry): Use std::vector for cu_indices.
8182 (struct mapped_symtab): Use std::vector for data.
8183 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
8184 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
8185 Remove.
8186 (find_slot): Change return type. Update it to the new data structures.
8187 (hash_expand, add_index_entry): Update it to the new data structures.
8188 (offset_type_compare): Remove.
8189 (uniquify_cu_indices): Update it to the new data structures.
8190 (c_str_view, c_str_view_hasher, vector_hasher): New.
8191 (add_indices_to_cpool): Remove.
8192 (write_hash_table): Update it to the new data structures.
8193 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
8194 (eq_psymtab_cu_index): Remove.
8195 (psym_index_map): New typedef.
8196 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
8197 reference and std::unordered_map for cu_index_htab.
8198 (add_address_entry, add_address_entry_worker, write_address_map)
8199 (write_psymbols): Update it to the new data structures.
8200 (write_obstack): Remove.
8201 (struct signatured_type_index_data): Change types_list to a data_buf
8202 reference and psyms_seen to a std::unordered_set reference.
8203 (write_one_signatured_type, recursively_write_psymbols)
8204 (write_psymtabs_to_index): Update it to the new data structures.
8205
c4dcb155
SM
82062017-06-11 Simon Marchi <simon.marchi@ericsson.com>
8207
8208 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
8209 separate-debug-file commands.
8210 * symfile.h (separate_debug_file_debug): New global.
8211 * symfile.c (separate_debug_file_debug): New global.
8212 (separate_debug_file_exists, find_separate_debug_file): Add
8213 debug output.
8214 (_initialize_symfile): Add "set debug separate-debug-file"
8215 command.
8216 * build-id.c (build_id_to_debug_bfd,
8217 find_separate_debug_file_by_buildid): Add debug output.
8218
6d45d4b4
SM
82192017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
8220
8221 * gdbarch.sh (displaced_step_free_closure): Remove.
8222 * gdbarch.h, gdbarch.c: Re-generate.
8223 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
8224 displaced_step_free_closure.
8225 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
8226 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8227 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8228 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
8229 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
8230 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8231 * arch-utils.h (simple_displaced_step_free_closure): Remove.
8232 * arch-utils.c (simple_displaced_step_free_closure): Remove.
8233 * infrun.c (displaced_step_clear): Call xfree instead of
8234 gdbarch_displaced_step_free_closure.
8235
2f91880f
SDJ
82362017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
8237
8238 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
8239 NULL".
8240
b8b6e72f
AH
82412017-06-08 Alan Hayward <alan.hayward@arm.com>
8242
8243 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
8244 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
8245 (mn10300_push_dummy_call): Likewise.
8246
5369082e
AH
82472017-06-08 Alan Hayward <alan.hayward@arm.com>
8248
8249 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
8250
ff4ca5ac
AH
82512017-06-08 Alan Hayward <alan.hayward@arm.com>
8252
8253 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
8254
aefd8b33
SDJ
82552017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8256
8257 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
8258 able to start inferiors using a shell.
8259 (New remote packets): Announce new packet "QStartupWithShell".
8260 * remote.c: Add PACKET_QStartupWithShell.
8261 (extended_remote_create_inferior): Handle new
8262 PACKET_QStartupWithShell.
8263 (remote_protocol_features) <QStartupWithShell>: New entry for
8264 PACKET_QStartupWithShell.
8265 (_initialize_remote): Call "add_packet_config_cmd" for
8266 QStartupShell.
8267
2090129c
SDJ
82682017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8269 Pedro Alves <palves@redhat.com>
8270
8271 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
8272 and "nat/fork-inferior.h".
8273 * common/common-inferior.h: New file, with contents from
8274 "gdb/inferior.h".
8275 * commom/common-utils.c: Include "common-utils.h".
8276 (stringify_argv): New function.
8277 * common/common-utils.h (stringify_argv): New prototype.
8278 * configure.nat: Add "fork-inferior.o" as a dependency for
8279 "*linux*", "fbsd*" and "nbsd*" hosts.
8280 * corefile.c (get_exec_file): Update comment.
8281 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
8282 instead of "startup_inferior".
8283 (darwin_create_inferior): Call "add_thread_silent" after
8284 "fork_inferior".
8285 * fork-child.c: Cleanup unnecessary includes.
8286 (SHELL_FILE): Move to "common/common-fork-child.c".
8287 (environ): Likewise.
8288 (exec_wrapper): Initialize.
8289 (get_exec_wrapper): New function.
8290 (breakup_args): Move to "common/common-fork-child.c"; rename to
8291 "breakup_args_for_exec".
8292 (escape_bang_in_quoted_argument): Move to
8293 "common/common-fork-child.c".
8294 (saved_ui): New variable.
8295 (prefork_hook): New function.
8296 (postfork_hook): Likewise.
8297 (postfork_child_hook): Likewise.
8298 (gdb_startup_inferior): Likewise.
8299 (fork_inferior): Move to "common/common-fork-child.c". Update
8300 function to support gdbserver.
8301 (startup_inferior): Likewise.
8302 * gdbcore.h (get_exec_file): Remove declaration.
8303 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
8304 instead of "startup_inferior". Call "add_thread_silent" after
8305 "fork_inferior".
8306 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
8307 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
8308 instead of "startup_inferior". Call "add_thread_silent" after
8309 "fork_inferior".
8310 * inferior.h: Include "common-inferior.h".
8311 (trace_start_error): Move to "common/common-utils.h".
8312 (trace_start_error_with_name): Likewise.
8313 (fork_inferior): Move prototype to "nat/fork-inferior.h".
8314 (startup_inferior): Likewise.
8315 (gdb_startup_inferior): New prototype.
8316 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
8317 * nat/fork-inferior.h: New file.
8318 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
8319 instead of "startup_inferior". Call "add_thread_silent" after
8320 "fork_inferior".
8321 * target.h (target_terminal_init): Move prototype to
8322 "target/target.h".
8323 (target_terminal_inferior): Likewise.
8324 (target_terminal_ours): Likewise.
8325 * target/target.h (target_terminal_init): New prototype, moved
8326 from "target.h".
8327 (target_terminal_inferior): Likewise.
8328 (target_terminal_ours): Likewise.
8329 * utils.c (gdb_flush_out_err): New function.
8330
043a4934
SDJ
83312017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8332
8333 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
8334 * common/common-gdbthread.h: New file, with parts from
8335 "gdb/gdbthread.h".
8336 * gdbthread.h: Include "common-gdbthread.h".
8337 (switch_to_thread): Moved to "common/common-gdbthread.h".
8338
15652511
SDJ
83392017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8340
8341 * Makefile.in (SFILES): Add "common/job-control.c".
8342 (HFILES_NO_SRCDIR): Add "common/job-control.h".
8343 (COMMON_OBS): Add "job-control.o".
8344 * common/job-control.c: New file, with contents from
8345 "gdb/inflow.c".
8346 * common/job-control.h: New file, with contents from "terminal.h".
8347 * fork-child.c: Include "job-control.h".
8348 * inflow.c: Include "job-control.h".
8349 (gdb_setpgid): Move to "common/common-inflow.c".
8350 (_initialize_inflow): Move setting of "job_control" to
8351 "handle_job_control".
8352 * terminal.h (job_control): Moved to "common/common-terminal.h".
8353 (gdb_setpgid): Likewise.
8354 * top.c: Include "job_control.h".
8355 * utils.c: Likewise.
8356 (job_control): Moved to "job-control.c".
8357
2d7cc5c7
PA
83582017-06-07 Pedro Alves <palves@redhat.com>
8359
8360 * Makefile.in (SFILES): Add gdb_regex.c.
8361 (COMMON_OBS): Add gdb_regex.o.
8362 * ada-lang.c (ada_add_standard_exceptions)
8363 (ada_add_exceptions_from_frame, name_matches_regex)
8364 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
8365 parameter type to compiled_regex. Adjust.
8366 (ada_exceptions_list): Use compiled_regex.
8367 * break-catch-throw.c (exception_catchpoint::pattern): Now a
8368 std::unique_ptr<compiled_regex>.
8369 (exception_catchpoint::~exception_catchpoint): Remove regfree
8370 call.
8371 (check_status_exception_catchpoint): Adjust to use compiled_regex.
8372 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
8373 * breakpoint.c (solib_catchpoint::compiled): Now a
8374 std::unique_ptr<compiled_regex>.
8375 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
8376 (check_status_catch_solib): Adjust to use compiled_regex.
8377 (add_solib_catchpoint): Adjust to use compiled_regex.
8378 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
8379 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
8380 compiled_regex reference. Adjust to use it.
8381 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
8382 declaration. Include "gdb_regex.h".
8383 (apropos_cmd): Change regex parameter to compiled_regex reference.
8384 * gdb_regex.c: New file.
8385 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
8386 declarations.
8387 (class compiled_regex): New.
8388 * linux-tdep.c: Include "common/gdb_optional.h".
8389 (struct mapping_regexes): New, factored out from
8390 mapping_is_anonymous_p, and adjusted to use compiled_regex.
8391 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
8392 gdb::optional and remove cleanups. Adjust to compiled_regex.
8393 * probe.c: Include "common/gdb_optional.h".
8394 (collect_probes): Use compiled_regex and gdb::optional and remove
8395 cleanups.
8396 * skip.c: Include "common/gdb_optional.h".
8397 (skiplist_entry::compiled_function_regexp): Now a
8398 gdb::optional<compiled_regex>.
8399 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
8400 (free_skiplist_entry): Remove regfree call.
8401 (compile_skip_regexp, skip_rfunction_p): Adjust to use
8402 compiled_regex and gdb::optional.
8403 * symtab.c: Include "common/gdb_optional.h".
8404 (search_symbols): Use compiled_regex and gdb::optional.
8405 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
8406 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
8407 to gdb_regex.c.
8408
50d6adef
AH
84092017-06-07 Alan Hayward <alan.hayward@arm.com>
8410
8411 * regcache.c (regcache::save): Avoid buffer use.
8412 (regcache::dump): Likewise.
8413
4a8a33c8
AH
84142017-06-07 Alan Hayward <alan.hayward@arm.com>
8415
8416 * sh-tdep.c (sh_pseudo_register_read): Remove
8417 MAX_REGISTER_SIZE.
8418 (sh_pseudo_register_write): Likewise.
8419 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
8420 (sh64_pseudo_register_write): Likewise
8421
d1be909e
AH
84222017-06-07 Alan Hayward <alan.hayward@arm.com>
8423
8424 * aarch64-tdep.c (aarch64_store_return_value): Use
8425 V_REGISTER_SIZE.
8426 (aarch64_pseudo_read_value): Likewise.
8427 (aarch64_pseudo_write): Likewise.
8428
f4a65042
YQ
84292017-06-06 Yao Qi <yao.qi@linaro.org>
8430
8431 * regformats/regdef.h (set_register_cache): Remove the
8432 declaration.
8433
9f7fb0aa
AH
84342017-06-06 Alan Hayward <alan.hayward@arm.com>
8435
8436 * frame.c (frame_unwind_register_signed): Use
8437 frame_unwind_register_value.
8438
e1e01040
PA
84392017-06-06 Pedro Alves <palves@redhat.com>
8440
8441 PR breakpoints/21553
8442 * breakpoint.c (create_breakpoints_sal_default)
8443 (init_breakpoint_sal, create_breakpoint_sal): Use
8444 gdb::unique_xmalloc_ptr for string parameters.
8445 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8446 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
8447 (base_breakpoint_create_breakpoints_sal)
8448 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
8449 (strace_marker_create_breakpoints_sal)
8450 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
8451 string parameters.
8452 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
8453 gdb::unique_xmalloc_ptr for string parameters.
8454 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8455 parameters.
8456
fbe654c8
AH
84572017-06-06 Alan Hayward <alan.hayward@arm.com>
8458
8459 * alpha-tdep.c (alpha_register_to_value): Use
8460 get_frame_register_value.
8461 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
8462
ae0d01d6
AH
84632017-06-06 Alan Hayward <alan.hayward@arm.com>
8464
8465 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
8466 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
8467 (ia64_value_to_register): Likewise.
8468 (ia64_extract_return_value): Likewise.
8469 (ia64_store_return_value): Likewise.
8470 (ia64_push_dummy_call): Likewise.
8471
49cf576c
JB
84722017-06-04 Joel Brobecker <brobecker@adacore.com>
8473
8474 GDB 8.0 released.
8475
26b6a6ab
SM
84762017-06-03 Simon Marchi <simon.marchi@ericsson.com>
8477
8478 * x86-linux-nat.c (struct arch_lwp_info): Remove.
8479
22827c51
SM
84802017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
8481
8482 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
8483 parameter.
8484 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
8485
0e05cf3a
SM
84862017-06-02 Simon Marchi <simon.marchi@ericsson.com>
8487
8488 * event-loop.c (poll_timers): Unallocate timer using delete
8489 instead of xfree.
8490
c1fc2657
SM
84912017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8492
8493 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
8494 (struct breakpoint) <~breakpoint>: New.
8495 (struct watchpoint): Inherit from breakpoint.
8496 <~watchpoint>: New.
8497 <base>: Remove.
8498 (struct tracepoint): Inherit from breakpoint.
8499 <base>: Remove.
8500 * breakpoint.c (longjmp_breakpoint_ops): Remove.
8501 (struct longjmp_breakpoint): Inherit from breakpoint.
8502 <~longjmp_breakpoint>: New.
8503 <base>: Remove.
8504 (new_breakpoint_from_type): Remove casts.
8505 (watchpoint_in_thread_scope): Remove reference to base field.
8506 (watchpoint_del_at_next_stop): Likewise.
8507 (update_watchpoint): Likewise.
8508 (watchpoint_check): Likewise.
8509 (bpstat_check_watchpoint): Likewise.
8510 (set_longjmp_breakpoint): Likewise.
8511 (struct fork_catchpoint): Inherit from breakpoint.
8512 <base>: Remove.
8513 (struct solib_catchpoint): Inherit from breakpoint.
8514 <~solib_catchpoint>: New.
8515 <base>: Remove.
8516 (dtor_catch_solib): Change to ...
8517 (solib_catchpoint::~solib_catchpoint): ... this.
8518 (breakpoint_hit_catch_solib): Remove reference to base field.
8519 (add_solib_catchpoint): Likewise.
8520 (create_fork_vfork_event_catchpoint): Likewise.
8521 (struct exec_catchpoint): Inherit from breakpoint.
8522 <~exec_catchpoint>: New.
8523 <base>: Remove.
8524 (dtor_catch_exec): Change to ...
8525 (exec_catchpoint::~exec_catchpoint): ... this.
8526 (dtor_watchpoint): Change to ...
8527 (watchpoint::~watchpoint): ... this.
8528 (watch_command_1): Remove reference to base field.
8529 (catch_exec_command_1): Likewise.
8530 (base_breakpoint_dtor): Change to ...
8531 (breakpoint::~breakpoint): ... this.
8532 (base_breakpoint_ops): Remove dtor field value.
8533 (longjmp_bkpt_dtor): Change to ...
8534 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
8535 (strace_marker_create_breakpoints_sal): Remove reference to base
8536 field.
8537 (delete_breakpoint): Don't manually call breakpoint destructor.
8538 (create_tracepoint_from_upload): Remove reference to base field.
8539 (trace_pass_set_count): Likewise.
8540 (initialize_breakpoint_ops): Don't initialize
8541 momentary_breakpoint_ops, don't set dtors.
8542 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
8543 <~ada_catchpoint>: New.
8544 <base>: Remove.
8545 (create_excep_cond_exprs): Remove reference to base field.
8546 (dtor_exception): Change to ...
8547 (ada_catchpoint::~ada_catchpoint): ... this.
8548 (dtor_catch_exception): Remove.
8549 (dtor_catch_exception_unhandled): Remove.
8550 (dtor_catch_assert): Remove.
8551 (create_ada_exception_catchpoint): Remove reference to base
8552 field.
8553 (initialize_ada_catchpoint_ops): Don't set dtors.
8554 * break-catch-sig.c (struct signal_catchpoint): Inherit from
8555 breakpoint.
8556 <~signal_catchpoint>: New.
8557 <base>: Remove.
8558 (signal_catchpoint_dtor): Change to ...
8559 (signal_catchpoint::~signal_catchpoint): ... this.
8560 (create_signal_catchpoint): Remove reference to base field.
8561 (initialize_signal_catchpoint_ops): Don't set dtor.
8562 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
8563 from breakpoint.
8564 <~syscall_catchpoint>: New.
8565 <base>: Remove.
8566 (dtor_catch_syscall): Change to ...
8567 (syscall_catchpoint::~syscall_catchpoint): ... this.
8568 (create_syscall_event_catchpoint): Remove reference to base
8569 field.
8570 (initialize_syscall_catchpoint_ops): Don't set dtor.
8571 * break-catch-throw.c (struct exception_catchpoint): Inherit
8572 from breakpoint.
8573 <~exception_catchpoint>: New.
8574 <base>: Remove.
8575 (dtor_exception_catchpoint): Change to ...
8576 (exception_catchpoint::~exception_catchpoint): ... this.
8577 (handle_gnu_v3_exceptions): Remove reference to base field.
8578 (initialize_throw_catchpoint_ops): Don't set dtor.
8579 * ctf.c (ctf_get_traceframe_address): Remove reference to base
8580 field.
8581 * remote.c (remote_get_tracepoint_status): Likewise.
8582 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
8583 * tracefile.c (tracefile_fetch_registers): Likewise.
8584 * tracepoint.c (actions_command): Likewise.
8585 (validate_actionline): Likewise.
8586 (tfind_1): Likewise.
8587 (get_traceframe_location): Likewise.
8588 (find_matching_tracepoint_location): Likewise.
8589 (parse_tracepoint_status): Likewise.
8590 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
8591
3b0871f4
SM
85922017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8593
8594 * breakpoint.c (struct longjmp_breakpoint): New struct.
8595 (is_tracepoint_type): Change return type to bool.
8596 (is_longjmp_type): New function.
8597 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
8598 (set_raw_breakpoint_without_location): Use
8599 new_breakpoint_from_type.
8600 (set_raw_breakpoint): Likewise.
8601
a5e364af
SM
86022017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8603
8604 * breakpoint.c (new_breakpoint_from_type): New function.
8605 (create_breakpoint_sal): Use new_breakpoint_from_type and
8606 unique_ptr.
8607 (create_breakpoint): Likewise.
8608
ae3b3f34
SM
86092017-05-31 Simon Marchi <simon.marchi@ericsson.com>
8610
8611 * memattr.c (mem_info_command): Rename to ...
8612 (info_mem_command): ... this.
8613 (mem_enable_command): Rename to ...
8614 (enable_mem_command): ... this.
8615 (mem_disable_command): Rename to ...
8616 (disable_mem_command): ... this.
8617 (mem_delete_command): Rename to ...
8618 (delete_mem_command): ... this.
8619 (_initialize_mem): Adjust function names.
8620
13ace077
MM
86212017-05-31 Markus Metzger <markus.t.metzger@intel.com>
8622
8623 * btrace.c (handle_pt_insn_events): New.
8624 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
8625 STATUS. Split into this and ...
8626 (handle_pt_insn_event_flags): ... this.
8627
c56ccc05
MM
86282017-05-31 Markus Metzger <markus.t.metzger@intel.com>
8629
8630 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
8631 and struct pt_insn.resynced.
8632 * configure: Regenerated.
8633 * config.in: Regenerated.
8634
08c3f6d2
TW
86352017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8636
8637 * btrace.c (ftrace_find_call_by_number): New function.
8638 (ftrace_new_function): Store objects, not pointers.
8639 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
8640 ftrace_new_gap, ftrace_update_function,
8641 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
8642 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
8643 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
8644 btrace_ends_with_single_insn, btrace_call_get): Account for
8645 btrace_thread_info::functions now storing objects.
8646 * btrace.h (struct btrace_thread_info): Add constructor.
8647 (struct btrace_thread_info) <functions>: Make std::vector.
8648 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
8649 Initialize with default values.
8650 * record-btrace.c (record_btrace_frame_sniffer): Account for
8651 btrace_thread_info::functions now storing objects.
8652
8ffd39f2
TW
86532017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8654
8655 * btrace.c: Remove typedef bfun_s.
8656 (ftrace_new_gap): Directly add gaps to the list of gaps.
8657 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
8658 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
8659 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
8660 instead of gdb VEC.
8661
4aeb0dfc
TW
86622017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8663
8664 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
8665 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
8666 with btrace_thread_info::next_segment and
8667 btrace_thread_info::prev_segment.
8668 * btrace.h: Remove struct btrace_func_link.
8669 (struct btrace_function): Replace pair of function segment pointers
8670 with pair of indices.
8671 * python/py-record-btrace.c (btpy_call_prev_sibling,
8672 btpy_call_next_sibling): Replace references to
8673 btrace_thread_info::segment with btrace_thread_info::next_segment and
8674 btrace_thread_info::prev_segment.
8675 * record-btrace.c (record_btrace_frame_this_id): Use
8676 btrace_find_call_by_number.
8677
eb8f2b9c
TW
86782017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8679
8680 * btrace.c (ftrace_new_function, ftrace_fixup_level,
8681 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
8682 btrace_insn_next, btrace_insn_prev): Remove references to
8683 btrace_thread_info::flow.
8684 * btrace.h (struct btrace_function): Remove FLOW.
8685
42bfe59e
TW
86862017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8687
8688 * btrace.c (ftrace_find_call_by_number): New function.
8689 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
8690 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
8691 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
8692 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
8693 index.
8694 * btrace.h (struct btrace_function): Turn UP into an index.
8695 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
8696 as an index.
8697 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
8698 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
8699 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
8700
b54b03bd
TW
87012017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8702
8703 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
8704 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
8705 ftrace_update_function, ftrace_compute_global_level_offset,
8706 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
8707 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
8708 btrace_insn_end, btrace_is_empty): Remove references to
8709 btrace_thread_info::begin and btrace_thread_info::end.
8710 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
8711 (struct btrace_thread_info) <functions>: Adjust comment.
8712 * record-btrace.c (record_btrace_start_replaying): Remove reference to
8713 btrace_thread_info::begin.
8714
8286623c
TW
87152017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8716
8717 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
8718 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
8719 ftrace_update_function): Remove arguments that implicitly were always
8720 BTINFO->END.
8721 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
8722 Don't pass BTINFO->END.
8723
a0f1b963
TW
87242017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8725
8726 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
8727 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
8728 btrace_find_insn_by_number): Replace function segment pointer with
8729 index.
8730 (btrace_insn_cmp): Simplify.
8731 * btrace.h: (struct btrace_insn_iterator) Rename index to
8732 insn_index. Replace function segment pointer with index into function
8733 segment vector.
8734 * record-btrace.c (record_btrace_call_history): Replace function
8735 segment pointer use with index.
8736 (record_btrace_frame_sniffer): Retrieve function call segment through
8737 vector.
8738 (record_btrace_set_replay): Remove defunc't safety check.
8739
f158f208
TW
87402017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8741
8742 * btrace.c (btrace_ends_with_single_insn): New function.
8743 (btrace_call_get, btrace_call_number, btrace_call_begin,
8744 btrace_call_end, btrace_call_next, btrace_call_prev,
8745 btrace_find_call_by_number): Use index into call segment vector
8746 instead of pointer.
8747 (btrace_call_cmp): Simplify.
8748 * btrace.h (struct btrace_call_iterator): Replace function call segment
8749 pointer with index into vector.
8750 * record-btrace.c (record_btrace_call_history): Use index instead of
8751 pointer.
8752
521103fd
TW
87532017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8754
8755 * btrace.c (btrace_insn_begin, btrace_insn_end,
8756 btrace_find_insn_by_number): Add btinfo to iterator.
8757 * btrace.h (struct btrace_insn_iterator): Add btinfo.
8758
17b89b34
TW
87592017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8760
8761 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
8762 and save pointers directly.
8763 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
8764 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
8765 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
8766 changed signature of functions.
8767 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
8768 (btrace_fetch): Remove code that adds btrace_function pointers to
8769 vector of btrace_functions.
8770 (btrace_clear): Simplify freeing vector of btrace_functions.
8771
2b51eddc
TW
87722017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8773
8774 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
8775 Replace VEC_* with std::vector functions.
8776 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
8777 (struct btrace_thread_info)<functions>: Change type to std::vector.
8778
db6be0d5
SM
87792017-05-30 Simon Marchi <simon.marchi@ericsson.com>
8780
8781 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
8782 "Removed targets and native configurations" up. Merge duplicate
8783 "New commands" sub-sections. Add "New options" sub-sections.
8784
b057297a
AH
87852017-05-26 Alan Hayward <alan.hayward@arm.com>
8786
8787 * defs.h (copy_integer_to_size): New declaration.
8788 * findvar.c (copy_integer_to_size): New function.
8789 (do_cint_test): New selftest function.
8790 (copy_integer_to_size_test): Likewise.
8791 (_initialize_findvar): Likewise.
8792 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
8793 (mips_fbsd_collect_reg): Use raw_collect_integer.
8794 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
8795 (mips64_fill_gregset): Use raw_collect_integer
8796 (mips64_fill_fpregset): Use raw_supply_integer.
8797 * regcache.c (regcache::raw_supply_integer): New function.
8798 (regcache::raw_collect_integer): Likewise.
8799 * regcache.h: (regcache::raw_supply_integer): New declaration.
8800 (regcache::raw_collect_integer): Likewise.
8801
b77b02a5
YQ
88022017-05-24 Yao Qi <yao.qi@linaro.org>
8803
8804 * Makefile.in (SFILES): Add gdbarch-selftests.c.
8805 (COMMON_OBS): Add gdbarch-selftests.o.
8806 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
8807 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
8808 * gdbarch-selftests.c: New file.
8809 * regcache.h (regcache) <~regcache>: Mark it virtual if
8810 GDB_SELF_TEST.
8811 <raw_write>: Likewise.
8812
e521e87e
YQ
88132017-05-24 Yao Qi <yao.qi@linaro.org>
8814
8815 * regcache.c (current_regcache): Change it to
8816 regcache::current_regcache.
8817 (regcache_observer_target_changed): Update.
8818 (regcache_thread_ptid_changed): Make it a regcache static
8819 method.
8820 (regcache_thread_ptid_changed): Update.
8821 (class regcache_access): New.
8822 (current_regcache_test): Update.
8823 (_initialize_regcache): Update.
8824 * regcache.h: Include forward_list.
8825 (regcache): Declare regcache_thread_ptid_changed and declare
8826 registers_changed_ptid as friend.
8827
d8e07dda
YQ
88282017-05-24 Yao Qi <yao.qi@linaro.org>
8829
8830 * i387-tdep.c (i387_register_to_value): Use register_size
8831 instead of TYPE_LENGTH.
8832 * m68k-tdep.c (m68k_register_to_value): Likewise.
8833
8c8f9122
YQ
88342017-05-24 Yao Qi <yao.qi@linaro.org>
8835
8836 * i387-tdep.c (i387_convert_register_p): Return false if type
8837 code isn't TYPE_CODE_FLT.
8838
68fce50f
YQ
88392017-05-24 Yao Qi <yao.qi@linaro.org>
8840
8841 * alpha-tdep.c (alpha_convert_register_p): Return true if type
8842 length is 4.
8843 (alpha_register_to_value): Remove type length check.
8844 (alpha_value_to_register): Likewise.
8845
88954b49
YQ
88462017-05-24 Yao Qi <yao.qi@linaro.org>
8847
8848 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
8849 TYPE_CODE_FLT.
8850
e3ec9b69
YQ
88512017-05-24 Yao Qi <yao.qi@linaro.org>
8852
8853 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
8854 TYPE_CODE_FLT or not.
8855
cdd238da
YQ
88562017-05-24 Yao Qi <yao.qi@linaro.org>
8857
8858 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
8859 * avr-tdep.c (avr_gdbarch_init): Likewise.
8860 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8861 * cris-tdep.c (cris_gdbarch_init): Likewise.
8862 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
8863 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8864 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8865 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
8866 * mep-tdep.c (mep_gdbarch_init): Likewise.
8867 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8868 * mips-tdep.c (mips_gdbarch_init): Likewise.
8869 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
8870 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8871 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
8872 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8873 * v850-tdep.c (v850_gdbarch_init): Likewise.
8874
7a3929c4
YQ
88752017-05-24 Yao Qi <yao.qi@linaro.org>
8876
8877 * selftest-arch.c (tests_with_arch): Call registers_changed
8878 and reinit_frame_cache.
8879 * selftest.c (run_self_tests): Likewise.
8880
f4985dba
YQ
88812017-05-24 Yao Qi <yao.qi@linaro.org>
8882
8883 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
8884 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
8885
ab20fa4a
YQ
88862017-05-24 Yao Qi <yao.qi@linaro.org>
8887
8888 * rl78-tdep.c (rl78_gdbarch_init): Don't call
8889 set_gdbarch_print_insn.
8890
f532ab94
YQ
88912017-05-24 Yao Qi <yao.qi@linaro.org>
8892
8893 * h8300-tdep.c (h8300_gdbarch_init): Don't call
8894 set_gdbarch_print_insn.
8895
39503f82
YQ
88962017-05-24 Yao Qi <yao.qi@linaro.org>
8897
8898 * alpha-tdep.c (alpha_gdbarch_init): Don't call
8899 set_gdbarch_print_insn.
8900 * arc-tdep.c (arc_gdbarch_init): Likewise.
8901 * arch-utils.c: include dis-asm.h.
8902 (default_print_insn): New function.
8903 * arch-utils.h (default_print_insn): Declare.
8904 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
8905 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8906 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
8907 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
8908 * frv-tdep.c (frv_gdbarch_init): Likewise.
8909 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
8910 * gdbarch.sh (print_insn): Use default_print_insn.
8911 * gdbarch.c: Regenerated.
8912 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
8913 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
8914 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8915 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
8916 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8917 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
8918 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
8919 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
8920 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
8921 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8922 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
8923 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8924 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
8925 * mt-tdep.c (mt_gdbarch_init): Likewise.
8926 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
8927 * nios2-tdep.c (nios2_print_insn): Remove.
8928 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
8929 * rx-tdep.c (rx_gdbarch_init): Likewise.
8930 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8931 * score-tdep.c (score_print_insn): Remove.
8932 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
8933 * sh-tdep.c (sh_gdbarch_init): Likewise.
8934 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8935 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8936 * tic6x-tdep.c (tic6x_print_insn): Remove.
8937 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
8938 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
8939 * v850-tdep.c (v850_gdbarch_init): Likewise.
8940 * vax-tdep.c (vax_gdbarch_init): Likewise.
8941 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
8942 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
8943
f7241d4f
JB
89442017-05-23 John Baldwin <jhb@FreeBSD.org>
8945
8946 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
8947 (MIPS_FP0_REGNUM): Remove.
8948 (MIPS_FSR_REGNUM): Remove.
8949 (mips_fbsd_supply_fpregs): Use mips_regnum.
8950 (mips_fbsd_supply_gregs): Likewise.
8951 (mips_fbsd_collect_fpregs): Likewise.
8952 (mips_fbsd_collect_gregs): Likewise.
8953
d489d81d
JB
89542017-05-23 John Baldwin <jhb@FreeBSD.org>
8955
8956 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
8957 (getpfpregs_supplies): New function.
8958 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
8959 getfpregs_supplies.
8960 (mips_fbsd_store_inferior_registers): Likewise.
8961
e11b3cdc
PA
89622017-05-22 Pedro Alves <palves@redhat.com>
8963
8964 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
8965 maintainer.
8966
0f068fb5
AH
89672017-05-22 Alan Hayward <alan.hayward@arm.com>
8968
8969 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
8970 (store_register): Likewise.
8971 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
8972 (get_decimal_float_return_value): Likewise.
8973 (do_ppc_sysv_return_value): Likewise.
8974 (ppc64_sysv_abi_push_integer): Likewise.
8975 (ppc64_sysv_abi_push_freg): Likewise.
8976 (ppc64_sysv_abi_return_value_base): Likewise.
8977 (ppc64_sysv_abi_return_value): Likewise.
8978 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
8979 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
8980 * rs6000-nat.c: Likewise.
8981 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
8982 (rs6000_value_to_register): Likewise.
8983 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
8984
e6cf65f2
TT
89852017-05-21 Tom Tromey <tom@tromey.com>
8986
8987 PR rust/21466:
8988 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
8989 arrays as "[T]", not "[T; ]".
8990
43cc5389
TT
89912017-05-19 Tom Tromey <tom@tromey.com>
8992
8993 PR rust/21484:
8994 * rust-lang.c (exp_descriptor_rust): New function.
8995 (rust_language_defn): Use it.
8996 * p-lang.c (pascal_language_defn): Update.
8997 * opencl-lang.c (opencl_language_defn): Update.
8998 * objc-lang.c (objc_language_defn): Update.
8999 * m2-lang.c (m2_language_defn): Update.
9000 * language.h (struct language_defn)
9001 <la_watch_location_expression>: New member.
9002 * language.c (unknown_language_defn, auto_language_defn)
9003 (local_language_defn): Update.
9004 * go-lang.c (go_language_defn): Update.
9005 * f-lang.c (f_language_defn): Update.
9006 * d-lang.c (d_language_defn): Update.
9007 * c-lang.h (c_watch_location_expression): Declare.
9008 * c-lang.c (c_watch_location_expression): New function.
9009 (c_language_defn, cplus_language_defn, asm_language_defn)
9010 (minimal_language_defn): Use it.
9011 * breakpoint.c (watch_command_1): Call
9012 la_watch_location_expression.
9013 * ada-lang.c (ada_language_defn): Update.
9014
7a6e7fcc
RO
90152017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9016
6e7e1744
RO
9017 PR tui/21482
9018 * gdb_curses.h (NOMACROS): Define.
9019 (NCURSES_NOMACROS): Define.
9020
90212017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9022
9023 PR tui/21482
7a6e7fcc
RO
9024 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
9025 arg to char *.
9026 * tui/tui-wingeneral.c (box_win): Likewise.
9027 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
9028 (tui_show_source_line): Likewise.
9029 (tui_show_exec_info_content): Likewise.
9030
1933fd8e
VM
90312017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
9032
9033 * sparc-tdep.c (sparc_structure_return_p)
9034 (sparc_arg_on_registers_p): New functions.
9035 (sparc32_store_arguments): Use them.
9036 * sparc64-tdep.c (sparc64_16_byte_align_p)
9037 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
9038 Handle TYPE_CODE_ARRAY.
9039
21873064
YQ
90402017-05-17 Yao Qi <yao.qi@linaro.org>
9041
9042 * cli/cli-decode.c (add_alias_cmd): New function.
9043 * command.h (add_alias_cmd): Declare.
9044 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
9045 instead call add_alias_cmd.
9046
2b351b19
PA
90472017-05-17 Pedro Alves <palves@redhat.com>
9048
9049 * Makefile.in (nat_extra_makefile_frag): Rename to ...
9050 (nat_makefile_frag): ... this. All references updated.
9051 * configure.ac: Likewise.
9052 * configure.nat: Likewise. Enhance comments.
9053 * configure: Regenerate.
9054
5f2ad7a3
RO
90552017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9056
9057 * procfs.c (procfs_create_inferior): Change prototype to match
9058 definition.
9059
adf3dde5
EZ
90602017-05-13 Eli Zaretskii <eliz@gnu.org>
9061
9062 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
9063 C++ compiler warning.
9064
6830f270
TT
90652017-05-12 Tom Tromey <tom@tromey.com>
9066
9067 PR rust/21483:
9068 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
9069 recurse, just call value_struct_elt directly.
9070
68f2f2e3
TT
90712017-05-12 Tom Tromey <tom@tromey.com>
9072
9073 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
9074 OP_RUST_ARRAY>: Fix.
9075
256afbc2
TT
90762017-05-12 Tom Tromey <tom@tromey.com>
9077
9078 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
9079
94bb8dfe
YQ
90802017-05-09 Yao Qi <yao.qi@linaro.org>
9081
9082 * regcache.c: Include <forward_list>.
9083 (struct regcache_list): Remove.
9084 (current_regcache): Update.
9085 (get_thread_arch_aspace_regcache): Update for std::forward_list.
9086 (regcache_thread_ptid_changed): Likewise.
9087 (registers_changed_ptid): Likewise.
9088 (current_regcache_size): Likewise.
9089
8248946c
YQ
90902017-05-09 Yao Qi <yao.qi@linaro.org>
9091
9092 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
9093 (current_regcache_size): New function.
9094 (current_regcache_test): New function.
9095 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
9096
313c5961
AH
90972017-05-08 Alan Hayward <alan.hayward@arm.com>
9098
9099 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
9100 (print_gp_register_row): Use get_frame_register_value.
9101
27bfc1d1
AH
91022017-05-08 Alan Hayward <alan.hayward@arm.com>
9103
9104 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
9105 (mips_supply_fpregset): Likewise.
9106 (mips64_supply_gregset): Likewise.
9107
146e6c5c
AH
91082017-05-08 Alan Hayward <alan.hayward@arm.com>
9109
9110 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
9111 regcache->raw_supply_zeroed.
9112
e50f25ec
SDJ
91132017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
9114
9115 * configure.nat: Rearrange 'case' statements to match
9116 host before cpu.
9117
21ea5acd
SDJ
91182017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
9119
9120 * Makefile.in: Remove "@host_makefile_frag@". Add variables
9121 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
9122 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
9123 "@nat_extra_makefile_frag@".
9124 (Makefile): Remove dependency on "@frags@".
9125 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
9126 (data-directory/Makefile): Likewise.
9127 * config/aarch64/linux.mh: Deleted; moved contents to
9128 "gdb/configure.nat".
9129 * config/alpha/alpha-linux.mh: Likewise.
9130 * config/alpha/nbsd.mh: Likewise.
9131 * config/arm/linux.mh: Likewise.
9132 * config/arm/nbsdelf.mh: Likewise.
9133 * config/i386/cygwin.mh: Likewise.
9134 * config/i386/cygwin64.mh: Likewise.
9135 * config/i386/darwin.mh: Likewise.
9136 * config/i386/fbsd.mh: Likewise.
9137 * config/i386/fbsd64.mh: Likewise.
9138 * config/i386/go32.mh: Likewise.
9139 * config/i386/i386gnu.mh: Likewise.
9140 * config/i386/i386sol2.mh: Likewise.
9141 * config/i386/linux.mh: Likewise.
9142 * config/i386/linux64.mh: Likewise.
9143 * config/i386/mingw.mh: Likewise.
9144 * config/i386/mingw64.mh: Likewise.
9145 * config/i386/nbsd64.mh: Likewise.
9146 * config/i386/nbsdelf.mh: Likewise.
9147 * config/i386/nto.mh: Likewise.
9148 * config/i386/obsd.mh: Likewise.
9149 * config/i386/obsd64.mh: Likewise.
9150 * config/i386/sol2-64.mh: Likewise.
9151 * config/ia64/linux.mh: Likewise.
9152 * config/m32r/linux.mh: Likewise.
9153 * config/m68k/linux.mh: Likewise.
9154 * config/m68k/nbsdelf.mh: Likewise.
9155 * config/m68k/obsd.mh: Likewise.
9156 * config/m88k/obsd.mh: Likewise.
9157 * config/mips/fbsd.mh: Likewise.
9158 * config/mips/linux.mh: Likewise.
9159 * config/mips/nbsd.mh: Likewise.
9160 * config/mips/obsd64.mh: Likewise.
9161 * config/pa/linux.mh: Likewise.
9162 * config/pa/nbsd.mh: Likewise.
9163 * config/pa/obsd.mh: Likewise.
9164 * config/powerpc/aix.mh: Likewise.
9165 * config/powerpc/fbsd.mh: Likewise.
9166 * config/powerpc/linux.mh: Likewise.
9167 * config/powerpc/nbsd.mh: Likewise.
9168 * config/powerpc/obsd.mh: Likewise.
9169 * config/powerpc/ppc64-linux.mh: Likewise.
9170 * config/powerpc/spu-linux.mh: Likewise.
9171 * config/s390/linux.mh: Likewise.
9172 * config/sh/nbsd.mh: Likewise.
9173 * config/sparc/fbsd.mh: Likewise.
9174 * config/sparc/linux.mh: Likewise.
9175 * config/sparc/linux64.mh: Likewise.
9176 * config/sparc/nbsd64.mh: Likewise.
9177 * config/sparc/nbsdelf.mh: Likewise.
9178 * config/sparc/obsd64.mh: Likewise.
9179 * config/sparc/sol2.mh: Likewise.
9180 * config/tilegx/linux.mh: Likewise.
9181 * config/vax/nbsdelf.mh: Likewise.
9182 * config/vax/obsd.mh: Likewise.
9183 * config/xtensa/linux.mh: Likewise.
9184 * config/i386/i386gnu.mn: New file, with excerpts from
9185 "config/i386/i386gnu.mh".
9186 * configure: Regenerate.
9187 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
9188 *.mh files under "gdb/config".
9189 * configure.nat: New file, with contents from the
9190 "gdb/config/*/*.mh" files.
9191
7ed1acaf
TW
91922017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
9193
9194 * btrace.c (btrace_clear): Free insn vector.
9195
e13cb306
PA
91962017-05-05 Pedro Alves <palves@redhat.com>
9197
9198 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
9199 * configure: Regenerate.
9200
5ed8105e
PA
92012017-05-04 Pedro Alves <palves@redhat.com>
9202
9203 * Makefile.in (SFILES): Add progspace-and-thread.c.
9204 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
9205 (COMMON_OBS): Add progspace-and-thread.o.
9206 * breakpoint.c: Include "progspace-and-thread.h".
9207 (update_inserted_breakpoint_locations)
9208 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
9209 Use scoped_restore_current_pspace_and_thread.
9210 (create_std_terminate_master_breakpoint): Use
9211 scoped_restore_current_program_space.
9212 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
9213 (print_breakpoint_location): Use
9214 scoped_restore_current_program_space.
9215 (bp_loc_is_permanent): Use
9216 scoped_restore_current_pspace_and_thread.
9217 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
9218 (download_tracepoint_locations): Use
9219 scoped_restore_current_pspace_and_thread.
9220 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
9221 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
9222 (enum step_over_calls_kind): Moved from inferior.h.
9223 (class scoped_restore_current_thread): New class.
9224 * gdbthread.h (make_cleanup_restore_current_thread): Delete
9225 declaration.
9226 (scoped_restore_current_thread): New class.
9227 * infcmd.c: Include "common/gdb_optional.h".
9228 (continue_1, proceed_after_attach): Use
9229 scoped_restore_current_thread.
9230 (notice_new_inferior): Use scoped_restore_current_thread.
9231 * inferior.c: Include "progspace-and-thread.h".
9232 (restore_inferior, save_current_inferior): Delete.
9233 (add_inferior_command, clone_inferior_command): Use
9234 scoped_restore_current_pspace_and_thread.
9235 * inferior.h (scoped_restore_current_inferior): New class.
9236 * infrun.c: Include "progspace-and-thread.h" and
9237 "common/gdb_optional.h".
9238 (follow_fork_inferior): Use
9239 scoped_restore_current_pspace_and_thread.
9240 (scoped_restore_exited_inferior): New class.
9241 (handle_vfork_child_exec_or_exit): Use
9242 scoped_restore_exited_inferior,
9243 scoped_restore_current_pspace_and_thread,
9244 scoped_restore_current_thread and scoped_restore.
9245 (fetch_inferior_event): Use scoped_restore_current_thread.
9246 * linespec.c (decode_line_full, decode_line_1): Use
9247 scoped_restore_current_program_space.
9248 * mi/mi-main.c: Include "progspace-and-thread.h".
9249 (exec_continue): Use scoped_restore_current_thread.
9250 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
9251 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
9252 * proc-service.c (ps_pglobal_lookup): Use
9253 scoped_restore_current_program_space.
9254 * progspace-and-thread.c: New file.
9255 * progspace-and-thread.h: New file.
9256 * progspace.c (release_program_space, clone_program_space): Use
9257 scoped_restore_current_program_space.
9258 (restore_program_space, save_current_program_space)
9259 (save_current_space_and_thread): Delete.
9260 (switch_to_program_space_and_thread): Moved to
9261 progspace-and-thread.c.
9262 * progspace.h (save_current_program_space)
9263 (save_current_space_and_thread): Delete declarations.
9264 (scoped_restore_current_program_space): New class.
9265 * remote.c (remote_btrace_maybe_reopen): Use
9266 scoped_restore_current_thread.
9267 * symtab.c: Include "progspace-and-thread.h".
9268 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
9269 * thread.c (print_thread_info_1): Use
9270 scoped_restore_current_thread.
9271 (struct current_thread_cleanup): Delete.
9272 (do_restore_current_thread_cleanup)
9273 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
9274 (scoped_restore_current_thread::~scoped_restore_current_thread):
9275 ... this new dtor.
9276 (make_cleanup_restore_current_thread): Rename/convert to ...
9277 (scoped_restore_current_thread::scoped_restore_current_thread):
9278 ... this new ctor.
9279 (thread_apply_all_command): Use scoped_restore_current_thread.
9280 (thread_apply_command): Use scoped_restore_current_thread.
9281 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
9282 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
9283
f6223dbb
PA
92842017-05-04 Pedro Alves <palves@redhat.com>
9285
9286 * thread.c (make_cleanup_restore_current_thread): Move
9287 find_thread_ptid call before the is_stopped call. Assert that the
9288 thread is found. Replace is_stopped call by checking the thread's
9289 state directly. Remove unnecessary NULL-thread check.
9290
3c3ae77e
PA
92912017-05-04 Pedro Alves <palves@redhat.com>
9292
9293 * corelow.c (thread_section_name): New class.
9294 (get_core_register_section, get_core_siginfo): Use it.
9295
45eba0ab
AA
92962017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9297
9298 * corelow.c (sniff_core_bfd): Remove extra semicolon.
9299 (get_core_register_section): Remove xfree of NULL pointer.
9300
f81fdd35
AH
93012017-05-03 Alan Hayward <alan.hayward@arm.com>
9302
9303 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
9304 * regcache.c (regcache::raw_supply_zeroed): New function.
9305 * regcache.h (regcache::raw_supply_zeroed): New declaration.
9306
35837774
SM
93072017-05-03 Simon Marchi <simon.marchi@ericsson.com>
9308
9309 * gdbarch.sh: Remove commented out definition of
9310 TARGET_CHAR_BIT.
9311 * gdbarch.h: Re-generate.
9312
c94fee56
SDJ
93132017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
9314
9315 * configure: Regenerate.
9316
d17f7b36
SM
93172017-05-02 Simon Marchi <simon.marchi@ericsson.com>
9318
9319 * solib-target.c (solib_target_relocate_section_addresses):
9320 Remove num_section_bases, num_bases, segment_bases variables.
9321
b560ebd6
SM
93222017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9323
9324 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
9325
f2f46dfc
SM
93262017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9327
9328 * solib-target.c: Include <vector>
9329 (struct lm_info_target) <~lm_info_target>: Remove.
9330 <segment_bases, section_bases>: Change type to
9331 std::vector<CORE_ADDR>.
9332 (library_list_start_segment, library_list_start_section,
9333 library_list_end_library,
9334 solib_target_relocate_section_addresses): Adjust.
9335
a0ff9e1a
SM
93362017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9337
9338 * gdbarch.sh (software_single_step): Change return type to
9339 std::vector<CORE_ADDR>.
9340 * gdbarch.c, gdbarch.h: Re-generate.
9341 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
9342 Adjust.
9343 (arm_deal_with_atomic_sequence_raw): Adjust.
9344 (thumb_get_next_pcs_raw): Adjust.
9345 (arm_get_next_pcs_raw): Adjust.
9346 (arm_get_next_pcs): Adjust.
9347 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
9348 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
9349 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
9350 (alpha_software_single_step): Adjust.
9351 * alpha-tdep.h (alpha_software_single_step): Adjust.
9352 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
9353 * arm-tdep.c (arm_software_single_step): Adjust.
9354 (arm_breakpoint_kind_from_current_state): Adjust.
9355 * arm-tdep.h (arm_software_single_step): Adjust.
9356 * breakpoint.c (insert_single_step_breakpoint): Adjust.
9357 * cris-tdep.c (cris_software_single_step): Adjust.
9358 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
9359 (micromips_deal_with_atomic_sequence): Adjust.
9360 (deal_with_atomic_sequence): Adjust.
9361 (mips_software_single_step): Adjust.
9362 * mips-tdep.h (mips_software_single_step): Adjust.
9363 * moxie-tdep.c (moxie_software_single_step): Adjust.
9364 * nios2-tdep.c (nios2_software_single_step): Adjust.
9365 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
9366 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
9367 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
9368 * s390-linux-tdep.c (s390_software_single_step): Adjust.
9369 * sparc-tdep.c (sparc_software_single_step): Adjust.
9370 * spu-tdep.c (spu_software_single_step): Adjust.
9371 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
9372
ea480a30
SM
93732017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9374
9375 * gdbarch.sh: Use semi-colon as field separator instead of colon.
9376 * gdbarch.h: Re-generate.
9377
d050f7d7
TW
93782017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9379
9380 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
9381 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
9382 * python/py-instruction.c, python/py-instruction.h: New file.
9383 * python/py-record.c: Add py-instruction.h include.
9384 (gdbpy_initialize_record): Make gdb.Instruction a super class of
9385 gdb.RecordInstruction.
9386 * python/python-internal.h: Add gdbpy_initialize_instruction
9387 declaration.
9388 * python/python.c (do_start_initialization): Add
9389 gdbpy_initialize_instruction.
9390
14f819c8
TW
93912017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9392
9393 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
9394 Remove.
9395 (btrace_func_from_recpy_func): New function.
9396 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
9397 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
9398 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
9399 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
9400 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
9401 Also, use new helper functions.
9402 (btpy_list_item): Use new helper functions.
9403 (recpy_bt_function_call_history): Use new type name.
9404 (btpy_call_getset): Remove.
9405 (gdbpy_initialize_btrace): Remove code to initialize
9406 gdb.BtraceFunctionCall.
9407 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
9408 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
9409 recpy_bt_func_prev, recpy_bt_func_next): New export.
9410 * python/py-record.c (recpy_func_type): New static object.
9411 (recpy_func_new, recpy_func_level, recpy_func_symbol,
9412 recpy_func_instructions, recpy_func_up, recpy_func_prev,
9413 recpy_func_next): New function.
9414 (recpy_element_hash, recpy_element_richcompare): Updated comment.
9415 (recpy_func_getset): New static object.
9416 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
9417 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
9418
0ed5da75
TW
94192017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9420
9421 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
9422 (btpy_object, btpy_insn_type, btpy_new): Remove.
9423 (btpy_list_object): Use gdb.RecordInstruction type instead of
9424 gdb.BtraceInstruction type.
9425 (btrace_insn_from_recpy_insn): New function.
9426 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
9427 btpy_new.
9428 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
9429 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
9430 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
9431 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
9432 instead of btpy_object.
9433 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9434 btpy_insn_data, btpy_insn_decode): Rename to ...
9435 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
9436 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
9437 recpy_bt_insn_decode): This. Also, use new helper functions.
9438 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
9439 recpy_insn_type.
9440 (btpy_insn_getset): Remove.
9441 (gdbpy_initialize_btrace): Remove code to initialize
9442 gdb.BtraceInstruction. Use recpy_element_object.
9443 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
9444 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
9445 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
9446 * python/py-record.c (recpy_insn_type): New static object.
9447 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
9448 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
9449 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
9450 New function.
9451 (recpy_insn_getset): New static object.
9452 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
9453 * python/py-record.h (recpy_element_object): New typedef.
9454 (recpy_insn_type, recpy_insn_new): New export.
9455
913aeadd
TW
94562017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9457
9458 * py-record-btrace.c (btpy_insn_new): Removed.
9459 (btpy_insn_or_gap_new): New function.
9460 (btpy_insn_error): Removed.
9461 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9462 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
9463 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
9464 btpy_insn_or_gap_new instead of btpy_insn_new.
9465 (btpy_insn_getset): Remove btpy_insn_error.
9466 * py-record.c (recpy_gap_type): New static object.
9467 (recpy_gap_object): New typedef.
9468 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
9469 recpy_gap_reason_string): New function.
9470 (recpy_gap_getset): New static object.
9471 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
9472 * py-record.h (recpy_gap_new): New export.
9473
a3be24ad
TW
94742017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9475
9476 * python/py-record.c (recpy_ptid): Remove.
9477 (recpy_record_getset): Remove recpy_ptid.
9478
ae20e79a
TW
94792017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9480
9481 * btrace.c (btrace_fetch): Set inferior_ptid.
9482 * python/py-record-btrace.c: Add "py-record.h" include.
9483 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
9484 recpy_bt_end, recpy_bt_instruction_history,
9485 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
9486 in gdb.Record object instead of current ptid.
9487 * python/py-record.c: Include new "py-record.h" file.
9488 (recpy_record_object): Moved to py-record.h.
9489 * python/py-record.h: New file.
9490
8d0050ea
TW
94912017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9492
9493 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
9494 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
9495 indentation.
9496
3f380b50
JB
94972017-05-01 Joel Brobecker <brobecker@adacore.com>
9498
9499 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
9500 the past maintainers section.
9501
07495424
YQ
95022017-04-28 Yao Qi <yao.qi@linaro.org>
9503
9504 * infcmd.c (get_return_value): Use regcache ctor, and remove
9505 cleanup.
9506
deb1fa3e
YQ
95072017-04-28 Yao Qi <yao.qi@linaro.org>
9508 Pedro Alves <palves@redhat.com>
9509
9510 * regcache.c (regcache::regcache): New tag dispatch ctor.
9511 (do_cooked_read): Moved above.
9512 (regcache_dup): Use the tag dispatch ctor..
9513 * regcache.h (regcache): Declare ctor, delete copy ctor and
9514 assignment operator, remove friend regcache_dup.
9515
b421c83c
YQ
95162017-04-28 Yao Qi <yao.qi@linaro.org>
9517
9518 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
9519 call method save instead of regcache_cpy.
9520 * regcache.h (struct regcache): Make regcache_dup a friend.
9521
ef79d9a3
YQ
95222017-04-28 Yao Qi <yao.qi@linaro.org>
9523
9524 * regcache.c (struct regcache): Move to regcache.h
9525 (regcache::arch): New method.
9526 (regcache_get_ptid): Update.
9527 (get_regcache_arch): Call arch method.
9528 (get_regcache_aspace): Call method aspace.
9529 (register_buffer): Change it to method.
9530 (regcache_save): Change it to regcache::save.
9531 (regcache_restore): Likewise.
9532 (regcache_cpy_no_passthrough): Remove the declaration.
9533 (regcache_cpy): Call methods restore and cpy_no_passthrough.
9534 (regcache_cpy_no_passthrough): Change it to method
9535 cpy_no_passthrough.
9536 (regcache_register_status): Change it to method
9537 get_register_status.
9538 (regcache_invalidate): Change it to method invalidate.
9539 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
9540 (regcache_raw_update): Change it to method raw_update.
9541 (regcache_raw_read): Likewise.
9542 (regcache_raw_read_signed): Likewise.
9543 (regcache_raw_read_unsigned): Likewise.
9544 (regcache_raw_write_signed): Likewise.
9545 (regcache_raw_write_unsigned): Likewise.
9546 (regcache_cooked_read): Likewise.
9547 (regcache_cooked_read_value): Likewise.
9548 (regcache_cooked_read_signed): Likewise.
9549 (regcache_cooked_read_unsigned): Likewise.
9550 (regcache_cooked_write_signed): Likewise.
9551 (regcache_cooked_write_unsigned): Likewise.
9552 (regcache_raw_set_cached_value): Likewise.
9553 (regcache_raw_write): Likewise.
9554 (regcache_cooked_write): Likewise.
9555 (regcache_xfer_part): Likewise.
9556 (regcache_raw_read_part): Likewise.
9557 (regcache_raw_write_part): Likewise.
9558 (regcache_cooked_read_part): Likewise.
9559 (regcache_cooked_write_part): Likewise.
9560 (regcache_raw_supply): Likewise.
9561 (regcache_raw_collect): Likewise.
9562 (regcache_transfer_regset): Likewise.
9563 (regcache_supply_regset): Likewise.
9564 (regcache_collect_regset): Likewise.
9565 (regcache_debug_print_register): Likewise.
9566 (enum regcache_dump_what): Move it to regcache.h.
9567 (regcache_dump): Change it to method dump.
9568 * regcache.h (enum regcache_dump_what): New.
9569 (class regcache): New.
9570 * target.c (target_fetch_registers): Call method
9571 debug_print_register.
9572 (target_store_registers): Likewise.
9573
f8fdb78e
SM
95742017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9575
9576 * windows-nat.c (struct lm_info_windows): Initialize field.
9577 (windows_make_so): Allocate lm_info_windows with new.
9578 (windows_free_so): Free lm_info_windows with delete.
9579
9ccbfd7b
SM
95802017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9581
9582 * solib-darwin.c (struct lm_info_darwin): Initialize field.
9583 (darwin_current_sos): Allocate lm_info_darwin with new, remove
9584 cleanup.
9585 (darwin_free_so): Free lm_info_darwin with delete.
9586
76e75227
SM
95872017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9588
9589 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
9590 <l_addr_p>: Change type to bool.
9591 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
9592 (svr4_free_so): Free lm_info_svr4 with delete.
9593 (svr4_copy_library_list): Replace memcpy with call to copy
9594 constructor.
9595 (library_list_start_library, svr4_default_sos): Allocate
9596 lm_info_svr4 with new.
9597
51046d9e
SM
95982017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9599
9600 * solib-target.c (struct lm_info_target): Add destructor,
9601 initialize fields.
9602 <name>: Change type to std::string.
9603 (library_list_start_library): Allocate lm_info_target with new.
9604 (solib_target_free_library_list): Free lm_info_target with
9605 delete.
9606 (solib_target_current_sos): Adapt to std::string.
9607 (solib_target_free_so): Free lm_info_target with delete.
9608
4023ae76
SM
96092017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9610
9611 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
9612 fields.
9613 (frv_current_sos): Allocate lm_info_frv with new.
9614 (frv_relocate_main_executable): Free lm_info_frv with delete,
9615 allocate with new.
9616 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
9617
af43057b
SM
96182017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9619
9620 * solib-frv.c (struct lm_info_frv): Fix indentation.
9621
b0911207
SM
96222017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9623
9624 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
9625 map field.
9626 (dsbt_current_sos): Allocate lm_info_dsbt with new.
9627 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
9628 and allocate with new.
9629 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
9630
6c401f72
SM
96312017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9632
9633 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
9634 <filename, member_name>: Change type to std::string.
9635 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
9636 (library_list_start_library): Allocate lm_info_aix with new.
9637 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
9638 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
9639 with copy constructor.
9640
d0e449a1
SM
96412017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9642
9643 * solist.h (struct lm_info): Remove.
9644 (struct lm_info_base): New class.
9645 (struct so_list) <lm_info>: Change type to lm_info_base *.
9646 * nto-tdep.c (struct lm_info): Remove.
9647 (lm_addr): Adjust.
9648 * solib-aix.c (struct lm_info): Rename to ...
9649 (struct lm_info_aix): ... this. Extend lm_info_base.
9650 (lm_info_p): Rename to ...
9651 (lm_info_aix_p): ... this, and adjust.
9652 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
9653 solib_aix_parse_libraries, library_list_start_library,
9654 solib_aix_free_library_list, solib_aix_parse_libraries,
9655 solib_aix_get_library_list,
9656 solib_aix_relocate_section_addresses, solib_aix_free_so,
9657 solib_aix_get_section_offsets,
9658 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
9659 Adjust.
9660 (struct solib_aix_inferior_data) <library_list>: Adjust.
9661 * solib-darwin.c (struct lm_info): Rename to ...
9662 (struct lm_info_darwin): ... this. Extend lm_info_base.
9663 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
9664 * solib-dsbt.c (struct lm_info): Rename to ...
9665 (struct lm_info_dsbt): ... this. Extend lm_info_base.
9666 (struct dsbt_info) <main_executable_lm_info): Adjust.
9667 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
9668 dsbt_relocate_section_addresses): Adjust.
9669 * solib-frv.c (struct lm_info): Rename to ...
9670 (struct lm_info_frv): ... this. Extend lm_info_base.
9671 (main_executable_lm_info): Adjust.
9672 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
9673 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
9674 find_canonical_descriptor_in_load_object,
9675 frv_fdpic_find_canonical_descriptor): Adjust.
9676 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
9677 to lm_info_svr4.
9678 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
9679 svr4_clear_so, svr4_copy_library_list,
9680 library_list_start_library, svr4_default_sos, svr4_read_so_list,
9681 svr4_current_sos, svr4_fetch_objfile_link_map,
9682 solist_update_incremental): Adjust.
9683 * solib-svr4.h (struct lm_info_svr4): Move here from
9684 solib-svr4.c.
9685 * solib-target.c (struct lm_info): Rename to ...
9686 (struct lm_info_target): ... this. Extend lm_info_base.
9687 (lm_info_p): Rename to ...
9688 (lm_info_target_p): ... this.
9689 (solib_target_parse_libraries, library_list_start_segment,
9690 library_list_start_section, library_list_start_library,
9691 library_list_end_library, solib_target_free_library_list,
9692 solib_target_current_sos, solib_target_free_so,
9693 solib_target_relocate_section_addresses): Adjust.
9694 * windows-nat.c (struct lm_info): Rename to ...
9695 (struct lm_info_windows): ... this. Extend lm_info_base.
9696 (windows_make_so, handle_load_dll, handle_unload_dll,
9697 windows_xfer_shared_libraries): Adjust.
9698
434a4023
SM
96992017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9700
9701 * solib-darwin.c (struct darwin_so_list): Remove.
9702 (darwin_current_sos): Allocate an so_list object instead of a
9703 darwin_so_list, separately allocate an lm_info object.
9704 (darwin_free_so): Free lm_info.
9705
428544e8
JB
97062017-04-28 John Baldwin <jhb@FreeBSD.org>
9707
9708 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
9709 with fprintf_filtered.
9710
4621115f
YQ
97112017-04-28 Yao Qi <yao.qi@linaro.org>
9712
9713 * regcache.c (regcache::regcache): New function.
9714 (regcache::~regcache): New function.
9715 (regcache_xmalloc_1): Remove.
9716 (regcache_xmalloc): Call new regcache.
9717 (regcache_xfree): Call delete regcache.
9718 (get_thread_arch_aspace_regcache): Call new regcache.
9719
339053c2
YQ
97202017-04-28 Yao Qi <yao.qi@linaro.org>
9721
9722 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
9723 lwp instead of ptid_get_lwp.
9724
7974a605
YQ
97252017-04-28 Yao Qi <yao.qi@linaro.org>
9726
9727 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
9728 lwp_info instead of getting from inferior_ptid.
9729
e15c3eb4
KS
97302017-04-27 Keith Seitz <keiths@redhat.com>
9731
9732 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
9733 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
9734 (CV_CONVERSION_BADNESS): Define.
9735 (rank_one_type): Remove overly restrictive rvalue reference
9736 rank checks.
9737 Add cv-qualifier checks and subranks for type equality.
9738 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
9739 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
9740 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
9741
72bc1d24
SM
97422017-04-27 Simon Marchi <simon.marchi@ericsson.com>
9743
9744 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
9745 count when creating the object.
9746
55bcecda
UW
97472017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
9748 Ulrich Weigand <uweigand@de.ibm.com>
9749
9750 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
9751 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
9752 is used in AIX.
9753 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
9754 (process_xcoff_symbol): Likewise.
9755 (scan_xcoff_symtab): Likewise.
9756
5c99fcf8
AH
97572017-04-26 Alan Hayward <alan.hayward@arm.com>
9758
9759 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
9760 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
9761 (ia64_access_reg): Use get_frame_register_unsigned.
9762 (ia64_access_rse_reg): Likewise.
9763 (ia64_libunwind_frame_prev_register): Likewise.
9764
b41c5a85
JW
97652017-04-26 Jiong Wang <jiong.wang@arm.com>
9766
9767 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
9768 * gdbarch.c: Regenerated.
9769 * gdbarch.h: Regenerated.
9770 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
9771 visibility external.
9772 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
9773 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
9774 (enum cfa_how_kind): Move to ...
9775 (struct dwarf2_frame_state_reg_info): Likewise.
9776 (struct dwarf2_frame_state): Likewise.
9777 * dwarf2-frame.h: ... here.
9778 (dwarf2_frame_state_alloc_regs): New declaration.
9779 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
9780 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
9781
c185f580
AH
97822017-04-26 Alan Hayward <alan.hayward@arm.com>
9783
9784 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
9785 regcache_raw_read_unsigned.
9786 (xtensa_pseudo_register_write): Likewise.
9787
19c45594
AH
97882017-04-26 Alan Hayward <alan.hayward@arm.com>
9789
9790 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
9791 (nds32_pseudo_register_write): Likewise.
9792
4658f12e
YQ
97932017-04-25 Yao Qi <yao.qi@linaro.org>
9794
9795 * regcache.c (struct regcache) <readonly_p>: Change its type
9796 to bool.
9797 (regcache_xmalloc_1): Update parameter type and callers update.
9798
d581dda8
YQ
97992017-04-25 Yao Qi <yao.qi@linaro.org>
9800
9801 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9802 set_gdbarch_wchar_bit.
9803 * arm-tdep.c (arm_gdbarch_init): Likewise.
9804
debed3db
PA
98052017-04-25 Pedro Alves <palves@redhat.com>
9806
9807 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
9808 (BothAreRelocatable, memcopy, memmove): Don't define.
9809 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
9810 macros.
9811
b0b92aeb
PA
98122017-04-25 Pedro Alves <palves@redhat.com>
9813
9814 * common/common-defs.h: Include "common/poison.h".
9815 * common/function-view.h: (Not, Or, Requires): Move to traits.h
9816 and adjust.
9817 * common/poison.h: New file.
9818 * common/traits.h: Include <type_traits>.
9819 (Not, Or, Requires): New, moved from common/function-view.h.
9820
16c4d54a
PA
98212017-04-25 Pedro Alves <palves@redhat.com>
9822
9823 * breakpoint.h (struct breakpoint): In-class initialize all
9824 fields. Make boolean fields "bool".
9825 * breakpoint.c (init_raw_breakpoint_without_location): Remove
9826 memset call and initializations no longer necessary.
9827
b5c36682
PA
98282017-04-25 Pedro Alves <palves@redhat.com>
9829
9830 * btrace.c (pt_btrace_insn_flags): Change parameter type to
9831 reference.
9832 (pt_btrace_insn): New function.
9833 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
9834
5625a286
PA
98352017-04-25 Pedro Alves <palves@redhat.com>
9836
9837 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
9838 "base" field and inherit from "bp_location" instead. Add
9839 non-default ctor.
9840 (allocate_location_exception): Use new non-default ctor.
9841 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
9842 (init_bp_location): Convert to ...
9843 (bp_location::bp_location): ... this new ctor, and remove memset
9844 call.
9845 (base_breakpoint_allocate_location): Use the new non-default ctor.
9846 * breakpoint.h (bp_location): Now a class. Declare default and
9847 non-default ctors. In-class initialize all members.
9848 (init_bp_location): Remove declaration.
9849
23bcc18f
PA
98502017-04-25 Pedro Alves <palves@redhat.com>
9851
9852 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
9853 assignment operator.
9854
e1ba3053
YQ
98552017-04-24 Yao Qi <yao.qi@linaro.org>
9856
9857 * doublest.c (convert_doublest_to_floatformat): Call
9858 floatformat_totalsize_bytes.
9859
10f489e5
TT
98602017-04-22 Tom Tromey <tom@tromey.com>
9861
9862 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
9863 ui_out_emit_list.
9864 * stack.c (print_frame): Use ui_out_emit_list.
9865 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
9866 ui_out_emit_list.
9867 * mi/mi-main.c (print_one_inferior)
9868 (mi_cmd_data_list_register_names)
9869 (mi_cmd_data_list_register_values, mi_cmd_list_features)
9870 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
9871 ui_out_emit_list.
9872 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
9873 (mi_output_solib_attribs): Use ui_out_emit_list,
9874 ui_out_emit_tuple.
9875 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
9876 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9877 (mi_cmd_stack_list_args, list_args_or_locals): Use
9878 ui_out_emit_list.
9879 * disasm.c (do_assembly_only): Use ui_out_emit_list.
9880 * breakpoint.c (print_solib_event, output_thread_groups): Use
9881 ui_out_emit_list.
9882
0092b74d
TT
98832017-04-22 Tom Tromey <tom@tromey.com>
9884
9885 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
9886 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
9887 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
9888
a14a62dd
TT
98892017-04-22 Tom Tromey <tom@tromey.com>
9890
9891 * tracepoint.c (tvariables_info_1)
9892 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
9893
46b9c129
TT
98942017-04-22 Tom Tromey <tom@tromey.com>
9895
9896 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
9897 annotate_arg_emitter.
9898 * breakpoint.c (print_mention_watchpoint)
9899 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
9900 * annotate.h (struct annotate_arg_emitter): New.
9901
2e783024
TT
99022017-04-22 Tom Tromey <tom@tromey.com>
9903
9904 * record-btrace.c (record_btrace_insn_history)
9905 (record_btrace_insn_history_range, record_btrace_call_history)
9906 (record_btrace_call_history_range): Use ui_out_emit_tuple.
9907 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
9908 ui_out_emit_tuple.
9909 * stack.c (print_frame_info): Use ui_out_emit_tuple.
9910 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
9911 * skip.c (skip_info): Use ui_out_emit_tuple.
9912 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
9913 * progspace.c (print_program_space): Use ui_out_emit_tuple.
9914 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
9915 * osdata.c (info_osdata): Use ui_out_emit_tuple.
9916 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
9917 ui_out_emit_tuple.
9918 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
9919 (output_register, mi_cmd_data_read_memory)
9920 (mi_cmd_data_read_memory_bytes, mi_load_progress)
9921 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
9922 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
9923 Use ui_out_emit_tuple.
9924 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
9925 ui_out_emit_tuple.
9926 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
9927 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
9928 * linux-thread-db.c (info_auto_load_libthread_db): Use
9929 ui_out_emit_tuple.
9930 * inferior.c (print_inferior): Use ui_out_emit_tuple.
9931 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
9932 * disasm.c (do_mixed_source_and_assembly_deprecated)
9933 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
9934 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
9935 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
9936 * breakpoint.c (print_one_breakpoint_location)
9937 (print_one_breakpoint): Use ui_out_emit_tuple.
9938 * auto-load.c (print_script, info_auto_load_cmd): Use
9939 ui_out_emit_tuple.
9940 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
9941
9be21bb4
SM
99422017-04-21 Simon Marchi <simon.marchi@ericsson.com>
9943
9944 * thread.c (print_thread_info_1): Remove dead code.
9945
0d4c07af
JK
99462017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9947
9948 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
9949 GDB_SELF_TEST.
9950 * arm-tdep.c (selftests::arm_record_test): Likewise.
9951
4daf993d
YQ
99522017-04-21 Yao Qi <yao.qi@linaro.org>
9953
9954 * regcache.c (regcache_restore): Remove argument 2. Replace
9955 argument 3 with regcache. Get register status from
9956 src->register_status and get register contents from
9957 register_buffer (src, regnum).
9958 (regcache_cpy): Update.
9959
a6c21d4a
PA
99602017-04-19 Pedro Alves <palves@redhat.com>
9961
9962 * gdbthread.h (thread): Add missing closing parenthesis in
9963 comment.
9964
3a3fd0fd
PA
99652017-04-19 Pedro Alves <palves@redhat.com>
9966
9967 * common/refcounted-object.h: New file.
9968 * gdbthread.h: Include "common/refcounted-object.h".
9969 (thread_info): Inherit from refcounted_object and add comments.
9970 (thread_info::incref, thread_info::decref)
9971 (thread_info::m_refcount): Delete.
9972 (thread_info::deletable): Use the refcounted_object::refcount()
9973 method.
9974 * inferior.c (current_inferior_): Add comment.
9975 (set_current_inferior): Increment/decrement refcounts.
9976 (prune_inferiors, remove_inferior_command): Skip inferiors marked
9977 not-deletable instead of comparing with the current inferior.
9978 (initialize_inferiors): Increment the initial inferior's refcount.
9979 * inferior.h (struct inferior): Forward declare.
9980 Include "common/refcounted-object.h".
9981 (current_inferior, set_current_inferior): Move declaration to
9982 before struct inferior's definition, and fix comment.
9983 (inferior): Inherit from refcounted_object. Add comments.
9984 * thread.c (switch_to_thread_no_regs): Reference the thread's
9985 inferior pointer directly instead of doing a ptid lookup.
9986 (switch_to_no_thread): New function.
9987 (switch_to_thread(thread_info *)): New function, factored out
9988 from ...
9989 (switch_to_thread(ptid_t)): ... this.
9990 (restore_current_thread): Delete.
9991 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
9992 fields, and add 'inf' field.
9993 (do_restore_current_thread_cleanup): Check whether old->inf is
9994 alive instead of looking up an inferior by ptid. Use
9995 switch_to_thread and switch_to_no_thread.
9996 (restore_current_thread_cleanup_dtor): Use old->inf directly
9997 instead of lookup up an inferior by id. Decref the inferior.
9998 Don't restore 'removable'.
9999 (make_cleanup_restore_current_thread): Same the inferior pointer
10000 in old, instead of the inferior number. Incref the inferior.
10001 Don't save/clear 'removable'.
10002
9bcb1f16
PA
100032017-04-19 Pedro Alves <palves@redhat.com>
10004
10005 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10006 unittests/scoped_restore-selftests.c.
10007 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
10008 * common/scoped_restore.h (scoped_restore_base): Make "class".
10009 (scoped_restore_base::release): New public method.
10010 (scoped_restore_base::scoped_restore_base): New protected ctor.
10011 (scoped_restore_base::m_saved_var): New protected field.
10012 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
10013 scoped_restore_base base class instead of m_saved_var directly.
10014 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
10015 (scoped_restore_tmpl::scoped_restore_tmpl(const
10016 scoped_restore_tmpl<T>&)): Likewise.
10017 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
10018 method.
10019 (scoped_restore_tmpl::saved_var): New method.
10020 (scoped_restore_tmpl::m_saved_var): Delete.
10021 * inferior.h (inferior::detaching): Now a bool.
10022 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
10023 cleanup.
10024 * unittests/scoped_restore-selftests.c: New file.
10025
26fcd539
PA
100262017-04-19 Pedro Alves <palves@redhat.com>
10027
10028 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
10029 Re-sort in alphabetic order.
10030
fdd243b0
PA
100312017-04-18 Pedro Alves <palves@redhat.com>
10032
10033 * xml-support.c (obstack_xml_printf): Delete.
10034 * xml-support.h (obstack_xml_printf): Delete.
10035
4895cde2
PA
100362017-04-18 Pedro Alves <palves@redhat.com>
10037
10038 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
10039 vdebug, verror, body_text, start_element, end_element, name,
10040 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
10041 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
10042 is_xinclude>: Make private and add m_ prefix.
10043 (gdb_xml_parser::body_text): New method, based on ...
10044 (gdb_xml_body_text): ... this. Adjust.
10045 (gdb_xml_parser::vdebug): New method, based on ...
10046 (gdb_xml_debug): ... this. Adjust.
10047 (gdb_xml_parser::verror): New method, based on ...
10048 (gdb_xml_error): ... this. Adjust.
10049 (gdb_xml_parser::start_element): New method, based on ...
10050 (gdb_xml_start_element): ... this. Adjust.
10051 (gdb_xml_start_element_wrapper): Defer to
10052 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
10053 (gdb_xml_parser::end_element): New method, based on ...
10054 (gdb_xml_end_element_wrapper): ... this. Adjust.
10055 (gdb_xml_parser::~gdb_xml_parser): Adjust.
10056 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
10057 (gdb_xml_parser::use_dtd): New method, based on ...
10058 (gdb_xml_use_dtd): ... this. Adjust.
10059 (gdb_xml_parser::parse): New method, based on ...
10060 (gdb_xml_parse): ... this. Adjust.
10061 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
10062 (xinclude_start_include): Adjust to call the parser's name method.
10063 (xml_xinclude_default, xml_xinclude_start_doctype)
10064 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
10065 method.
10066 (xml_process_xincludes): Adjust to call parser methods.
10067 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
10068 declarations.
10069
bd8a901f
PA
100702017-04-18 Pedro Alves <palves@redhat.com>
10071
10072 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
10073 gdb::optional<std::string>.
10074 * xml-support.c: Include <string>.
10075 (scope_level::scope_level(scope_level &&))
10076 (scope_level::~scope_level): Delete.
10077 (scope_level::body): Now a std::string.
10078 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
10079 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
10080 parameter.
10081 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
10082 (xinclude_parsing_data::output): Now a std::string reference.
10083 (xinclude_start_include): Adjust.
10084 (xml_xinclude_default): Adjust.
10085 (xml_process_xincludes): Add 'output' parameter, and return bool.
10086 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
10087 and return bool.
10088 * xml-tdesc.c: Include <unordered_map> and <string>.
10089 (tdesc_xml_cache): Delete.
10090 (tdesc_xml_cache_s): Delete.
10091 (xml_cache): Now an std::unordered_map.
10092 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
10093 (target_fetch_description_xml): Change return type to
10094 gdb::optional<std::string>, and adjust.
10095 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
10096 (target_fetch_description_xml): Change return type to
10097 gdb::optional<std::string>.
10098
d35d1958
PA
100992017-04-18 Pedro Alves <palves@redhat.com>
10100
10101 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10102 unittests/optional-selftests.c.
10103 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
10104 * unittests/optional-selftests.c: New file.
10105 * unittests/optional/assignment/1.cc: New file.
10106 * unittests/optional/assignment/2.cc: New file.
10107 * unittests/optional/assignment/3.cc: New file.
10108 * unittests/optional/assignment/4.cc: New file.
10109 * unittests/optional/assignment/5.cc: New file.
10110 * unittests/optional/assignment/6.cc: New file.
10111 * unittests/optional/assignment/7.cc: New file.
10112 * unittests/optional/cons/copy.cc: New file.
10113 * unittests/optional/cons/default.cc: New file.
10114 * unittests/optional/cons/move.cc: New file.
10115 * unittests/optional/cons/value.cc: New file.
10116 * unittests/optional/in_place.cc: New file.
10117 * unittests/optional/observers/1.cc: New file.
10118 * unittests/optional/observers/2.cc: New file.
10119
22796e97
PA
101202017-04-18 Pedro Alves <palves@redhat.com>
10121
10122 * common/gdb_optional.h: Include common/traits.h.
10123 (in_place_t): New type.
10124 (in_place): New constexpr variable.
10125 (optional::optional): Remove member initialization of
10126 m_instantiated.
10127 (optional::optional(in_place_t...)): New constructor.
10128 (optional::~optional): Use reset.
10129 (optional::optional(const optional&)): New.
10130 (optional::optional(const optional&&)): New.
10131 (optional::optional(T &)): New.
10132 (optional::optional(T &&)): New.
10133 (operator::operator=(const optional &)): New.
10134 (operator::operator=(optional &&)): New.
10135 (operator::operator= (const T &))
10136 (operator::operator= (T &&))
10137 (operator::emplace (Args &&... args)): Return a T&. Use reset.
10138 (operator::reset): New.
10139 (operator::m_instantiated):: Add in-class initializer.
10140 * common/traits.h: Include <type_traits>.
10141 (struct And): New types.
10142
a7fc9b61
PA
101432017-04-18 Pedro Alves <palves@redhat.com>
10144
10145 * xml-support.c: Include <vector>.
10146 (scope_level::scope_level(const gdb_xml_element *))
10147 (scope_level::scope_level(scope_level&&)): New.
10148 (scope_level::~scope_level): New.
10149 (scope_level_s): Delete.
10150 (gdb_xml_parser::scopes): Now a std::vector.
10151 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
10152 Use std::vector.
10153 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
10154 scope cleanup code.
10155 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
10156 of the scopes member. Use std::vector::emplace_back.
10157
010151c9
PA
101582017-04-18 Pedro Alves <palves@redhat.com>
10159
10160 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
10161 a bool.
10162 (gdb_xml_end_element): Change type of first parameter.
10163 (gdb_xml_cleanup): Rename to ...
10164 (gdb_xml_parser::~gdb_xml_parser): ... this.
10165 (gdb_xml_create_parser_and_cleanup): Delete with ...
10166 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
10167 to this new ctor.
10168 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
10169 using gdb_xml_create_parser_and_cleanup.
10170 (xinclude_parsing_data): Add ctor/dtor.
10171 (xml_xinclude_cleanup): Delete.
10172 (xml_process_xincludes): Create a local xinclude_parsing_data
10173 instead of heap-allocating one. Create a local gdb_xml_parser
10174 instead of heap-allocating one with
10175 gdb_xml_create_parser_and_cleanup.
10176
d56060f0
JB
101772017-04-18 John Baldwin <jhb@FreeBSD.org>
10178
10179 PR threads/20743
10180 * fbsd-nat.c (resume_one_thread_cb): Remove.
10181 (resume_all_threads_cb): Remove.
10182 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
10183 iterate_over_threads.
10184
305d16a9
JB
101852017-04-17 Joel Brobecker <brobecker@adacore.com>
10186
10187 * NEWS: Create a new section for the next release branch.
10188 Rename the section of the current branch, now that it has
10189 been cut.
10190
8bb57231
JB
101912017-04-17 Joel Brobecker <brobecker@adacore.com>
10192
10193 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
10194 * version.in: Bump version to 8.0.50.DATE-git.
10195
096c92dd
SDJ
101962017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
10197
10198 PR gdb/21385
10199 * windows-nat.c (windows_create_inferior): Declare 'allargs'
10200 independently of the host, and fix build breakage on Cygwin.
10201
0550c955
PA
102022017-04-13 Pedro Alves <palves@redhat.com>
10203
10204 * inferior.c (free_inferior): Convert to ...
10205 (inferior::~inferior): ... this dtor.
10206 (inferior::inferior): New ctor, factored out from ...
10207 (add_inferior_silent): ... here. Allocate the inferior with a new
10208 expression.
10209 (delete_inferior): Call delete instead of free_inferior.
10210 * inferior.h (gdb_environ, continuation): Forward declare.
10211 (inferior): Now a class. Add in-class initialization to all
10212 members. Make boolean fields bool, except 'detaching'.
10213 (inferior::inferior): New explicit ctor.
10214 (inferior::~inferior): New.
10215
e3d60dfc
PA
102162017-04-13 Pedro Alves <palves@redhat.com>
10217
10218 * inferior.c (init_inferior_list): Delete.
10219 * inferior.h (init_inferior_list): Delete.
10220
5fd69d0a
PA
102212017-04-13 Pedro Alves <palves@redhat.com>
10222
10223 PR threads/13217
10224 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
10225 (top level): Call it twice, with different thread sets.
10226
c6609450
PA
102272017-04-13 Pedro Alves <palves@redhat.com>
10228
10229 * thread.c: Include <algorithm>.
10230 (thread_array_cleanup): Delete.
10231 (scoped_inc_dec_ref): New class.
10232 (live_threads_count): New function.
10233 (set_thread_refcount): Delete.
10234 (tp_array_compar_ascending): Now a bool.
10235 (tp_array_compar): Convert to a std::sort comparison function.
10236 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
10237 and live_threads_count.
10238
2a00d7ce
PA
102392017-04-13 Pedro Alves <palves@redhat.com>
10240
10241 * infrun.c (follow_fork_inferior): Also switch the current
10242 inferior.
10243
441d7c93
PA
102442017-04-13 Pedro Alves <palves@redhat.com>
10245
10246 * breakpoint.c (watch_command_1): Save watchpoint-frame info
10247 before calling create_internal_breakpoint.
10248
808480f6
PA
102492017-04-13 Pedro Alves <palves@redhat.com>
10250
10251 * fork-child.c (execv_argv): New class.
10252 (breakup_args): Refactored as ...
10253 (execv_argv::init_for_no_shell): .. this method of execv_argv.
10254 Copy arguments to storage and replace separators with NULL
10255 terminators in place.
10256 (escape_bang_in_quoted_argument): Adjust to return bool.
10257 (execv_argv::execv_argv): New ctor.
10258 (execv_argv::init_for_shell): New method, factored out from
10259 fork_inferior. Don't strdup strings into the vector.
10260 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
10261 Remove free_vector_argv call.
10262
ad3d022a
YQ
102632017-04-13 Yao Qi <yao.qi@linaro.org>
10264
10265 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
10266 tdep->rx_psw_type.
10267
e6ddc3bf
YQ
102682017-04-13 Yao Qi <yao.qi@linaro.org>
10269
10270 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
10271 * rx-tdep.c (rx_gdbarch_init): Likewise.
10272
bfb8cf90
PA
102732017-04-13 Pedro Alves <palves@redhat.com>
10274
10275 * breakpoint.h (struct breakpoint): Reindent.
10276
f5336ca5
PA
102772017-04-13 Pedro Alves <palves@redhat.com>
10278
10279 * breakpoint.c (bp_location): Rename to ...
10280 (bp_locations): ... this. All references updated.
10281 (bp_location_count): Rename to ...
10282 (bp_locations_count): ... this. All references updated.
10283 (bp_location_placed_address_before_address_max): Rename to ...
10284 (bp_locations_placed_address_before_address_max): ... this. All
10285 references updated.
10286 (bp_location_shadow_len_after_address_max): Rename to ...
10287 (bp_locations_shadow_len_after_address_max): ... this. All
10288 references updated.
10289 (bp_location_compare_addrs): Rename to ...
10290 (bp_locations_compare_addrs): ... this. All references updated.
10291 (bp_location_compare):Rename to ...
10292 (bp_locations_compare): ... this. All references updated.
10293 (bp_location_target_extensions_update): Rename to ...
10294 (bp_locations_target_extensions_update): ... this. All references
10295 updated.
10296
be628ab8
SDJ
102972017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10298
10299 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
10300 * common/common.m4: Check headers 'termios.h', 'termio.h' and
10301 'sgtty.h'.
10302 * common/gdb_termios.h: New file, with parts of "terminal.h".
10303 * inflow.c: Include "gdb_termios.h".
10304 * ser-unix.c: Include "gdb_termios.h".
10305 * terminal.h: Move terminal-related defines to
10306 "common/gdb_termios.h".
10307
8e9e35b1
TT
103082017-04-12 Tom Tromey <tom@tromey.com>
10309
10310 * probe.c (parse_probes): Update.
10311 * location.h (delete_event_location): Don't declare.
10312 (event_location_deleter::operator()): Update.
10313 * location.c (event_location_deleter::operator()): Rename from
10314 delete_event_location.
10315 * linespec.h (linespec_result) <location>: Change type to
10316 event_location_up.
10317 * linespec.c (canonicalize_linespec, event_location_to_sals)
10318 (decode_objc): Update.
10319 (linespec_result): Don't call delete_event_location.
10320 * breakpoint.c (create_breakpoints_sal)
10321 (bkpt_probe_create_sals_from_location)
10322 (strace_marker_create_sals_from_location): Update.
10323
16e802b9
TT
103242017-04-12 Tom Tromey <tom@tromey.com>
10325
10326 * linespec.h (struct linespec_result): Add constructor and
10327 destructor.
10328 (init_linespec_result, destroy_linespec_result)
10329 (make_cleanup_destroy_linespec_result): Don't declare.
10330 * linespec.c (init_linespec_result): Remove.
10331 (linespec_result::~linespec_result): Rename from
10332 destroy_linespec_result. Update.
10333 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
10334 Remove.
10335 * breakpoint.c (create_breakpoint, break_range_command)
10336 (decode_location_default): Update.
10337 * ax-gdb.c (agent_command_1): Update.
10338
d28cd78a
TT
103392017-04-12 Tom Tromey <tom@tromey.com>
10340
10341 * remote.c (remote_download_tracepoint): Update.
10342 * python/py-breakpoint.c (bppy_get_location): Update.
10343 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
10344 (gdbscm_breakpoint_location): Update.
10345 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
10346 * breakpoint.h (struct breakpoint) <location, location_range_end>:
10347 Change type to event_location_up.
10348 * breakpoint.c (create_overlay_event_breakpoint)
10349 (create_longjmp_master_breakpoint)
10350 (create_std_terminate_master_breakpoint)
10351 (create_exception_master_breakpoint)
10352 (breakpoint_event_location_empty_p, print_breakpoint_location)
10353 (print_one_breakpoint_location, create_thread_event_breakpoint)
10354 (init_breakpoint_sal, create_breakpoint)
10355 (print_recreate_ranged_breakpoint, break_range_command)
10356 (init_ada_exception_breakpoint, say_where): Update.
10357 (base_breakpoint_dtor): Don't call delete_event_location.
10358 (bkpt_print_recreate, tracepoint_print_recreate)
10359 (dprintf_print_recreate, update_static_tracepoint)
10360 (breakpoint_re_set_default): Update.
10361
711799d5
TT
103622017-04-12 Tom Tromey <tom@tromey.com>
10363
10364 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
10365 type of "to_do". Update.
10366 (compute_stack_depth): Use std::vector.
10367
52d214d3
TT
103682017-04-12 Tom Tromey <tom@tromey.com>
10369
10370 * printcmd.c (find_instruction_backward): Use std::vector.
10371
4c404b8b
TT
103722017-04-12 Tom Tromey <tom@tromey.com>
10373
10374 * symfile.c (objfilep): Remove typedef.
10375 (reread_symbols): Use a std::vector.
10376
156d9eab
TT
103772017-04-12 Tom Tromey <tom@tromey.com>
10378
10379 * mi/mi-main.c (exec_direction_forward): Remove.
10380 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
10381 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
10382 scoped_restore.
10383 * guile/guile.c (guile_repl_command, guile_command)
10384 (gdbscm_execute_gdb_command): Use scoped_restore.
10385 * go-exp.y (go_parse): Use scoped_restore.
10386 * d-exp.y (d_parse): Use scoped_restore.
10387 * cli/cli-decode.c (cmd_func): Use scoped_restore.
10388 * c-exp.y (c_parse): Use scoped_restore.
10389
4d89769a
TT
103902017-04-12 Tom Tromey <tom@tromey.com>
10391
10392 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
10393 (mi_parse): Update return type.
10394 (mi_parse_free): Remove.
10395 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
10396 (mi_parse::~mi_parse): Rename from mi_parse_free.
10397 (mi_parse_cleanup): Remove.
10398 (mi_parse): Return a unique_ptr. Use new.
10399 * mi/mi-main.c (mi_execute_command): Update.
10400
4b217cc7
TT
104012017-04-12 Tom Tromey <tom@tromey.com>
10402
10403 * location.c (explicit_location_lex_one): Return a
10404 unique_xmalloc_ptr.
10405 (string_to_explicit_location): Update. Remove cleanups.
10406
59d3651b
TT
104072017-04-12 Tom Tromey <tom@tromey.com>
10408
10409 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
10410 (compare_value_and_voffset): Change type. Update.
10411 (compute_vtable_size): Change type of "offset_vec".
10412 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
10413 (gnuv3_get_typeid): Remove extraneous declaration.
10414
b24b0d6c
TT
104152017-04-12 Tom Tromey <tom@tromey.com>
10416
10417 * charset.h (wchar_iterator): Fix comment.
10418
80a3b8c5
TT
104192017-04-12 Tom Tromey <tom@tromey.com>
10420
10421 * charset.c (iconv_wrapper): New class.
10422 (cleanup_iconv): Remove.
10423 (convert_between_encodings): Use it.
10424
c83dd867
TT
104252017-04-12 Tom Tromey <tom@tromey.com>
10426
10427 * symfile.h (increment_reading_symtab): Update type.
10428 * symfile.c (decrement_reading_symtab): Remove.
10429 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
10430 * psymtab.c (psymtab_to_symtab): Update.
10431 * dwarf2read.c (dw2_instantiate_symtab): Update.
10432
0e8621a0
TT
104332017-04-12 Tom Tromey <tom@tromey.com>
10434
10435 * jit.c (struct jit_reader): Declare separately. Add constructor
10436 and destructor. Change type of "handle".
10437 (loaded_jit_reader): Define separately.
10438 (jit_reader_load): Update. New "new".
10439 (jit_reader_unload_command): Use "delete".
10440 * gdb-dlfcn.h (struct dlclose_deleter): New.
10441 (gdb_dlhandle_up): New typedef.
10442 (gdb_dlopen, gdb_dlsym): Update types.
10443 (gdb_dlclose): Remove.
10444 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
10445 (gdb_dlsym): Change type of "handle".
10446 (make_cleanup_dlclose): Remove.
10447 (dlclose_deleter::operator()): Rename from gdb_dlclose.
10448 * compile/compile-c-support.c (load_libcc): Update.
10449
67d89901
TT
104502017-04-12 Tom Tromey <tom@tromey.com>
10451
10452 * symtab.h (find_pcs_for_symtab_line): Change return type.
10453 * symtab.c (find_pcs_for_symtab_line): Change return type.
10454 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
10455 type of "vec". Update.
10456 (ltpy_get_pcs_for_line): Update.
10457 * linespec.c (decode_digits_ordinary): Update.
10458
93921405
TT
104592017-04-12 Tom Tromey <tom@tromey.com>
10460
10461 * tracepoint.c (actions_command): Update.
10462 * python/python.c (python_command, python_interactive_command):
10463 Update.
10464 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
10465 * guile/guile.c (guile_command): Update.
10466 * defs.h (read_command_lines, read_command_lines_1): Return
10467 command_line_up.
10468 (command_lines_deleter): New struct.
10469 (command_line_up): New typedef.
10470 * compile/compile.c (compile_code_command)
10471 (compile_print_command): Update.
10472 * cli/cli-script.h (get_command_line, copy_command_lines): Return
10473 command_line_up.
10474 (make_cleanup_free_command_lines): Remove.
10475 * cli/cli-script.c (get_command_line, read_command_lines_1)
10476 (copy_command_lines): Return command_line_up.
10477 (while_command, if_command, read_command_lines, define_command)
10478 (document_command): Update.
10479 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
10480 Remove.
10481 * breakpoint.h (breakpoint_set_commands): Change type of
10482 "commands".
10483 * breakpoint.c (breakpoint_set_commands): Change type of
10484 "commands". Update.
10485 (do_map_commands_command, update_dprintf_command_list)
10486 (create_tracepoint_from_upload): Update.
10487
ffc2605c
TT
104882017-04-12 Tom Tromey <tom@tromey.com>
10489
10490 * tracepoint.c (scope_info): Update.
10491 * spu-tdep.c (spu_catch_start): Update.
10492 * python/python.c (gdbpy_decode_line): Update.
10493 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
10494 * python/py-breakpoint.c (bppy_init): Update.
10495 * probe.c (parse_probes): Update.
10496 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
10497 * location.h (event_location_deleter): New struct.
10498 (event_location_up): New typedef.
10499 (new_linespec_location, new_address_location, new_probe_location)
10500 (new_explicit_location, copy_event_location)
10501 (string_to_event_location, string_to_event_location_basic)
10502 (string_to_explicit_location): Update return type.
10503 (make_cleanup_delete_event_location): Remove.
10504 * location.c (new_linespec_location, new_address_location)
10505 (new_probe_location, new_explicit_location, copy_event_location):
10506 Return event_location_up.
10507 (delete_event_location_cleanup)
10508 (make_cleanup_delete_event_location): Remove.
10509 (string_to_explicit_location, string_to_event_location_basic)
10510 (string_to_event_location): Return event_location_up.
10511 * linespec.c (canonicalize_linespec, event_location_to_sals)
10512 (decode_line_with_current_source)
10513 (decode_line_with_last_displayed, decode_objc): Update.
10514 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10515 * completer.c (location_completer): Update.
10516 * cli/cli-cmds.c (edit_command, list_command): Update.
10517 * breakpoint.c (create_overlay_event_breakpoint)
10518 (create_longjmp_master_breakpoint)
10519 (create_std_terminate_master_breakpoint)
10520 (create_exception_master_breakpoint)
10521 (create_thread_event_breakpoint): Update.
10522 (init_breakpoint_sal): Update. Remove some dead code.
10523 (create_breakpoint_sal): Change type of "location". Update.
10524 (create_breakpoints_sal, create_breakpoint, break_command_1)
10525 (dprintf_command, break_range_command, until_break_command)
10526 (init_ada_exception_breakpoint)
10527 (strace_marker_create_sals_from_location)
10528 (update_static_tracepoint, trace_command, ftrace_command)
10529 (strace_command, create_tracepoint_from_upload): Update.
10530 * break-catch-throw.c (re_set_exception_catchpoint): Update.
10531 * ax-gdb.c (agent_command_1): Update.
10532
8f10c932
PA
105332017-04-12 Pedro Alves <palves@redhat.com>
10534
10535 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
10536 * configure.tgt: Handle i[34567]86-*-go32* and
10537 i[34567]86-*-msdosdjgpp*.
10538 * i386-tdep.c (i386_svr4_reg_to_regnum):
10539 Make extern.
10540 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
10541 i386-go32-tdep.c.
10542 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
10543 * i386-go32-tdep.c: New file.
10544 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
10545 declarations.
10546
0a31ccfb
SM
105472017-04-12 Simon Marchi <simon.marchi@ericsson.com>
10548
10549 * aix-thread.c (pd_status2str): Change return type to const char *.
10550
e9bb3fbb
PA
105512017-04-12 Pedro Alves <palves@redhat.com>
10552
10553 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
10554 calls to set_gdbarch_gnu_triplet_regexp.
10555
53375380
PA
105562017-04-12 Pedro Alves <palves@redhat.com>
10557
10558 PR gdb/21323
10559 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
10560 New enum value.
10561 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
10562 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
10563 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
10564 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
10565 * gdbarch.h, gdbarch.c: Regenerate.
10566 * aarch64-tdep.c (aarch64_gdbarch_init): Override
10567 gdbarch_wchar_bit and gdbarch_wchar_signed.
10568 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
10569 * arm-tdep.c (arm_gdbarch_init): Likewise.
10570 * avr-tdep.c (avr_gdbarch_init): Likewise.
10571 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10572 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
10573 * i386-tdep.c (i386_go32_init_abi): Likewise.
10574 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10575 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10576 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
10577 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
10578 * sh-tdep.c (sh_gdbarch_init): Likewise.
10579 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10580 * sparc64-tdep.c (sparc64_init_abi): Likewise.
10581 * windows-tdep.c (windows_init_abi): Likewise.
10582 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10583
53e710ac
PA
105842017-04-12 Pedro Alves <palves@redhat.com>
10585
10586 PR c++/21323
10587 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
10588 cplus_primitive_type_char32_t>: New enum values.
10589 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
10590 and cplus_primitive_type_char32_t.
10591 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
10592 32, use the archtecture's built-in type for char16_t and char32_t,
10593 respectively. Otherwise, fallback to init_integer_type as before,
10594 but make the type unsigned, and issue a complaint.
10595 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
10596
ab0538b8
AH
105972017-04-12 Alan Hayward <alan.hayward@arm.com>
10598
5e0e0422 10599 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
10600 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
10601
5430098f
SDJ
106022017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10603
10604 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
10605 'const char *'.
10606
7c5ded6a
SDJ
106072017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10608
10609 * common/common-utils.c (free_vector_argv): New function.
10610 * common/common-utils.h: Include <vector>.
10611 (free_vector_argv): New prototype.
10612 * darwin-nat.c (darwin_create_inferior): Rewrite function
10613 prototype in order to constify "exec_file" and accept a
10614 "std::string" for "allargs".
10615 * fork-child.c: Include <vector>.
10616 (breakup_args): Rewrite function, using C++.
10617 (fork_inferior): Rewrite function header, constify "exec_file_arg"
10618 and accept "std::string" for "allargs". Update the code to
10619 calculate "argv" based on "allargs". Update calls to "exec_fun"
10620 and "execvp".
10621 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
10622 order to constify "exec_file" and accept a "std::string" for
10623 "allargs".
10624 * go32-nat.c (go32_create_inferior): Likewise.
10625 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
10626 * infcmd.c (run_command_1): Constify "exec_file". Use
10627 "std::string" for inferior arguments.
10628 * inferior.h (fork_inferior): Update prototype.
10629 * linux-nat.c (linux_nat_create_inferior): Rewrite function
10630 prototype in order to constify "exec_file" and accept a
10631 "std::string" for "allargs".
10632 * nto-procfs.c (procfs_create_inferior): Likewise.
10633 * procfs.c (procfs_create_inferior): Likewise.
10634 * remote-sim.c (gdbsim_create_inferior): Likewise.
10635 * remote.c (extended_remote_run): Update code to accept
10636 "std::string" as argument.
10637 (extended_remote_create_inferior): Rewrite function prototype in
10638 order to constify "exec_file" and accept a "std::string" for
10639 "allargs".
10640 * rs6000-nat.c (super_create_inferior): Likewise.
10641 (rs6000_create_inferior): Likewise.
10642 * target.h (struct target_ops) <to_create_inferior>: Likewise.
10643 * windows-nat.c (windows_create_inferior): Likewise.
10644
ae0eee42
PA
106452017-04-11 Pedro Alves <palves@redhat.com>
10646
10647 * thread.c: Fix whitespace throughout.
10648
a6acac06
PR
106492017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
10650
10651 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
10652
64403bd1
AH
106532017-04-11 Alan Hayward <alan.hayward@arm.com>
10654
10655 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
10656
a5bef50f
SDJ
106572017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
10658
10659 PR gdb/21364
10660 * osdata.c (info_osdata): Check if 'type' is an empty string
10661 instead of NULL.
10662
9295a5a9
PA
106632017-04-10 Pedro Alves <palves@redhat.com>
10664
10665 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
10666 (ptid_to_global_thread_id, in_thread_list)
10667 (do_captured_list_thread_ids, set_resumed, set_running)
10668 (set_executing, set_stop_requested, finish_thread_state)
10669 (validate_registers_access, can_access_registers_ptid)
10670 (print_thread_info_1, switch_to_thread)
10671 (do_restore_current_thread_cleanup)
10672 (make_cleanup_restore_current_thread, thread_command)
10673 (thread_name_command): Use operator== instead of ptid_equal.
10674
996812e3
PA
106752017-04-10 Pedro Alves <palves@redhat.com>
10676
10677 * thread.c (struct current_thread_cleanup) <next>: Delete field.
10678 (current_thread_cleanup_chain): Delete.
10679 (restore_current_thread_cleanup_dtor)
10680 (make_cleanup_restore_current_thread): Remove references to
10681 current_thread_cleanup_chain.
10682
845b344f
AH
106832017-04-10 Alan Hayward <alan.hayward@arm.com>
10684
10685 * msp430-tdep.c (msp430_pseudo_register_read): Never return
10686 REG_UNKNOWN.
10687
803bdfe4
YQ
106882017-04-10 Yao Qi <yao.qi@linaro.org>
10689
10690 PR gdb/19942
10691 * gdbthread.h (thread_info::deletable): New method.
10692 (thread_info::incref): New method.
10693 (thread_info::decref): New method.
10694 (thread_info::refcount): Move it to private.
10695 * infrun.c (save_stop_context): Call inc_refcount.
10696 (release_stop_context_cleanup): Likewise.
10697 * thread.c (set_thread_exited): New function.
10698 (init_thread_list): Delete "tp" only it is deletable, otherwise
10699 call set_thread_exited.
10700 (delete_thread_1): Call set_thread_exited.
10701 (current_thread_cleanup) <inferior_pid>: Remove.
10702 <thread>: New field.
10703 (restore_current_thread_ptid_changed): Removed.
10704 (do_restore_current_thread_cleanup): Adjust.
10705 (restore_current_thread_cleanup_dtor): Don't call
10706 find_thread_ptid.
10707 (set_thread_refcount): Use dec_refcount.
10708 (make_cleanup_restore_current_thread): Adjust.
10709 (thread_apply_all_command): Call inc_refcount.
10710 (_initialize_thread): Don't call
10711 observer_attach_thread_ptid_changed.
10712
8c25b497
YQ
107132017-04-10 Yao Qi <yao.qi@linaro.org>
10714
10715 * thread.c (delete_thread_1): Hoist code on marking thread as
10716 exited.
10717
8473b447
SM
107182017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10719
10720 * windows-nat.c (windows_detach): Initialize ptid with
10721 minus_one_ptid.
10722
6670ec13
SM
107232017-04-07 Simon Marchi <simon.marchi@ericsson.com>
10724
10725 * unittests/ptid-selftests.c: Fix erroneous assert messages.
10726
ba2f91bb
AH
107272017-04-07 Alan Hayward <alan.hayward@arm.com>
10728
10729 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
10730 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
10731 (bfin_pseudo_register_write): Likewise
10732
436252de
SM
107332017-04-06 Simon Marchi <simon.marchi@ericsson.com>
10734
10735 * common/ptid.h (struct ptid): Change to...
10736 (class ptid_t): ... this.
10737 <ptid_t>: New constructors.
10738 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
10739 matches>: New methods.
10740 <make_null, make_minus_one>: New static methods.
10741 <pid>: Rename to...
10742 <m_pid>: ...this.
10743 <lwp>: Rename to...
10744 <m_lwp>: ...this.
10745 <tid>: Rename to...
10746 <m_tid>: ...this.
10747 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
10748 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
10749 as references, move comment to class ptid_t.
10750 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
10751 ptid_t static methods.
10752 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
10753 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
10754 Take ptid arguments as references, implement using ptid_t methods.
10755 * unittests/ptid-selftests.c: New file.
10756 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10757 unittests/ptid-selftests.c.
10758 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
10759
0dedf377
TP
107602017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
10761
10762 * python/python.c (python_run_simple_file): Cast mode literal to
10763 non-const char pointer as expected by PyFile_FromString.
10764
4e9868d4
SM
107652017-04-05 Simon Marchi <simon.marchi@ericsson.com>
10766
10767 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
10768 minus_one_ptid and null_ptid.
10769
9bf2a700
PA
107702017-04-05 Pedro Alves <palves@redhat.com>
10771
10772 * warning.m4 (build_warnings): Remove -Wno-write-strings.
10773 * configure: Regenerate.
10774
a121b7c1
PA
107752017-04-05 Pedro Alves <palves@redhat.com>
10776
10777 * ada-exp.y (yyerror): Constify.
10778 * ada-lang.c (bound_name, get_selections)
10779 (ada_variant_discrim_type)
10780 (ada_variant_discrim_name, ada_value_struct_elt)
10781 (ada_lookup_struct_elt_type, is_unchecked_variant)
10782 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
10783 (catch_ada_exception_command_split)
10784 (catch_ada_assert_command_split, catch_assert_command)
10785 (ada_op_name): Constify.
10786 * ada-lang.h (ada_yyerror, get_selections)
10787 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
10788 * arc-tdep.c (arc_print_frame_cache): Constify.
10789 * arm-tdep.c (arm_skip_stub): Constify.
10790 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
10791 (gen_aggregate_elt_ref): Constify.
10792 * bcache.c (print_bcache_statistics): Constify.
10793 * bcache.h (print_bcache_statistics): Constify.
10794 * break-catch-throw.c (catch_exception_command_1):
10795 * breakpoint.c (struct ep_type_description::description):
10796 Constify.
10797 (add_solib_catchpoint): Constify.
10798 (catch_fork_command_1): Add cast.
10799 (add_catch_command): Constify.
10800 * breakpoint.h (add_catch_command, add_solib_catchpoint):
10801 Constify.
10802 * bsd-uthread.c (bsd_uthread_state): Constify.
10803 * buildsym.c (patch_subfile_names): Constify.
10804 * buildsym.h (next_symbol_text_func, patch_subfile_names):
10805 Constify.
10806 * c-exp.y (yyerror): Constify.
10807 (token::oper): Constify.
10808 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
10809 * c-varobj.c (cplus_describe_child): Constify.
10810 * charset.c (find_charset_names): Add cast.
10811 (find_charset_names): Constify array and add const_cast.
10812 * cli/cli-cmds.c (complete_command, cd_command): Constify.
10813 (edit_command): Constify.
10814 * cli/cli-decode.c (lookup_cmd): Constify.
10815 * cli/cli-dump.c (dump_memory_command, dump_value_command):
10816 Constify.
10817 (struct dump_context): Constify.
10818 (add_dump_command, restore_command): Constify.
10819 * cli/cli-script.c (get_command_line): Constify.
10820 * cli/cli-script.h (get_command_line): Constify.
10821 * cli/cli-utils.c (check_for_argument): Constify.
10822 * cli/cli-utils.h (check_for_argument): Constify.
10823 * coff-pe-read.c (struct read_pe_section_data): Constify.
10824 * command.h (lookup_cmd): Constify.
10825 * common/print-utils.c (decimal2str): Constify.
10826 * completer.c (gdb_print_filename): Constify.
10827 * corefile.c (set_gnutarget): Constify.
10828 * cp-name-parser.y (yyerror): Constify.
10829 * cp-valprint.c (cp_print_class_member): Constify.
10830 * cris-tdep.c (cris_register_name, crisv32_register_name):
10831 Constify.
10832 * d-exp.y (yyerror): Constify.
10833 (struct token::oper): Constify.
10834 * d-lang.h (d_yyerror): Constify.
10835 * dbxread.c (struct header_file_location::name): Constify.
10836 (add_old_header_file, add_new_header_file, last_function_name)
10837 (dbx_next_symbol_text, add_bincl_to_list)
10838 (find_corresponding_bincl_psymtab, set_namestring)
10839 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
10840 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
10841 * defs.h (command_line_input, print_address_symbolic)
10842 (deprecated_readline_begin_hook): Constify.
10843 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
10844 Constify.
10845 * event-top.c (handle_line_of_input): Constify and add cast.
10846 * exceptions.c (catch_errors): Constify.
10847 * exceptions.h (catch_errors): Constify.
10848 * expprint.c (print_subexp_standard, op_string, op_name)
10849 (op_name_standard, dump_raw_expression, dump_raw_expression):
10850 * expression.h (op_name, op_string, dump_raw_expression):
10851 Constify.
10852 * f-exp.y (yyerror): Constify.
10853 (struct token::oper): Constify.
10854 (struct f77_boolean_val::name): Constify.
10855 * f-lang.c (f_word_break_characters): Constify.
10856 * f-lang.h (f_yyerror): Constify.
10857 * fork-child.c (fork_inferior): Add cast.
10858 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
10859 (new_variant): Constify.
10860 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
10861 * gdbarch.c: Regenerate.
10862 * gdbcore.h (set_gnutarget): Constify.
10863 * go-exp.y (yyerror): Constify.
10864 (token::oper): Constify.
10865 * go-lang.h (go_yyerror): Constify.
10866 * go32-nat.c (go32_sysinfo): Constify.
10867 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
10868 * guile/scm-cmd.c (cmdscm_function): Constify.
10869 * guile/scm-param.c (pascm_param_value): Constify.
10870 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
10871 (h8300sx_register_name): Constify.
10872 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
10873 Constify.
10874 * ia64-tdep.c (ia64_register_names): Constify.
10875 * infcmd.c (construct_inferior_arguments): Constify.
10876 (path_command, attach_post_wait): Constify.
10877 * language.c (show_range_command, show_case_command)
10878 (unk_lang_error): Constify.
10879 * language.h (language_defn::la_error)
10880 (language_defn::la_name_of_this): Constify.
10881 * linespec.c (decode_line_2): Constify.
10882 * linux-thread-db.c (thread_db_err_str): Constify.
10883 * lm32-tdep.c (lm32_register_name): Constify.
10884 * m2-exp.y (yyerror): Constify.
10885 * m2-lang.h (m2_yyerror): Constify.
10886 * m32r-tdep.c (m32r_register_names): Constify and make static.
10887 * m68hc11-tdep.c (m68hc11_register_names): Constify.
10888 * m88k-tdep.c (m88k_register_name): Constify.
10889 * macroexp.c (appendmem): Constify.
10890 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
10891 (upgrade_type, parse_external, parse_partial_symbols)
10892 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
10893 (new_symbol): Constify.
10894 * memattr.c (mem_info_command): Constify.
10895 * mep-tdep.c (register_name_from_keyword): Constify.
10896 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
10897 Constify.
10898 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
10899 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
10900 * mi/mi-main.c (captured_mi_execute_command): Constify and add
10901 cast.
10902 (mi_execute_async_cli_command): Constify.
10903 * mips-tdep.c (mips_register_name): Constify.
10904 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
10905 (am33_register_name, am33_2_register_name)
10906 * moxie-tdep.c (moxie_register_names): Constify.
10907 * nat/linux-osdata.c (osdata_type): Constify fields.
10908 * nto-tdep.c (nto_parse_redirection): Constify.
10909 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
10910 (lookup_child_selector): Constify.
10911 (objc_methcall::name): Constify.
10912 * objc-lang.h (lookup_objc_class, lookup_child_selector)
10913 (lookup_struct_typedef): Constify.
10914 * objfiles.c (pc_in_section): Constify.
10915 * objfiles.h (pc_in_section): Constify.
10916 * p-exp.y (struct token::oper): Constify.
10917 (yyerror): Constify.
10918 * p-lang.h (pascal_yyerror): Constify.
10919 * parser-defs.h (op_name_standard): Constify.
10920 (op_print::string): Constify.
10921 (exp_descriptor::op_name): Constify.
10922 * printcmd.c (print_address_symbolic): Constify.
10923 * psymtab.c (print_partial_symbols): Constify.
10924 * python/py-breakpoint.c (stop_func): Constify.
10925 (bppy_get_expression): Constify.
10926 * python/py-cmd.c (cmdpy_completer::name): Constify.
10927 (cmdpy_function): Constify.
10928 * python/py-event.c (evpy_add_attribute)
10929 (gdbpy_initialize_event_generic): Constify.
10930 * python/py-event.h (evpy_add_attribute)
10931 (gdbpy_initialize_event_generic): Constify.
10932 * python/py-evts.c (add_new_registry): Constify.
10933 * python/py-finishbreakpoint.c (outofscope_func): Constify.
10934 * python/py-framefilter.c (get_py_iter_from_func): Constify.
10935 * python/py-inferior.c (get_buffer): Add cast.
10936 * python/py-param.c (parm_constant::name): Constify.
10937 * python/py-unwind.c (fprint_frame_id): Constify.
10938 * python/python.c (gdbpy_parameter_value): Constify.
10939 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
10940 * remote.c (memory_packet_config::name): Constify.
10941 (show_packet_config_cmd, remote_write_bytes)
10942 (remote_buffer_add_string):
10943 * reverse.c (exec_reverse_once): Constify.
10944 * rs6000-tdep.c (variant::name, variant::description): Constify.
10945 * rust-exp.y (rustyyerror): Constify.
10946 * rust-lang.c (rust_op_name): Constify.
10947 * rust-lang.h (rustyyerror): Constify.
10948 * serial.h (serial_ops::name): Constify.
10949 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
10950 (sh_sh3e_register_name, sh_sh2e_register_name)
10951 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
10952 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
10953 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
10954 (sh_sh4al_dsp_register_name): Constify.
10955 * sh64-tdep.c (sh64_register_name): Constify.
10956 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
10957 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
10958 * stabsread.c (patch_block_stabs, read_type_number)
10959 (ref_map::stabs, ref_add, process_reference)
10960 (symbol_reference_defined, define_symbol, define_symbol)
10961 (error_type, read_type, read_member_functions, read_cpp_abbrev)
10962 (read_one_struct_field, read_struct_fields, read_baseclasses)
10963 (read_tilde_fields, read_struct_type, read_array_type)
10964 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
10965 (read_huge_number, read_range_type, read_args, common_block_start)
10966 (find_name_end): Constify.
10967 * stabsread.h (common_block_start, define_symbol)
10968 (process_one_symbol, symbol_reference_defined, ref_add):
10969 * symfile.c (get_section_index, add_symbol_file_command):
10970 * symfile.h (get_section_index): Constify.
10971 * target-descriptions.c (tdesc_type::name): Constify.
10972 (tdesc_free_type): Add cast.
10973 * target.c (find_default_run_target):
10974 (add_deprecated_target_alias, find_default_run_target)
10975 (target_announce_detach): Constify.
10976 (do_option): Constify.
10977 * target.h (add_deprecated_target_alias): Constify.
10978 * thread.c (print_thread_info_1): Constify.
10979 * top.c (deprecated_readline_begin_hook, command_line_input):
10980 Constify.
10981 (init_main): Add casts.
10982 * top.h (handle_line_of_input): Constify.
10983 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
10984 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
10985 (tfind_command): Rename to ...
10986 (tfind_command_1): ... this and constify.
10987 (tfind_command): New function.
10988 (tfind_end_command, tfind_start_command): Adjust.
10989 (encode_source_string): Constify.
10990 * tracepoint.h (encode_source_string): Constify.
10991 * tui/tui-data.c (tui_partial_win_by_name): Constify.
10992 * tui/tui-data.h (tui_partial_win_by_name): Constify.
10993 * tui/tui-source.c (tui_set_source_content_nil): Constify.
10994 * tui/tui-source.h (tui_set_source_content_nil): Constify.
10995 * tui/tui-win.c (parse_scrolling_args): Constify.
10996 * tui/tui-windata.c (tui_erase_data_content): Constify.
10997 * tui/tui-windata.h (tui_erase_data_content): Constify.
10998 * tui/tui-winsource.c (tui_erase_source_content): Constify.
10999 * tui/tui.c (tui_enable): Add cast.
11000 * utils.c (defaulted_query): Constify.
11001 (init_page_info): Add cast.
11002 (puts_debug, subset_compare): Constify.
11003 * utils.h (subset_compare): Constify.
11004 * varobj.c (varobj_format_string): Constify.
11005 * varobj.h (varobj_format_string): Constify.
11006 * vax-tdep.c (vax_register_name): Constify.
11007 * windows-nat.c (windows_detach): Constify.
11008 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
11009 * xml-support.c (gdb_xml_end_element): Constify.
11010 * xml-tdesc.c (tdesc_start_reg): Constify.
11011 * xstormy16-tdep.c (xstormy16_register_name): Constify.
11012 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
11013 * xtensa-tdep.h (xtensa_register_t::name): Constify.
11014
995816ba
PA
110152017-04-05 Pedro Alves <palves@redhat.com>
11016
11017 * proc-api.c (struct trans): Constify.
11018 (procfs_note): Constify.
11019 * proc-events.c (struct trans, syscall_table):
11020 * proc-flags.c (struct trans): Constify.
11021 * proc-utils.h (procfs_note): Constify.
11022 * proc-why.c (struct trans): Constify.
11023 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
11024 (procfs_detach): Constify.
11025 * sol-thread.c (struct string_map): Constify.
11026 (td_err_string, td_state_string): Constify.
11027
3e83a920
PA
110282017-04-05 Pedro Alves <palves@redhat.com>
11029
11030 * proc-api.c (procfs_filename): Don't initialize
11031 procfs_filename.
11032 (prepare_to_trace): Assume procfs_filename is non-NULL.
11033 (_initialize_proc_api): Give procfs_filename a default value here.
11034
63160a43
PA
110352017-04-05 Pedro Alves <palves@redhat.com>
11036
11037 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
11038 'cond_string' parameter.
11039 (extract_exception_regexp): Constify 'string' parameter.
11040 (catch_exception_command_1): Constify.
11041 * breakpoint.c (init_catchpoint)
11042 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
11043 parameter.
11044 (ep_parse_optional_if_clause, catch_fork_command_1)
11045 (catch_exec_command_1): Constify.
11046 * breakpoint.h (init_catchpoint): Constify 'cond_string'
11047 parameter.
11048 (ep_parse_optional_if_clause): Constify.
11049 * cli/cli-utils.c (remove_trailing_whitespace)
11050 (check_for_argument): Constify.
11051 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
11052 non-const overload.
11053 (check_for_argument): Likewise.
11054
9b2eba3d
PA
110552017-04-05 Pedro Alves <palves@redhat.com>
11056
11057 * event-top.c (command_line_handler): Add cast to execute_command
11058 call.
11059 * record-btrace.c (cmd_record_btrace_bts_start)
11060 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
11061 (cmd_record_btrace_start): Add cast to execute_command call.
11062 * record-full.c (record_full_goto_insn):
11063 * record.c (record_start, record_stop): Add cast to
11064 execute_command_to_string calls.
11065 (cmd_record_start): Add cast to execute_command calls.
11066
2adadf51
PA
110672017-04-05 Pedro Alves <palves@redhat.com>
11068
11069 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
11070 static inline function.
11071 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
11072 array and use gdb_PyArg_ParseTupleAndKeywords.
11073 * python/py-cmd.c (cmdpy_init): Likewise.
11074 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
11075 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
11076 (infpy_search_memory): Likewise.
11077 * python/py-objfile.c (objfpy_add_separate_debug_file)
11078 (gdbpy_lookup_objfile): Likewise.
11079 * python/py-symbol.c (gdbpy_lookup_symbol)
11080 (gdbpy_lookup_global_symbol): Likewise.
11081 * python/py-type.c (gdbpy_lookup_type): Likewise.
11082 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
11083 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
11084 Likewise.
11085
0d1f4ceb
PA
110862017-04-05 Pedro Alves <palves@redhat.com>
11087
11088 * python/python-internal.h (gdb_PyGetSetDef): New type.
11089 * python/py-block.c (block_object_getset)
11090 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
11091 * python/py-event.c (event_object_getset)
11092 (finish_breakpoint_object_getset): Likewise.
11093 * python/py-inferior.c (inferior_object_getset): Likewise.
11094 * python/py-infthread.c (thread_object_getset): Likewise.
11095 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
11096 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
11097 * python/py-objfile.c (objfile_getset): Likewise.
11098 * python/py-progspace.c (pspace_getset): Likewise.
11099 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
11100 Likewise.
11101 * python/py-record.c (recpy_record_getset): Likewise.
11102 * python/py-symbol.c (symbol_object_getset): Likewise.
11103 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
11104 Likewise.
11105 * python/py-type.c (type_object_getset, field_object_getset):
11106 Likewise.
11107 * python/py-value.c (value_object_getset): Likewise.
11108
4d759979
PA
111092017-04-05 Pedro Alves <palves@redhat.com>
11110
11111 * python/python-internal.h (gdb_PyObject_CallMethod)
11112 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
11113 New functions.
11114 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
11115 (PySys_GetObject, PySys_SetPath): New macros.
11116
fdf9e36f
PA
111172017-04-05 Pedro Alves <palves@redhat.com>
11118
11119 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
11120 info_osdata_command.
11121 * osdata.c (info_osdata_command): Rename to ...
11122 (info_osdata): ... this. Constify 'type' parameter, and remove
11123 the 'from_tty' parameter. Accept NULL TYPE.
11124 (info_osdata_command): New function.
11125 * osdata.h (info_osdata_command): Remove declaration.
11126 (info_osdata): New declaration.
11127
9f33b8b7
PA
111282017-04-05 Pedro Alves <palves@redhat.com>
11129
11130 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
11131 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
11132 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
11133 parameter.
11134 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
11135 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
11136 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
11137 parameter.
11138 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
11139 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
11140 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11141 (mi_cmd_file_list_exec_source_files)
11142 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
11143 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
11144 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
11145 parameter.
11146 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
11147 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
11148 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
11149 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
11150 (mi_cmd_stack_info_frame): Constify 'command' parameter.
11151 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
11152 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
11153 'command' parameter.
11154 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
11155 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
11156 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
11157 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
11158 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
11159 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
11160 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
11161 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
11162 (mi_cmd_var_set_update_range): Constify 'command' parameter.
11163 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
11164 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
11165 parameter.
11166 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
11167 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
11168 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
11169 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
11170 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
11171 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
11172 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
11173 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
11174 (mi_cmd_data_list_changed_registers)
11175 (mi_cmd_data_write_register_values)
11176 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
11177 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
11178 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
11179 (mi_cmd_list_features, mi_cmd_list_target_features)
11180 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
11181 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
11182 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
11183 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
11184 (mi_cmd_trace_frame_collected): Constify 'command'
11185 parameter.
11186 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
11187 'command' parameter.
11188
67cb5b2d
PA
111892017-04-05 Pedro Alves <palves@redhat.com>
11190
11191 * ada-lang.c (ada_completer_word_break_characters): Now a const
11192 array.
11193 (ada_get_gdb_completer_word_break_characters): Constify.
11194 * completer.c (gdb_completer_command_word_break_characters)
11195 (gdb_completer_file_name_break_characters)
11196 (gdb_completer_quote_characters): Now const arrays.
11197 (get_gdb_completer_quote_characters): Constify.
11198 (set_rl_completer_word_break_characters): New function.
11199 (set_gdb_completion_word_break_characters)
11200 (complete_line_internal): Use it.
11201 * completer.h (get_gdb_completer_quote_characters): Constify.
11202 (set_rl_completer_word_break_characters): Declare.
11203 * f-lang.c (f_word_break_characters): Constify.
11204 * language.c (default_word_break_characters): Constify.
11205 * language.h (language_defn::la_word_break_characters): Constify.
11206 (default_word_break_characters): Constify.
11207 * top.c (init_main): Use set_rl_completer_word_break_characters.
11208
7a114964
PA
112092017-04-05 Pedro Alves <palves@redhat.com>
11210
11211 * aix-thread.c (aix_thread_pid_to_str)
11212 (aix_thread_extra_thread_info): Constify.
11213 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
11214 * bsd-uthread.c (bsd_uthread_extra_thread_info)
11215 (bsd_uthread_pid_to_str): Constify.
11216 * corelow.c (core_pid_to_str): Constify.
11217 * darwin-nat.c (darwin_pid_to_str): Constify.
11218 * fbsd-nat.c (fbsd_pid_to_str): Constify.
11219 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
11220 Constify.
11221 * gnu-nat.c (gnu_pid_to_str): Constify.
11222 * go32-nat.c (go32_pid_to_str): Constify.
11223 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
11224 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
11225 * inferior.c (inferior_pid_to_str): Constify.
11226 * linux-nat.c (linux_nat_pid_to_str): Constify.
11227 * linux-tdep.c (linux_core_pid_to_str): Constify.
11228 * linux-thread-db.c (thread_db_pid_to_str)
11229 (thread_db_extra_thread_info): Constify.
11230 * nto-tdep.c (nto_extra_thread_info): Constify.
11231 * nto-tdep.h (nto_extra_thread_info): Constify.
11232 * obsd-nat.c (obsd_pid_to_str): Constify.
11233 * procfs.c (procfs_pid_to_str): Constify.
11234 * ravenscar-thread.c (ravenscar_extra_thread_info)
11235 (ravenscar_pid_to_str): Constify.
11236 * remote-sim.c (gdbsim_pid_to_str): Constify.
11237 * remote.c (remote_threads_extra_info, remote_pid_to_str):
11238 Constify.
11239 * sol-thread.c (solaris_pid_to_str): Constify.
11240 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
11241 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
11242 * target.c (default_pid_to_str, target_pid_to_str)
11243 (normal_pid_to_str, default_pid_to_str): Constify.
11244 * target.h (target_ops::to_pid_to_str)
11245 (target_ops::to_extra_thread_info): Constify.
11246 (target_pid_to_str, normal_pid_to_str): Constify.
11247 * windows-nat.c (windows_pid_to_str): Constify.
11248 * gdbarch.sh (core_pid_to_str): Constify.
11249 * target-delegates.c: Regenerate.
11250 * gdbarch.h, gdbarch.c: Regenerate.
11251
69bbf465
PA
112522017-04-05 Pedro Alves <palves@redhat.com>
11253
11254 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
11255 the memory of the temporary warning_pre_print override.
11256 * utils.c (warning_pre_print): Constify.
11257 * utils.h (warning_pre_print): Constify.
11258
be47f9e8
PA
112592017-04-05 Pedro Alves <palves@redhat.com>
11260
11261 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
11262 (shell_command): New function.
11263 (make_command): Use std::string.
11264 (init_cli_cmds): Register shell_command instead of shell_escape.
11265
bde6261a
PA
112662017-04-05 Pedro Alves <palves@redhat.com>
11267
11268 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
11269 * tracepoint.c (default_collect): Don't initialize.
11270
b38ef47f
PA
112712017-04-05 Pedro Alves <palves@redhat.com>
11272
11273 * macroexp.c (macro_buffer::shared): Now a bool.
11274 (init_buffer): Update.
11275 (init_shared_buffer): Constify 'addr' parameter.
11276 (substitute_args, expand, macro_expand, macro_expand_next): Remove
11277 casts.
11278
f995bbe8
PA
112792017-04-05 Pedro Alves <palves@redhat.com>
11280
11281 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
11282 * disasm.c (set_disassembler_options): Constify local.
11283 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
11284
4a596fe2
SDJ
112852017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
11286
11287 PR gdb/21352
11288 * tracefile.c (tsave_command): Fix argument parsing for '-r'
11289 option.
11290
2cad08ea
YQ
112912017-04-05 Yao Qi <yao.qi@linaro.org>
11292
11293 * frame.c (frame_unwind_register_unsigned): Call
11294 frame_unwind_register_value.
11295
55a98976
YQ
112962017-04-05 Yao Qi <yao.qi@linaro.org>
11297
11298 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
11299 Use gdb_test_multiple, and don't match anchor.
11300
4ac40124
PA
113012017-04-05 Pedro Alves <palves@redhat.com>
11302
11303 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
11304 (Write After Approval): Remove Simon Marchi.
11305
c053b654
PA
113062017-04-05 Pedro Alves <palves@redhat.com>
11307
11308 * common/gdb_optional.h (optional::optional): Make constexpr and
11309 initialize m_dummy.
11310
4c7bf4f9
JB
113112017-04-04 John Baldwin <jhb@FreeBSD.org>
11312
11313 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
11314 (amd64fbsd_jmp_buf_reg_offset): Remove.
11315 (amd64fbsd_supply_uthread): Remove function.
11316 (amd64fbsd_collect_uthread): Remove function.
11317 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
11318 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
11319 (x86_64-*-freebsd*): Remove bsd-uthread.o.
11320 (fbsd-nat.c): Update comment.
11321 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
11322 (i386fbsd_jmp_buf_reg_offset): Remove.
11323 (i386fbsd_supply_uthread): Remove function.
11324 (i386fbsd_collect_uthread): Remove function.
11325 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
11326
1e1a8bef
JB
113272017-04-04 John Baldwin <jhb@FreeBSD.org>
11328
11329 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
11330 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
11331 * NEWS: Mention that support for FreeBSD/alpha was removed.
11332 * alpha-fbsd-tdep.c: Delete file.
11333 * config/alpha/fbsd.mh: Delete file.
11334 * configure.host: Delete alpha*-*-freebsd* and
11335 alpha*-*-kfreebsd*-gnu.
11336 * configure.tgt: Delete alpha*-*-freebsd* and
11337 alpha*-*-kfreebsd*-gnu.
11338
49907934
JB
113392017-04-04 John Baldwin <jhb@FreeBSD.org>
11340
11341 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
11342 amd64bsd_store_inferior_registers): Use ptid from regcache.
11343
6f77053d
PA
113442017-04-04 Pedro Alves <palves@redhat.com>
11345
11346 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
11347 data fields, make them private and add "m_" prefixes.
11348 (lnp_state_machine::lnp_state_machine): New ctor.
11349 (record_line, check_line_address, handle_set_discriminator)
11350 (handle_set_address, handle_advance_pc, handle_special_opcode)
11351 (handle_advance_line, handle_set_file, handle_negate_stmt)
11352 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
11353 (end_sequence, advance_line): New methods.
11354 (m_gdbarch, m_record_lines_p): New fields.
11355 (lnp_reader_state): Delete.
11356 (dwarf_record_line): Rename to ...
11357 (lnp_state_machine::record_line): ... adjust.
11358 (init_lnp_state_machine): Delete.
11359 (lnp_state_machine::lnp_state_machine): New.
11360 (check_line_address): Rename to ...
11361 (lnp_state_machine::check_line_address): This.
11362 (dwarf_decode_lines_1): Remove reference to "reader_state".
11363 Adjust lnp_state_machine having a non-default ctor. Use bool.
11364 State machine internal state manipulation moved to
11365 lnp_state_machine methods.
11366
9c541725
PA
113672017-04-04 Pedro Alves <palves@redhat.com>
11368
11369 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11370 unittests/offset-type-selftests.c.
11371 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
11372 * common/offset-type.h: New file.
11373 * common/preprocessor.h: New file.
11374 * common/traits.h: New file.
11375 * common/valid-expr.h: New file.
11376 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
11377 sect_offset and cu_offset strong typedefs throughout.
11378 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
11379 typedefs throughout.
11380 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
11381 sect_offset and cu_offset strong typedefs throughout.
11382 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
11383 typedefs throughout.
11384 * gdbtypes.h: Include "common/offset-type.h".
11385 (cu_offset): Now an offset type (strong typedef) instead of a
11386 struct.
11387 (sect_offset): Likewise.
11388 (union call_site_parameter_u): Rename "param_offset" field to
11389 "param_cu_off".
11390 * unittests/offset-type-selftests.c: New file.
11391
ecfb656c
PA
113922017-04-04 Pedro Alves <palves@redhat.com>
11393
11394 * common/underlying.h: New file.
11395 * dwarf2read.c: Include "common/gdb_optional.h" and
11396 "common/underlying.h".
11397 (dir_index, file_name_index): New types.
11398 (file_entry): Use them.
11399 (file_entry::include): Use to_underlying.
11400 (line_header::add_file_name): Use dir_index.
11401 (read_formatted_entries): Use gdb::optional. Read form before
11402 writting to file_entry.
11403 (dwarf_decode_line_header): Use dir_index.
11404 (lnp_state_machine::current_file): Use to_underlying.
11405 (lnp_state_machine::file): Change type to file_name_index.
11406 (dwarf_record_line): Use to_underlying.
11407 (init_lnp_state_machine): Use file_name_index.
11408 (dwarf_decode_lines_1): Use dir_index and file_name_index.
11409
d194f1fe
PA
114102017-04-04 Pedro Alves <palves@redhat.com>
11411
11412 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
11413 operator bool, has_value and get methods.
11414
fff8551c
PA
114152017-04-04 Pedro Alves <palves@redhat.com>
11416
11417 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
11418 fields.
11419 (line_header): Initialize all data fields. Change type of
11420 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
11421 Change type of include_dirs to std::vector<const char *>. Remove
11422 num_include_dirs, include_dirs_size. Change type of file_names to
11423 std::vector<file_entry>. Remove num_file_names, file_names_size.
11424 (line_header::line_header): New.
11425 (line_header::add_include_dir, line_header::add_file_name): New
11426 methods.
11427 (line_header::include_dir_at): Remove NULL check.
11428 (line_header::file_name_at): Add const overload.
11429 (line_header_up): New unique_ptr typedef.
11430 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
11431 std::vector. Remove free_line_header call.
11432 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
11433 free_line_header call.
11434 (free_cu_line_header): Delete.
11435 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
11436 (setup_type_unit_groups): Use line_header_up instead of cleanups.
11437 Adjust to use std::vector.
11438 (free_line_header): Delete.
11439 (free_line_header_voidp): Use delete.
11440 (add_include_dir): Replace with ...
11441 (line_header::add_include_dir): ... this method. Use std::vector.
11442 (add_file_name): Replace with ...
11443 (line_header::add_file_name): ... this method. Use std::vector.
11444 (add_include_dir_stub): Delete.
11445 (read_formatted_entries): Remove memset.
11446 (dwarf_decode_line_header): Return a line_header_up instead of a
11447 raw pointer. Remove cleanup handling. Pass lambdas to
11448 read_formatted_entries. Adjust to use line_header methods.
11449 (dwarf_decode_lines_1): Adjust to use line_header methods.
11450 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
11451 use std::vector.
11452
d62a8ae2
SM
114532017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
11454
11455 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
11456 instead of struct ptid.
11457
db3a1dc7
AH
114582017-05-04 Alan Hayward <alan.hayward@arm.com>
11459
11460 * frame.c (get_frame_register_bytes): Unwind using value.
11461 (put_frame_register_bytes): Likewise.
11462
b1b45502
IB
114632017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
11464
11465 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
11466 aggregate-like.
11467
ec13808e
JK
114682017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11469
11470 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
11471
12316564
YQ
114722017-03-29 Yao Qi <yao.qi@linaro.org>
11473
11474 * gdbthread.h (struct thread_info): Declare constructor and
11475 destructor. Add some in-class member initializers.
11476 * thread.c (free_thread): Remove.
11477 (init_thread_list): Call delete instead of free_thread.
11478 (new_thread): Call thread_info constructor.
11479 (thread_info::thread_info): New function.
11480 (thread_info::~thread_info): New function.
11481 (delete_thread_1): Call delete instead of free_thread.
11482 (make_cleanup_restore_current_thread): Move tp and frame to
11483 inner block.
11484
fe5f7374
AK
114852017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11486
11487 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
11488 (arc_skip_prologue): Likewise.
11489 (arc_make_frame_cache): Likewise.
11490 (arc_pv_get_operand): New function.
11491 (arc_is_in_prologue): Likewise.
11492 (arc_analyze_prologue): Likewise.
11493 (arc_print_frame_cache): Likewise.
11494 (MAX_PROLOGUE_LENGTH): New constant.
11495
eea78757
AK
114962017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11497
11498 * configure.tgt: Add arc-insn.o.
11499 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
11500 (dump_arc_instruction_command): New function.
11501 (arc_fprintf_disasm): Likewise.
11502 (arc_disassemble_info): Likewise.
11503 (arc_insn_get_operand_value): Likewise.
11504 (arc_insn_get_operand_value_signed): Likewise.
11505 (arc_insn_get_memory_base_reg): Likewise.
11506 (arc_insn_get_memory_offset): Likewise.
11507 (arc_insn_get_branch_target): Likewise.
11508 (arc_insn_dump): Likewise.
11509 (arc_insn_get_linear_next_pc): Likewise.
11510 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
11511 (arc_disassemble_info): Likewise.
11512 (arc_insn_get_branch_target): Likewise.
11513 (arc_insn_get_linear_next_pc): Likewise.
11514 * NEWS: Mention new "maint print arc arc-instruction".
11515
3be78afd
AK
115162017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11517
11518 * arc-tdep (maintenance_print_arc_list): New variable.
11519 (maintenance_print_arc_command): New function.
11520
296ec4fa
AK
115212017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11522
11523 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
11524 Add "limm" and "reserved".
11525 (arc_cannot_fetch_register, arc_cannot_store_register): Add
11526 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
11527 * arc-tdep.h (arc_regnum): Likewise.
11528
f74f865e
MF
115292017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11530
11531 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
11532 for THREADPTR register.
11533 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
11534 register.
11535 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
11536 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
11537 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
11538
0d0bf81a
MF
115392017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11540
11541 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
11542 registers above gdbarch_num_regs (gdbarch) as privileged in
11543 call0 ABI.
11544
0ce4291e
MF
115452017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11546
11547 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
11548 for a single specified register or for all registers in
11549 a0_base..a0_base + C0_NREGS range.
11550 (supply_gregset_reg): Call regcache_raw_supply for a single
11551 specified register or for all registers in a0_base..a0_base +
11552 C0_NREGS range.
11553
c56054f9
MF
115542017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11555
11556 * arch/xtensa.h (C0_NREGS): Add definition.
11557 * xtensa-tdep.c (C0_NREGS): Remove definition.
11558
a4398628
MF
115592017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11560
11561 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
11562 Drop xtensa_default_isa initialization.
11563 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
11564
8c43009f
PA
115652017-03-27 Pedro Alves <palves@redhat.com>
11566
11567 * dwarf2read.c (file_entry) <dir_index>: Add comment.
11568 (file_entry::include_dir): New method.
11569 (line_header::include_dir_at, line_header::file_name_at): New
11570 methods.
11571 (setup_type_unit_groups, setup_type_unit_groups)
11572 (psymtab_include_file_name): Simplify using the new methods.
11573 (lnp_state_machine) <the_line_header>: New field.
11574 <file>: Add comment.
11575 (lnp_state_machine::current_file): New method.
11576 (dwarf_record_line): Simplify using the new methods.
11577 (init_lnp_state_machine): Initialize the "the_line_header" field.
11578 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
11579 Simplify using the new methods.
11580
a7e80b9e
PA
115812017-03-27 Pedro Alves <palves@redhat.com>
11582
11583 * cp-name-parser.y (make_empty): Delete.
11584 (demangler_special, nested_name, ptr_operator, array_indicator)
11585 (direct_declarator, declarator_1): Use fill_comp instead of
11586 make_empty.
11587
21047726
PA
115882017-03-27 Pedro Alves <palves@redhat.com>
11589
11590 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
11591 to ATTRIBUTE_PRINTF.
11592 * solib-target.c (library_list_start_list): Print "string" not
11593 "version".
11594 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
11595 gdb_xml_error call.
11596
d721ba37
PA
115972017-03-27 Pedro Alves <palves@redhat.com>
11598
11599 * dwarf2read.c (struct file_and_directory): New.
11600 (dwarf2_get_dwz_file): Adjust to use std::string.
11601 (dw2_get_file_names_reader): Adjust to use file_and_directory.
11602 (find_file_and_directory): Adjust to return a file_and_directory
11603 object.
11604 (read_file_scope): Adjust to use file_and_directory. Remove
11605 make_cleanup/do_cleanups calls.
11606 (open_and_init_dwp_file): Adjust to use std::string. Remove
11607 make_cleanup/do_cleanups calls.
11608 * python/python.c (do_start_initialization): Adjust to ldirname
11609 returning a std::string.
11610 * utils.c (ldirname): Now returns a std::string.
11611 * utils.h (ldirname): Change return type to std::string.
11612 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
11613 returning a std::string.
11614 * xml-tdesc.c (file_read_description_xml): Likewise.
11615
ed771251
AH
116162017-03-24 Alan Hayward <alan.hayward@arm.com>
11617
11618 * regcache.c (regcache_debug_print_register): New function.
11619 * regcache.h (regcache_debug_print_register): New declaration.
11620 * target.c (debug_print_register): Remove.
11621 (target_fetch_registers): Call regcache_debug_print_register.
11622 (target_store_registers): Likewise.
11623
568c1b9f
PB
116242017-03-24 Pádraig Brady <pbrady@fb.com>
11625
11626 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
11627 reference beyond the 'lh->include_dirs' array before accessing to
11628 it.
11629 (psymtab_include_file_name): Likewise.
11630 (dwarf_decode_lines_1): Likewise.
11631 (dwarf_decode_lines): Likewise.
11632 (file_file_name): Likewise.
11633
3e00d44f
SM
116342017-03-23 Simon Marchi <simon.marchi@ericsson.com>
11635
11636 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
11637 inferior_ptid.
11638 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
11639 ps_lsetfpregs): Likewise.
11640 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
11641 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
11642 ps_lsetfpregs): Likewise.
11643 * target.c (target_fetch_registers, target_store_registers):
11644 Remove asserts.
11645
077ae656
AH
116462017-03-23 Alan Hayward <alan.hayward@arm.com>
11647
11648 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
11649
1e2b521d
YQ
116502017-03-23 Yao Qi <yao.qi@linaro.org>
11651
11652 * aarch64-tdep.c (aarch64_process_record_test): Declare.
11653 (_initialize_aarch64_tdep): Register it.
11654 (aarch64_record_load_store): Handle PRFM instruction.
11655 (aarch64_process_record_test): New function.
11656
33877125
YQ
116572017-03-23 Yao Qi <yao.qi@linaro.org>
11658
11659 * aarch64-tdep.c (aarch64_record_load_store): Fix code
11660 indentation.
11661
a0eef940
YQ
116622017-03-23 Yao Qi <yao.qi@linaro.org>
11663
11664 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
11665
3f2a3564
PR
116662017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11667
11668 python/python.c (do_start_initialization): Fix memory leak.
11669
b67aeab0
SM
116702017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11671
11672 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
11673 using get_ptrace_pid.
11674 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
11675 inferior_ptid.
11676 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
11677 inferior_ptid instead of pid.
11678
ffdbe864
YQ
116792017-03-22 Yao Qi <yao.qi@linaro.org>
11680
11681 * aarch64-tdep.c: Wrap locally used classes in anonymous
11682 namespace.
11683 * arm-tdep.c: Likewise.
11684 * linespec.c: Likewise.
11685 * ui-out.c: Likewise.
11686
9d736fbf
JG
116872017-03-22 Jonah Graham <jonah@kichwacoders.com>
11688
11689 PR gdb/19637
11690 * python/lib/gdb/printer/bound_registers.py: Import sys.
11691
3de88e9a
SM
116922017-03-21 Simon Marchi <simon.marchi@ericsson.com>
11693
11694 * windows-nat.c (do_windows_fetch_inferior_registers): Add
11695 windows_thread_info parameter and use it instead of
11696 current_thread.
11697 (windows_fetch_inferior_registers): Don't set current_thread,
11698 pass the thread to do_windows_fetch_inferior_registers. Use
11699 ptid from regcache instead of inferior_ptid.
11700 (do_windows_store_inferior_registers): Add windows_thread_info
11701 parameter and use it instead of current_thread.
11702 (windows_store_inferior_registers): Don't set current_thread,
11703 pass the thread to do_windows_store_inferior_registers. Use
11704 ptid from regcache instead of inferior_ptid.
11705
0e7b8f61
SM
117062017-03-21 Simon Marchi <simon.marchi@ericsson.com>
11707
11708 * ser-mingw.c (ser_windows_raw): Remove reference to
11709 struct serial::current_timeout.
11710
5badf10a
IR
117112017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
11712
11713 PR tdep/20928
11714 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
11715 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
11716 (sparc64_fsr_type): Fix %fsr decoding.
11717
cee59b3f
TW
117182017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
11719
11720 * python/py-record-btrace.c (btpy_insn_data): Change return type
11721 for Python 2.
11722
639a9038
SM
117232017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
11724
11725 * spu-linux-nat.c (spu_fetch_inferior_registers,
11726 spu_store_inferior_registers): Use ptid from regcache, set and
11727 restore inferior_ptid.
11728 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
11729 Likewise.
11730
bcc0c096
SM
117312017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
11732
11733 * i386-linux-nat.c (fetch_register, store_register,
11734 i386_linux_fetch_inferior_registers,
11735 i386_linux_store_inferior_registers): Use ptid from regcache.
11736 * ia64-linux-nat.c (ia64_linux_fetch_register,
11737 ia64_linux_store_register): Likewise.
11738 * inf-ptrace.c (inf_ptrace_fetch_register,
11739 inf_ptrace_store_register): Likewise.
11740 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
11741 m32r_linux_store_inferior_registers): Likewise.
11742 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
11743 m68kbsd_store_inferior_registers): Likewise.
11744 * m68k-linux-nat.c (fetch_register, store_register,
11745 m68k_linux_fetch_inferior_registers,
11746 m68k_linux_store_inferior_registers): Likewise.
11747 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
11748 m88kbsd_store_inferior_registers): Likewise.
11749 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
11750 mips_fbsd_store_inferior_registers): Likewise.
11751 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
11752 mips64_linux_regsets_store_registers): Likewise.
11753 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
11754 mipsnbsd_store_inferior_registers): Likewise.
11755 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
11756 mips64obsd_store_inferior_registers): Likewise.
11757 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
11758 Likewise.
11759 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
11760 ppcfbsd_store_inferior_registers): Likewise.
11761 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
11762 ppc_linux_store_inferior_registers): Likewise.
11763 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
11764 ppcnbsd_store_inferior_registers): Likewise.
11765 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
11766 ppcobsd_store_registers): Likewise.
11767 * procfs.c (procfs_fetch_registers, procfs_store_registers):
11768 Likewise.
11769 * ravenscar-thread.c (ravenscar_fetch_registers,
11770 ravenscar_store_registers, ravenscar_prepare_to_store):
11771 Likewise.
11772 * record-btrace.c (record_btrace_fetch_registers,
11773 record_btrace_store_registers, record_btrace_prepare_to_store):
11774 Likewise.
11775 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
11776 Lookup inferior using ptid from regcache, instead of
11777 current_inferior.
11778 * remote.c (remote_fetch_registers, remote_store_registers): Use
11779 ptid from regcache.
11780 * rs6000-nat.c (fetch_register, store_register): Likewise.
11781 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
11782 s390_linux_store_inferior_registers): Likewise.
11783 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
11784 shnbsd_store_inferior_registers): Likewise.
11785 * sol-thread.c (sol_thread_fetch_registers,
11786 sol_thread_store_registers): Likewise.
11787 * sparc-nat.c (sparc_fetch_inferior_registers,
11788 sparc_store_inferior_registers): Likewise.
11789 * tilegx-linux-nat.c (fetch_inferior_registers,
11790 store_inferior_registers): Likewise.
11791 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
11792 vaxbsd_store_inferior_registers): Likewise.
11793 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
11794 store_xtregs): Likewise.
11795
c0f55cc6
AV
117962017-03-20 Artemiy Volkov <artemiyv@acm.org>
11797
11798 PR gdb/14441
11799 * NEWS: Mention support for rvalue references in GDB and python.
11800 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
11801 supports both lvalue and rvalue references.
11802
15c0a2a9
AV
118032017-03-20 Artemiy Volkov <artemiyv@acm.org>
11804
11805 PR gdb/14441
11806 * gdbtypes.c (rank_one_type): Implement overloading
11807 resolution rules regarding rvalue references.
11808
aa006118
AV
118092017-03-20 Artemiy Volkov <artemiyv@acm.org>
11810
11811 PR gdb/14441
11812 * aarch64-tdep.c (aarch64_type_align)
11813 (aarch64_extract_return_value, aarch64_store_return_value): Change
11814 lvalue reference type checks to general reference type checks.
11815 * amd64-tdep.c (amd64_classify): Likewise.
11816 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
11817 Likewise.
11818 * arm-tdep.c (arm_type_align, arm_extract_return_value)
11819 (arm_store_return_value): Likewise.
11820 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
11821 * c-typeprint.c (c_print_type): Likewise.
11822 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
11823 (cplus_number_of_children, cplus_describe_child): Likewise.
11824 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
11825 * completer.c (expression_completer): Likewise.
11826 * cp-support.c (make_symbol_overload_list_adl_namespace):
11827 Likewise.
11828 * darwin-nat-info.c (info_mach_region_command): Likewise.
11829 * dwarf2loc.c (entry_data_value_coerce_ref)
11830 (value_of_dwarf_reg_entry): Likewise.
11831 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
11832 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
11833 Likewise.
11834 * findvar.c (extract_typed_address, store_typed_address):
11835 Likewise.
11836 * gdbtypes.c (rank_one_type): Likewise.
11837 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
11838 * infcall.c (value_arg_coerce): Likewise.
11839 * language.c (pointer_type): Likewise.
11840 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
11841 Likewise.
11842 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
11843 * mn10300-tdep.c (mn10300_type_align): Likewise.
11844 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
11845 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
11846 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
11847 Likewise.
11848 * printcmd.c (print_formatted, x_command): Likewise.
11849 * python/py-type.c (typy_get_composite, typy_template_argument):
11850 Likewise.
11851 * python/py-value.c (valpy_referenced_value)
11852 (valpy_get_dynamic_type, value_has_field): Likewise.
11853 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
11854 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
11855 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
11856 * spu-tdep.c (spu_scalar_value_p): Likewise.
11857 * symtab.c (lookup_symbol_aux): Likewise.
11858 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
11859 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
11860 Likewise.
11861 * valops.c (value_cast_pointers, value_cast)
11862 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
11863 (value_struct_elt, value_struct_elt_bitpos)
11864 (value_find_oload_method_list, find_overload_match)
11865 (value_rtti_indirect_type): Likewise.
11866 * valprint.c (val_print_scalar_type_p, generic_val_print):
11867 Likewise.
11868 * value.c (value_actual_type, value_as_address, unpack_long)
11869 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
11870 (coerce_ref): Likewise.
11871 * varobj.c (varobj_get_value_type): Likewise.
11872
3fcf899d
AV
118732017-03-20 Artemiy Volkov <artemiyv@acm.org>
11874
11875 PR gdb/14441
11876 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
11877 table of constants.
11878 * python/lib/gdb/command/explore.py: Support exploring values
11879 of rvalue reference types.
11880 * python/lib/gdb/types.py: Implement get_basic_type() for
11881 rvalue reference types.
11882 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
11883 constant.
11884 * python/py-value.c (valpy_getitem): Add an rvalue reference
11885 check.
11886 (valpy_reference_value): Add new parameter "refcode".
11887 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
11888 New wrappers for valpy_reference_value().
11889 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
11890 (gdbpy_invoke_xmethod): Likewise.
11891
4297a3f0
AV
118922017-03-20 Artemiy Volkov <artemiyv@acm.org>
11893
11894 PR gdb/14441
11895 * dwarf2read.c (process_die, read_type_die_1): Handle the
11896 DW_TAG_rvalue_reference_type DIE.
11897 (read_tag_reference_type): Add new parameter "refcode".
11898
e1cb3213
AV
118992017-03-20 Artemiy Volkov <artemiyv@acm.org>
11900
11901 PR gdb/14441
11902 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
11903 (c_type_print_modifier, c_type_print_varspec_suffix)
11904 (c_type_print_base): Support printing rvalue reference types.
11905 * c-valprint.c (c_val_print, c_value_print): Support printing
11906 rvalue reference values.
11907
e4347c89
AV
119082017-03-20 Artemiy Volkov <artemiyv@acm.org>
11909
11910 PR gdb/14441
11911 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
11912 typename.
11913 * cp-support.c (replace_typedefs): Handle
11914 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
11915 * python/py-type.c (typy_lookup_type): Likewise.
11916
53cc15f5
AV
119172017-03-20 Artemiy Volkov <artemiyv@acm.org>
11918
11919 PR gdb/14441
11920 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
11921 * parse.c (insert_type): Change assert statement.
11922 (follow_types): Handle rvalue reference types.
11923 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
11924 constant.
11925
a65cfae5
AV
119262017-03-20 Artemiy Volkov <artemiyv@acm.org>
11927
11928 PR gdb/14441
11929 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
11930 value_ref() interface.
11931 * c-valprint.c (c_value_print): Likewise.
11932 * infcall.c (value_arg_coerce): Likewise.
11933 * python/py-value.c (valpy_reference_value): Likewise.
11934 * valops.c (value_cast, value_reinterpret_cast)
11935 (value_dynamic_cast, typecmp): Likewise.
11936 (value_ref): Parameterize by kind of return value reference type.
11937 * value.h (value_ref): Add new parameter "refcode".
11938
3b224330
AV
119392017-03-20 Artemiy Volkov <artemiyv@acm.org>
11940
11941 PR gdb/14441
11942 * dwarf2read.c (read_tag_reference_type): Use
11943 lookup_lvalue_reference_type() instead of lookup_reference_type().
11944 * eval.c (evaluate_subexp_standard): Likewise.
11945 * f-exp.y: Likewise.
11946 * gdbtypes.c (make_reference_type, lookup_reference_type):
11947 Generalize with rvalue reference types.
11948 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
11949 convenience wrappers for lookup_reference_type().
11950 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
11951 reference kind parameter.
11952 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
11953 wrappers for lookup_reference_type().
11954 * guile/scm-type.c (gdbscm_type_reference): Use
11955 lookup_lvalue_reference_type() instead of lookup_reference_type().
11956 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
11957 * parse.c (follow_types): Likewise.
11958 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
11959 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
11960 Likewise.
11961 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
11962 (gdbpy_invoke_xmethod): Likewise.
11963 * stabsread.c: Provide extra argument to make_reference_type()
11964 call.
11965 * valops.c (value_ref, value_rtti_indirect_type): Use
11966 lookup_lvalue_reference_type() instead of lookup_reference_type().
11967
f9aeb8d4
AV
119682017-03-20 Artemiy Volkov <artemiyv@acm.org>
11969
11970 PR gdb/14441
11971 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
11972 (TYPE_IS_REFERENCE): New macro.
11973 (struct type): Add rvalue_reference_type field.
11974 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
11975
51457a05
MAL
119762017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
11977
11978 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
11979 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
11980 New function definition.
11981 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
11982 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
11983 New function declaration.
11984 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
11985 * mi/mi-interp.h: New file.
11986 * solib.c (info_sharedlibrary_command): Replace for loop with
11987 ALL_SO_LIBS macro
11988 * solib.h (update_solib_list): New function declaration.
11989 (so_list_head): Move macro.
11990 * solist.h (ALL_SO_LIBS): New macro.
11991
e696b3ad
MAL
119922017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
11993
11994 * infcmd.c (post_create_inferior): Remove unused argument in
11995 call to solib_add.
11996 * remote.c (remote_start_remote): Likewise.
11997 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
11998 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
11999 (enable_break): Likewise.
12000 * solib.c (update_solib_list): Remove unused target argument
12001 and its documentation.
12002 (solib_add): Remove unused target argument. Remove unused
12003 argument in call to update_solib_list.
12004 (info_sharedlibrary_command): Remove unused argument in call
12005 to update_solib_list.
12006 (sharedlibrary_command): Remove unused argument in call to
12007 solib_add.
12008 (handle_solib_event): Likewise.
12009 (reload_shared_libraries): Likewise.
12010 * solib.h (solib_add): Remove unused target argument.
12011
dcb84eda
AA
120122017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
12013
12014 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
12015 (s390_displaced_step_fixup): Cover relative branches with the
12016 default fixup handling. This fixes lack of support for some
12017 relative branch instructions.
12018
d9cb6cdc
SM
120192017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12020
12021 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
12022 ptid from regcache.
12023
1afaf9f4
SM
120242017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12025
12026 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
12027 i386_darwin_store_inferior_registers): Use ptid from regcache.
12028
aac12e24
SM
120292017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12030
12031 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
12032 i386bsd_store_inferior_registers): Use ptid from regcache.
12033
bbe1eef1
SM
120342017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12035
12036 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
12037 hppaobsd_store_registers): Use ptid from regcache.
12038
10799020
SM
120392017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12040
12041 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
12042 hppanbsd_store_registers): Use ptid from regcache.
12043
00204cf7
SM
120442017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12045
12046 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
12047 from regcache. Use get_ptrace_pid.
12048
11a33714
SM
120492017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12050
12051 * corelow.c (get_core_register_section): Use ptid from regcache,
12052 update doc.
12053
317cd492
SM
120542017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12055
12056 * bsd-uthread.c (bsd_uthread_fetch_registers,
12057 bsd_uthread_store_registers): Use ptid from regcache, set and
12058 restore inferior_ptid.
12059
9ac8a7c2
SM
120602017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12061
12062 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
12063 fetch_fp_regs, store_register, store_regs, store_fp_register,
12064 store_fp_regs): Use ptid from regcache.
12065
4ac4bb6a
SM
120662017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
12067
12068 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
12069 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
12070 store_vfp_regs): Use ptid from regcache.
12071
9bcbdca8
PA
120722017-03-17 Pedro Alves <palves@redhat.com>
12073
12074 PR remote/21188
12075 * ser-base.c (ser_base_wait_for): Add comment.
12076 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
12077 version.
12078 * ser-unix.c (hardwire_raw): Remove reference to
12079 scb->current_timeout.
12080 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
12081 (hardwire_ops): Install ser_base_readchar instead of
12082 hardwire_readchar.
12083 * serial.h (struct serial) <current_timeout, timeout_remaining>:
12084 Remove fields.
12085
7503099f
JG
120862017-03-17 Jonah Graham <jonah@kichwacoders.com>
12087
12088 PR gdb/19637
12089 * python/lib/gdb/printer/bound_registers.py: Add support for
12090 Python 3.
12091
7942e96e
AA
120922017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
12093
12094 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
12095 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
12096 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
12097 byte_offset to subobj_byte_offset. Fix the handling of
12098 DWARF_VALUE_STACK on big-endian targets when coming via an
12099 implicit pointer.
12100 (dwarf2_evaluate_loc_desc): Adjust call to
12101 dwarf2_evaluate_loc_desc_full.
12102 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
12103 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
12104
ba14f379
YQ
121052017-03-16 Yao Qi <yao.qi@linaro.org>
12106
12107 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
12108 and REVSH instructions.
12109
b121eeb9
YQ
121102017-03-16 Yao Qi <yao.qi@linaro.org>
12111
12112 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
12113 (arm_record_test): Declare.
12114 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
12115 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
12116 align with the manual.
12117 (thumb_record_misc): Adjust the code order to align with the
12118 manual.
12119 (thumb2_record_decode_insn_handler): Fix instruction matching.
12120 (instruction_reader_thumb): New class.
12121 (arm_record_test): New function.
12122
728a7913
YQ
121232017-03-16 Yao Qi <yao.qi@linaro.org>
12124
12125 * arm-tdep.c (abstract_memory_reader): New class.
12126 (instruction_reader): New class.
12127 (extract_arm_insn): Add argument 'reader'. Callers updated.
12128 (decode_insn): Likewise.
12129
34b43320
DE
121302017-03-16 Doug Evans <dje@google.com>
12131
a7c0469f
DE
12132 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
12133 member. Change type of TYPE member to SCM. All uses updated.
12134 (lsscm_make_lazy_string_smob): Add assert.
12135 (lsscm_make_lazy_string): Flag bad length values.
12136 (lsscm_elt_type): New function.
12137 (gdbscm_lazy_string_to_value): Rewrite to use
12138 lsscm_safe_lazy_string_to_value.
12139 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
12140 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
12141 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
12142 in incoming type.
12143 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
12144 * guile/scm-type.c (tyscm_scm_to_type): New function.
12145
121462017-03-15 Doug Evans <dje@google.com>
12147
34b43320
DE
12148 PR python/17728, python/18439, python/18779
12149 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
12150 member. Change type of TYPE member to PyObject *. All uses updated.
12151 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
12152 (gdbpy_create_lazy_string_object): Flag bad length values.
12153 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
12154 Handle typedefs in incoming type.
12155 (stpy_lazy_string_elt_type): New function.
12156 (gdbpy_extract_lazy_string): Call it.
12157 * python/py-value.c (valpy_lazy_string): Flag bad length values.
12158 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
12159 typedefs in incoming type.
12160
a3a5fecc
DE
121612017-03-16 Doug Evans <dje@google.com>
12162
12163 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
12164 * guile/scm-type.c (tyscm_scm_to_type): New function.
12165
28f1c605
JW
121662017-03-16 Jiong Wang <jiong.wang@arm.com>
12167
12168 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
12169 "ULONGEST" for "skip".
12170
87c336f6
AA
121712017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
12172
12173 PR gdb/21220
12174 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
12175 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
12176 (inf_ptrace_peek_poke): ...here. New function. Now also loop
12177 over ptrace peek/poke until end of buffer or error.
12178
cf81cf60
SM
121792017-03-14 Simon Marchi <simon.marchi@ericsson.com>
12180
12181 * parse.c (length_of_subexp): Make static.
12182 * parser-defs.h (length_of_subexp): Remove.
12183
a379284a
AA
121842017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
12185
12186 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
12187 as well.
12188
8a6200ba
PA
121892017-03-14 Pedro Alves <palves@redhat.com>
12190
12191 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
12192 (main): Use std::unique_ptr. Remove calls to
12193 cp_demangled_name_parse_free.
12194
f79ec206
SM
121952017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12196
12197 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
12198 alphabsd_store_inferior_registers): Use regcache->ptid instead
12199 of inferior_ptid.
12200
edb5fb00
SM
122012017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12202
12203 * aix-thread.c (aix_thread_fetch_registers,
12204 aix_thread_store_registers): Use regcache->ptid instead of
12205 inferior_ptid.
12206
55119686
SM
122072017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12208
12209 * aarch64-linux-nat.c (fetch_gregs_from_thread,
12210 store_gregs_to_thread, fetch_fpregs_from_thread,
12211 store_fpregs_to_thread): Use regcache->ptid instead of
12212 inferior_ptid.
12213
6a06fbb7
SM
122142017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12215
12216 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
12217 amd64_linux_fetch_inferior_registers): Use regcache->ptid
12218 instead of inferior_ptid.
12219
c6386875
SM
122202017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12221
12222 * target.c (target_fetch_registers, target_store_registers): Add
12223 assert.
12224
ddaaf0fb
SM
122252017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12226
12227 * regcache.h (regcache_get_ptid): New function.
12228 * regcache.c (regcache_get_ptid): New function.
12229
b9da89d1 122302017-03-13 Mark Wielaard <mark@klomp.org>
12231
12232 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
12233
5f4d1085
KS
122342017-03-10 Keith Seitz <keiths@redhat.com>
12235
12236 PR c++/8218
12237 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
12238
c65d6b55
PA
122392017-03-08 Pedro Alves <palves@redhat.com>
12240
12241 PR gdb/18360
12242 * infrun.c (start_step_over, do_target_resume, resume)
12243 (restart_threads): Assert we're not resuming a thread that is
12244 meant to be stopped.
12245 (infrun_thread_stop_requested_callback): Delete.
12246 (infrun_thread_stop_requested): If the thread is internally
12247 stopped, queue a pending stop event and clear the thread's
12248 inline-frame state.
12249 (handle_stop_requested): New function.
12250 (handle_syscall_event, handle_inferior_event_1): Use
12251 handle_stop_requested.
12252 (handle_stop_requested): New function.
12253 (handle_signal_stop): Set the thread's stop_signal here instead of
12254 at caller.
12255 (finish_step_over): Clear step over info unconditionally.
12256 (handle_signal_stop): If the user had interrupted the event
12257 thread, consider the stop a random signal.
12258 (handle_signal_stop) <signal arrived while stepping over
12259 breakpoint>: Don't restart threads here.
12260 (stop_waiting): Don't clear step-over info here.
12261
15c22686
PA
122622017-03-08 Pedro Alves <palves@redhat.com>
12263
12264 PR 21206
12265 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
12266 goes to argument 2, not 1.
12267
6e5d74e7
PA
122682017-03-08 Pedro Alves <palves@redhat.com>
12269
12270 PR cli/21218
12271 * top.c (gdb_readline_wrapper): Avoid passing NULL to
12272 display_gdb_prompt.
12273 (command_line_input): Add comment.
12274
9753a2f6
PA
122752017-03-08 Pedro Alves <palves@redhat.com>
12276
12277 PR tui/21216
12278 * tui/tui-file.c (tui_file::write): New.
12279 * tui/tui-file.h (tui_file): Override "write".
12280 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
12281 factored out from ...
12282 (tui_puts): ... here.
12283 (tui_putc): Use them.
12284 (tui_write): New function.
12285 * tui/tui-io.h (tui_write): Declare.
12286
1672e0d9
SDJ
122872017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
12288
12289 * Makefile.in (SFILES): Replace "environ.c" with
12290 "common/environ.c".
12291 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
12292 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
12293 to...
12294 * common/environ.c: ... here.
12295 * environ.h: Moved to...
12296 * common/environ.h: ... here.
12297
f7bb4e3a
PB
122982017-03-07 Peter Bergner <bergner@vnet.ibm.com>
12299
12300 * gdbarch.sh (pstring_ptr): New static function.
12301 (gdbarch_disassembler_options): Use it.
12302 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
12303 not valid_disassembler_option->name.
12304 * gdbarch.c: Regenerate.
12305
e45ced6c
PB
123062017-03-07 Peter Bergner <bergner@vnet.ibm.com>
12307
12308 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
12309
5f6fd321
PA
123102017-03-07 Pedro Alves <palves@redhat.com>
12311
12312 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
12313
6dbb839a 123142017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
12315
12316 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
12317 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
12318 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 12319 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 12320
d274ecf4
SM
123212017-03-06 Simon Marchi <simon.marchi@ericsson.com>
12322
12323 * xtensa-linux-nat.c (fetch_gregs): Remove const.
12324
df97be55
SM
123252017-03-03 Simon Marchi <simon.marchi@ericsson.com>
12326
12327 * remote.c (remote_add_target_side_commands): Use range-based
12328 for loop.
12329
7d45f3df
YQ
123302017-03-03 Yao Qi <yao.qi@linaro.org>
12331
12332 PR gdb/21165
12333 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
12334 value is lazy.
12335 * valprint.c (common_val_print): Likewise.
12336
65b48a81
PB
123372017-02-28 Peter Bergner <bergner@vnet.ibm.com>
12338
12339 * NEWS: Mention new set/show disassembler-options commands.
12340 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
12341 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
12342 (prospective_options): New static variable.
12343 (gdb_disassembler::gdb_disassembler): Initialize
12344 m_di.disassembler_options.
12345 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
12346 (get_disassembler_options): New function.
12347 (set_disassembler_options): Likewise.
12348 (set_disassembler_options_sfunc): Likewise.
12349 (show_disassembler_options_sfunc): Likewise.
12350 (disassembler_options_completer): Likewise.
12351 (_initialize_disasm): Likewise.
12352 * disasm.h (get_disassembler_options): New prototype.
12353 (set_disassembler_options): Likewise.
12354 * gdbarch.sh (gdbarch_disassembler_options): New variable.
12355 (gdbarch_verify_disassembler_options): Likewise.
12356 * gdbarch.c: Regenerate.
12357 * gdbarch.h: Likewise.
12358 * arm-tdep.c (num_disassembly_options): Delete.
12359 (set_disassembly_style): Likewise.
12360 (arm_disassembler_options): New static variable.
12361 (set_disassembly_style_sfunc): Convert short style name into long
12362 option name. Call set_disassembler_options.
12363 (show_disassembly_style_sfunc): New function.
12364 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
12365 set_gdbarch_verify_disassembler_options.
12366 (_initialize_arm_tdep): Delete regnames variable and update callers.
12367 (arm_disassembler_options): Initialize.
12368 (disasm_options): New variable.
12369 (num_disassembly_options): Rename from this...
12370 (num_disassembly_styles): ...to this. Compute by scanning through
12371 disasm_options.
12372 (valid_disassembly_styles): Initialize using disasm_options.
12373 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
12374 set_arm_regname_option.
12375 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
12376 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
12377 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
12378 set_gdbarch_verify_disassembler_options.
12379 * s390-tdep.c (s390_disassembler_options): New static variable.
12380 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
12381 set_gdbarch_verify_disassembler_options.
12382
d538e36d
SM
123832017-02-27 Simon Marchi <simon.marchi@ericsson.com>
12384
12385 * remote.c (remote_add_target_side_condition): Remove "struct"
12386 keyword from range-based for loop.
12387
83621223
SM
123882017-02-27 Simon Marchi <simon.marchi@ericsson.com>
12389
12390 * remote.c (remote_add_target_side_condition): Use range-based
12391 for loop. Update comment.
12392
2123df0e
YQ
123932017-02-27 Yao Qi <yao.qi@linaro.org>
12394
12395 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
12396
8e368124
AH
123972017-02-26 Alan Hayward <alan.hayward@arm.com>
12398
12399 * regcache.c (regcache_raw_update): New function.
12400 (regcache_raw_read): Move code to regcache_raw_update.
12401 * regcache.h (regcache_raw_update): New declaration.
12402 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
12403
a49dd8dd
JK
124042017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
12405
12406 * dwarf2read.c (create_debug_type_hash_table): Initialize
12407 header.signature and header.type_offset_in_tu.
12408
34e4bae9
PA
124092017-02-24 Pedro Alves <palves@redhat.com>
12410
12411 * symtab.c (make_file_symbol_completion_list_1): Use
12412 add_symtab_completions.
12413
b0e4b369
AH
124142017-02-24 Alan Hayward <alan.hayward@arm.com>
12415
12416 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
12417
975c21ab
AH
124182017-02-24 Alan Hayward <alan.hayward@arm.com>
12419
12420 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
12421 I386_MAX_REGISTER_SIZE.
12422 (i386_pseudo_register_write): Likewise.
12423 (i386_process_record): Likewise.
12424 * i387-tdep.c (i387_supply_xsave): Likewise.
12425 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
12426 (store_register): Likewise.
12427
14bc53a8
PA
124282017-02-23 Pedro Alves <palves@redhat.com>
12429
12430 * ada-lang.c: Include "common/function-view.h".
12431 (ada_iterate_over_symbols): Adjust to use function_view as
12432 callback type.
12433 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
12434 (ada_make_symbol_completion_list): Use a lambda.
12435 (ada_exc_search_name_matches): Delete.
12436 (name_matches_regex): New.
12437 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
12438 * compile/compile-c-support.c: Include "common/function-view.h".
12439 (print_one_macro): Change prototype to accept a ui_file pointer.
12440 (write_macro_definitions): Use a lambda.
12441 * dwarf2read.c: Include "common/function-view.h".
12442 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
12443 (dw2_expand_symtabs_matching): Adjust to use function_view as
12444 callback type.
12445 * language.h: Include "common/function-view.h".
12446 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
12447 function_view as callback type.
12448 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
12449 * linespec.c: Include "common/function-view.h".
12450 (collect_info::add_symbol): New method.
12451 (struct symbol_and_data_callback, iterate_inline_only, struct
12452 symbol_matcher_data, iterate_name_matcher): Delete.
12453 (iterate_over_all_matching_symtabs): Adjust to use function_view
12454 as callback type and lambdas.
12455 (iterate_over_file_blocks): Adjust to use function_view as
12456 callback type.
12457 (decode_compound_collector): Now a class with private fields.
12458 (decode_compound_collector::release_symbols): New method.
12459 (collect_one_symbol): Rename to...
12460 (decode_compound_collector::operator()): ... this and adjust.
12461 (lookup_prefix_sym): decode_compound_collector construction bits
12462 move to decode_compound_collector ctor. Pass the
12463 decode_compound_collector object directly as callback. Remove
12464 cleanups and use decode_compound_collector::release_symbols
12465 instead.
12466 (symtab_collector): Now a class with private fields.
12467 (symtab_collector::release_symtabs): New method.
12468 (add_symtabs_to_list): Rename to...
12469 (symtab_collector::operator()): ... this and adjust.
12470 (collect_symtabs_from_filename): symtab_collector construction
12471 bits move to symtab_collector ctor. Pass the symtab_collector
12472 object directly as callback. Remove cleanups and use
12473 symtab_collector::release_symtabs instead.
12474 (collect_symbols): Delete.
12475 (add_matching_symbols_to_info): Use lambdas.
12476 * macrocmd.c (print_macro_callback): Delete.
12477 (info_macro_command): Use a lambda.
12478 (info_macros_command): Pass print_macro_definition as callable
12479 directly.
12480 (print_one_macro): Remove 'ignore' parameter.
12481 (macro_list_command): Adjust.
12482 * macrotab.c (macro_for_each_data::fn): Now a function_view.
12483 (macro_for_each_data::user_data): Delete field.
12484 (foreach_macro): Adjust to call the function_view.
12485 (macro_for_each): Adjust to use function_view as callback type.
12486 (foreach_macro_in_scope): Adjust to call the function_view.
12487 (macro_for_each_in_scope): Adjust to use function_view as callback
12488 type.
12489 * macrotab.h: Include "common/function-view.h".
12490 (macro_callback_fn): Declare a prototype instead of a pointer.
12491 Remove "user_data" parameter.
12492 (macro_for_each, macro_for_each_in_scope): Adjust to use
12493 function_view as callback type.
12494 * psymtab.c (partial_map_expand_apply)
12495 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
12496 Adjust to use function_view as callback type and to return bool.
12497 (psym_expand_symtabs_matching): Adjust to use function_view as
12498 callback types.
12499 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
12500 to use function_view as callback type and to return bool.
12501 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
12502 callback types.
12503 * symfile.c (expand_symtabs_matching): Adjust to use function_view
12504 as callback types.
12505 * symfile.h: Include "common/function-view.h".
12506 (expand_symtabs_file_matcher_ftype)
12507 (expand_symtabs_symbol_matcher_ftype)
12508 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
12509 return bool.
12510 (quick_symbol_functions::map_symtabs_matching_filename)
12511 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
12512 function_view as callback type and return bool.
12513 (expand_symtabs_matching): Adjust to use function_view as callback
12514 type.
12515 (maintenance_expand_name_matcher)
12516 (maintenance_expand_file_matcher): Delete.
12517 (maintenance_expand_symtabs): Use lambdas.
12518 * symtab.c (iterate_over_some_symtabs): Adjust to use
12519 function_view as callback types and return bool.
12520 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
12521 of a cleanup.
12522 (lookup_symtab_callback): Delete.
12523 (lookup_symtab): Use a lambda.
12524 (iterate_over_symbols): Adjust to use function_view as callback
12525 type.
12526 (struct search_symbols_data, search_symbols_file_matches)
12527 (search_symbols_name_matches): Delete.
12528 (search_symbols): Use a pair of lambdas.
12529 (struct add_name_data, add_macro_name, symbol_completion_matcher)
12530 (symtab_expansion_callback): Delete.
12531 (default_make_symbol_completion_list_break_on_1): Use lambdas.
12532 * symtab.h: Include "common/function-view.h".
12533 (iterate_over_some_symtabs): Adjust to use function_view as
12534 callback type and return bool.
12535 (iterate_over_symtabs): Adjust to use function_view as callback
12536 type.
12537 (symbol_found_callback_ftype): Remove 'data' parameter and return
12538 bool.
12539 (iterate_over_symbols): Adjust to use function_view as callback
12540 type.
12541
07e253aa
PA
125422017-02-23 Pedro Alves <palves@redhat.com>
12543
12544 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
12545 (%.o) <unittests/%.c>: New pattern.
12546 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
12547 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
12548 * common/function-view.h: New file.
12549 * unittests/function-view-selftests.c: New file.
12550 * configure: Regenerate.
12551
8eaf5320
SM
125522017-02-23 Simon Marchi <simon.marchi@ericsson.com>
12553
12554 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
12555 inferior_ptid.
12556 * go32-nat.c (go32_thread_alive): Likewise.
12557
38768751
YQ
125582017-02-23 Yao Qi <yao.qi@linaro.org>
12559
12560 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
12561 delete.
12562
0a8beaba
YQ
125632017-02-23 Yao Qi <yao.qi@linaro.org>
12564
12565 * varobj.c (varobj_clear_saved_item): Use delete instead of
12566 xfree.
12567 (update_dynamic_varobj_children): Likewise.
12568
58fdfd2c
JK
125692017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12570
12571 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
12572
1b90b139
SM
125732017-02-21 Simon Marchi <simon.marchi@ericsson.com>
12574
12575 * common/enum-flags.h (enum_flags::enum_flags): Initialize
12576 m_enum_value to 0 in default constructor.
12577
2039d74e
EBM
125782017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12579
12580 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
12581 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
12582 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
12583 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
12584 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
12585 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
12586 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
12587 IS_STORE_CONDITIONAL_INSN.
12588
7814882a
JK
125892017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12590
12591 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
12592
0ae60b63
JK
125932017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12594
12595 * NEWS (Changes since GDB 7.12): Add DWARF-5.
12596
0224619f
JK
125972017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12598
12599 * dwarf2read.c (skip_one_die, read_attribute_value)
12600 (dwarf2_const_value_attr, dump_die_shallow)
12601 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
12602 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
12603
0af92d60
JK
126042017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12605
12606 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
12607 (dwarf_parse_macro_header): Accept DWARF version 5.
12608 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
12609
216f72a1
JK
126102017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12611
12612 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
12613 DW_AT_GNU_*.
12614 * common/common-exceptions.h (enum errors): Likewise.
12615 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
12616 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
12617 (dwarf_expr_context::execute_stack_op): Likewise.
12618 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
12619 Likewise.
12620 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
12621 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12622 (show_entry_values_debug, call_site_to_target_addr)
12623 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
12624 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
12625 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
12626 (value_of_dwarf_block_entry, indirect_pieced_value)
12627 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
12628 (disassemble_dwarf_expression): Likewise.
12629 * dwarf2read.c (process_die, inherit_abstract_dies)
12630 (read_call_site_scope): Likewise.
12631 * gdbtypes.h (struct func_type, struct call_site_parameter)
12632 (struct call_site): Likewise.
12633 * stack.c (read_frame_arg): Likewise.
12634 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
12635
43988095
JK
126362017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12637
12638 * defs.h (read_unsigned_leb128): New declaration.
12639 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
12640 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
12641 (dwarf2_find_location_expression): Call also
12642 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
12643 * dwarf2loc.h (dwarf2_version): New declaration.
12644 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
12645 rnglists.
12646 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
12647 .debug_rnglists.
12648 (struct dwop_section_names): Add loclists_dwo.
12649 (dwop_section_names): Add .debug_loclists.dwo.
12650 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
12651 (struct dwarf2_per_cu_data): Add dwarf_version.
12652 (struct dwo_sections): Add loclists.
12653 (struct attr_abbrev): Add implicit_const.
12654 (read_indirect_line_string): New declaration.
12655 (read_unsigned_leb128): Delete declaration.
12656 (rcuh_kind): New definition.
12657 (read_and_check_comp_unit_head): Change parameter
12658 is_debug_types_section to section_kind.
12659 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
12660 (read_comp_unit_head): Change parameter abfd to section, add parameter
12661 section_kind. Handle DWARF-5.
12662 (error_check_comp_unit_head): Accept also DWARF version 5.
12663 (read_and_check_comp_unit_head): Change parameter
12664 is_debug_types_section to section_kind.
12665 (read_and_check_type_unit_head): Delete function.
12666 (read_abbrev_offset): Handle DWARF-5.
12667 (create_debug_type_hash_table): Add parameter section_kind. Process
12668 only DW_UT_type. Use signature and type_offset_in_tu from struct
12669 comp_unit_head.
12670 (create_debug_types_hash_table): Update create_debug_type_hash_table
12671 caller.
12672 (create_all_type_units): Call create_debug_type_hash_table.
12673 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
12674 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
12675 caller.
12676 (skip_one_die): Handle DW_FORM_implicit_const.
12677 (dwarf2_rnglists_process): New function.
12678 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
12679 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
12680 (read_attribute_value): Handle DW_FORM_implicit_const,
12681 DW_FORM_line_strp.
12682 (read_attribute): Handle DW_FORM_implicit_const.
12683 (read_indirect_string_at_offset_from): New function from
12684 read_indirect_string_at_offset.
12685 (read_indirect_string_at_offset): Call
12686 read_indirect_string_at_offset_from.
12687 (read_indirect_line_string_at_offset): New function.
12688 (read_indirect_string): New function comment.
12689 (read_indirect_line_string): New function.
12690 (read_unsigned_leb128): Make it global.
12691 (dwarf2_string_attr): Handle DWARF-5.
12692 (add_include_dir_stub, read_formatted_entries): New functions.
12693 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
12694 Handle DWARF-5.
12695 (per_cu_header_read_in): Update read_comp_unit_head caller.
12696 (dwarf2_version): New function.
12697 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
12698 rnglists.
12699 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
12700 fields.
12701
22d2f3ab
JK
127022017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12703
12704 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
12705
5f46c5a5
JK
127062017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12707
12708 * dwarf2read.c (dwarf2_ranges_process): New function from
12709 dwarf2_ranges_read.
12710 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
12711 dwarf2_ranges_process.
12712
78d4d2c5
JK
127132017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12714
12715 * dwarf2read.c (create_debug_type_hash_table): New function from
12716 create_debug_types_hash_table.
12717 (create_debug_types_hash_table): Call create_debug_type_hash_table.
12718 (create_all_type_units, open_and_init_dwo_file): Update
12719 create_debug_types_hash_table callers.
12720
1b076f25
SDJ
127212017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12722
12723 PR gdb/16188
12724 * fork-child.c (trace_start_error): Fix thinko. va_end should
12725 refer to 'ap', not 'args'.
12726
0db8980c
SDJ
127272017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12728 Pedro Alves <palves@redhat.com>
12729
12730 PR gdb/16188
12731 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
12732 calls succeeded.
12733 * fork-child.c (trace_start_error): New function.
12734 (trace_start_error_with_name): Likewise.
12735 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
12736 * inf-ptrace.c (inf_ptrace_me): Likewise.
12737 * inferior.h (trace_start_error): New prototype.
12738 (trace_start_error_with_name): Likewise.
12739
99e8a4f9
SDJ
127402017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
12741
12742 PR gdb/21164
12743 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
12744 NULL before using it.
12745 * symmisc.c (maintenance_print_symbols): Likewise.
12746 (maintenance_print_msymbols): Likewise.
12747
4e746bb6
TW
127482017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12749
12750 * NEWS: Add record Python bindings entry.
12751
127522017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12753
12754 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
12755 py-record-full.o.
12756 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
12757 * python/py-record-btrace.c, python/py-record-btrace.h,
12758 python/py-record-full.c, python/py-record-full.h: New file.
12759 * python/py-record.c: Add include for py-record-btrace.h and
12760 py-record-full.h.
12761 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
12762 recpy_instruction_history, recpy_function_call_history, recpy_begin,
12763 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
12764 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
12765 New definition.
12766 (gdbpy_initialize_btrace): New export.
12767 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
12768
127692017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12770
12771 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
12772 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
12773 * python/py-record.c: New file.
12774 * python/python-internal.h (gdbpy_start_recording,
12775 gdbpy_current_recording, gdpy_stop_recording,
12776 gdbpy_initialize_record): New export.
12777 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
12778 (python_GdbMethods): Add gdbpy_start_recording,
12779 gdbpy_current_recording and gdbpy_stop_recording.
12780
127812017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12782
12783 * record-btrace.c (record_btrace_record_method): New function.
12784 (init_record_btrace_ops): Initialize to_record_method.
12785 * record-full.c (record_full_record_method): New function.
12786 (init_record_full_ops, init_record_full_core_ops): Add
12787 record_full_record_method.
12788 * record.h (enum record_method): New enum.
12789 * target-debug.h (target_debug_print_enum_record_method: New define.
12790 * target-delegates.c: Regenerate.
12791 * target.c (target_record_method): New function.
12792 * target.h: Include record.h.
12793 (struct target_ops) <to_record_method>: New field.
12794 (target_record_method): New export.
12795
127962017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12797
12798 * record.h (record_start, record_stop): New export.
12799 * record.c (record_start, record_stop): New function.
12800
128012017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12802
12803 * btrace.c (btrace_fetch): Copy function call segments pointer
12804 into a vector.
12805 (btrace_clear): Clear the vector.
12806 (btrace_find_insn_by_number): Use binary search to find the correct
12807 function call segment.
12808 * btrace.h (brace_fun_p): New typedef.
12809 (struct btrace_thread_info) <functions>: New field.
12810
128112017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12812
12813 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
12814 * btrace.c (btrace_decode_error): ... here. New function.
12815 * btrace.h (btrace_decode_error): New export.
12816
128172017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12818
12819 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
12820 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
12821 btrace_find_insn_by_number): Remove special case for gaps.
12822 * btrace.h (btrace_insn_get_error): New export.
12823 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
12824 * record-btrace.c (btrace_insn_history): Print number for gaps.
12825 (record_btrace_info, record_btrace_goto): Handle gaps.
12826
3f77c769
TT
128272017-02-14 Tom Tromey <tom@tromey.com>
12828
12829 PR python/13598:
12830 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
12831 event.
12832 * python/py-evts.c (gdbpy_initialize_py_events): Add
12833 before_prompt registry.
12834 * python/py-events.h (events_object) <before_prompt>: New field.
12835
4c2c7ac6
MM
128362017-02-14 Markus Metzger <markus.t.metzger@intel.com>
12837
12838 * btrace.c (ftrace_new_switch): Preserve up link and flags.
12839
5cf30ebf
LM
128402017-02-13 Luis Machado <lgustavo@codesourcery.com>
12841
12842 * symfile (_initialize_symfile): Add usage text to the load command's
12843 help text.
12844
26a06916
SM
128452017-02-10 Simon Marchi <simon.marchi@ericsson.com>
12846
12847 * utils.c (defaulted_query): Don't query on secondary UIs.
12848
0b145e37
TT
128492017-02-10 Tom Tromey <tom@tromey.com>
12850
12851 * rust-lang.c (rust_get_disr_info): Remove unused variable.
12852
2d8365c4
TT
128532017-02-10 Tom Tromey <tom@tromey.com>
12854
12855 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
12856 "cleanup" local.
12857 * python/py-type.c (typy_legacy_template_argument): Remove
12858 unnecessary "cleanup" local.
12859
2bb8f231
TT
128602017-02-10 Tom Tromey <tom@tromey.com>
12861
12862 * python/python.c (do_start_initialization): New function, from
12863 _initialize_python.
12864 (_initialize_python): Call do_start_initialization.
12865 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
12866 goto.
12867
1bdfaf42
TT
128682017-02-10 Tom Tromey <tom@tromey.com>
12869
12870 * python/py-prettyprint.c (pretty_print_one_value): Use
12871 gdbpy_ref.
12872
88b6faea
TT
128732017-02-10 Tom Tromey <tom@tromey.com>
12874
12875 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
12876 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
12877 gdbpy_ref.
12878 * python/py-type.c (field_new): Use gdbpy_ref.
12879 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
12880 gdbpy_ref.
12881 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
12882 (py_free_pspace): Likewise.
12883 (pspace_to_pspace_object): Likewise.
12884 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
12885 (py_free_objfile): Likewise.
12886 (objfile_to_objfile_object): Likewise.
12887 * python/py-inferior.c (delete_thread_object): Use
12888 gdbpy_ref.
12889 (infpy_read_memory): Likewise.
12890 (py_free_inferior): Likewise.
12891 * python/py-evtregistry.c (create_eventregistry_object): Use
12892 gdbpy_ref.
12893 * python/py-event.c (create_event_object): Use gdbpy_ref.
12894
7780f186
TT
128952017-02-10 Tom Tromey <tom@tromey.com>
12896
12897 * python/py-ref.h (gdbpy_ref_policy): Now a template.
12898 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
12899 used.
12900 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
12901 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
12902 python/py-exitedevent.c, python/py-finishbreakpoint.c,
12903 python/py-framefilter.c, python/py-function.c,
12904 python/py-inferior.c, python/py-infevents.c,
12905 python/py-linetable.c, python/py-newobjfileevent.c,
12906 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
12907 python/py-signalevent.c, python/py-stopevent.c,
12908 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
12909 python/py-unwind.c, python/py-utils.c, python/py-value.c,
12910 python/py-varobj.c, python/py-xmethods.c, python/python.c,
12911 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
12912
d4b0bb18
TT
129132017-02-10 Tom Tromey <tom@tromey.com>
12914
12915 * ui-out.h (ui_out_emit_type): New class.
12916 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
12917 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
12918 and ui_out_emit_tuple.
12919 (enumerate_locals): Likewise.
12920 (py_mi_print_variables, py_print_locals, py_print_args): Use
12921 ui_out_emit_list.
12922 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
12923 ui_out_emit_list.
12924 * common/gdb_optional.h: New file.
12925
f67f945c
MG
129262017-02-10 Martin Galvan <martingalvan@sourceware.org>
12927
12928 * MAINTAINERS (Write After Approval): Update my e-mail address.
12929
18da0c51
MG
129302017-02-10 Martin Galvan <martingalvan@sourceware.org>
12931
12932 PR gdb/21122
12933 * breakpoint.c (_initialize_breakpoint): Update the help description
12934 of the 'commands' command to indicate that it takes a list argument.
12935
62c14536
SM
129362017-02-09 Simon Marchi <simon.marchi@ericsson.com>
12937
12938 * interps.c (current_interp_set_logging): Remove "return".
12939
ff6fa247
GB
129402017-02-09 Gary Benson <gbenson@redhat.com>
12941
12942 * symtab.c (add_symtab_completions): Prevent NULL pointer
12943 dereference.
12944
a474bd8e
PA
129452017-02-08 Pedro Alves <palves@redhat.com>
12946
12947 * interps.c (interp::interp): Remove reference to quiet_p.
12948 (interp_set): Make static. Remove dead "Switching to" output
12949 code.
12950 (interp_quiet_p, interp_set_quiet): Delete.
12951 (interpreter_exec_cmd): Don't set the interpreter quiet.
12952 * interps.h (interp_quiet_p): Make static.
12953 (class interp) <quiet_p>: Remove field
12954
3d7b173c
JG
129552017-02-08 Jerome Guitton <guitton@adacore.com>
12956
604c4576
JG
12957 * cli/cli-decode.c (find_command_name_length): Make it extern.
12958 * cli/cli-decode.h (find_command_name_length): Declare.
12959 * cli/cli-script.c (command_name_equals, line_first_arg):
12960 New functions.
12961 (process_next_line): Use cli-decode to parse command names.
12962 (build_command_line): Make args a constant pointer.
12963
129642017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 12965
3d7b173c
JG
12966 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
12967 Remove case-insensitive search.
12968
1291063d
JM
129692017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
12970
12971 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
12972 at the end of the line. Avoids an ARI warning.
12973
20b477a7
LM
129742017-02-06 Luis Machado <lgustavo@codesourcery.com>
12975
12976 * NEWS: Mention support for record/replay of Intel 64 rdrand and
12977 rdseed instructions.
12978 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
12979
3f7b46f2
IR
129802017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
12981
12982 PR tdep/20936
12983 Provide and use sparc32 and sparc64 target description XML files.
12984 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
12985 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
12986 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
12987 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
12988 * features/sparc/sparc32-solaris.xml: New file.
12989 * features/sparc/sparc64-solaris.xml: New file.
12990 * features/sparc/sparc32-solaris.c: Generated.
12991 * features/sparc/sparc64-solaris.c: Generated.
12992 * sparc-tdep.h: Account for differences in target descriptions.
12993 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
12994 (sparc32_register_type): Use target provided registers.
12995 (validate_tdesc_registers): New function.
12996 (sparc32_gdbarch_init): Use tdesc_has_registers.
12997 Set pseudoregister functions.
12998 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
12999 (sparc64_register_type): Use target provided registers.
13000 (sparc64_init_abi): Set pseudoregister functions.
13001
f0fd41c1
TT
130022017-02-03 Tom Tromey <tom@tromey.com>
13003
13004 PR rust/21097:
13005 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
13006 with a single member.
13007
d6f9b0fb
PA
130082017-02-03 Pedro Alves <palves@redhat.com>
13009
13010 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
13011 (cli_interp_base::~cli_interp_base): New.
13012 (cli_interp): New struct.
13013 (as_cli_interp): Cast the interp itself to cli_interp.
13014 (cli_interpreter_pre_command_loop): Rename to ...
13015 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
13016 parameter.
13017 (cli_interpreter_init): Rename to ...
13018 (cli_interp::init): ... this. Remove 'self' parameter. Use
13019 boolean. Make extern.
13020 (cli_interpreter_resume): Rename to ...
13021 (cli_interp::resume): ... this. Remove 'data' parameter. Make
13022 extern.
13023 (cli_interpreter_suspend): Rename to ...
13024 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
13025 extern.
13026 (cli_interpreter_exec): Rename to ...
13027 (cli_interp::exec): ... this. Remove 'data' parameter. Make
13028 extern.
13029 (cli_interpreter_supports_command_editing): Rename to ...
13030 (cli_interp_base::supports_command_editing): ... this. Remove
13031 'interp' parameter. Make extern.
13032 (cli_ui_out): Rename to ...
13033 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
13034 Make extern.
13035 (cli_set_logging): Rename to ...
13036 (cli_interp_base::set_logging): ... this. Remove 'interp'
13037 parameter. Make extern.
13038 (cli_interp_procs): Delete.
13039 (cli_interp_factory): Adjust to use "new".
13040 * cli/cli-interp.h: Include "interps.h".
13041 (struct cli_interp_base): New struct.
13042 * interps.c (struct interp): Delete. Fields moved to interps.h.
13043 (interp_new): Delete.
13044 (interp::interp, interp::~interp): New.
13045 (interp_set): Use bool, and return void. Assume the interpreter
13046 has suspend, init and resume methods, and that the all return
13047 void.
13048 (set_top_level_interpreter): interp_set returns void.
13049 (interp_ui_out): Adapt.
13050 (current_interp_set_logging): Adapt.
13051 (interp_data): Delete.
13052 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
13053 (interp_exec): Adapt.
13054 (top_level_interpreter_data): Delete.
13055 * interps.h (interp_init_ftype, interp_resume_ftype)
13056 (interp_suspend_ftype, interp_exec_ftype)
13057 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
13058 (class interp): New.
13059 (interp_new): Delete.
13060 (interp_set): Now returns void. Use bool.
13061 (interp_data, top_level_interpreter_data): Delete.
13062 * mi/mi-common.h: Include interps.h.
13063 (class mi_interp): Inherit from interp. Define a ctor. Declare
13064 init, resume, suspect, exec, interp_ui_out, set_logging and
13065 pre_command_loop methods.
13066 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
13067 (mi_interpreter_init): Rename to ...
13068 (mi_interp::init): ... this. Remove the 'interp' parameter, use
13069 bool, return void and make extern. Adjust.
13070 (mi_interpreter_resume): ... Rename to ...
13071 (mi_interp::resume): ... this. Remove the 'data' parameter,
13072 return void and make extern. Adjust.
13073 (mi_interpreter_suspend): ... Rename to ...
13074 (mi_interp::suspend): ... this. Remove the 'data' parameter,
13075 return void and make extern. Adjust.
13076 (mi_interpreter_exec): ... Rename to ...
13077 (mi_interp::exec): ... this. Remove the 'data' parameter and make
13078 extern. Adjust.
13079 (mi_interpreter_pre_command_loop): ... Rename to ...
13080 (mi_interp::pre_command_loop): ... this. Remove the 'self'
13081 parameter and make extern.
13082 (mi_on_normal_stop_1): Adjust.
13083 (mi_ui_out): Rename to ...
13084 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
13085 parameter and make extern. Adjust.
13086 (mi_set_logging): Rename to ...
13087 (mi_interp::set_logging): ... this. Remove the 'interp'
13088 parameter and make extern. Adjust.
13089 (mi_interp_procs): Delete.
13090 (mi_interp_factory): Adjust to use 'new'.
13091 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
13092 (mi_print_exception, mi_execute_command, mi_load_progress):
13093 Adjust.
13094 * tui/tui-interp.c (tui_interp): New class.
13095 (as_tui_interp): Return a tui_interp pointer.
13096 (tui_on_normal_stop, tui_on_signal_received)
13097 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
13098 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
13099 to use interp::interp_ui_out.
13100 (tui_init): Rename to ...
13101 (tui_interp::init): ... this. Remove the 'self' parameter, use
13102 bool, return void and make extern. Adjust.
13103 (tui_resume): Rename to ...
13104 (tui_interp::resume): ... this. Remove the 'data' parameter,
13105 return void and make extern. Adjust.
13106 (tui_suspend): Rename to ...
13107 (tui_interp::suspend): ... this. Remove the 'data' parameter,
13108 return void and make extern. Adjust.
13109 (tui_ui_out): Rename to ...
13110 (tui_interp::interp_ui_out): ... this. Remove the 'self'
13111 parameter, and make extern. Adjust.
13112 (tui_exec): Rename to ...
13113 (tui_interp::exec): ... this. Remove the 'data' parameter and
13114 make extern.
13115 (tui_interp_procs): Delete.
13116 (tui_interp_factory): Use "new".
13117
65c40c95
TT
131182017-02-02 Tom Tromey <tom@tromey.com>
13119
13120 * rust-exp.y (ends_raw_string, space_then_number)
13121 (rust_identifier_start_p): Return bool.
13122 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
13123 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
13124 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
13125 (rust_chartype_p): Return bool.
13126 (val_print_struct, rust_print_struct_def, rust_print_type):
13127 Update.
13128 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
13129 Return bool.
13130
b50f188d
TT
131312017-02-02 Tom Tromey <tom@tromey.com>
13132
13133 * rust-lang.c: Reindent.
13134
03c85b11
TT
131352017-02-02 Tom Tromey <tom@tromey.com>
13136
13137 * rust-lang.h (rust_crate_for_block): Update.
13138 * rust-lang.c (rust_crate_for_block): Return std::string.
13139 (rust_get_disr_info): Use std:;string, not
13140 gdb::unique_xmalloc_ptr.
13141 * rust-exp.y (crate_name): Update.
13142
9b6da501
PA
131432017-02-02 Pedro Alves <palves@redhat.com>
13144
13145 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
13146 field out of gdb_disassembler_test and make it static.
13147
ec4cb20b
PA
131482017-02-02 Pedro Alves <palves@redhat.com>
13149
13150 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
13151 mi1_interp and mi_interp fields.
13152
5be5dbf0
PA
131532017-02-02 Pedro Alves <palves@redhat.com>
13154
616268b6
PA
13155 * cli/cli-interp.c (struct saved_output_files, saved_output):
13156 Moved from cli/cli-logging.c.
13157 (cli_set_logging): New function.
13158 (cli_interp_procs): Install cli_set_logging.
13159 * cli/cli-interp.h (make_logging_output, cli_set_logging):
13160 Declare.
13161 * cli/cli-logging.c (struct saved_output_files, saved_output):
13162 Moved to cli/cli-interp.c.
13163 (pop_output_files): Don't save outputs here.
13164 (make_logging_output): New function.
13165 (handle_redirections): Don't build tee nor save previous outputs
13166 here.
13167 * interps.c (current_interp_set_logging): Change prototype.
13168 Assume there's always a set_logging_proc method installed.
13169 * interps.h (interp_set_logging_ftype): Change prototype.
13170 (current_interp_set_logging): Change prototype and adjust comment.
13171 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
13172 use make_logging_output.
13173 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
131742017-02-02 Pedro Alves <palves@redhat.com>
13175
5be5dbf0
PA
13176 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
13177 from ...
13178 (set_logging_overwrite): ... here.
13179 (logging_no_redirect_file): Delete.
13180 (set_logging_redirect): Don't handle redirection on the fly.
13181 Instead warn that "logging off" / "logging on" is necessary.
13182 (pop_output_files): Delete references to logging_no_redirect_file.
13183 (show_logging_command): Always speak in terms of what will happen
13184 once logging is reenabled.
13185
c99cc448
PA
131862017-02-02 Pedro Alves <palves@redhat.com>
13187
13188 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
13189
8b172ce7
PA
131902017-02-02 Pedro Alves <palves@redhat.com>
13191
13192 * disasm.c (gdb_pretty_print_insn): Rename to ...
13193 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
13194 Remove gdbarch parameter. Adapt to clear the object's buffers
13195 instead of allocating new buffers, and to print using the object's
13196 gdb_disassembler instead of calling gdb_print_insn.
13197 (dump_insns): Use gdb_pretty_print_disassembler.
13198 * disasm.h (gdb_pretty_print_insn): Delete declaration.
13199 (gdb_pretty_print_disassembler): New class.
13200 * record-btrace.c (btrace_insn_history): Use
13201 gdb_pretty_print_disassembler.
13202
d7e74731
PA
132032017-02-02 Pedro Alves <palves@redhat.com>
13204
13205 * ada-lang.c (type_as_string): Use string_file.
13206 * ada-valprint.c (ada_print_floating): Use string_file.
13207 * ada-varobj.c (ada_varobj_scalar_image)
13208 (ada_varobj_get_value_image): Use string_file.
13209 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
13210 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
13211 * breakpoint.c (update_inserted_breakpoint_locations)
13212 (insert_breakpoint_locations, reattach_breakpoints)
13213 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
13214 (print_it_watchpoint): Use string_file.
13215 (save_breakpoints): Use stdio_file.
13216 * c-exp.y (oper): Use string_file.
13217 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
13218 tee_file.
13219 (pop_output_files): Use delete.
13220 (handle_redirections): Use stdio_file and tee_file.
13221 * cli/cli-setshow.c (do_show_command): Use string_file.
13222 * compile/compile-c-support.c (c_compute_program): Use
13223 string_file.
13224 * compile/compile-c-symbols.c (generate_vla_size): Take a
13225 'string_file &' instead of a 'ui_file *'.
13226 (generate_c_for_for_one_variable): Take a 'string_file &' instead
13227 of a 'ui_file *'. Use string_file.
13228 (generate_c_for_variable_locations): Take a 'string_file &'
13229 instead of a 'ui_file *'.
13230 * compile/compile-internal.h (generate_c_for_for_one_variable):
13231 Take a 'string_file &' instead of a 'ui_file *'.
13232 * compile/compile-loc2c.c (push, pushf, unary, binary)
13233 (print_label, pushf_register_address, pushf_register)
13234 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
13235 'ui_file *'. Adjust.
13236 * compile/compile.c (compile_to_object): Use string_file.
13237 * compile/compile.h (compile_dwarf_expr_to_c)
13238 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
13239 'ui_file *'.
13240 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
13241 (replace_typedefs_qualified_name): Use string_file and
13242 obstack_copy0.
13243 * disasm.c (gdb_pretty_print_insn): Use string_file.
13244 (gdb_disassembly): Adjust reference the null_stream global.
13245 (do_ui_file_delete): Delete.
13246 (gdb_insn_length): Use null_stream.
13247 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
13248 * dwarf2loc.c (dwarf2_compile_property_to_c)
13249 (locexpr_generate_c_location, loclist_generate_c_location): Take a
13250 'string_file &' instead of a 'ui_file *'.
13251 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
13252 * dwarf2read.c (do_ui_file_peek_last): Delete.
13253 (dwarf2_compute_name): Use string_file.
13254 * event-top.c (gdb_setup_readline): Use stdio_file.
13255 * gdbarch.sh (verify_gdbarch): Use string_file.
13256 * gdbtypes.c (safe_parse_type): Use null_stream.
13257 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
13258 string_file.
13259 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
13260 'string_file *' instead of a 'ui_file *'.
13261 (gdbscm_arch_disassemble): Use string_file.
13262 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
13263 * guile/scm-ports.c (class ioscm_file_port): Now a class that
13264 inherits from ui_file.
13265 (ioscm_file_port_delete, ioscm_file_port_rewind)
13266 (ioscm_file_port_put): Delete.
13267 (ioscm_file_port_write): Rename to ...
13268 (ioscm_file_port::write): ... this. Remove file_port_magic
13269 checks.
13270 (ioscm_file_port_new): Delete.
13271 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
13272 ui_file_up.
13273 * guile/scm-type.c (tyscm_type_name): Use string_file.
13274 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
13275 Use string_file.
13276 * infcmd.c (print_return_value_1): Use string_file.
13277 * infrun.c (print_target_wait_results): Use string_file.
13278 * language.c (add_language): Use string_file.
13279 * location.c (explicit_to_string_internal): Use string_file.
13280 * main.c (captured_main_1): Use null_file.
13281 * maint.c (maintenance_print_architecture): Use stdio_file.
13282 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
13283 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
13284 event_channel>: Change type to mi_console_file pointer.
13285 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
13286 (mi_console_file_delete): Delete.
13287 (struct mi_console_file): Delete.
13288 (mi_console_file_magic): Delete.
13289 (mi_console_file_new): Delete.
13290 (mi_console_file::mi_console_file): New.
13291 (mi_console_file_delete): Delete.
13292 (mi_console_file_fputs): Delete.
13293 (mi_console_file::write): New.
13294 (mi_console_raw_packet): Delete.
13295 (mi_console_file::flush): New.
13296 (mi_console_file_flush): Delete.
13297 (mi_console_set_raw): Rename to ...
13298 (mi_console_file::set_raw): ... this.
13299 * mi/mi-console.h (class mi_console_file): New class.
13300 (mi_console_file_new, mi_console_set_raw): Delete.
13301 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
13302 (mi_set_logging): Use delete and tee_file. Adjust.
13303 * mi/mi-main.c (output_register): Use string_file.
13304 (mi_cmd_data_evaluate_expression): Use string_file.
13305 (mi_cmd_data_read_memory): Use string_file.
13306 (mi_cmd_execute, print_variable_or_computed): Use string_file.
13307 * mi/mi-out.c (mi_ui_out::main_stream): New.
13308 (mi_ui_out::rewind): Use main_stream and
13309 string_file.
13310 (mi_ui_out::put): Use main_stream and string_file.
13311 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
13312 Allocate a 'string_file' instead.
13313 (mi_out_new): Don't allocate a mem_fileopen stream here.
13314 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
13315 (mi_ui_out::main_stream): Declare method.
13316 * printcmd.c (eval_command): Use string_file.
13317 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
13318 * python/py-arch.c (archpy_disassemble): Use string_file.
13319 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
13320 * python/py-frame.c (frapy_str): Use string_file.
13321 * python/py-framefilter.c (py_print_type, py_print_single_arg):
13322 Use string_file.
13323 * python/py-type.c (typy_str): Use string_file.
13324 * python/py-unwind.c (unwind_infopy_str): Use string_file.
13325 * python/py-value.c (valpy_str): Use string_file.
13326 * record-btrace.c (btrace_insn_history): Use string_file.
13327 * regcache.c (regcache_print): Use stdio_file.
13328 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
13329 * remote.c (escape_buffer): Use string_file.
13330 * rust-lang.c (rust_get_disr_info): Use string_file.
13331 * serial.c (serial_open_ops_1): Use stdio_file.
13332 (do_serial_close): Use delete.
13333 * stack.c (print_frame_arg): Use string_file.
13334 (print_frame_args): Remove local mem_fileopen stream, not used.
13335 (print_frame): Use string_file.
13336 * symmisc.c (maintenance_print_symbols): Use stdio_file.
13337 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
13338 Take a 'string_file *' instead of a 'ui_file *'.
13339 * top.c (new_ui): Use stdio_file and stderr_file.
13340 (free_ui): Use delete.
13341 (execute_command_to_string): Use string_file.
13342 (quit_confirm): Use string_file.
13343 * tracepoint.c (collection_list::append_exp): Use string_file.
13344 * tui/tui-disasm.c (tui_disassemble): Use string_file.
13345 * tui/tui-file.c: Don't include "ui-file.h".
13346 (enum streamtype, struct tui_stream): Delete.
13347 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
13348 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
13349 (tui_file::tui_file): New method.
13350 (tui_file_fputs): Delete.
13351 (tui_file_get_strbuf): Delete.
13352 (tui_file::puts): New method.
13353 (tui_file_adjust_strbuf): Delete.
13354 (tui_file_flush): Delete.
13355 (tui_file::flush): New method.
13356 * tui/tui-file.h: Tweak intro comment.
13357 Include ui-file.h.
13358 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
13359 (tui_file_adjust_strbuf): Delete declarations.
13360 (class tui_file): New class.
13361 * tui/tui-io.c (tui_initialize_io): Use tui_file.
13362 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
13363 (tui_register_format): Use string_stream.
13364 * tui/tui-stack.c (tui_make_status_line): Use string_file.
13365 (tui_get_function_from_frame): Use string_file.
13366 * typeprint.c (type_to_string): Use string_file.
13367 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
13368 (null_stream): New global.
13369 (ui_file_delete): Delete.
13370 (ui_file::ui_file): New.
13371 (null_file_isatty): Delete.
13372 (ui_file::~ui_file): New.
13373 (null_file_rewind): Delete.
13374 (ui_file::printf): New.
13375 (null_file_put): Delete.
13376 (null_file_flush): Delete.
13377 (ui_file::putstr): New.
13378 (null_file_write): Delete.
13379 (ui_file::putstrn): New.
13380 (null_file_read): Delete.
13381 (ui_file::putc): New.
13382 (null_file_fputs): Delete.
13383 (null_file_write_async_safe): Delete.
13384 (ui_file::vprintf): New.
13385 (null_file_delete): Delete.
13386 (null_file::write): New.
13387 (null_file_fseek): Delete.
13388 (null_file::puts): New.
13389 (ui_file_data): Delete.
13390 (null_file::write_async_safe): New.
13391 (gdb_flush, ui_file_isatty): Adjust.
13392 (ui_file_put, ui_file_rewind): Delete.
13393 (ui_file_write): Adjust.
13394 (ui_file_write_for_put): Delete.
13395 (ui_file_write_async_safe, ui_file_read): Adjust.
13396 (ui_file_fseek): Delete.
13397 (fputs_unfiltered): Adjust.
13398 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
13399 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
13400 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
13401 (set_ui_file_data): Delete.
13402 (string_file::~string_file, string_file::write)
13403 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
13404 (do_ui_file_as_string, ui_file_as_string): Delete.
13405 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
13406 (struct mem_file): Delete.
13407 (mem_file_new): Delete.
13408 (stdio_file::stdio_file): New.
13409 (mem_file_delete): Delete.
13410 (stdio_file::stdio_file): New.
13411 (mem_fileopen): Delete.
13412 (stdio_file::~stdio_file): New.
13413 (mem_file_rewind): Delete.
13414 (stdio_file::set_stream): New.
13415 (mem_file_put): Delete.
13416 (stdio_file::open): New.
13417 (mem_file_write): Delete.
13418 (stdio_file_magic, struct stdio_file): Delete.
13419 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
13420 (stdio_file::flush): New.
13421 (stdio_file_read): Rename to ...
13422 (stdio_file::read): ... this. Adjust.
13423 (stdio_file_write): Rename to ...
13424 (stdio_file::write): ... this. Adjust.
13425 (stdio_file_write_async_safe): Rename to ...
13426 (stdio_file::write_async_safe) ... this. Adjust.
13427 (stdio_file_fputs): Rename to ...
13428 (stdio_file::puts) ... this. Adjust.
13429 (stdio_file_isatty): Delete.
13430 (stdio_file_fseek): Delete.
13431 (stdio_file::isatty): New.
13432 (stderr_file_write): Rename to ...
13433 (stderr_file::write) ... this. Adjust.
13434 (stderr_file_fputs): Rename to ...
13435 (stderr_file::puts) ... this. Adjust.
13436 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
13437 (stderr_file::stderr_file): New.
13438 (tee_file_magic): Delete.
13439 (struct tee_file): Delete.
13440 (tee_file::tee_file): New.
13441 (tee_file_new): Delete.
13442 (tee_file::~tee_file): New.
13443 (tee_file_delete): Delete.
13444 (tee_file_flush): Rename to ...
13445 (tee_file::flush): ... this. Adjust.
13446 (tee_file_write): Rename to ...
13447 (tee_file::write): ... this. Adjust.
13448 (tee_file::write_async_safe): New.
13449 (tee_file_fputs): Rename to ...
13450 (tee_file::puts): ... this. Adjust.
13451 (tee_file_isatty): Rename to ...
13452 (tee_file::isatty): ... this. Adjust.
13453 * ui-file.h (struct obstack, struct ui_file): Don't
13454 forward-declare.
13455 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
13456 (ui_file_write_ftype)
13457 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
13458 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
13459 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
13460 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
13461 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
13462 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
13463 (set_ui_file_fseek): Delete.
13464 (ui_file_data, ui_file_delete, ui_file_rewind)
13465 (struct ui_file): New.
13466 (ui_file_up): New.
13467 (class null_file): New.
13468 (null_stream): Declare.
13469 (ui_file_write_for_put, ui_file_put): Delete.
13470 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
13471 Delete.
13472 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
13473 (gdb_fopen, tee_file_new): Delete.
13474 (struct string_file): New.
13475 (struct stdio_file): New.
13476 (stdio_file_up): New.
13477 (struct stderr_file): New.
13478 (class tee_file): New.
13479 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
13480 of a 'ui_file *'. Adjust.
13481 * ui-out.h (class ui_out) <field_stream>: Likewise.
13482 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
13483 (null_stream): Delete.
13484 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
13485 Adjust.
13486 * utils.h (struct ui_file): Delete forward declaration..
13487 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
13488 (error_stream): Take a 'string_file &' instead of a
13489 'ui_file *'.
13490 * varobj.c (varobj_value_get_print_value): Use string_file.
13491 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
13492 * gdbarch.c: Regenerate.
13493
187808b0
PA
134942017-02-02 Pedro Alves <palves@redhat.com>
13495
13496 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
13497 (gdb_pretty_print_insn): ... this. Now a free function. Add back
13498 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
13499 Adjust to call gdb_print_insn instead of
13500 gdb_disassembler::print_insn.
13501 (dump_insns, do_mixed_source_and_assembly_deprecated)
13502 (do_mixed_source_and_assembly, do_assembly_only): Add back a
13503 'gdbarch' parameter. Remove gdb_disassembler parameter.
13504 (gdb_disassembly): Don't allocate a gdb_disassembler here.
13505 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
13506 declaration.
13507 (gdb_pretty_print_insn): Re-add declaration.
13508 * record-btrace.c (btrace_insn_history): Don't allocate a
13509 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
13510
7a8eb317
SM
135112017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
13512
13513 * disasm.h (gdb_disassembly): Remove file_string parameter.
13514 * disasm.c (gdb_disassembly): Likewise.
13515 * cli/cli-cmds.c (print_disassembly): Adapt.
13516 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
13517 * stack.c (do_gdb_disassembly): Likewise.
13518
7346ef59
AA
135192017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
13520
13521 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
13522 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
13523 targets. And if the implicit value is longer than needed, extract
13524 the first bytes instead of the "least significant" ones.
13525
cd4007e4
MM
135262017-02-01 Markus Metzger <markus.t.metzger@intel.com>
13527
13528 * btrace.c (btrace_enable): Do not call btrace_add_pc for
13529 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
13530 (btrace_fetch): Assert can_access_registers_ptid.
13531 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
13532 validate_registers_access.
13533
cf77c34e
MM
135342017-02-01 Markus Metzger <markus.t.metzger@intel.com>
13535
13536 * gdbthread.h (can_access_registers_ptid): New.
13537 * thread.c (can_access_registers_ptid): New.
13538
be85ce7d
PA
135392017-02-01 Pedro Alves <palves@redhat.com>
13540
13541 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
13542
29b0b251
PA
135432017-01-31 Pedro Alves <palves@redhat.com>
13544
13545 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
13546 Fix typos.
13547
289b5b24
PA
135482017-01-31 Pedro Alves <palves@redhat.com>
13549
13550 * stack.c (print_frame_args): Remove local mem_fileopen stream,
13551 not used.
13552
b47413b4
PA
135532017-01-31 Pedro Alves <palves@redhat.com>
13554
13555 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
13556
60adb36c
PA
135572017-01-31 Pedro Alves <palves@redhat.com>
13558
13559 * common/scoped_restore.h
13560 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
13561 change the value's parameter type to T2.
13562 (make_scoped_restore): Likewise.
13563
2735833d
WT
135642017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13565 Richard Henderson <rth@redhat.com>
13566
13567 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
13568 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
13569 GS_BASE for older kernels.
13570 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
13571 GS_BASE for older kernels.
13572 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
13573 and GS_BASE to the offset table.
13574 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
13575 system register group.
13576 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
13577 for older kernels.
13578 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
13579 amd64 ABI.
13580 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
13581 AMD64_GSBASE_REGNUM.
13582 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
13583 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
13584 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
13585 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
13586 i386/64bit-segments.xml in those rules.
13587 * features/i386/64bit-segments.xml: New file.
13588 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
13589 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
13590 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
13591 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
13592 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
13593 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
13594 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
13595 * features/i386/amd64-avx-linux.c: Regenerated.
13596 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
13597 * features/i386/amd64-avx-mpx.c: Regenerated.
13598 * features/i386/amd64-avx512-linux.c: Regenerated.
13599 * features/i386/amd64-linux.c: Regenerated.
13600 * features/i386/amd64-mpx-linux.c: Regenerated.
13601 * features/i386/i386-avx-mpx-linux.c: Regenerated.
13602 * features/i386/i386-avx-mpx.c: Regenerated.
13603 * features/i386/x32-avx-linux.c: Regenerated.
13604 * features/i386/x32-avx512-linux.c: Regenerated.
13605 * regformats/i386/amd64-avx-linux.dat: Regenerated.
13606 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
13607 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
13608 * regformats/i386/amd64-linux.dat: Regenerated.
13609 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
13610 * regformats/i386/x32-avx-linux.dat: Regenerated.
13611 * regformats/i386/x32-avx512-linux.dat: Regenerated.
13612 * regformats/i386/x32-linux.dat: Regenerated.
13613
8884e97e
WT
136142017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13615
13616 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
13617 Set to AMD64_NUM_REGS.
13618
7005d26a
WT
136192017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13620
13621 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
13622 that checks validity of a register number.
13623
4bd2e1b2
KC
136242017-01-27 Kees Cook <keescook@google.com>
13625
13626 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
13627 fetch_fpregs if target has fpa registers.
13628 (arm_linux_store_inferior_registers): Call store_fpregs if target
13629 has fpa registers.
13630
7cf1de6c
AA
136312017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
13632
13633 * cris-tdep.c (cris_gdbarch_init): Remove check for
13634 info.byte_order and force it to BFD_ENDIAN_LITTLE.
13635
874a1c8c
AT
136362017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
13637
13638 * corelow.c (get_core_register_section): Check for regset
13639 existence before checking for REGSET_VARIABLE_SIZE.
13640
d8b49cf0
YQ
136412017-01-26 Yao Qi <yao.qi@linaro.org>
13642 Pedro Alves <palves@redhat.com>
13643
13644 PR gdb/20939
13645 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
13646 call memory_error, save memaddr instead.
13647 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
13648 negative, cal memory_error.
13649 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
13650
658ca58c
YQ
136512017-01-26 Yao Qi <yao.qi@linaro.org>
13652
13653 * disasm-selftests.c (memory_error_test): New function.
13654 (_initialize_disasm_selftests): Register memory_error_test.
13655
79843d45
YQ
136562017-01-26 Yao Qi <yao.qi@linaro.org>
13657
13658 * Makefile.in (SFILES): Add disasm-selftests.c and
13659 selftest-arch.c.
13660 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
13661 * disasm-selftests.c: New file.
13662 * selftest-arch.c: New file.
13663 * selftest-arch.h: New file.
13664
8cafda32
YQ
136652017-01-26 Yao Qi <yao.qi@linaro.org>
13666
13667 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
13668 to bfd_arch_mep. Don't return 0 if section is not
13669 found. Call print_insn_mep.
13670
e47ad6c0
YQ
136712017-01-26 Pedro Alves <palves@redhat.com>
13672 Yao Qi <yao.qi@linaro.org>
13673
13674 * arm-tdep.c: Include "disasm.h".
13675 (gdb_print_insn_arm): Update code to get gdbarch.
13676 * disasm.c (dis_asm_read_memory): Change it to
13677 gdb_disassembler::dis_asm_read_memory.
13678 (dis_asm_memory_error): Likewise.
13679 (dis_asm_print_address): Likewise.
13680 (gdb_pretty_print_insn): Change it to
13681 gdb_disassembler::pretty_print_insn.
13682 (dump_insns): Add one argument gdb_disassemlber. All
13683 callers updated.
13684 (do_mixed_source_and_assembly_deprecated): Likewise.
13685 (do_mixed_source_and_assembly): Likewise.
13686 (do_assembly_only): Likewise.
13687 (gdb_disassembler::gdb_disassembler): New.
13688 (gdb_disassembler::print_insn): New.
13689 * disasm.h (class gdb_disassembler): New.
13690 (gdb_pretty_print_insn): Remove declaration.
13691 (gdb_disassemble_info): Likewise.
13692 * guile/scm-disasm.c (class gdbscm_disassembler): New.
13693 (gdbscm_disasm_read_memory_worker): Update.
13694 (gdbscm_disasm_read_memory): Update.
13695 (gdbscm_disasm_memory_error): Remove.
13696 (gdbscm_disasm_print_address): Remove.
13697 (gdbscm_disassembler::gdbscm_disassembler): New.
13698 (gdbscm_print_insn_from_port): Update.
13699 * mips-tdep.c: Include disasm.h.
13700 (gdb_print_insn_mips): Update code to get gdbarch.
13701 * record-btrace.c (btrace_insn_history): Update.
13702 * spu-tdep.c: Include disasm.h.
13703 (struct spu_dis_asm_data): Remove.
13704 (struct spu_dis_asm_info): New.
13705 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
13706 SPU id.
13707 (gdb_print_insn_spu): Cast disassemble_info to
13708 spu_dis_asm_info.
13709
80d75874
YQ
137102017-01-26 Yao Qi <yao.qi@linaro.org>
13711
13712 * disasm.c (do_ui_file_delete): Delete.
13713 (gdb_insn_length): Move code creating stream to ...
13714 * utils.c (null_stream): ... here. New function.
13715 * utils.h (null_stream): Declare.
13716
60685cd0
SM
137172017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13718
13719 * python/py-inferior.c (find_thread_object): Return directly
13720 from the loop. Remove "found" variable.
13721
eb1cdb62
JB
137222017-01-21 Joel Brobecker <brobecker@adacore.com>
13723
13724 GDB 7.12.1 released.
13725
b1ce6568
SM
137262017-01-20 Simon Marchi <simon.marchi@ericsson.com>
13727
13728 * python/py-function.c (fnpy_call): Reorder declarations to have
13729 the gdbpy_enter object declared first.
13730 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
13731
6f8b0407
SM
137322017-01-20 Simon Marchi <simon.marchi@ericsson.com>
13733
fec93fb1 13734 PR python/21068
6f8b0407
SM
13735 * python/python-internal.h (PyMem_RawMalloc): Define for
13736 Python < 3.4.
13737 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
13738 PyMem_RawMalloc instead of PyMem_Malloc.
13739
78cbbba8
LM
137402017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
13741 Luis Machado <lgustavo@codesourcery.com>
13742
13743 * NEWS (New commands): Mention flash-erase.
13744 (New MI commands): Mention target-flash-erase.
13745 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
13746 command.
13747 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
13748 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
13749 * target.c (flash_erase_command): New function.
13750 (initialize_targets): Add new flash-erase command.
13751 * target.h (flash_erase_command): New declaration.
13752
2132fe85
JB
137532017-01-20 Joel Brobecker <brobecker@adacore.com>
13754
13755 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
13756 HAVE_SYS_PROCFS_H is defined.
13757
d1dff226
AH
137582017-01-18 Alan Hayward <alan.hayward@arm.com>
13759
13760 * remote.c (struct cached_reg): Change data into a pointer.
13761 * (stop_reply_dtr): Free data pointers before deleting vector.
13762 (process_stop_reply): Likewise.
13763 (remote_parse_stop_reply): Allocate space for data
13764
9890e433
AH
137652017-01-18 Alan Hayward <alan.hayward@arm.com>
13766
13767 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
13768 MAX_REGISTER_SIZE.
13769 (amd64_pseudo_register_read_value): Likewise.
13770 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
13771 (store_register_using_P): Likewise.
13772 * regcache.c (regcache_xfer_part): Likewise.
13773
7a36499a
IR
137742017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
13775
13776 Split real and pseudo registers.
13777 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
13778 (sparc32_pseudo_regnum): New enum.
13779 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
13780 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
13781 (SPARC32_CP0_REGISTERS): New macro.
13782 (sparc32_pseudo_register_name): New function.
13783 (sparc32_register_name): Use sparc32_pseudo_register_name.
13784 (sparc32_pseudo_register_type): New function.
13785 (sparc32_register_type): Use sparc32_pseudo_register_type.
13786 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
13787 pseudo register numbers.
13788 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
13789 (SPARC64_CP0_REGISTERS): New macro.
13790 (sparc64_pseudo_register_name): New function.
13791 (sparc64_register_name): Use sparc64_pseudo_register_name.
13792 (sparc64_pseudo_register_type): New function.
13793 (sparc64_register_type): Use sparc64_pseudo_register_type.
13794 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
13795 pseudo register numbers.
13796 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
13797 sparc64_store_arguments): Handle pseudo register numbers.
13798
6f8976bf
YQ
137992017-01-13 Yao Qi <yao.qi@linaro.org>
13800
13801 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
13802 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
13803 output.
13804 (getpkt_or_notif_sane_1): Likewise.
13805
e4241ace
YQ
138062017-01-13 Yao Qi <yao.qi@linaro.org>
13807
13808 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
13809 of CC. Pass "-x c++-header" instead of "-x c".
13810
3015c064
SM
138112017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13812
13813 * remote.c (remote_can_async_p): Update comment.
13814
fde1b17d
SM
138152017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13816
13817 * linux-nat.c (linux_nat_can_async_p): Update comment.
13818
ca1ca08b
SM
138192017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13820
13821 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
13822
4ad2da73
SM
138232017-01-11 Simon Marchi <simon.marchi@ericsson.com>
13824
13825 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
13826
c8b23b3f
TT
138272017-01-10 Tom Tromey <tom@tromey.com>
13828
13829 * python/py-type.c (typy_legacy_template_argument): Update.
13830 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
13831 ~demangle_parse_info): Declare new members.
13832 (cp_demangled_name_to_comp): Return unique_ptr.
13833 (cp_demangled_name_parse_free)
13834 (make_cleanup_cp_demangled_name_parse_free)
13835 (cp_new_demangle_parse_info): Remove.
13836 * cp-support.c (do_demangled_name_parse_free_cleanup)
13837 (make_cleanup_cp_demangled_name_parse_free): Remove.
13838 (inspect_type, cp_canonicalize_string_full)
13839 (cp_canonicalize_string): Update.
13840 (mangled_name_to_comp): Change return type.
13841 (cp_class_name_from_physname, method_name_from_physname)
13842 (cp_func_name, cp_remove_params): Update.
13843 * cp-name-parser.y (demangle_parse_info): New constructor, from
13844 cp_new_demangle_parse_info.
13845 (~demangle_parse_info): New destructor, from
13846 cp_demangled_name_parse_free.
13847 (cp_merge_demangle_parse_infos): Update.
13848 (cp_demangled_name_to_comp): Change return type.
13849
1ac32117
TT
138502017-01-10 Tom Tromey <tom@tromey.com>
13851
13852 * top.c (prevent_dont_repeat): Change return type.
13853 * python/python.c (execute_gdb_command): Use std::string.
13854 Update.
13855 * guile/guile.c (gdbscm_execute_gdb_command): Update.
13856 * command.h (prevent_dont_repeat): Change return type.
13857 * breakpoint.c (bpstat_do_actions_1): Update.
13858
0cf08227
TT
138592017-01-10 Tom Tromey <tom@tromey.com>
13860
13861 * value.h (scoped_value_mark::~scoped_value_mark): Call
13862 free_to_mark.
13863 (scoped_value_mark::free_to_mark): New method.
13864 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
13865 scoped_value_mark.
13866
eb115069
TT
138672017-01-10 Tom Tromey <tom@tromey.com>
13868
13869 * python/py-value.c (valpy_dereference, valpy_referenced_value)
13870 (valpy_reference_value, valpy_const_value, valpy_get_address)
13871 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
13872 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
13873 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
13874 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
13875 scoped_value_mark.
13876 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
13877 * value.h (scoped_value_mark): New class.
13878
906768f9
TT
138792017-01-10 Tom Tromey <tom@tromey.com>
13880
13881 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
13882 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
13883 * psymtab.c (discard_psymtabs_upto): Remove.
13884 (make_cleanup_discard_psymtabs): Remove.
13885 (struct psymtab_state): Remove.
13886
bef155c3
TT
138872017-01-10 Tom Tromey <tom@tromey.com>
13888
13889 * record-full.c (record_full_save_cleanups): Remove.
13890 (record_full_save): Use gdb::unlinker.
13891 * gcore.c (do_bfd_delete_cleanup): Remove.
13892 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
13893 cleanups.
13894 * dwarf2read.c (unlink_if_set): Remove.
13895 (write_psymtabs_to_index): Use gdb::unlinker.
13896 * common/gdb_unlinker.h: New file.
13897
192b62ce
TT
138982017-01-10 Tom Tromey <tom@tromey.com>
13899
13900 * windows-tdep.c (windows_xfer_shared_library): Update.
13901 * windows-nat.c (windows_make_so): Update.
13902 * utils.h (make_cleanup_bfd_unref): Remove.
13903 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
13904 * symfile.h (symfile_bfd_open)
13905 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
13906 * symfile.c (read_symbols, symbol_file_add)
13907 (separate_debug_file_exists): Update.
13908 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
13909 (generic_load, reread_symbols): Update.
13910 * symfile-mem.c (symbol_file_add_from_memory): Update.
13911 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
13912 (spu_symbol_file_add_from_memory): Update.
13913 * solist.h (struct target_so_ops) <bfd_open>: Return
13914 gdb_bfd_ref_ptr.
13915 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
13916 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
13917 gdb_bfd_ref_ptr.
13918 (solib_map_sections, reload_shared_libraries_1): Update.
13919 * solib-svr4.c (enable_break): Update.
13920 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
13921 * solib-frv.c (enable_break2): Update.
13922 * solib-dsbt.c (enable_break): Update.
13923 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
13924 gdb_bfd_ref_ptr.
13925 (darwin_solib_get_all_image_info_addr_at_init): Update.
13926 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
13927 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
13928 * record-full.c (record_full_save): Update.
13929 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
13930 * procfs.c (insert_dbx_link_bpt_in_file): Update.
13931 * minidebug.c (find_separate_debug_file_in_section): Return
13932 gdb_bfd_ref_ptr.
13933 * machoread.c (macho_add_oso_symfile): Change abfd to
13934 gdb_bfd_ref_ptr.
13935 (macho_symfile_read_all_oso): Update.
13936 (macho_check_dsym): Return gdb_bfd_ref_ptr.
13937 (macho_symfile_read): Update.
13938 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
13939 (jit_bfd_try_read_symtab): Update.
13940 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
13941 (gdb_bfd_openw, gdb_bfd_openr_iovec)
13942 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
13943 gdb_bfd_ref_ptr.
13944 (gdb_bfd_ref_policy): New struct.
13945 (gdb_bfd_ref_ptr): New typedef.
13946 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
13947 (gdb_bfd_openw, gdb_bfd_openr_iovec)
13948 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
13949 gdb_bfd_ref_ptr.
13950 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
13951 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
13952 (gcore_command): Update.
13953 * exec.c (exec_file_attach): Update.
13954 * elfread.c (elf_symfile_read): Update.
13955 * dwarf2read.c (dwarf2_get_dwz_file): Update.
13956 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
13957 (open_and_init_dwo_file): Update.
13958 (open_dwp_file): Return gdb_bfd_ref_ptr.
13959 (open_and_init_dwp_file): Update.
13960 * corelow.c (core_open): Update.
13961 * compile/compile-object-load.c (compile_object_load): Update.
13962 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
13963 * coffread.c (coff_symfile_read): Update.
13964 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
13965 gdb_bfd_ref_ptr. Rename.
13966 (dump_bfd_file, restore_command): Update.
13967 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
13968 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
13969 (find_separate_debug_file_by_buildid): Update.
13970
50315b21
TT
139712017-01-10 Tom Tromey <tom@tromey.com>
13972
13973 * common/gdb_ref_ptr.h: New file.
13974 * python/py-ref.h (struct gdbpy_ref_policy): New.
13975 (gdbpy_ref): Now a typedef.
13976
fc4007c9
TT
139772017-01-10 Tom Tromey <tom@tromey.com>
13978
13979 * utils.h (make_cleanup_htab_delete): Don't declare.
13980 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
13981 Remove.
13982 * linespec.c (decode_compound_collector): Add constructor,
13983 destructor.
13984 (lookup_prefix_sym): Remove cleanup.
13985 (symtab_collector): Add constructor, destructor.
13986 (collect_symtabs_from_filename): Remove cleanup.
13987 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
13988 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
13989 Use htab_up.
13990 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
13991 * dwarf2read.c (dw2_expand_symtabs_matching)
13992 (dw2_map_symbol_filenames, dwarf_decode_macros)
13993 (write_psymtabs_to_index): Use htab_up.
13994 * dwarf2loc.c (func_verify_no_selftailcall)
13995 (call_site_find_chain_1, func_verify_no_selftailcall)
13996 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
13997 std::vector, gdb::unique_xmalloc_ptr.
13998 (call_sitep): Remove typedef.
13999 (dwarf2_locexpr_baton_eval): Remove unused variable.
14000
8dbcee67
TT
140012017-01-10 Tom Tromey <tom@tromey.com>
14002
14003 * python/python-internal.h (make_cleanup_py_decref)
14004 (make_cleanup_py_xdecref): Don't declare.
14005 * python/py-utils.c (py_decref, make_cleanup_py_decref)
14006 (py_xdecref, make_cleanup_py_xdecref): Remove.
14007
13df46cc
TT
140082017-01-10 Tom Tromey <tom@tromey.com>
14009
14010 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
14011 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
14012
06fc9bf7
TT
140132017-01-10 Tom Tromey <tom@tromey.com>
14014
14015 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
14016
830a4934
TT
140172017-01-10 Tom Tromey <tom@tromey.com>
14018
14019 * python/py-utils.c (unicode_to_encoded_string)
14020 (python_string_to_target_string)
14021 (python_string_to_target_python_string)
14022 (python_string_to_host_string, gdbpy_obj_to_string)
14023 (get_addr_from_python): Use gdbpy_ref.
14024
4586d543
TT
140252017-01-10 Tom Tromey <tom@tromey.com>
14026
14027 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
14028 gdbpy_ref.
14029
59876f8f
TT
140302017-01-10 Tom Tromey <tom@tromey.com>
14031
14032 * python/python.c (eval_python_command, gdbpy_decode_line)
14033 (gdbpy_run_events, gdbpy_start_type_printers)
14034 (gdbpy_apply_type_printers): Use gdbpy_ref.
14035
97d83487
TT
140362017-01-10 Tom Tromey <tom@tromey.com>
14037
14038 * python/py-param.c (get_doc_string, compute_enum_values): Use
14039 gdbpy_ref.
14040
9205649a
TT
140412017-01-10 Tom Tromey <tom@tromey.com>
14042
14043 * python/py-inferior.c (find_thread_object, build_inferior_list):
14044 Use gdbpy_ref.
14045
74c49d45
TT
140462017-01-10 Tom Tromey <tom@tromey.com>
14047
14048 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
14049
16361ffb
TT
140502017-01-10 Tom Tromey <tom@tromey.com>
14051
14052 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
14053 gdbpy_ref.
14054
905f2cca
TT
140552017-01-10 Tom Tromey <tom@tromey.com>
14056
14057 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
14058 extra incref.
14059 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
14060 Use gdbpy_ref.
14061
64081434
TT
140622017-01-10 Tom Tromey <tom@tromey.com>
14063
14064 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
14065 gdbpy_ref.
14066
59e9e831
TT
140672017-01-10 Tom Tromey <tom@tromey.com>
14068
14069 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
14070 decref results of PyArg_ParseTupleAndKeywords.
14071
9de10f6d
TT
140722017-01-10 Tom Tromey <tom@tromey.com>
14073
14074 * python/python.c (python_run_simple_file): Use
14075 unique_xmalloc_ptr, gdbpy_ref.
14076
2bd5759d
TT
140772017-01-10 Tom Tromey <tom@tromey.com>
14078
14079 * python/py-prettyprint.c (print_stack_unless_memory_error)
14080 (print_string_repr, print_children): Use gdbpy_ref.
14081 (dummy_python_frame): New class.
14082 (dummy_python_frame::dummy_python_frame): Rename from
14083 push_dummy_python_frame.
14084 (py_restore_tstate): Remove.
14085
3b4e0e01
TT
140862017-01-10 Tom Tromey <tom@tromey.com>
14087
14088 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
14089
17a22718
TT
140902017-01-10 Tom Tromey <tom@tromey.com>
14091
14092 * python/python.c (ensure_python_env, restore_python_env):
14093 Remove.
14094 * python/python-internal.h (ensure_python_env): Don't declare.
14095 * varobj.h (varobj_ensure_python_env): Don't declare.
14096 * varobj.c (varobj_ensure_python_env): Remove.
14097
68cdc557
TT
140982017-01-10 Tom Tromey <tom@tromey.com>
14099
14100 * varobj.c (varobj_value_get_print_value): Use
14101 gdbpy_enter_varobj.
14102
1eba6383
TT
141032017-01-10 Tom Tromey <tom@tromey.com>
14104
14105 * python/py-prettyprint.c (print_string_repr, print_children):
14106 Update.
14107 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
14108 of "encoding".
14109 * varobj.c (varobj_value_get_print_value): Update.
14110 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
14111
bde7b3e3
TT
141122017-01-10 Tom Tromey <tom@tromey.com>
14113
14114 * varobj.c (varobj_get_display_hint)
14115 (dynamic_varobj_has_child_method, install_new_value_visualizer)
14116 (varobj_set_visualizer, free_variable): Use
14117 gdbpy_enter_varobj.
14118
a7785f8c
TT
141192017-01-10 Tom Tromey <tom@tromey.com>
14120
14121 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
14122 (do_finish_initialization): New function. Use gdbpy_ref.
14123 (gdbpy_finish_initialization): Use gdbpy_enter. Call
14124 do_finish_initialization.
14125
2865bfce
TT
141262017-01-10 Tom Tromey <tom@tromey.com>
14127
14128 * python/py-param.c (get_set_value, get_show_value): Use
14129 gdbpy_enter, gdbpy_ref.
14130
0e9dcc75
TT
141312017-01-10 Tom Tromey <tom@tromey.com>
14132
14133 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
14134
12a5cedd
TT
141352017-01-10 Tom Tromey <tom@tromey.com>
14136
14137 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
14138
788f2586
TT
141392017-01-10 Tom Tromey <tom@tromey.com>
14140
14141 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
14142 Use gdbpy_enter_varobj.
14143
6cd67bea
TT
141442017-01-10 Tom Tromey <tom@tromey.com>
14145
14146 * varobj.c (gdbpy_enter_varobj): New constructor.
14147 * python/python-internal.h (gdbpy_enter_varobj): New class.
14148 * python/py-varobj.c (py_varobj_get_iterator): Use
14149 gdbpy_enter_varobj.
14150
14b122bf
TT
141512017-01-10 Tom Tromey <tom@tromey.com>
14152
14153 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
14154 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
14155 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
14156 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
14157 unique_xmalloc_ptr.
14158 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
14159
bf1ca3b9
TT
141602017-01-10 Tom Tromey <tom@tromey.com>
14161
14162 * python/py-xmethods.c (invoke_match_method): Use
14163 gdbpy_ref.
14164
572a5524
TT
141652017-01-10 Tom Tromey <tom@tromey.com>
14166
14167 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
14168 gdbpy_enter, gdbpy_ref.
14169
396a78b6
TT
141702017-01-10 Tom Tromey <tom@tromey.com>
14171
14172 * python/python.c (python_interactive_command): Use gdbpy_enter.
14173
a88b13c7
TT
141742017-01-10 Tom Tromey <tom@tromey.com>
14175
14176 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
14177 gdbpy_ref.
14178
e9f0c363
TT
141792017-01-10 Tom Tromey <tom@tromey.com>
14180
14181 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
14182 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
14183
6349f452
TT
141842017-01-10 Tom Tromey <tom@tromey.com>
14185
14186 * utils.h (htab_deleter): New struct.
14187 (htab_up): New typedef.
14188 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
14189 gdbpy_enter, gdbpy_ref, htab_up.
14190
c0171de6
TT
141912017-01-10 Tom Tromey <tom@tromey.com>
14192
14193 * python/py-unwind.c (pending_frame_invalidate): Remove.
14194 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
14195
f18e226f
TT
141962017-01-10 Tom Tromey <tom@tromey.com>
14197
14198 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
14199 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
14200
c57af3f1
TT
142012017-01-10 Tom Tromey <tom@tromey.com>
14202
14203 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
14204
60e600ec
TT
142052017-01-10 Tom Tromey <tom@tromey.com>
14206
14207 * python/python.c (gdbpy_eval_from_control_command)
14208 (gdbpy_source_script, gdbpy_run_events)
14209 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
14210 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
14211 gdbpy_enter.
14212
bf7da5b0
TT
142132017-01-10 Tom Tromey <tom@tromey.com>
14214
14215 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
14216
2d38bced
TT
142172017-01-10 Tom Tromey <tom@tromey.com>
14218
14219 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
14220
07bc7329
TT
142212017-01-10 Tom Tromey <tom@tromey.com>
14222
14223 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
14224 (python_on_inferior_call_pre, python_on_inferior_call_post)
14225 (python_on_memory_change, python_on_register_change)
14226 (python_inferior_exit, python_new_objfile, add_thread_object)
14227 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
14228
6e7c365e
TT
142292017-01-10 Tom Tromey <tom@tromey.com>
14230
14231 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
14232 (bpfinishpy_handle_exit): Use gdbpy_enter.
14233
6ba0cd40
TT
142342017-01-10 Tom Tromey <tom@tromey.com>
14235
14236 * python/py-cmd.c (cmdpy_destroyer)
14237 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
14238 gdbpy_enter.
14239
de2dc875
TT
142402017-01-10 Tom Tromey <tom@tromey.com>
14241
14242 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
14243 gdbpy_enter.
14244 (gdbpy_breakpoint_has_cond): Likewise.
14245
4ecee2c4
TT
142462017-01-10 Tom Tromey <tom@tromey.com>
14247
14248 * python/python.c (gdbpy_enter): New constructor.
14249 (~gdbpy_enter): New destructor.
14250 (restore_python_env, ensure_python_env): Rewrite.
14251 * python/python-internal.h (gdbpy_enter): New class.
14252
37fce74f
TT
142532017-01-10 Tom Tromey <tom@tromey.com>
14254
14255 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
14256
53a0cca3
TT
142572017-01-10 Tom Tromey <tom@tromey.com>
14258
14259 * python/py-value.c (value_has_field, get_field_flag)
14260 (get_field_type, valpy_getitem, convert_value_from_python): Use
14261 gdbpy_ref.
14262
ff3724f5
TT
142632017-01-10 Tom Tromey <tom@tromey.com>
14264
14265 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
14266 gdbpy_ref.
14267
0700aea5
TT
142682017-01-10 Tom Tromey <tom@tromey.com>
14269
14270 * python/py-prettyprint.c (search_pp_list)
14271 (find_pretty_printer_from_objfiles)
14272 (find_pretty_printer_from_progspace)
14273 (find_pretty_printer_from_gdb, find_pretty_printer)
14274 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
14275 gdbpy_ref.
14276
1bb44c9f
TT
142772017-01-10 Tom Tromey <tom@tromey.com>
14278
14279 * python/py-param.c (call_doc_function): Use gdbpy_ref.
14280
87ce03fd
TT
142812017-01-10 Tom Tromey <tom@tromey.com>
14282
14283 * python/py-linetable.c (build_line_table_tuple_from_pcs)
14284 (ltpy_get_all_source_lines): Use gdbpy_ref.
14285
ee0a3fb8
TT
142862017-01-10 Tom Tromey <tom@tromey.com>
14287
14288 * python/py-framefilter.c (extract_sym, extract_value)
14289 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
14290 gdbpy_ref.
14291
bf2a52fa
TT
142922017-01-10 Tom Tromey <tom@tromey.com>
14293
14294 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
14295
f59fe7f8
TT
142962017-01-10 Tom Tromey <tom@tromey.com>
14297
14298 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
14299
80bd970a
TT
143002017-01-10 Tom Tromey <tom@tromey.com>
14301
14302 * python/py-function.c (convert_values_to_python, fnpy_init): Use
14303 gdbpy_ref.
14304
d1b3de2e
TT
143052017-01-10 Tom Tromey <tom@tromey.com>
14306
14307 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
14308
3bb43384
TT
143092017-01-10 Tom Tromey <tom@tromey.com>
14310
14311 * python/py-type.c (convert_field, make_fielditem, typy_fields)
14312 (typy_range): Use gdbpy_ref.
14313
abf5651e
TT
143142017-01-10 Tom Tromey <tom@tromey.com>
14315
14316 * python/py-threadevent.c (create_thread_event_object): Use
14317 gdbpy_ref.
14318 * python/py-stopevent.c (create_stop_event_object): Simplify.
14319 (emit_stop_event): Use gdbpy_ref.
14320 * python/py-signalevent.c (create_signal_event_object): Use
14321 gdbpy_ref.
14322 * python/py-newobjfileevent.c (create_new_objfile_event_object)
14323 (emit_new_objfile_event, create_clear_objfiles_event_object)
14324 (emit_clear_objfiles_event): Use gdbpy_ref.
14325 * python/py-infevents.c (create_inferior_call_event_object)
14326 (create_register_changed_event_object)
14327 (create_memory_changed_event_object, emit_inferior_call_event)
14328 (emit_memory_changed_event, emit_register_changed_event): Use
14329 gdbpy_ref.
14330 * python/py-exitedevent.c (create_exited_event_object)
14331 (emit_exited_event): Use gdbpy_ref.
14332 * python/py-event.h (evpy_emit_event): Remove
14333 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
14334 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
14335 * python/py-continueevent.c (emit_continue_event): Use
14336 gdbpy_ref.
14337 * python/py-breakpoint.c (gdbpy_breakpoint_created)
14338 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
14339 gdbpy_ref.
14340 * python/py-bpevent.c (create_breakpoint_event_object): Use
14341 gdbpy_ref.
14342
a68ff33e
TT
143432017-01-10 Tom Tromey <tom@tromey.com>
14344
14345 * python/py-ref.h: New file.
14346
7becfd03
SM
143472017-01-10 Simon Marchi <simon.marchi@ericsson.com>
14348
14349 * cli-out.c (cli_ui_out::do_redirect): Change return type to
14350 void.
14351 * cli-out.h (cli_ui_out::do_redirect): Likewise.
14352 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
14353 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
14354 * ui-out.c (ui_out::redirect): Likewise.
14355 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
14356 * cli/cli-logging.c (set_logging_redirect): Update call site of
14357 ui_out::redirect.
14358 (handle_redirections): Likewise.
14359 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
14360 * top.c (execute_command_to_string): Likewise.
14361 * utils.c (do_ui_out_redirect_pop): Likewise.
14362
df294654
SM
143632017-01-10 Simon Marchi <simon.marchi@ericsson.com>
14364
14365 * stack.c (_initialize_stack): Update "frame" command help message.
14366
f5e6296e
IB
143672017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
14368
14369 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
14370
0e2d6fa6
YQ
143712017-01-06 Yao Qi <yao.qi@linaro.org>
14372
14373 * x86-linux-nat.h: Include gdb_proc_service.h.
14374
44d6d3f9
YQ
143752017-01-06 Yao Qi <yao.qi@linaro.org>
14376
14377 * ser-base.h: Include serial.h.
14378
656731fe
YQ
143792017-01-06 Yao Qi <yao.qi@linaro.org>
14380
14381 * ppc-linux-tdep.h: Include ppc-tdep.h.
14382
1ca8f924
YQ
143832017-01-06 Yao Qi <yao.qi@linaro.org>
14384
14385 * nat/amd64-linux-siginfo.h: Include signal.h.
14386
bc3008c4
YQ
143872017-01-06 Yao Qi <yao.qi@linaro.org>
14388
14389 * nat/aarch64-linux-hw-point.h: Include break-common.h.
14390
66c80d03
YQ
143912017-01-06 Yao Qi <yao.qi@linaro.org>
14392
14393 * mi/mi-parse.h: Include mi-cmds.h.
14394
051d2dda
YQ
143952017-01-06 Yao Qi <yao.qi@linaro.org>
14396
14397 * inf-loop.c: Don't include "target.h".
14398 * inf-loop.h: Include it here.
14399
8018d34f
YQ
144002017-01-06 Yao Qi <yao.qi@linaro.org>
14401
14402 * dfp.h: Include "dboulest.h" and "expression.h".
14403
c0b8369c
YQ
144042017-01-06 Yao Qi <yao.qi@linaro.org>
14405
14406 * ax-gdb.h: Include "ax.h".
14407
ad5cba2a
YQ
144082017-01-06 Yao Qi <yao.qi@linaro.org>
14409
14410 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
14411 with nat/gdb_ptrace.h.
14412
1c33cd7f
YQ
144132017-01-05 Yao Qi <yao.qi@linaro.org>
14414
14415 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
14416 new line.
14417 (mips64_fbsd_sigframe_init): Likewise.
14418
c988ac1d
JB
144192017-01-04 John Baldwin <jhb@FreeBSD.org>
14420
14421 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
14422 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
14423
b268007c
JB
144242017-01-04 John Baldwin <jhb@FreeBSD.org>
14425
14426 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
14427 * NEWS: Mention new FreeBSD/mips native configuration.
14428 * config/mips/fbsd.mh: New file.
14429 * configure.host: Add mips*-*-freebsd*.
14430 * mips-fbsd-nat.c: New file.
14431
387360da
JB
144322017-01-04 John Baldwin <jhb@FreeBSD.org>
14433
14434 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
14435 (ALLDEPFILES): Add mips-fbsd-tdep.c.
14436 * NEWS: Mention new FreeBSD/mips target.
14437 * configure.tgt: Add mips*-*-freebsd*.
14438 * mips-fbsd-tdep.c: New file.
14439 * mips-fbsd-tdep.h: New file.
14440
2aaaf250
YQ
144412017-01-04 Yao Qi <yao.qi@linaro.org>
14442
14443 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
14444 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
14445
61baf725
JB
144462017-01-01 Joel Brobecker <brobecker@adacore.com>
14447
6dbb839a 14448 Update copyright year range in all GDB files.
61baf725 14449
c113e7ff 144502017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 14451
c113e7ff 14452 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 14453
c113e7ff 14454For older changes see ChangeLog-2016.
c906108c
SS
14455\f
14456Local Variables:
14457mode: change-log
14458left-margin: 8
14459fill-column: 74
14460version-control: never
57da7796 14461coding: utf-8
c906108c 14462End: