Replace really_free_pendings with a scoped_ class
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
33c7c59d
TT
12017-11-04 Tom Tromey <tom@tromey.com>
2
3 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
4 Use scoped_free_pendings.
5 * dbxread.c (dbx_symfile_read, dbx_psymtab_to_symtab_1): Use
6 scoped_free_pendings.
7 * xcoffread.c (xcoff_psymtab_to_symtab_1): Use scoped_free_pendings.
8 (xcoff_initial_scan): Likewise.
9 * buildsym.c (reset_symtab_globals): Update comment.
10 (scoped_free_pendings): Rename from really_free_pendings.
11 (prepare_for_building): Update comment.
12 (buildsym_init): Likewise.
13 * buildsym.h (class scoped_free_pendings): New class.
14 (really_free_pendings): Don't declare.
15
67fa57cf
UW
162017-11-03 Ulrich Weigand <uweigand@de.ibm.com>
17
18 * doublest.c (convert_doublest_to_floatformat): Fix uninitialized
19 output when converting a zero value to a special byteorder format.
20
f26ae15b
YQ
212017-11-02 Yao Qi <yao.qi@linaro.org>
22
23 * frame.c (do_frame_register_read): Remove aspace.
24 * jit.c (jit_frame_sniffer): Likwise.
25 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
26 * regcache.c (regcache::regcache): Pass nullptr.
27 (regcache_print): Caller updated.
28 * regcache.h (regcache::regcache): Remove one constructor
29 parameter aspace.
30
6c6e9412
YQ
312017-11-02 Yao Qi <yao.qi@linaro.org>
32
33 * regcache.h (regcache) <m_readonly_p>: Change it to const bool.
34
8b86c959
YQ
352017-11-02 Yao Qi <yao.qi@linaro.org>
36
37 * breakpoint.c (insert_single_step_breakpoints): Update.
38 * frame.c (struct frame_info) <aspace>: Add const.
39 (frame_save_as_regcache): Add const.
40 (get_frame_address_space): Return const address_space *.
41 * frame.h (get_frame_address_space): Update declaration.
42 * infrun.c (struct step_over_info) <aspace>: Add const.
43 (set_step_over_info): Make aspace const.
44 (displaced_step_prepare_throw): Change variable const.
45 (resume): Likewise.
46 (proceed): Likewise.
47 (adjust_pc_after_break): Likewise.
48 (save_waitstatus): Likewise.
49 (handle_signal_stop): Likewise.
50 (keep_going_pass_signal): Likewise.
51 * jit.c (jit_frame_sniffer): Add const.
52 * mips-tdep.c (mips_single_step_through_delay): Likewise.
53 * ppc-linux-tdep.c (ppu2spu_sniffer): Likewise.
54 * record-full.c (record_full_wait_1): Likewise.
55 * regcache.c (regcache::regcache): Change parameter to const.
56 * regcache.h (regcache::regcache): Likewise.
57 (regcache::aspace): Return const address_space *.
58 (regcache) <m_aspace>: Add const.
59
a01bda52
YQ
602017-11-02 Yao Qi <yao.qi@linaro.org>
61
62 * darwin-nat.c (cancel_breakpoint): Use regcache->aspace ().
63 * frame.c (create_sentinel_frame): Likewise.
64 * infrun.c (displaced_step_prepare_throw): Likewise.
65 (resume): Likewise.
66 (thread_still_needs_step_over_bp): Likewise.
67 (proceed): Likewise.
68 (do_target_wait): Likewise.
69 (adjust_pc_after_break): Likewise.
70 (handle_syscall_event): Likewise.
71 (save_waitstatus): Likewise.
72 (handle_inferior_event_1): Likewise.
73 (handle_signal_stop): Likewise.
74 (keep_going_pass_signal): Likewise.
75 * linux-nat.c (status_callback): Likewise.
76 (save_stop_reason): Likewise.
77 (resume_stopped_resumed_lwps): Likewise.
78 * record-full.c (record_full_exec_insn): Likewise.
79 (record_full_wait_1): Likewise.
80 * regcache.c (get_regcache_aspace): Remove.
81 * regcache.h (get_regcache_aspace): Remove.
82
d999647b
YQ
832017-11-02 Yao Qi <yao.qi@linaro.org>
84
85 * regcache.c (struct regcache_descr) <nr_raw_registers>: Remove.
86 (init_regcache_descr): Use gdbarch_num_regs.
87 (regcache::regcache): Likewise.
88 (regcache::get_register_status): Likewise.
89 (regcache::assert_raw_regnum): Likewise.
90 (regcache::cooked_read): Likewise.
91 (regcache::cooked_read_value): Likewise.
92 (regcache::cooked_write): Likewise.
93 (regcache::dump): Likewise.
94 (regcache::num_raw_registers): New method.
95 * regcache.h (class regcache) <num_raw_registers>: New.
96
4e888c28
YQ
972017-11-02 Yao Qi <yao.qi@linaro.org>
98
99 * regcache.c (regcache::assert_regnum): New method.
100 (regcache::invalidate): Call assert_regnum.
101 (regcache::raw_update): Likewise.
102 (regcache::raw_write): Likewise.
103 (regcache::raw_read_part): Likewise.
104 (regcache::raw_write_part): Likewise.
105 (regcache::raw_supply): Likewise.
106 (regcache::raw_supply_integer): Likewise.
107 (regcache::raw_supply_zeroed): Likewise.
108 (regcache::raw_collect): Likewise.
109 (regcache::raw_collect_integer): Likewise.
110 * regcache.h (regcache::assert_regnum): Declare.
111
2e1b49b3
YQ
1122017-11-02 Yao Qi <yao.qi@linaro.org>
113
114 * regcache.c (regcache::dump): Remove code.
115
6c5218df
YQ
1162017-11-02 Yao Qi <yao.qi@linaro.org>
117
118 * regcache.c (struct regcache_descr) <sizeof_raw_register_status>:
119 Remove.
120 <sizeof_cooked_register_status>: Remove.
121 (init_regcache_descr): Update.
122 (regcache::regcache): Use nr_cooked_registers and nr_raw_registers.
123 (regcache::save): Likewise.
124 (regcache::dump): Likewise.
125
dcc31d28
JB
1262017-11-01 James Bowman <james.bowman@ftdichip.com>
127
128 * ft32-tdep.c (ft32_fetch_instruction): New function.
129 (ft32_analyze_prologue): Use ft32_fetch_instruction().
130
3a87ae65
SM
1312017-10-31 Simon Marchi <simon.marchi@polymtl.ca>
132
133 * cli/cli-script.c (execute_control_command): Rename to ...
134 (execute_control_command_1): ... this.
135 (execute_control_command): New function.
136
09b847f3
SM
1372017-10-31 Simon Marchi <simon.marchi@ericsson.com>
138
139 * tracepoint.c (tfind_command): Remove const_cast.
140
f871c485
MG
1412017-10-30 Mike Gulick <mgulick@mathworks.com>
142
143 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to gdb.h.
144
b020ff80
SM
1452017-10-30 Simon Marchi <simon.marchi@ericsson.com>
146
147 * common/common-utils.h (in_inclusive_range): New function.
148 * arm-tdep.c (arm_record_extension_space): Use
149 in_inclusive_range.
150 (thumb_record_ld_st_reg_offset): Use in_inclusive_range.
151 * cris-tdep.c (cris_spec_reg_applicable): Use
152 in_inclusive_range.
153
1b81856f
PA
1542017-10-30 Pedro Alves <palves@redhat.com>
155 Simon Marchi <simon.marchi@ericsson.com>
156
157 * remote.c (remote_set_syscall_catchpoint): Build a std::string
158 instead of a gdb::unique_xmalloc_ptr, using string_appendf.
159
31b833b3
PA
1602017-10-30 Pedro Alves <palves@redhat.com>
161
162 * common/common-utils.c (string_appendf, string_vappendf): New
163 functions.
164 * common/common-utils.h (string_appendf, string_vappendf): New
165 declarations.
166 * unittests/common-utils-selftests.c (string_appendf_func)
167 (test_appendf_func, string_vappendf_wrapper, string_appendf_tests)
168 (string_vappendf_tests): New functions.
169 (_initialize_common_utils_selftests): Register "string_appendf" and
170 "string_vappendf tests".
171
4a250334
PA
1722017-10-30 Pedro Alves <palves@redhat.com>
173
174 * unittests/common-utils-selftests.c (format_func): New typedef.
175 (string_printf_tests, string_vprintf_tests): Tests factored out
176 and merged to ...
177 (test_format_func): ... this new function.
178 (string_printf_tests, string_vprintf_tests): Reimplement on top of
179 test_format_func.
180
16c5c17e
SM
1812017-10-29 Simon Marchi <simon.marchi@ericsson.com>
182
183 * darwin-nat.c: Remove include of gdb.h.
184
7ca51576
SM
1852017-10-29 Simon Marchi <simon.marchi@ericsson.com>
186
187 * xtensa-xtregs.c: Fix formatting issues.
188
c1342859
SM
1892017-10-29 Simon Marchi <simon.marchi@ericsson.com>
190
191 * xtensa-xtregs.c (xtensa_regtable_t) <name>: Constify.
192
484d8d36
MD
1932017-10-28 Maksim Dzabraev <dzabraew@gmail.com>
194
195 PR python/21213
196 * python/py-infthread.c (thpy_get_inferior): Increment reference
197 of inferior before returning it.
198
b5540b5f
SM
1992017-10-27 Simon Marchi <simon.marchi@ericsson.com>
200
201 * unittests/common-utils-selftests.c (format): Add
202 ATTRIBUTE_PRINTF.
203
5a9dcda1
SM
2042017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
205
206 * xml-syscall.c (struct syscall_desc): Add constructor.
207 <name>: Change type to std::string.
208 (syscall_desc_up): New typedef.
209 (syscall_desc_p): Remove typeder.
210 (DEF_VEC_P(syscall_desc_p)): Remove.
211 (struct syscall_group_desc): Add constructor.
212 <name>: Change type to std::string.
213 <syscalls>: Change type to std::vector.
214 (syscall_group_desc_up): New typedef.
215 (syscall_group_desc_p): Remove typedef.
216 (DEF_VEC_P(syscall_group_desc_p)): Remove.
217 (struct syscalls_info) <syscalls>: Change type to std::vector of
218 unique_ptr.
219 <groups>: Likewise.
220 <my_gdb_datadir>: Change type to std::string.
221 (syscalls_info_up): New typedef.
222 (allocate_syscalls_info): Remove.
223 (syscalls_info_free_syscalls_desc): Remove.
224 (syscalls_info_free_syscall_group_desc): Remove.
225 (free_syscalls_info): Remove.
226 (make_cleanup_free_syscalls_info): Remove.
227 (syscall_group_create_syscall_group_desc): Adjust.
228 (syscall_group_add_syscall): Adjust.
229 (syscall_create_syscall_desc): Adjust.
230 (syscall_parse_xml): Adjust, use unique_ptr instead of cleanup.
231 (init_syscalls_info): Adjust.
232 (syscall_group_get_group_by_name): Adjust.
233 (xml_get_syscall_number): Adjust.
234 (xml_get_syscall_name): Adjust.
235 (xml_list_of_syscalls): Adjust.
236 (xml_list_syscalls_by_group): Adjust.
237 (xml_list_of_groups): Adjust.
238
45461e0d
SM
2392017-10-27 Simon Marchi <simon.marchi@ericsson.com>
240
241 * probe.h: Don't include gdb_vecs.h.
242 (DEF_VEC_P (probe_p)): Remove.
243 (find_probes_in_objfile): Return an std::vector.
244 * probe.c (find_probes_in_objfile): Likewise.
245 * breakpoint.c (breakpoint_objfile_data)
246 <longjmp_probes>: Change type to std::vector.
247 <exception_probes>: Likewise.
248 (free_breakpoint_probes): Don't manually free vectors.
249 (create_longjmp_master_breakpoint): Adjust.
250 (create_exception_master_breakpoint): Adjust.
251 * solib-svr4.c (svr4_create_probe_breakpoints): Change
252 parameter type, adjust.
253 (svr4_create_solib_event_breakpoints): Adjust.
254
43dce439
SM
2552017-10-27 Simon Marchi <simon.marchi@ericsson.com>
256
257 * breakpoint.c (breakpoint_objfile_data): Initialize fields.
258 (get_breakpoint_objfile_data): Allocate breakpoint_objfile_data
259 with new.
260 (free_breakpoint_probes): Rename to ...
261 (free_breakpoint_objfile_data): ... this, and call delete on
262 bp_objfile_data..
263
6a1b9516
SM
2642017-10-27 Simon Marchi <simon.marchi@polymtl.ca>
265
266 * auto-load.c: Don't include gdb_vecs.h, include algorithm.
267 (loaded_script_ptr): Remove typedef.
268 (DEF_VEC_P (loaded_script_ptr)): Remove.
269 (struct collect_matching_scripts_data): Add constructor.
270 <scripts_p>: Change type to (pointer to) std::vector.
271 (collect_matching_scripts_data): Adjust.
272 (sort_scripts_by_name): Make suitable for std::sort.
273 (print_scripts): Don't sort vector, adjust to std::vector.
274 (auto_load_info_scripts): Sort vectors, adjust to std::vector.
275
593e3209
SM
2762017-10-27 Simon Marchi <simon.marchi@ericsson.com>
277
278 * symfile.c (filename_language): Make struct, not typedef. Add
279 constructor.
280 <ext>: Change type to std::string.
281 (DEF_VEC_O (filename_language)): Remove.
282 (filename_language_table): Change type to std::vector.
283 (add_filename_language): Adjust.
284 (set_ext_lang_command): Adjust.
285 (info_ext_lang_command): Adjust.
286 (deduce_language_from_filename): Adjust.
287 (class scoped_restore_filename_language_table): Remove.
288 (test_filename_language): Use scoped_restore.
289 (test_set_ext_lang_command): Use scoped_restore, adjust to
290 std::vector change.
291
32fa66eb
SM
2922017-10-27 Simon Marchi <simon.marchi@ericsson.com>
293
294 * symfile.c: Include selftest.h.
295 (class scoped_restore_filename_language_table): New.
296 (test_filename_language): New test.
297 (test_set_ext_lang_command): New test.
298 (_initialize_symfile): Register tests.
299
4a27f119
KS
3002017-10-27 Keith Seitz <keiths@redhat.com>
301
302 * breakpoint.c (print_breakpoint_location): Use the symbol saved
303 in the bp_location, falling back to find_pc_sect_function when
304 needed.
305 (add_location_to_breakpoint): Save sal->symbol.
306 * breakpoint.h (struct bp_location) <symbol>: New field.
307 * symtab.c (find_function_start_sal): Save the symbol into the SaL.
308 * symtab.h (struct symtab_and_line) <symbol>: New field.
309
a43f3893
PF
3102017-10-26 Patrick Frants <osscontribute@gmail.com>
311
7453e6b2 312 PR gdb/13669
a43f3893
PF
313 * cp-valprint.c (cp_print_value_fields): Use obstack_blank_fast
314 to rewind obstack.
315
23cc4e1b
PA
3162017-10-26 Pedro Alves <palves@redhat.com>
317
318 * remote.c (remote_async_terminal_ours_p): Delete.
319 (remote_open_1, remote_terminal_inferior, remote_terminal_ours):
320 Remove references to 'remote_async_terminal_ours_p'.
321
6abc18bb
YQ
3222017-10-26 Yao Qi <yao.qi@linaro.org>
323
324 * breakpoint.h (regular_breakpoint_inserted_here_p): Remove.
325
bd522513
YQ
3262017-10-26 Yao Qi <yao.qi@linaro.org>
327
328 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Make
329 aspace const.
330 * break-catch-syscall.c (breakpoint_hit_catch_syscall):
331 Likewise.
332 * breakpoint.c (bpstat_check_location): Remove cast.
333 (breakpoint_hit_catch_fork): Make aspce const.
334 (breakpoint_hit_catch_solib): Likewise.
335 (breakpoint_hit_catch_exec): Likewise.
336 (breakpoint_hit_ranged_breakpoint): Likewise.
337 (breakpoint_hit_watchpoint): Likewise.
338 (base_breakpoint_breakpoint_hit): Likewise.
339 (bkpt_breakpoint_hit): Likewise.
340 (dprintf_breakpoint_hit): Likewise.
341 (tracepoint_breakpoint_hit): Likewise.
342 * breakpoint.h (breakpoint_ops) <breakpoint_hit>: Likewise.
343
accd0bcd
YQ
3442017-10-26 Yao Qi <yao.qi@linaro.org>
345
346 * breakpoint.c (breakpoint_location_address_match): Change
347 "struct address_space *" to "const address_space".
348 (breakpoint_location_address_range_overlap): Likewise.
349 (breakpoint_here_p): Likewise.
350 (breakpoint_in_range_p): Likewise.
351 (moribund_breakpoint_here_p): Likewise.
352 (bp_location_inserted_here_p): Likewise.
353 (software_breakpoint_inserted_here_p): Likewise.
354 (hardware_breakpoint_inserted_here_p): Likewise.
355 (hardware_watchpoint_inserted_in_range): Likewise.
356 (bpstat_check_location): Likewise.
357 (bpstat_stop_status): Likewise.
358 (breakpoint_address_match): Likewise.
359 (breakpoint_address_match_range): Likewise.
360 (breakpoint_location_address_match): Likewise.
361 (breakpoint_location_address_range_overlap): Likewise.
362 (insert_single_step_breakpoint): Likewise.
363 (breakpoint_has_location_inserted_here): Likewise.
364 (single_step_breakpoint_inserted_here_p): Likewise.
365 (pc_at_non_inline_function): Likewise.
366 * breakpoint.h (bpstat_stop_status): Update declaration.
367 (breakpoint_here_p): Likewise.
368 (breakpoint_in_range_p): Likewise.
369 (moribund_breakpoint_here_p): Likewise.
370 (breakpoint_inserted_here_p): Likewise.
371 (software_breakpoint_inserted_here_p): Likewise.
372 (hardware_breakpoint_inserted_here_p): Likewise.
373 (breakpoint_has_location_inserted_here): Likewise.
374 (single_step_breakpoint_inserted_here_p): Likewise.
375 (hardware_watchpoint_inserted_in_range): Likewise.
376 (breakpoint_address_match): Likewise.
377 (insert_single_step_breakpoint): Likewise.
378 (pc_at_non_inline_function): Likewise.
379 * gdbthread.h (thread_has_single_step_breakpoint_here): Likewise.
380 * record.c (record_check_stopped_by_breakpoint): Likewise.
381 * record.h (record_check_stopped_by_breakpoint): Likewise.
382 * thread.c (thread_has_single_step_breakpoint_here): Likewise.
383
ac7936df
YQ
3842017-10-25 Yao Qi <yao.qi@linaro.org>
385
386 * aarch32-linux-nat.c (aarch32_gp_regcache_supply): Use
387 regcache->arch () instead get_regcache_arch.
388 * aarch64-fbsd-nat.c (aarch64_fbsd_fetch_inferior_registers):
389 Likewise.
390 (aarch64_fbsd_store_inferior_registers): Likewise.
391 * aarch64-linux-nat.c (fetch_gregs_from_thread): Likewise.
392 (store_gregs_to_thread): Likewise.
393 (fetch_fpregs_from_thread): Likewise.
394 (store_fpregs_to_thread): Likewise.
395 * aarch64-tdep.c (aarch64_extract_return_value): Likewise.
396 (aarch64_store_return_value): Likewise.
397 (aarch64_software_single_step): Likewise.
398 * aix-thread.c (aix_thread_wait): Likewise.
399 (supply_reg32): Likewise.
400 (supply_sprs64): Likewise.
401 (supply_sprs32): Likewise.
402 (fill_gprs64): Likewise.
403 (fill_gprs32): Likewise.
404 (fill_sprs64): Likewise.
405 (fill_sprs32): Likewise.
406 (store_regs_user_thread): Likewise.
407 (store_regs_kernel_thread): Likewise.
408 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
409 (alphabsd_store_inferior_registers): Likewise.
410 * alpha-tdep.c (alpha_extract_return_value): Likewise.
411 (alpha_store_return_value): Likewise.
412 (alpha_deal_with_atomic_sequence): Likewise.
413 (alpha_next_pc): Likewise.
414 (alpha_software_single_step): Likewise.
415 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
416 (amd64bsd_store_inferior_registers): Likewise.
417 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
418 Likewise.
419 (amd64_linux_store_inferior_registers): Likewise.
420 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
421 (amd64_collect_native_gregset): Likewise.
422 * amd64-obsd-tdep.c (amd64obsd_supply_uthread): Likewise.
423 (amd64obsd_collect_uthread): Likewise.
424 * amd64-tdep.c (amd64_supply_fpregset): Likewise.
425 (amd64_collect_fpregset): Likewise.
426 (amd64_supply_fxsave): Likewise.
427 (amd64_supply_xsave): Likewise.
428 (amd64_collect_fxsave): Likewise.
429 (amd64_collect_xsave): Likewise.
430 * arc-tdep.c (arc_write_pc): Likewise.
431 * arch-utils.c (default_skip_permanent_breakpoint): Likewise.
432 * arm-fbsd-nat.c (arm_fbsd_fetch_inferior_registers): Likewise.
433 (arm_fbsd_store_inferior_registers): Likewise.
434 * arm-linux-nat.c (fetch_vfp_regs): Likewise.
435 (store_vfp_regs): Likewise.
436 (arm_linux_fetch_inferior_registers): Likewise.
437 (arm_linux_store_inferior_registers): Likewise.
438 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
439 (arm_linux_sigreturn_next_pc): Likewise.
440 (arm_linux_get_next_pcs_syscall_next_pc): Likewise.
441 * arm-nbsd-nat.c (arm_supply_gregset): Likewise.
442 (fetch_register): Likewise.
443 (store_register): Likewise.
444 * arm-tdep.c (arm_is_thumb): Likewise.
445 (displaced_in_arm_mode): Likewise.
446 (bx_write_pc): Likewise.
447 (arm_get_next_pcs_addr_bits_remove): Likewise.
448 (arm_software_single_step): Likewise.
449 (arm_extract_return_value): Likewise.
450 (arm_store_return_value): Likewise.
451 (arm_write_pc): Likewise.
452 * bfin-tdep.c (bfin_extract_return_value): Likewise.
453 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
454 (bsd_uthread_store_registers): Likewise.
455 * core-regset.c (fetch_core_registers): Likewise.
456 * corelow.c (get_core_registers): Likewise.
457 * cris-tdep.c (cris_store_return_value): Likewise.
458 (cris_extract_return_value): Likewise.
459 (find_step_target): Likewise.
460 (find_step_target): Likewise.
461 (cris_software_single_step): Likewise.
462 * ctf.c (ctf_fetch_registers): Likewise.
463 * darwin-nat.c (cancel_breakpoint): Likewise.
464 * fbsd-tdep.c (fbsd_collect_thread_registers): Likewise.
465 * frv-tdep.c (frv_extract_return_value): Likewise.
466 * ft32-tdep.c (ft32_store_return_value): Likewise.
467 (ft32_extract_return_value): Likewise.
468 * go32-nat.c (fetch_register): Likewise.
469 (go32_fetch_registers): Likewise.
470 (go32_store_registers): Likewise.
471 (store_register): Likewise.
472 * h8300-tdep.c (h8300_extract_return_value): Likewise.
473 (h8300_store_return_value): Likewise.
474 * hppa-linux-nat.c (fetch_register): Likewise.
475 (store_register): Likewise.
476 (hppa_linux_fetch_inferior_registers): Likewise.
477 (hppa_linux_store_inferior_registers): Likewise.
478 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Likewise.
479 (i386_darwin_store_inferior_registers): Likewise.
480 * i386-gnu-nat.c (gnu_fetch_registers): Likewise.
481 (gnu_store_registers): Likewise.
482 * i386-linux-nat.c (fetch_register): Likewise.
483 (store_register): Likewise.
484 (supply_gregset): Likewise.
485 (fill_gregset): Likewise.
486 (i386_linux_fetch_inferior_registers): Likewise.
487 (i386_linux_store_inferior_registers): Likewise.
488 (i386_linux_resume): Likewise.
489 * i386-linux-tdep.c (i386_linux_get_syscall_number_from_regcache):
490 Likewise.
491 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
492 * i386-obsd-nat.c (i386obsd_supply_pcb): Likewise.
493 * i386-obsd-tdep.c (i386obsd_supply_uthread): Likewise.
494 (i386obsd_collect_uthread): Likewise.
495 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
496 (i386_supply_gregset): Likewise.
497 (i386_collect_gregset): Likewise.
498 (i386_supply_fpregset): Likewise.
499 (i386_collect_fpregset): Likewise.
500 (i386_mpx_bd_base): Likewise.
501 * i386-v4-nat.c (supply_fpregset): Likewise.
502 (fill_fpregset): Likewise.
503 * i387-tdep.c (i387_supply_fsave): Likewise.
504 (i387_collect_fsave): Likewise.
505 (i387_supply_fxsave): Likewise.
506 (i387_collect_fxsave): Likewise.
507 (i387_supply_xsave): Likewise.
508 (i387_collect_xsave): Likewise.
509 * ia64-linux-nat.c (ia64_linux_fetch_registers): Likewise.
510 (ia64_linux_store_registers): Likewise.
511 * ia64-tdep.c (ia64_access_rse_reg): Likewise.
512 (ia64_extract_return_value): Likewise.
513 (ia64_store_return_value): Likewise.
514 (find_func_descr): Likewise.
515 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
516 * inf-ptrace.c (inf_ptrace_fetch_registers): Likewise.
517 (inf_ptrace_store_registers): Likewise.
518 * infrun.c (use_displaced_stepping): Likewise.
519 (displaced_step_prepare_throw): Likewise.
520 (resume): Likewise.
521 (proceed): Likewise.
522 (do_target_wait): Likewise.
523 (adjust_pc_after_break): Likewise.
524 (handle_inferior_event_1): Likewise.
525 (handle_signal_stop): Likewise.
526 (save_infcall_suspend_state): Likewise.
527 (restore_infcall_suspend_state): Likewise.
528 * iq2000-tdep.c (iq2000_extract_return_value): Likewise.
529 * jit.c (jit_frame_prev_register): Likewise.
530 * linux-nat.c (save_stop_reason): Likewise.
531 (linux_nat_wait_1): Likewise.
532 (resume_stopped_resumed_lwps): Likewise.
533 * linux-record.c (record_linux_sockaddr): Likewise.
534 (record_linux_msghdr): Likewise.
535 (record_linux_system_call): Likewise.
536 * linux-tdep.c (linux_collect_thread_registers): Likewise.
537 * lm32-tdep.c (lm32_extract_return_value): Likewise.
538 (lm32_store_return_value): Likewise.
539 * m32c-tdep.c (m32c_read_flg): Likewise.
540 (m32c_pseudo_register_read): Likewise.
541 (m32c_pseudo_register_write): Likewise.
542 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Likewise.
543 (m32r_linux_collect_gregset): Likewise.
544 * m32r-tdep.c (m32r_store_return_value): Likewise.
545 (m32r_extract_return_value): Likewise.
546 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
547 (m68kbsd_collect_fpregset): Likewise.
548 * m68k-bsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
549 * m68k-linux-nat.c (fetch_register): Likewise.
550 (old_fetch_inferior_registers): Likewise.
551 (old_store_inferior_registers): Likewise.
552 (store_regs): Likewise.
553 * m68k-tdep.c (m68k_svr4_extract_return_value): Likewise.
554 (m68k_svr4_store_return_value): Likewise.
555 * m88k-tdep.c (m88k_store_arguments): Likewise.
556 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Likewise.
557 (mi_cmd_data_write_register_values): Likewise.
558 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers): Likewise.
559 (mips_fbsd_store_inferior_registers): Likewise.
560 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Likewise.
561 (mips_fbsd_supply_gregs): Likewise.
562 (mips_fbsd_collect_fpregs): Likewise.
563 (mips_fbsd_collect_gregs): Likewise.
564 (mips_fbsd_supply_fpregset): Likewise.
565 (mips_fbsd_collect_fpregset): Likewise.
566 (mips_fbsd_supply_gregset): Likewise.
567 (mips_fbsd_collect_gregset): Likewise.
568 * mips-linux-nat.c (supply_gregset): Likewise.
569 (fill_gregset): Likewise.
570 (supply_fpregset): Likewise.
571 (fill_fpregset): Likewise.
572 * mips-linux-tdep.c (mips_supply_gregset): Likewise.
573 (mips_fill_gregset): Likewise.
574 (mips_supply_fpregset): Likewise.
575 (mips_fill_fpregset): Likewise.
576 (mips64_supply_gregset): Likewise.
577 (micromips_linux_sigframe_validate): Likewise.
578 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
579 (mipsnbsd_fetch_inferior_registers): Likewise.
580 (mipsnbsd_store_inferior_registers): Likewise.
581 * mips-nbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
582 (mipsnbsd_supply_gregset): Likewise.
583 (mipsnbsd_iterate_over_regset_sections): Likewise.
584 (mipsnbsd_supply_reg): Likewise.
585 (mipsnbsd_supply_fpreg): Likewise.
586 * mips-tdep.c (mips_in_frame_stub): Likewise.
587 (mips_dummy_id): Likewise.
588 (is_octeon_bbit_op): Likewise.
589 (micromips_bc1_pc): Likewise.
590 (extended_mips16_next_pc): Likewise.
591 (mips16_next_pc): Likewise.
592 (deal_with_atomic_sequence): Likewise.
593 * moxie-tdep.c (moxie_process_readu): Likewise.
594 * nios2-tdep.c (nios2_get_next_pc): Likewise.
595 * nto-procfs.c (procfs_store_registers): Likewise.
596 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers): Likewise.
597 (ppcfbsd_store_inferior_registers): Likewise.
598 * ppc-linux-nat.c (fetch_vsx_register): Likewise.
599 (fetch_altivec_register): Likewise.
600 (get_spe_registers): Likewise.
601 (fetch_spe_register): Likewise.
602 (fetch_altivec_registers): Likewise.
603 (fetch_all_gp_regs): Likewise.
604 (fetch_all_fp_regs): Likewise.
605 (store_vsx_register): Likewise.
606 (store_altivec_register): Likewise.
607 (set_spe_registers): Likewise.
608 (store_spe_register): Likewise.
609 (store_altivec_registers): Likewise.
610 (store_all_gp_regs): Likewise.
611 (store_all_fp_regs): Likewise.
612 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
613 (ppc_linux_collect_gregset): Likewise.
614 (ppc_canonicalize_syscall): Likewise.
615 (ppc_linux_record_signal): Likewise.
616 (ppu2spu_prev_register): Likewise.
617 * ppc-nbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
618 * ppc-obsd-nat.c (ppcobsd_fetch_registers): Likewise.
619 (ppcobsd_store_registers): Likewise.
620 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_fetch_registers):
621 Likewise.
622 (ppc_ravenscar_generic_store_registers): Likewise.
623 * procfs.c (procfs_fetch_registers): Likewise.
624 (procfs_store_registers): Likewise.
625 * ravenscar-thread.c (ravenscar_fetch_registers): Likewise.
626 (ravenscar_store_registers): Likewise.
627 (ravenscar_prepare_to_store): Likewise.
628 * record-btrace.c (record_btrace_fetch_registers): Likewise.
629 * record-full.c (record_full_wait_1): Likewise.
630 (record_full_registers_change): Likewise.
631 (record_full_store_registers): Likewise.
632 (record_full_core_fetch_registers): Likewise.
633 (record_full_save): Likewise.
634 (record_full_goto_insn): Likewise.
635 * regcache.c (regcache_register_size): Likewise.
636 (get_regcache_arch): Remove.
637 (regcache_read_pc): Likewise.
638 * regcache.h (get_regcache_arch): Remove.
639 * remote-sim.c (gdbsim_fetch_register): Likewise.
640 (gdbsim_store_register): Likewise.
641 * remote.c (fetch_register_using_p): Likewise.
642 (send_g_packet): Likewise.
643 (remote_prepare_to_store): Likewise.
644 (store_registers_using_G): Likewise.
645 * reverse.c (save_bookmark_command): Likewise.
646 (goto_bookmark_command): Likewise.
647 * rs6000-aix-tdep.c (branch_dest): Likewise.
648 * rs6000-nat.c (rs6000_ptrace64): Likewise.
649 (fetch_register): Likewise.
650 * rs6000-tdep.c (ppc_supply_reg): Likewise.
651 (ppc_collect_reg): Likewise.
652 (ppc_collect_gregset): Likewise.
653 (ppc_collect_fpregset): Likewise.
654 (ppc_collect_vsxregset): Likewise.
655 (ppc_collect_vrregset): Likewise.
656 (ppc_displaced_step_hw_singlestep): Likewise.
657 (rs6000_pseudo_register_read): Likewise.
658 (rs6000_pseudo_register_write): Likewise.
659 * s390-linux-nat.c (supply_gregset): Likewise.
660 (fill_gregset): Likewise.
661 (s390_linux_fetch_inferior_registers): Likewise.
662 * s390-linux-tdep.c (s390_write_pc): Likewise.
663 (s390_software_single_step): Likewise.
664 (s390_all_but_pc_registers_record): Likewise.
665 (s390_linux_syscall_record): Likewise.
666 * sentinel-frame.c (sentinel_frame_prev_arch): Likewise.
667 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
668 (shnbsd_store_inferior_registers): Likewise.
669 * sh-tdep.c (sh_extract_return_value_nofpu): Likewise.
670 (sh_extract_return_value_fpu): Likewise.
671 (sh_store_return_value_nofpu): Likewise.
672 (sh_corefile_supply_regset): Likewise.
673 (sh_corefile_collect_regset): Likewise.
674 * sh64-tdep.c (sh64_extract_return_value): Likewise.
675 (sh64_store_return_value): Likewise.
676 * sparc-linux-tdep.c (sparc32_linux_collect_core_fpregset): Likewise.
677 * sparc-nat.c (sparc_fetch_inferior_registers): Likewise.
678 (sparc_store_inferior_registers): Likewise.
679 * sparc-ravenscar-thread.c (register_in_thread_descriptor_p): Likewise.
680 (sparc_ravenscar_prepare_to_store): Likewise.
681 * sparc-tdep.c (sparc32_store_arguments): Likewise.
682 (sparc_analyze_control_transfer): Likewise.
683 (sparc_step_trap): Likewise.
684 (sparc_software_single_step): Likewise.
685 (sparc32_gdbarch_init): Likewise.
686 (sparc_supply_rwindow): Likewise.
687 (sparc_collect_rwindow): Likewise.
688 * sparc64-linux-tdep.c (sparc64_linux_collect_core_fpregset): Likewise.
689 * sparc64-nbsd-nat.c (sparc64nbsd_supply_gregset): Likewise.
690 (sparc64nbsd_collect_gregset): Likewise.
691 (sparc64nbsd_supply_fpregset): Likewise.
692 (sparc64nbsd_collect_fpregset): Likewise.
693 * sparc64-tdep.c (sparc64_store_arguments): Likewise.
694 (sparc64_supply_gregset): Likewise.
695 (sparc64_collect_gregset): Likewise.
696 (sparc64_supply_fpregset): Likewise.
697 (sparc64_collect_fpregset): Likewise.
698 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
699 * spu-tdep.c (spu_unwind_sp): Likewise.
700 (spu2ppu_prev_register): Likewise.
701 (spu_memory_remove_breakpoint): Likewise.
702 * stack.c (return_command): Likewise.
703 * tic6x-tdep.c (tic6x_extract_signed_field): Likewise.
704 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
705 * tracefile.c (trace_save_ctf): Likewise.
706 * windows-nat.c (do_windows_fetch_inferior_registers): Likewise.
707 (do_windows_store_inferior_registers): Likewise.
708 (windows_resume): Likewise.
709 * xtensa-linux-nat.c (fill_gregset): Likewise.
710 (supply_gregset_reg): Likewise.
711 * xtensa-tdep.c (xtensa_register_write_masked): Likewise.
712 (xtensa_register_read_masked): Likewise.
713 (xtensa_supply_gregset): Likewise.
714 (xtensa_extract_return_value): Likewise.
715 (xtensa_store_return_value): Likewise.
716
edd079d9
UW
7172017-10-25 Ulrich Weigand <uweigand@de.ibm.com>
718
719 * doublest.c (floatformat_from_string): New function.
720 * doublest.h (floatformat_from_string): Add prototype.
721
722 * std-operator.def (OP_DOUBLE, OP_DECFLOAT): Remove, replace by ...
723 (OP_FLOAT): ... this.
724 * expression.h: Do not include "doublest.h".
725 (union exp_element): Replace doubleconst and decfloatconst by
726 new element floatconst.
727 * ada-lang.c (resolve_subexp): Handle OP_FLOAT instead of OP_DOUBLE.
728 (ada_evaluate_subexp): Likewise.
729 * eval.c (evaluate_subexp_standard): Handle OP_FLOAT instead of
730 OP_DOUBLE and OP_DECFLOAT.
731 * expprint.c (print_subexp_standard): Likewise.
732 (dump_subexp_body_standard): Likewise.
733 * breakpoint.c (watchpoint_exp_is_const): Likewise.
734
735 * parse.c: Include "dfp.h".
736 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
737 (write_exp_elt_floatcst): New function.
738 (operator_length_standard): Handle OP_FLOAT instead of OP_DOUBLE
739 and OP_DECFLOAT.
740 (operator_check_standard): Likewise.
741 (parse_float): Do not accept suffix. Take type as input. Return bool.
742 Return target format buffer instead of host DOUBLEST.
743 Use floatformat_from_string and decimal_from_string to parse
744 either binary or decimal floating-point types.
745 (parse_c_float): Remove.
746 * parser-defs.h: Do not include "doublest.h".
747 (write_exp_elt_dblcst, write_exp_elt_decfloatcst): Remove.
748 (write_exp_elt_floatcst): Add prototype.
749 (parse_float): Update prototype.
750 (parse_c_float): Remove.
751
752 * c-exp.y: Do not include "dfp.h".
753 (typed_val_float): Use byte buffer instead of DOUBLEST.
754 (typed_val_decfloat): Remove.
755 (DECFLOAT): Remove.
756 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
757 (parse_number): Update to new parse_float interface.
758 Parse suffixes and determine type before calling parse_float.
759 Handle decimal and binary FP types the same way.
760
761 * d-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
762 (FLOAT_LITERAL): Use OP_FLOAT and write_exp_elt_floatcst.
763 (parse_number): Update to new parse_float interface.
764 Parse suffixes and determine type before calling parse_float.
765
766 * f-exp.y: Replace dval by typed_val_float.
767 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
768 (parse_number): Use parse_float instead of atof.
769
770 * go-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
771 (parse_go_float): Remove.
772 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
773 (parse_number): Call parse_float instead of parse_go_float.
774 Parse suffixes and determine type before calling parse_float.
775
776 * p-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
777 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
778 (parse_number): Update to new parse_float interface.
779 Parse suffixes and determine type before calling parse_float.
780
781 * m2-exp.y: Replace dval by byte buffer val.
782 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
783 (parse_number): Call parse_float instead of atof.
784
785 * rust-exp.y (typed_val_float): Use byte buffer instead of DOUBLEST.
786 (lex_number): Call parse_float instead of strtod.
787 (ast_dliteral): Use OP_FLOAT instead of OP_DOUBLE.
788 (convert_ast_to_expression): Handle OP_FLOAT instead of OP_DOUBLE.
789 Use write_exp_elt_floatcst.
790 (unit_testing): Remove static variable.
791 (rust_type): Do not check unit_testing.
792 (rust_lex_tests): Do not set uint_testing. Set up dummy rust_parser.
793
794 * ada-exp.y (type_float, type_double): Remove.
795 (typed_val_float): Use byte buffer instead of DOUBLEST.
796 (FLOAT): Use OP_FLOAT and write_exp_elt_floatcst.
797 * ada-lex.l (processReal): Use parse_float instead of sscanf.
798
cc628f3d
AH
7992017-10-25 Alan Hayward <alan.hayward@arm.com>
800
801 * aarch64-tdep.h (enum aarch64_regnum): Remove.
802 * arch/aarch64.h: New file.
803
09a7c6aa
UW
8042017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
805
806 * dfp.h (decimal_from_string): Use const reference for argument.
807 * dfp.c (decimal_from_string): Likewise.
808
8ba0dd51
UW
8092017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
810
811 * i387-tdep.c (print_i387_value): Use floatformat_to_string.
812 * sh64-tdep.c (sh64_do_fp_register): Likewise.
813 * mips-tdep.c (mips_print_fp_register): Likewise.
814
16e812b2
UW
8152017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
816
817 * common/format.h (enum argclass): Replace decfloat_arg by
818 dec32float_arg, dec64float_arg, and dec128float_arg.
819 * common/format.c (parse_format_string): Update to return
820 new decimal float argument classes.
821
822 * printcmd.c (printf_decfloat): Rename to ...
823 (printf_floating): ... this. Add argclass argument, and use it
824 instead of parsing the format string again. Add support for
825 binary floating-point values, using floatformat_to_string.
826 Convert value to the target format if it doesn't already match.
827 (ui_printf): Call printf_floating instead of printf_decfloat,
828 also for double_arg / long_double_arg. Pass argclass.
829
830 * dfp.c (decimal_to_string): Add format string argument.
831 * dfp.h (decimal_to_string): Likewise.
832
833 * doublest.c (floatformat_to_string): Add format string argument.
834 * doublest.h (floatformat_to_string): Likewise.
835
fdf0cbc2
UW
8362017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
837
838 * doublest.c (floatformat_precision): New routine.
839 (floatformat_to_string): Likewise.
840 * doublest.c (floatformat_to_string): Add prototype.
841
842 * printcmd.c (print_scalar_formatted): Only call print_floating
843 on floating-point types.
844 * valprint.c: Do not include "floatformat.h".
845 (generic_val_print_decfloat): Remove.
846 (generic_val_print): Call generic_val_print_float for both
847 TYPE_CODE_FLT and TYPE_CODE_DECFLOAT.
848 (print_floating): Use floatformat_to_string. Handle decimal float.
849 (print_decimal_floating): Remove, merge into floatformat_to_string.
850 * value.h (print_decimal_floating): Remove.
851
852 * Makefile.in: Do not build doublest.c with -Wformat-nonliteral.
853
5033013f
UW
8542017-10-24 Ulrich Weigand <uweigand@de.ibm.com>
855
856 * buildsym.c (end_symtab_get_static_block): Use std::stable_sort.
857
a664f67e
SM
8582017-10-21 Simon Marchi <simon.marchi@ericsson.com>
859
860 * memattr.h: Don't include vec.h.
861 (struct mem_attrib): Initialize fields.
862 <unknown>: New static method.
863 (struct mem_region): Add constructors, operator<, initialize
864 fields.
865 * memattr.c: Include algorithm.
866 (default_mem_attrib, unknown_mem_attrib): Remove.
867 (user_mem_region_list): New global.
868 (target_mem_region_list, mem_region_list): Change type to
869 std::vector<mem_region>.
870 (mem_use_target): Now a function.
871 (target_mem_regions_valid): Change type to bool.
872 (mem_region_lessthan, mem_region_cmp, mem_region_init): Remove.
873 (require_user_regions): Adjust.
874 (require_target_regions): Adjust.
875 (create_mem_region): Adjust.
876 (lookup_mem_region): Adjust.
877 (invalidate_target_mem_regions): Adjust.
878 (mem_clear): Rename to...
879 (user_mem_clear): ... this, and adjust.
880 (mem_command): Adjust.
881 (info_mem_command): Adjust.
882 (mem_enable, enable_mem_command, mem_disable,
883 disable_mem_command): Adjust.
884 (mem_delete): Adjust.
885 (delete_mem_command): Adjust.
886 * memory-map.h (parse_memory_map): Return an std::vector.
887 * memory-map.c (parse_memory_map): Likewise.
888 (struct memory_map_parsing_data): Add constructor.
889 <memory_map>: Point to std::vector.
890 (memory_map_start_memory): Adjust.
891 (memory_map_end_memory): Adjust.
892 (memory_map_end_property): Adjust.
893 (clear_result): Remove.
894 * remote.c (remote_memory_map): Return an std::vector.
895 * target-debug.h (target_debug_print_VEC_mem_region_s__p):
896 Remove.
897 (target_debug_print_mem_region_vector): New.
898 * target-delegates.c: Regenerate.
899 * target.h (mem_region_vector): New typedef.
900 (to_memory_map): Return mem_region_vector.
901 (target_memory_map): Return an std::vector.
902 * target.c (target_memory_map): Return an std::vector.
903 (flash_erase_command): Adjust.
904
6e17c565
SM
9052017-10-21 Simon Marchi <simon.marchi@ericsson.com>
906
907 * memory-map.c (struct memory_map_parsing_data) <property_name>:
908 Change type to std::string.
909 (memory_map_start_property): Adjust.
910 (memory_map_end_property): Adjust.
911
cfba9872
SM
9122017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
913
914 * infrun.h: Include common/byte-vector.h.
915 (struct displaced_step_closure): New struct.
916 (struct buf_displaced_step_closure): New struct.
917 * infrun.c (displaced_step_closure::~displaced_step_closure):
918 Provide default implementation.
919 (displaced_step_clear): Deallocate step closure with delete.
920 * aarch64-tdep.c (displaced_step_closure): Rename to ...
921 (aarch64_displaced_step_closure): ... this, extend
922 displaced_step_closure.
923 (aarch64_displaced_step_data) <dsc>: Change type to
924 aarch64_displaced_step_closure.
925 (aarch64_displaced_step_copy_insn): Adjust to type change, use
926 unique_ptr.
927 (aarch64_displaced_step_fixup): Add cast for displaced step
928 closure.
929 * amd64-tdep.c (displaced_step_closure): Rename to ...
930 (amd64_displaced_step_closure): ... this, extend
931 displaced_step_closure.
932 <insn_buf>: Change type to std::vector<gdb_byte>.
933 <max_len>: Remove.
934 (fixup_riprel): Change type of DSC parameter, adjust to type
935 change of insn_buf.
936 (fixup_displaced_copy): Change type of DSC parameter.
937 (amd64_displaced_step_copy_insn): Instantiate
938 amd64_displaced_step_closure.
939 (amd64_displaced_step_fixup): Add cast for closure type, adjust
940 to type change of insn_buf.
941 * arm-linux-tdep.c (arm_linux_cleanup_svc): Change type of
942 parameter DSC.
943 (arm_linux_copy_svc): Likewise.
944 (cleanup_kernel_helper_return): Likewise.
945 (arm_catch_kernel_helper_return): Likewise.
946 (arm_linux_displaced_step_copy_insn): Instantiate
947 arm_displaced_step_closure.
948 * arm-tdep.c (arm_pc_is_thumb): Add cast for closure.
949 (displaced_read_reg): Change type of parameter DSC.
950 (branch_write_pc): Likewise.
951 (load_write_pc): Likewise.
952 (alu_write_pc): Likewise.
953 (displaced_write_reg): Likewise.
954 (arm_copy_unmodified): Likewise.
955 (thumb_copy_unmodified_32bit): Likewise.
956 (thumb_copy_unmodified_16bit): Likewise.
957 (cleanup_preload): Likewise.
958 (install_preload): Likewise.
959 (arm_copy_preload): Likewise.
960 (thumb2_copy_preload): Likewise.
961 (install_preload_reg): Likewise.
962 (arm_copy_preload_reg): Likewise.
963 (cleanup_copro_load_store): Likewise.
964 (install_copro_load_store): Likewise.
965 (arm_copy_copro_load_store) Likewise.
966 (thumb2_copy_copro_load_store): Likewise.
967 (cleanup_branch): Likewise.
968 (install_b_bl_blx): Likewise.
969 (arm_copy_b_bl_blx): Likewise.
970 (thumb2_copy_b_bl_blx): Likewise.
971 (thumb_copy_b): Likewise.
972 (install_bx_blx_reg): Likewise.
973 (arm_copy_bx_blx_reg): Likewise.
974 (thumb_copy_bx_blx_reg): Likewise.
975 (cleanup_alu_imm): Likewise.
976 (arm_copy_alu_imm): Likewise.
977 (thumb2_copy_alu_imm): Likewise.
978 (cleanup_alu_reg): Likewise.
979 (install_alu_reg): Likewise.
980 (arm_copy_alu_reg): Likewise.
981 (thumb_copy_alu_reg): Likewise.
982 (cleanup_alu_shifted_reg): Likewise.
983 (install_alu_shifted_reg): Likewise.
984 (arm_copy_alu_shifted_reg): Likewise.
985 (cleanup_load): Likewise.
986 (cleanup_store): Likewise.
987 (arm_copy_extra_ld_st): Likewise.
988 (install_load_store): Likewise.
989 (thumb2_copy_load_literal): Likewise.
990 (thumb2_copy_load_reg_imm): Likewise.
991 (arm_copy_ldr_str_ldrb_strb): Likewise.
992 (cleanup_block_load_all): Likewise.
993 (cleanup_block_store_pc): Likewise.
994 (cleanup_block_load_pc): Likewise.
995 (arm_copy_block_xfer): Likewise.
996 (thumb2_copy_block_xfer): Likewise.
997 (cleanup_svc): Likewise.
998 (install_svc): Likewise.
999 (arm_copy_svc): Likewise.
1000 (thumb_copy_svc): Likewise.
1001 (arm_copy_undef): Likewise.
1002 (thumb_32bit_copy_undef): Likewise.
1003 (arm_copy_unpred): Likewise.
1004 (arm_decode_misc_memhint_neon): Likewise.
1005 (arm_decode_unconditional): Likewise.
1006 (arm_decode_miscellaneous): Likewise.
1007 (arm_decode_dp_misc): Likewise.
1008 (arm_decode_ld_st_word_ubyte): Likewise.
1009 (arm_decode_media): Likewise.
1010 (arm_decode_b_bl_ldmstm): Likewise.
1011 (arm_decode_ext_reg_ld_st): Likewise.
1012 (thumb2_decode_dp_shift_reg): Likewise.
1013 (thumb2_decode_ext_reg_ld_st): Likewise.
1014 (arm_decode_svc_copro): Likewise.
1015 (thumb2_decode_svc_copro): Likewise.
1016 (install_pc_relative): Likewise.
1017 (thumb_copy_pc_relative_16bit): Likewise.
1018 (thumb_decode_pc_relative_16bit): Likewise.
1019 (thumb_copy_pc_relative_32bit): Likewise.
1020 (thumb_copy_16bit_ldr_literal): Likewise.
1021 (thumb_copy_cbnz_cbz): Likewise.
1022 (thumb2_copy_table_branch): Likewise.
1023 (cleanup_pop_pc_16bit_all): Likewise.
1024 (thumb_copy_pop_pc_16bit): Likewise.
1025 (thumb_process_displaced_16bit_insn): Likewise.
1026 (decode_thumb_32bit_ld_mem_hints): Likewise.
1027 (thumb_process_displaced_32bit_insn): Likewise.
1028 (thumb_process_displaced_insn): Likewise.
1029 (arm_process_displaced_insn): Likewise.
1030 (arm_displaced_init_closure): Likewise.
1031 (arm_displaced_step_fixup): Add cast for closure.
1032 * arm-tdep.h: Include infrun.h.
1033 (displaced_step_closure): Rename to ...
1034 (arm_displaced_step_closure): ... this, extend
1035 displaced_step_closure.
1036 <u::svc::copy_svc_os>: Change type of parameter DSC.
1037 <cleanup>: Likewise.
1038 (arm_process_displaced_insn): Likewise.
1039 (arm_displaced_init_closure): Likewise.
1040 (displaced_read_reg): Likewise.
1041 (displaced_write_reg): Likewise.
1042 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
1043 Adjust.
1044 * i386-tdep.h: Include infrun.h.
1045 (i386_displaced_step_closure): New typedef.
1046 * i386-tdep.c (i386_displaced_step_copy_insn): Use
1047 i386_displaced_step_closure.
1048 (i386_displaced_step_fixup): Adjust.
1049 * rs6000-tdep.c (ppc_displaced_step_closure): New typedef.
1050 (ppc_displaced_step_copy_insn): Use ppc_displaced_step_closure
1051 and unique_ptr.
1052 (ppc_displaced_step_fixup): Adjust.
1053 * s390-linux-tdep.c (s390_displaced_step_closure): New typedef.
1054 (s390_displaced_step_copy_insn): Use s390_displaced_step_closure
1055 and unique_ptr.
1056 (s390_displaced_step_fixup): Adjust.
1057
b392b304
SM
10582017-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1059
1060 * interps.h (interp_resume, interp_suspend, interp_set_temp):
1061 Remove declarations.
1062
d5833c62
TT
10632017-10-20 Tom Tromey <tom@tromey.com>
1064
1065 * gdb_bfd.c (struct gdb_bfd_data) <included_bfds>: Now a
1066 std::vector.
1067 (gdb_bfd_record_inclusion): Update.
1068 (bfdp): Remove typedef.
1069
06d5bbc8
TT
10702017-10-20 Tom Tromey <tom@tromey.com>
1071
1072 * gdb_bfd.c (gdb_bfd_ref): Use new.
1073 (struct gdb_bfd_data): Add constructor, destructor, and member
1074 initializers.
1075 (gdb_bfd_unref): Use delete.
1076
2712ce2e
TT
10772017-10-20 Tom Tromey <tom@tromey.com>
1078
1079 * exec.c (exec_file_attach): Use new_bfd_ref.
1080 * symfile-mem.c (symbol_file_add_from_memory): Use new_bfd_ref.
1081 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
1082 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_fdopenr): Use
1083 new_bfd_ref.
1084 * gdb_bfd.h (new_bfd_ref): New function.
1085
fcc8fb2f
PA
10862017-10-20 Pedro Alves <palves@redhat.com>
1087
1088 * main.c (captured_command_loop): Add attribute noinline.
1089
4c2287b0
SM
10902017-10-19 Simon Marchi <simon.marchi@ericsson.com>
1091
1092 * interps.c (struct interp_factory): Add constructor.
1093 (interp_factory_p): Remove typedef.
1094 (DEF_VEC_P(interp_factory_p)): Remove.
1095 (interpreter_factories): Change type to std::vector.
1096 (interp_factory_register): Adjust.
1097 (interp_lookup): Adjust.
1098 (interpreter_completer): Adjust.
1099
3d415c26
TT
11002017-10-19 Tom Tromey <tom@tromey.com>
1101
1102 * break-catch-syscall.c (catch_syscall_completer): Use
1103 std::string, gdb::unique_xmalloc_ptr.
1104
395423c4
TT
11052017-10-19 Tom Tromey <tom@tromey.com>
1106
1107 * infcall.c (call_function_by_hand_dummy): Use std::string.
1108
54f70bc1
TT
11092017-10-19 Tom Tromey <tom@tromey.com>
1110
1111 * mi/mi-main.c (mi_cmd_execute): Update.
1112 * top.h (prepare_execute_command): Return scoped_value_mark.
1113 * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN.
1114 Add move constructor.
1115 * top.c (prepare_execute_command): Return scoped_value_mark.
1116 (execute_command): Update.
1117
63929e84
PA
11182017-10-19 Pedro Alves <palves@redhat.com>
1119
1120 * xml-support.c (xml_fetch_content_from_file): Check fread's
1121 return.
1122
a75868f5
PA
11232017-10-19 Pedro Alves <palves@redhat.com>
1124
1125 * ser-base.c (ser_base_read_error_fd): Delete the file handler if
1126 async.
1127 (handle_error_fd): New function.
1128 (ser_base_async): Add/delete an event loop file handler for
1129 error_fd.
1130
2edf834e
PA
11312017-10-19 Pedro Alves <palves@redhat.com>
1132
1133 * xml-support.c (xml_fetch_content_from_file): Don't read in
1134 chunks. Instead use fseek to determine the file's size, and read
1135 it in one go.
1136
c8ba13ad
KS
11372017-11-18 Keith Seitz <keiths@redhat.com>
1138
1139 * c-exp.y (oper): Canonicalize conversion operators of user-defined
1140 types.
1141 Add whitespace to front of type name.
1142
37534686
KS
11432017-10-18 Keith Seitz <keiths@redhat.com>
1144
1145 * dwarf2read.c (dwarf2_add_typedef): Issue a complaint on unhandled
1146 DW_AT_accessibility.
1147
28c7c158
YQ
11482017-10-18 Yao Qi <yao.qi@linaro.org>
1149
1150 * features/tic6x-c62x-linux.c: Remove.
1151
30f0b101
TT
11522017-10-17 Tom Tromey <tom@tromey.com>
1153
1154 * disasm.c (do_mixed_source_and_assembly_deprecated): Use
1155 gdb::optional, ui_out_emit_list, ui_out_emit_tuple.
1156 (do_mixed_source_and_assembly): Likewise.
1157
57e12da9
TT
11582017-10-17 Tom Tromey <tom@tromey.com>
1159
1160 * regcache.c (regcache::xfer_part): Remove assertion.
1161
7b700999
PA
11622017-10-17 Pedro Alves <palves@redhat.com>
1163
1164 * xml-support.c (xml_fetch_content_from_file): Call
1165 unique_ptr::release() instead unique_ptr::get() when passing
1166 through xrealloc.
1167
d3037ba6
YQ
11682017-10-17 Yao Qi <yao.qi@linaro.org>
1169
1170 * regcache.c (regcache::xfer_part): Remove parameters read and
1171 write, add parameter is_raw. All callers are updated.
1172
83d5a34d
KS
11732017-10-16 Keith Seitz <keiths@redhat.com>
1174
1175 * c-typeprint.c (enum access_specifier): Moved here from
1176 c_type_print_base.
1177 (output_access_specifier): New function.
1178 (c_type_print_base): Consider typedefs when assessing
1179 whether access labels are needed.
1180 Use output_access_specifier as needed.
1181 Output access specifier for typedefs, if needed.
1182 * dwarf2read.c (dwarf2_add_typedef): Record DW_AT_accessibility.
1183 * gdbtypes.h (struct typedef_field) <is_protected, is_private>: New
1184 fields.
1185 (TYPE_TYPEDEF_FIELD_PROTECTED, TYPE_TYPEDEF_FIELD_PRIVATE): New
1186 accessor macros.
1187
87028b87
TT
11882017-10-16 Tom Tromey <tom@tromey.com>
1189
1190 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full)
1191 (linux_fill_prpsinfo, linux_vsyscall_range_raw): Update.
1192 * target.c (target_fileio_read_stralloc): Update.
1193 * sparc64-tdep.c (adi_is_addr_mapped): Update.
1194 * target.h (target_fileio_read_stralloc): Return
1195 unique_xmalloc_ptr.
1196
b7b030ad
TT
11972017-10-16 Tom Tromey <tom@tromey.com>
1198
1199 * xml-syscall.c (xml_init_syscalls_info): Update.
1200 * xml-support.c (xinclude_start_include): Update.
1201 (xml_fetch_content_from_file): Return unique_xmalloc_ptr.
1202 * xml-support.h (xml_fetch_another): Return unique_xmalloc_ptr.
1203 (xml_fetch_content_from_file): Likewise.
1204 * osdata.c (get_osdata): Update.
1205 * target.h (target_read_stralloc, target_get_osdata): Return
1206 unique_xmalloc_ptr.
1207 * solib-aix.c (solib_aix_get_library_list): Update.
1208 * solib-target.c (solib_target_current_sos): Update.
1209 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Update.
1210 * xml-tdesc.c (fetch_available_features_from_target): Update.
1211 (target_fetch_description_xml): Update.
1212 (file_read_description_xml): Update.
1213 * remote.c (remote_get_threads_with_qxfer, remote_memory_map)
1214 (remote_traceframe_info, btrace_read_config, remote_read_btrace)
1215 (remote_pid_to_exec_file): Update.
1216 * target.c (target_read_stralloc): Return unique_xmalloc_ptr.
1217 (target_get_osdata): Likewise.
1218
b80406ac
TT
12192017-10-16 Tom Tromey <tom@tromey.com>
1220
1221 * remote.c (remote_register_number_and_offset): Use std::vector.
1222 (remote_set_syscall_catchpoint): Use gdb::unique_xmalloc_ptr.
1223 (putpkt_binary): Use gdb::def_vector.
1224 (compare_sections_command): Use gdb::byte_vector.
1225
a90ecff8
TT
12262017-10-16 Tom Tromey <tom@tromey.com>
1227
1228 * ppc-linux-nat.c (hwdebug_insert_point): Use
1229 gdb::unique_xmalloc_ptr, XDUP.
1230
2dc0e219
TT
12312017-10-16 Tom Tromey <tom@tromey.com>
1232
1233 * probe.c (parse_probes): Use std::string.
1234 (info_probes_for_ops, enable_probes_command)
1235 (disable_probes_command): Remove cleanups.
1236
b05628f0
TT
12372017-10-16 Tom Tromey <tom@tromey.com>
1238
1239 * buildsym.c (block_compar): Remove.
1240 (end_symtab_get_static_block): Use std::vector.
1241
a79b1bc6
SM
12422017-10-16 Simon Marchi <simon.marchi@ericsson.com>
1243
1244 * memrange.h (struct mem_range): Define operator< and operator==.
1245 (mem_range_s): Remove.
1246 (DEF_VEC_O (mem_range_s)): Remove.
1247 (normalize_mem_ranges): Change parameter type to std::vector.
1248 * memrange.c (compare_mem_ranges): Remove.
1249 (normalize_mem_ranges): Change parameter type to std::vector,
1250 adjust to vector change.
1251 * exec.c (section_table_available_memory): Return vector, remove
1252 parameter.
1253 (section_table_read_available_memory): Adjust to std::vector
1254 change.
1255 * remote.c (remote_read_bytes): Adjust to std::vector
1256 change.
1257 * tracepoint.h (traceframe_available_memory): Change parameter
1258 type to std::vector.
1259 * tracepoint.c (traceframe_available_memory): Change parameter
1260 type to std::vector, adjust.
1261 * gdb/mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to
1262 std::vector change.
1263 * gdb/Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1264 unittests/memrange-selftests.c.
1265 (SUBDIR_UNITTESTS_OBS): Add memrange-selftests.o.
1266 * gdb/unittests/memrange-selftests.c: New file.
1267
63f0e930
PA
12682017-10-16 Pedro Alves <palves@redhat.com>
1269
1270 * elfread.c (probe_key_free): Rename range-for variable.
1271 * probe.c (parse_probes_in_pspace, find_probes_in_objfile)
1272 (find_probe_by_pc, collect_probes): Rename range-for variable.
1273
c40c7bfc
YQ
12742017-10-16 Yao Qi <yao.qi@linaro.org>
1275
1276 * features/Makefile (XMLTOC): Remove tic6x-*.xml.
1277 * features/tic6x-c62x.c: Remove.
1278 * features/tic6x-c64x-linux.c: Remove.
1279 * features/tic6x-c64x.c: Remove.
1280 * features/tic6x-c64xp-linux.c: Remove.
1281 * features/tic6x-c64xp.c: Remove.
1282 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Don't call
1283 initialize_tdesc_tic6x_*_linux functions.
1284 * tic6x-tdep.c (_initialize_tic6x_tdep): Don't call
1285 initialize_tdesc_tic6x_* functions.
1286
df27ae6a
YQ
12872017-10-16 Yao Qi <yao.qi@linaro.org>
1288
1289 * features/Makefile (WHICH): Remove tic6x-c64xp, tic6x-c64x
1290 tic6x-c62x.
1291 * regformats/tic6x-c62x.dat: Remove.
1292 * regformats/tic6x-c64x.dat: Remove.
1293 * regformats/tic6x-c64xp.dat: Remove.
1294
86766165
SM
12952017-10-15 Simon Marchi <simon.marchi@ericsson.com>
1296
1297 * tracepoint.c (parse_traceframe_info): Return a unique_ptr
1298 (the !HAVE_LIBEXPAT version).
1299
824dfcc3
SM
13002017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1301
1302 * nat/linux-osdata.c (struct pid_pgid_entry) <operator<>: Make
1303 const.
1304
2098b393
SM
13052017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1306
1307 * target.h: Include tracepoint.h.
1308 (enum trace_find_type): Move to tracepoint.h.
1309 (struct target_ops) <to_traceframe_info>: Return a unique ptr.
1310 * tracepoint.h: Don't include target.h
1311 (enum trace_find_type): Move from target.h.
1312 (parse_traceframe_info): Return a unique ptr.
1313 * tracepoint.c (current_traceframe_info): Change type to unique
1314 ptr.
1315 (free_traceframe_info): Remove.
1316 (clear_traceframe_info): Don't manually free
1317 current_traceframe_info.
1318 (free_result): Remove.
1319 (parse_traceframe_info): Return a unique ptr.
1320 (get_traceframe_info): Adjust to unique ptr.
1321 * ctf.c (ctf_traceframe_info): Return a unique ptr.
1322 * remote.c (remote_traceframe_info): Return a unique ptr.
1323 * tracefile-tfile.c (tfile_traceframe_info): Return a unique
1324 ptr.
1325 * target-debug.h (target_debug_print_traceframe_info_up): New
1326 macro.
1327 * target-delegates.c: Regenerate.
1328
4cdd21a8
SM
13292017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1330
1331 * memrange.h (struct mem_range): Add constructors.
1332 * tracepoint.h (struct traceframe_info) <memory>: Change type to
1333 std::vector<mem_range>.
1334 * tracepoint.c (free_traceframe_info): Don't manually free
1335 vector.
1336 (traceframe_info_start_memory): Adjust to vector change.
1337 (traceframe_available_memory): Likewise.
1338 * tracefile-tfile.c (build_traceframe_info): Likewise.
1339 * ctf.c (ctf_traceframe_info): Likewise.
1340
d0d292a2
SM
13412017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1342
1343 * tracepoint.h (struct traceframe_info) <tvars>: Change type to
1344 std::vector<int>.
1345 * tracepoint.c (free_traceframe_info): Deallocate with delete.
1346 (traceframe_info_start_tvar): Adjust to vector change.
1347 (parse_traceframe_info): Allocate with new.
1348 * ctf.c (ctf_traceframe_info): Allocate with new, adjust to
1349 vector change.
1350 * tracefile-tfile.c (build_traceframe_info): Adjust to vector
1351 change.
1352 tfile_traceframe_info): Allocate with new.
1353 * mi/mi-main.c (mi_cmd_trace_frame_collected): Adjust to vector
1354 change.
1355
8d3c73ef
SM
13562017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
1357
1358 * tracepoint.c (traceframe_info): Rename to...
1359 (current_traceframe_info): ...this.
1360 (clear_traceframe_info): Adjust.
1361 (get_traceframe_info): Adjust.
1362
b129dcac
SM
13632017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1364
1365 * nat/linux-osdata.c: Include algorithm.
1366 (compare_processes): Remove.
1367 (struct pid_pgid_entry): New struct.
1368 (linux_xfer_osdata_processgroups): Use std::vector instead of
1369 XNEWVEC.
1370
af5bf4ad
SM
13712017-10-14 Simon Marchi <simon.marchi@ericsson.com>
1372
1373 * objfiles.h: Don't include symfile.h.
1374 (struct partial_symbol): Remove forward-declaration.
1375 (struct objfile) <global_psymbols, static_psymbols>: Change type
1376 to std::vector<partial_symbol *>.
1377 * objfiles.c (objfile::objfile): Don't memset those fields.
1378 (objfile::~objfile): Don't free those fields.
1379 * psympriv.h (struct psymbol_allocation_list): Remove
1380 forward-declaration.
1381 (add_psymbol_to_list): Change psymbol_allocation_list parameter
1382 to std::vector.
1383 (start_psymtab_common): Change parameters to std::vector.
1384 * psymtab.c: Include algorithm.
1385 (require_partial_symbols): Call shrink_to_fit.
1386 (find_pc_sect_psymbol): Adjust to vector change.
1387 (match_partial_symbol): Likewise.
1388 (lookup_partial_symbol): Likewise.
1389 (psym_relocate): Likewise.
1390 (dump_psymtab): Likewise.
1391 (recursively_search_psymtabs): Likewise.
1392 (compare_psymbols): Remove.
1393 (sort_pst_symbols): Adjust to vector change.
1394 (start_psymtab_common): Likewise.
1395 (end_psymtab_common): Likewise.
1396 (psymbol_bcache_full): De-constify return value.
1397 (add_psymbol_to_bcache): Likewise.
1398 (extend_psymbol_list): Remove.
1399 (append_psymbol_to_list): Adjust to vector change.
1400 (add_psymbol_to_list): Likewise.
1401 (init_psymbol_list): Likewise.
1402 (maintenance_info_psymtabs): Likewise.
1403 (maintenance_check_psymtabs): Likewise.
1404 * symfile.h (struct psymbol_allocation_list): Remove.
1405 * symfile.c (reread_symbols): Adjust to vector change.
1406 * dbxread.c (start_psymtab): Change type of parameters.
1407 (dbx_symfile_read): Adjust to vector change.
1408 (read_dbx_symtab): Likewise.
1409 (start_psymtab): Change type of parameters.
1410 * dwarf2read.c (dwarf2_build_psymtabs): Adjust to vector change.
1411 (create_partial_symtab): Likewise.
1412 (add_partial_symbol): Likewise.
1413 (write_one_signatured_type): Likewise.
1414 (recursively_write_psymbols): Likewise.
1415 * mdebugread.c (parse_partial_symbols): Likewise.
1416 * xcoffread.c (xcoff_start_psymtab): Change type of parameters.
1417 (scan_xcoff_symtab): Adjust to vector change.
1418 (xcoff_initial_scan): Likewise.
1419
3ec5942f
SM
14202017-10-13 Simon Marchi <simon.marchi@ericsson.com>
1421
1422 * ada-typeprint.c (print_dynamic_range_bound): Use std::string.
1423
2399fe6a
YQ
14242017-10-13 Yao Qi <yao.qi@linaro.org>
1425
1426 * features/Makefile: Remove tic6x-*-expedite, add tic6x-expedite.
1427 Remove s390x-*-expedite, add s390x-expedite.
1428
4bf3f4a8
YQ
14292017-10-13 Yao Qi <yao.qi@linaro.org>
1430
1431 * features/s390-gs-linux64.c: Regenerated.
1432 * features/s390x-gs-linux64.c: Regenerated.
1433
9e86da07
TT
14342017-10-13 Tom Tromey <tom@tromey.com>
1435
1436 * compile/compile-object-run.c (do_module_cleanup): Use delete.
1437 * solib.c (update_solib_list, reload_shared_libraries_1): Use
1438 delete.
1439 * symfile.c (symbol_file_add_with_addrs): Use new.
1440 (symbol_file_add_separate): Update comment.
1441 (syms_from_objfile_1, remove_symbol_file_command): Use delete.
1442 * jit.c (jit_object_close_impl): Use new.
1443 (jit_unregister_code): Use delete.
1444 * objfiles.c (objfile::objfile): Rename from allocate_objfile.
1445 (~objfile): Rename from free_objfile.
1446 (free_objfile_separate_debug, do_free_objfile_cleanup)
1447 (free_all_objfiles, objfile_purge_solibs): Use delete.
1448 * objfiles.h (struct objfile): Add constructor and destructor.
1449 Use DISABLE_COPY_AND_ASSIGN. Add initializers to data members.
1450 (allocate_objfile, free_objfile): Don't declare.
1451 (struct objstats): Add initializers.
1452
c2508e90
SM
14532017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1454
1455 * arch-utils.h (simple_displaced_step_copy_insn): Remove.
1456 * arch-utils.c (simple_displaced_step_copy_insn): Remove.
1457 * gdbarch.sh (displaced_step_copy_insn): Adjust comment.
1458 * gdbarch.h: Regenerate.
1459 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn):
1460 Adjust comment.
1461 * i386-tdep.c (i386_displaced_step_copy_insn): Adjust comment.
1462 (i386_displaced_step_fixup): Adjust comment.
1463 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Adjust comment.
1464
a900ff72
TT
14652017-10-12 Tom Tromey <tom@tromey.com>
1466
1467 * prologue-value.h (pv_area::store_would_trash): Return bool.
1468 (pv_area::find_reg): Likewise.
1469 * prologue-value.c (pv_area::store_would_trash): Return bool.
1470 (pv_area::find_reg): Likewise.
1471
f7b7ed97
TT
14722017-10-12 Tom Tromey <tom@tromey.com>
1473
1474 * s390-linux-tdep.c (s390_store, s390_load)
1475 (s390_check_for_saved, s390_analyze_prologue): Update.
1476 * rx-tdep.c (check_for_saved, rx_analyze_prologue): Update.
1477 * rl78-tdep.c (rl78_analyze_prologue, check_for_saved): Update.
1478 * prologue-value.h (class pv_area): Move from prologue-value.c.
1479 Change names of members. Add constructor, destructor, member
1480 functions.
1481 (make_pv_area, free_pv_area, make_cleanup_free_pv_area)
1482 (pv_area_store, pv_area_fetch, pv_area_store_would_trash)
1483 (pv_area_fetch, pv_area_scan): Don't declare.
1484 * prologue-value.c (struct pv_area::area_entry): Now member of
1485 pv_area.
1486 (struct pv_area): Move to prologue-value.h.
1487 (pv_area::pv_area): Rename from make_pv_area.
1488 (pv_area::~pv_area): Rename from free_pv_area.
1489 (do_free_pv_area_cleanup, make_cleanup_free_pv_area): Remove.
1490 (clear_entries, find_entry, overlaps, store_would_trash, store)
1491 (fetch, find_reg, scan): Now member of pv_area.
1492 Remove "area" argument. Update.
1493 * msp430-tdep.c (check_for_saved, msp430_analyze_prologue):
1494 Update.
1495 * mn10300-tdep.c (push_reg, check_for_saved)
1496 (mn10300_analyze_prologue): Update.
1497 * mep-tdep.c (is_arg_spill, check_for_saved)
1498 (mep_analyze_prologue): Update.
1499 * m32c-tdep.c (m32c_pv_push, m32c_srcdest_fetch)
1500 (m32c_srcdest_store, m32c_pv_enter, m32c_is_arg_spill)
1501 (m32c_is_struct_return, m32c_analyze_prologue): Update.
1502 * arm-tdep.c (thumb_analyze_prologue, arm_analyze_prologue):
1503 Update.
1504 * arc-tdep.c (arc_is_in_prologue, arc_analyze_prologue): Update.
1505 * aarch64-tdep.c (aarch64_analyze_prologue): Update.
1506
466eecee
SM
15072017-10-12 Simon Marchi <simon.marchi@ericsson.com>
1508
1509 * linux-nat.h (linux_nat_set_delete_thread): New declaration.
1510 * linux-nat.c (linux_nat_delete_thread): New variable.
1511 (lwp_free): Invoke linux_nat_delete_thread if set.
1512 (linux_nat_set_delete_thread): New function.
1513 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Assign
1514 thread delete callback.
1515 * arm-linux-nat.c (arm_linux_delete_thread): New function.
1516 (_initialize_arm_linux_nat): Assign thread delete callback.
1517 * s390-linux-nat.c (s390_delete_thread): New function.
1518 (_initialize_s390_nat): Assign thread delete callback.
1519 * x86-linux-nat.c (x86_linux_add_target): Likewise.
1520 * nat/aarch64-linux.c (aarch64_linux_delete_thread): New
1521 function.
1522 * nat/aarch64-linux.h (aarch64_linux_delete_thread): New
1523 declaration.
1524 * nat/x86-linux.c (x86_linux_delete_thread): New function.
1525 * nat/x86-linux.h (x86_linux_delete_thread): New declaration.
1526
f71c8822
TT
15272017-10-09 Tom Tromey <tom@tromey.com>
1528
1529 * tui/tui-win.c (tui_set_win_height, parse_scrolling_args): Use
1530 std::string.
1531 * tui/tui-layout.c (enum tui_status): Use std::string.
1532
981a3fb3
TT
15332017-10-11 Tom Tromey <tom@tromey.com>
1534
1535 * gdbthread.h (thread_command): Constify.
1536 * inferior.h (detach_command): Constify.
1537 * top.h (set_history, show_history): Constify.
1538 * arm-tdep.c (set_arm_command, show_arm_command): Constify.
1539 * serial.c (serial_set_cmd, serial_show_cmd): Constify.
1540 * bsd-kvm.c (bsd_kvm_cmd): Constify.
1541 * printcmd.c (set_command): Constify.
1542 (non_const_set_command): New function.
1543 * dcache.c (set_dcache_command, show_dcache_command): Constify.
1544 * breakpoint.c (enable_command, disable_command, delete_command)
1545 (catch_command, tcatch_command, set_breakpoint_cmd)
1546 (show_breakpoint_cmd): Constify.
1547 * macrocmd.c (macro_command): Constify.
1548 * infcmd.c (unset_command, kill_command, detach_command)
1549 (info_proc_cmd): Constify.
1550 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Constify.
1551 * auto-load.c (show_auto_load_cmd, set_auto_load_cmd)
1552 (info_auto_load_cmd): Constify.
1553 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
1554 (unset_tdesc_cmd): Constify.
1555 * ada-lang.c (set_ada_command, show_ada_command)
1556 (maint_set_ada_cmd, maint_show_ada_cmd): Constify.
1557 * guile/guile.c (set_guile_command, show_guile_command)
1558 (info_guile_command): Constify.
1559 * tui/tui-win.c (tui_command, set_tui_cmd, show_tui_cmd):
1560 Constify.
1561 * skip.c (skip_command): Constify.
1562 * compile/compile.c (_initialize_compile): Constify.
1563 * dwarf2read.c (set_dwarf_cmd, show_dwarf_cmd): Constify.
1564 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
1565 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
1566 (maint_btrace_pt_show_cmd): Constify.
1567 * remote.c (set_remote_cmd, show_remote_cmd, remote_command):
1568 Constify.
1569 * python/python.c (user_show_python, user_set_python): Constify.
1570 * mips-tdep.c (set_mips_command, show_mips_command)
1571 (set_mipsfpu_command): Constify.
1572 * record-btrace.c (cmd_record_btrace_start)
1573 (cmd_set_record_btrace, cmd_show_record_btrace)
1574 (cmd_set_record_btrace_bts, cmd_show_record_btrace_bts)
1575 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): Constify.
1576 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command):
1577 Constify.
1578 * symfile.c (overlay_command): Constify.
1579 * spu-tdep.c (set_spu_command, show_spu_command): Constify.
1580 * cli/cli-logging.c (set_logging_command, show_logging_command):
1581 Constify.
1582 * cli/cli-dump.c (dump_command, append_command)
1583 (srec_dump_command, ihex_dump_command, verilog_dump_command)
1584 (tekhex_dump_command, binary_dump_command)
1585 (binary_append_command): Constify.
1586 * cli/cli-decode.c (struct cmd_list_element): Change type of
1587 "fun".
1588 * cli/cli-cmds.c (info_command, show_command, set_debug)
1589 (show_debug): Constify.
1590 (show_command): Add non-const overload.
1591 * top.c (set_history, show_history): Constify.
1592 * sh-tdep.c (set_sh_command, show_sh_command): Constify.
1593 * command.h (add_prefix_cmd): Accept a cmd_const_cfunc_ftype.
1594 * target.c (target_command): Constify.
1595 * sparc64-tdep.c (info_adi_command): Constify.
1596 * record-full.c (cmd_record_full_start): Constify.
1597 (set_record_full_command): Constify. Fix typo.
1598 (show_record_full_command): Constify.
1599 * thread.c (thread_command, thread_apply_command): Constify.
1600 * memattr.c (dummy_cmd): Constify.
1601 * value.c (function_command): Constify.
1602 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Constify.
1603 * probe.c (info_probes_command): Constify.
1604 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Constify.
1605 * gnu-nat.c (set_task_cmd, show_task_cmd, set_thread_cmd)
1606 (show_thread_cmd, set_thread_default_cmd)
1607 (show_thread_default_cmd): Constify.
1608 (check_empty): Constify.
1609 * tracepoint.c (tfind_command): Constify.
1610 * cp-support.c (maint_cplus_command): Constify.
1611 * windows-tdep.c (info_w32_command): Constify.
1612 * record.c (cmd_record_start, set_record_command)
1613 (show_record_command, info_record_command, cmd_record_goto):
1614 Constify.
1615 * ravenscar-thread.c (set_ravenscar_command)
1616 (show_ravenscar_command): Constify.
1617 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
1618 Constify.
1619 (add_internal_problem_command): Remove casts.
1620 * arc-tdep.c (maintenance_print_arc_command): Constify.
1621 * valprint.c (set_print, show_print, set_print_raw)
1622 (show_print_raw): Constify.
1623 * maint.c (maintenance_command, maintenance_info_command)
1624 (maintenance_print_command, maintenance_set_cmd)
1625 (maintenance_show_cmd, set_per_command_cmd)
1626 (show_per_command_cmd, maintenance_check_command): Constify.
1627 * language.c (set_check, show_check): Constify.
1628 * typeprint.c (show_print_type, set_print_type): Constify.
1629 * go32-nat.c (go32_info_dos_command): Constify.
1630
fdf44873
TT
16312017-10-11 Tom Tromey <tom@tromey.com>
1632
1633 * breakpoint.c (prepare_re_set_context): Remove.
1634 (breakpoint_re_set_one): Update. Don't use cleanups.
1635 (breakpoint_re_set): Use scoped_restore, std::string, and
1636 scoped_restore_current_language.
1637
81b1e71c
TT
16382017-10-11 Tom Tromey <tom@tromey.com>
1639
1640 * breakpoint.c (commands_command_1): Use std::string.
1641 (cleanup_executing_breakpoints): Remove.
1642 (bpstat_do_actions_1): Use scoped_restore.
1643 (bpstat_check_watchpoint): Use std::string.
1644 (decode_static_tracepoint_spec): Likewise.
1645 (break_range_command): Likewise.
1646 (watch_command_1): Likewise.
1647 (compare_breakpoints): Change argument types.
1648 (clear_command): Use std::vector.
1649 (cleanup_executing_breakpoints): Remove.
1650 (update_global_location_list): Use unique_xmalloc_ptr.
1651 (strace_command): Remove unused declaration.
1652
4f9d9906
JB
16532017-10-11 John Baldwin <jhb@FreeBSD.org>
1654
1655 * Makefile.in (ALLDEPFILES): Add arm-fbsd-nat.c.
1656 * NEWS: Mention new FreeBSD/arm native configuration.
1657 * configure.host: Add arm*-*-freebsd*.
1658 * configure.nat: Likewise.
1659 * arm-fbsd-nat.c: New file.
1660
7176dfd2
JB
16612017-10-11 John Baldwin <jhb@FreeBSD.org>
1662
1663 * Makefile.in (ALL_TARGET_OBS): Add arm-fbsd-tdep.o.
1664 (ALLDEPFILES): Add arm-fbsd-tdep.c.
1665 * NEWS: Mention new FreeBSD/arm target.
1666 * configure.tgt: Add arm*-*-freebsd*.
1667 * arm-fbsd-tdep.c: New file.
1668 * arm-fbsd-tdep.h: New file.
1669
fe220226
MR
16702017-10-11 Maciej W. Rozycki <macro@imgtec.com>
1671
1672 * linux-tdep.c (linux_make_corefile_notes): Remove call to
1673 `gdbarch_elfcore_write_linux_prpsinfo'.
1674 * gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
1675 method.
1676 (elf_internal_linux_prpsinfo): Remove declaration.
1677 * gdbarch.h: Regenerate.
1678 * gdbarch.c: Regenerate.
1679
a2f63b2e
MR
16802017-10-11 Maciej W. Rozycki <macro@imgtec.com>
1681
1682 * ppc-linux-tdep.c (ppc_linux_init_abi): Remove call to
1683 `set_gdbarch_elfcore_write_linux_prpsinfo'.
1684
458ca1d0
PA
16852017-10-11 Pedro Alves <palves@redhat.com>
1686
1687 * breakpoint.c (reattach_breakpoints): Delete.
1688 * breakpoint.h (reattach_breakpoints): Delete.
1689
905014d7
SM
16902017-10-11 Simon Marchi <simon.marchi@ericsson.com>
1691
1692 * symfile.c (registered_sym_fns): Make struct, not typedef.
1693 (DEF_VEC_O (registered_sym_fns)): Remove.
1694 (symtab_fns): Change type to std::vector.
1695 (add_symtab_fns): Adjust.
1696 (find_sym_fns): Adjust.
1697
56d704da
AK
16982017-10-11 Anton Kolesov <Anton.Kolesov@synopsys.com>
1699
1700 * arc-tdep.c (arc_gdbarch_init): Pass proper cpu value to disassembler.
1701 * arc-tdep.h (arc_arch_is_em): New function.
1702 (arc_arch_is_hs): Likewise.
1703
7fa29be9
EB
17042017-10-11 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
1705
1706 * macrotab.h (macro_lookup_inclusion): Remove unnecessary
1707 parentheses in the declaration.
1708 (macro_lookup_inclusion): Likewise.
1709 (macro_lookup_definition): Likewise.
1710 * p-lang.h (pascal_builtin_types): Likewise.
1711 * tui/tui-data.c (tui_win_list): Likewise.
1712 * tui/tui-data.h (tui_win_list): Likewise.
1713 * utils.h (make_cleanup_free_section_addr_info): Likewise.
1714
d9b477e3
KB
17152017-10-11 Mark Rages <markrages@gmail.com>
1716
1717 * target-memory.c (block_boundaries): Fix for block address not
1718 aligned on block size.
1719
65630365
PA
17202017-10-10 Pedro Alves <palves@redhat.com>
1721 Tom Tromey <tom@tromey.com>
1722
1723 * breakpoint.c (struct captured_breakpoint_query_args)
1724 (do_captured_breakpoint_query, gdb_breakpoint_query): Delete.
1725 (print_breakpoint): New.
1726 * breakpoint.h (print_breakpoint): Declare.
1727 * common/common-exceptions.h (enum return_reason): Remove
1728 references to catch_exceptions.
1729 * exceptions.c (catch_exceptions, catch_exceptions_with_msg):
1730 Delete.
1731 * exceptions.h (catch_exceptions_ftype, catch_exceptions)
1732 (catch_exception_ftype, catch_exceptions_with_msg): Delete.
1733 * gdb.h: Delete.
1734 * gdbthread.h (thread_select): Declare.
1735 * mi/mi-cmd-break.c: Don't include gdb.h.
1736 (breakpoint_notify): Use print_breakpoint.
1737 * mi/mi-cmd-catch.c: Don't include gdb.h.
1738 * mi/mi-interp.c: Don't include gdb.h.
1739 (mi_print_breakpoint_for_event): New.
1740 (mi_breakpoint_created, mi_breakpoint_modified): Use
1741 mi_print_breakpoint_for_event.
1742 * mi/mi-main.c: Don't include gdb.h.
1743 (mi_cmd_thread_select): Parse the global thread ID here. Use
1744 thread_select instead of gdb_thread_select.
1745 (mi_cmd_thread_list_ids): Output "thread-ids" tuple here instead
1746 of using gdb_list_thread_ids.
1747 * remote-fileio.c (do_remote_fileio_request): Change type. Reply
1748 FILEIO_ENOSYS here.
1749 (remote_fileio_request): Use TRY/CATCH instead of
1750 catch_exceptions.
1751 * symfile-mem.c (struct symbol_file_add_from_memory_args)
1752 (symbol_file_add_from_memory_wrapper): Delete.
1753 (add_vsyscall_page): Use TRY/CATCH instead of catch_exceptions.
1754 * thread.c: Don't include gdb.h.
1755 (do_captured_list_thread_ids, gdb_list_thread_ids): Delete.
1756 (thread_alive): Use thread_select.
1757 (do_captured_thread_select): Delete, parts salvaged as ...
1758 (thread_select): ... this new function.
1759 (gdb_thread_select): Delete.
1760
bf469271
PA
17612017-10-10 Pedro Alves <palves@redhat.com>
1762 Tom Tromey <tom@tromey.com>
1763
1764 * breakpoint.c (breakpoint_cond_eval): Change return type to bool
1765 and reverse logic.
1766 (WP_DELETED, WP_VALUE_CHANGED, WP_VALUE_NOT_CHANGED, WP_IGNORE):
1767 No longer macros. Instead ...
1768 (enum wp_check_result): They're now values of this new
1769 enumeration.
1770 (watchpoint_check): Change return type to wp_check_result and
1771 parameter type to bpstat.
1772 (bpstat_check_watchpoint): Use TRY/CATCH instead of catch_errors.
1773 (bpstat_check_breakpoint_conditions): Use TRY/CATCH instead of
1774 catch_errors. Reverse logic of watchpoint_check call.
1775 (breakpoint_re_set_one): Now returns void and takes a breakpoint
1776 pointer as parameter.
1777 (breakpoint_re_set): Use TRY/CATCH instead of catch_errors.
1778 * common/common-exceptions.c (throw_exception_sjlj): Update
1779 comments to avoid mentioning catch_errors.
1780 * exceptions.c (catch_errors): Delete.
1781 * exceptions.h: Update comments to avoid mentioning catch_errors.
1782 (catch_errors_ftype, catch_errors): Delete.
1783 * infrun.c (normal_stop): Use TRY/CATCH instead of catch_errors.
1784 (hook_stop_stub): Delete.
1785 (restore_selected_frame): Change return type to void, and
1786 parameter type to const frame_id &.
1787 (restore_infcall_control_state): Use TRY/CATCH instead of
1788 catch_errors.
1789 * main.c (captured_command_loop): Return void and remove
1790 parameter. Remove references to catch_errors.
1791 (captured_main): Use TRY/CATCH instead of catch_errors.
1792 * objc-lang.c (objc_submethod_helper_data)
1793 (find_objc_msgcall_submethod_helper): Delete.
1794 (find_objc_msgcall_submethod): Use TRY/CATCH instead of
1795 catch_errors.
1796 * record-full.c (record_full_message): Return void.
1797 (record_full_message_args, record_full_message_wrapper): Delete.
1798 (record_full_message_wrapper_safe): Return bool and use TRY/CATCH
1799 instead of catch_errors.
1800 * solib-aix.c (solib_aix_open_symbol_file_object): Change
1801 parameter type to int.
1802 * solib-darwin.c (open_symbol_file_object): Ditto.
1803 * solib-dsbt.c (open_symbol_file_object): Ditto.
1804 * solib-frv.c (open_symbol_file_object): Ditto.
1805 * solib-svr4.c (open_symbol_file_object): Ditto.
1806 * solib-target.c (solib_target_open_symbol_file_object): Ditto.
1807 * solib.c (update_solib_list): Use TRY/CATCH instead of
1808 catch_errors.
1809 * solist.h (struct target_so_ops) <open_symbol_file_object>:
1810 Change type.
1811 * symmisc.c (struct print_symbol_args): Remove.
1812 (dump_symtab_1): Use TRY/CATCH instead of catch_errors.
1813 (print_symbol): Change type.
1814 * windows-nat.c (handle_load_dll, handle_unload_dll): Return void
1815 and remove parameters.
1816 (catch_errors): New.
1817 (get_windows_debug_event): Adjust.
1818
1a56bfa5
TT
18192017-10-09 Tom Tromey <tom@tromey.com>
1820
1821 * mi/mi-main.c (free_splay_tree): Remove.
1822 (list_available_thread_groups): Use splay_tree_up.
1823 * common/gdb_splay_tree.h: New file.
1824
0c478e2d
TT
18252017-10-09 Tom Tromey <tom@tromey.com>
1826
1827 * mi/mi-main.c (do_nothing): Remove.
1828 (list_available_thread_groups): Update.
1829
cbd2b4e3
PA
18302017-10-09 Pedro Alves <palves@redhat.com>
1831
1832 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>: Skip
1833 reading registers when switching context.
1834
a181c0bf
JB
18352017-10-09 John Baldwin <jhb@FreeBSD.org>
1836
1837 * fbsd-nat.c (fbsd_siginfo_size): Use gdbarch_long_bit.
1838 (fbsd_convert_siginfo): Likewise.
1839 * fbsd-tdep.c (fbsd_core_xfer_siginfo): Likewise.
1840
6e66f753
SM
18412017-10-09 Simon Marchi <simon.marchi@polymtl.ca>
1842
1843 * configure.ac (try_guile_versions): Remove guile-2.2.
1844 * configure: Regenerate.
1845
890e9790
TT
18462017-10-09 Tom Tromey <tom@tromey.com>
1847
1848 * Makefile.in (COMPILE.post, POSTCOMPILE): Restore $(basename).
1849 (COMPILE.pre): Use $(CXX).
1850
109483d9
PA
18512017-10-09 Pedro Alves <palves@redhat.com>
1852
1853 * cp-support.c (cp_remove_params): Return a gdb::unique_xmalloc_ptr.
1854 Use bool.
1855 (overload_list_add_symbol): Adjust to use gdb::unique_xmalloc_ptr.
1856 * cp-support.h (cp_remove_params): Now returns a
1857 gdb::unique_xmalloc_ptr.
1858 * dwarf2read.c (find_slot_in_mapped_hash): Now returns bool.
1859 Adjust to cp_remove_params returning a gdb::unique_xmalloc_ptr.
1860 * psymtab.c (psymtab_search_name): Adjust to cp_remove_params
1861 returning a gdb::unique_xmalloc_ptr.
1862 (lookup_partial_symbol): Adjust to use gdb::unique_xmalloc_ptr.
1863 * stack.c (find_frame_funname): Adjust to cp_remove_params
1864 returning a gdb::unique_xmalloc_ptr.
1865
791afaa2
TT
18662017-10-08 Tom Tromey <tom@tromey.com>
1867
1868 * dwarf2read.c (dwarf2_get_dwz_file): Use
1869 gdb::unique_xmalloc_ptr.
1870 (find_slot_in_mapped_hash): Likewise.
1871 (dwarf2_physname): Likewise.
1872 (create_dwo_unit_in_dwp_v1): Use std::string.
1873 (create_dwo_unit_in_dwp_v2): Likewise.
1874 (lookup_dwo_cutu): Likewise.
1875 (inherit_abstract_dies): Use std::vector.
1876 (read_array_type): Likewise.
1877 (dwarf_decode_macros): Remove unused declaration.
1878 (unsigned_int_compar): Remove.
1879 (dwarf2_build_psymtabs_hard): Use scoped_restore.
1880 (psymtabs_addrmap_cleanup): Remove.
1881
30a9c02f
TT
18822017-10-08 Tom Tromey <tom@tromey.com>
1883
1884 * frame-unwind.c (frame_unwind_try_unwinder): Update.
1885 * frame.h (frame_cleanup_after_sniffer): Declare.
1886 (frame_prepare_for_sniffer): Return void.
1887 * frame.c (frame_cleanup_after_sniffer): No longer static. Change
1888 type of argument.
1889 (frame_prepare_for_sniffer): Return void.
1890
757325a3
TT
18912017-10-08 Tom Tromey <tom@tromey.com>
1892
1893 * utils.h (make_cleanup_value_free): Remove.
1894 * utils.c (do_value_free, struct cleanup): Remove.
1895 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>:
1896 Use gdb_value_up.
1897 * value.h (struct value_deleter): New.
1898 (gdb_value_up): New typedef.
1899
b9c04fb2
TT
19002017-10-08 Tom Tromey <tom@tromey.com>
1901
1902 * symtab.c (free_search_symbols, do_free_search_symbols_cleanup)
1903 (make_cleanup_free_search_symbols): Remove.
1904 (search_symbols): Return std::vector.
1905 (symbol_search::compare_search_syms): Now member of
1906 symbol_search. Change arguments.
1907 (sort_search_symbols_remove_dups): Change arguments. Rewrite.
1908 (symtab_symbol_info, rbreak_command): Update.
1909 * symtab.h (struct symbol_search) <next>: Remove.
1910 Add constructors.
1911 (symbol_search::operator<): New function.
1912 (symbol_search::operator==): New function.
1913 (search_symbols): Remove std::vector.
1914 (free_search_symbols, make_cleanup_free_search_symbols): Remove.
1915 (symbol_search::compare_search_syms): Declare.
1916
0d28b0a5
YQ
19172017-10-06 Yao Qi <yao.qi@linaro.org>
1918
1919 * Makefile.in (ALL_64_TARGET_OBS): Replace aarch64-insn.o with
1920 arch/aarch64-insn.o.
1921 Remove one rule.
1922 * configure.tgt: Replace aarch64-insn.o with arch/aarch64-insn.o.
1923
71917808
YQ
19242017-10-06 Yao Qi <yao.qi@linaro.org>
1925
1926 * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
1927 and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
1928 arch/arm-linux.o respectively.
1929 * configure.tgt: Likewise.
1930
2081b2b2
YQ
19312017-10-06 Yao Qi <yao.qi@linaro.org>
1932
1933 * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
1934 * configure.tgt (i386_tobjs): Replace i386.o with arch/i386.o.
1935
a1b85d28
PA
19362017-10-06 Pedro Alves <palves@redhat.com>
1937
1938 * windows-nat.c: Include <algorithm>.
1939
d97987e2
YQ
19402017-10-06 Yao Qi <yao.qi@linaro.org>
1941
1942 * configure.tgt (i386_tobjs): New variable.
1943 (amd64_tobjs): New variable.
1944 Set $cpu_obs and $os_obs.
1945
f38307f5
YQ
19462017-10-06 Yao Qi <yao.qi@linaro.org>
1947
1948 * Makefile.in (CONFIG_SRC_SUBDIR): New.
1949 (ALL_64_TARGET_OBS): Replace amd64.o with arch/amd64.o.
1950 (clean): Remove object files and dependency files.
1951 (distclean): Remove the directory.
1952 * configure.ac: Invoke AC_CONFIG_COMMANDS.
1953 * configure: Re-generated.
1954 * configure.tgt: Replace amd64.o with arch/amd64.o.
1955
2f924de6
JM
19562017-10-05 Jose E. Marchesi <jose.marchesi@oracle.com>
1957
1958 PR build/22188
1959 * arm-tdep.c (arm_decode_misc_memhint_neon): Fix decoding of CPS
1960 and SETEND.
1961
2fd9d7ca
PA
19622017-10-05 Pedro Alves <palves@redhat.com>
1963
1964 * linux-nat.c (linux_child_follow_fork): When following the parent
1965 and detaching the child, consult the parent thread's architecture
1966 instead of the child's.
1967
d13b8493
UW
19682017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
1969
1970 * ax.h: Do not include "doublest.h".
1971 (union agent_val): Remove.
1972
3b4b2f16
UW
19732017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
1974
1975 * dfp.h (MAX_DECIMAL_STRING): Move to dfp.c.
1976 (decimal_to_string): Return std::string object.
1977 (decimal_from_string): Accept std::string object. Return bool.
1978 (decimal_from_integral, decimal_from_doublest): Remove.
1979 (decimal_from_longest): Add prototype.
1980 (decimal_from_ulongest): Likewise.
1981 (decimal_to_longest): Likewise.
1982 (decimal_from_doublest): Likewise.
1983 * dfp.c: Do not include "gdbtypes.h" or "value.h".
1984 (MAX_DECIMAL_STRING): Move here.
1985 (decimal_to_string): Return std::string object.
1986 (decimal_from_string): Accept std::string object. Return bool.
1987 (decimal_from_integral): Remove, replace by ...
1988 (decimal_from_longest, decimal_from_ulongest): ... these new functions.
1989 (decimal_to_longest): New function.
1990 (decimal_from_floating): Remove, replace by ...
1991 (decimal_from_doublest): ... this new function.
1992 (decimal_to_doublest): Update to new decimal_to_string interface.
1993
1994 * value.c (unpack_long): Use decimal_to_longest.
1995 * valops.c (value_cast): Use decimal_from_doublest instead of
1996 decimal_from_floating. Use decimal_from_[u]longest isntead of
1997 decimal_from_integral.
1998 * valarith.c (value_args_as_decimal): Likewise.
1999 * valprint.c (print_decimal_floating): Update to new
2000 decimal_to_string interface.
2001 * printcmd.c (printf_decfloat): Likewise.
2002 * c-exp.y (parse_number): Update to new decimal_from_string interface.
2003
1841ee5d
UW
20042017-10-05 Ulrich Weigand <uweigand@de.ibm.com>
2005
2006 * doublest.h: Do not include "floatformat.h". Remove stale comments.
2007 * gdbtypes.c: Include "floatformat.h".
2008 * value.c: Likewise.
2009 * m68k-tdep.c: Likewise.
2010
2011 * findvar.c: Do not include "floatformat.h".
2012 * amd64-darwin-tdep.c: Likewise.
2013 * arm-linux-tdep.c: Likewise.
2014 * i386-darwin-tdep.c: Likewise.
2015 * i387-tdep.c: Likewise.
2016 * m68k-linux-tdep.c: Likewise.
2017 * mep-tdep.c: Likewise.
2018 * mips-tdep.c: Likewise.
2019 * nios2-tdep.c: Likewise.
2020 * s390-linux-tdep.c: Likewise.
2021 * sparc-obsd-tdep.c: Likewise.
2022 * sparc-tdep.c: Likewise.
2023 * sparc64-tdep.c: Likewise.
2024 * spu-tdep.c: Likewise.
2025 * tic6x-tdep.c: Likewise.
2026 * tilegx-tdep.c: Likewise.
2027 * vax-tdep.c: Likewise.
2028 * xstormy16-tdep.c: Likewise.
2029 * xtensa-tdep.c: Likewise.
2030
2031 * top.c: Do not include "doublest.h".
2032 * aarch64-tdep.c: Likewise.
2033 * alpha-tdep.c: Likewise.
2034 * arm-linux-tdep.c: Likewise.
2035 * m68k-linux-tdep.c: Likewise.
2036 * tilegx-tdep.c: Likewise.
2037 * xstormy16-tdep.c: Likewise.
2038
a80a6471
JB
20392017-10-05 John Baldwin <jhb@FreeBSD.org>
2040
2041 * mips-fbsd-tdep.c (MIPS_INST_ADDIU_A0_SP_N32): Define.
2042 (mipsn32_fbsd_sigframe): Define.
2043 (mips_fbsd_init_abi): Install mipsn32_fbsd_sigframe unwinder
2044 for FreeBSD/mipsn32.
2045
12c4bd7f
JB
20462017-10-05 John Baldwin <jhb@FreeBSD.org>
2047
2048 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_EHDRFLAGS and
2049 AT_HWCAP.
2050
c91933e9
TG
20512017-10-05 Tristan Gingold <tgingold@free.fr>
2052
2053 * MAINTAINERS (Misc): Update my email address.
2054
5cd63fda
PA
20552017-10-04 Pedro Alves <palves@redhat.com>
2056
2057 * remote.c (get_remote_arch_state): New 'gdbarch' parameter. Use
2058 it instead of target_gdbarch.
2059 (get_remote_state, get_remote_packet_size): Adjust
2060 get_remote_arch_state calls, passing down target_gdbarch
2061 explicitly.
2062 (packet_reg_from_regnum, packet_reg_from_pnum): New parameter
2063 'gdbarch' and use it instead of target_gdbarch.
2064 (get_memory_packet_size): Adjust get_remote_arch_state calls,
2065 passing down target_gdbarch explicitly.
2066 (struct stop_reply) <arch>: New field.
2067 (remote_parse_stop_reply): Use the stopped thread's architecture,
2068 not the current inferior's. Save the architecture in the
2069 stop_reply.
2070 (process_stop_reply): Use the stop reply's architecture.
2071 (process_g_packet, remote_fetch_registers)
2072 (remote_prepare_to_store, store_registers_using_G)
2073 (remote_store_registers): Adjust get_remote_arch_state calls,
2074 using the regcache's architecture.
2075 (remote_get_trace_status): Adjust get_remote_arch_state calls,
2076 passing down target_gdbarch explicitly.
2077 * spu-multiarch.c (spu_thread_architecture): Defer to the target
2078 beneath instead of calling target_gdbarch.
2079 * target.c (default_thread_architecture): Use the specified
2080 inferior's architecture, instead of the current inferior's
2081 architecture (via target_gdbarch).
2082
ed4227b7
PA
20832017-10-04 Pedro Alves <palves@redhat.com>
2084
2085 * regcache.c (get_thread_arch_regcache): Remove null_ptid special
2086 case.
2087 (regcache_print): Handle !target_has_registers here instead.
2088
55b11ddf
PA
20892017-10-04 Pedro Alves <palves@redhat.com>
2090
2091 * frame.c (create_test_frame): Delete.
2092 * frame.h (create_test_frame): Delete.
2093 * gdbarch-selftests.c: Include gdbthread.h and target.h.
2094 (class regcache_test): Delete.
2095 (test_target_has_registers, test_target_has_stack)
2096 (test_target_has_memory, test_target_prepare_to_store)
2097 (test_target_store_registers): New functions.
2098 (test_target_ops): New class.
2099 (register_to_value_test): Error out if there's already a
2100 process_stratum (or higher) target pushed. Create a fuller mock
2101 environment, with mock target_ops, inferior, address space, thread
2102 and inferior_ptid.
2103 * progspace.c (struct address_space): Move to ...
2104 * progspace.h (struct address_space): ... here.
2105 * regcache.h (regcache::~regcache, regcache::raw_write)
2106 [GDB_SELF_TEST]: No longer virtual.
2107
4c71c105
SM
21082017-10-04 Simon Marchi <simon.marchi@ericsson.com>
2109
2110 * mi/mi-main.c (list_available_thread_groups): Reverse filter logic.
2111
73dcd72d
PA
21122017-10-04 Pedro Alves <palves@redhat.com>
2113
2114 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Move code
2115 out of 'between TRY and CATCH'.
2116
44704526
PA
21172017-10-04 Pedro Alves <palves@redhat.com>
2118
2119 * cli/cli-cmds.c (complete_command): Add missing END_CATCH.
2120 * common/common-exceptions.h (TRY): Open an outermost scope.
2121 Expand intro comment.
2122 (CATCH): Reindent.
2123 (END_CATCH): Close the outermost scope.
2124 * completer.c (complete_line_internal): Add missing END_CATCH.
2125
bc3b087d
SDJ
21262017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2127
2128 * NEWS (Changes since GDB 8.0): Add entry about new
2129 'set-cwd-on-gdbserver' feature.
2130 (New remote packets): Add entry for QSetWorkingDir.
2131 * common/common-inferior.h (set_inferior_cwd): New prototype.
2132 * infcmd.c (set_inferior_cwd): Remove "static".
2133 (show_cwd_command): Expand text to include remote debugging.
2134 * remote.c: Add PACKET_QSetWorkingDir.
2135 (remote_protocol_features) <QSetWorkingDir>: New entry for
2136 PACKET_QSetWorkingDir.
2137 (extended_remote_set_inferior_cwd): New function.
2138 (extended_remote_create_inferior): Call
2139 "extended_remote_set_inferior_cwd".
2140 (_initialize_remote): Call "add_packet_config_cmd" for
2141 QSetWorkingDir.
2142
d092c5a2
SDJ
21432017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2144
2145 * NEWS (New commands): Mention "set/show cwd".
2146 * cli/cli-cmds.c (_initialize_cli_cmds): Mention "set cwd" on
2147 "cd" command's help text.
2148 * common/common-inferior.h (get_inferior_cwd): New prototype.
2149 * infcmd.c (inferior_cwd_scratch): New global variable.
2150 (set_inferior_cwd): New function.
2151 (get_inferior_cwd): Likewise.
2152 (set_cwd_command): Likewise.
2153 (show_cwd_command): Likewise.
2154 (_initialize_infcmd): Add "set/show cwd" commands.
2155 * inferior.h (class inferior) <cwd>: New field.
2156 * nat/fork-inferior.c: Include "gdb_tilde_expand.h".
2157 (fork_inferior): Change inferior's cwd before its execution.
2158 * windows-nat.c (windows_create_inferior): Pass inferior's cwd
2159 to CreateProcess.
2160
7da0a886
SDJ
21612017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
2162
2163 * Makefile.in (SFILES): Add gdb_tilde_expand.c.
2164 (HFILES_NO_SRCDIR): Add gdb_tilde_expand.h.
2165 (COMMON_OBS): Add gdb_tilde_expand.o.
2166 * common/gdb_tilde_expand.c: New file.
2167 * common/gdb_tilde_expand.h: Likewise.
2168
db8dd160
MR
21692017-10-03 Maciej W. Rozycki <macro@imgtec.com>
2170
2171 * gdbarch.sh (objfile): Remove duplicate declaration.
2172 * gdbarch.h: Regenerate.
2173
f8bfbf22
TT
21742017-10-03 Tom Tromey <tom@tromey.com>
2175
2176 * utils.c (internal_vproblem): Use string_vprintf.
2177
5178ed48
TT
21782017-10-03 Tom Tromey <tom@tromey.com>
2179
2180 * printcmd.c (info_symbol_command): Use std::string.
2181
8cff8730
TT
21822017-10-03 Tom Tromey <tom@tromey.com>
2183
2184 * top.c (gdb_safe_append_history): Use std::string.
2185
895b8f30
TT
21862017-10-03 Tom Tromey <tom@tromey.com>
2187
2188 * event-top.c (stdin_event_handler): Update.
2189 * main.c (captured_main_1): Update.
2190 * top.h (make_delete_ui_cleanup): Remove.
2191 (struct ui): Add constructor and destructor.
2192 (new_ui, delete_ui): Remove.
2193 * top.c (make_delete_ui_cleanup): Remove.
2194 (new_ui_command): Use std::unique_ptr.
2195 (delete_ui_cleanup): Remove.
2196 (ui::ui): Rename from new_ui. Update.
2197 (free_ui): Remove.
2198 (ui::~ui): Rename from delete_ui. Update.
2199
0efef640
TT
22002017-10-03 Tom Tromey <tom@tromey.com>
2201
2202 * symfile.c (load_progress): Use gdb::byte_vector.
2203
245ad7d3
TT
22042017-10-03 Tom Tromey <tom@tromey.com>
2205
2206 * mi/mi-main.c (mi_cmd_trace_frame_collected): Remove unused
2207 declaration.
2208 * printcmd.c (x_command): Remove unused declaration.
2209 * symfile.c (symbol_file_command): Remove unused declaration.
2210
e05550d7
TT
22112017-10-03 Tom Tromey <tom@tromey.com>
2212
2213 * utils.c (internal_vproblem): Use std::string.
2214 (defaulted_query): Likewise.
2215
b95de2b7
TT
22162017-10-03 Tom Tromey <tom@tromey.com>
2217
2218 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Update.
2219 * top.c (execute_command_to_string): Update.
2220 * utils.c (make_cleanup_restore_page_info): Remove.
2221 (do_restore_page_info_cleanup): Remove.
2222 (set_batch_flag_and_restore_page_info):
2223 New.
2224 (make_cleanup_restore_page_info): Remove.
2225 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
2226 (~set_batch_flag_and_restore_page_info): New
2227 (make_cleanup_restore_uinteger): Remove.
2228 (make_cleanup_restore_integer): Remove.
2229 (struct restore_integer_closure): Remove.
2230 (restore_integer): Remove.
2231 * utils.h (struct set_batch_flag_and_restore_page_info): New
2232 class.
2233 (set_batch_flag_and_make_cleanup_restore_page_info): Remove.
2234 (make_cleanup_restore_page_info): Remove.
2235 (make_cleanup_restore_uinteger) Remove.
2236 (make_cleanup_restore_integer) Remove.
2237
07036511
TT
22382017-10-03 Tom Tromey <tom@tromey.com>
2239
2240 * record-full.h (record_full_gdb_operation_disable_set): Return
2241 scoped_restore_tmpl<int>.
2242 * infrun.c (adjust_pc_after_break): Update.
2243 (handle_signal_stop): Update.
2244 * record-full.c (record_full_gdb_operation_disable_set): Return
2245 scoped_restore_tmpl<int>.
2246 (record_full_wait_1, record_full_insert_breakpoint)
2247 (record_full_remove_breakpoint, record_full_save)
2248 (record_full_goto_insn): Update.
2249
45320ffa
TT
22502017-10-02 Tom Tromey <tom@tromey.com>
2251
2252 PR rust/22236:
2253 * rust-lang.c (rust_val_print_str): New function.
2254 (val_print_struct): Call it.
2255 (rust_subscript): Preserve name of slice type.
2256
b3e3859b
TT
22572017-10-02 Tom Tromey <tom@tromey.com>
2258
2259 * rust-lang.c (rust_subscript): Handle slices in
2260 EVAL_AVOID_SIDE_EFFECTS case.
2261
01af5e0d
TT
22622017-10-02 Tom Tromey <tom@tromey.com>
2263
2264 * rust-lang.c (rust_slice_type_p): Recognize &str as a slice type.
2265
888e3ddb
TT
22662017-10-02 Tom Tromey <tom@tromey.com>
2267
2268 * rust-lang.h (rust_slice_type): Add "extern".
2269
cc536b21
PA
22702017-10-02 Tom Tromey <tom@tromey.com>
2271 Pedro Alves <palves@redhat.com>
2272
2273 * ada-lang.h (ada_exc_info::operator<): Make const.
2274 (ada_exc_info::operator==): Make const.
2275 * ada-lang.c (ada_exc_info::operator<, ada_exc_info::operator==):
2276 Make const.
2277
386c8614
TT
22782017-09-29 Tom Tromey <tom@tromey.com>
2279
2280 * target.c (read_whatever_is_readable): Change type of "result".
2281 Update.
2282 (free_memory_read_result_vector): Remove.
2283 (read_memory_robust): Change return type. Update.
2284 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Update. Use
2285 bin2hex, std::string.
2286 * target.h (memory_read_result_s): Remove typedef.
2287 (free_memory_read_result_vector): Remove.
2288 (read_memory_robust): Return std::vector.
2289
789c4b5e
TT
22902017-09-29 Tom Tromey <tom@tromey.com>
2291
2292 * mi/mi-main.c (captured_mi_execute_command): Use scope_restore.
2293
ab816a27
TT
22942017-09-29 Tom Tromey <tom@tromey.com>
2295
2296 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Update.
2297 * ada-lang.h (struct ada_exc_info): Remove typedef. Declare
2298 operator< and operator==.
2299 (ada_exceptions_list): Return a std::vector.
2300 * ada-lang.c (ada_exc_info::operator<): Rename from
2301 compare_ada_exception_info.
2302 (ada_exc_info::operator==): New.
2303 (sort_remove_dups_ada_exceptions_list): Change type of
2304 "exceptions".
2305 (ada_add_standard_exceptions, ada_add_exceptions_from_frame)
2306 (ada_add_global_exceptions): Likewise.
2307 (ada_exceptions_list_1): Return a std::vector.
2308 (ada_exceptions_list): Likewise.
2309
52f9abe4
TT
23102017-09-29 Tom Tromey <tom@tromey.com>
2311
2312 * mi/mi-main.c (struct print_one_inferior_data) <inferiors>: Now a
2313 'std::set *'.
2314 (print_one_inferior): Update.
2315 (free_vector_of_ints): Remove.
2316 (list_available_thread_groups): Change "ids" to std::set.
2317 (mi_cmd_list_thread_groups): Update.
2318 (struct collect_cores_data) <core>: Now a std::set.
2319 (collect_cores): Update.
2320 (unique): Remove.
2321 (print_one_inferior): Update.
2322
dcd5ddcc
TT
23232017-09-29 Tom Tromey <tom@tromey.com>
2324
2325 * mi/mi-main.c (mi_execute_cli_command): Use std::string.
2326 (mi_execute_async_cli_command): Likewise.
2327 (mi_cmd_trace_frame_collected): Use field_fmt.
2328
45d288cc
TT
23292017-09-29 Tom Tromey <tom@tromey.com>
2330
2331 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Use
2332 gdb::byte_vector.
2333
6afe2f4a
TT
23342017-09-29 Tom Tromey <tom@tromey.com>
2335
2336 * mi/mi-parse.c (mi_parse): Remove unused declaration.
2337
9813429a
TT
23382017-09-29 Tom Tromey <tom@tromey.com>
2339
2340 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Don't copy "oarg".
2341
2d6960b4
TT
23422017-09-29 Tom Tromey <tom@tromey.com>
2343
2344 * varobj.h (varobj_gen_name): Return std::string.
2345 * varobj.c (varobj_gen_name): Return std::string.
2346 * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
2347 (mi_cmd_var_delete): Don't copy "name".
2348
784c453a
TT
23492017-09-29 Tom Tromey <tom@tromey.com>
2350
2351 * mi/mi-cmd-break.c (mi_argv_to_format): Return std::string.
2352 (mi_cmd_break_insert_1): Update.
2353
a9bc57b9
TT
23542017-09-29 Tom Tromey <tom@tromey.com>
2355
2356 * target.h (make_scoped_defer_target_commit_resume): Update.
2357 * target.c (make_scoped_defer_target_commit_resume): Rename from
2358 make_cleanup_defer_target_commit_resume. Return a
2359 scoped_restore.
2360 * infrun.c (proceed): Use make_scoped_defer_target_commit_resume.
2361
9754d8c4
TT
23622017-09-29 Tom Tromey <tom@tromey.com>
2363
2364 * main.c (captured_main_1): Remove unused declaration.
2365 * spu-multiarch.c (parse_spufs_run): Remove unused declaration.
2366
99ef965c
TT
23672017-09-29 Tom Tromey <tom@tromey.com>
2368
2369 * symtab.c (search_symbols): Remove unused outer cleanup.
2370 (make_source_files_completion_list): Remove unused declaration.
2371
42518ba7
TT
23722017-09-29 Tom Tromey <tom@tromey.com>
2373
2374 * mt-tdep.c (mt_push_dummy_call): Use gdb::byte_vector.
2375
726b2169
TT
23762017-09-29 Tom Tromey <tom@tromey.com>
2377
2378 * xstormy16-tdep.c (xstormy16_push_dummy_call): Use
2379 gdb::byte_vector.
2380
55b06432
TT
23812017-09-29 Tom Tromey <tom@tromey.com>
2382
2383 * complaints.c (vcomplaint): Use std::string.
2384
8abcee91
TT
23852017-09-29 Tom Tromey <tom@tromey.com>
2386
2387 * tracepoint.c (trace_variable_command): Use std::string.
2388 (encode_actions_1): Remove unused declarations.
2389 (create_tsv_from_upload): Use std::string.
2390
6ad94bc7
TT
23912017-09-29 Tom Tromey <tom@tromey.com>
2392
2393 * cp-support.c (gdb_demangle): Use std::string.
2394
2003f3d8
TT
23952017-09-29 Tom Tromey <tom@tromey.com>
2396
2397 * stack.c (parse_frame_specification): Use std::string
2398 (info_frame_command): Use gdb::unique_xmalloc_ptr.
2399
8f8accb5
TT
24002017-09-29 Tom Tromey <tom@tromey.com>
2401
2402 * tilegx-tdep.c (tilegx_push_dummy_call): Use gdb::byte_vector.
2403
200aa7b1
TT
24042017-09-29 Tom Tromey <tom@tromey.com>
2405
2406 * utils.c (vfprintf_maybe_filtered): Use std::string.
2407 (vfprintf_unfiltered): Likewise.
2408
606aae8a
TT
24092017-09-29 Tom Tromey <tom@tromey.com>
2410
2411 * event-top.c (top_level_prompt): Return std::string.
2412 (display_gdb_prompt): Update.
2413
bd413795
TT
24142017-09-29 Tom Tromey <tom@tromey.com>
2415
2416 * unittests/common-utils-selftests.c (format): New function.
2417 (string_vprintf_tests): New function.
2418 (_initialize_common_utils_selftests): Register new tests.
2419 * common/common-utils.c (string_vprintf): New function.
2420 * common/common-utils.h (string_vprintf): Declare.
2421
256642e8
PA
24222017-09-29 Pedro Alves <palves@redhat.com>
2423
2424 * common/rsp-low.c (unpack_varlen_hex): Constify.
2425 * common/rsp-low.h (unpack_varlen_hex): Constify.
2426 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
2427 Constify.
2428 * remote.c (remote_set_permissions, read_ptid)
2429 (remote_current_thread, remote_get_threads_with_qthreadinfo)
2430 (remote_static_tracepoint_marker_at)
2431 (remote_static_tracepoint_markers_by_strid)
2432 (stop_reply_extract_thread, remote_parse_stop_reply): Constify.
2433 * tracepoint.c (parse_trace_status, parse_tracepoint_status)
2434 (parse_tracepoint_definition, parse_tsv_definition)
2435 (parse_static_tracepoint_marker_definition): Constify.
2436 * tracepoint.h (parse_static_tracepoint_marker_definition)
2437 (parse_trace_status, parse_tracepoint_status)
2438 (parse_tracepoint_definition, parse_tsv_definition): Constify.
2439
b6bb3468
PA
24402017-09-29 Pedro Alves <palves@redhat.com>
2441
2442 * remote.c (target_buf, target_buf_size): Delete.
2443 (remote_get_noisy_reply): Remove buf_p and sizeof_buf parameters.
2444 Use the connection's packet buffer instead.
2445 All callers adjusted.
2446 (_initialize_remote): Remove references to target_buf and
2447 target_buf_size.
2448
b2f8eb7a
PA
24492017-09-28 Pedro Alves <palves@redhat.com>
2450
2451 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
2452 unittests/common-utils-selftests.c.
2453 (SUBDIR_UNITTESTS_OBS): Add common-utils-selftests.o.
2454 (COMMON_OBS): Remove utils-selftests.o.
2455 * utils-selftests.c: Move to ...
2456 * unittests/common-utils-selftests.c: ... here and rename self
2457 test to "string_printf".
2458
08302ed2
DE
24592017-09-28 Alexander Shaposhnikov <alexander.v.shaposhnikov@gmail.com> (tiny patch)
2460
2461 * dwarf2read.c (open_and_init_dwp_file): Protect against dwp_file
2462 having NULL cus or tus.
2463
96a5a1d3
UW
24642017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2465
2466 * arm-tdep.c: (convert_from_extended): Remove.
2467 (convert_to_extended): Likewise.
2468 (arm_extract_return_value): Use convert_typed_floating.
2469 (arm_store_return_value): Likewise.
2470
2471 * sh-tdep.h (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
2472 * sh-tdep.c: Do not include "floatformat.h".
2473 (sh_littlebyte_bigword_type): New function.
2474 (sh_register_convert_to_virtual): Use convert_typed_floating.
2475 (sh_register_convert_to_raw): Likewise.
2476 * sh64-tdep.c: (struct gdbarch_tdep): Add sh_littlebyte_bigword_type.
2477 (sh64_littlebyte_bigword_type): New function.
2478 (sh64_extract_return_value): Use convert_typed_floating.
2479 (sh64_register_convert_to_virtual): Likewise.
2480 (sh64_register_convert_to_raw): Likewise.
2481
0db7851f
UW
24822017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2483
2484 * doublest.h (floatformat_from_type): Move to gdbtypes.h.
2485 * doublest.c (floatformat_from_type): Move to gdbtypes.c.
2486
2487 * gdbtypes.h (union type_specific): Make field floatformat hold
2488 just a single struct floatformat, not an array.
2489 (floatformat_from_type): Move here.
2490 * gdbtypes.c (floatformat_from_type): Move here. Update to
2491 changed TYPE_FLOATFORMAT definition.
2492 (verify_floatformat): Update to changed TYPE_FLOATFORMAT.
2493 (recursive_dump_type): Likewise.
2494 (init_float_type): Install correct floatformat for byte order.
2495 (arch_float_type): Likewise.
2496
77b7c781
UW
24972017-09-27 Ulrich Weigand <uweigand@de.ibm.com>
2498
2499 * gdbtypes.c (init_type): Change incoming argument from
2500 length-in-bytes to length-in-bits. Assert length is a
2501 multiple of TARGET_CHAR_BITS.
2502 (arch_type, arch_flags_type): Likewise.
2503 (init_integer_type): Update call to init_type.
2504 (init_character_type): Likewise.
2505 (init_boolean_type): Likewise.
2506 (init_float_type): Likewise.
2507 (init_decfloat_type): Likewise.
2508 (init_complex_type): Likewise.
2509 (init_pointer_type): Likewise.
2510 (objfile_type): Likewise.
2511 (arch_integer_type): Update call to arch_type.
2512 (arch_character_type): Likewise.
2513 (arch_boolean_type): Likewise.
2514 (arch_float_type): Likewise.
2515 (arch_decfloat_type): Likewise.
2516 (arch_complex_type): Likewise.
2517 (arch_pointer_type): Likewise.
2518 (gdbtypes_post_init): Likewise.
2519
2520 * dwarf2read.c (dwarf2_init_float_type): Update call to init_type.
2521 (read_base_type): Likewise.
2522 * mdebugread.c (basic_type): Likewise.
2523 * stabsread.c (dbx_init_float_type): Likewise.
2524 (rs6000_builtin_type): Likewise.
2525 (read_range_type): Likewise. Also, fix call to init_integer_type
2526 with erroneous length argument.
2527
2528 * ada-lang.c (ada_language_arch_info): Update call to arch_type.
2529 * d-lang.c (build_d_types): Likewise.
2530 * f-lang.c (build_fortran_types): Likewise.
2531 * go-lang.c (build_go_types): Likewise.
2532 * opencl-lang.c (build_opencl_types): Likewise.
2533 * jit.c (finalize_symtab): Likewise.
2534 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2535 (build_std_type_info_type): Likewise.
2536 * target-descriptions.c (tdesc_gdb_type): Likewise. Also,
2537 update call to arch_flags_type.
2538
2539 * linux-tdep.c (linux_get_siginfo_type_with_fields): Update call to
2540 arch_type.
2541 * fbsd-tdep.c (fbsd_get_siginfo_type): Likewise.
2542 * windows-tdep.c (windows_get_tlb_type): Likewise.
2543
2544 * avr-tdep.c (avr_gdbarch_init): Update call to arch_type.
2545 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
2546 * m32c-tdep.c (make_types): Likewise.
2547 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
2548 (rl78_psw_type): Update call to arch_flags_type.
2549 * m68k-tdep.c (m68k_ps_type): Update call to arch_flags_type.
2550 * rx-tdep.c (rx_psw_type): Likewise.
2551 (rx_fpsw_type): Likewise.
2552 * sparc-tdep.c (sparc_psr_type): Likewise.
2553 (sparc_fsr_type): Likewise.
2554 * sparc64-tdep.c (sparc64_pstate_type): Likewise.
2555 (sparc64_ccr_type): Likewise.
2556 (sparc64_fsr_type): Likewise.
2557 (sparc64_fprs_type): Likewise.
2558
f21b4d5c
TT
25592017-09-27 Tom Tromey <tom@tromey.com>
2560
2561 * findcmd.c (find_command): Constify.
2562
643c2ffa
TT
25632017-09-27 Tom Tromey <tom@tromey.com>
2564
2565 * ada-tasks.c (task_command_1, task_command): Constify.
2566
510e5e56
TT
25672017-09-27 Tom Tromey <tom@tromey.com>
2568
2569 * symtab.c (maintenance_print_symbol_cache)
2570 (maintenance_flush_symbol_cache)
2571 (maintenance_print_symbol_cache_statistics): Constify.
2572
e503b191
TT
25732017-09-27 Tom Tromey <tom@tromey.com>
2574
2575 * inferior.c (detach_inferior_command, kill_inferior_command)
2576 (inferior_command): Constify.
2577
4e001312
TT
25782017-09-27 Tom Tromey <tom@tromey.com>
2579
2580 * regcache.c (regcache_print, maintenance_print_registers)
2581 (maintenance_print_raw_registers)
2582 (maintenance_print_cooked_registers)
2583 (maintenance_print_register_groups)
2584 (maintenance_print_remote_registers): Constify.
2585
77763700
TT
25862017-09-27 Tom Tromey <tom@tromey.com>
2587
2588 * printcmd.c (map_display_numbers, undisplay_command)
2589 (enable_disable_display_command, enable_display_command)
2590 (disable_display_command): Constify.
2591
4495129a
TT
25922017-09-27 Tom Tromey <tom@tromey.com>
2593
2594 * breakpoint.h (delete_command): Don't declare.
2595 * breakpoint.c (delete_command, enable_once_command)
2596 (enable_count_command, enable_delete_command, breakpoint_1)
2597 (maintenance_info_breakpoints, stopin_command, stopat_command)
2598 (delete_command, delete_trace_command, save_breakpoints)
2599 (save_breakpoints_command, save_tracepoints_command): Constify.
2600
3088cf40
TT
26012017-09-27 Tom Tromey <tom@tromey.com>
2602
2603 * macrocmd.c (macro_expand_command, macro_expand_once_command)
2604 (skip_ws, extract_identifier, macro_define_command)
2605 (macro_undef_command, macro_list_command): Constify.
2606
69f476a3
TT
26072017-09-27 Tom Tromey <tom@tromey.com>
2608
2609 * infcmd.c (environment_info, set_environment_command)
2610 (unset_environment_command, path_info, info_proc_cmd_1)
2611 (info_proc_cmd_mappings, info_proc_cmd_stat)
2612 (info_proc_cmd_status, info_proc_cmd_cwd, info_proc_cmd_cmdline)
2613 (info_proc_cmd_exe, info_proc_cmd_all): Constify.
2614
c4a3e68e
TT
26152017-09-27 Tom Tromey <tom@tromey.com>
2616
2617 * i386-tdep.c (i386_mpx_info_bounds, i386_mpx_set_bounds):
2618 Constify.
2619
c9d31bd6
TT
26202017-09-27 Tom Tromey <tom@tromey.com>
2621
2622 * symfile-mem.c (add_symbol_file_from_memory_command): Constify.
2623
1f3f85eb
TT
26242017-09-27 Tom Tromey <tom@tromey.com>
2625
2626 * demangle.c (demangle_command): Constify.
2627
9c504b5d
TT
26282017-09-27 Tom Tromey <tom@tromey.com>
2629
2630 * progspace.c (maintenance_info_program_spaces_command):
2631 Constify.
2632
6663cf91
TT
26332017-09-27 Tom Tromey <tom@tromey.com>
2634
2635 * compile/compile.c (check_raw_argument, compile_file_command)
2636 (compile_code_command, compile_print_command): Constify.
2637
34e5fa26
TT
26382017-09-27 Tom Tromey <tom@tromey.com>
2639
2640 * reggroups.c (maintenance_print_reggroups): Constify.
2641
8384c356
TT
26422017-09-27 Tom Tromey <tom@tromey.com>
2643
2644 * dwarf2read.c (save_gdb_index_command): Constify.
2645
884beb0c
TT
26462017-09-27 Tom Tromey <tom@tromey.com>
2647
2648 * stap-probe.c (info_probes_stap_command): Constify.
2649
e0b2930c
TT
26502017-09-27 Tom Tromey <tom@tromey.com>
2651
2652 * fork-child.c (unset_exec_wrapper_command): Constify.
2653
f938677d
TT
26542017-09-27 Tom Tromey <tom@tromey.com>
2655
2656 * btrace.c (get_uint, get_context_size, no_chunk)
2657 (maint_btrace_packet_history_cmd)
2658 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
2659 (maint_info_btrace_cmd): Constify.
2660
8949cb87
TT
26612017-09-27 Tom Tromey <tom@tromey.com>
2662
2663 * reverse.c (delete_bookmark_command): Constify.
2664
ac88e2de
TT
26652017-09-27 Tom Tromey <tom@tromey.com>
2666
2667 * remote.c (set_memory_packet_size)
2668 (set_memory_write_packet_size, show_memory_write_packet_size)
2669 (set_memory_read_packet_size, show_memory_read_packet_size)
2670 (compare_sections_command, packet_command, remote_put_command)
2671 (remote_get_command, remote_delete_command): Constify.
2672
bd4c9dfe
TT
26732017-09-27 Tom Tromey <tom@tromey.com>
2674
2675 * mips-tdep.c (show_mipsfpu_command, set_mipsfpu_single_command)
2676 (set_mipsfpu_double_command, set_mipsfpu_none_command)
2677 (set_mipsfpu_auto_command): Constify.
2678
5e93d4c6
TT
26792017-09-27 Tom Tromey <tom@tromey.com>
2680
2681 * cli/cli-cmds.h (cd_command): Constify.
2682 * cli/cli-cmds.c (cd_command): Constify.
2683
fc41a75b
TT
26842017-09-27 Tom Tromey <tom@tromey.com>
2685
2686 * thread.c (thread_name_command, thread_find_command): Constify.
2687
67810076
TT
26882017-09-27 Tom Tromey <tom@tromey.com>
2689
2690 * probe.c (enable_probes_command, disable_probes_command):
2691 Constify.
2692
1d8b34a7
TT
26932017-09-27 Tom Tromey <tom@tromey.com>
2694
2695 * symfile.c (symbol_file_command): Constify.
2696 * gdbcore.h (deprecated_file_changed_hook): Constify.
2697 * exec.c (deprecated_file_changed_hook, exec_file_command)
2698 (file_command): Constify.
2699 * defs.h (symbol_file_command): Constify.
2700
442019e1
TT
27012017-09-27 Tom Tromey <tom@tromey.com>
2702
2703 * remote-fileio.c (set_system_call_allowed)
2704 (show_system_call_allowed): Constify.
2705
2983f7cb
TT
27062017-09-27 Tom Tromey <tom@tromey.com>
2707
2708 * tracepoint.c (delete_trace_variable_command)
2709 (tfind_end_command, tfind_start_command, tfind_pc_command)
2710 (tfind_tracepoint_command, tfind_line_command)
2711 (tfind_range_command, tfind_outside_command): Constify.
2712
4fd41b24
TT
27132017-09-27 Tom Tromey <tom@tromey.com>
2714
2715 * ax-gdb.c (maint_agent_printf_command, agent_command)
2716 (agent_eval_command): Constify.
2717
f2fc3015
TT
27182017-09-27 Tom Tromey <tom@tromey.com>
2719
2720 * tracepoint.c (info_scope_command): Constify.
2721 * python/python.c (gdbpy_decode_line): Constify.
2722 * python/py-breakpoint.c (bppy_init): Constify.
2723 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Constify.
2724 * location.h: (new_linespec_location)
2725 (string_to_event_location_basic, string_to_event_location):
2726 Constify.
2727 * location.c (new_linespec_location)
2728 (string_to_event_location_basic, string_to_event_location):
2729 Constify.
2730 * linespec.h (decode_line_with_current_source)
2731 (decode_line_with_last_displayed, linespec_lex_to_end): Constify.
2732 * linespec.c (linespec_lex_to_end)
2733 (decode_line_with_current_source)
2734 (decode_line_with_last_displayed): Constify.
2735 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x):
2736 Constify.
2737 * cli/cli-cmds.c (edit_command, list_command): Constify.
2738 * breakpoint.h (until_break_command, watch_command_wrapper)
2739 (awatch_command_wrapper, rwatch_command_wrapper)
2740 (init_ada_exception_breakpoint): Constify.
2741 * breakpoint.c (break_command_1, dprintf_command)
2742 (break_range_command, watch_command_wrapper)
2743 (rwatch_command_wrapper, awatch_command_wrapper)
2744 (until_break_command, init_ada_exception_breakpoint)
2745 (strace_marker_create_sals_from_location, trace_command)
2746 (ftrace_command, strace_command, struct tracepoint): Constify.
2747 * ax-gdb.c (agent_command_1): Constify.
2748 * ada-lang.c (ada_exception_sal): Constify.
2749
8c2f95f4
TT
27502017-09-27 Tom Tromey <tom@tromey.com>
2751
2752 * record.c (cmd_record_delete, cmd_record_stop, cmd_record_save)
2753 (cmd_record_goto_begin, cmd_record_goto_end, get_insn_number)
2754 (get_context_size, no_chunk, get_insn_history_modifiers)
2755 (cmd_record_insn_history, get_call_history_modifiers)
2756 (cmd_record_call_history): Constify.
2757
a0d65762
TT
27582017-09-27 Tom Tromey <tom@tromey.com>
2759
2760 * source.c (show_substitute_path_command)
2761 (unset_substitute_path_command, set_substitute_path_command):
2762 Constify.
2763
58971144
TT
27642017-09-27 Tom Tromey <tom@tromey.com>
2765
2766 * typeprint.c (maintenance_print_type): Constify.
2767 * maint.c (maintenance_dump_me, maintenance_demangle)
2768 (maintenance_time_display, maintenance_info_sections)
2769 (maintenance_print_statistics, maintenance_deprecate)
2770 (maintenance_undeprecate): Constify.
2771 (maintenance_do_deprecate): Constify. Use std::string.
2772 (maintenance_selftest): Constify.
2773 * gdbtypes.h (maintenance_print_type): Constify.
2774
c482f52c
TT
27752017-09-27 Tom Tromey <tom@tromey.com>
2776
2777 * hppa-tdep.c (unwind_command): Constify.
2778
e100df1a
TT
27792017-09-27 Tom Tromey <tom@tromey.com>
2780
2781 * target-descriptions.c (unset_tdesc_filename_cmd)
2782 (maint_print_c_tdesc_cmd, maintenance_check_xml_descriptions):
2783 Constify.
2784
31d56ade
TT
27852017-09-27 Tom Tromey <tom@tromey.com>
2786
2787 * dummy-frame.c (maintenance_print_dummy_frames): Constify.
2788
b961da0b
TT
27892017-09-27 Tom Tromey <tom@tromey.com>
2790
2791 * tui/tui.c (tui_enable_command, tui_disable_command): Constify.
2792
e2d8ae16
TT
27932017-09-27 Tom Tromey <tom@tromey.com>
2794
2795 * tui/tui-regs.c (tui_reg_command): Constify.
2796
863779b0
TT
27972017-09-27 Tom Tromey <tom@tromey.com>
2798
2799 * skip.c (skip_file_command, skip_function_command)
2800 (skip_enable_command, skip_disable_command, skip_delete_command):
2801 Constify.
2802
cdb34d4a
TT
28032017-09-27 Tom Tromey <tom@tromey.com>
2804
2805 * record-btrace.c (cmd_record_btrace_bts_start)
2806 (cmd_record_btrace_pt_start): Constify.
2807
e99c83e7
TT
28082017-09-27 Tom Tromey <tom@tromey.com>
2809
2810 * symmisc.c (maintenance_print_symbols)
2811 (maintenance_print_msymbols, maintenance_print_objfiles)
2812 (maintenance_info_symtabs, maintenance_check_symtabs)
2813 (maintenance_expand_symtabs, maintenance_info_line_tables):
2814 Constify.
2815
32faf971
TT
28162017-09-27 Tom Tromey <tom@tromey.com>
2817
2818 * top.c (new_ui_command): Constify.
2819
2cf311eb
TT
28202017-09-27 Tom Tromey <tom@tromey.com>
2821
2822 * symfile.c (add_symbol_file_command)
2823 (remove_symbol_file_command, list_overlays_command)
2824 (map_overlay_command, unmap_overlay_command)
2825 (overlay_auto_command, overlay_manual_command)
2826 (overlay_off_command, overlay_load_command): Constify.
2827
e6738699
TT
28282017-09-27 Tom Tromey <tom@tromey.com>
2829
2830 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
2831 (info_spu_mailbox_command, info_spu_dma_command)
2832 (info_spu_proxydma_command): Constify.
2833
aa360cd5
TT
28342017-09-27 Tom Tromey <tom@tromey.com>
2835
2836 * cli/cli-logging.c (set_logging_on, set_logging_off): Constify.
2837
898241a5
TT
28382017-09-27 Tom Tromey <tom@tromey.com>
2839
2840 * cli/cli-script.c (user_defined_command): Constify.
2841
2d0ac106
TT
28422017-09-27 Tom Tromey <tom@tromey.com>
2843
2844 * cli/cli-dump.c (dump_memory_command, dump_value_command)
2845 (dump_srec_memory, dump_srec_value, dump_ihex_memory)
2846 (dump_ihex_value, dump_verilog_memory, dump_verilog_value)
2847 (dump_tekhex_memory, dump_tekhex_value, dump_binary_memory)
2848 (dump_binary_value, append_binary_memory, append_binary_value):
2849 Constify.
2850 (struct dump_context) <func>: Constify.
2851 (add_dump_command): Update.
2852
dede02ce
TT
28532017-09-27 Tom Tromey <tom@tromey.com>
2854
2855 * cli/cli-cmds.c (show_version, show_configuration)
2856 (source_command, show_user): Constify.
2857
d3cb6b99
TT
28582017-09-27 Tom Tromey <tom@tromey.com>
2859
2860 * target.c (maintenance_print_target_stack): Constify.
2861
1970a12f
TT
28622017-09-27 Tom Tromey <tom@tromey.com>
2863
2864 * interps.c (interpreter_exec_cmd): Constify.
2865
41243651
TT
28662017-09-27 Tom Tromey <tom@tromey.com>
2867
2868 * record-full.c (cmd_record_full_restore): Constify.
2869
4465d9db
TT
28702017-09-27 Tom Tromey <tom@tromey.com>
2871
2872 * memattr.c (enable_mem_command, disable_mem_command)
2873 (delete_mem_command): Constify.
2874
ad25e423
TT
28752017-09-27 Tom Tromey <tom@tromey.com>
2876
2877 * value.c (show_convenience): Constify.
2878
d64097b1
TT
28792017-09-27 Tom Tromey <tom@tromey.com>
2880
2881 * gdbcore.h (core_file_command): Update.
2882 * corefile.c (core_file_command): Constify.
2883
4d4589ef
TT
28842017-09-27 Tom Tromey <tom@tromey.com>
2885
2886 * user-regs.c (maintenance_print_user_registers): Constify.
2887
32a7bf17
TT
28882017-09-27 Tom Tromey <tom@tromey.com>
2889
2890 * cp-namespace.c (maintenance_cplus_namespace): Constify.
2891
4a475551
TT
28922017-09-27 Tom Tromey <tom@tromey.com>
2893
2894 * cp-support.c (first_component_command): Constify.
2895
990b9f9f
TT
28962017-09-27 Tom Tromey <tom@tromey.com>
2897
2898 * psymtab.c (maintenance_print_psymbols)
2899 (maintenance_info_psymtabs, maintenance_check_psymtabs):
2900 Constify.
2901
c281872e
TT
29022017-09-27 Tom Tromey <tom@tromey.com>
2903
2904 * windows-tdep.c (display_tib): Constify.
2905
5b64bf74
TT
29062017-09-27 Tom Tromey <tom@tromey.com>
2907
2908 * linux-fork.c (delete_checkpoint_command)
2909 (detach_checkpoint_command): Constify.
2910
4ada038f
TT
29112017-09-27 Tom Tromey <tom@tromey.com>
2912
2913 * cp-abi.c (set_cp_abi_cmd, show_cp_abi_cmd): Constify.
2914
57f5a81b
TT
29152017-09-27 Tom Tromey <tom@tromey.com>
2916
2917 * arc-tdep.c (dump_arc_instruction_command): Constify.
2918
b0a8e6c4
TT
29192017-09-27 Tom Tromey <tom@tromey.com>
2920
2921 * valprint.c (set_radix, show_radix): Constify.
2922
8d97dc1c
TT
29232017-09-27 Tom Tromey <tom@tromey.com>
2924
2925 * dtrace-probe.c (info_probes_dtrace_command): Constify.
2926
eb7c454d
TT
29272017-09-27 Tom Tromey <tom@tromey.com>
2928
2929 * command.h (not_just_help_class_command): Update.
2930 * cli/cli-decode.h (not_just_help_class_command): Update.
2931 * cli/cli-decode.c (not_just_help_class_command): Constify.
2932
e4e33335
TT
29332017-09-27 Tom Tromey <tom@tromey.com>
2934
2935 * gdb_bfd.c (maintenance_info_bfds): Constify.
2936
0450cc4c
TT
29372017-09-27 Tom Tromey <tom@tromey.com>
2938
2939 * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function
2940 overloads.
2941 (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc.
2942 (do_const_cfunc): New function.
2943 (cmd_cfunc_eq): New overload.
2944 (cli_user_command_p): Check do_const_cfunc.
2945 * cli/cli-decode.h (struct cmd_list_element) <function>: New field
2946 const_cfunc.
2947 * command.h (add_cmd): Add const overload and no-function
2948 overload.
2949 (set_cmd_cfunc): Add const overload.
2950 (cmd_const_cfunc_ftype): Declare.
2951 (cmd_cfunc_eq): Add const overload.
2952 * breakpoint.c, cli-cmds.c, cli-dump.c, guile/scm-cmd.c,
2953 python/py-cmd.c, target.c, tracepoint.c: Use no-function add_cmd
2954 overload.
2955
a9bbfbd8
TT
29562017-09-27 Tom Tromey <tom@tromey.com>
2957
2958 * macroexp.c (get_next_token_for_substitution): New function.
2959 (substitute_args): Call it. Check for __VA_OPT__.
2960
5230b05a
WT
29612017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
2962 Pedro Alves <palves@redhat.com>
2963
2964 * dwarf2read.c (dwarf2_cu): Remove field producer_is_icc and add
2965 producer_is_icc_lt_14.
2966 (producer_is_icc_lt_14): New function.
2967 (check_producer): Add code for checking version of ICC.
2968 (producer_is_icc): Move to producer.c.
2969 (read_structure_type): Restrict ICC workaround to ICC<14.
2970 * producer.c: Include selftest.h.
2971 (producer_is_icc, producer_parsing_tests, _initialize_producer):
2972 New functions.
2973 * producer.h (producer_is_icc): New declaration.
2974
b32b108a
WT
29752017-09-26 Walfred Tedeschi <walfred.tedeschi@intel.com>
2976
2977 * Makefile.in (SFILES): Add producer.c.
2978 (COMMON_OBS): Add producer.o
2979 * amd64-tdep.c (producer.h): Add new include.
2980 * dwarf2read.c (producer.h): Add new include.
2981 * producer.c: New file.
2982 * producer.h: New file.
2983 * utils.c (producer_is_gcc, producer_is_gcc_ge_4): Move to
2984 producer.c.
2985 * utils.h (producer_is_gcc, producer_is_gcc_ge_4): Move to
2986 producer.h.
2987
5007d765
MK
29882017-09-26 Matthias Klose <doko@ubuntu.com>
2989
2990 * configure.ac: Search ncursesw before ncurses.
2991 Check ncursesw/ncurses.h before ncurses/ncurses.h.
2992 * gdb_curses.h: Include <ncursesw/ncurses.h>
2993 * config.in, configure: Regenerate.
2994
281c4447
RO
29952017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2996
2997 PR gdb/22185
2998 * configure.host <*-*-solaris2.[01], *-*-solaris2.[2-9]*>: Mark as
2999 obsolete.
3000 Use gdb_host sol2 for i[34567]86-*-solaris2*, x86_64-*-solaris2*.
3001 Remove i386sol2 support.
3002 * configure.nat <i386sol2>: Remove.
3003 <sol2-64>: Fold into ...
3004 <sol2>: ... this.
3005 Move common settings to default section.
3006 Add sol-thread.o.
3007 * configure.tgt <i[34567]86-*-solaris2.1[0-9]*,
3008 x86_64-*-solaris2.1[0-9]*>: Rename to ...
3009 <i[34567]86-*-solaris2*, x86_64-*-solaris2*>: ... this.
3010 <i[34567]86-*-solaris*>: Remove.
3011 <sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*>: Remove.
3012
3013 * configure.ac: Remove wctype in libw check.
3014 (_MSE_INT_H): Don't define on Solaris 7-9.
3015 <solaris*>: Remove libthread_db.so.1 check.
3016 * configure: Regenerate.
3017 * config.in: Regenerate.
3018
3019 * proc-service.c: Remove PROC_SERVICE_IS_OLD handling.
3020 (gdb_ps_prochandle_t, gdb_ps_read_buf_t, gdb_ps_write_buf_t)
3021 (gdb_ps_size_t): Remove.
3022 Use base types in users.
3023 * sol-thread.c: Likewise, also for gdb_ps_addr_t.
3024
3025 * NEWS (Changes since GDB 8.0): Document Solaris 2.0-9 removal.
3026
39b06c20
RO
30272017-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3028
3029 PR build/22206
3030 * sparc64-tdep.c (adi_tag_fd): Print pid as long.
3031 (adi_is_addr_mapped): Likewise.
3032 (PSR_ICC): Don't redefine.
3033 (PSR_IMPL): Likewise.
3034
6c3e20f1
TT
30352017-09-25 Tom Tromey <tom@tromey.com>
3036
3037 * regcache.c (regcache::dump): Use string_printf.
3038
b292235f
TT
30392017-09-25 Tom Tromey <tom@tromey.com>
3040
3041 * regcache.c (class regcache_invalidator): New.
3042 (struct register_to_invalidate): Remove.
3043 (make_cleanup_regcache_invalidate): Remove.
3044 (regcache::raw_write): Use regcache_invalidator.
3045
9ac86b52
TT
30462017-09-25 Tom Tromey <tom@tromey.com>
3047
3048 * spu-tdep.c (spu2ppu_sniffer): Update.
3049 * regcache.h (make_cleanup_regcache_xfree): Don't declare.
3050 * regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
3051 Remove.
3052 * ppc-linux-tdep.c (ppu2spu_sniffer): Update.
3053 * mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
3054 * frame.h (frame_save_as_regcache): Return std::unique_ptr.
3055 * frame.c (frame_save_as_regcache): Return std::unique_ptr.
3056 (frame_pop): Update.
3057
c0e383c6
TT
30582017-09-25 Tom Tromey <tom@tromey.com>
3059
3060 * spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
3061 * regcache.h (regcache_xfree): Don't declare.
3062 * regcache.c (regcache_xfree): Remove.
3063 (do_regcache_xfree): Use delete.
3064 * ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
3065 * linux-fork.c (free_fork): Use delete.
3066 (fork_save_infrun_state): Likewise.
3067 * jit.c (jit_dealloc_cache): Use delete.
3068 * infrun.c (discard_infcall_suspend_state): Use delete.
3069
791199cc
TT
30702017-09-25 Tom Tromey <tom@tromey.com>
3071
3072 * regcache.h (regcache_xmalloc): Don't declare.
3073 (regcache_raw_set_cached_value): Update comment.
3074 * regcache.c (regcache_xmalloc): Remove.
3075 * ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
3076 * jit.c (jit_frame_sniffer): Use new.
3077 * frame.c (frame_save_as_regcache): Use new.
3078
289e23aa
AA
30792017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3080
3081 * NEWS: Advertise support for guarded-storage registers on IBM z.
3082
1b63490c
AA
30832017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3084
3085 * s390-linux-nat.c (have_regset_gs): New static variable.
3086 (s390_linux_fetch_inferior_registers): Handle guarded-storage
3087 control block and guarded-storage broadcast control regsets.
3088 (s390_read_description): Detect whether the target has
3089 guarded-storage support, return appropriate tdesc.
3090 * s390-linux-tdep.c (features/s390-gs-linux64.c): New include.
3091 (features/s390x-gs-linux64.c): Likewise.
3092 (struct gdbarch_tdep) <have_gs>: New field.
3093 (s390_regmap_gs, s390_regmap_gsbc, s390_gs_regset)
3094 (s390_gsbc_regset): New variables.
3095 (s390_iterate_over_regset_sections): Iterate over s390_gs_regset
3096 and s390_gsbc_regset, if applicable.
3097 (s390_core_read_description): Check whether core file was from a
3098 target with guarded-storage support; include appropriate regsets.
3099 (s390_gdbarch_init): Add registers for guarded-storage support.
3100 (_initialize_s390_tdep): Initialize new target descriptions that
3101 include registers for guarded-storage support.
3102 * s390-linux-tdep.h (HWCAP_S390_GS, S390_GSD_REGNUM)
3103 (S390_GSSM_REGNUM, S390_GSEPLA_REGNUM)
3104 (S390_BC_GSD_REGNUM, S390_BC_GSSM_REGNUM): New defines.
3105 (S390_NUM_REGS): Adjust macro definition.
3106 (s390_gs_regset, s390_gsbc_regset, tdesc_s390_gs_linux64)
3107 (tdesc_s390x_gs_linux64): New declarations.
3108
96235dc1
AA
31092017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3110
3111 * features/s390-gs-linux64.xml: New file.
3112 * features/s390-gs.xml: New file.
3113 * features/s390-gsbc.xml: New file.
3114 * features/s390x-gs-linux64.xml: New file.
3115 * features/Makefile (WHICH): Add s390-gs-linux64 and
3116 s390x-gs-linux64.
3117 (s390-gs-linux64-expedite, s390x-gs-linux64-expedite): New macros.
3118 (XMLTOC): Add s390-gs-linux64.xml and s390x-linux64.xml.
3119 * features/s390-gs-linux64.c: New generated file.
3120 * features/s390x-gs-linux64.c: New file.
3121 * regformats/s390-gs-linux64.dat: New file.
3122 * regformats/s390x-gs-linux64.dat: New file.
3123
b4a7c699
TT
31242017-09-23 Tom Tromey <tom@tromey.com>
3125
3126 * defs.h (make_cleanup_override_quit_handler): Don't declare.
3127
c2f97536
TT
31282017-09-22 Tom Tromey <tom@tromey.com>
3129
3130 * utils.c (class scoped_input_handler) <m_quit_handler>: Change
3131 type to scoped_restore_tmpl.
3132 <scoped_input_handler>: Initialize m_quit_handler directly.
3133
43573013
SDJ
31342017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
3135
3136 * cli/cli-cmds.c (pwd_command): Use "getcwd (NULL, 0)".
3137 (cd_command): Likewise. Free "current_directory" before
3138 assigning to it.
3139 * main.c (captured_main_1): Use "getcwd (NULL, 0)".
3140 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Likewise.
3141 * top.c (gdb_dirbuf): Remove global declaration.
3142 * top.h (gdb_dirbuf): Likewise.
3143
6ec2e0f5
SDJ
31442017-09-22 Sergio Durigan Junior <sergiodj@redhat.com>
3145
3146 * gnulib/aclocal.m4: Regenerate.
3147 * gnulib/config.in: Regenerate.
3148 * gnulib/configure: Regenerate.
3149 * gnulib/import/Makefile.am: Regenerate.
3150 * gnulib/import/Makefile.in: Regenerate.
3151 * gnulib/import/assure.h: New file.
3152 * gnulib/import/at-func.c: Likewise
3153 * gnulib/import/chdir-long.c: New file.
3154 * gnulib/import/chdir-long.h: New file.
3155 * gnulib/import/cloexec.c: New file.
3156 * gnulib/import/cloexec.h: New file.
3157 * gnulib/import/close.c: New file.
3158 * gnulib/import/closedir.c: New file.
3159 * gnulib/import/dirent-private.h: New file.
3160 * gnulib/import/dup-safer.c: New file.
3161 * gnulib/import/dup.c: New file.
3162 * gnulib/import/dup2.c: New file.
3163 * gnulib/import/error.c: New file.
3164 * gnulib/import/error.h: New file.
3165 * gnulib/import/exitfail.c: New file.
3166 * gnulib/import/exitfail.h: New file.
3167 * gnulib/import/fchdir.c: New file.
3168 * gnulib/import/fcntl.c: New file.
3169 * gnulib/import/fcntl.in.h: New file.
3170 * gnulib/import/fd-hook.c: New file.
3171 * gnulib/import/fd-hook.h: New file.
3172 * gnulib/import/fd-safer.c: New file.
3173 * gnulib/import/fdopendir.c: New file.
3174 * gnulib/import/filename.h: New file.
3175 * gnulib/import/filenamecat-lgpl.c: New file.
3176 * gnulib/import/filenamecat.h: New file.
3177 * gnulib/import/fstat.c: New file.
3178 * gnulib/import/fstatat.c: New file.
3179 * gnulib/import/getcwd-lgpl.c: New file.
3180 * gnulib/import/getcwd.c: New file.
3181 * gnulib/import/getdtablesize.c: New file.
3182 * gnulib/import/getlogin_r.c: New file.
3183 * gnulib/import/getprogname.c: New file.
3184 * gnulib/import/getprogname.h: New file.
3185 * gnulib/import/gettext.h: New file.
3186 * gnulib/import/glob-libc.h: New file.
3187 * gnulib/import/glob.c: New file.
3188 * gnulib/import/glob.in.h: New file.
3189 * gnulib/import/intprops.h: New file.
3190 * gnulib/import/m4/chdir-long.m4: New file.
3191 * gnulib/import/m4/close.m4: New file.
3192 * gnulib/import/m4/closedir.m4: New file.
3193 * gnulib/import/m4/d-ino.m4: New file.
3194 * gnulib/import/m4/d-type.m4: New file.
3195 * gnulib/import/m4/dup.m4: New file.
3196 * gnulib/import/m4/dup2.m4: New file.
3197 * gnulib/import/m4/error.m4: New file.
3198 * gnulib/import/m4/fchdir.m4: New file.
3199 * gnulib/import/m4/fcntl.m4: New file.
3200 * gnulib/import/m4/fcntl_h.m4: New file.
3201 * gnulib/import/m4/fdopendir.m4: New file.
3202 * gnulib/import/m4/filenamecat.m4: New file.
3203 * gnulib/import/m4/fstat.m4: New file.
3204 * gnulib/import/m4/fstatat.m4: New file.
3205 * gnulib/import/m4/getcwd-abort-bug.m4: New file.
3206 * gnulib/import/m4/getcwd-path-max.m4: New file.
3207 * gnulib/import/m4/getcwd.m4: New file.
3208 * gnulib/import/m4/getdtablesize.m4: New file.
3209 * gnulib/import/m4/getlogin_r.m4: New file.
3210 * gnulib/import/m4/getprogname.m4: New file.
3211 * gnulib/import/m4/glob.m4: New file.
3212 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
3213 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
3214 * gnulib/import/m4/mempcpy.m4: New file.
3215 * gnulib/import/m4/memrchr.m4: New file.
3216 * gnulib/import/m4/mode_t.m4: New file.
3217 * gnulib/import/m4/msvc-inval.m4: New file.
3218 * gnulib/import/m4/msvc-nothrow.m4: New file.
3219 * gnulib/import/m4/open.m4: New file.
3220 * gnulib/import/m4/openat.m4: New file.
3221 * gnulib/import/m4/opendir.m4: New file.
3222 * gnulib/import/m4/readdir.m4: New file.
3223 * gnulib/import/m4/realloc.m4: New file.
3224 * gnulib/import/m4/rewinddir.m4: New file.
3225 * gnulib/import/m4/save-cwd.m4: New file.
3226 * gnulib/import/m4/strdup.m4: New file.
3227 * gnulib/import/m4/strerror.m4: New file.
3228 * gnulib/import/m4/unistd-safer.m4: New file.
3229 * gnulib/import/mempcpy.c: New file.
3230 * gnulib/import/memrchr.c: New file.
3231 * gnulib/import/msvc-inval.c: New file.
3232 * gnulib/import/msvc-inval.h: New file.
3233 * gnulib/import/msvc-nothrow.c: New file.
3234 * gnulib/import/msvc-nothrow.h: New file.
3235 * gnulib/import/open.c: New file.
3236 * gnulib/import/openat-die.c: New file.
3237 * gnulib/import/openat-priv.h: New file.
3238 * gnulib/import/openat-proc.c: New file.
3239 * gnulib/import/openat.c: New file.
3240 * gnulib/import/openat.h: New file.
3241 * gnulib/import/opendir.c: New file.
3242 * gnulib/import/pipe-safer.c: New file.
3243 * gnulib/import/readdir.c: New file.
3244 * gnulib/import/realloc.c: New file.
3245 * gnulib/import/rewinddir.c: New file.
3246 * gnulib/import/save-cwd.c: New file.
3247 * gnulib/import/save-cwd.h: New file.
3248 * gnulib/import/strdup.c: New file.
3249 * gnulib/import/strerror-override.c: New file.
3250 * gnulib/import/strerror-override.h: New file.
3251 * gnulib/import/strerror.c: New file.
3252 * gnulib/import/unistd--.h: New file.
3253 * gnulib/import/unistd-safer.h: New file.
3254 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
3255 "getcwd" and "glob".
3256 * ser-tcp.c: Undefine "close" before redefining it.
3257
432ae719
SM
32582017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3259
3260 * guile/scm-value.c (gdbscm_value_address): Initialize address,
3261 get rid of res_val.
3262
4fa7574e
RO
32632017-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3264
3265 * configure.nat <i386sol2,i386>: Add fork-inferior.o to NATDEPFILES.
3266 <sol2,sparc>: Likewise.
3267 <sol2-64,i386>: Likewise.
3268
3269 * warning.m4 (AM_GDB_WARNINGS): Disable -Wunknown-pragmas,
3270 -Wdeprecated-declarations on *-*-solaris*.
3271 * configure: Regenerate.
3272
3273 * procfs.c: Include "nat/inferior.h".
3274 (procfs_info_proc): Fix typo.
3275
f6327dcb
KB
32762017-09-21 Kevin Buettner <kevinb@redhat.com>
3277
3278 * remote.c (vector): Include.
3279 (struct private_thread_info): Add field, thread_handle.
3280 (free_private_thread_info): Deallocate storage associated with
3281 thread handle.
3282 (get_private_info_thread): Initialize `thread_handle' field.
3283 (struct thread_item): Add field, thread_handle.
3284 (clear_threads_listing_context): Deallocate storage associated
3285 with thread handle.
3286 (start_thread): Add support for "handle" attribute.
3287 (thread_attributes): Add "handle".
3288 (remote_get_threads_with_qthreadinfo): Initialize thread_handle
3289 field.
3290 (remote_update_thread_list): Update thread_handle.
3291 (remote_thread_handle_to_thread_info): New function.
3292 (init_remote_ops): Initialize to_thread_handle_to_thread_info.
3293
fbbe5337
KB
32942017-09-21 Kevin Buettner <kevinb@redhat.com>
3295
3296 * python/py-inferior.c (gdbpy_thread_from_thread_handle): New
3297 function.
3298 (inferior_object_methods): Add gdbpy_thread_from_thread_handle.
3299 * python/python-internal.h (thread_object_type): Declare.
3300
e04ee09e
KB
33012017-09-21 Kevin Buettner <kevinb@redhat.com>
3302
3303 * target.h (struct target_ops): Add to_thread_handle_to_thread_info.
3304 (target_thread_handle_to_thread_info): Declare.
3305 * target.c (target_thread_handle_to_thread_info): New function.
3306 * target-delegates.c: Regenerate.
3307 * gdbthread.h (find_thread_by_handle): Declare.
3308 * thread.c (find_thread_by_handle): New function.
3309 * linux-thread-db.c (thread_db_thread_handle_to_thread_info): New
3310 function.
3311 (init_thread_db_ops): Register thread_db_thread_handle_to_thread_info.
3312
1e5b66ed
SM
33132017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3314
3315 * nat/linux-waitpid.c (linux_debug): Add ATTRIBUTE_PRINTF.
3316
ebe48ba0
SM
33172017-09-21 Simon Marchi <simon.marchi@ericsson.com>
3318
3319 * microblaze-tdep.c (microblaze_debug): Add ATTRIBUTE_PRINTF.
3320
0a0bf5dc
YQ
33212017-09-21 Yao Qi <yao.qi@linaro.org>
3322
3323 * configure.tgt (aarch64*-*-freebsd*): Add fbsd-tdep.o solib-svr4.o
3324 to gdb_target_obs.
3325
d1b0a7bf
TT
33262017-09-20 Tom Tromey <tom@tromey.com>
3327
3328 * breakpoint.c (struct counted_command_line): Remove.
3329 (breakpoint_commands): Update.
3330 (alloc_counted_command_line, incref_counted_command_line)
3331 (decref_counted_command_line, do_cleanup_counted_command_line)
3332 (make_cleanup_decref_counted_command_line): Remove.
3333 (breakpoint_set_commands, commands_command_1, ~bpstats, bpstats)
3334 (bpstat_clear_actions, bpstat_do_actions_1, watchpoint_check)
3335 (bpstat_stop_status, print_one_breakpoint_location, ~breakpoint)
3336 (save_breakpoints): Update.
3337 * breakpoint.h (counted_command_line): Now a typedef to
3338 shared_ptr.
3339 (struct breakpoint) <commands>: Now a counted_command_line.
3340 (struct bpstats) <command>: Likewise.
3341
48649e1b
TT
33422017-09-20 Tom Tromey <tom@tromey.com>
3343
3344 * breakpoint.c (struct commands_info, do_map_commands_command):
3345 Remove.
3346 (commands_command_1): Update.
3347 (iterate_over_related_breakpoints): Take a function_view.
3348 (do_delete_breakpoint, do_map_delete_breakpoint): Remove.
3349 (delete_command): Update.
3350 (map_breakpoint_numbers): Take a function_view.
3351 (do_disable_breakpoint, do_map_delete_breakpoint): Remove.
3352 (disable_command): Update.
3353 (do_enable_breakpoint, do_map_enable_breakpoint): Remove.
3354 (enable_command): Update.
3355 (struct disp_data, do_enable_breakpoint_disp)
3356 (do_map_enable_once_breakpoint, do_map_enable_count_breakpoint)
3357 (do_map_enable_delete_breakpoint): Remove.
3358 (enable_once_command, enable_count_command, enable_delete_command)
3359 (delete_trace_variable_command): Update.
3360
04afa70c
TT
33612017-09-20 Tom Tromey <tom@tromey.com>
3362
3363 * breakpoint.c (~bpstats): Rename from bpstat_free. Update.
3364 (bpstat_clear): Use delete.
3365 (bpstats): New constructors.
3366 (bpstat_copy, bpstat_stop_status): Use new.
3367 (dprintf_after_condition_true): Update.
3368 * breakpoint.h (bpstats::bpstats): Add constructors.
3369 (bpstats::~bpstats): Add destructor.
3370
c83833f4
PA
33712017-09-20 Pedro Alves <palves@redhat.com>
3372
3373 * eval.c (make_params): Delete, refactored as ...
3374 (class fake_method): ... this new type's ctor.
3375 (fake_method::~fake_method): New.
3376 (evaluate_subexp_standard): Use 'fake_method'.
3377
223ffa71
TT
33782017-09-20 Tom Tromey <tom@tromey.com>
3379
3380 * windows-nat.c (get_windows_debug_event, windows_wait)
3381 (do_initial_windows_stuff, windows_attach): Update.
3382 * utils.c (vwarning, internal_vproblem): Update.
3383 (ui_unregister_input_event_handler_cleanup)
3384 (prepare_to_handle_input): Remove.
3385 (class scoped_input_handler): New.
3386 (defaulted_query, prompt_for_continue): Update.
3387 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
3388 Update.
3389 * top.c (undo_terminal_modifications_before_exit): Update.
3390 * target/target.h (target_terminal_init, target_terminal_inferior)
3391 (target_terminal_ours): Don't declare.
3392 (class target_terminal): New.
3393 * target.h (target_terminal_is_inferior, target_terminal_is_ours)
3394 (target_terminal_ours_for_output)
3395 (make_cleanup_restore_target_terminal): Don't declare.
3396 (target_terminal_info): Remove.
3397 * target.c (enum terminal_state, terminal_state): Remove.
3398 (target_terminal::terminal_state): Define.
3399 (target_terminal::init): Rename from target_terminal_init.
3400 (target_terminal::inferior): Rename from
3401 target_terminal_inferior.
3402 (target_terminal::ours): Rename from target_terminal_ours.
3403 (target_terminal::ours_for_output): Rename from
3404 target_terminal_ours_for_output.
3405 (target_terminal::info): New method.
3406 (cleanup_restore_target_terminal)
3407 (make_cleanup_restore_target_terminal): Remove.
3408 * solib.c (handle_solib_event): Update.
3409 * remote.c (remote_serial_quit_handler): Update.
3410 (remote_terminal_inferior, remote_wait_as): Update.
3411 * record-full.c (record_full_wait_1): Update.
3412 * nto-procfs.c (procfs_create_inferior): Update.
3413 * nat/fork-inferior.c (startup_inferior): Update.
3414 * mi/mi-interp.c (mi_new_thread, mi_thread_exit)
3415 (mi_record_changed, mi_inferior_added, mi_inferior_appeared)
3416 (mi_inferior_exit, mi_inferior_removed, mi_traceframe_changed)
3417 (mi_tsv_created, mi_tsv_deleted, mi_tsv_modified)
3418 (mi_breakpoint_created, mi_breakpoint_deleted)
3419 (mi_breakpoint_modified, mi_on_resume, mi_solib_loaded)
3420 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
3421 (mi_user_selected_context_changed, report_initial_inferior):
3422 Update.
3423 * linux-nat.c (linux_nat_attach, linux_nat_terminal_ours)
3424 (linux_nat_terminal_inferior): Update.
3425 * infrun.c (follow_fork_inferior)
3426 (handle_vfork_child_exec_or_exit, do_target_resume)
3427 (check_curr_ui_sync_execution_done, handle_inferior_event_1)
3428 (handle_signal_stop, maybe_remove_breakpoints, normal_stop):
3429 Update.
3430 * inflow.c (child_terminal_init, info_terminal_command): Update.
3431 * infcmd.c (post_create_inferior, continue_1, prepare_one_step)
3432 (attach_command): Update.
3433 * infcall.c (call_thread_fsm_should_stop): Update.
3434 * gnu-nat.c (gnu_attach): Update.
3435 * extension.c (struct active_ext_lang_state)
3436 (restore_active_ext_lang): Update.
3437 * exceptions.c (print_flush): Update.
3438 * event-top.c (async_enable_stdin, default_quit_handler): Update.
3439 (struct quit_handler_cleanup_data, restore_quit_handler)
3440 (restore_quit_handler_dtor, make_cleanup_override_quit_handler):
3441 Remove.
3442 * cp-support.c (gdb_demangle): Update.
3443 * breakpoint.c (update_inserted_breakpoint_locations)
3444 (insert_breakpoint_locations, handle_jit_event)
3445 (disable_breakpoints_in_unloaded_shlib): Update.
3446 * annotate.c (annotate_breakpoints_invalid)
3447 (annotate_frames_invalid): Update.
3448
013af3fc
TT
34492017-09-20 Tom Tromey <tom@tromey.com>
3450
3451 * main.c (catch_command_errors): Rename from
3452 catch_command_errors_const.
3453 (captured_main_1): Update.
3454
06871ae8
PA
34552017-09-20 Pedro Alves <palves@redhat.com>
3456
3457 * cli/cli-cmds.c (list_command): Use print_sal_location.
3458 (print_sal_location): New function.
3459 (ambiguous_line_spec): Use print_sal_location.
3460 * linespec.c (symbol_to_sal): Record the symbol in the sal.
3461 * symtab.c (find_function_start_sal): Likewise.
3462 * symtab.h (symtab_and_line::symbol): New field.
3463
e5f25bc5
PA
34642017-09-20 Pedro Alves <palves@redhat.com>
3465
3466 * linespec.c (minsym_found): Handle non-text minsyms.
3467 (symbol_to_sal): Record a sal.pc for non-block, non-label symbols.
3468
1b7fa39e
WT
34692017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
3470
3471 * features/Makefile (i386-avx-mpx-avx512-pku.dat): Add missing
3472 backslash.
3473
37dd0825
WT
34742017-09-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
3475
3476 * gdb.arch/i386-avx512.c (move_zmm_data_to_reg): Use
3477 vmovups instead vmovaps.
3478 (move_zmm_data_to_memory): Use vmovups instead vmovaps.
3479
4e5a4f58
JB
34802017-09-19 John Baldwin <jhb@FreeBSD.org>
3481
3482 * NEWS (Changes since GDB 8.0): Add starti.
3483 * infcmd.c (enum run_break): New.
3484 (run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
3485 case.
3486 (run_command): Use enum run_how.
3487 (start_command): Likewise.
3488 (starti_command): New function.
3489 (RUN_ARGS_HELP): New macro.
3490 (_initialize_infcmd): Use RUN_ARGS_HELP for run and start
3491 commands. Add starti command.
3492
aa70c9f1
YQ
34932017-09-19 Yao Qi <yao.qi@linaro.org>
3494
3495 * Makefile.in (monitor.o): Remove the rule.
3496
d6541620
YQ
34972017-09-19 Yao Qi <yao.qi@linaro.org>
3498
3499 * annotate.h (struct annotate_arg_emitter): Use
3500 DISABLE_COPY_AND_ASSIGN.
3501 * common/refcounted-object.h (refcounted_object): Likewise.
3502 * completer.h (struct completion_result): Likewise.
3503 * dwarf2read.c (struct dwarf2_per_objfile): Likewise.
3504 * filename-seen-cache.h (filename_seen_cache): Likewise.
3505 * gdbcore.h (thread_section_name): Likewise.
3506 * gdb_regex.h (compiled_regex): Likewise.
3507 * gdbthread.h (scoped_restore_current_thread): Likewise.
3508 * inferior.h (scoped_restore_current_inferior): Likewise.
3509 * jit.c (jit_reader): Likewise.
3510 * linespec.h (struct linespec_result): Likewise.
3511 * mi/mi-parse.h (struct mi_parse): Likewise.
3512 * nat/fork-inferior.c (execv_argv): Likewise.
3513 * progspace.h (scoped_restore_current_program_space): Likewise.
3514 * python/python-internal.h (class gdbpy_enter): Likewise.
3515 * regcache.h (regcache): Likewise.
3516 * target-descriptions.c (struct tdesc_reg): Likewise.
3517 (struct tdesc_type): Likewise.
3518 (struct tdesc_feature): Likewise.
3519 * ui-out.h (ui_out_emit_type): Likewise.
3520
0615127c
SM
35212017-09-18 Simon Marchi <simon.marchi@ericsson.com>
3522
3523 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Remove
3524 label abort_expression.
3525
5e187554
SM
35262017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3527
3528 * common/buffer.c (buffer_xml_printf): Adjust.
3529 * common/xml-utils.c (xml_escape_text): Change return type to
3530 std::string, update code accordingly.
3531 * common/xml-utils.h (xml_escape_text): Change return type to
3532 std::string.
3533 * rs6000-aix-tdep.c (rs6000_aix_shared_library_to_xml): Adjust.
3534 * windows-tdep.c (windows_xfer_shared_library): Adjust.
3535 * unittests/xml-utils-selftests.c (test_xml_escape_text):
3536 Adjust.
3537
c3d7b541
SM
35382017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3539
3540 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add new source file.
3541 (SUBDIR_UNITTESTS_OBS): Add new object file.
3542 * unittests/xml-utils-selftests.c: New file.
3543
1526853e
SM
35442017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3545
3546 * common/selftest.h (selftest): New struct/interface.
3547 (register_test): Add name parameter, add new overload.
3548 (run_tests): Add filter parameter.
3549 (for_each_selftest_ftype): New typedef.
3550 (for_each_selftest): New declaration.
3551 * common/selftest.c (tests): Change type to
3552 map<string, unique_ptr<selftest>>.
3553 (simple_selftest): New struct.
3554 (register_test): New function.
3555 (register_test): Add name parameter and use it.
3556 (run_tests): Add filter parameter and use it. Add prints.
3557 Adjust to vector -> map change.
3558 * aarch64-tdep.c (_initialize_aarch64_tdep): Add names when
3559 registering selftests.
3560 * arm-tdep.c (_initialize_arm_tdep): Likewise.
3561 * disasm-selftests.c (_initialize_disasm_selftests): Likewise.
3562 * dwarf2-frame.c (_initialize_dwarf2_frame): Likewise.
3563 * dwarf2loc.c (_initialize_dwarf2loc): Likewise.
3564 * findvar.c (_initialize_findvar): Likewise.
3565 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Likewise.
3566 * maint.c (maintenance_selftest): Update call to run_tests.
3567 (maintenance_info_selftests): New function.
3568 (_initialize_maint_cmds): Register "maintenance info selftests"
3569 command. Update "maintenance selftest" doc.
3570 * regcache.c (_initialize_regcache): Add names when registering
3571 selftests.
3572 * rust-exp.y (_initialize_rust_exp): Likewise.
3573 * selftest-arch.c (gdbarch_selftest): New struct.
3574 (gdbarch_tests): Remove.
3575 (register_test_foreach_arch): Add name parameter. Call
3576 register_test.
3577 (tests_with_arch): Remove, move most content to
3578 gdbarch_selftest::operator().
3579 (_initialize_selftests_foreach_arch): Remove.
3580 * selftest-arch.h (register_test_foreach_arch): Add name
3581 parameter.
3582 (run_tests_with_arch): New declaration.
3583 * utils-selftests.c (_initialize_utils_selftests): Add names
3584 when registering selftests.
3585 * utils.c (_initialize_utils): Likewise.
3586 * unittests/array-view-selftests.c
3587 (_initialize_array_view_selftests): Likewise.
3588 * unittests/environ-selftests.c (_initialize_environ_selftests):
3589 Likewise.
3590 * unittests/function-view-selftests.c
3591 (_initialize_function_view_selftests): Likewise.
3592 * unittests/offset-type-selftests.c
3593 (_initialize_offset_type_selftests): Likewise.
3594 * unittests/optional-selftests.c
3595 (_initialize_optional_selftests): Likewise.
3596 * unittests/scoped_restore-selftests.c
3597 (_initialize_scoped_restore_selftests): Likewise.
3598 * NEWS: Document "maintenance selftest" and "maint info
3599 selftests".
3600
5846367a
SM
36012017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3602
3603 * mi/mi-main.c (mi_load_progress): Restore current_uiout using a
3604 scoped_restore.
3605
bd77e8ff
SM
36062017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3607
3608 * mi/mi-main.c (mi_load_progress): Make uiout variable
3609 a unique_ptr.
3610
26a67918
PA
36112017-09-15 Pedro Alves <palves@redhat.com>
3612
3613 * compile/compile-c-types.c (convert_enum, convert_int)
3614 (convert_float): Adjust to refer to int_type_v0 and float_type_v0.
3615
3f8a7804
SM
36162017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3617
3618 * dwarf2read.c (copy_string): Remove.
3619 (parse_macro_definition): Replace copy_string with savestring.
3620
8d200706
YQ
36212017-09-15 Yao Qi <yao.qi@linaro.org>
3622
3623 * configure.tgt (i[34567]86-*-darwin*): Append amd64.o to
3624 gdb_target_obs.
3625 (i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*):
3626 Likewise.
3627 (i[34567]86-*-linux*): Likewise.
3628
d185219d
SM
36292017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3630
3631 * dwarf2expr.h (dwarf_stack_value): Add constructor.
3632 (dwarf_expr_context) <~dwarf_expr_context>: Define as default.
3633 <stack>: Change type to std::vector.
3634 <stack_len, stack_allocated>: Remove.
3635 <grow_stack>: Remove.
3636 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
3637 (dwarf_expr_context::~dwarf_expr_context): Remove.
3638 (dwarf_expr_context::grow_stack): Remove.
3639 (dwarf_expr_context::push): Adjust.
3640 (dwarf_expr_context::pop): Adjust.
3641 (dwarf_expr_context::fetch): Adjust.
3642 (dwarf_expr_context::fetch_in_stack_memory): Adjust.
3643 (dwarf_expr_context::stack_empty_p): Adjust.
3644 (dwarf_expr_context::execute_stack_op): Adjust.
3645
eccd80d6
SM
36462017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3647
3648 * dwarf2expr.h (dwarf_expr_context) <stack_empty_p>: Change
3649 return type to bool.
3650 * dwarf2expr.c (dwarf_expr_context::stack_empty_p): Likewise.
3651
69009882
SM
36522017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3653
3654 * dwarf2expr.h (dwarf_expr_piece) <v.mem.in_stack_memory>:
3655 Change type to bool.
3656 (dwarf_stack_value) <in_stack_memory>: Likewise.
3657 (dwarf_expr_context) <push_address>: Change parameter type to
3658 bool.
3659 <fetch_in_stack_memory>: Change return type to bool.
3660 <push>: Change parameter type to bool.
3661 * dwarf2expr.c (dwarf_expr_context::push): Change parameter type
3662 to bool.
3663 (dwarf_expr_context::push_address): Likewise.
3664 (dwarf_expr_context::fetch_in_stack_memory): Change return type
3665 to bool.
3666 (dwarf_expr_context::execute_stack_op): Adjust.
3667 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Adjust.
3668
1e467161
SM
36692017-09-14 Simon Marchi <simon.marchi@ericsson.com>
3670
3671 * dwarf2expr.h (struct dwarf_expr_piece): Move up.
3672 (struct dwarf_expr_context) <n_pieces>: Remove.
3673 <pieces>: Change type to std::vector.
3674 * dwarf2expr.c (dwarf_expr_context::dwarf_expr_context): Adjust.
3675 (dwarf_expr_context::~dwarf_expr_context): Don't manually free
3676 pieces.
3677 (dwarf_expr_context::add_piece): Adjust.
3678 * dwarf2loc.c (struct piece_closure): Initialize fields.
3679 <n_pieces>: Remove.
3680 <pieces>: Change type to std::vector.
3681 (allocate_piece_closure): Adjust, change parameter to
3682 std::vector rvalue and std::move it to piece_closure.
3683 (rw_pieced_value): Adjust.
3684 (check_pieced_synthetic_pointer): Adjust.
3685 (indirect_synthetic_pointer): Adjust.
3686 (coerce_pieced_ref): Adjust.
3687 (free_pieced_value_closure): Adjust. Use delete to free
3688 piece_closure.
3689 (dwarf2_evaluate_loc_desc_full): Adjust. std::move ctx.pieces
3690 to allocate_piece_closure.
3691 (dwarf2_loc_desc_get_symbol_read_needs): Adjust.
3692
0782db84
SM
36932017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3694
3695 * probe.h (probe_ops_cp): Remove typedef.
3696 (DEF_VEC_P (probe_ops_cp)): Remove.
3697 (all_probe_ops): Change type to std::vector.
3698 * probe.c (info_probes_for_ops): Adjust to vector change.
3699 (probe_linespec_to_ops): Likewise.
3700 (all_probe_ops): Change type to std::vector.
3701 (_initialize_probe): Adjust to vector change.
3702 * dtrace-probe.c (_initialize_dtrace_probe): Likewise.
3703 * elfread.c (elf_get_probes): Likewise.
3704 * stap-probe.c (_initialize_stap_probe): Likewise.
3705
1eac6bea
SM
37062017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3707
3708 * probe.h (struct bound_probe): Define constructors.
3709 * probe.c (bound_probe_s): Remove typedef.
3710 (DEF_VEC_O (bound_probe_s)): Remove VEC.
3711 (collect_probes): Change return type to std::vector, remove
3712 cleanup.
3713 (compare_probes): Return bool, change parameter type. Change
3714 semantic to "less than".
3715 (gen_ui_out_table_header_info): Change parameter to std::vector
3716 and update.
3717 (exists_probe_with_pops): Likewise.
3718 (info_probes_for_ops): Update to std::vector change.
3719 (enable_probes_command): Likewise.
3720 (disable_probes_command): Likewise.
3721
aaa63a31
SM
37222017-09-12 Simon Marchi <simon.marchi@ericsson.com>
3723
3724 * probe.h (struct probe_ops) <get_probes>: Change parameter from
3725 vec to std::vector.
3726 * probe.c (parse_probes_in_pspace): Update.
3727 (find_probes_in_objfile): Update.
3728 (find_probe_by_pc): Update.
3729 (collect_probes): Update.
3730 (probe_any_get_probes): Update.
3731 * symfile.h (struct sym_probe_fns) <sym_get_probes> Change
3732 return type to reference to std::vector.
3733 * dtrace-probe.c (dtrace_process_dof_probe): Change parameter to
3734 std::vector and update.
3735 (dtrace_process_dof): Likewise.
3736 (dtrace_get_probes): Likewise.
3737 * elfread.c (elf_get_probes): Change return type to std::vector,
3738 store an std::vector in bfd_data.
3739 (probe_key_free): Update to std::vector.
3740 * stap-probe.c (handle_stap_probe): Change parameter to
3741 std::vector and update.
3742 (stap_get_probes): Likewise.
3743 * symfile-debug.c (debug_sym_get_probes): Change return type to
3744 std::vector and update.
3745
cb85b21b
TT
37462017-09-11 Tom Tromey <tom@tromey.com>
3747
3748 * breakpoint.c (program_breakpoint_here_p): Update.
3749 * target.c (make_scoped_restore_show_memory_breakpoints): Rename
3750 from make_show_memory_breakpoints_cleanup. Return a
3751 scoped_restore_tmpl<int>.
3752 (restore_show_memory_breakpoints): Remove.
3753 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Update.
3754 * mem-break.c (memory_validate_breakpoint): Update.
3755 * ia64-tdep.c (ia64_memory_insert_breakpoint): Update.
3756 (ia64_memory_remove_breakpoint): Update.
3757 (ia64_breakpoint_from_pc): Update.
3758 * target.h (make_scoped_restore_show_memory_breakpoints): Rename
3759 from make_show_memory_breakpoints_cleanup.
3760
8fbc99ef
TT
37612017-09-11 Tom Tromey <tom@tromey.com>
3762
3763 * d-namespace.c (d_lookup_symbol): Use std::string.
3764 (find_symbol_in_baseclass): Likewise.
3765
50feb4bd
TT
37662017-09-11 Tom Tromey <tom@tromey.com>
3767
3768 * ctf.c (ctf_start): Use std::string.
3769
c6dc63a1
TT
37702017-09-11 Tom Tromey <tom@tromey.com>
3771
3772 * ada-lang.c (is_known_support_routine): Update.
3773 (ada_unhandled_exception_name_addr_from_raise): Update.
3774 * guile/scm-frame.c (gdbscm_frame_name): Update.
3775 * python/py-frame.c (frapy_name): Update.
3776 (frapy_function): Update.
3777 * stack.h (find_frame_funname): Update.
3778 * stack.c (find_frame_funname): Return unique_xmalloc_ptr.
3779 (print_frame): Update.
3780
d6b9b80f
TT
37812017-09-11 Tom Tromey <tom@tromey.com>
3782
3783 * findcmd.c (put_bits): Take a gdb::byte_vector.
3784 (parse_find_args): Return gdb::byte_vector. "args" now const.
3785 Remove "pattern_bufp" and "pattern_lenp" parameters. Remove
3786 cleanups.
3787 (find_command): Update.
3788
a9921622
TT
37892017-09-11 Tom Tromey <tom@tromey.com>
3790
3791 * cli/cli-script.c (class scoped_restore_hook_in): New.
3792 (clear_hook_in_cleanup): Remove.
3793 (execute_cmd_pre_hook, execute_cmd_post_hook): Use
3794 scoped_restore_hook_in.
3795
be0d7abb
TT
37962017-09-11 Tom Tromey <tom@tromey.com>
3797
3798 * cli/cli-script.c (restore_interp): Remove.
3799 (read_command_lines): Use scoped_restore_interp.
3800 * interps.c (scoped_restore_interp::set_temp): Rename from
3801 interp_set_temp.
3802 * interps.h (class scoped_restore_interp): New.
3803 (interp_set_temp): Remove.
3804
00f675ff
TT
38052017-09-11 Tom Tromey <tom@tromey.com>
3806
3807 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
3808 (mi_cmd_catch_exception, mi_catch_load_unload): Update.
3809 * mi/mi-cmd-break.c (setup_breakpoint_reporting): Return a
3810 scoped_restore.
3811 (mi_cmd_break_insert_1): Update.
3812 * mi/mi-cmd-break.h (setup_breakpoint_reporting): Return a
3813 scoped_restore.
3814
cb791d59
TT
38152017-09-11 Tom Tromey <tom@tromey.com>
3816
3817 * demangle.c (demangle_command): Update.
3818 * breakpoint.c (disable_command): Update.
3819 (enable_command): Update.
3820 (find_location_by_number): Make "number" const. Use
3821 get_number_trailer.
3822 * cli/cli-utils.c (extract_arg): Return std::string.
3823 * probe.c (parse_probe_linespec): Update. Change types.
3824 (collect_probes): Take string arguments.
3825 (parse_probe_linespec): Likewise.
3826 (info_probes_for_ops): Update.
3827 (enable_probes_command): Update.
3828 (disable_probes_command): Update.
3829 * break-catch-sig.c (catch_signal_split_args): Update.
3830 * mi/mi-parse.c (mi_parse): Update.
3831
2039bd9f
TT
38322017-09-11 Tom Tromey <tom@tromey.com>
3833
3834 * language.h (language_enum): Make argument const.
3835 * language.c (language_enum): Make argument const.
3836
f1735a53
TT
38372017-09-11 Tom Tromey <tom@tromey.com>
3838
3839 * common/common-utils.h (skip_to_space): Remove macro, redeclare
3840 as function.
3841 (skip_to_space): Rename from skip_to_space_const.
3842 * common/common-utils.c (skip_to_space): New function.
3843 (skip_to_space): Rename from skip_to_space_const.
3844 * cli/cli-utils.h (get_number): Rename from get_number_const.
3845 (extract_arg): Rename from extract_arg_const.
3846 * cli/cli-utils.c (get_number): Rename from get_number_const.
3847 (extract_arg): Rename from extract_arg_const.
3848 (number_or_range_parser::get_number): Use ::get_number.
3849 * aarch64-linux-tdep.c, ada-lang.c, arm-linux-tdep.c, ax-gdb.c,
3850 break-catch-throw.c, breakpoint.c, cli/cli-cmds.c, cli/cli-dump.c,
3851 cli/cli-script.c, cli/cli-setshow.c, compile/compile.c,
3852 completer.c, demangle.c, disasm.c, findcmd.c, linespec.c,
3853 linux-tdep.c, linux-thread-db.c, location.c, mi/mi-parse.c,
3854 minsyms.c, nat/linux-procfs.c, printcmd.c, probe.c,
3855 python/py-breakpoint.c, record.c, rust-exp.y, serial.c, stack.c,
3856 stap-probe.c, tid-parse.c, tracepoint.c: Update all callers.
3857
7d221d74
TT
38582017-09-11 Tom Tromey <tom@tromey.com>
3859
3860 * python/python.c (do_start_initialization): Use
3861 py-event-types.def to initialize types.
3862 Define all object type structures.
3863 * python/python-internal.h: Don't declare event initialization
3864 functions.
3865 * python/py-threadevent.c (thread_event_object_type): Don't
3866 define.
3867 * python/py-stopevent.c (stop_event_object_type): Don't define.
3868 * python/py-signalevent.c (signal_event_object_type): Don't
3869 declare or define.
3870 * python/py-newobjfileevent.c (new_objfile_event_object_type)
3871 (clear_objfiles_event_object_type): Don't declare or define.
3872 * python/py-infevents.c (inferior_call_pre_event_object_type)
3873 (inferior_call_post_event_object_type)
3874 (register_changed_event_object_type)
3875 (memory_changed_event_object_type): Don't declare or define.
3876 * python/py-inferior.c (new_thread_event_object_type)
3877 (new_inferior_event_object_type)
3878 (inferior_deleted_event_object_type): Don't declare or define.
3879 * python/py-exitedevent.c (exited_event_object_type): Don't
3880 declare or define.
3881 * python/py-evts.c (gdbpy_initialize_py_events): Use
3882 py-all-events.def.
3883 * python/py-events.h (thread_event_object_type): Don't declare.
3884 (events_object): Use py-all-events.def.
3885 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove. Use
3886 py-event-types.def.
3887 * python/py-event-types.def: New file.
3888 * python/py-continueevent.c (create_continue_event_object): Don't
3889 declare or define.
3890 * python/py-bpevent.c (breakpoint_event_object_type): Don't
3891 declare or define.
3892 * python/py-all-events.def: New file.
3893
35c61a1d
TT
38942017-09-11 Tom Tromey <tom@tromey.com>
3895
3896 * python/py-threadevent.c (create_thread_event_object): Return
3897 gdbpy_ref.
3898 * python/py-stopevent.h (create_stop_event_object)
3899 (create_breakpoint_event_object, create_signal_event_object):
3900 Update.
3901 * python/py-stopevent.c (create_stop_event_object): Return
3902 gdbpy_ref.
3903 (emit_stop_event): Update.
3904 * python/py-signalevent.c (create_signal_event_object): Return
3905 gdbpy_ref.
3906 * python/py-infevents.c (create_inferior_call_event_object):
3907 Update.
3908 * python/py-event.h (create_event_object)
3909 (create_thread_event_object): Update.
3910 * python/py-event.c (create_event_object): Return gdbpy_ref.
3911 * python/py-continueevent.c: Return gdbpy_ref.
3912 * python/py-bpevent.c (create_breakpoint_event_object): Return
3913 gdbpy_ref.
3914
7c96f8c1
TT
39152017-09-11 Tom Tromey <tom@tromey.com>
3916
3917 PR python/15622:
3918 * NEWS: Add entry.
3919 * python/python.c (do_start_initialization): Initialize new event
3920 types.
3921 * python/python-internal.h (gdbpy_initialize_new_inferior_event)
3922 (gdbpy_initialize_inferior_deleted_event)
3923 (gdbpy_initialize_new_thread_event): Declare.
3924 * python/py-threadevent.c (create_thread_event_object): Add option
3925 "thread" parameter.
3926 * python/py-inferior.c (new_thread_event_object_type)
3927 (new_inferior_event_object_type)
3928 (inferior_deleted_event_object_type): Declare.
3929 (python_new_inferior, python_inferior_deleted): New functions.
3930 (add_thread_object): Emit new_thread event.
3931 (gdbpy_initialize_inferior): Attach new functions to corresponding
3932 observers.
3933 (new_thread, new_inferior, inferior_deleted): Define new event
3934 types.
3935 * python/py-evts.c (gdbpy_initialize_py_events): Add new
3936 registries.
3937 * python/py-events.h (events_object) <new_inferior,
3938 inferior_deleted, new_thread>: New fields.
3939 * python/py-event.h (create_thread_event_breakpoint): Add optional
3940 "thread" parameter.
3941
72542b8e
AB
39422017-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
3943
3944 * utils.c (abort_with_message): Don't compare gdb_stderr to NULL,
3945 check current_ui instead.
3946 (internal_vproblem): Likewise.
3947
0d64823e
SM
39482017-09-09 Simon Marchi <simon.marchi@ericsson.com>
3949
3950 * thread.c (print_thread_info_1): Remove unnecessary calls to
3951 uiout->is_mi_like_p.
3952
eb1e02fd
TT
39532017-09-09 Tom Tromey <tom@tromey.com>
3954
3955 * namespace.h (add_using_directive): Update.
3956 * namespace.c (add_using_directive): Change type of excludes to
3957 std::vector.
3958 * dwarf2read.c (read_import_statement): Use std::vector.
3959 (read_namespace): Update.
3960 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3961
0fc21fd8
TT
39622017-09-09 Tom Tromey <tom@tromey.com>
3963
3964 * linespec.c (create_sals_line_offset): Use gdb::def_vector.
3965
49663d05
TT
39662017-09-09 Tom Tromey <tom@tromey.com>
3967
3968 * p-valprint.c (pascal_object_print_value): Use gdb::byte_vector.
3969
0b868b60
TT
39702017-09-09 Tom Tromey <tom@tromey.com>
3971
3972 * stack.c (func_command): Use gdb::def_vector.
3973
c0470d48
TT
39742017-09-09 Tom Tromey <tom@tromey.com>
3975
3976 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Use gdb::optional,
3977 ui_out_emit_list, ui_out_emit_tuple.
3978 (mi_cmd_var_update): Likewise.
3979
ca5909c7
TT
39802017-09-09 Tom Tromey <tom@tromey.com>
3981
3982 * mi/mi-interp.c (mi_user_selected_context_changed): Use
3983 ui_out_redirect_pop.
3984 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
3985 ui_out_redirect_pop.
3986 * utils.c (do_ui_out_redirect_pop)
3987 (make_cleanup_ui_out_redirect_pop): Remove.
3988 * top.c (execute_command_to_string): Use ui_out_redirect_pop.
3989 * utils.h (make_cleanup_ui_out_redirect_pop): Remove.
3990 * ui-out.h (ui_out_redirect_pop): New class.
3991
e6a2252a
TT
39922017-09-09 Tom Tromey <tom@tromey.com>
3993
3994 * mi/mi-main.c (output_cores): Use ui_out_emit_list.
3995 (list_available_thread_groups, mi_cmd_list_thread_groups)
3996 (mi_cmd_data_list_changed_registers, mi_cmd_data_read_memory)
3997 (mi_cmd_data_read_memory_bytes, mi_cmd_trace_frame_collected):
3998 Likewise.
3999
393702cd
TT
40002017-09-09 Tom Tromey <tom@tromey.com>
4001
4002 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
4003 ui_out_emit_tuple.
4004
76f9c9cf
TT
40052017-09-09 Tom Tromey <tom@tromey.com>
4006
4007 * target.c (flash_erase_command): Use ui_out_emit_tuple.
4008 * stack.c (print_frame): Use ui_out_emit_tuple.
4009 * spu-tdep.c (info_spu_event_command): Use ui_out_emit_tuple.
4010 (info_spu_mailbox_command, info_spu_dma_command)
4011 (info_spu_proxydma_command): Likewise.
4012 * mi/mi-main.c (mi_cmd_trace_frame_collected): Use
4013 ui_out_emit_tuple, gdb::byte_vector, bin2hex.
4014 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
4015 ui_out_emit_tuple.
4016 * breakpoint.c (print_it_watchpoint): Use ui_out_emit_tuple.
4017
dc9fe180
TT
40182017-09-09 Tom Tromey <tom@tromey.com>
4019
4020 * ui-out.h (make_cleanup_ui_out_table_begin_end): Remove.
4021 (class ui_out_emit_table): Update comment.
4022 * ui-out.c (do_cleanup_table_end)
4023 (make_cleanup_ui_out_table_begin_end): Remove.
4024 * spu-tdep.c (info_spu_mailbox_list): Use ui_out_emit_table.
4025 (info_spu_dma_cmdlist): Likewise.
4026 * probe.c (info_probes_for_ops): Use ui_out_emit_table.
4027 * darwin-nat-info.c (darwin_debug_regions_recurse): Use
4028 ui_out_emit_table.
4029
f8cc3da6
TT
40302017-09-09 Tom Tromey <tom@tromey.com>
4031
4032 * thread.c (print_thread_info_1): Use ui_out_emit_table,
4033 ui_out_emit_list, gdb::optional.
4034
481695ed
JB
40352017-09-09 John Baldwin <jhb@FreeBSD.org>
4036
4037 * aarch64-linux-nat.c: Remove _initialize_aarch64_linux_nat
4038 prototype.
4039 * aarch64-linux-tdep.c: Remove _initialize_aarch64_linux_tdep
4040 prototype.
4041 * aarch64-newlib-tdep.c: Remove _initialize_aarch64_newlib_tdep
4042 prototype.
4043 * aarch64-tdep.c: Remove _initialize_aarch64_tdep prototype.
4044 * ada-exp.y: Remove _initialize_ada_exp prototype.
4045 * ada-lang.c: Remove _initialize_ada_language prototype.
4046 * ada-tasks.c: Remove _initialize_tasks prototype.
4047 * addrmap.c: Remove _initialize_addrmap prototype.
4048 * agent.c: Remove _initialize_agent prototype.
4049 * aix-thread.c: Remove _initialize_aix_thread prototype.
4050 * alpha-bsd-nat.c: Remove _initialize_alphabsd_nat prototype.
4051 * alpha-linux-nat.c: Remove _initialize_alpha_linux_nat prototype.
4052 * alpha-linux-tdep.c: Remove _initialize_alpha_linux_tdep
4053 prototype.
4054 * alpha-nbsd-tdep.c: Remove _initialize_alphanbsd_tdep prototype.
4055 * alpha-obsd-tdep.c: Remove _initialize_alphaobsd_tdep prototype.
4056 * alpha-tdep.c: Remove _initialize_alpha_tdep prototype.
4057 * amd64-darwin-tdep.c: Remove _initialize_amd64_darwin_tdep
4058 prototype.
4059 * amd64-dicos-tdep.c: Remove _initialize_amd64_dicos_tdep
4060 prototype.
4061 * amd64-fbsd-nat.c: Remove _initialize_amd64fbsd_nat prototype.
4062 * amd64-fbsd-tdep.c: Remove _initialize_amd64fbsd_tdep prototype.
4063 * amd64-linux-nat.c: Remove _initialize_amd64_linux_nat prototype.
4064 * amd64-linux-tdep.c: Remove _initialize_amd64_linux_tdep
4065 prototype.
4066 * amd64-nbsd-nat.c: Remove _initialize_amd64nbsd_nat prototype.
4067 * amd64-nbsd-tdep.c: Remove _initialize_amd64nbsd_tdep prototype.
4068 * amd64-obsd-nat.c: Remove _initialize_amd64obsd_nat prototype.
4069 * amd64-obsd-tdep.c: Remove _initialize_amd64obsd_tdep prototype.
4070 * amd64-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
4071 * amd64-tdep.c: Remove _initialize_amd64_tdep prototype.
4072 * amd64-windows-nat.c: Remove _initialize_amd64_windows_nat
4073 prototype.
4074 * amd64-windows-tdep.c: Remove _initialize_amd64_windows_tdep
4075 prototype.
4076 * annotate.c: Remove _initialize_annotate prototype.
4077 * arc-newlib-tdep.c: Remove _initialize_arc_newlib_tdep prototype.
4078 * arc-tdep.c: Remove _initialize_arc_tdep prototype.
4079 * arch-utils.c: Remove _initialize_gdbarch_utils prototype.
4080 * arm-linux-nat.c: Remove _initialize_arm_linux_nat prototype.
4081 * arm-linux-tdep.c: Remove _initialize_arm_linux_tdep prototype.
4082 * arm-nbsd-tdep.c: Remove _initialize_arm_netbsd_tdep prototype.
4083 * arm-obsd-tdep.c: Remove _initialize_armobsd_tdep prototype.
4084 * arm-symbian-tdep.c: Remove _initialize_arm_symbian_tdep
4085 prototype.
4086 * arm-tdep.c: Remove _initialize_arm_tdep prototype.
4087 * arm-wince-tdep.c: Remove _initialize_arm_wince_tdep prototype.
4088 * auto-load.c: Remove _initialize_auto_load prototype.
4089 * auxv.c: Remove _initialize_auxv prototype.
4090 * avr-tdep.c: Remove _initialize_avr_tdep prototype.
4091 * ax-gdb.c: Remove _initialize_ax_gdb prototype.
4092 * bfin-linux-tdep.c: Remove _initialize_bfin_linux_tdep prototype.
4093 * bfin-tdep.c: Remove _initialize_bfin_tdep prototype.
4094 * break-catch-sig.c: Remove _initialize_break_catch_sig prototype.
4095 * break-catch-syscall.c: Remove _initialize_break_catch_syscall
4096 prototype.
4097 * break-catch-throw.c: Remove _initialize_break_catch_throw
4098 prototype.
4099 * breakpoint.c: Remove _initialize_breakpoint prototype.
4100 * bsd-uthread.c: Remove _initialize_bsd_uthread prototype.
4101 * btrace.c: Remove _initialize_btrace prototype.
4102 * charset.c: Remove _initialize_charset prototype.
4103 * cli/cli-cmds.c: Remove _initialize_cli_cmds prototype.
4104 * cli/cli-dump.c: Remove _initialize_cli_dump prototype.
4105 * cli/cli-interp.c: Remove _initialize_cli_interp prototype.
4106 * cli/cli-logging.c: Remove _initialize_cli_logging prototype.
4107 * cli/cli-script.c: Remove _initialize_cli_script prototype.
4108 * coff-pe-read.c: Remove _initialize_coff_pe_read prototype.
4109 * coffread.c: Remove _initialize_coffread prototype.
4110 * compile/compile.c: Remove _initialize_compile prototype.
4111 * complaints.c: Remove _initialize_complaints prototype.
4112 * completer.c: Remove _initialize_completer prototype.
4113 * copying.awk: Remove _initialize_copying prototype.
4114 * copying.c: Regenerate.
4115 * core-regset.c: Remove _initialize_core_regset prototype.
4116 * corefile.c: Remove _initialize_core prototype.
4117 * corelow.c: Remove _initialize_corelow prototype.
4118 * cp-abi.c: Remove _initialize_cp_abi prototype.
4119 * cp-namespace.c: Remove _initialize_cp_namespace prototype.
4120 * cp-support.c: Remove _initialize_cp_support prototype.
4121 * cp-valprint.c: Remove _initialize_cp_valprint prototype.
4122 * cris-linux-tdep.c: Remove _initialize_cris_linux_tdep prototype.
4123 * cris-tdep.c: Remove _initialize_cris_tdep prototype.
4124 * ctf.c: Remove _initialize_ctf prototype.
4125 * d-lang.c: Remove _initialize_d_language prototype.
4126 * darwin-nat-info.c: Remove _initialize_darwin_info_commands
4127 prototype.
4128 * darwin-nat.c: Remove _initialize_darwin_inferior prototype.
4129 * dbxread.c: Remove _initialize_dbxread prototype.
4130 * dcache.c: Remove _initialize_dcache prototype.
4131 * demangle.c: Remove _initialize_demangler prototype.
4132 * disasm-selftests.c: Remove _initialize_disasm_selftests
4133 prototype.
4134 * disasm.c: Remove _initialize_disasm prototype.
4135 * dtrace-probe.c: Remove _initialize_dtrace_probe prototype.
4136 * dummy-frame.c: Remove _initialize_dummy_frame prototype.
4137 * dwarf2-frame-tailcall.c: Remove _initialize_tailcall_frame
4138 prototype.
4139 * dwarf2-frame.c: Remove _initialize_dwarf2_frame prototype.
4140 * dwarf2expr.c: Remove _initialize_dwarf2expr prototype.
4141 * dwarf2loc.c: Remove _initialize_dwarf2loc prototype.
4142 * dwarf2read.c: Remove _initialize_dwarf2_read prototype.
4143 * elfread.c: Remove _initialize_elfread prototype.
4144 * exec.c: Remove _initialize_exec prototype.
4145 * extension.c: Remove _initialize_extension prototype.
4146 * f-lang.c: Remove _initialize_f_language prototype.
4147 * f-valprint.c: Remove _initialize_f_valprint prototype.
4148 * fbsd-nat.c: Remove _initialize_fbsd_nat prototype.
4149 * fbsd-tdep.c: Remove _initialize_fbsd_tdep prototype.
4150 * filesystem.c: Remove _initialize_filesystem prototype.
4151 * findcmd.c: Remove _initialize_mem_search prototype.
4152 * fork-child.c: Remove _initialize_fork_child prototype.
4153 * frame-base.c: Remove _initialize_frame_base prototype.
4154 * frame-unwind.c: Remove _initialize_frame_unwind prototype.
4155 * frame.c: Remove _initialize_frame prototype.
4156 * frv-linux-tdep.c: Remove _initialize_frv_linux_tdep prototype.
4157 * frv-tdep.c: Remove _initialize_frv_tdep prototype.
4158 * ft32-tdep.c: Remove _initialize_ft32_tdep prototype.
4159 * gcore.c: Remove _initialize_gcore prototype.
4160 * gdb_bfd.c: Remove _initialize_gdb_bfd prototype.
4161 * gdbarch.c: Regenerate.
4162 * gdbarch.sh: Remove _initialize_gdbarch prototype.
4163 * gdbtypes.c: Remove _initialize_gdbtypes prototype.
4164 * gnu-nat.c: Remove _initialize_gnu_nat prototype.
4165 * gnu-v2-abi.c: Remove _initialize_gnu_v2_abi prototype.
4166 * gnu-v3-abi.c: Remove _initialize_gnu_v3_abi prototype.
4167 * go-lang.c: Remove _initialize_go_language prototype.
4168 * go32-nat.c: Remove _initialize_go32_nat prototype.
4169 * guile/guile.c: Remove _initialize_guile prototype.
4170 * h8300-tdep.c: Remove _initialize_h8300_tdep prototype.
4171 * hppa-linux-nat.c: Remove _initialize_hppa_linux_nat prototype.
4172 * hppa-linux-tdep.c: Remove _initialize_hppa_linux_tdep prototype.
4173 * hppa-nbsd-nat.c: Remove _initialize_hppanbsd_nat prototype.
4174 * hppa-nbsd-tdep.c: Remove _initialize_hppanbsd_tdep prototype.
4175 * hppa-obsd-nat.c: Remove _initialize_hppaobsd_nat prototype.
4176 * hppa-obsd-tdep.c: Remove _initialize_hppaobsd_tdep prototype.
4177 * hppa-tdep.c: Remove _initialize_hppa_tdep prototype.
4178 * i386-bsd-nat.c: Remove _initialize_i386bsd_nat prototype.
4179 * i386-cygwin-tdep.c: Remove _initialize_i386_cygwin_tdep
4180 prototype.
4181 * i386-darwin-tdep.c: Remove _initialize_i386_darwin_tdep
4182 prototype.
4183 * i386-dicos-tdep.c: Remove _initialize_i386_dicos_tdep prototype.
4184 * i386-fbsd-nat.c: Remove _initialize_i386fbsd_nat prototype.
4185 * i386-fbsd-tdep.c: Remove _initialize_i386fbsd_tdep prototype.
4186 * i386-gnu-nat.c: Remove _initialize_i386gnu_nat prototype.
4187 * i386-gnu-tdep.c: Remove _initialize_i386gnu_tdep prototype.
4188 * i386-linux-nat.c: Remove _initialize_i386_linux_nat prototype.
4189 * i386-linux-tdep.c: Remove _initialize_i386_linux_tdep prototype.
4190 * i386-nbsd-nat.c: Remove _initialize_i386nbsd_nat prototype.
4191 * i386-nbsd-tdep.c: Remove _initialize_i386nbsd_tdep prototype.
4192 * i386-nto-tdep.c: Remove _initialize_i386nto_tdep prototype.
4193 * i386-obsd-nat.c: Remove _initialize_i386obsd_nat prototype.
4194 * i386-obsd-tdep.c: Remove _initialize_i386obsd_tdep prototype.
4195 * i386-sol2-nat.c: Remove _initialize_amd64_sol2_nat prototype.
4196 * i386-sol2-tdep.c: Remove _initialize_amd64_sol2_tdep prototype.
4197 * i386-tdep.c: Remove _initialize_i386_tdep prototype.
4198 * i386-windows-nat.c: Remove _initialize_i386_windows_nat
4199 prototype.
4200 * ia64-libunwind-tdep.c: Remove _initialize_libunwind_frame
4201 prototype.
4202 * ia64-linux-nat.c: Remove _initialize_ia64_linux_nat prototype.
4203 * ia64-linux-tdep.c: Remove _initialize_ia64_linux_tdep prototype.
4204 * ia64-tdep.c: Remove _initialize_ia64_tdep prototype.
4205 * ia64-vms-tdep.c: Remove _initialize_ia64_vms_tdep prototype.
4206 * infcall.c: Remove _initialize_infcall prototype.
4207 * infcmd.c: Remove _initialize_infcmd prototype.
4208 * inferior.c: Remove _initialize_inferiors prototype.
4209 * inflow.c: Remove _initialize_inflow prototype.
4210 * infrun.c: Remove _initialize_infrun prototype.
4211 * interps.c: Remove _initialize_interpreter prototype.
4212 * iq2000-tdep.c: Remove _initialize_iq2000_tdep prototype.
4213 * jit.c: Remove _initialize_jit prototype.
4214 * language.c: Remove _initialize_language prototype.
4215 * linux-fork.c: Remove _initialize_linux_fork prototype.
4216 * linux-nat.c: Remove _initialize_linux_nat prototype.
4217 * linux-tdep.c: Remove _initialize_linux_tdep prototype.
4218 * linux-thread-db.c: Remove _initialize_thread_db prototype.
4219 * lm32-tdep.c: Remove _initialize_lm32_tdep prototype.
4220 * m2-lang.c: Remove _initialize_m2_language prototype.
4221 * m32c-tdep.c: Remove _initialize_m32c_tdep prototype.
4222 * m32r-linux-nat.c: Remove _initialize_m32r_linux_nat prototype.
4223 * m32r-linux-tdep.c: Remove _initialize_m32r_linux_tdep prototype.
4224 * m32r-tdep.c: Remove _initialize_m32r_tdep prototype.
4225 * m68hc11-tdep.c: Remove _initialize_m68hc11_tdep prototype.
4226 * m68k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
4227 * m68k-bsd-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
4228 * m68k-linux-nat.c: Remove _initialize_m68k_linux_tdep prototype.
4229 * m68k-linux-tdep.c: Remove _initialize_m68k_linux_tdep prototype.
4230 * m68k-tdep.c: Remove _initialize_m68k_tdep prototype.
4231 * m88k-bsd-nat.c: Remove _initialize_m68kbsd_nat prototype.
4232 * m88k-tdep.c: Remove _initialize_m68kbsd_tdep prototype.
4233 * machoread.c: Remove _initialize_machoread prototype.
4234 * macrocmd.c: Remove _initialize_macrocmd prototype.
4235 * macroscope.c: Remove _initialize_macroscope prototype.
4236 * maint.c: Remove _initialize_maint_cmds prototype.
4237 * mdebugread.c: Remove _initialize_mdebugread prototype.
4238 * memattr.c: Remove _initialize_mem prototype.
4239 * mep-tdep.c: Remove _initialize_mep_tdep prototype.
4240 * mi/mi-cmd-env.c: Remove _initialize_mi_cmd_env prototype.
4241 * mi/mi-cmds.c: Remove _initialize_mi_cmds prototype.
4242 * mi/mi-interp.c: Remove _initialize_mi_interp prototype.
4243 * mi/mi-main.c: Remove _initialize_mi_main prototype.
4244 * microblaze-linux-tdep.c: Remove
4245 _initialize_microblaze_linux_tdep prototype.
4246 * microblaze-tdep.c: Remove _initialize_microblaze_tdep prototype.
4247 * mips-fbsd-nat.c: Remove _initialize_mips_fbsd_nat prototype.
4248 * mips-fbsd-tdep.c: Remove _initialize_mips_fbsd_tdep prototype.
4249 * mips-linux-nat.c: Remove _initialize_mips_linux_nat prototype.
4250 * mips-linux-tdep.c: Remove _initialize_mips_linux_tdep prototype.
4251 * mips-nbsd-nat.c: Remove _initialize_mipsnbsd_nat prototype.
4252 * mips-nbsd-tdep.c: Remove _initialize_mipsnbsd_tdep prototype.
4253 * mips-sde-tdep.c: Remove _initialize_mips_sde_tdep prototype.
4254 * mips-tdep.c: Remove _initialize_mips_tdep prototype.
4255 * mips64-obsd-nat.c: Remove _initialize_mips64obsd_nat prototype.
4256 * mips64-obsd-tdep.c: Remove _initialize_mips64obsd_tdep
4257 prototype.
4258 * mipsread.c: Remove _initialize_mipsread prototype.
4259 * mn10300-linux-tdep.c: Remove _initialize_mn10300_linux_tdep
4260 prototype.
4261 * mn10300-tdep.c: Remove _initialize_mn10300_tdep prototype.
4262 * moxie-tdep.c: Remove _initialize_moxie_tdep prototype.
4263 * msp430-tdep.c: Remove _initialize_msp430_tdep prototype.
4264 * mt-tdep.c: Remove _initialize_mt_tdep prototype.
4265 * nds32-tdep.c: Remove _initialize_nds32_tdep prototype.
4266 * nios2-linux-tdep.c: Remove _initialize_nios2_linux_tdep
4267 prototype.
4268 * nios2-tdep.c: Remove _initialize_nios2_tdep prototype.
4269 * nto-procfs.c: Remove _initialize_procfs prototype.
4270 * nto-tdep.c: Remove _initialize_nto_tdep prototype.
4271 * objc-lang.c: Remove _initialize_objc_language prototype.
4272 * objfiles.c: Remove _initialize_objfiles prototype.
4273 * observer.c: Remove observer_test_first_notification_function,
4274 observer_test_second_notification_function,
4275 observer_test_third_notification_function, and
4276 _initialize_observer prototypes.
4277 * opencl-lang.c: Remove _initialize_opencl_language prototypes.
4278 * osabi.c: Remove _initialize_gdb_osabi prototype.
4279 * osdata.c: Remove _initialize_osdata prototype.
4280 * p-valprint.c: Remove _initialize_pascal_valprint prototype.
4281 * parse.c: Remove _initialize_parse prototype.
4282 * ppc-fbsd-nat.c: Remove _initialize_ppcfbsd_nat prototype.
4283 * ppc-fbsd-tdep.c: Remove _initialize_ppcfbsd_tdep prototype.
4284 * ppc-linux-nat.c: Remove _initialize_ppc_linux_nat prototype.
4285 * ppc-linux-tdep.c: Remove _initialize_ppc_linux_tdep prototype.
4286 * ppc-nbsd-nat.c: Remove _initialize_ppcnbsd_nat prototype.
4287 * ppc-nbsd-tdep.c: Remove _initialize_ppcnbsd_tdep prototype.
4288 * ppc-obsd-nat.c: Remove _initialize_ppcobsd_nat prototype.
4289 * ppc-obsd-tdep.c: Remove _initialize_ppcobsd_tdep prototype.
4290 * printcmd.c: Remove _initialize_printcmd prototype.
4291 * probe.c: Remove _initialize_probe prototype.
4292 * proc-api.c: Remove _initialize_proc_api prototype.
4293 * proc-events.c: Remove _initialize_proc_events prototype.
4294 * proc-service.c: Remove _initialize_proc_service prototype.
4295 * procfs.c: Remove _initialize_procfs prototype.
4296 * psymtab.c: Remove _initialize_psymtab prototype.
4297 * python/python.c: Remove _initialize_python prototype.
4298 * ravenscar-thread.c: Remove _initialize_ravenscar prototype.
4299 * record-btrace.c: Remove _initialize_record_btrace prototype.
4300 * record-full.c: Remove _initialize_record_full prototype.
4301 * record.c: Remove _initialize_record prototype.
4302 * regcache.c: Remove _initialize_regcache prototype.
4303 * reggroups.c: Remove _initialize_reggroup prototype.
4304 * remote-notif.c: Remove _initialize_notif prototype.
4305 * remote-sim.c: Remove _initialize_remote_sim prototype.
4306 * remote.c: Remove _initialize_remote prototype.
4307 * reverse.c: Remove _initialize_reverse prototype.
4308 * rl78-tdep.c: Remove _initialize_rl78_tdep prototype.
4309 * rs6000-aix-tdep.c: Remove _initialize_rs6000_aix_tdep prototype.
4310 * rs6000-lynx178-tdep.c: Remove _initialize_rs6000_lynx178_tdep
4311 prototype.
4312 * rs6000-nat.c: Remove _initialize_rs6000_nat prototype.
4313 * rs6000-tdep.c: Remove _initialize_rs6000_tdep prototype.
4314 * rust-exp.y: Remove _initialize_rust_exp prototype.
4315 * rx-tdep.c: Remove _initialize_rx_tdep prototype.
4316 * s390-linux-nat.c: Remove _initialize_s390_nat prototype.
4317 * s390-linux-tdep.c: Remove _initialize_s390_tdep prototype.
4318 * score-tdep.c: Remove _initialize_score_tdep prototype.
4319 * selftest-arch.c: Remove _initialize_selftests_foreach_arch
4320 prototype.
4321 * ser-go32.c: Remove _initialize_ser_dos prototype.
4322 * ser-mingw.c: Remove _initialize_ser_windows prototype.
4323 * ser-pipe.c: Remove _initialize_ser_pipe prototype.
4324 * ser-tcp.c: Remove _initialize_ser_tcp prototype.
4325 * ser-unix.c: Remove _initialize_ser_hardwire prototype.
4326 * serial.c: Remove _initialize_serial prototype.
4327 * sh-linux-tdep.c: Remove _initialize_sh_linux_tdep prototype.
4328 * sh-nbsd-nat.c: Remove _initialize_shnbsd_nat prototype.
4329 * sh-nbsd-tdep.c: Remove _initialize_shnbsd_tdep prototype.
4330 * sh-tdep.c: Remove _initialize_sh_tdep prototype.
4331 * skip.c: Remove _initialize_step_skip prototype.
4332 * sol-thread.c: Remove _initialize_sol_thread prototype.
4333 * solib-aix.c: Remove _initialize_solib_aix prototype.
4334 * solib-darwin.c: Remove _initialize_darwin_solib prototype.
4335 * solib-dsbt.c: Remove _initialize_dsbt_solib prototype.
4336 * solib-frv.c: Remove _initialize_frv_solib prototype.
4337 * solib-spu.c: Remove _initialize_spu_solib prototype.
4338 * solib-svr4.c: Remove _initialize_svr4_solib prototype.
4339 * solib-target.c: Remove _initialize_solib_target prototype.
4340 * solib.c: Remove _initialize_solib prototype.
4341 * source.c: Remove _initialize_source prototype.
4342 * sparc-linux-nat.c: Remove _initialize_sparc_linux_nat prototype.
4343 * sparc-linux-tdep.c: Remove _initialize_sparc_linux_tdep
4344 prototype.
4345 * sparc-nat.c: Remove _initialize_sparc_nat prototype.
4346 * sparc-nbsd-nat.c: Remove _initialize_sparcnbsd_nat prototype.
4347 * sparc-nbsd-tdep.c: Remove _initialize_sparcnbsd_tdep prototype.
4348 * sparc-obsd-tdep.c: Remove _initialize_sparc32obsd_tdep
4349 prototype.
4350 * sparc-sol2-nat.c: Remove _initialize_sparc_sol2_nat prototype.
4351 * sparc-sol2-tdep.c: Remove _initialize_sparc_sol2_tdep prototype.
4352 * sparc-tdep.c: Remove _initialize_sparc_tdep prototype.
4353 * sparc64-fbsd-nat.c: Remove _initialize_sparc64fbsd_nat
4354 prototype.
4355 * sparc64-fbsd-tdep.c: Remove _initialize_sparc64fbsd_tdep
4356 prototype.
4357 * sparc64-linux-nat.c: Remove _initialize_sparc64_linux_nat
4358 prototype.
4359 * sparc64-linux-tdep.c: Remove _initialize_sparc64_linux_tdep
4360 prototype.
4361 * sparc64-nat.c: Remove _initialize_sparc64_nat prototype.
4362 * sparc64-nbsd-nat.c: Remove _initialize_sparc64nbsd_nat
4363 prototype.
4364 * sparc64-nbsd-tdep.c: Remove _initialize_sparc64nbsd_tdep
4365 prototype.
4366 * sparc64-obsd-nat.c: Remove _initialize_sparc64obsd_nat
4367 prototype.
4368 * sparc64-obsd-tdep.c: Remove _initialize_sparc64obsd_tdep
4369 prototype.
4370 * sparc64-sol2-tdep.c: Remove _initialize_sparc64_sol2_tdep
4371 prototype.
4372 * spu-linux-nat.c: Remove _initialize_spu_nat prototype.
4373 * spu-multiarch.c: Remove _initialize_spu_multiarch prototype.
4374 * spu-tdep.c: Remove _initialize_spu_tdep prototype.
4375 * stabsread.c: Remove _initialize_stabsread prototype.
4376 * stack.c: Remove _initialize_stack prototype.
4377 * stap-probe.c: Remove _initialize_stap_probe prototype.
4378 * std-regs.c: Remove _initialize_frame_reg prototype.
4379 * symfile-debug.c: Remove _initialize_symfile_debug prototype.
4380 * symfile-mem.c: Remove _initialize_symfile_mem prototype.
4381 * symfile.c: Remove _initialize_symfile prototype.
4382 * symmisc.c: Remove _initialize_symmisc prototype.
4383 * symtab.c: Remove _initialize_symtab prototype.
4384 * target-dcache.c: Remove _initialize_target_dcache prototype.
4385 * target-descriptions.c: Remove _initialize_target_descriptions
4386 prototype.
4387 * thread.c: Remove _initialize_thread prototype.
4388 * tic6x-linux-tdep.c: Remove _initialize_tic6x_linux_tdep
4389 prototype.
4390 * tic6x-tdep.c: Remove _initialize_tic6x_tdep prototype.
4391 * tilegx-linux-nat.c: Remove _initialize_tile_linux_nat prototype.
4392 * tilegx-linux-tdep.c: Remove _initialize_tilegx_linux_tdep
4393 prototype.
4394 * tilegx-tdep.c: Remove _initialize_tilegx_tdep prototype.
4395 * tracefile-tfile.c: Remove _initialize_tracefile_tfile prototype.
4396 * tracefile.c: Remove _initialize_tracefile prototype.
4397 * tracepoint.c: Remove _initialize_tracepoint prototype.
4398 * tui/tui-hooks.c: Remove _initialize_tui_hooks prototype.
4399 * tui/tui-interp.c: Remove _initialize_tui_interp prototype.
4400 * tui/tui-layout.c: Remove _initialize_tui_layout prototype.
4401 * tui/tui-regs.c: Remove _initialize_tui_regs prototype.
4402 * tui/tui-stack.c: Remove _initialize_tui_stack prototype.
4403 * tui/tui-win.c: Remove _initialize_tui_win prototype.
4404 * tui/tui.c: Remove _initialize_tui prototype.
4405 * typeprint.c: Remove _initialize_typeprint prototype.
4406 * user-regs.c: Remove _initialize_user_regs prototype.
4407 * utils.c: Remove _initialize_utils prototype.
4408 * v850-tdep.c: Remove _initialize_v850_tdep prototype.
4409 * valarith.c: Remove _initialize_valarith prototype.
4410 * valops.c: Remove _initialize_valops prototype.
4411 * valprint.c: Remove _initialize_valprint prototype.
4412 * value.c: Remove _initialize_values prototype.
4413 * varobj.c: Remove _initialize_varobj prototype.
4414 * vax-bsd-nat.c: Remove _initialize_vaxbsd_nat prototype.
4415 * vax-nbsd-tdep.c: Remove _initialize_vaxnbsd_tdep prototype.
4416 * vax-tdep.c: Remove _initialize_vax_tdep prototype.
4417 * windows-nat.c: Remove _initialize_windows_nat,
4418 _initialize_check_for_gdb_ini, and _initialize_loadable
4419 prototypes.
4420 * windows-tdep.c: Remove _initialize_windows_tdep prototype.
4421 * xcoffread.c: Remove _initialize_xcoffread prototype.
4422 * xml-support.c: Remove _initialize_xml_support prototype.
4423 * xstormy16-tdep.c: Remove _initialize_xstormy16_tdep prototype.
4424 * xtensa-linux-nat.c: Remove _initialize_xtensa_linux_nat
4425 prototype.
4426 * xtensa-linux-tdep.c: Remove _initialize_xtensa_linux_tdep
4427 prototype.
4428 * xtensa-tdep.c: Remove _initialize_xtensa_tdep prototype.
4429
a611b5cb
KS
44302017-09-08 Keith Seitz <keiths@redhat.com>
4431
4432 * dwarf2read.c (struct field_info) <fnfields>: Remove unused
4433 field.
4434
469412dd
CW
44352017-09-08 Christoph Weinmann <christoph.t.weinmann@intel.com>
4436
4437 * f-valprint.c (f_val_print): Remove check for one byte
4438 sized integers. Remove printing of character type.
4439
a5ad232b
FP
44402017-09-08 Frank Penczek <frank.penczek@intel.com>
4441 Christoph Weinmann <christoph.t.weinmann@intel.com>
4442 Bernhard Heckel <bernhard.heckel@intel.com>
4443
4444 * f-typeprint.c (f_type_print_base): Use fprintfi_filtered
4445 to maintain proper indentation when printing pointers/refs.
4446
e5014227
JB
44472017-09-07 Joel Brobecker <brobecker@adacore.com>
4448
4449 GDB 8.0.1 released.
4450
63c99141
JB
44512017-09-07 Joel Brobecker <brobecker@adacore.com>
4452
4453 * NEWS (Changes in GDB 7.11): Remove entry for QStartupWithShell.
4454
69c1e056
TT
44552017-09-05 Tom Tromey <tom@tromey.com>
4456
4457 * parse.c (funcall_chain): Now a std::vector.
4458 (start_arglist, end_arglist): Simplify.
4459 (free_funcalls): Remove.
4460 (parse_exp_in_context_1): Remove cleanup.
4461
fef704bf
TT
44622017-09-05 Tom Tromey <tom@tromey.com>
4463
4464 * go-exp.y (go_parse): Don't create a cleanup.
4465
5613c585
TT
44662017-09-05 Tom Tromey <tom@tromey.com>
4467
4468 * d-exp.y (PrimaryExpression): Use std::string.
4469 (d_parse): Don't create a cleanup.
4470
eae49211
TT
44712017-09-05 Tom Tromey <tom@tromey.com>
4472
4473 * utils.c (do_clear_parser_state): Remove.
4474 (make_cleanup_clear_parser_state): Remove.
4475 * p-exp.y (pascal_parse): Use scoped_restore.
4476 * m2-exp.y (m2_parse): Use scoped_restore.
4477 * f-exp.y (f_parse): Use scoped_restore.
4478 * d-exp.y (d_parse): Use scoped_restore.
4479 * c-exp.y (c_parse): Use scoped_restore.
4480 * ada-exp.y (ada_parse): Use scoped_restore.
4481 * utils.h (make_cleanup_clear_parser_state): Remove.
4482
73b9be8b
KS
44832017-09-06 Keith Seitz <keiths@redhat.com>
4484
4485 * dwarf2read.c (dw2_linkage_name_attr): New function.
4486 (dw2_linkage_name): New function.
4487 (dwarf2_compute_name, dwarf2_physname, read_call_site_scope)
4488 (guess_full_die_structure_name, dwarf2_name): Use dw2_linkage_name.
4489 (anonymous_struct_prefix, dwarf2_name): Use dw2_linkage_name_attr.
4490
a102602b
KR
44912017-09-06 Kamil Rytarowski <n54@gmx.com>
4492
4493 * config/djgpp/djconfig.sh: Correct shell portability issue.
4494
28ad437d
KR
44952017-09-06 Kamil Rytarowski <n54@gmx.com>
4496
4497 * configure.nat: Define HAVE_NATIVE_GCORE_HOST on NetBSD.
4498
351787dd
JB
44992017-09-06 John Baldwin <jhb@FreeBSD.org>
4500
4501 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
4502 * NEWS: Mention new FreeBSD/mips native configuration.
4503 * configure.host: Add aarch64*-*-freebsd*.
4504 * configure.nat: Likewise.
4505 * aarch64-fbsd-nat.c: New file.
4506
c0f84956
JB
45072017-09-06 John Baldwin <jhb@FreeBSD.org>
4508
4509 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-fbsd-tdep.o.
4510 (ALLDEPFILES): Add aarch64-fbsd-tdep.c.
4511 * NEWS: Mention new FreeBSD/aarch64 target.
4512 * configure.tgt: Add aarch64*-*-freebsd*.
4513 * aarch64-fbsd-tdep.c: New file.
4514 * aarch64-fbsd-tdep.h: New file.
4515
7610297a
KR
45162017-09-06 Kamil Rytarowski <n54@gmx.com>
4517
4518 * MAINTAINERS (Write After Approval): Add Kamil Rytarowski.
4519
fbd1b771
JK
45202017-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4521
4522 * parse.c (find_minsym_type_and_address): Don't relocate addresses
4523 of TLS symbols.
4524
5ca79eae
PW
45252017-09-05 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4526
4527 * objfiles.c (get_objfile_bfd_data): Remove useless obstack_init
4528 call.
4529
bf93d7ba
SM
45302017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4531
4532 * infrun.c (follow_exec): Call add_thread after
4533 target_find_description.
4534
1bb7c059
SM
45352017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4536
4537 * infrun.c (handle_inferior_event_1): When exec'ing, read
4538 stop_pc after follow_exec.
4539
fc809827
SM
45402017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4541
4542 * remote.c (process_g_packet): Update error message.
4543
d2fcdd85
YQ
45442017-09-05 Yao Qi <yao.qi@linaro.org>
4545
4546 * configure.tgt (gdb_target_obs): Add i386.o for x86_64-*
4547 targets.
4548
e69570ee
PA
45492017-09-05 Pedro Alves <palves@redhat.com>
4550
4551 * eval.c (eval_call, evaluate_funcall): New functions, factored
4552 out from ...
4553 (evaluate_subexp_standard): ... this.
4554
22916b07
YQ
45552017-09-05 Yao Qi <yao.qi@linaro.org>
4556
4557 * amd64-tdep.c (amd64_target_description): Create target
4558 descriptions.
4559 (_initialize_amd64_tdep): Don't call functions
4560 initialize_tdesc_amd64_*. Add self tests.
4561 * arch/amd64.c (amd64_create_target_description): Add parameter
4562 is_linux. Call set_tdesc_osabi if is_linux is true.
4563 * arch/amd64.h (amd64_create_target_description): Update the
4564 declaration.
4565 * arch/i386.c (i386_create_target_description): Add parameter
4566 is_linux. Call set_tdesc_osabi if is_linux is true.
4567 * arch/i386.h (i386_create_target_description): Update
4568 declaration.
4569 * configure.tgt: Add i386.o to gdb_target_obs.
4570 * features/Makefile (XMLTOC): Remove i386/*.xml.
4571 * features/i386/amd64-avx-avx512.c: Remove.
4572 * features/i386/amd64-avx-mpx-avx512-pku.c: Remove.
4573 * features/i386/amd64-avx-mpx.c: Remove.
4574 * features/i386/amd64-avx.c: Remove.
4575 * features/i386/amd64-mpx.c: Remove.
4576 * features/i386/amd64.c: Remove.
4577 * features/i386/i386-avx-avx512.c: Remove.
4578 * features/i386/i386-avx-mpx-avx512-pku.c: Remove.
4579 * features/i386/i386-avx-mpx.c: Remove.
4580 * features/i386/i386-avx.c: Remove.
4581 * features/i386/i386-mmx.c: Remove.
4582 * features/i386/i386-mpx.c: Remove.
4583 * features/i386/i386.c: Remove.
4584 * i386-tdep.c: Don't include features/i386/i386*.c., include
4585 target-descriptions.h and arch/i386.h.
4586 (i386_target_description): Create target descriptions.
4587 (i386_gdbarch_init): Don't call initialize_tdesc_i386_*
4588 functions. Do self tests.
4589
0854b7b1
YQ
45902017-09-05 Yao Qi <yao.qi@linaro.org>
4591
4592 * features/Makefile (XMLTOC): Remove i386/amd64XXX-linux.xml.
4593 * features/i386/amd64-avx-avx512-linux.c: Removed.
4594 * features/i386/amd64-avx-linux.c: Removed.
4595 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Removed.
4596 * features/i386/amd64-avx-mpx-linux.c: Removed.
4597 * features/i386/amd64-linux.c: Removed.
4598 * features/i386/amd64-mpx-linux.c: Removed.
4599 * features/i386/x32-avx-avx512-linux.c: Removed.
4600 * features/i386/x32-avx-linux.c: Removed.
4601 * features/i386/x32-linux.c: Removed.
4602
b4570e4b
YQ
46032017-09-05 Yao Qi <yao.qi@linaro.org>
4604
4605 * amd64-linux-tdep.c: Include arch/amd64.h. Don't include
4606 features/i386/*.c.
4607 (amd64_linux_read_description): Call
4608 amd64_create_target_description.
4609 * arch/amd64.c: New file.
4610 * arch/amd64.h: New file.
4611 * configure.tgt (x86_64-*-linux*): Append amd64.o.
4612 * Makefile.in (ALL_64_TARGET_OBS): Append amd64.o.
4613
6c73f67f
YQ
46142017-09-05 Yao Qi <yao.qi@linaro.org>
4615
4616 * amd64-linux-tdep.c: Don't include amd64-XXX-linux and
4617 x32-XXX-linux.c. Include 64bit-XX.c and x32-XX.c.
4618 (amd64_linux_read_description): Create target descriptions.
4619 (_initialize_amd64_linux_tdep): Don't call initialize_tdesc_XXX
4620 functions. Add unit tests.
4621 * features/Makefile (FEATURE_XMLFILES): Append 64bit-XXX.xml and
4622 x32-core.xml.
4623 * features/i386/64bit-avx.c: Generated.
4624 * features/i386/64bit-avx512.c: Generated.
4625 * features/i386/64bit-core.c: Generated.
4626 * features/i386/64bit-linux.c: Generated.
4627 * features/i386/64bit-mpx.c: Generated.
4628 * features/i386/64bit-pkeys.c: Generated.
4629 * features/i386/64bit-segments.c: Generated.
4630 * features/i386/64bit-sse.c: Generated.
4631 * features/i386/x32-core.c: Generated.
4632 * target-descriptions.c (maint_print_c_tdesc_cmd): Print feature
4633 c files for amd64-linux and x32-linux.
4634
9d3d478b
YQ
46352017-09-05 Yao Qi <yao.qi@linaro.org>
4636
4637 * amd64-linux-tdep.c (amd64_linux_read_description): New
4638 function.
4639 (amd64_linux_core_read_description): Call
4640 amd64_linux_read_description.
4641 (amd64_linux_init_abi): Likewise.
4642 (amd64_x32_linux_init_abi): Likewise.
4643 * amd64-linux-tdep.h (amd64_linux_read_description): Declare.
4644 * x86-linux-nat.c (x86_linux_read_description): Call
4645 amd64_linux_read_description.
4646
b9f1d50f
YQ
46472017-09-05 Yao Qi <yao.qi@linaro.org>
4648
4649 * amd64-linux-tdep.c (amd64_linux_core_read_description): Update
4650 comments.
4651
188c9e6d
YQ
46522017-09-05 Yao Qi <yao.qi@linaro.org>
4653
4654 * features/Makefile (XMLTOC): Remove i386/i386-XX-linux.xml.
4655 * features/i386/i386-avx-avx512-linux.c: Remove.
4656 * features/i386/i386-avx-linux.c: Remove.
4657 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Remove.
4658 * features/i386/i386-avx-mpx-linux.c: Remove.
4659 * features/i386/i386-linux.c: Remove.
4660 * features/i386/i386-mmx-linux.c: Remove.
4661 * features/i386/i386-mpx-linux.c: Remove.
4662
5f035c07
YQ
46632017-09-05 Yao Qi <yao.qi@linaro.org>
4664
4665 * Makefile.in (ALL_TARGET_OBS): Add i386.o.
4666 (SFILES): Add arch/i386.c.
4667 (HFILES_NO_SRCDIR): Add arch/i386.h.
4668 * arch/i386.c: New file.
4669 * arch/i386.h: New file.
4670 * arch/tdesc.h (allocate_target_description): Declare.
4671 (set_tdesc_architecture): Declare.
4672 (set_tdesc_osabi): Declare.
4673 * configure.tgt (i[34567]86-*-linux*): Add i386.o.
4674 * i386-linux-tdep.c: Don't include ../features/i386/32bit-XXX.c.
4675 include arch/i386.h.
4676 (i386_linux_read_description): Remove code and call
4677 i386_create_target_description.
4678 (set_tdesc_architecture): New function.
4679 (set_tdesc_osabi): New function.
4680 * target-descriptions.h (allocate_target_description): Remove.
4681
0abe8a89
YQ
46822017-09-05 Yao Qi <yao.qi@linaro.org>
4683
4684 * arch/tdesc.h (tdesc_create_feature): Add an argument xml.
4685 * target-descriptions.c (tdesc_create_feature): Likewise, and
4686 adjust code.
4687 * features/i386/32bit-avx.c: Re-generated.
4688 * features/i386/32bit-avx512.c: Re-generated.
4689 * features/i386/32bit-core.c: Re-generated.
4690 * features/i386/32bit-linux.c: Re-generated.
4691 * features/i386/32bit-mpx.c: Re-generated.
4692 * features/i386/32bit-pkeys.c: Re-generated.
4693 * features/i386/32bit-sse.c: Re-generated.
4694
0a188386
YQ
46952017-09-05 Yao Qi <yao.qi@linaro.org>
4696
4697 * regformats/regdef.h (struct reg): Override operator == and !=.
4698
f49ff000
YQ
46992017-09-05 Yao Qi <yao.qi@linaro.org>
4700
4701 * arch/tdesc.h: New file.
4702 * regformats/regdat.sh: Generate code using tdesc_create_reg.
4703 * target-descriptions.c: Update comments.
4704 * target-descriptions.h: Include "arch/tdesc.h". Remove the
4705 declarations.
4706 * features/i386/32bit-avx.c: Re-generated.
4707 * features/i386/32bit-avx512.c: Re-generated.
4708 * features/i386/32bit-core.c: Re-generated.
4709 * features/i386/32bit-linux.c: Re-generated.
4710 * features/i386/32bit-mpx.c: Re-generated.
4711 * features/i386/32bit-pkeys.c: Re-generated.
4712 * features/i386/32bit-sse.c: Re-generated.
4713
f7000548
YQ
47142017-09-05 Yao Qi <yao.qi@linaro.org>
4715
4716 * regformats/regdat.sh: Update generated code.
4717
c9a5e2a5
YQ
47182017-09-05 Yao Qi <yao.qi@linaro.org>
4719
4720 * regformats/regdat.sh: Adjust code order.
4721
d6b687ac
SM
47222017-09-05 Simon Marchi <simon.marchi@ericsson.com>
4723
4724 * expprint.c (dump_subexp_body_standard): Use constant format
4725 string in fprintf_filtered call.
4726
a379bfd0
JB
47272017-09-04 John Baldwin <jhb@FreeBSD.org>
4728
4729 * configure.nat: Add "x86-nat.o x86-dregs.o" for NetBSD/amd64 and
4730 NetBSD/i386.
4731 * x86-bsd-nat.c [!DBREG_DRX && __NetBSD__]: Define DBREG_DRX.
4732
f7efc967
JB
47332017-09-04 John Baldwin <jhb@FreeBSD.org>
4734
4735 * bsd-kvm.o: Make <sys/user.h> conditional on HAVE_SYS_USER_H.
4736
c49fbc6c
JB
47372017-09-04 John Baldwin <jhb@FreeBSD.org>
4738
4739 * bsd-kvm.o: Define _KMEMUSER.
4740 * configure.ac: Define _KMEMUSER when checking for "struct lwp".
4741 * configure: Regenerate.
4742
26562e73
JB
47432017-09-04 John Baldwin <jhb@FreeBSD.org>
4744
4745 * amd64-fbsd-nat.c: Add include of "x86-xstate.h".
4746 * i386-fbsd-nat.c: Likewise.
4747
31cf1487
JB
47482017-09-04 John Baldwin <jhb@FreeBSD.org>
4749
4750 * unittests/array-view-selftests.c: Add include of <array>.
4751
5b9f8a7c
JB
47522017-09-04 John Baldwin <jhb@FreeBSD.org>
4753
4754 * spu-tdep.c (flush_ea_cache): Add missing argument to
4755 call_function_by_hand.
4756
d69cf9b2
PA
47572017-09-04 Pedro Alves <palves@redhat.com>
4758
4759 * NEWS (Safer support for debugging with no debug info): New.
4760
3693fdb3
PA
47612017-09-04 Pedro Alves <palves@redhat.com>
4762
4763 * c-exp.y (function_method, function_method_void): Add current
4764 instance flags to TYPE_INSTANCE.
4765 * dwarf2read.c (check_modifier): New.
4766 (compute_delayed_physnames): Assert that only C++ adds delayed
4767 physnames. Mark fn_fields as const/volatile depending on
4768 physname.
4769 * eval.c (make_params): New type_instance_flags parameter. Use
4770 it as the new type's instance flags.
4771 (evaluate_subexp_standard) <TYPE_INSTANCE>: Extract the instance
4772 flags element and pass it to make_params.
4773 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: Handle
4774 instance flags element.
4775 (dump_subexp_body_standard) <TYPE_INSTANCE>: Likewise.
4776 * gdbtypes.h: Include "enum-flags.h".
4777 (type_instance_flags): New enum-flags type.
4778 (TYPE_CONST, TYPE_VOLATILE, TYPE_RESTRICT, TYPE_ATOMIC)
4779 (TYPE_CODE_SPACE, TYPE_DATA_SPACE): Return boolean.
4780 * parse.c (operator_length_standard) <TYPE_INSTANCE>: Adjust.
4781 (follow_type_instance_flags): New function.
4782 (operator_check_standard) <TYPE_INSTANCE>: Adjust.
4783 * parser-defs.h (follow_type_instance_flags): Declare.
4784 * valops.c (value_struct_elt_for_reference): const/volatile must
4785 match too.
4786
e68cb8e0
PA
47872017-09-04 Pedro Alves <palves@redhat.com>
4788
4789 * cp-namespace.c (cp_search_static_and_baseclasses): Handle
4790 function/method scopes; lookup the nested name as a function local
4791 static variable.
4792
858be34c
PA
47932017-09-04 Pedro Alves <palves@redhat.com>
4794
4795 (%type <voidval>): Add function_method.
4796 * c-exp.y (exp): New production for calls with no arguments.
4797 (function_method, function_method_void_or_typelist): New
4798 productions.
4799 (exp): New production for "method()::static_var".
4800 * eval.c (evaluate_subexp_standard): Handle OP_FUNC_STATIC_VAR.
4801 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4802 Handle OP_FUNC_STATIC_VAR.
4803 * parse.c (operator_length_standard):
4804 Handle OP_FUNC_STATIC_VAR.
4805
dd5901a6
PA
48062017-09-04 Pedro Alves <palves@redhat.com>
4807
4808 * eval.c (evaluate_subexp_standard): Remove UNOP_MEMVAL_TLS
4809 handling.
4810 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4811 Ditto.
4812 * parse.c (operator_length_standard, operator_check_standard):
4813 Ditto.
4814 * std-operator.def (UNOP_MEMVAL_TLS): Delete.
4815
46a4882b
PA
48162017-09-04 Pedro Alves <palves@redhat.com>
4817
4818 * ax-gdb.c: Include "typeprint.h".
4819 (gen_expr_for_cast): New function.
4820 (gen_expr) <OP_CAST, OP_CAST_TYPE>: Use it.
4821 <OP_VAR_VALUE, OP_MSYM_VAR_VALUE>: Error out if the variable's
4822 type is unknown.
4823 * dwarf2read.c (new_symbol_full): Fallback to int instead of
4824 nodebug_data_symbol.
4825 * eval.c: Include "typeprint.h".
4826 (evaluate_subexp_standard) <OP_VAR_VALUE, OP_VAR_MSYM_VALUE>:
4827 Error out if symbol has unknown type.
4828 <UNOP_CAST, UNOP_CAST_TYPE>: Common bits factored out to
4829 evaluate_subexp_for_cast.
4830 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof): Handle
4831 OP_VAR_MSYM_VALUE.
4832 (evaluate_subexp_for_cast): New function.
4833 * gdbtypes.c (init_nodebug_var_type): New function.
4834 (objfile_type): Use it to initialize types of variables with no
4835 debug info.
4836 * typeprint.c (error_unknown_type): New.
4837 * typeprint.h (error_unknown_type): New declaration.
4838 * compile/compile-c-types.c (convert_type_basic): Handle
4839 TYPE_CODE_ERROR; warn and fallback to int for variables with
4840 unknown type.
4841
fe13dfec
PA
48422017-09-04 Pedro Alves <palves@redhat.com>
4843
4844 * eval.c (evaluate_var_value): New function, factored out from ...
4845 (evaluate_subexp_standard): ... here.
4846
d008ee21
PA
48472017-09-04 Pedro Alves <palves@redhat.com>
4848
4849 * eval.c (evaluate_subexp_standard) <UNOP_COMPLEMENT, UNOP_ADDR>:
4850 Remove useless assignments to 'op'.
4851
827d0c51
PA
48522017-09-04 Pedro Alves <palves@redhat.com>
4853
4854 * eval.c (eval_skip_value): New function.
4855 (evaluate_subexp_standard): Use it.
4856
2c5a2be1
PA
48572017-09-04 Pedro Alves <palves@redhat.com>
4858
4859 * eval.c (evaluate_subexp_standard): <OP_FUNCALL>: Extract
4860 function name from symbol/minsym and pass it to
4861 error_call_unknown_return_type.
4862
74ea4be4
PA
48632017-09-04 Pedro Alves <palves@redhat.com>
4864
4865 * ada-lang.c (resolve_subexp): Handle OP_VAR_MSYM_VALUE.
4866 * ax-gdb.c (gen_msym_var_ref): New function.
4867 (gen_expr): Handle OP_VAR_MSYM_VALUE.
4868 * eval.c (evaluate_var_msym_value): New function.
4869 * eval.c (evaluate_subexp_standard): Handle OP_VAR_MSYM_VALUE.
4870 <OP_FUNCALL>: Extract function name from symbol/minsym and pass it
4871 to call_function_by_hand.
4872 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
4873 Handle OP_VAR_MSYM_VALUE.
4874 (union exp_element) <msymbol>: New field.
4875 * minsyms.h (struct type): Forward declare.
4876 (find_minsym_type_and_address): Declare.
4877 * parse.c (write_exp_elt_msym): New function.
4878 (write_exp_msymbol): Delete, refactored as ...
4879 (find_minsym_type_and_address): ... this new function.
4880 (write_exp_msymbol): Reimplement using OP_VAR_MSYM_VALUE.
4881 (operator_length_standard, operator_check_standard): Handle
4882 OP_VAR_MSYM_VALUE.
4883 * std-operator.def (OP_VAR_MSYM_VALUE): New.
4884
7022349d
PA
48852017-09-04 Pedro Alves <palves@redhat.com>
4886
4887 * ada-lang.c (ada_evaluate_subexp) <TYPE_CODE_FUNC>: Don't handle
4888 TYPE_GNU_IFUNC specially here. Throw error if return type is
4889 unknown.
4890 * ada-typeprint.c (print_func_type): Handle functions with unknown
4891 return type.
4892 * c-typeprint.c (c_type_print_base): Handle functions and methods
4893 with unknown return type.
4894 * compile/compile-c-symbols.c (convert_symbol_bmsym)
4895 <mst_text_gnu_ifunc>: Use nodebug_text_gnu_ifunc_symbol.
4896 * compile/compile-c-types.c: Include "objfiles.h".
4897 (convert_func): For functions with unknown return type, warn and
4898 default to int.
4899 * compile/compile-object-run.c (compile_object_run): Adjust call
4900 to call_function_by_hand_dummy.
4901 * elfread.c (elf_gnu_ifunc_resolve_addr): Adjust call to
4902 call_function_by_hand.
4903 * eval.c (evaluate_subexp_standard): Adjust calls to
4904 call_function_by_hand. Handle functions and methods with unknown
4905 return type. Pass expect_type to call_function_by_hand.
4906 * f-typeprint.c (f_type_print_base): Handle functions with unknown
4907 return type.
4908 * gcore.c (call_target_sbrk): Adjust call to
4909 call_function_by_hand.
4910 * gdbtypes.c (objfile_type): Leave nodebug text symbol with NULL
4911 return type instead of int. Make nodebug_text_gnu_ifunc_symbol be
4912 an integer address type instead of nodebug.
4913 * guile/scm-value.c (gdbscm_value_call): Adjust call to
4914 call_function_by_hand.
4915 * infcall.c (error_call_unknown_return_type): New function.
4916 (call_function_by_hand): New "default_return_type" parameter.
4917 Pass it down.
4918 (call_function_by_hand_dummy): New "default_return_type"
4919 parameter. Use it instead of defaulting to int. If there's no
4920 default and the return type is unknown, throw an error. If
4921 there's a default return type, and the called function has no
4922 debug info, then assume the function is prototyped.
4923 * infcall.h (call_function_by_hand, call_function_by_hand_dummy):
4924 New "default_return_type" parameter.
4925 (error_call_unknown_return_type): New declaration.
4926 * linux-fork.c (call_lseek): Cast return type of lseek.
4927 (inferior_call_waitpid, checkpoint_command): Adjust calls to
4928 call_function_by_hand.
4929 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): Adjust
4930 calls to call_function_by_hand.
4931 * m2-typeprint.c (m2_procedure): Handle functions with unknown
4932 return type.
4933 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4934 (value_nsstring, print_object_command): Adjust calls to
4935 call_function_by_hand.
4936 * p-typeprint.c (pascal_type_print_varspec_prefix): Handle
4937 functions with unknown return type.
4938 (pascal_type_print_func_varspec_suffix): New function.
4939 (pascal_type_print_varspec_suffix) <TYPE_CODE_FUNC,
4940 TYPE_CODE_METHOD>: Use it.
4941 * python/py-value.c (valpy_call): Adjust call to
4942 call_function_by_hand.
4943 * rust-lang.c (rust_evaluate_funcall): Adjust call to
4944 call_function_by_hand.
4945 * valarith.c (value_x_binop, value_x_unop): Adjust calls to
4946 call_function_by_hand.
4947 * valops.c (value_allocate_space_in_inferior): Adjust call to
4948 call_function_by_hand.
4949 * typeprint.c (type_print_unknown_return_type): New function.
4950 * typeprint.h (type_print_unknown_return_type): New declaration.
4951
54990598
PA
49522017-09-04 Pedro Alves <palves@redhat.com>
4953
4954 * gdbtypes.c (lookup_function_type_with_arguments): Mark function
4955 types with more than one parameter as prototyped.
4956
9a24775b
PA
49572017-09-04 Pedro Alves <palves@redhat.com>
4958
4959 * cli/cli-cmds.c (print_disassembly, disassemble_current_function)
4960 (disassemble_command): Use gdb_disassembly_flags instead of bare
4961 int.
4962 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn)
4963 (dump_insns, do_mixed_source_and_assembly_deprecated)
4964 (do_mixed_source_and_assembly, do_assembly_only, gdb_disassembly):
4965 Use gdb_disassembly_flags instead of bare int.
4966 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED, DISASSEMBLY_RAW_INSN)
4967 (DISASSEMBLY_OMIT_FNAME, DISASSEMBLY_FILENAME)
4968 (DISASSEMBLY_OMIT_PC, DISASSEMBLY_SOURCE)
4969 (DISASSEMBLY_SPECULATIVE): No longer macros. Instead they're...
4970 (enum gdb_disassembly_flag): ... values of this new enumeration.
4971 (gdb_disassembly_flags): Define.
4972 (gdb_disassembly)
4973 (gdb_pretty_print_disassembler::pretty_print_insn): Use it.
4974 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Use
4975 gdb_disassembly_flags instead of bare int.
4976 * record-btrace.c (btrace_insn_history)
4977 (record_btrace_insn_history, record_btrace_insn_history_range)
4978 (record_btrace_insn_history_from): Use gdb_disassembly_flags
4979 instead of bare int.
4980 * record.c (get_insn_history_modifiers, cmd_record_insn_history):
4981 Use gdb_disassembly_flags instead of bare int.
4982 * target-debug.h (target_debug_print_gdb_disassembly_flags):
4983 Define.
4984 * target-delegates.c: Regenerate.
4985 * target.c (target_insn_history, target_insn_history_from)
4986 (target_insn_history_range): Use gdb_disassembly_flags instead of
4987 bare int.
4988 * target.h: Include "disasm.h".
4989 (struct target_ops) <to_insn_history, to_insn_history_from,
4990 to_insn_history_range>: Use gdb_disassembly_flags instead of bare
4991 int.
4992 (target_insn_history, target_insn_history_from)
4993 (target_insn_history_range): Use gdb_disassembly_flags instead of
4994 bare int.
4995
80a65e9b
SM
49962017-09-04 Simon Marchi <simon.marchi@ericsson.com>
4997
4998 * cli/cli-script.c (build_command_line): For if/while commands,
4999 check whether args is empty.
5000
6b66338c
SM
50012017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5002
5003 * cli/cli-script.h (enum misc_command_type): Move from defs.h.
5004 (enum command_control_type): Likewise.
5005 (struct command_line): Likewise.
5006 (free_command_lines): Likewise.
5007 (struct command_lines_deleter): Likewise.
5008 (command_line_up): Likewise.
5009 (read_command_lines): Likewise.
5010 (read_command_lines_1): Likewise.
5011 * defs.h (enum misc_command_type): Move to cli/cli-script.h.
5012 (enum command_control_type): Likewise.
5013 (struct command_line): Likewise.
5014 (free_command_lines): Likewise.
5015 (struct command_lines_deleter): Likewise.
5016 (command_line_up): Likewise.
5017 (read_command_lines): Likewise.
5018 (read_command_lines_1): Likewise.
5019 * breakpoint.h: Include cli/cli-script.h.
5020 * extension-priv.h: Likewise.
5021 * gdbcmd.h: Likewise.
5022
51abb421
PA
50232017-09-04 Pedro Alves <palves@redhat.com>
5024
5025 * ada-lang.c (is_known_support_routine): Move sal declaration to
5026 where it is initialized.
5027 * breakpoint.c (create_internal_breakpoint, init_catchpoint)
5028 (parse_breakpoint_sals, decode_static_tracepoint_spec)
5029 (clear_command, update_static_tracepoint): Remove init_sal
5030 references. Move declarations closer to initializations.
5031 * cli/cli-cmds.c (list_command): Move sal declarations closer to
5032 initializations.
5033 * elfread.c (elf_gnu_ifunc_resolver_stop): Remove init_sal
5034 references. Move sal declarations closer to initializations.
5035 * frame.c (find_frame_sal): Return a symtab_and_line via function
5036 return instead of output parameter. Remove init_sal references.
5037 * frame.h (find_frame_sal): Return a symtab_and_line via function
5038 return instead of output parameter.
5039 * guile/scm-frame.c (gdbscm_frame_sal): Adjust.
5040 * guile/scm-symtab.c (stscm_make_sal_smob): Use in-place new
5041 instead of memset.
5042 (gdbscm_find_pc_line): Remove init_sal reference.
5043 * infcall.c (call_function_by_hand_dummy): Remove init_sal
5044 references. Move declarations closer to initializations.
5045 * infcmd.c (set_step_frame): Update. Move declarations closer to
5046 initializations.
5047 (finish_backward): Remove init_sal references. Move declarations
5048 closer to initializations.
5049 * infrun.c (process_event_stop_test, handle_step_into_function)
5050 (insert_hp_step_resume_breakpoint_at_frame)
5051 (insert_step_resume_breakpoint_at_caller): Likewise.
5052 * linespec.c (create_sals_line_offset, decode_digits_ordinary)
5053 (symbol_to_sal): Likewise.
5054 * probe.c (parse_probes_in_pspace): Remove init_sal reference.
5055 * python/py-frame.c (frapy_find_sal): Move sal declaration closer
5056 to its initialization.
5057 * reverse.c (save_bookmark_command): Use new/delete. Remove
5058 init_sal references. Move declarations closer to initializations.
5059 * source.c (get_current_source_symtab_and_line): Remove brace
5060 initialization.
5061 (set_current_source_symtab_and_line): Now takes the sal by const
5062 reference. Remove brace initialization.
5063 (line_info): Remove init_sal reference.
5064 * source.h (set_current_source_symtab_and_line): Now takes a
5065 symtab_and_line via const reference.
5066 * stack.c (set_current_sal_from_frame): Adjust.
5067 (print_frame_info): Adjust.
5068 (get_last_displayed_sal): Return the sal via function return
5069 instead of via output parameter. Simplify.
5070 (frame_info): Adjust.
5071 * stack.h (get_last_displayed_sal): Return the sal via function
5072 return instead of via output parameter.
5073 * symtab.c (init_sal): Delete.
5074 (find_pc_sect_line): Remove init_sal references. Move
5075 declarations closer to initializations.
5076 (find_function_start_sal): Remove init_sal references. Move
5077 declarations closer to initializations.
5078 * symtab.h (struct symtab_and_line): In-class initialize all
5079 fields.
5080 * tracepoint.c (set_traceframe_context)
5081 (print_one_static_tracepoint_marker): Remove init_sal references.
5082 Move declarations closer to initializations.
5083 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Adjust.
5084 * tui/tui-stack.c (tui_show_frame_info): Adjust. Move
5085 declarations closer to initializations.
5086 * tui/tui-winsource.c (tui_update_source_window_as_is): Remove
5087 init_sal references. Adjust.
5088
6c5b2ebe
PA
50892017-09-04 Pedro Alves <palves@redhat.com>
5090
5091 * ax-gdb.c (agent_command_1): Use range-for.
5092 * break-catch-throw.c (re_set_exception_catchpoint): Update.
5093 * breakpoint.c: Include "common/array-view.h".
5094 (init_breakpoint_sal, create_breakpoint_sal): Change sals
5095 parameter from struct symtabs_and_lines to
5096 array_view<symtab_and_line>. Adjust. Use range-for. Update.
5097 (breakpoint_sals_to_pc): Change sals parameter from struct
5098 symtabs_and_lines to std::vector reference.
5099 (check_fast_tracepoint_sals): Change sals parameter from struct
5100 symtabs_and_lines to std::array_view. Use range-for.
5101 (decode_static_tracepoint_spec): Return a std::vector instead of
5102 symtabs_and_lines. Update.
5103 (create_breakpoint): Update.
5104 (break_range_command, until_break_command, clear_command): Update.
5105 (base_breakpoint_decode_location, bkpt_decode_location)
5106 (bkpt_probe_create_sals_from_location)
5107 (bkpt_probe_decode_location, tracepoint_decode_location)
5108 (tracepoint_probe_decode_location)
5109 (strace_marker_create_sals_from_location): Return a std::vector
5110 instead of symtabs_and_lines.
5111 (strace_marker_create_breakpoints_sal): Update.
5112 (strace_marker_decode_location): Return a std::vector instead of
5113 symtabs_and_lines. Update.
5114 (update_breakpoint_locations): Change struct symtabs_and_lines
5115 parameters to gdb::array_view. Adjust.
5116 (location_to_sals): Return a std::vector instead of
5117 symtabs_and_lines. Update.
5118 (breakpoint_re_set_default): Use std::vector instead of struct
5119 symtabs_and_lines.
5120 (decode_location_default): Return a std::vector instead of
5121 symtabs_and_lines. Update.
5122 * breakpoint.h: Include "common/array-view.h".
5123 (struct breakpoint_ops) <decode_location>: Now returns a
5124 std::vector instead of returning a symtabs_and_lines via output
5125 parameter.
5126 (update_breakpoint_locations): Change sals parameters to use
5127 gdb::array_view.
5128 * cli/cli-cmds.c (edit_command, list_command): Update to use
5129 std::vector and gdb::array_view.
5130 (ambiguous_line_spec): Adjust to use gdb::array_view and
5131 range-for.
5132 (compare_symtabs): Rename to ...
5133 (cmp_symtabs): ... this. Change parameters to symtab_and_line
5134 const reference and adjust.
5135 (filter_sals): Rewrite using std::vector and standard algorithms.
5136 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Simplify.
5137 (jump_command): Update to use std::vector.
5138 * linespec.c (struct linespec_state) <canonical_names>: Update
5139 comment.
5140 (add_sal_to_sals_basic): Delete.
5141 (add_sal_to_sals, filter_results, convert_results_to_lsals)
5142 (decode_line_2, create_sals_line_offset)
5143 (convert_address_location_to_sals, convert_linespec_to_sals)
5144 (convert_explicit_location_to_sals, parse_linespec)
5145 (event_location_to_sals, decode_line_full, decode_line_1)
5146 (decode_line_with_current_source)
5147 (decode_line_with_last_displayed, decode_objc)
5148 (decode_digits_list_mode, decode_digits_ordinary, minsym_found)
5149 (linespec_result::~linespec_result): Adjust to use std::vector
5150 instead of symtabs_and_lines.
5151 * linespec.h (linespec_sals::sals): Now a std::vector.
5152 (struct linespec_result): Use std::vector, bool, and in-class
5153 initialization.
5154 (decode_line_1, decode_line_with_current_source)
5155 (decode_line_with_last_displayed): Return std::vector.
5156 * macrocmd.c (info_macros_command): Use std::vector.
5157 * mi/mi-main.c (mi_cmd_trace_find): Use std::vector.
5158 * probe.c (parse_probes_in_pspace, parse_probes): Adjust to use
5159 std::vector.
5160 * probe.h (parse_probes): Return a std::vector.
5161 * python/python.c (gdbpy_decode_line): Use std::vector and
5162 gdb::array_view.
5163 * source.c (select_source_symtab, line_info): Use std::vector.
5164 * stack.c (func_command): Use std::vector.
5165 * symtab.h (struct symtabs_and_lines): Delete.
5166 * tracepoint.c (tfind_line_command, scope_info): Use std::vector.
5167
7c44b49c
PA
51682017-09-04 Pedro Alves <palves@redhat.com>
5169
5170 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
5171 unittests/array-view-selftests.c.
5172 (SUBDIR_UNITTESTS_OBS): Add array-view-selftests.o.
5173 * common/array-view.h: New file.
5174 * unittests/array-view-selftests.c: New file.
5175
e439fa14
PA
51762017-09-04 Pedro Alves <palves@redhat.com>
5177
5178 * cli/cli-cmds.c (edit_command): Pass message to
5179 ambiguous_line_spec.
5180 (list_command): Pass message to ambiguous_line_spec. Say
5181 "first"/"last" instead of "start" and "end" to be consistent with
5182 the manual.
5183 (ambiguous_line_spec): Add 'format' and vararg parameters. Use
5184 them to print formatted message.
5185
7525b645
PA
51862017-09-04 Pedro Alves <palves@redhat.com>
5187
5188 * btrace.c (ftrace_add_pt): Pass btrace_insn to
5189 ftrace_update_insns by reference instead of pointer.
5190
badc0020
YQ
51912017-09-04 Yao Qi <yao.qi@linaro.org>
5192
5193 * i386-go32-tdep.c: Include x86-xstate.h.
5194 (i386_go32_init_abi): Call i386_target_description.
5195 * i386-tdep.c (i386_target_description): Return tdesc_i386_mmx
5196 if xcr0 is X86_XSTATE_X87_MASK.
5197 * i386-tdep.h (tdesc_i386): Remove the declaration.
5198 (tdesc_i386_mmx): Likewise.
5199
d78bdb54
YQ
52002017-09-04 Yao Qi <yao.qi@linaro.org>
5201
5202 * i386-fbsd-tdep.c (i386fbsd_core_read_xcr0): Return
5203 X86_XSTATE_SSE_MASK instead of 0.
5204
ca1fa5ee
YQ
52052017-09-04 Yao Qi <yao.qi@linaro.org>
5206
5207 * amd64-fbsd-nat.c (amd64fbsd_read_description): Call
5208 i386_target_description.
5209 * i386-fbsd-nat.c (i386fbsd_read_description): Call
5210 i386_target_description.
5211 * i386-tdep.c (i386_gdbarch_init): Likewise.
5212
2434b019
YQ
52132017-09-04 Yao Qi <yao.qi@linaro.org>
5214
5215 * amd64-darwin-tdep.c: Include "x86-xstate.h".
5216 (x86_darwin_init_abi_64): Call amd64_target_description.
5217 * amd64-dicos-tdep.c: Likewise.
5218 * amd64-fbsd-nat.c: Likewise.
5219 * amd64-fbsd-tdep.c: Likewise.
5220 * amd64-nbsd-tdep.c: Likewise.
5221 * amd64-obsd-tdep.c: Likewise.
5222 * amd64-sol2-tdep.c: Likewise.
5223 * amd64-windows-tdep.c: Likewise.
5224 * amd64-tdep.h (tdesc_amd64): Remove the declaration.
5225
0860c437
SM
52262017-09-04 Simon Marchi <simon.marchi@ericsson.com>
5227
5228 * btrace.h (btrace_insn_s, DEF_VEC_O (btrace_insn_s)): Remove.
5229 (btrace_function) <insn>: Change type to use std::vector.
5230 * btrace.c (ftrace_debug, ftrace_call_num_insn,
5231 ftrace_find_call, ftrace_new_gap, ftrace_update_function,
5232 ftrace_update_insns, ftrace_compute_global_level_offset,
5233 btrace_stitch_bts, btrace_clear, btrace_insn_get,
5234 btrace_insn_end, btrace_insn_next, btrace_insn_prev): Adjust to
5235 change to std::vector.
5236 (ftrace_update_insns): Adjust to change to std::vector, change
5237 type of INSN parameter.
5238 (btrace_compute_ftrace_bts): Adjust call to ftrace_update_insns.
5239 * record-btrace.c (btrace_call_history_insn_range,
5240 btrace_compute_src_line_range,
5241 record_btrace_frame_prev_register): Adjust to change to
5242 std::vector.
5243 * python/py-record-btrace.c (recpy_bt_func_instructions): Adjust
5244 to change to std::vector.
5245
0638b7f9
TT
52462017-09-03 Tom Tromey <tom@tromey.com>
5247
5248 * corefile.c (reopen_exec_file): Use std::string.
5249
8f84fb0e
TT
52502017-09-03 Tom Tromey <tom@tromey.com>
5251
5252 * compile/compile.c (compile_register_name_mangled): Return
5253 std::string.
5254 * compile/compile-loc2c.c (pushf_register_address): Update.
5255 (pushf_register): Update.
5256 * compile/compile-c-types.c (convert_array): Update.
5257 * compile/compile-c-symbols.c (generate_vla_size): Update.
5258 (error_symbol_once): Use a gdb::unique_xmalloc_ptr.
5259 (symbol_substitution_name): Return a gdb::unique_xmalloc_ptr.
5260 (convert_one_symbol): Update.
5261 (generate_c_for_for_one_variable): Update.
5262 * compile/compile-c-support.c (c_get_range_decl_name): Return a
5263 std::string.
5264 (generate_register_struct): Update.
5265 * compile/compile-internal.h (c_get_range_decl_name): Return a
5266 std::string.
5267 (compile_register_name_mangled): Return std::string.
5268
18e9961f
TT
52692017-09-03 Tom Tromey <tom@tromey.com>
5270
5271 * utils.c (perror_string): Return a std::string.
5272 (throw_perror_with_name, perror_warning_with_name): Update.
5273
45343786
TT
52742017-09-03 Tom Tromey <tom@tromey.com>
5275
5276 * demangle.c (demangle_command): Use std::string,
5277 unique_xmalloc_ptr.
5278
b57af503
TT
52792017-09-03 Tom Tromey <tom@tromey.com>
5280
5281 * cli/cli-setshow.c (do_set_command): Use std::string.
5282
6eecf35f
TT
52832017-09-03 Tom Tromey <tom@tromey.com>
5284
5285 * cli/cli-cmds.c (cd_command): Use gdb::unique_xmalloc_ptr.
5286
56496dd4
TT
52872017-09-03 Tom Tromey <tom@tromey.com>
5288
5289 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use std::string.
5290
e91a1fa7
TT
52912017-09-03 Tom Tromey <tom@tromey.com>
5292
5293 * mi/mi-cmd-env.c (env_execute_cli_command): Use
5294 gdb::unique_xmalloc_ptr.
5295
7ffd83d7
TT
52962017-09-03 Tom Tromey <tom@tromey.com>
5297
5298 * thread.c (print_thread_info_1): Use string_printf.
5299 (thread_apply_command, thread_apply_all_command): Use
5300 std::string.
5301
1ccbe998
TT
53022017-09-03 Tom Tromey <tom@tromey.com>
5303
5304 * valprint.c (val_print_string): Update.
5305 * gdbcore.h (memory_error_message): Return std::string.
5306 * corefile.c (memory_error_message): Return std::string.
5307 (memory_error): Update.
5308 * breakpoint.c (insert_bp_location): Update.
5309
23fdd69e
SM
53102017-09-03 Simon Marchi <simon.marchi@ericsson.com>
5311
5312 * target/waitstatus.h (target_waitstatus_to_string): Change
5313 return type to std::string.
5314 * target/waitstatus.c (target_waitstatus_to_string): Return
5315 std::string.
5316 * target.h (target_waitstatus_to_string): Remove declaration.
5317 * infrun.c (resume, clear_proceed_status_thread,
5318 print_target_wait_results, do_target_wait, save_waitstatus,
5319 stop_all_threads): Adjust.
5320 * record-btrace.c (record_btrace_wait): Adjust.
5321 * target-debug.h
5322 (target_debug_print_struct_target_waitstatus_p): Adjust.
5323
5c811d30
JK
53242017-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5325
5326 PR gdb/22046
5327 * nat/linux-procfs.c (parse_proc_status_state): Fix PROC_STATE_STOPPED
5328 detection.
5329
0a2dde4a
SDJ
53302017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
5331
5332 * NEWS (Changes since GDB 8.0): Add entry mentioning new support
5333 for setting/unsetting environment variables on the remote target.
5334 (New remote packets): Add entries for QEnvironmentHexEncoded,
5335 QEnvironmentUnset and QEnvironmentReset.
5336 * common/environ.c (gdb_environ::operator=): Extend method to
5337 handle m_user_set_env_list and m_user_unset_env_list.
5338 (gdb_environ::clear): Likewise.
5339 (match_var_in_string): Change type of first parameter from 'char
5340 *' to 'const char *'.
5341 (gdb_environ::set): Extend method to handle
5342 m_user_set_env_list and m_user_unset_env_list.
5343 (gdb_environ::unset): Likewise.
5344 (gdb_environ::clear_user_set_env): New method.
5345 (gdb_environ::user_set_envp): Likewise.
5346 (gdb_environ::user_unset_envp): Likewise.
5347 * common/environ.h (gdb_environ): Handle m_user_set_env_list and
5348 m_user_unset_env_list on move constructor/assignment.
5349 (unset): Add new default parameter 'update_unset_list = true'.
5350 (clear_user_set_env): New method.
5351 (user_set_envp): Likewise.
5352 (user_unset_envp): Likewise.
5353 (m_user_set_env_list): New std::set.
5354 (m_user_unset_env_list): Likewise.
5355 * common/rsp-low.c (hex2str): New function.
5356 (bin2hex): New overload for bin2hex function.
5357 * common/rsp-low.c (hex2str): New prototype.
5358 (str2hex): New overload prototype.
5359 * remote.c: Include "environ.h". Add QEnvironmentHexEncoded,
5360 QEnvironmentUnset and QEnvironmentReset.
5361 (remote_protocol_features): Add QEnvironmentHexEncoded,
5362 QEnvironmentUnset and QEnvironmentReset packets.
5363 (send_environment_packet): New function.
5364 (extended_remote_environment_support): Likewise.
5365 (extended_remote_create_inferior): Call
5366 extended_remote_environment_support.
5367 (_initialize_remote): Add QEnvironmentHexEncoded,
5368 QEnvironmentUnset and QEnvironmentReset packet configs.
5369 * unittests/environ-selftests.c (gdb_selftest_env_var):
5370 New variable.
5371 (test_vector_initialization): New function.
5372 (test_init_from_host_environ): Likewise.
5373 (test_reinit_from_host_environ): Likewise.
5374 (test_set_A_unset_B_unset_A_cannot_find_A_can_find_B):
5375 Likewise.
5376 (test_unset_set_empty_vector): Likewise.
5377 (test_vector_clear): Likewise.
5378 (test_std_move): Likewise.
5379 (test_move_constructor):
5380 (test_self_move): Likewise.
5381 (test_set_unset_reset): Likewise.
5382 (run_tests): Rewrite in terms of the functions above.
5383
654670a4
WP
53842017-08-31 Weimin Pan <weimin.pan@oracle.com>
5385
5386 * sparc64-tdep.c (adi_stat_t): Fix comment formatting.
5387 (adi_available): Use a temp variable of type CORE_ADDR as argument
5388 3 when calling target_auxv_search.
5389 (adi_normalize_address): Use masks and xor operators to calculate
5390 normalized address.
5391 (adi_read_versions, adi_write_versions, adi_print_versions)
5392 (do_examine, do_assign): Use paddress.
5393
7755ddb7
JB
53942017-08-29 John Baldwin <jhb@FreeBSD.org>
5395
5396 * mips-fbsd-nat.c (getfpregs_supplies): Return true for FIR.
5397 * mips-fbsd-tdep.c (mips_fbsd_supply_fpregs): Split supply of FSR
5398 out of loop and add supply of FIR.
5399 (mips_fbsd_collect_fpregs): Split collect of FSR out of loop and
5400 add collect of FIR.
5401
fd437cbc
SM
54022017-08-28 Simon Marchi <simon.marchi@ericsson.com>
5403
3804a343 5404 PR gdb/21827
fd437cbc
SM
5405 * cli/cli-script.c (define_command): Don't convert command name
5406 to lower case.
5407
988f6b3d
JB
54082017-08-25 Joel Brobecker <brobecker@adacore.com>
5409
5410 * ada-lang.c (ada_lookup_struct_elt_type): Remove parameter "dispp".
5411 Update all callers accordingly. Remove all code blocks handling
5412 the case where DISPP is not NULL.
5413
663c44ac
JK
54142017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5415
5416 PR symtab/22003
5417 * dwarf2read.c (dwarf2_const_value_attr, dump_die_shallow)
5418 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
5419 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_implicit_const.
5420
f1902523
JK
54212017-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5422
5423 * dwarf2read.c (build_type_psymtabs_reader): New prototype.
5424 (process_psymtab_comp_unit): Accept IS_DEBUG_TYPES.
5425 (read_comp_units_from_section): New parameter abbrev_section, use
5426 read_and_check_comp_unit_head, allocate signatured_type if needed.
5427 (create_all_comp_units): Update read_comp_units_from_section caller.
5428
87215ad1
SDJ
54292017-08-23 Pedro Alves <palves@redhat.com>
5430
5431 PR remote/21852
5432 * remote.c (add_current_inferior_and_thread): Set inferior_ptid
5433 to null_ptid and switch to thread without reading the registers
5434 after adding the inferior.
5435
6e41ddec
JK
54362017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5437
5438 * NEWS (Changes since GDB 8.0): Add set compile-gcc and show
5439 compile-gcc.
5440 * compile/compile.c (compile_gcc, show_compile_gcc): New.
5441 (compile_to_object): Implement compile_gcc.
5442 (_initialize_compile): Install "set compile-gcc". Initialize
5443 compile_gcc.
5444
e68c32d5
JK
54452017-08-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5446
5447 * compile/compile.c (compile_to_object): Conditionally call
5448 set_verbose. Conditionally call compile or compile_v0.
5449
58afddc6
WP
54502017-08-07 Weimin Pan <weimin.pan@oracle.com>
5451
5452 * sparc64-tdep.h: (adi_normalize_address): New export.
5453 * sparc-nat.h: (open_adi_tag_fd): New export.
5454 * sparc64-linux-nat.c: (open_adi_tag_fd): New function.
5455 * sparc64-linux-tdep.c:
5456 (SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR) New defines.
5457 (sparc64_linux_handle_segmentation_fault): New function.
5458 (sparc64_linux_init_abi): Register
5459 sparc64_linux_handle_segmentation_fault
5460 * sparc64-tdep.c: Include cli-utils.h,gdbcmd.h,auxv.h.
5461 (sparc64_addr_bits_remove): New function.
5462 (sparc64_init_abi): Register sparc64_addr_bits_remove.
5463 (MAX_PROC_NAME_SIZE): New macro.
5464 (AT_ADI_BLKSZ, AT_ADI_NBITS, AT_ADI_UEONADI) New defines.
5465 (sparc64adilist): New variable.
5466 (adi_proc_list): New variable.
5467 (find_adi_info): New function.
5468 (add_adi_info): New function.
5469 (get_adi_info_proc): New function.
5470 (get_adi_info): New function.
5471 (info_adi_command): New function.
5472 (read_maps_entry): New function.
5473 (adi_available): New function.
5474 (adi_normalize_address): New function.
5475 (adi_align_address): New function.
5476 (adi_convert_byte_count): New function.
5477 (adi_tag_fd): New function.
5478 (adi_is_addr_mapped): New function.
5479 (adi_read_versions): New function.
5480 (adi_write_versions): New function.
5481 (adi_print_versions): New function.
5482 (do_examine): New function.
5483 (do_assign): New function.
5484 (adi_examine_command): New function.
5485 (adi_assign_command): New function.
5486 (_initialize_sparc64_adi_tdep): New function.
5487
11db9430
SM
54882017-08-22 Simon Marchi <simon.marchi@ericsson.com>
5489
5490 * breakpoint.c (breakpoints_info): Rename to ...
5491 (info_breakpoints_command): ... this.
5492 (watchpoints_info): Rename to ...
5493 (info_watchpoints_command): ... this.
5494 (tracepoints_info): Rename to ...
5495 (info_tracepoints_command): ... this.
5496 (_initialize_breakpoint): Adjust.
5497 * dcache.c (dcache_info): Rename to ...
5498 (info_display_command): ... this.
5499 (_initialize_dcache): Adjust.
5500 * frame.h (args_info): Rename to ...
5501 (info_args_command): ... this.
5502 (locals_info): Rename to ...
5503 (info_locals_command): ... this.
5504 * infcmd.c (nofp_registers_info): Rename to ...
5505 (info_registers_command): ... this.
5506 (float_info): Rename to ...
5507 (info_float_command): ... this.
5508 (program_info): Rename to ...
5509 (info_program_command): ... this.
5510 (all_registers_info): Rename to ...
5511 (info_all_registers_command): ... this.
5512 (vector_info): Rename to ...
5513 (info_vector_command): ... this.
5514 (float_info): Rename to ...
5515 (info_float_command): ... this.
5516 (_initialize_infcmd): Adjust.
5517 * inferior.h (term_info): Rename to ...
5518 (info_terminal_command): ... this.
5519 * inflow.c (term_info): Rename to ...
5520 (info_terminal_command): ... this.
5521 (_initialize_inflow): Adjust.
5522 * infrun.c (signals_info): Rename to ...
5523 (info_signals_command): ... this.
5524 (_initialize_infrun): Adjust.
5525 * objc-lang.c (classes_info): Rename to ...
5526 (info_classes_command): ... this.
5527 (selectors_info): Rename to ...
5528 (info_selectors_command): ... this.
5529 (_initialize_objc_language): Adjust.
5530 * printcmd.c (sym_info): Rename to ...
5531 (info_symbol_command): ... this.
5532 (address_info): Rename to ...
5533 (info_address_command): ... this.
5534 (display_info): Rename to ...
5535 (info_display_command): ... this.
5536 (_initialize_printcmd): Adjust.
5537 * reverse.c (bookmarks_info): Rename to ...
5538 (info_breakpoints_command): ... this.
5539 (_initialize_reverse): Adjust.
5540 * ser-go32.c (dos_info): Rename to ...
5541 (info_serial_command): ... this.
5542 (_initialize_ser_dos): Adjust.
5543 * skip.c (skip_info): Rename to ...
5544 (info_skip_command): ... this.
5545 (_initialize_step_skip): Adjust.
5546 * source.c (line_info): Rename to ...
5547 (info_line_command): ... this.
5548 (source_info): Rename to ...
5549 (info_source_command)
5550 * stack.c (frame_info): Rename to ...
5551 (info_frame_command): ... this.
5552 (locals_info): Rename to ...
5553 (info_locals_command): ... this.
5554 (args_info): Rename to ...
5555 (info_args_command): ... this.
5556 (_initialize_stack): Adjust.
5557 * symtab.c (sources_info): Rename to ...
5558 (info_sources_command): ... this.
5559 (variables_info): Rename to ...
5560 (info_variables_command): ... this.
5561 (functions_info): Rename to ...
5562 (info_functions_command): ... this.
5563 (types_info): Rename to ...
5564 (info_types_command): ... this.
5565 (_initialize_symtab): Adjust.
5566 * target.c (target_info): Rename to ...
5567 (info_target_command): ... this.
5568 (initialize_targets): Adjust.
5569 * tracepoint.c (tvariables_info): Rename to ...
5570 (info_tvariables_command): ... this.
5571 (scope_info): Rename to ...
5572 (info_scope_command): ... this.
5573 (trace_dump_actions): Adjust.
5574 (_initialize_tracepoint): Adjust.
5575
b270e6f9
TT
55762017-08-22 Tom Tromey <tom@tromey.com>
5577
5578 * breakpoint.h (install_breakpoint): Update.
5579 * breakpoint.c (add_solib_catchpoint): Update.
5580 (install_breakpoint): Change argument to a std::unique_ptr.
5581 (create_fork_vfork_event_catchpoint): Use std::unique_ptr.
5582 (create_breakpoint_sal, create_breakpoint): Update.
5583 (watch_command_1, catch_exec_command_1)
5584 (strace_marker_create_breakpoints_sal): Use std::unique_ptr.
5585 (add_to_breakpoint_chain): Change argument to a std::unique_ptr.
5586 Return the breakpoint.
5587 (set_raw_breakpoint_without_location, set_raw_breakpoint)
5588 (new_single_step_breakpoint): Update.
5589 * break-catch-throw.c (handle_gnu_v3_exceptions): Use
5590 std::unique_ptr.
5591 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
5592 std::unique_ptr.
5593 * break-catch-sig.c (create_signal_catchpoint): Use
5594 std::unique_ptr.
5595 * ada-lang.c (create_ada_exception_catchpoint): Use
5596 std::unique_ptr.
5597
36bd8eaa
TT
55982017-08-22 Tom Tromey <tom@tromey.com>
5599
5600 * breakpoint.c (add_solib_catchpoint): Use std::unique_ptr.
5601
56f37645
TT
56022017-08-22 Tom Tromey <tom@tromey.com>
5603
5604 * psymtab.c (psymtab_search_name): Return a unique_xmalloc_ptr.
5605 (lookup_partial_symbol): Update.
5606
0b581c69
TT
56072017-08-22 Tom Tromey <tom@tromey.com>
5608
5609 * source.h (rewrite_source_path): Return a unique_xmalloc_ptr.
5610 * source.c (rewrite_source_path): Return a unique_xmalloc_ptr.
5611 (find_and_open_source, symtab_to_fullname): Update.
5612 * psymtab.c (psymtab_to_fullname): Update.
5613
14278e1f
TT
56142017-08-22 Tom Tromey <tom@tromey.com>
5615
5616 * exec.c (exec_file_attach): Update.
5617 * linux-thread-db.c (try_thread_db_load): Update.
5618 * guile/scm-safe-call.c (gdbscm_safe_source_script): Update.
5619 * utils.c (gdb_realpath): Change return type.
5620 (gdb_realpath_keepfile): Update.
5621 (gdb_realpath_check_trailer, gdb_realpath_tests): New functions.
5622 (_initialize_utils): Register the new self test.
5623 * source.c (openp): Update.
5624 (find_and_open_source): Update.
5625 * nto-tdep.c (nto_find_and_open_solib): Update.
5626 * main.c (set_gdb_data_directory): Update.
5627 (captured_main_1): Update.
5628 * dwarf2read.c (dwarf2_get_dwz_file): Update
5629 (dw2_map_symbol_filenames): Update.
5630 * auto-load.c (auto_load_safe_path_vec_update): Update.
5631 (filename_is_in_auto_load_safe_path_vec): Change type of
5632 "filename_realp".
5633 (auto_load_objfile_script): Update.
5634 (file_is_auto_load_safe): Update. Use std::string.
5635 * utils.h (gdb_realpath): Return a gdb::unique_xmalloc_ptr.
5636
4971c9a7
TT
56372017-08-22 Tom Tromey <tom@tromey.com>
5638
5639 * utils.c (gdb_realpath_keepfile): Return a
5640 gdb::unique_xmalloc_ptr.
5641 * exec.c (exec_file_attach): Update.
5642 * utils.h (gdb_realpath_keepfile): Return a
5643 gdb::unique_xmalloc_ptr.
5644
e3e41d58
TT
56452017-08-22 Tom Tromey <tom@tromey.com>
5646
5647 * compile/compile.c (compile_file_command): Use
5648 gdb::unique_xmalloc_ptr, std::string.
5649 * utils.c (gdb_abspath): Change return type.
5650 * source.c (openp): Update.
5651 * objfiles.c (allocate_objfile): Update.
5652 * main.c (set_gdb_data_directory): Update.
5653 * utils.h (gdb_abspath): Return a gdb::unique_xmalloc_ptr.
5654
0d999a6e
ZZ
56552017-08-22 Zhouyi Zhou <zhouzhouyi@gmail.com>
5656
5657 * cli-cmds.c (list_commands): List actual code around more than
5658 one location.
5659
329d5e7e
JB
56602017-08-21 John Baldwin <jhb@FreeBSD.org>
5661
5662 * fbsd-nat.c (fbsd_add_threads): Use array type for `lwps'.
5663
bf223d3e
PA
56642017-08-21 Pedro Alves <palves@redhat.com>
5665
5666 PR gdb/19487
5667 * c-exp.y (variable production): Handle function aliases.
5668 * minsyms.c (msymbol_is_text): New function.
5669 * minsyms.h (msymbol_is_text): Declare.
5670 * symtab.c (find_function_alias_target): New function.
5671 * symtab.h (find_function_alias_target): Declare.
5672
c973d0aa
PA
56732017-08-21 Pedro Alves <palves@redhat.com>
5674
5675 * eval.c (evaluate_subexp_standard) <OP_TYPE>: Don't dig past
5676 typedefs.
5677 * typeprint.c (whatis_exp): If handling "whatis", and expression
5678 is OP_TYPE, strip one typedef level. Otherwise don't strip
5679 typedefs here.
5680 * valops.c (value_cast): Save "to" type before resolving
5681 stubs/typedefs. Use that type as resulting value's type.
5682
2989a365
TT
56832017-08-18 Tom Tromey <tom@tromey.com>
5684 Pedro Alves <palves@redhat.com>
5685
5686 * spu-multiarch.c (parse_spufs_run): Use scoped_restore.
5687 * sol-thread.c (sol_thread_resume, sol_thread_wait)
5688 (sol_thread_xfer_partial, rw_common): Use scoped_restore.
5689 * procfs.c (procfs_do_thread_registers): Use scoped_restore.
5690 * proc-service.c (ps_xfer_memory): Use scoped_restore.
5691 * linux-tdep.c (linux_corefile_thread): Remove a cleanup.
5692 (linux_get_siginfo_data): Add "thread" argument. Use
5693 scoped_restore.
5694 * linux-nat.c (linux_child_follow_fork)
5695 (check_stopped_by_watchpoint): Use scoped_restore.
5696 * infrun.c (displaced_step_prepare_throw, write_memory_ptid)
5697 (THREAD_STOPPED_BY, handle_signal_stop): Use scoped_restore.
5698 (restore_inferior_ptid, save_inferior_ptid): Remove.
5699 * btrace.c (btrace_fetch): Use scoped_restore.
5700 * bsd-uthread.c (bsd_uthread_fetch_registers)
5701 (bsd_uthread_store_registers): Use scoped_restore.
5702 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
5703 scoped_restore.
5704 * aix-thread.c (aix_thread_resume, aix_thread_wait)
5705 (aix_thread_xfer_partial): Use scoped_restore.
5706 * inferior.h (save_inferior_ptid): Remove.
5707
e60eb288
YQ
57082017-08-18 Yao Qi <yao.qi@linaro.org>
5709
5710 PR tdep/21818
5711 * arm-tdep.c (gdb_print_insn_arm): Mark
5712 USER_SPECIFIED_MACHINE_TYPE if exec_bfd isn't NULL.
5713
6d580b63
YQ
57142017-08-18 Yao Qi <yao.qi@linaro.org>
5715
5716 * NEWS: Mention GDBserver's new option "--selftest".
5717 * Makefile.in (SFILES): Remove selftest.c, add common/selftest.c.
5718 * selftest.c: Move it to common/selftest.c.
5719 * selftest.h: Move it to common/selftest.h.
5720 * selftest-arch.c (reset): New function.
5721 (tests_with_arch): Call reset.
5722
86dcbf50
YQ
57232017-08-18 Yao Qi <yao.qi@linaro.org>
5724
5725 * selftest.c (run_tests): Don't call QUIT. Call debug_printf
5726 instead of exception_fprintf and printf_filtered.
5727
7649770c
YQ
57282017-08-18 Yao Qi <yao.qi@linaro.org>
5729
5730 * selftest.c (register_self_test): Rename it to
5731 selftests::register_test.
5732 (run_self_tests): selftest::run_tests.
5733 * selftest.h: Update declarations.
5734 * selftest-arch.c (register_self_test_foreach_arch): Rename it to
5735 selftests::register_test_foreach_arch.
5736 * selftest-arch.h: Update declaration.
5737 * aarch64-tdep.c: Update.
5738 * arm-tdep.c: Likewise.
5739 * disasm-selftests.c: Likewise.
5740 * dwarf2loc.c: Likewise.
5741 * dwarf2-frame.c: Likewise.
5742 * findvar.c: Likewise.
5743 * gdbarch-selftests.c: Likewise.
5744 * maint.c (maintenance_selftest): Likewise.
5745 * regcache.c: Likewise.
5746 * rust-exp.y: Likewise.
5747 * selftest-arch.c: Likewise.
5748 * unittests/environ-selftests.c: Likewise.
5749 * unittests/function-view-selftests.c: Likewise.
5750 * unittests/offset-type-selftests.c: Likewise.
5751 * unittests/optional-selftests.c: Likewise.
5752 * unittests/scoped_restore-selftests.c: Likewise.
5753 * utils-selftests.c: Likewise.
5754
b0cba12e
PA
57552017-08-17 Pedro Alves <palves@redhat.com>
5756
5757 * cli/cli-cmds.c (source_command): Delete 'old_source_verbose'
5758 local.
5759
4c8aa72d
PA
57602017-08-17 Pedro Alves <palves@redhat.com>
5761
5762 * dwarf2read.c (struct dwarf2_cu) <line_header_die_owner>: New
5763 field.
5764 (reset_die_in_process): Delete, replaced by ...
5765 (process_die_scope): ... this new class. Make it responsible for
5766 freeing cu->line_header too.
5767 (process_die): Use process_die_scope.
5768 (handle_DW_AT_stmt_list): Record the line header's owner CU/DIE in
5769 cu->line_header_die_owner. Don't release the line header if it's
5770 owned by the CU.
5771 (setup_type_unit_groups): Make the CU/DIE own the line header.
5772 Don't release the line header here.
5773
ba713918
AL
57742017-08-17 Alex Lindsay <alexlindsay239@gmail.com> (tiny change)
5775
5776 * elfread.c (elf_read_minimal_symbols): xfree synthsyms.
5777
44d0fb3a
RK
57782017-08-17 Ruslan Kabatsayev <b7.10110111@gmail.com>
5779
5780 * NEWS: Mention new shortcuts for nexti and stepi in TUI
5781 Single-Key mode
5782
a5afdb16
RK
57832017-08-16 Ruslan Kabatsayev <b7.10110111@gmail.com>
5784
5785 * tui/tui.c (tui_commands): Add "nexti" and "stepi" to the Single-Key
5786 mode command list.
5787
47613aeb
SH
57882017-08-15 Stafford Horne <shorne@gmail.com>
5789
5790 * MAINTAINERS (Write After Approval): Add Stafford Horne.
5791
9c3cc999
SH
57922017-08-15 Stafford Horne <shorne@gmail.com>
5793
5794 * xtensa-tdep.c (xtensa_init_reggroups): Use xstrdup for cpname.
5795
206726fb
SDJ
57962017-08-15 Sergio Durigan Junior <sergiodj@redhat.com>
5797
5798 PR gdb/21954
5799 * infcmd.c (unset_environment_command): Use the 'clear' method on
5800 the environment instead of resetting it.
5801
0335ac6d
JB
58022017-08-15 John Baldwin <jhb@FreeBSD.org>
5803
5804 * fbsd-nat.c (fbsd_convert_siginfo): Fix compile on big-endian
5805 platforms.
5806
d3abe1c8
TT
58072017-08-14 Tom Tromey <tom@tromey.com>
5808
5809 * valprint.c (print_octal_chars): Use HOST_CHAR_BIT.
5810 (print_binary_chars): Likewise.
5811 (BITS_IN_BYTES): Remove.
5812
d6382fff
TT
58132017-08-14 Tom Tromey <tom@tromey.com>
5814
5815 PR gdb/21675
5816 * valprint.c (LOW_ZERO): Change value to 034.
5817 (print_octal_chars): Add static_asserts for octal constants.
5818 * printcmd.c (print_scalar_formatted): Add 'd' case.
5819
f978cb06
TT
58202017-08-11 Tom Tromey <tom@tromey.com>
5821
5822 * symfile.c (add_symbol_file_command): Use std::vector.
5823
2f5404b3
TT
58242017-08-14 Tom Tromey <tom@tromey.com>
5825
5826 * break-catch-throw.c (handle_gnu_v3_exceptions): Use std::move.
5827 * break-catch-syscall.c (create_syscall_event_catchpoint): Use
5828 std::move.
5829 * break-catch-sig.c (create_signal_catchpoint): Use std::move.
5830
de7985c3
PA
58312017-08-11 Pedro Alves <palves@redhat.com>
5832
5833 * infrun.c (process_event_stop_test): Adjust
5834 function_name_is_marked_for_skip call.
5835 * skip.c: Include <list>.
5836 (skiplist_entry): Make it a class with private fields, and
5837 getters/setters.
5838 (skiplist_entry_chain): Delete.
5839 (skiplist_entries): New.
5840 (skiplist_entry_count): Delete.
5841 (highest_skiplist_entry_num): New.
5842 (ALL_SKIPLIST_ENTRIES, ALL_SKIPLIST_ENTRIES_SAFE): Delete.
5843 (add_skiplist_entry): Delete.
5844 (skiplist_entry::skiplist_entry): New.
5845 (skiplist_entry::add_entry): New.
5846 (skip_file_command, skip_function): Adjust.
5847 (compile_skip_regexp): Delete.
5848 (skip_command): Don't compile regexp here. Adjust to use
5849 skiplist_entry::add_entry.
5850 (skip_info): Adjust to use range-for and getters.
5851 (skip_enable_command, skip_disable_command): Adjust to use
5852 range-for and setters.
5853 (skip_delete_command): Adjust to use std::list.
5854 (add_skiplist_entry): Delete.
5855 (skip_file_p): Delete, refactored as ...
5856 (skiplist_entry::do_skip_file_p): ... this new method.
5857 (skip_gfile_p): Delete, refactored as ...
5858 (skiplist_entry::do_gskip_file_p): ... this new method.
5859 (skip_function_p, skip_rfunction_p): Delete, refactored as ...
5860 (skiplist_entry::skip_function_p): ... this new method.
5861 (function_name_is_marked_for_skip): Now returns bool, and takes
5862 the function sal by const reference. Adjust to use range-for and
5863 skiplist_entry methods.
5864 (_initialize_step_skip): Remove references to
5865 skiplist_entry_chain, skiplist_entry_count.
5866 * skip.h (function_name_is_marked_for_skip): Now returns bool, and
5867 takes the function sal by const reference.
5868
be7d3cd5
YQ
58692017-08-11 Yao Qi <yao.qi@linaro.org>
5870
5871 * dwarf2-frame.c (clear_pointer_cleanup): Remove.
5872 (dwarf2_frame_cache): Remove reset_cache_cleanup.
5873 (dwarf2_frame_cache):
5874 * frame-unwind.c (frame_unwind_try_unwinder): Catch
5875 RETURN_MASK_ALL and set *this_case to NULL.
5876 * frame-unwind.h: Update comments.
5877
1c90d9f0
YQ
58782017-08-11 Yao Qi <yao.qi@linaro.org>
5879
5880 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Remove.
5881 (dwarf2_frame_state_copy_regs): Remove.
5882 (dwarf2_frame_state_free_regs): Remove.
5883 (dwarf2_frame_state::~dwarf2_frame_state): Remove.
5884 (dwarf2_restore_rule): Call method .alloc_regs instead of
5885 dwarf2_frame_state_alloc_regs.
5886 (execute_cfa_program): Likewise. Call dwarf2_frame_state_reg_info
5887 constructor. Call std::move.
5888 (dwarf2_fetch_cfa_info): Don't call dwarf2_frame_state_copy_regs.
5889 (dwarf2_frame_cache): Likewise.
5890
5891 [GDB_SELF_TEST]: Include selftest.h and
5892 selftest-arch.h.
5893 [GDB_SELF_TEST] (execute_cfa_program_test): New function.
5894 (_initialize_dwarf2_frame) [GDB_SELF_TEST]: Register
5895 execute_cfa_program_test.
5896
5897 * dwarf2-frame.h (dwarf2_frame_state_reg_info): Add ctor, dtor,
5898 copy ctor, assignment operator, move assignment.
5899 <alloc_regs>: New method.
5900 <swap>: New method.
5901 (struct dwarf2_frame_state): Delete dtor.
5902 (dwarf2_frame_state_alloc_regs): Remove declaration.
5903 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): Don't call
5904 dwarf2_frame_state_alloc_regs, use .alloc_regs instead.
5905
afe37d6b
YQ
59062017-08-11 Yao Qi <yao.qi@linaro.org>
5907
5908 * dwarf2-frame.c (dwarf2_frame_state_free): Remove.
5909 (dwarf2_frame_state::dwarf2_frame_state): New.
5910 (dwarf2_frame_state::~dwarf2_frame_state): New.
5911 (dwarf2_fetch_cfa_info): Update.
5912 (dwarf2_frame_cache): Remove old_chain. Change 'fs' to an object
5913 rather than a pointer. Update code.
5914 * dwarf2-frame.h (struct dwarf2_frame_state): Declare ctor and
5915 dtor.
5916 <data_align, code_align, retaddr_column>: Change them to const.
5917 <armcc_cfa_offsets_sf, armcc_cfa_offsets_reversed>: Change them
5918 to bool.
5919
b348037f
YQ
59202017-08-11 Yao Qi <yao.qi@linaro.org>
5921
5922 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <exp_len>: Remove.
5923 <loc.exp>: New field.
5924 * dwarf2-frame.c (execute_cfa_program): Update.
5925 (dwarf2_frame_prev_register): Update.
5926
e7c9de26
PA
59272017-08-10 Pedro Alves <palves@redhat.com>
5928
5929 * common/gdb_unique_ptr.h (xfree_deleter<T[]>): Define.
5930
e8c6b620
JB
59312017-08-09 John Baldwin <jhb@FreeBSD.org>
5932
5933 * fbsd-nat.c (struct fbsd_fork_info): Remove.
5934 (fbsd_pending_children): Use std::list.
5935 (fbsd_remember_child): Likewise.
5936 (fbsd_is_child_pending): Likewise.
5937 (fbsd_pending_vfork_done): Use std::forward_list.
5938 (fbsd_add_vfork_done): Likewise.
5939 (fbsd_is_vfork_done_pending): Likewise.
5940 (fbsd_next_vfork_done): Likewise.
5941
e4a26669
JB
59422017-08-09 John Baldwin <jhb@FreeBSD.org>
5943
5944 * fbsd-nat.c [HAVE_KINFO_GETVMMAP] (struct free_deleter): New.
5945 (fbsd_find_memory_regions): Use free_deleter with std::unique_ptr.
5946 [!HAVE_KINFO_GETVMMAP] (fbsd_find_memory_regions): Use std::string
5947 for `mapfilename'.
5948 (fbsd_xfer_partial): Use gdb::byte_vector.
af3881e6 5949 (fbsd_add_threads): Use gdb::unique_xmalloc_ptr.
e4a26669 5950
142311d3
JB
59512017-08-09 John Baldwin <jhb@FreeBSD.org>
5952
5953 * fbsd-nat.c: [!HAVE_KINFO_GETVMMAP]: Include <sys/user.h> and
5954 "filestuff.h".
5955 (fbsd_find_memory_regions): Fix `mapfile' initialization.
5956
42fa2e0e
TT
59572017-08-09 Tom Tromey <tom@tromey.com>
5958
5959 * skip.c (skiplist_entry): New constructor.
5960 (skiplist_entry::enabled, skiplist_entry::function_is_regexp)
5961 (skiplist_entry::file_is_glob): Now bool.
5962 (skiplist_entry::file, skiplist_entry::function): Now
5963 std::string.
5964 (make_skip_entry): Return a unique_ptr. Use new.
5965 (free_skiplist_entry, free_skiplist_entry_cleanup)
5966 (make_free_skiplist_entry_cleanup): Remove.
5967 (skip_command, skip_disable_command, add_skiplist_entry)
5968 (skip_form_bytes, compile_skip_regexp, skip_command, skip_info)
5969 (skip_file_p, skip_gfile_p, skip_function_p, skip_rfunction_p)
5970 (function_name_is_marked_for_skip): Update.
5971 (skip_delete_command): Update. Use delete.
5972
cd3af38d
JW
59732017-08-09 Jiong Wang <jiong.wang@arm.com>
5974
5975 * aarch64-linux-tdep.c: Include "auxv.h" and "elf/common.h".
5976 (aarch64_linux_core_read_description): New function.
5977 (aarch64_linux_init_abi): Register gdbarch_core_read_description.
5978
29592bde
PA
59792017-08-09 Pedro Alves <palves@redhat.com>
5980
5981 * cp-name-parser.y (cp_comp_to_string): Return a
5982 gdb::unique_xmalloc_ptr<char>.
5983 * cp-support.c (replace_typedefs_qualified_name)
5984 (replace_typedefs): Adjust to use gdb::unique_xmalloc_ptr<char>.
5985 (cp_canonicalize_string_full): Use op= instead of explicit
5986 convertion.
5987 (cp_class_name_from_physname, method_name_from_physname)
5988 (cp_func_name, cp_remove_params): Adjust to use
5989 gdb::unique_xmalloc_ptr<char>.
5990 * cp-support.h (cp_comp_to_string): Return a
5991 gdb::unique_xmalloc_ptr<char>.
5992 * python/py-type.c (typy_lookup_type): Adjust to use
5993 gdb::unique_xmalloc_ptr<char>.
5994
b3340438
L
59952017-08-09 H.J. Lu <hongjiu.lu@intel.com>
5996
5997 * dwarf2read.c (dwarf2_string_attr): Fix a typo.
5998
e88e8651
YQ
59992017-08-09 Alex Lindsay <alexlindsay239@gmail.com>
6000 Yao Qi <yao.qi@linaro.org>
6001
6002 * cp-support.c (cp_canonicalize_string_full): Use
6003 gdb::unique_xmalloc_ptr<char>.
6004 (cp_canonicalize_string): Likewise.
6005
f5a29eb0
YQ
60062017-08-09 Yao Qi <yao.qi@linaro.org>
6007
6008 * features/Makefile (WHICH): Remove i386/ non-linux stuff.
6009 * regformats/i386/amd64-avx-avx512.dat: Remove.
6010 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Remove.
6011 * regformats/i386/amd64-avx-mpx.dat:Remove.
6012 * regformats/i386/amd64-avx.dat: Remove.
6013 * regformats/i386/amd64-mpx.dat: Remove.
6014 * regformats/i386/i386-avx-avx512.dat: Remove.
6015 * regformats/i386/i386-avx-mpx-avx512-pku.dat: Remove.
6016 * regformats/i386/i386-avx-mpx.dat: Remove.
6017 * regformats/i386/i386-mmx.dat: Remove.
6018 * regformats/i386/i386-mpx.dat: Remove.
6019
57757c2f
YQ
60202017-08-09 Yao Qi <yao.qi@linaro.org>
6021
6022 * amd64-tdep.h (tdesc_x32): Remove the declaration.
6023 * amd64-tdep.c: Don't include features/i386/x32*.c.
6024 (_initialize_amd64_tdep): Don't call initialize_tdesc_x32*
6025 functions.
6026 * features/Makefile (WHICH): Remove i386/x32, i386/x32-avx,
6027 and i386/x32-avx-avx512.
6028 (XMLTOC): Remove i386/x32-avx.xml, i386/x32-avx-avx512.xml,
6029 and i386/x32.xml.
6030 * features/i386/x32-avx-avx512.c: Removed.
6031 * features/i386/x32-avx-avx512.xml: Removed.
6032 * features/i386/x32-avx.c: Removed.
6033 * features/i386/x32-avx.xml: Removed.
6034 * features/i386/x32.c: Removed.
6035 * features/i386/x32.xml: Removed.
6036 * regformats/i386/x32-avx-avx512.dat: Removed.
6037 * regformats/i386/x32-avx.dat: Removed.
6038 * regformats/i386/x32.dat: Removed.
6039
ba7b109b
MR
60402017-08-07 Maciej W. Rozycki <macro@imgtec.com>
6041
6042 PR breakpoints/21886
6043 * mem-break.c (default_memory_insert_breakpoint): Use
6044 `->placed_address' rather than `->reqstd_address' for the
6045 breakpoint location.
6046
e347efc3
MR
60472017-08-07 Maciej W. Rozycki <macro@imgtec.com>
6048
6049 * arch-utils.c (default_print_insn): Remove arch/mach/endian
6050 assertions.
6051
0dba2a6c
MR
60522017-08-07 Maciej W. Rozycki <macro@imgtec.com>
6053
6054 * gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
6055 a union of `tdep_info', `tdesc_data' and `id'.
6056 * aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
6057 rather than `info.tdep_info'.
6058 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
6059 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6060 * i386-tdep.c (i386_gdbarch_init): Likewise.
6061 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
6062 * mips-tdep.c (mips_gdbarch_init): Likewise.
6063 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
6064 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
6065 * ppc-linux-tdep.c (ppu2spu_sniffer): Use `info.id' rather than
6066 `info.tdep_info'.
6067 (ppc_linux_init_abi): Use `info.tdesc_data' rather than
6068 `info.tdep_info'.
6069 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
6070 * spu-multiarch.c (spu_gdbarch): Use `info.id' rather than
6071 `info.tdep_info'.
6072 * spu-tdep.c (spu_gdbarch_init): Likewise.
6073 * gdbarch.h: Regenerate.
6074
16eb6b2d
LS
60752017-08-07 Leszek Swirski <leszeks@google.com>
6076
7b005726 6077 PR symtab/20899
16eb6b2d
LS
6078 * dwarf2read.c (dwarf2_string_attr): Allow DW_FORM_GNU_strp_alt.
6079
74cbb09e
SM
60802017-08-07 Simon Marchi <simon.marchi@ericsson.com>
6081
6082 * remote-sim.c (gdbsim_load): Remove char **argv local variable.
6083 (gdbsim_open): Rename gdb_argv args object to argv.
6084
ee0c3293
TT
60852017-08-05 Tom Tromey <tom@tromey.com>
6086
6087 * compile/compile-object-load.c (compile_object_load): Use
6088 gdb::unique_xmalloc_ptr.
6089 * cli/cli-dump.c (scan_filename): Rename from
6090 scan_filename_with_cleanup. Change return type.
6091 (scan_expression): Rename from scan_expression_with_cleanup.
6092 Change return type.
6093 (dump_memory_to_file, dump_value_to_file, restore_command):
6094 Use gdb::unique_xmalloc_ptr. Update.
6095 * cli/cli-cmds.c (find_and_open_script): Use
6096 gdb::unique_xmalloc_ptr.
6097 * tracefile-tfile.c (tfile_open): Use gdb::unique_xmalloc_ptr.
6098 * symmisc.c (maintenance_print_symbols)
6099 (maintenance_print_msymbols): Use gdb::unique_xmalloc_ptr.
6100 * symfile.c (symfile_bfd_open, generic_load)
6101 (add_symbol_file_command, remove_symbol_file_command): Use
6102 gdb::unique_xmalloc_ptr.
6103 * source.c (openp): Use gdb::unique_xmalloc_ptr.
6104 * psymtab.c (maintenance_print_psymbols): Use
6105 gdb::unique_xmalloc_ptr.
6106 * corelow.c (core_open): Use gdb::unique_xmalloc_ptr.
6107 * breakpoint.c (save_breakpoints): Use gdb::unique_xmalloc_ptr.
6108 * solib.c (solib_map_sections): Use gdb::unique_xmalloc_ptr.
6109 (reload_shared_libraries_1): Likewise.
6110
3232fabd
TT
61112017-08-05 Tom Tromey <tom@tromey.com>
6112
6113 * rust-exp.y (rust_op_ptr, set_field): Remove typedefs.
6114 (rust_op_vector, rust_set_vector): New typedefs.
6115 (current_parser): New global.
6116 (work_obstack): Change to pointer type. Update all users.
6117 (rust_ast, pstate): Remove globals.
6118 (struct rust_parser): New.
6119 (%union) <params, field_inits>: Change type.
6120 (start, tuple_expr, unit_expr, struct_expr_list, literal)
6121 (field_expr, expr_list, maybe_expr_list, type_list): Update.
6122 (ast_call_ish, ast_path, ast_function_type, ast_tuple_type)
6123 (convert_params_to_types, convert_params_to_expression): Change
6124 type of "params".
6125 (ast_string): Change type of "fields".
6126 (rust_parse): Make a rust_parser. Remove cleanups.
6127 (rust_lex_tests): Make and install an auto_obstack.
6128
f02fd774
YQ
61292017-08-04 Yao Qi <yao.qi@linaro.org>
6130
6131 * configure.srv (ipa_x32_linux_regobj): New.
6132 * linux-amd64-ipa.c (get_ipa_tdesc): Use X86_TDESC_AVX_AVX512
6133 instead of X86_TDESC_AVX512.
6134 (initialize_low_tracepoint): Call
6135 init_registers_x32_avx_avx512_linux.
6136
91975afd
YQ
61372017-08-04 Yao Qi <yao.qi@linaro.org>
6138
6139 * utils.h (gdb_argv): Add namespace std for nullptr_t.
6140
2331fa3a
RK
61412017-08-03 Ruslan Kabatsayev <b7.10110111@gmail.com>
6142
6143 * MAINTAINERS (Write After Approval): Add Ruslan Kabatsayev.
6144
744e4fe1
TT
61452017-08-03 Tom Tromey <tom@tromey.com>
6146
6147 * utils.c (make_cleanup_freeargv, do_freeargv, gdb_buildargv):
6148 Remove.
6149 * utils.h (make_cleanup_freeargv, gdb_buildargv): Remove.
6150
1c034b67
TT
61512017-08-03 Tom Tromey <tom@tromey.com>
6152
6153 * python/py-param.c (compute_enum_values): Use gdb_argv.
6154
773a1edc
TT
61552017-08-03 Tom Tromey <tom@tromey.com>
6156
6157 * utils.h (struct gdb_argv_deleter): New.
6158 (gdb_argv): New class.
6159 * utils.c (gdb_argv::reset): New method.
6160 * tracepoint.c (delete_trace_variable_command): Use gdb_argv.
6161 * tracefile.c (tsave_command): Use gdb_argv.
6162 * top.c (new_ui_command): Use gdb_argv.
6163 * symmisc.c (maintenance_print_symbols)
6164 (maintenance_print_msymbols, maintenance_expand_symtabs): Use gdb_argv.
6165 * symfile.c (symbol_file_command, generic_load)
6166 (remove_symbol_file_command): Use gdb_argv.
6167 * stack.c (backtrace_command): Use gdb_argv.
6168 * source.c (add_path, show_substitute_path_command)
6169 (unset_substitute_path_command, set_substitute_path_command):
6170 Use gdb_argv.
6171 * skip.c (skip_command): Use gdb_argv. Use gdb_buildargv.
6172 * ser-mingw.c (pipe_windows_open): Use gdb_argv.
6173 * remote.c (extended_remote_run, remote_put_command)
6174 (remote_get_command, remote_delete_command): Use gdb_argv.
6175 * remote-sim.c (gdbsim_load, gdbsim_create_inferior)
6176 (gdbsim_open): Use gdb_argv.
6177 * python/py-cmd.c (gdbpy_string_to_argv): Use gdb_argv.
6178 * psymtab.c (maintenance_print_psymbols): Use gdb_argv.
6179 * procfs.c (procfs_info_proc): Use gdb_argv.
6180 * interps.c (interpreter_exec_cmd): Use gdb_argv.
6181 * infrun.c (handle_command): Use gdb_argv.
6182 * inferior.c (add_inferior_command, clone_inferior_command):
6183 Use gdb_argv.
6184 * guile/scm-string.c (gdbscm_string_to_argv): Use gdb_argv.
6185 * exec.c (exec_file_command): Use gdb_argv.
6186 * cli/cli-cmds.c (alias_command): Use gdb_argv.
6187 * compile/compile.c (build_argc_argv): Use gdb_argv.
6188
0d50bde3
TT
61892017-08-03 Tom Tromey <tom@tromey.com>
6190
6191 * python/python.c (gdbpy_decode_line): Use unique_xmalloc_ptr.
6192
7f968c89
TT
61932017-08-03 Tom Tromey <tom@tromey.com>
6194
6195 * python/python.c (compute_python_string): Return std::string.
6196 (gdbpy_eval_from_control_command): Update.
6197 (do_start_initialization): Use std::string.
6198 * python/py-varobj.c (py_varobj_iter_next): Use string_printf, not
6199 xstrprintf.
6200 * python/py-breakpoint.c (local_setattro): Use string_printf, not
6201 xstrprintf.
6202
3c9ebddd
TT
62032017-08-03 Tom Tromey <tom@tromey.com>
6204
6205 * top.h (do_restore_instream_cleanup): Remove.
6206 * top.c (do_restore_instream_cleanup): Remove.
6207 (read_command_file): Use scoped_restore.
6208 * cli/cli-script.c (execute_user_command): Use scoped_restore.
6209
b51b225e
TT
62102017-08-03 Tom Tromey <tom@tromey.com>
6211
6212 * cli/cli-script.c (execute_user_command)
6213 (execute_control_command): Use scoped_restore.
6214
ac991630
TT
62152017-08-03 Tom Tromey <tom@tromey.com>
6216
6217 * cli/cli-script.c (do_restore_user_call_depth): Remove.
6218 (execute_user_command): Remove user_call_depth; use
6219 user_args_stack's size instead.
6220
898e0c8e
TT
62212017-08-03 Tom Tromey <tom@tromey.com>
6222
6223 * top.h (in_user_command): Remove.
6224 * top.c (in_user_command): Remove.
6225 * cli/cli-script.c (do_restore_user_call_depth)
6226 (execute_user_command): Update.
6227
26fcd5d7
TT
62282017-08-03 Tom Tromey <tom@tromey.com>
6229
6230 * valops.c (search_struct_method): Use gdb::byte_vector.
6231 * valarith.c (value_concat): Use std::vector.
6232 * target.c (memory_xfer_partial): Use gdb::byte_vector.
6233 (simple_search_memory): Likewise.
6234 * printcmd.c (find_string_backward): Use gdb::byte_vector.
6235 * mi/mi-main.c (mi_cmd_data_write_memory): Use gdb::byte_vector.
6236 * gcore.c (gcore_copy_callback): Use gdb::byte_vector.
6237 * elfread.c (elf_rel_plt_read): Use std::string.
6238 * cp-valprint.c (cp_print_value): Use gdb::byte_vector.
6239 * cli/cli-dump.c (restore_section_callback): Use
6240 gdb::byte_vector.
6241
7c218e6c
TT
62422017-08-03 Tom Tromey <tom@tromey.com>
6243
6244 * jit.c (jit_reader_load_command): Use unique_xmalloc_ptr.
6245
31b68d4a
TT
62462017-08-03 Tom Tromey <tom@tromey.com>
6247
6248 * tui/tui-regs.c (tui_restore_gdbout): Remove.
6249 (tui_register_format): Use scoped_restore.
6250
2ec845e7
TT
62512017-08-03 Tom Tromey <tom@tromey.com>
6252
6253 * reverse.c (exec_direction_default): Remove.
6254 (exec_reverse_once): Use scoped_restore.
6255 * remote.c (restore_remote_timeout): Remove.
6256 (remote_flash_erase, remote_flash_write, remote_flash_done)
6257 (readchar, remote_serial_write): Use scoped_restore.
6258 * cli/cli-script.c (struct source_cleanup_lines_args)
6259 (source_cleanup_lines): Remove.
6260 (script_from_file): Use scoped_restore.
6261 * cli/cli-cmds.c (source_verbose_cleanup): Remove.
6262 (source_command): Use scoped_restore.
6263
b3bc8453
TT
62642017-08-03 Tom Tromey <tom@tromey.com>
6265
6266 * utils.h (make_cleanup_free_so): Remove.
6267 * utils.c (do_free_so, make_cleanup_free_so): Remove.
6268 * solist.h (struct so_deleter): New.
6269 (so_list_up): New typedef.
6270 * solib-svr4.c (svr4_read_so_list): Use so_list_up.
6271
e3ad2841
TT
62722017-08-03 Tom Tromey <tom@tromey.com>
6273
6274 * utils.h (make_cleanup_restore_current_language): Remove.
6275 * utils.c (do_restore_current_language)
6276 (make_cleanup_restore_current_language): Remove.
6277 * parse.c (parse_exp_in_context_1)
6278 (parse_expression_with_language): Use
6279 scoped_restore_current_language.
6280 * mi/mi-main.c (mi_cmd_execute): Use
6281 scoped_restore_current_language.
6282 * language.h (scoped_restore_current_language): New class.
6283
b80cf838
TT
62842017-08-03 Tom Tromey <tom@tromey.com>
6285
6286 * compile/compile.c (cleanup_unlink_file): Remove.
6287 (compile_to_object): Use gdb::unlinker.
6288 (eval_compile_command): Likewise.
6289
fad0444a
TT
62902017-08-03 Tom Tromey <tom@tromey.com>
6291
6292 * utils.h (make_cleanup_fclose): Remove.
6293 * utils.c (do_fclose_cleanup, make_cleanup_fclose): Remove.
6294
6e7bc05c
TT
62952017-08-03 Tom Tromey <tom@tromey.com>
6296
6297 * top.c (open_terminal_stream): Return gdb_file_up.
6298 (new_ui_command): Update.
6299
4a45905b
TT
63002017-08-03 Tom Tromey <tom@tromey.com>
6301
6302 * source.c (print_source_lines_base, forward_search_command)
6303 (reverse_search_command): Use gdb_file_up.
6304
7cd06d6e
TT
63052017-08-03 Tom Tromey <tom@tromey.com>
6306
6307 * fbsd-nat.c (fbsd_find_memory_regions): Update.
6308
ed166945
TT
63092017-08-03 Tom Tromey <tom@tromey.com>
6310
6311 * cli/cli-cmds.c (find_and_open_script): Change return type.
6312 Remove "streamp" and "full_path" parameters.
6313 (source_script_with_search): Update.
6314 * auto-load.c (source_script_file): Update.
6315 * cli/cli-cmds.h (find_and_open_script): Change type.
6316 (open_script): New struct.
6317
d419f42d
TT
63182017-08-03 Tom Tromey <tom@tromey.com>
6319
6320 * xml-support.c (xml_fetch_content_from_file): Update.
6321 * ui-file.c (stdio_file::open): Update.
6322 * tracefile-tfile.c (tfile_start): Update.
6323 * remote.c (remote_file_put, remote_file_get): Update.
6324 * nat/linux-procfs.c (linux_proc_get_int)
6325 (linux_proc_pid_get_state, linux_proc_tid_get_name): Update.
6326 * nat/linux-osdata.c (linux_common_core_of_thread): Update.
6327 (command_from_pid, commandline_from_pid, linux_xfer_osdata_cpus)
6328 (print_sockets, linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6329 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Update.
6330 * nat/linux-btrace.c (linux_determine_kernel_start): Update.
6331 * linux-nat.c (linux_proc_pending_signals): Update.
6332 * dwarf2read.c (write_psymtabs_to_index): Use gdb_file_up.
6333 (file_closer): Remove.
6334 * compile/compile.c (compile_to_object): Update.
6335 * common/filestuff.h (struct gdb_file_deleter): New.
6336 (gdb_file_up): New typedef.
6337 (gdb_fopen_cloexec): Change return type.
6338 * common/filestuff.c (gdb_fopen_cloexec): Return gdb_file_up.
6339 * cli/cli-dump.c (fopen_with_cleanup): Remove.
6340 (dump_binary_file, restore_binary_file): Update.
6341 * auto-load.c (auto_load_objfile_script_1): Update.
6342
4a2b031d
TT
63432017-08-03 Tom Tromey <tom@tromey.com>
6344
6345 * tracepoint.c (tvariables_info_1): Use ui_out_emit_table.
6346 (info_static_tracepoint_markers_command): Likewise.
6347 * solib.c (info_sharedlibrary_command): Use ui_out_emit_table.
6348 * skip.c (skip_info): Use ui_out_emit_table.
6349 * progspace.c (print_program_space): Use ui_out_emit_table.
6350 * osdata.c (info_osdata): Use ui_out_emit_table.
6351 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions): Use
6352 ui_out_emit_table.
6353 * linux-thread-db.c (info_auto_load_libthread_db): Use
6354 ui_out_emit_table.
6355 * inferior.c (print_inferior): Use ui_out_emit_table.
6356 * gdb_bfd.c (maintenance_info_bfds): Use ui_out_emit_table.
6357 * breakpoint.c (breakpoint_1): Use ui_out_emit_table.
6358 * auto-load.c (auto_load_info_scripts): Use ui_out_emit_table.
6359 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_table.
6360 * ui-out.h (class ui_out_emit_table): New.
6361
a4f320fd
MR
63622017-08-02 Maciej W. Rozycki <macro@imgtec.com>
6363
6364 * mips-tdep.c (mips_fpu_type_str): New function.
6365 (mips_dump_tdep): Call it.
6366
a2f1f308
MR
63672017-08-01 Maciej W. Rozycki <macro@imgtec.com>
6368
6369 * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
6370 `->mips_fpu_type'.
6371
7e5ed83b
XR
63722017-07-31 Xavier Roirand <roirand@adacore.com>
6373
6374 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6375
4c9dc811
XR
63762017-07-27 Xavier Roirand <roirand@adacore.com>
6377
6378 * MAINTAINERS (Write After Approval): Add Xavier Roirand.
6379
27d41eac
YQ
63802017-07-26 Yao Qi <yao.qi@linaro.org>
6381
6382 * cli/cli-cmds.c (maintenancechecklist): New variable.
6383 * gdbcmd.h (maintenancechecklist): Declare it.
6384 * i386-linux-tdep.c (_initialize_i386_linux_tdep) [GDB_SELF_TEST]:
6385 Call i386_linux_read_description with different masks.
6386 * maint.c (maintenance_check_command): New function.
6387 (_initialize_maint_cmds): Call add_prefix_cmd.
6388 * target-descriptions.c (tdesc_reg): override operator != and ==.
6389 (tdesc_type): Likewise.
6390 (tdesc_feature): Likewise.
6391 (target_desc): Likewise.
6392 [GDB_SELF_TEST] (selftests::record_xml_tdesc): New function.
6393 (maintenance_check_xml_descriptions): New function.
6394 (_initialize_target_descriptions) Add command "xml-descriptions".
6395 * target-descriptions.h (selftests::record_xml_tdesc): Declare.
6396
ea03d0d3
YQ
63972017-07-26 Yao Qi <yao.qi@linaro.org>
6398
6399 * i386-linux-tdep.c: Don't include features/i386/i386-*linux.c.
6400 Include features/i386/32bit-*.c.
6401 (i386_linux_read_description): Generate target description if it
6402 doesn't exist.
6403 (_initialize_i386_linux_tdep): Don't call _initialize_tdesc_i386
6404 functions.
6405 * features/i386/32bit-linux.c: Re-generated.
6406 * features/i386/32bit-sse.c: Likewise.
6407 * target-descriptions.c (print_c_feature::visit): Print code to
6408 set register number if needed.
6409 (print_c_feature) <m_next_regnum>: New field.
6410
25aa13e5
YQ
64112017-07-26 Yao Qi <yao.qi@linaro.org>
6412
6413 * features/Makefile (CFILES): Rename with TDESC_CFILES.
6414 (FEATURE_XMLFILES): New.
6415 (FEATURE_CFILES): New.
6416 New rules.
6417 (clean-cfiles): Remove generated c files.
6418 * features/i386/32bit-avx.c: Generated.
6419 * features/i386/32bit-avx512.c: Generated.
6420 * features/i386/32bit-core.c: Generated.
6421 * features/i386/32bit-linux.c: Generated.
6422 * features/i386/32bit-mpx.c: Generated.
6423 * features/i386/32bit-pkeys.c: Generated.
6424 * features/i386/32bit-sse.c: Generated.
6425 * target-descriptions.c: Include algorithm.
6426 (tdesc_element_visitor): Add method visit_end.
6427 (print_c_tdesc): Implement visit_end.
6428 (print_c_tdesc:: m_filename_after_features): Move it to
6429 protected.
6430 (print_c_feature): New class.
6431 (maint_print_c_tdesc_cmd): Use print_c_feature if XML file
6432 name starts with "i386/32bit-".
6433
6eb1e6a8
YQ
64342017-07-26 Yao Qi <yao.qi@linaro.org>
6435
6436 * target-descriptions.c (tdesc_element_visitor): New class.
6437 (tdesc_element): New class.
6438 (tdesc_reg): Inherit from tdesc_element.
6439 (tdesc_reg::accept): New function.
6440 (tdesc_type): Inherit from tdesc_element.
6441 (tdesc_type::accept): New function.
6442 (tdesc_feature): Inherit from tdesc_element.
6443 (tdesc_feature::accept): New function.
6444 (target_desc): Inherit from tdesc_element.
6445 (target_desc::target_desc): New.
6446 (target_desc::~target_desc): New.
6447 (target_desc::accept): New.
6448 (allocate_target_description): Use new.
6449 (free_target_description): Use delete.
6450 (print_c_tdesc): New class.
6451 (maint_print_c_tdesc_cmd): Adjust.
6452
6453 * features/aarch64.c: Re-generated.
6454 * features/arc-arcompact.c: Re-generated.
6455 * features/arc-v2.c: Re-generated.
6456 * features/arm/arm-with-iwmmxt.c: Re-generated.
6457 * features/arm/arm-with-m.c: Re-generated.
6458 * features/arm/arm-with-m-fpa-layout.c: Re-generated.
6459 * features/arm/arm-with-m-vfp-d16.c: Re-generated.
6460 * features/arm/arm-with-neon.c: Re-generated.
6461 * features/arm/arm-with-vfpv2.c: Re-generated.
6462 * features/arm/arm-with-vfpv3.c: Re-generated.
6463 * features/i386/amd64-avx-avx512.c: Re-generated.
6464 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
6465 * features/i386/amd64-avx.c: Re-generated.
6466 * features/i386/amd64-avx-linux.c: Re-generated.
6467 * features/i386/amd64-avx-mpx-avx512-pku.c: Re-generated.
6468 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
6469 * features/i386/amd64-avx-mpx.c: Re-generated.
6470 * features/i386/amd64-avx-mpx-linux.c: Re-generated.
6471 * features/i386/amd64.c: Re-generated.
6472 * features/i386/amd64-linux.c: Re-generated.
6473 * features/i386/amd64-mpx.c: Re-generated.
6474 * features/i386/amd64-mpx-linux.c: Re-generated.
6475 * features/i386/i386-avx-avx512.c: Re-generated.
6476 * features/i386/i386-avx-avx512-linux.c: Re-generated.
6477 * features/i386/i386-avx.c: Re-generated.
6478 * features/i386/i386-avx-linux.c: Re-generated.
6479 * features/i386/i386-avx-mpx-avx512-pku.c: Re-generated.
6480 * features/i386/i386-avx-mpx-avx512-pku-linux.c: Re-generated.
6481 * features/i386/i386-avx-mpx.c: Re-generated.
6482 * features/i386/i386-avx-mpx-linux.c: Re-generated.
6483 * features/i386/i386.c: Re-generated.
6484 * features/i386/i386-linux.c: Re-generated.
6485 * features/i386/i386-mmx.c: Re-generated.
6486 * features/i386/i386-mmx-linux.c: Re-generated.
6487 * features/i386/i386-mpx.c: Re-generated.
6488 * features/i386/i386-mpx-linux.c: Re-generated.
6489 * features/i386/x32-avx-avx512.c: Re-generated.
6490 * features/i386/x32-avx-avx512-linux.c: Re-generated.
6491 * features/i386/x32-avx.c: Re-generated.
6492 * features/i386/x32-avx-linux.c: Re-generated.
6493 * features/i386/x32.c: Re-generated.
6494 * features/i386/x32-linux.c: Re-generated.
6495 * features/microblaze.c: Re-generated.
6496 * features/microblaze-with-stack-protect.c: Re-generated.
6497 * features/mips64-dsp-linux.c: Re-generated.
6498 * features/mips64-linux.c: Re-generated.
6499 * features/mips-dsp-linux.c: Re-generated.
6500 * features/mips-linux.c: Re-generated.
6501 * features/nds32.c: Re-generated.
6502 * features/nios2.c: Re-generated.
6503 * features/nios2-linux.c: Re-generated.
6504 * features/rs6000/powerpc-32.c: Re-generated.
6505 * features/rs6000/powerpc-32l.c: Re-generated.
6506 * features/rs6000/powerpc-403.c: Re-generated.
6507 * features/rs6000/powerpc-403gc.c : Re-generated.
6508 * features/rs6000/powerpc-405.c: Re-generated.
6509 * features/rs6000/powerpc-505.c: Re-generated.
6510 * features/rs6000/powerpc-601.c: Re-generated.
6511 * features/rs6000/powerpc-602.c: Re-generated.
6512 * features/rs6000/powerpc-603.c: Re-generated.
6513 * features/rs6000/powerpc-604.c: Re-generated.
6514 * features/rs6000/powerpc-64.c: Re-generated.
6515 * features/rs6000/powerpc-64l.c: Re-generated.
6516 * features/rs6000/powerpc-7400.c: Re-generated.
6517 * features/rs6000/powerpc-750.c: Re-generated.
6518 * features/rs6000/powerpc-860.c: Re-generated.
6519 * features/rs6000/powerpc-altivec32.c: Re-generated.
6520 * features/rs6000/powerpc-altivec32l.c: Re-generated.
6521 * features/rs6000/powerpc-altivec64.c: Re-generated.
6522 * features/rs6000/powerpc-altivec64l.c: Re-generated.
6523 * features/rs6000/powerpc-cell32l.c: Re-generated.
6524 * features/rs6000/powerpc-cell64l.c: Re-generated.
6525 * features/rs6000/powerpc-e500.c: Re-generated.
6526 * features/rs6000/powerpc-e500l.c: Re-generated.
6527 * features/rs6000/powerpc-isa205-32l.c: Re-generated.
6528 * features/rs6000/powerpc-isa205-64l.c: Re-generated.
6529 * features/rs6000/powerpc-isa205-altivec32l.c: Re-generated.
6530 * features/rs6000/powerpc-isa205-altivec64l.c: Re-generated.
6531 * features/rs6000/powerpc-isa205-vsx32l.c: Re-generated.
6532 * features/rs6000/powerpc-isa205-vsx64l.c: Re-generated.
6533 * features/rs6000/powerpc-vsx32.c: Re-generated.
6534 * features/rs6000/powerpc-vsx32l.c: Re-generated.
6535 * features/rs6000/powerpc-vsx64.c: Re-generated.
6536 * features/rs6000/powerpc-vsx64l.c: Re-generated.
6537 * features/rs6000/rs6000.c: Re-generated.
6538 * features/s390-linux32.c: Re-generated.
6539 * features/s390-linux32v1.c: Re-generated.
6540 * features/s390-linux32v2.c: Re-generated.
6541 * features/s390-linux64.c: Re-generated.
6542 * features/s390-linux64v1.c: Re-generated.
6543 * features/s390-linux64v2.c: Re-generated.
6544 * features/s390-te-linux64.c: Re-generated.
6545 * features/s390-tevx-linux64.c: Re-generated.
6546 * features/s390-vx-linux64.c: Re-generated.
6547 * features/s390x-linux64.c: Re-generated.
6548 * features/s390x-linux64v1.c: Re-generated.
6549 * features/s390x-linux64v2.c: Re-generated.
6550 * features/s390x-te-linux64.c: Re-generated.
6551 * features/s390x-tevx-linux64.c: Re-generated.
6552 * features/s390x-vx-linux64.c: Re-generated.
6553 * features/sparc/sparc32-solaris.c: Re-generated.
6554 * features/sparc/sparc64-solaris.c: Re-generated.
6555 * features/tic6x-c62x.c: Re-generated.
6556 * features/tic6x-c62x-linux.c: Re-generated.
6557 * features/tic6x-c64x.c: Re-generated.
6558 * features/tic6x-c64x-linux.c: Re-generated.
6559 * features/tic6x-c64xp.c: Re-generated.
6560 * features/tic6x-c64xp-linux.c: Re-generated.
6561
35b4818d
YQ
65622017-07-26 Yao Qi <yao.qi@linaro.org>
6563
6564 * i386-linux-tdep.c (i386_linux_read_description): New function.
6565 (i386_linux_core_read_description): Call
6566 i386_linux_read_description.
6567 * i386-linux-tdep.h (i386_linux_read_description): Declare.
6568 (tdesc_i386_linux, tdesc_i386_mmx_linux): Remove declarations.
6569 (tdesc_i386_avx_linux, tdesc_i386_mpx_linux): Likewise
6570 (tdesc_i386_avx_mpx_linux, tdesc_i386_avx_avx512_linux): Likewise.
6571 (tdesc_i386_avx_mpx_avx512_pku_linux): Likewise.
6572 * x86-linux-nat.c (x86_linux_read_description): Call
6573 i386_linux_read_description.
6574
8e2141c6
YQ
65752017-07-26 Yao Qi <yao.qi@linaro.org>
6576
6577 * NEWS: Mention it.
6578 * features/Makefile (%.c: %.xml): Pass the xml file name to
6579 command "maint print c-tdesc".
6580 * target-descriptions.c (maint_print_c_tdesc_cmd): Get file
6581 name from 'arg'.
6582
b468ff4c
YQ
65832017-07-26 Yao Qi <yao.qi@linaro.org>
6584
6585 * target-descriptions.c (target_desc): Add ctor and dtor. Do
6586 in-class initialization.
6587 (tdesc_create_feature): Call new instead of XCNEW.
6588 (free_target_description): Ue delete.
6589
b9c0e1b4
JB
65902017-07-25 John Baldwin <jhb@FreeBSD.org>
6591
6592 * configure.nat: Add "-lkvm" for NetBSD/sparc64 and fix typo.
6593
a04b5337
YQ
65942017-07-25 Yao Qi <yao.qi@linaro.org>
6595
6596 * amd64-tdep.c (amd64_init_abi): Make argument default_tdesc
6597 constant.
6598 (amd64_x32_init_abi): Likewise.
6599 * amd64-tdep.h (amd64_init_abi): Update declaration.
6600 (amd64_x32_init_abi): Likewise.
6601
02ad7fc2
YQ
66022017-07-25 Yao Qi <yao.qi@linaro.org>
6603
6604 PR tdep/21717
6605 * arm-linux-nat.c (arm_linux_fetch_inferior_registers): Update
6606 condition for FPSCR.
6607 (arm_linux_store_inferior_registers): Likewise.
6608
b6f48cb0
TT
66092017-07-22 Tom Tromey <tom@tromey.com>
6610
6611 * break-catch-syscall.c (struct catch_syscall_inferior_data)
6612 <syscalls_counts>: Now a std::vector.
6613 (get_catch_syscall_inferior_data): Use "new".
6614 (catch_syscall_inferior_data_cleanup): Use "delete".
6615 (insert_catch_syscall, remove_catch_syscall)
6616 (clear_syscall_counts): Update.
6617
e12c9b7a
TT
66182017-07-22 Tom Tromey <tom@tromey.com>
6619
6620 * break-catch-syscall.c (syscall_catchpoint)
6621 <syscalls_to_be_caught>: Now a std::vector<int>
6622 (~syscall_catchpoint): Remove.
6623 (insert_catch_syscall, remove_catch_syscall)
6624 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
6625 (print_mention_catch_syscall, print_recreate_catch_syscall):
6626 Update.
6627 (create_syscall_event_catchpoint): Change type of "filter"
6628 parameter.
6629 (catch_syscall_split_args): Return a std::vector.
6630 (catch_syscall_command_1, catching_syscall_number_1): Update.
6631
4fa8aeac
TT
66322017-07-22 Tom Tromey <tom@tromey.com>
6633
6634 * break-catch-throw.c (struct exception_catchpoint)
6635 <exception_rx>: Now a std::string.
6636 (~exception_catchpoint): Remove.
6637 (print_one_detail_exception_catchpoint): Update.
6638 (handle_gnu_v3_exceptions): Change type of except_rx.
6639 (extract_exception_regexp): Return a std::string.
6640 (catch_exception_command_1): Update.
6641
f746a154
TT
66422017-07-22 Tom Tromey <tom@tromey.com>
6643
6644 * break-catch-sig.c (gdb_signal_type): Remove typedef.
6645 (struct signal_catchpoint) <signals_to_be_caught>: Now a
6646 std::vector.
6647 <catch_all>: Now a bool.
6648 (~signal_catchpoint): Remove.
6649 (signal_catchpoint_insert_location)
6650 (signal_catchpoint_remove_location)
6651 (signal_catchpoint_breakpoint_hit, signal_catchpoint_print_one)
6652 (signal_catchpoint_print_mention)
6653 (signal_catchpoint_print_recreate)
6654 (signal_catchpoint_explains_signal): Update.
6655 (create_signal_catchpoint): Change type of "filter" and
6656 "catch_all".
6657 (catch_signal_split_args): Return a std::vector. Change type of
6658 "catch_all".
6659 (catch_signal_command): Update.
6660
47e77640
PA
66612017-07-20 Pedro Alves <palves@redhat.com>
6662
6663 * ada-lang.c (ada_language_defn): Make extern.
6664 (_initialize_ada_language): Remove add_language call.
6665 * c-lang.c (c_language_defn, cplus_language_defn)
6666 (asm_language_defn, minimal_language_defn): Make extern.
6667 (_initialize_c_language): Delete.
6668 * completer.c (compare_cstrings): Delete, moved to utils.h.
6669 * d-lang.c (d_language_defn): Make extern.
6670 (_initialize_d_language): Remove add_language calls.
6671 * defs.h (enum language): Add comment.
6672 * f-lang.c (f_language_defn): Make extern.
6673 (_initialize_f_language): Remove add_language call.
6674 * go-lang.c (go_language_defn): Make extern.
6675 (_initialize_go_language): Remove add_language call.
6676 * language.c: Include <algorithm>.
6677 (languages): Redefine as const array.
6678 (languages_size, languages_allocsize, DEFAULT_ALLOCSIZE): Delete.
6679 (set_language_command): Handle "local". Use for-range loop.
6680 (set_language): Remove loop.
6681 (language_enum): Rewrite.
6682 (language_def, language_str): Remove loops.
6683 (add_language): Delete.
6684 (add_set_language_command): New, based on add_languages.
6685 (skip_language_trampoline): Adjust.
6686 (local_language_defn): Delete.
6687 (language_gdbarch_post_init): Adjust.
6688 (_initialize_language): Remove add_language calls. Call
6689 add_set_language_command.
6690 * language.h (add_language): Delete.
6691 (auto_language_defn)
6692 (unknown_language_defn, minimal_language_defn, ada_language_defn)
6693 (asm_language_defn, c_language_defn, cplus_language_defn)
6694 (d_language_defn, f_language_defn, go_language_defn)
6695 (m2_language_defn, objc_language_defn, opencl_language_defn)
6696 (pascal_language_defn, rust_language_defn): Declare.
6697 * m2-lang.c (m2_language_defn): Make extern.
6698 (_initialize_m2_language): Remove add_language call.
6699 * objc-lang.c (objc_language_defn): Make extern.
6700 (_initialize_objc_language): Remove add_language call.
6701 * opencl-lang.c (opencl_language_defn): Make extern.
6702 (_initialize_opencl_language): Remove add_language call.
6703 * p-lang.c (pascal_language_defn): Make extern.
6704 (_initialize_pascal_language): Delete.
6705 * rust-lang.c (rust_language_defn): Make extern.
6706 (_initialize_rust_language): Delete.
6707 * utils.h (compare_cstrings): New static inline function.
6708
edb0c9cb
PA
67092017-07-20 Pedro Alves <palves@redhat.com>
6710
6711 * ada-lang.c (ada_to_fixed_type_1): Adjust.
6712 (get_var_value): Constify parameters.
6713 (get_int_var_value): Change prototype.
6714 (to_fixed_range_type): Adjust.
6715 * ada-lang.h (get_int_var_value): Change prototype.
6716
a778f165
PA
67172017-07-20 Pedro Alves <palves@redhat.com>
6718
6719 * dwarf2read.c (dw2_lookup_symbol): Use
6720 SYMBOL_MATCHES_SEARCH_NAME.
6721 * psymtab.c (psym_lookup_symbol): Use SYMBOL_MATCHES_SEARCH_NAME.
6722
42edd901
PA
67232017-07-20 Pedro Alves <palves@redhat.com>
6724
6725 * block.c (block_iter_name_step, block_iter_name_first)
6726 (block_iter_name_next): Delete.
6727 (block_lookup_symbol_primary): Adjust to use
6728 dict_iter_match_first/dict_iter_match_next.
6729 * block.h (block_iter_name_first, block_iter_name_next): Delete
6730 declarations.
6731 (ALL_BLOCK_SYMBOLS_WITH_NAME): Adjust to use
6732 dict_iter_match_first/dict_iter_match_next.
6733
cf325299
PA
67342017-07-20 Pedro Alves <palves@redhat.com>
6735
6736 * cp-support.c (cp_find_first_component_aux): Add missing case for
6737 end of string.
6738
c5ed0576
DB
67392017-07-18 David Blaikie <dblaikie@gmail.com>
6740
6741 * dwarf2read.c (create_cus_hash_table): Re-add lost initialization
6742 of dwo_cu's dwo_file.
6743
27841e76
YQ
67442017-07-18 Yao Qi <yao.qi@linaro.org>
6745
6746 * remote.c (store_registers_using_G): Remove one line comment.
6747
cfb7e58b
YQ
67482017-07-18 Yao Qi <yao.qi@linaro.org>
6749
6750 * regcache.c (regcache_cpy): Simplify it.
6751 (regcache::cpy_no_passthrough): Remove it.
6752 * regcache.h (cpy_no_passthrough): Remove it.
6753 (regcache_dup, regcache_cpy): Update comments.
6754
386535dd
PA
67552017-07-18 Pedro Alves <palves@redhat.com>
6756
6757 * remote-sim.c (sim_command_completer): Adjust to work with a
6758 completion_tracker instead of a VEC.
6759
c45ec17c
PA
67602017-07-17 Pedro Alves <palves@redhat.com>
6761
6762 * completer.c (complete_source_filenames): New function.
6763 (complete_address_and_linespec_locations): New function.
6764 (location_completer): Use complete_address_and_linespec_locations.
6765 (completion_tracker::build_completion_result): Honor the tracker's
6766 request to suppress append.
6767 * completer.h (completion_tracker::suppress_append_ws)
6768 (completion_tracker::set_suppress_append_ws): New methods.
6769 (completion_tracker::m_suppress_append_ws): New field.
6770 (complete_source_filenames): New declaration.
6771 * linespec.c (linespec_complete_what): New.
6772 (struct ls_parser) <complete_what, completion_word,
6773 completion_quote_char, completion_quote_end, completion_tracker>:
6774 New fields.
6775 (string_find_incomplete_keyword_at_end): New.
6776 (linespec_lexer_lex_string): Record quote char. If in completion
6777 mode, don't throw.
6778 (linespec_lexer_consume_token): Advance the completion word point.
6779 (linespec_lexer_peek_token): Save/restore completion info.
6780 (save_stream_and_consume_token): New.
6781 (set_completion_after_number): New.
6782 (linespec_parse_basic): Set what to complete next depending on
6783 token. Handle function and label completions specially.
6784 (parse_linespec): Disable objc shortcut in completion mode. Set
6785 what to complete next depending on token type. Skip keyword if in
6786 completion mode.
6787 (complete_linespec_component, linespec_complete): New.
6788 * linespec.h (linespec_complete): Declare.
6789
be966d42
PA
67902017-07-17 Pedro Alves <palves@redhat.com>
6791
6792 * linespec.c (linespec_lexer_lex_string, find_toplevel_char):
6793 Handle 'operator<' / 'operator<<'.
6794
a2459270
PA
67952017-07-17 Pedro Alves <palves@redhat.com>
6796
6797 * completer.c (collect_explicit_location_matches): Handle
6798 MATCH_LABEL.
6799 (convert_explicit_location_to_linespec): New, factored out from
6800 ...
6801 (convert_explicit_location_to_sals): ... this.
6802 (complete_label): New.
6803 (linespec_complete_label, find_label_symbols_in_block): New.
6804 (find_label_symbols): Add completion_mode parameter and adjust to
6805 call find_label_symbols_in_block.
6806 * linespec.h (linespec_complete_label): Declare.
6807
c6756f62
PA
68082017-07-17 Pedro Alves <palves@redhat.com>
6809
6810 * ada-lang.c (ada_collect_symbol_completion_matches): Add
6811 complete_symbol_mode parameter.
6812 * cli/cli-cmds.c (complete_command): Get the completion result out
6813 of the handle_brkchars tracker if used a custom word point.
6814 * completer.c: Include "linespec.h".
6815 (enum explicit_location_match_type) <MATCH_LINE>: New enumerator.
6816 (advance_to_expression_complete_word_point): New.
6817 (completion_tracker::completes_to_completion_word): New.
6818 (complete_files_symbols): Pass down
6819 complete_symbol_mode::EXPRESSION.
6820 (explicit_options, probe_options): New.
6821 (collect_explicit_location_matches): Complete on the
6822 explictit_loc->foo instead of word. Use
6823 linespec_complete_function. Handle MATCH_LINE. Handle offering
6824 keyword and options completions.
6825 (backup_text_ptr): Delete.
6826 (skip_keyword): New.
6827 (complete_explicit_location): Remove 'word' parameter. Add
6828 language, quoted_arg_start and quoted_arg_end parameters.
6829 Rewrite, parsing left to right.
6830 (location_completer): Rewrite.
6831 (location_completer_handle_brkchars): New function.
6832 (symbol_completer): Pass down complete_symbol_mode::EXPRESSION.
6833 (enum complete_line_internal_reason): Adjust comments.
6834 (completion_tracker::discard_completions): New.
6835 (completer_handle_brkchars_func_for_completer): Handle
6836 location_completer.
6837 (gdb_custom_word_point_brkchars)
6838 (gdb_org_rl_basic_quote_characters): New.
6839 (gdb_completion_word_break_characters_throw)
6840 (completion_find_completion_word): Handle trackers that use a
6841 custom word point.
6842 (completion_tracker::advance_custom_word_point_by): New.
6843 (completion_tracker::build_completion_result): Don't rely on
6844 readline appending the quote char.
6845 (gdb_rl_attempted_completion_function_throw): Handle trackers that
6846 use a custom word point.
6847 (gdb_rl_attempted_completion_function): Restore
6848 rl_basic_quote_characters.
6849 * completer.h (class completion_tracker): Extend intro comment.
6850 (completion_tracker::set_quote_char)
6851 (completion_tracker::quote_char)
6852 (completion_tracker::set_use_custom_word_point)
6853 (completion_tracker::use_custom_word_point)
6854 (completion_tracker::custom_word_point)
6855 (completion_tracker::set_custom_word_point)
6856 (completion_tracker::advance_custom_word_point_by)
6857 (completion_tracker::completes_to_completion_word)
6858 (completion_tracker::discard_completions): New methods.
6859 (completion_tracker::m_quote_char)
6860 (completion_tracker::m_use_custom_word_point)
6861 (completion_tracker::m_custom_word_point): New fields.
6862 (advance_to_expression_complete_word_point): Declare.
6863 * f-lang.c (f_collect_symbol_completion_matches): Add
6864 complete_symbol_mode parameter.
6865 * language.h (struct language_defn)
6866 <la_collect_symbol_completion_matches>: Add complete_symbol_mode
6867 parameter.
6868 * linespec.c (linespec_keywords): Add NULL terminator. Make extern.
6869 (linespec_complete_function): New function.
6870 (linespec_lexer_lex_keyword): Adjust.
6871 * linespec.h (linespec_keywords, linespec_complete_function): New
6872 declarations.
6873 * location.c (find_end_quote): New function.
6874 (explicit_location_lex_one): Add explicit_completion_info
6875 parameter. Save quoting info. Don't throw if being called for
6876 completion. Don't handle Ada operators here.
6877 (is_cp_operator, skip_op_false_positives, first_of)
6878 (explicit_location_lex_one_function): New function.
6879 (string_to_explicit_location): Replace 'dont_throw' parameter with
6880 an explicit_completion_info pointer parameter. Handle it. Don't
6881 use explicit_location_lex_one to lex function names. Use
6882 explicit_location_lex_one_function instead.
6883 * location.h (struct explicit_completion_info): New.
6884 (string_to_explicit_location): Replace 'dont_throw' parameter with
6885 an explicit_completion_info pointer parameter.
6886 * symtab.c (default_collect_symbol_completion_matches_break_on):
6887 Add complete_symbol_mode parameter. Handle LINESPEC mode.
6888 (default_collect_symbol_completion_matches)
6889 (collect_symbol_completion_matches): Add complete_symbol_mode
6890 parameter.
6891 (collect_symbol_completion_matches_type): Pass down
6892 complete_symbol_mode::EXPRESSION.
6893 (collect_file_symbol_completion_matches): Add complete_symbol_mode
6894 parameter. Handle LINESPEC mode.
6895 * symtab.h (complete_symbol_mode): New.
6896 (default_collect_symbol_completion_matches_break_on)
6897 (default_collect_symbol_completion_matches)
6898 (collect_symbol_completion_matches)
6899 (collect_file_symbol_completion_matches): Add complete_symbol_mode
6900 parameter.
6901
1d550c82
PA
69022017-07-17 Pedro Alves <palves@redhat.com>
6903
6904 * utils.c (enum class strncmp_iw_mode): New.
6905 (strcmp_iw): Rename to ...
6906 (strncmp_iw_with_mode): ... this. Add string2_len and mode
6907 parameters. Handle them.
6908 (strncmp_iw): New.
6909 (strcmp_iw): Reimplement as wrapper around strncmp_iw_with_mode.
6910 * utils.h (strncmp_iw): Declare.
6911 (strcmp_iw): Move describing comments here.
6912
8090b426
PA
69132017-07-17 Pedro Alves <palves@redhat.com>
6914
6915 * c-exp.y (operator_stoken): Use CP_OPERATOR_LEN and
6916 CP_OPERATOR_STR.
6917 * c-typeprint.c (is_type_conversion_operator): Use
6918 CP_OPERATOR_STR.
6919 * cp-support.c (LENGTH_OF_OPERATOR): Delete.
6920 (cp_find_first_component_aux): Use CP_OPERATOR_STR and
6921 CP_OPERATOR_LEN.
6922 * cp-support.h (CP_OPERATOR_STR, CP_OPERATOR_LEN): New.
6923 * gnu-v2-abi.c (gnuv2_is_operator_name): Use CP_OPERATOR_STR.
6924 * gnu-v3-abi.c (gnuv3_is_operator_name): Use CP_OPERATOR_STR.
6925 * linespec.c (linespec_lexer_lex_string): Use CP_OPERATOR_LEN and
6926 CP_OPERATOR_STR.
6927 * location.c: Include "cp-support.h".
6928 (explicit_location_lex_one): Use CP_OPERATOR_LEN and
6929 CP_OPERATOR_STR.
6930 * symtab.c (operator_chars): Use CP_OPERATOR_STR and
6931 CP_OPERATOR_LEN.
6932
6a2c1b87
PA
69332017-07-17 Pedro Alves <palves@redhat.com>
6934
6935 * cli/cli-cmds.c (complete_command): Use a completion tracker
6936 along with completion_find_completion_word for handle_brkchars
6937 phase.
6938 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
6939 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): New.
6940 (struct gdb_rl_completion_word_info): New.
6941 (gdb_rl_find_completion_word): New.
6942 (completion_find_completion_word): New.
6943 * completer.h (completion_find_completion_word): Declare.
6944
eb3ff9a5
PA
69452017-07-17 Pedro Alves <palves@redhat.com>
6946
6947 * ada-lang.c (symbol_completion_match): Adjust comments.
6948 (symbol_completion_add): Replace vector parameter with
6949 completion_tracker parameter. Use it.
6950 (ada_make_symbol_completion_list): Rename to...
6951 (ada_collect_symbol_completion_matches): ... this. Add
6952 completion_tracker parameter and use it.
6953 (ada_language_defn): Adjust.
6954 * break-catch-syscall.c (catch_syscall_completer): Adjust
6955 prototype and work with completion_tracker instead of VEC.
6956 * breakpoint.c (condition_completer): Adjust prototype and work
6957 with completion_tracker instead of VEC.
6958 * c-lang.c (c_language_defn, cplus_language_defn)
6959 (asm_language_defn, minimal_language_defn): Adjust to renames.
6960 * cli/cli-cmds.c (complete_command): Rework using
6961 completion_tracker. Catch exceptions when completing.
6962 * cli/cli-decode.c (integer_unlimited_completer)
6963 (complete_on_cmdlist, complete_on_enum): Adjust prototype and work
6964 with completion_tracker instead of VEC.
6965 * command.h (struct completion_tracker): Forward declare.
6966 (completer_ftype, completer_handle_brkchars_ftype): Change
6967 types.
6968 (complete_on_cmdlist, complete_on_enum): Adjust.
6969 * completer.c: Include <algorithm>.
6970 (struct gdb_completer_state): New.
6971 (current_completion): New global.
6972 (readline_line_completion_function): Delete.
6973 (noop_completer, filename_completer)
6974 (filename_completer_handle_brkchars, complete_files_symbols)
6975 (linespec_location_completer): Adjust to work with a
6976 completion_tracker instead of a VEC.
6977 (string_or_empty): New.
6978 (collect_explicit_location_matches): Adjust to work with a
6979 completion_tracker instead of a VEC.
6980 (explicit_location_completer): Rename to ...
6981 (complete_explicit_location): ... this and adjust to work with a
6982 completion_tracker instead of a VEC.
6983 (location_completer): Adjust to work with a completion_tracker
6984 instead of a VEC.
6985 (add_struct_fields): Adjust to work with a completion_list instead
6986 of VEC.
6987 (expression_completer): Rename to ...
6988 (complete_expression): ... this and adjust to work with a
6989 completion_tracker instead of a VEC. Use complete_files_symbols.
6990 (expression_completer): Reimplement on top of complete_expression.
6991 (symbol_completer): Adjust to work with a completion_tracker
6992 instead of a VEC.
6993 (enum complete_line_internal_reason): Add describing comments.
6994 (complete_line_internal_normal_command): Adjust to work with a
6995 completion_tracker instead of a VEC.
6996 (complete_line_internal): Rename to ...
6997 (complete_line_internal_1): ... this and adjust to work with a
6998 completion_tracker instead of a VEC. Assert TEXT is NULL in the
6999 handle_brkchars phase.
7000 (new_completion_tracker): Delete.
7001 (complete_line_internal): Reimplement as TRY/CATCH wrapper around
7002 complete_line_internal_1.
7003 (free_completion_tracker): Delete.
7004 (INITIAL_COMPLETION_HTAB_SIZE): New.
7005 (completion_tracker::completion_tracker)
7006 (completion_tracker::~completion_tracker): New.
7007 (maybe_add_completion): Delete.
7008 (completion_tracker::maybe_add_completion)
7009 (completion_tracker::add_completion)
7010 (completion_tracker::add_completions): New.
7011 (throw_max_completions_reached_error): Delete.
7012 (complete_line): Adjust to work with a completion_tracker instead
7013 of a VEC. Don't create a completion_tracker_t or check for max
7014 completions here.
7015 (command_completer, command_completer_handle_brkchars)
7016 (signal_completer, reg_or_group_completer_1)
7017 (reg_or_group_completer, default_completer_handle_brkchars):
7018 Adjust to work with a completion_tracker.
7019 (gdb_completion_word_break_characters_throw): New.
7020 (gdb_completion_word_break_characters): Reimplement.
7021 (line_completion_function): Delete.
7022 (completion_tracker::recompute_lowest_common_denominator)
7023 (expand_preserving_ws)
7024 (completion_tracker::build_completion_result)
7025 (completion_result::completion_result)
7026 (completion_result::completion_result)
7027 (completion_result::~completion_result)
7028 (completion_result::completion_result)
7029 (completion_result::release_match_list, compare_cstrings)
7030 (completion_result::sort_match_list)
7031 (completion_result::reset_match_list)
7032 (gdb_rl_attempted_completion_function_throw)
7033 (gdb_rl_attempted_completion_function): New.
7034 * completer.h (completion_list, struct completion_result)
7035 (class completion_tracker): New.
7036 (complete_line): Add completion_tracker parameter.
7037 (readline_line_completion_function): Delete.
7038 (gdb_rl_attempted_completion_function): New.
7039 (noop_completer, filename_completer, expression_completer)
7040 (location_completer, symbol_completer, command_completer)
7041 (signal_completer, reg_or_group_completer): Update prototypes.
7042 (completion_tracker_t, new_completion_tracker)
7043 (make_cleanup_free_completion_tracker): Delete.
7044 (enum maybe_add_completion_enum): Delete.
7045 (maybe_add_completion): Delete.
7046 (throw_max_completions_reached_error): Delete.
7047 * corefile.c (complete_set_gnutarget): Adjust to work with a
7048 completion_tracker instead of a VEC.
7049 * cp-abi.c (cp_abi_completer): Adjust to work with a
7050 completion_tracker instead of a VEC.
7051 * d-lang.c (d_language_defn): Adjust.
7052 * disasm.c (disassembler_options_completer): Adjust to work with a
7053 completion_tracker instead of a VEC.
7054 * f-lang.c (f_make_symbol_completion_list): Rename to ...
7055 (f_collect_symbol_completion_matches): ... this. Adjust to work
7056 with a completion_tracker instead of a VEC.
7057 (f_language_defn): Adjust.
7058 * go-lang.c (go_language_defn): Adjust.
7059 * guile/scm-cmd.c (cmdscm_add_completion, cmdscm_completer):
7060 Adjust to work with a completion_tracker instead of a VEC.
7061 * infrun.c (handle_completer): Likewise.
7062 * interps.c (interpreter_completer): Likewise.
7063 * interps.h (interpreter_completer): Likewise.
7064 * language.c (unknown_language_defn, auto_language_defn)
7065 (local_language_defn): Adjust.
7066 * language.h (language_defn::la_make_symbol_completion_list):
7067 Rename to ...
7068 (language_defn::la_collect_symbol_completion_matches): ... this
7069 and adjust to work with a completion_tracker instead of a VEC.
7070 * m2-lang.c (m2_language_defn): Adjust.
7071 * objc-lang.c (objc_language_defn): Adjust.
7072 * opencl-lang.c (opencl_language_defn): Adjust.
7073 * p-lang.c (pascal_language_defn): Adjust.
7074 * python/py-cmd.c (cmdpy_completer_helper): Handle NULL word.
7075 (cmdpy_completer_handle_brkchars, cmdpy_completer): Adjust to work
7076 with a completion_tracker.
7077 * rust-lang.c (rust_language_defn): Adjust.
7078 * symtab.c (free_completion_list, do_free_completion_list)
7079 (return_val, completion_tracker): Delete.
7080 (completion_list_add_name, completion_list_add_symbol)
7081 (completion_list_add_msymbol, completion_list_objc_symbol)
7082 (completion_list_add_fields, add_symtab_completions): Add
7083 completion_tracker parameter and use it.
7084 (default_make_symbol_completion_list_break_on_1): Rename to...
7085 (default_collect_symbol_completion_matches_break_on): ... this.
7086 Add completion_tracker parameter and use it instead of allocating
7087 a completion tracker here.
7088 (default_make_symbol_completion_list_break_on): Delete old
7089 implementation.
7090 (default_make_symbol_completion_list): Delete.
7091 (default_collect_symbol_completion_matches): New.
7092 (make_symbol_completion_list): Delete.
7093 (collect_symbol_completion_matches): New.
7094 (make_symbol_completion_type): Rename to ...
7095 (collect_symbol_completion_matches_type): ... this. Add
7096 completion_tracker parameter and use it instead of VEC.
7097 (make_file_symbol_completion_list_1): Rename to...
7098 (collect_file_symbol_completion_matches): ... this. Add
7099 completion_tracker parameter and use it instead of VEC.
7100 (make_file_symbol_completion_list): Delete.
7101 (add_filename_to_list): Use completion_list instead of a VEC.
7102 (add_partial_filename_data::list): Now a completion_list.
7103 (make_source_files_completion_list): Work with a completion_list
7104 instead of a VEC.
7105 * symtab.h: Include "completer.h".
7106 (default_make_symbol_completion_list_break_on)
7107 (default_make_symbol_completion_list, make_symbol_completion_list)
7108 (make_symbol_completion_type, make_file_symbol_completion_list)
7109 (make_source_files_completion_list): Delete.
7110 (default_collect_symbol_completion_matches_break_on)
7111 (default_collect_symbol_completion_matches)
7112 (collect_symbol_completion_matches)
7113 (collect_symbol_completion_matches_type)
7114 (collect_file_symbol_completion_matches)
7115 (make_source_files_completion_list): New.
7116 * top.c (init_main): Don't install a rl_completion_entry_function
7117 hook. Install a rl_attempted_completion_function hook instead.
7118 * tui/tui-layout.c (layout_completer): Adjust to work with a
7119 completion_tracker.
7120 * tui/tui-regs.c (tui_reggroup_completer):
7121 * tui/tui-win.c (window_name_completer, focus_completer)
7122 (winheight_completer): Adjust to work with a completion_tracker.
7123 * value.c: Include "completer.h".
7124 (complete_internalvar): Adjust to work with a completion_tracker.
7125 * value.h (complete_internalvar): Likewise.
7126
6e1dbf8c
PA
71272017-07-17 Pedro Alves <palves@redhat.com>
7128
7129 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): Adjust to
7130 renames.
7131 * cli/cli-decode.h (struct cmd_list_element) <completer>: Move
7132 comments to completer_ftype's declaration.
7133 <completer_handle_brkchars>: Change type to
7134 completer_handle_brkchars_ftype.
7135 * command.h (completer_ftype): Add describing comment and give
7136 names to parameters.
7137 (completer_ftype_void): Rename to ...
7138 (completer_handle_brkchars_ftype) ... this. Add describing comment.
7139 (set_cmd_completer_handle_brkchars): Adjust.
7140 * completer.c (filename_completer_handle_brkchars): New function.
7141 (complete_line_internal_normal_command): New function, factored
7142 out from ...
7143 (complete_line_internal): ... here.
7144 (command_completer_handle_brkchars)
7145 (default_completer_handle_brkchars)
7146 (completer_handle_brkchars_func_for_completer): New functions.
7147 * completer.h (set_gdb_completion_word_break_characters): Delete
7148 declaration.
7149 (completer_handle_brkchars_func_for_completer): New declaration.
7150 * python/py-cmd.c (cmdpy_completer_handle_brkchars): Adjust to use
7151 completer_handle_brkchars_func_for_completer.
7152
78b13106
PA
71532017-07-17 Pedro Alves <palves@redhat.com>
7154
7155 * completer.c (symbol_completer): New function, based on
7156 make_symbol_completion_list_fn.
7157 * completer.h (symbol_completer): New declaration.
7158 * guile/scm-cmd.c (cmdscm_completers): Adjust.
7159 * python/py-cmd.c (completers): Adjust.
7160 * symtab.c (make_symbol_completion_list_fn): Delete.
7161 * symtab.h (make_symbol_completion_list_fn): Delete.
7162 * cli/cli-decode.c (add_cmd): Adjust.
7163
bbf2f4df
PA
71642017-07-17 Pedro Alves <palves@redhat.com>
7165
7166 * Makefile.in (COMMON_OBS): Add filename-seen-cache.o.
7167 * dwarf2read.c: Include "filename-seen-cache.h".
7168 * dwarf2read.c (dwarf2_per_objfile) <filenames_cache>: New field.
7169 (dw2_map_symbol_filenames): Build and use a filenames_seen_cache.
7170 * filename-seen-cache.c: New file.
7171 * filename-seen-cache.h: New file.
7172 * symtab.c: Include "filename-seen-cache.h".
7173 (struct filename_seen_cache, INITIAL_FILENAME_SEEN_CACHE_SIZE)
7174 (create_filename_seen_cache, clear_filename_seen_cache)
7175 (delete_filename_seen_cache, filename_seen): Delete, parts moved
7176 to filename-seen-cache.h/filename-seen-cache.c.
7177 (output_source_filename, sources_info)
7178 (maybe_add_partial_symtab_filename)
7179 (make_source_files_completion_list): Adjust to use
7180 filename_seen_cache.
7181
330cdd98
PA
71822017-07-17 Pedro Alves <palves@redhat.com>
7183
7184 * dwarf2read.c (dwarf2_per_objfile): In-class initialize all
7185 fields.
7186 (dwarf2_per_objfile::dwarf2_per_objfile(objfile*, const
7187 dwarf2_debug_sections*)): New.
7188 (dwarf2_per_objfile::dwarf2_per_objfile(const
7189 dwarf2_per_objfile&)): Declare as deleted.
7190 (dwarf2_per_objfile::operator=): Declare as deleted.
7191 (dwarf2_per_objfile::dwarf2_per_objfile)
7192 (dwarf2_per_objfile::~dwarf2_per_objfile)
7193 (dwarf2_per_objfile::free_cached_comp_units): New.
7194 (dwarf2_has_info): dwarf2_per_objfile initialization code moved to
7195 ctor. Call dwarf2_per_objfile's ctor manually.
7196 (dwarf2_locate_sections): Deleted/refactored as ...
7197 (dwarf2_per_objfile::locate_sections): ... this new method.
7198 (free_cached_comp_units): Defer to
7199 dwarf2_per_objfile::free_cached_comp_units.
7200 (dwarf2_free_objfile): Call dwarf2_per_objfile's dtor manually.
7201
8880f2a9
TT
72022017-07-14 Tom Tromey <tom@tromey.com>
7203
7204 PR rust/21764:
7205 * rust-exp.y (convert_ast_to_expression): Add "want_type"
7206 parameter.
7207 <UNOP_SIZEOF>: Split into separate case.
7208 <UNOP_VAR_VALUE>: Handle want_type. Add error case.
7209
65547233
TT
72102017-07-14 Tom Tromey <tom@tromey.com>
7211
7212 PR rust/21763:
7213 * symtab.c (symbol_matches_domain): Add language_rust to special
7214 case.
7215 * rust-exp.y (convert_ast_to_expression) <OP_VAR_VALUE>: Don't
7216 treat LOC_TYPEDEF symbols as variables.
7217
8f14146e
PA
72182017-07-14 Pedro Alves <palves@redhat.com>
7219
7220 * symtab.c (make_file_symbol_completion_list_1): Iterate over
7221 symtabs matching all symtabs with SRCFILE as file name instead of
7222 only considering the first hit, with lookup_symtab.
7223
2347965c
SM
72242017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7225
7226 * ax-gdb.c (gen_aggregate_elt_ref): Remove operand_name and
7227 operator_name parameters.
7228 (gen_expr): Update function call.
7229
40f4af28
SM
72302017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7231
7232 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Remove gdbarch
7233 parameter.
7234 * symtab.h (struct symbol_computed_ops::tracepoint_var_ref):
7235 Likewise.
7236 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove gdbarch
7237 parameter, use agent_expr::gdbarch instead, update function
7238 calls.
7239 (locexpr_tracepoint_var_ref): Likewise.
7240 (loclist_tracepoint_var_ref): Likewise.
7241 * ax-gdb.c (gen_trace_static_fields): Likewise.
7242 (gen_traced_pop): Likewise.
7243 (gen_frame_args_address): Likewise.
7244 (gen_frame_locals_address): Likewise.
7245 (gen_var_ref): Likewise.
7246 (gen_struct_ref_recursive): Likewise.
7247 (gen_static_field): Likewise.
7248 (gen_maybe_namespace_elt): Likewise.
7249 (gen_expr): Likewise.
7250 (gen_trace_for_var): Likewise.
7251 (gen_trace_for_expr): Likewise.
7252 (gen_trace_for_return_address): Likewise.
7253
053f8057
SM
72542017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7255
7256 * ax-gdb.c (gen_deref, gen_address_of): Remove unused ax
7257 parameter.
7258 (gen_struct_ref, gen_expr, gen_expr_binop_rest): Update call.
7259
6661ad48
SM
72602017-07-14 Simon Marchi <simon.marchi@ericsson.com>
7261
7262 * ax-gdb.c (gen_usual_unary): Remove exp parameter, get gdbarch
7263 from ax, update calls.
7264 (gen_usual_arithmetic): Likewise.
7265 (gen_integral_promotions): Likewise.
7266 (gen_bitfield_ref): Likewise.
7267 (gen_primitive_field): Likewise.
7268 (gen_struct_ref_recursive): Likewise.
7269 (gen_struct_ref): Likewise.
7270 (gen_maybe_namespace_elt): Likewise.
7271 (gen_struct_elt_for_reference): Likewise.
7272 (gen_namespace_elt): Likewise.
7273 (gen_aggregate_elt_ref): Likewise.
7274 (gen_expr): Get gdbarch from ax, update calls.
7275 (gen_expr_binop_rest): Likewise.
7276
c55a47e7
PA
72772017-07-13 Pedro Alves <palves@redhat.com>
7278
7279 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Pass tdesc_amd64
7280 as default tdesc.
7281 * amd64-dicos-tdep.c (amd64_dicos_init_abi):
7282 * amd64-fbsd-tdep.c (amd64fbsd_init_abi):
7283 * amd64-linux-tdep.c (amd64_linux_init_abi): Pass
7284 tdesc_amd64_linux as default tdesc. Get final tdesc from the
7285 tdep.
7286 (amd64_x32_linux_init_abi): Pass tdesc_x32_linux as default tdesc.
7287 Get final tdesc from the tdep.
7288 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Pass tdesc_amd64 as
7289 default tdesc.
7290 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
7291 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
7292 * amd64-tdep.c (amd64_init_abi): Add 'default_tdesc' parameter.
7293 Use it as default tdesc.
7294 (amd64_x32_init_abi): Add 'default_tdesc' parameter, and pass it
7295 down to amd_init_abi. No longer handle fallback tdesc here.
7296 * amd64-tdep.h (tdesc_x32): Declare.
7297 (amd64_init_abi, amd64_x32_init_abi): Add 'default_tdesc'
7298 parameter.
7299 * amd64-windows-tdep.c (amd64_windows_init_abi): Pass tdesc_amd64
7300 as default tdesc.
7301
55efceab
AA
73022017-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7303
7304 * s390-linux-tdep.c (s390_process_record): Add support for
7305 instructions new in arch12.
7306
0aa37b65
JB
73072017-07-11 John Baldwin <jhb@FreeBSD.org>
7308
7309 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
7310 PT_GETFSBASE and PT_GETGSBASE.
7311 (amd64bsd_store_inferior_registers): Use PT_SETFSBASE and
7312 PT_SETGSBASE.
7313
48aeef91
JB
73142017-07-11 John Baldwin <jhb@FreeBSD.org>
7315
7316 * features/Makefile (amd64.dat, amd64-avx.dat, amd64-mpx.dat)
7317 (amd64-avx-mpx.dat, amd64-avx-avx512.dat)
7318 (amd64-avx-mpx-avx512-pku.dat): Add i386/64bit-segments.xml in
7319 those rules.
7320 * features/i386/amd64-avx-avx512.xml: Add 64bit-segments.xml.
7321 * features/i386/amd64-avx-mpx-avx512-pku.xml: Add 64bit-segments.xml.
7322 * features/i386/amd64-avx-mpx.xml: Add 64bit-segments.xml.
7323 * features/i386/amd64-avx.xml: Add 64bit-segments.xml.
7324 * features/i386/amd64-mpx.xml: Add 64bit-segments.xml.
7325 * features/i386/amd64.xml: Add 64bit-segments.xml.
7326 * features/i386/amd64-avx-avx512.c: Regenerated.
7327 * features/i386/amd64-avx-mpx-avx512-pku.c: Regenerated.
7328 * features/i386/amd64-avx-mpx.c: Regenerated.
7329 * features/i386/amd64-avx.c: Regenerated.
7330 * features/i386/amd64-mpx.c: Regenerated.
7331 * features/i386/amd64.c: Regenerated.
7332 * regformats/i386/amd64-avx-avx512.dat: Regenerated.
7333 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
7334 * regformats/i386/amd64-avx-mpx.dat: Regenerated.
7335 * regformats/i386/amd64-avx.dat: Regenerated.
7336 * regformats/i386/amd64-mpx.dat: Regenerated.
7337 * regformats/i386/amd64.dat: Regenerated.
7338
77c501bc
YQ
73392017-07-10 Yao Qi <yao.qi@linaro.org>
7340
7341 * features/i386/amd64-avx-avx512-linux.c: Re-generated.
7342 * features/i386/amd64-avx-mpx-avx512-pku-linux.c: Re-generated.
7343
6dc8d757
AK
73442017-07-10 Anton Kolesov <Anton.Kolesov@synopsys.com>
7345
7346 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add setenv and
7347 unsetenv.
7348 * gnulib/aclocal.m4: Regenerate.
7349 * gnulib/config.in: Regenerate.
7350 * gnulib/configure: Regenerate.
7351 * gnulib/import/Makefile.am: Regenerate.
7352 * gnulib/import/Makefile.in: Regenerate.
7353 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
7354 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
7355 * gnulib/import/m4/environ.m4: New file.
7356 * gnulib/import/m4/setenv.m4: New file.
7357 * gnulib/import/setenv.c: New file.
7358 * gnulib/import/unsetenv.c: New file.
7359
266934d1
SM
73602017-07-09 Simon Marchi <simon.marchi@ericsson.com>
7361
7362 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Read
7363 address when op is DW_OP_addr.
7364
03278692
TT
73652017-07-09 Tom Tromey <tom@tromey.com>
7366
7367 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Reverse size
7368 check and apply to outer type.
7369
4b654465
JB
73702017-07-07 John Baldwin <jhb@FreeBSD.org>
7371
7372 * fbsd-tdep.c (LWPINFO_OFFSET, LWPINFO_PL_FLAGS)
7373 (LWPINFO64_PL_SIGINFO, LWPINFO32_PL_SIGINFO, PL_FLAG_SI)
7374 (SIZE64_SIGINFO_T, SIZE32_SIGINFO_T, fbsd_core_xfer_siginfo): New.
7375 (fbsd_init_abi): Install gdbarch "core_xfer_siginfo" method.
7376
2af9fc44
JB
73772017-07-07 John Baldwin <jhb@FreeBSD.org>
7378
7379 * fbsd-tdep.c (fbsd_core_thread_name): Use thread_section_name.
7380
382b69bb
JB
73812017-07-07 John Baldwin <jhb@FreeBSD.org>
7382
7383 * corelow.c (get_core_siginfo): Remove.
7384 (core_xfer_partial): Use the gdbarch "core_xfer_siginfo" method
7385 instead of get_core_siginfo.
7386 * gdbarch.sh (core_xfer_siginfo): New gdbarch callback.
7387 * gdbarch.h: Re-generate.
7388 * gdbarch.c: Re-generate.
7389 * linux-tdep.c (linux_core_xfer_siginfo): New.
7390 (linux_init_abi): Install gdbarch "core_xfer_siginfo" method.
7391
6e5eab33
JB
73922017-07-07 John Baldwin <jhb@FreeBSD.org>
7393
7394 * corelow.c (thread_section_name): Move to ...
7395 * gdbcore.h (thread_section_name): ... here.
7396
929edea9
JB
73972017-07-07 John Baldwin <jhb@FreeBSD.org>
7398
7399 * fbsd-nat.c [PT_LWPINFO && __LP64__] (union sigval32)
7400 (struct siginfo32): New.
7401 [PT_LWPINFO] (fbsd_siginfo_size, fbsd_convert_siginfo): New.
7402 (fbsd_xfer_partial) [PT_LWPINFO]: Handle TARGET_OBJECT_SIGNAL_INFO
7403 via ptrace(PT_LWPINFO).
7404
762c974a
JB
74052017-07-07 John Baldwin <jhb@FreeBSD.org>
7406
7407 * fbsd-tdep.c (fbsd_gdbarch_data_handle, struct fbsd_gdbarch_data)
7408 (init_fbsd_gdbarch_data, get_fbsd_gdbarch_data)
7409 (fbsd_get_siginfo_type): New.
7410 (fbsd_init_abi): Install gdbarch "get_siginfo_type" method.
7411 (_initialize_fbsd_tdep): New.
7412
33c5cd75
DB
74132017-07-06 David Blaikie <dblaikie@gmail.com>
7414
7415 * dwarf2read.c (struct dwo_file): Use a htab of dwo_unit* (rather than
7416 a singular dwo_unit*) to support multiple CUs in the same way that
7417 multiple TUs are supported.
7418 (create_cus_hash_table): Replace create_dwo_cu with a function for
7419 parsing multiple CUs from a DWO file.
7420 (open_and_init_dwo_file): Use create_cus_hash_table rather than
7421 create_dwo_cu.
7422 (lookup_dwo_cutu): Lookup CU in the hash table in the dwo_file with
7423 htab_find, rather than comparing the signature to a singleton CU in
7424 the dwo_file.
7425
8455d262
PA
74262017-07-06 Pedro Alves <palves@redhat.com>
7427
7428 * python/py-unwind.c (pyuw_dealloc_cache): Fix for loop condition.
7429
4da3eb35
PA
74302017-07-04 Pedro Alves <palves@redhat.com>
7431
7432 * gdbtypes.c (recursive_dump_type): Don't reference TYPE_STATIC.
7433 * gdbtypes.h (TYPE_STATIC): Delete.
7434 (struct fn_field) <is_public, is_abstract, is_static, is_final,
7435 is_synchronized, is_native>: Delete.
7436 <dummy>: Bump.
7437 (TYPE_FN_FIELD_PUBLIC, TYPE_FN_FIELD_STATIC, TYPE_FN_FIELD_FINAL)
7438 (TYPE_FN_FIELD_SYNCHRONIZED, TYPE_FN_FIELD_NATIVE)
7439 (TYPE_FN_FIELD_ABSTRACT): Delete.
7440
5bfd255c
SM
74412017-07-03 Simon Marchi <simon.marchi@ericsson.com>
7442
7443 * buffer.h (buffer_finish): Fix spelling mistakes.
7444
25c54127
EZ
74452017-07-01 Eli Zaretskii <eliz@gnu.org>
7446
7447 * .dir-locals.el: Automatically switch to C-style comments in
7448 versions of Emacs that support the feature.
7449
dc4bde35
SDJ
74502017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
7451 Pedro Alves <palves@redhat.com>
7452
7453 PR cli/21688
7454 * cli/cli-script.c (command_name_equals_not_inline): Remove function.
7455 (process_next_line): New variable 'inline_cmd'.
7456 Adjust 'if' clauses for "python", "compile" and "guile" to use
7457 'command_name_equals' and check for '!inline_cmd'.
7458
51ed89aa
SDJ
74592017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
7460
7461 PR cli/21688
7462 * cli/cli-script.c (command_name_equals_not_inline): New function.
7463 (process_next_line): Adjust 'if' clauses for "python", "compile"
7464 and "guile" to use command_name_equals_not_inline.
7465
eb17d413
PA
74662017-06-29 Pedro Alves <palves@redhat.com>
7467
7468 * completer.c (expression_completer): Call
7469 linespec_location_completer instead of location_completer.
7470
195bcdd5
PA
74712017-06-29 Pedro Alves <palves@redhat.com>
7472
7473 * completer.c (expression_completer): Remove code that recomputes
7474 'text' from 'word'.
7475
adc764e7
YQ
74762017-06-29 Yao Qi <yao.qi@linaro.org>
7477
7478 * regformats/regdat.sh: Generate code with
7479 "ifndef IN_PROCESS_AGENT".
7480
6e75794e
PA
74812017-06-28 Pedro Alves <palves@redhat.com>
7482
7483 * command.h: Include "common/scoped_restore.h".
7484
bc491f2e
YQ
74852017-06-28 Yao Qi <yao.qi@linaro.org>
7486
7487 * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
7488 instead of obstack_grow.
7489
41664b45
DG
74902017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
7491
7492 PR gdb/21337
7493 * symfile.c (reread_symbols): Call objfiles_changed just before
7494 read_symbols.
7495
6da67eb1
PA
74962017-06-27 Pedro Alves <palves@redhat.com>
7497
7498 * symtab.c (COMPLETION_LIST_ADD_SYMBOL)
7499 (MCOMPLETION_LIST_ADD_SYMBOL): Delete macros, replace with ...
7500 (completion_list_add_symbol, completion_list_add_msymbol):
7501 ... these new functions.
7502 (add_symtab_completions)
7503 (default_make_symbol_completion_list_break_on_1): Adjust.
7504
23732b1e
PA
75052017-06-27 Pedro Alves <palves@redhat.com>
7506
7507 * objfiles.c (get_objfile_bfd_data): Call bfd_alloc instead of
7508 bfd_zalloc. Call objfile_per_bfd_storage's ctor.
7509 (free_objfile_per_bfd_storage): Call objfile_per_bfd_storage's
7510 dtor.
7511 * objfiles.h (objfile_per_bfd_storage): Add ctor. Make
7512 'storage_obstack' field an auto_obstack. In-class initialize all
7513 non-bitfield fields. Make minsyms_read bool.
7514 * symfile.c (read_symbols): Adjust.
7515
a4d1e79a
AH
75162017-06-27 Alan Hayward <alan.hayward@arm.com>
7517
7518 * remote-sim.c (gdbsim_fetch_register): Use byte_vector.
7519 (gdbsim_store_register): Likewise.
7520
8268c778
PA
75212017-06-27 Pedro Alves <palves@redhat.com>
7522
7523 * c-exp.y (name_obstack): Now an auto_obstack.
7524 (yylex): Use auto_obstack::clear.
7525 (c_parse): Use auto_obstack::clear instead of reinitializing and
7526 freeing the obstack.
7527 * c-lang.c (evaluate_subexp_c): Use auto_obstack.
7528 * d-exp.y (name_obstack): Now an auto_obstack.
7529 (yylex): Use auto_obstack::clear.
7530 (d_parse): Use auto_obstack::clear instead of reinitializing and
7531 freeing the obstack.
7532 * dwarf2loc.c (fetch_const_value_from_synthetic_pointer): Use
7533 auto_obstack.
7534 * dwarf2read.c (create_addrmap_from_index)
7535 (dwarf2_build_psymtabs_hard)
7536 (update_enumeration_type_from_children): Likewise.
7537 * gdb_obstack.h (auto_obstack): New type.
7538 * go-exp.y (name_obstack): Now an auto_obstack.
7539 (build_packaged_name): Use auto_obstack::clear.
7540 (go_parse): Use auto_obstack::clear instead of reinitializing and
7541 freeing the obstack.
7542 * linux-tdep.c (linux_make_mappings_corefile_notes): Use
7543 auto_obstack.
7544 * printcmd.c (printf_wide_c_string, ui_printf): Use auto_obstack.
7545 * rust-exp.y (work_obstack): Now an auto_obstack.
7546 (rust_parse, rust_lex_tests): Use auto_obstack::clear instead of
7547 reinitializing and freeing the obstack.
7548 * utils.c (do_obstack_free, make_cleanup_obstack_free): Delete.
7549 (host_char_to_target): Use auto_obstack.
7550 * utils.h (make_cleanup_obstack_free): Delete declaration.
7551 * valprint.c (generic_emit_char, generic_printstr): Use
7552 auto_obstack.
7553
db665f42
SM
75542017-06-27 Simon Marchi <simon.marchi@ericsson.com>
7555
7556 * darwin-nat.c (darwin_check_new_threads): Don't handle dummy
7557 thread.
7558 (darwin_init_thread_list): Don't update dummy thread.
7559 (darwin_create_inferior, darwin_attach): Don't add a dummy thread.
7560
873c0814
SM
75612017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7562
7563 * record-full.c (netorder16): Remove.
7564
8b5a7a6e
SM
75652017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7566
7567 * common/diagnostics.h: Define macros for GCC.
7568 (DIAGNOSTIC_IGNORE_UNUSED_FUNCTION): New macro.
7569 * common/vec.h: Include diagnostics.h.
7570 (DIAGNOSTIC_IGNORE_UNUSED_VEC_FUNCTION): New macro.
7571 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_O): Ignore -Wunused-function
7572 warning.
7573
d1435379
SM
75742017-06-26 Simon Marchi <simon.marchi@ericsson.com>
7575
7576 * common/diagnostics.h (DIAGNOSTIC_IGNORE_DEPRECATED_REGISTER):
7577 New macro.
7578 * ada-lex.l: Ignore deprecated register warnings.
7579
cc75e0fd
SM
75802017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7581
7582 * main.c (get_init_files): Replace "SYSTEM_GDBINIT +
7583 datadir_len" with "&SYSTEM_GDBINIT[datadir_len]".
7584
07809eaf
SM
75852017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7586
7587 * dtrace-probe.c (dtrace_process_dof_probe): Put semi-colon on
7588 its own line.
7589
f076f034
SM
75902017-06-25 Simon Marchi <simon.marchi@ericsson.com>
7591
7592 * nat/x86-dregs.c (x86_show_dr): Print registers one per line.
7593
0dd5cbc5
AH
75942017-06-23 Alan Hayward <alan.hayward@arm.com>
7595
7596 * xtensa-tdep.c (XTENSA_MAX_REGISTER_SIZE): Add.
7597 (xtensa_register_write_masked): Use XTENSA_MAX_REGISTER_SIZE.
7598 (xtensa_register_read_masked): Likewise.
7599
d4c6ce5b
SDJ
76002017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
7601
7602 * common/environ.c (gdb_environ::unset): Update comment.
7603
16892a03
AH
76042017-06-22 Alan Hayward <alan.hayward@arm.com>
7605
7606 * python/py-unwind.c (pyuw_sniffer): Allocate space for
7607 registers.
7608
d7dcbefc
AH
76092017-06-22 Alan Hayward <alan.hayward@arm.com>
7610
7611 * record-full.c (record_full_exec_insn): Use byte_vector.
7612
b30ff123
YQ
76132017-06-22 Yao Qi <yao.qi@linaro.org>
7614
7615 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Regenerated.
7616 * regformats/i386/amd64-avx-mpx-avx512-pku.dat: Regenerated.
7617
4fa847d7
AH
76182017-06-22 Alan Hayward <alan.hayward@arm.com>
7619
7620 * remote.c (cached_reg): Move from here...
7621 * regcache.h (cached_reg): ...to here.
7622 * python/py-unwind.c (struct reg_info): Remove.
7623 (cached_frame_info): Use cached_reg_t.
7624 (pyuw_prev_register): Likewise.
7625 (pyuw_sniffer): Use cached_reg_t and allocate registers.
7626 (pyuw_dealloc_cache): Free all registers.
7627
f4906a9a
PA
76282017-06-22 Pedro Alves <palves@redhat.com>
7629 Simon Marchi <simon.marchi@ericsson.com>
7630
7631 * unittests/environ-selftests.c (run_tests): Ignore -Wself-move
7632 warning.
7633 * common/diagnostics.h: New file.
7634
b45a1208
PA
76352017-06-22 Pedro Alves <palves@redhat.com>
7636
7637 * common/agent.h: Add include guards.
7638
e4da2c61
SM
76392017-06-21 Simon Marchi <simon.marchi@ericsson.com>
7640
7641 * target.h (struct target_ops) <to_xfer_partial>: Update doc to
7642 talk about addressable units instead of bytes.
7643
96160d60
SDJ
76442017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7645
7646 * common/environ.c (gdb_environ::unset): Use '::iterator' instead
7647 of '::const_iterator'.
7648
9a6c7d9c
SDJ
76492017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7650
7651 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7652 'unittests/environ-selftests.c'.
7653 (SUBDIR_UNITTESTS_OBS): Add 'environ-selftests.o'.
7654 * charset.c (find_charset_names): Declare object 'iconv_env'.
7655 Update code to use 'iconv_env' object. Remove call to
7656 'free_environ'.
7657 * common/environ.c: Include <utility>.
7658 (make_environ): Delete function.
7659 (free_environ): Delete function.
7660 (gdb_environ::clear): New function.
7661 (gdb_environ::operator=): New function.
7662 (gdb_environ::get): Likewise.
7663 (environ_vector): Delete function.
7664 (set_in_environ): Delete function.
7665 (gdb_environ::set): New function.
7666 (unset_in_environ): Delete function.
7667 (gdb_environ::unset): New function.
7668 (gdb_environ::envp): Likewise.
7669 * common/environ.h: Include <vector>.
7670 (struct gdb_environ): Delete; transform into...
7671 (class gdb_environ): ... this class.
7672 (free_environ): Delete prototype.
7673 (init_environ, get_in_environ, set_in_environ, unset_in_environ,
7674 environ_vector): Likewise.
7675 * infcmd.c (run_command_1): Update code to call
7676 'envp' from 'gdb_environ' class.
7677 (environment_info): Update code to call methods from 'gdb_environ'
7678 class.
7679 (unset_environment_command): Likewise.
7680 (path_info): Likewise.
7681 (path_command): Likewise.
7682 * inferior.c (inferior::~inferior): Delete call to 'free_environ'.
7683 (inferior::inferior): Initialize 'environment' using the host's
7684 information.
7685 * inferior.h: Remove forward declaration of 'struct gdb_environ'.
7686 Include "environ.h".
7687 (class inferior) <environment>: Change type from 'struct
7688 gdb_environ' to 'gdb_environ'.
7689 * mi/mi-cmd-env.c (mi_cmd_env_path): Update code to call
7690 methods from 'gdb_environ' class.
7691 * solib.c (solib_find_1): Likewise
7692 * unittests/environ-selftests.c: New file.
7693
75c554cf
YQ
76942017-06-20 Yao Qi <yao.qi@linaro.org>
7695
7696 * features/i386/i386-linux.xml: Exchange the order of including
7697 32bit-linux.xml and 32bit-sse.xml.
7698 * features/i386/i386-linux.c: Regenerated.
7699
72ddacb7
YQ
77002017-06-20 Yao Qi <yao.qi@linaro.org>
7701
7702 * target-descriptions.c (tdesc_reg): Add ctor, dtor.
7703 Delete copy ctor and assignment operator.
7704 (tdesc_type): Likewise.
7705 (tdesc_feature): Likewise.
7706 (tdesc_free_reg): Remove.
7707 (tdesc_create_reg): Use new.
7708 (tdesc_free_type): Remove.
7709 (tdesc_create_vector): Use new.
7710 (tdesc_create_union): Likewise.
7711 (tdesc_create_flags): Likewise.
7712 (tdesc_create_enum): Likewise.
7713 (tdesc_free_feature): Delete.
7714 (free_target_description): Use delete.
7715
325c9fd4
JB
77162017-06-19 John Baldwin <jhb@FreeBSD.org>
7717
7718 * mips-tdep.c (print_gp_register_row): Don't error for unavailable
7719 registers.
7720
16b7a719
PA
77212017-06-19 Pedro Alves <palves@redhat.com>
7722
7723 * dwarf2read.c (write_psymtabs_to_index): Construct file_closer
7724 after gdb::unlinker.
7725
1c8e01c9
SDJ
77262017-06-19 Sergio Durigan Junior <sergiodj@redhat.com>
7727
7728 * mi/mi-cm-env.c (_initialize_mi_cmd_env): Use getenv instead of
7729 gdb_environ to access an environment variable.
7730
ffce45d2
TP
77312017-06-18 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7732
7733 * nat/linux-ptrace.c (linux_fork_to_function): Add cast to
7734 gdb_byte*.
7735
1d4fbac9
SM
77362017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7737
7738 * nat/fork-inferior.h (trace_start_error): Add ATTRIBUTE_PRINTF.
7739
8465943a
SM
77402017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7741
7742 * configure: Re-generate.
7743 * warning.m4 (build_warnings): Add -Wno-mismatched-tags.
7744
3e019bdc
SM
77452017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7746
7747 * configure: Re-generate.
7748 * warning.m4: Pass -Werror to compiler when checking for
7749 supported warning flags.
7750
cf0dd6f0
SM
77512017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7752
7753 * Makefile.in (COMPILE.pre): Add "-x c++".
7754
6f98355c
YQ
77552017-06-16 Alan Hayward <alan.hayward@arm.com>
7756 Pedro Alves <palves@redhat.com>
7757 Yao Qi <yao.qi@linaro.org>
7758
7759 * defs.h (RequireLongest): New.
7760 (extract_integer): Declare function template.
7761 (extract_signed_integer): Remove the declaration, but define it
7762 static inline.
7763 (extract_unsigned_integer): Likewise.
7764 (store_integer): Declare function template.
7765 (store_signed_integer): Remove the declaration, but define it
7766 static inline.
7767 (store_unsigned_integer): Likewise.
7768 * findvar.c (extract_integer): New function template.
7769 (extract_signed_integer): Remove.
7770 (extract_unsigned_integer): Remove.
7771 (extract_integer<LONGEST>, extract_integer<ULONGEST>): Explicit
7772 instantiations.
7773 (store_integer): New function template.
7774 (store_signed_integer): Remove.
7775 (store_unsigned_integer): Remove.
7776 (store_integer): Explicit instantiations.
7777 * regcache.c (regcache_raw_read_signed): Update.
7778 (regcache::raw_read): New function.
7779 (regcache::raw_read_signed): Remove.
7780 (regcache::raw_read_unsigned): Remove.
7781 (regcache_raw_read_unsigned): Update.
7782 (regcache_raw_write_unsigned): Update.
7783 (regcache::raw_write_signed): Remove.
7784 (regcache::raw_write): New function.
7785 (regcache_cooked_read_signed): Update.
7786 (regcache::raw_write_unsigned): Remove.
7787 (regcache::cooked_read_signed): Remove.
7788 (regcache_cooked_read_unsigned): Update.
7789 (regcache::cooked_read_unsigned): Remove.
7790 (regcache_cooked_write_signed): Update.
7791 (regcache_cooked_write_unsigned): Update.
7792 * regcache.h (regcache) <raw_read_signed>: Remove.
7793 <raw_write_signed, raw_read_unsigned, raw_write_unsigned>: Remove.
7794 <raw_read, raw_write>: New.
7795 <cooked_read_signed, cooked_write_signed>: Remove.
7796 <cooked_write_unsigned, cooked_read_unsigned>: Remove.
7797 <cooked_read, cooked_write>: New.
7798 * sh64-tdep.c (sh64_pseudo_register_read): Update.
7799 (sh64_pseudo_register_write): Update.
7800
a87dc45a
AK
78012017-06-16 Anton Kolesov <anton.kolesov@synopsys.com>
7802
7803 * arc-tdep.c (arc_disassembler_options): New variable.
7804 (arc_gdbarch_init): Set and use it. Use arc_delayed_print_insn instead
7805 of default_print_insn.
7806 (arc_delayed_print_insn): Set info->section when needed,
7807 use default_print_insn to retrieve a disassembler.
7808
45159d6a
SDJ
78092017-06-14 Sergio Durigan Junior <sergiodj@redhat.com>
7810
7811 PR gdb/21574
7812 * infcmd.c (_initialize_infcmd): Expand "help run" documentation
7813 to mention $SHELL and startup-with-shell.
7814
b46c4cf0
MF
78152017-06-14 Max Filippov <jcmvbkbc@gmail.com>
7816
7817 * MAINTAINERS: Move Maxim Grigoriev to the Past Maintainers.
7818
6394c606
YQ
78192017-06-14 Yao Qi <yao.qi@linaro.org>
7820
7821 * aarch64-tdep.c (aarch64_gdb_print_insn): Call
7822 default_print_insn instead of print_insn_aarch64.
7823 * arm-tdep.c (gdb_print_insn_arm): Call
7824 default_print_insn instead of print_insn_big_arm
7825 and print_insn_little_arm.
7826 * i386-tdep.c (i386_print_insn): Call default_print_insn
7827 instead of print_insn_i386.
7828 * ia64-tdep.c (ia64_print_insn): Call
7829 default_print_insn instead of print_insn_ia64.
7830 * mips-tdep.c (gdb_print_insn_mips): Call
7831 default_print_insn instead of print_insn_big_mips
7832 and print_insn_little_mips.
7833 * spu-tdep.c (gdb_print_insn_spu): Call default_print_insn
7834 instead of print_insn_spu.
7835
d5722aa2
PA
78362017-06-14 Pedro Alves <palves@redhat.com>
7837
7838 * ada-lang.c: Include "common/byte-vector.h".
7839 (ada_value_primitive_packed_val): Use gdb::byte_vector.
7840 * charset.c (wchar_iterator::iterate): Resize the vector instead
7841 of reserving it.
7842 * common/byte-vector.h: Include "common/def-vector.h".
7843 (wchar_iterator::m_out): Now a gdb::def_vector<gdb_wchar_t>.
7844 * cli/cli-dump.c: Include "common/byte-vector.h".
7845 (dump_memory_to_file, restore_binary_file): Use gdb::byte_vector.
7846 * common/byte-vector.h: New file.
7847 * common/def-vector.h: New file.
7848 * common/default-init-alloc.h: New file.
7849 * dwarf2loc.c: Include "common/byte-vector.h".
7850 (rw_pieced_value): Use gdb::byte_vector, and resize the vector
7851 instead of reserving it.
7852 * dwarf2read.c: Include "common/byte-vector.h".
7853 (data_buf::m_vec): Now a gdb::byte_vector.
7854 * gdb_regex.c: Include "common/def-vector.h".
7855 (compiled_regex::compiled_regex): Use gdb::def_vector<char>.
7856 * mi/mi-main.c: Include "common/byte-vector.h".
7857 (mi_cmd_data_read_memory): Use gdb::byte_vector.
7858 * printcmd.c: Include "common/byte-vector.h".
7859 (print_scalar_formatted): Use gdb::byte_vector.
7860 * valprint.c: Include "common/byte-vector.h".
7861 (maybe_negate_by_bytes, print_decimal_chars): Use
7862 gdb::byte_vector.
7863
01ec7a27
SM
78642017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7865
7866 * darwin-nat.c: Include "nat/fork-inferior.h".
7867
848d9074
SM
78682017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7869
7870 * configure.nat: Factor out Darwin bits that are not
7871 architecture-specific. Add fork-inferior.o.
7872
3b912944
SM
78732017-06-13 Simon Marchi <simon.marchi@ericsson.com>
7874
7875 * configure.nat: Factor out AIX bits that are not
7876 architecture-specific. Add fork-inferior.o.
7877
55acdf22
AA
78782017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7879
7880 * dwarf2loc.c (rw_pieced_value): New. Merge logic from...
7881 (read_pieced_value, write_pieced_value): ...here. Reduce to
7882 wrappers that just call rw_pieced_value.
7883
f65e2044
AA
78842017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7885
7886 * dwarf2loc.c (write_pieced_value): When writing the data for a
7887 memory piece, use write_memory_with_notification instead of
7888 write_memory.
7889
23f945bf
AA
78902017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7891
7892 * valops.c (read_value_memory): Change embedded_offset to
7893 represent a bit offset instead of a byte offset.
7894 * value.h (read_value_memory): Adjust comment.
7895
f236533e
AA
78962017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7897
7898 * dwarf2loc.c (read_pieced_value): Remove unnecessary variables
7899 dest_offset_bits and source_offset_bits.
7900 (write_pieced_value): Likewise.
7901
65d84b76
AA
79022017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7903
7904 * dwarf2loc.c (read_pieced_value): Respect the piece offset, as
7905 given by DW_OP_bit_piece.
7906 (write_pieced_value): Likewise.
7907
242d31ab
AA
79082017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7909
7910 * dwarf2loc.c (read_pieced_value): Move the buffer allocation and
7911 some other preparations to the places where sufficient information
7912 is available.
7913 (write_pieced_value): Likewise.
7914
03c8af18
AA
79152017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7916
7917 * dwarf2loc.c (bits_to_bytes): New function.
7918 (read_pieced_value): Fix offset calculations for register pieces
7919 on big-endian targets.
7920 (write_pieced_value): Likewise.
7921
840989c1
AA
79222017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7923
7924 * dwarf2loc.c (read_pieced_value): Remove buffer_size variable.
7925 (write_pieced_value): Likewise.
7926
359b19bb
AA
79272017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7928
7929 * dwarf2loc.c (write_pieced_value): When writing to a bit-field,
7930 transfer the source value's least significant bits, instead of its
7931 lowest-addressed ones. Rename type_len to max_offset.
7932 (read_pieced_value): Mirror above changes to write_pieced_value as
7933 applicable.
7934
07c9ca3b
AA
79352017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7936
7937 * dwarf2loc.c (write_pieced_value): In DWARF_VALUE_MEMORY,
7938 truncate full bytes from dest_offset_bits before using it as an
7939 offset into the buffer.
7940
f1cc9874
AA
79412017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7942
7943 * dwarf2loc.c (write_pieced_value): Include transfer size in
7944 byte-wise check.
7945
cdaac320
AA
79462017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7947
7948 * dwarf2loc.c (write_pieced_value): Fix copy/paste error in the
7949 calculation of this_size.
7950
af547a96
AA
79512017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7952
7953 * dwarf2loc.c (read_pieced_value): Respect parent value's offset
7954 when targeting a bit-field.
7955 (write_pieced_value): Likewise.
7956
ddd7882a
AA
79572017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7958
7959 * dwarf2loc.c (struct piece_closure) <addr_size>: Remove field.
7960 (allocate_piece_closure): Drop addr_size parameter.
7961 (dwarf2_evaluate_loc_desc_full): Adjust call to
7962 allocate_piece_closure.
7963
e9352324
AA
79642017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7965
7966 PR gdb/21226
7967 * dwarf2loc.c (read_pieced_value): Anchor stack value pieces at
7968 the LSB end, independent of endianness.
7969
d5d1163e
AA
79702017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
7971
7972 * dwarf2loc.c (write_pieced_value): Fix order of calculations for
7973 size capping.
7974
032bb6ea
YQ
79752017-06-13 Yao Qi <yao.qi@linaro.org>
7976
7977 * mips-linux-nat.c: Move include features/mips*-linux.c to
7978 mips-linux-tdep.c.
7979 (_initialize_mips_linux_nat): Move initialize_tdesc_mips* calls
7980 to mips-linux-tdep.c.
7981 * mips-linux-tdep.c: Include features/mips*-linux.c
7982 (_initialize_mips_linux_tdep): Call initialize_tdesc_mips*
7983 functions.
7984 * mips-linux-tdep.h (tdesc_mips_linux): Declare.
7985 (tdesc_mips_dsp_linux, tdesc_mips64_linux): Declare.
7986 (tdesc_mips64_dsp_linux): Declare.
7987
f12f6bad
TT
79882017-06-12 Tom Tromey <tom@tromey.com>
7989
7990 * valprint.h (val_print_type_code_int): Remove.
7991 * valprint.c (generic_val_print_int): Always call
7992 val_print_scalar_formatted.
7993 (val_print_type_code_int): Remove.
7994 * printcmd.c (print_scalar_formatted): Handle options->format==0.
7995 * f-valprint.c (f_val_print): Use val_print_scalar_formatted.
7996 * c-valprint.c (c_val_print_int): Use val_print_scalar_formatted.
7997 * ada-valprint.c (ada_val_print_num): Use
7998 val_print_scalar_formatted.
7999
d9109c80
TT
80002017-06-12 Tom Tromey <tom@tromey.com>
8001
8002 * printcmd.c (print_scalar_formatted): Unify the two switches.
8003 Don't convert scalars to LONGEST.
8004
4ac0cb1c
TT
80052017-06-12 Tom Tromey <tom@tromey.com>
8006
8007 PR exp/16225:
8008 * valprint.h (print_decimal_chars): Update.
8009 * valprint.c (maybe_negate_by_bytes): New function.
8010 (print_decimal_chars): Add "is_signed" argument.
8011 * printcmd.c (print_scalar_formatted): Update.
8012
30a25466
TT
80132017-06-12 Tom Tromey <tom@tromey.com>
8014
8015 PR exp/16225:
8016 * valprint.h (print_binary_chars, print_hex_chars): Update.
8017 * valprint.c (val_print_type_code_int): Update.
8018 (print_binary_chars): Add "zero_pad" argument.
8019 (emit_octal_digit): New function.
8020 (print_octal_chars): Don't zero-pad.
8021 (print_decimal_chars): Likewise.
8022 (print_hex_chars): Add "zero_pad" argument.
8023 * sh64-tdep.c (sh64_do_fp_register): Update.
8024 * regcache.c (regcache::dump): Update.
8025 * printcmd.c (print_scalar_formatted): Update.
8026 * infcmd.c (default_print_one_register_info): Update.
8027
b3464d03
PA
80282017-06-12 Pedro Alves <palves@redhat.com>
8029 Alan Hayward <alan.hayward@arm.com>
8030
8031 * mips-tdep.c (MAX_MIPS_ABI_REGSIZE): New.
8032 (mips_eabi_push_dummy_call): Rename local 'regsize' to
8033 'abi_regsize'. Rename local array 'valbuf' to 'ref_valbuf', and
8034 use MAX_MIPS_ABI_REGSIZE instead of MAX_REGISTER_SIZE to size it.
8035 Assert that abi_regsize bytes fit in 'ref_valbuf'.
8036
4b76cda9
PA
80372017-06-12 Pedro Alves <palves@redhat.com>
8038
8039 * dwarf2read.c (mapped_symtab::data): Now a vector of
8040 symtab_index_entry instead of vector of
8041 std::unique_ptr<symtab_index_entry>. All users adjusted to check
8042 whether an element's name is NULL instead of checking whether the
8043 element itself is NULL.
8044 (find_slot): Change return type. Adjust.
8045 (hash_expand, , add_index_entry, uniquify_cu_indices)
8046 (write_hash_table): Adjust.
8047
e8f8bcb3
PA
80482017-06-12 Pedro Alves <palves@redhat.com>
8049
8050 * dwarf2read.c (recursively_count_psymbols): New function.
8051 (write_psymtabs_to_index): Call it to compute number of psyms and
8052 pass estimate size of psyms_seen to unordered_set's ctor.
8053
70a1152b
PA
80542017-06-12 Pedro Alves <palves@redhat.com>
8055
8056 * dwarf2read.c (write_hash_table): Check if key already exists
8057 before emplacing.
8058
c2f134ac
PA
80592017-06-12 Pedro Alves <palves@redhat.com>
8060
8061 * dwarf2read.c (data_buf::append_space): Rename to...
8062 (data_buf::grow): ... this, and make private. Adjust all callers.
8063 (data_buf::append_uint): New method.
8064 (add_address_entry, write_one_signatured_type)
8065 (write_psymtabs_to_index): Use it.
8066
a81e6d4d
PA
80672017-06-12 Pedro Alves <palves@redhat.com>
8068
8069 * dwarf2read.c (file_write(FILE *, const void *, size_t)): Delete.
8070 (file_write (FILE *, const std::vector<Elem>&)): Delete.
8071 (data_buf::file_write): Call ::fwrite directly.
8072
6fd931f2
PA
80732017-06-12 Pedro Alves <palves@redhat.com>
8074
8075 * dwarf2read.c (uniquify_cu_indices): Use std::unique and
8076 std::vector::erase.
8077
bc8f2430
JK
80782017-06-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8079
8080 Code cleanup: C++ify .gdb_index producer.
8081 * dwarf2read.c: Include <unordered_set> and <unordered_map>.
8082 (MAYBE_SWAP) [WORDS_BIGENDIAN]: Cast to offset_type.
8083 (struct strtab_entry, hash_strtab_entry, eq_strtab_entry)
8084 (create_strtab, add_string): Remove.
8085 (file_write, data_buf): New.
8086 (struct symtab_index_entry): Use std::vector for cu_indices.
8087 (struct mapped_symtab): Use std::vector for data.
8088 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry)
8089 (create_symbol_hash_table, create_mapped_symtab, cleanup_mapped_symtab):
8090 Remove.
8091 (find_slot): Change return type. Update it to the new data structures.
8092 (hash_expand, add_index_entry): Update it to the new data structures.
8093 (offset_type_compare): Remove.
8094 (uniquify_cu_indices): Update it to the new data structures.
8095 (c_str_view, c_str_view_hasher, vector_hasher): New.
8096 (add_indices_to_cpool): Remove.
8097 (write_hash_table): Update it to the new data structures.
8098 (struct psymtab_cu_index_map, hash_psymtab_cu_index)
8099 (eq_psymtab_cu_index): Remove.
8100 (psym_index_map): New typedef.
8101 (struct addrmap_index_data): Change addr_obstack pointer to data_buf
8102 reference and std::unordered_map for cu_index_htab.
8103 (add_address_entry, add_address_entry_worker, write_address_map)
8104 (write_psymbols): Update it to the new data structures.
8105 (write_obstack): Remove.
8106 (struct signatured_type_index_data): Change types_list to a data_buf
8107 reference and psyms_seen to a std::unordered_set reference.
8108 (write_one_signatured_type, recursively_write_psymbols)
8109 (write_psymtabs_to_index): Update it to the new data structures.
8110
c4dcb155
SM
81112017-06-11 Simon Marchi <simon.marchi@ericsson.com>
8112
8113 * NEWS (Changes since GDB 8.0): Announce {set,show} debug
8114 separate-debug-file commands.
8115 * symfile.h (separate_debug_file_debug): New global.
8116 * symfile.c (separate_debug_file_debug): New global.
8117 (separate_debug_file_exists, find_separate_debug_file): Add
8118 debug output.
8119 (_initialize_symfile): Add "set debug separate-debug-file"
8120 command.
8121 * build-id.c (build_id_to_debug_bfd,
8122 find_separate_debug_file_by_buildid): Add debug output.
8123
6d45d4b4
SM
81242017-06-10 Simon Marchi <simon.marchi@polymtl.ca>
8125
8126 * gdbarch.sh (displaced_step_free_closure): Remove.
8127 * gdbarch.h, gdbarch.c: Re-generate.
8128 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't set
8129 displaced_step_free_closure.
8130 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
8131 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8132 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8133 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
8134 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
8135 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8136 * arch-utils.h (simple_displaced_step_free_closure): Remove.
8137 * arch-utils.c (simple_displaced_step_free_closure): Remove.
8138 * infrun.c (displaced_step_clear): Call xfree instead of
8139 gdbarch_displaced_step_free_closure.
8140
2f91880f
SDJ
81412017-06-08 Sergio Durigan Junior <sergiodj@redhat.com>
8142
8143 * common/common-utils.c (stringify_argv): Check for "arg[0] !=
8144 NULL".
8145
b8b6e72f
AH
81462017-06-08 Alan Hayward <alan.hayward@arm.com>
8147
8148 * mn10300-tdep.c (MN10300_MAX_REGISTER_SIZE): Add.
8149 (mn10300_extract_return_value): Use MN10300_MAX_REGISTER_SIZE.
8150 (mn10300_push_dummy_call): Likewise.
8151
5369082e
AH
81522017-06-08 Alan Hayward <alan.hayward@arm.com>
8153
8154 * mi/mi-main.c (register_changed_p): Use value_contents_eq.
8155
ff4ca5ac
AH
81562017-06-08 Alan Hayward <alan.hayward@arm.com>
8157
8158 * mi/mi-main.c (register_changed_p): Use cooked_read_value.
8159
aefd8b33
SDJ
81602017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8161
8162 * NEWS (Changes since GDB 8.0): Announce that GDBserver is now
8163 able to start inferiors using a shell.
8164 (New remote packets): Announce new packet "QStartupWithShell".
8165 * remote.c: Add PACKET_QStartupWithShell.
8166 (extended_remote_create_inferior): Handle new
8167 PACKET_QStartupWithShell.
8168 (remote_protocol_features) <QStartupWithShell>: New entry for
8169 PACKET_QStartupWithShell.
8170 (_initialize_remote): Call "add_packet_config_cmd" for
8171 QStartupShell.
8172
2090129c
SDJ
81732017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8174 Pedro Alves <palves@redhat.com>
8175
8176 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-inferior.h"
8177 and "nat/fork-inferior.h".
8178 * common/common-inferior.h: New file, with contents from
8179 "gdb/inferior.h".
8180 * commom/common-utils.c: Include "common-utils.h".
8181 (stringify_argv): New function.
8182 * common/common-utils.h (stringify_argv): New prototype.
8183 * configure.nat: Add "fork-inferior.o" as a dependency for
8184 "*linux*", "fbsd*" and "nbsd*" hosts.
8185 * corefile.c (get_exec_file): Update comment.
8186 * darwin-nat.c (darwin_ptrace_him): Call "gdb_startup_inferior"
8187 instead of "startup_inferior".
8188 (darwin_create_inferior): Call "add_thread_silent" after
8189 "fork_inferior".
8190 * fork-child.c: Cleanup unnecessary includes.
8191 (SHELL_FILE): Move to "common/common-fork-child.c".
8192 (environ): Likewise.
8193 (exec_wrapper): Initialize.
8194 (get_exec_wrapper): New function.
8195 (breakup_args): Move to "common/common-fork-child.c"; rename to
8196 "breakup_args_for_exec".
8197 (escape_bang_in_quoted_argument): Move to
8198 "common/common-fork-child.c".
8199 (saved_ui): New variable.
8200 (prefork_hook): New function.
8201 (postfork_hook): Likewise.
8202 (postfork_child_hook): Likewise.
8203 (gdb_startup_inferior): Likewise.
8204 (fork_inferior): Move to "common/common-fork-child.c". Update
8205 function to support gdbserver.
8206 (startup_inferior): Likewise.
8207 * gdbcore.h (get_exec_file): Remove declaration.
8208 * gnu-nat.c (gnu_create_inferior): Call "gdb_startup_inferior"
8209 instead of "startup_inferior". Call "add_thread_silent" after
8210 "fork_inferior".
8211 * inf-ptrace.c: Include "nat/fork-inferior.h" and "utils.h".
8212 (inf_ptrace_create_inferior): Call "gdb_startup_inferior"
8213 instead of "startup_inferior". Call "add_thread_silent" after
8214 "fork_inferior".
8215 * inferior.h: Include "common-inferior.h".
8216 (trace_start_error): Move to "common/common-utils.h".
8217 (trace_start_error_with_name): Likewise.
8218 (fork_inferior): Move prototype to "nat/fork-inferior.h".
8219 (startup_inferior): Likewise.
8220 (gdb_startup_inferior): New prototype.
8221 * nat/fork-inferior.c: New file, with contents from "fork-child.c".
8222 * nat/fork-inferior.h: New file.
8223 * procfs.c (procfs_init_inferior): Call "gdb_startup_inferior"
8224 instead of "startup_inferior". Call "add_thread_silent" after
8225 "fork_inferior".
8226 * target.h (target_terminal_init): Move prototype to
8227 "target/target.h".
8228 (target_terminal_inferior): Likewise.
8229 (target_terminal_ours): Likewise.
8230 * target/target.h (target_terminal_init): New prototype, moved
8231 from "target.h".
8232 (target_terminal_inferior): Likewise.
8233 (target_terminal_ours): Likewise.
8234 * utils.c (gdb_flush_out_err): New function.
8235
043a4934
SDJ
82362017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8237
8238 * Makefile.in (HFILES_NO_SRCDIR): Add "common/common-gdbthread.h".
8239 * common/common-gdbthread.h: New file, with parts from
8240 "gdb/gdbthread.h".
8241 * gdbthread.h: Include "common-gdbthread.h".
8242 (switch_to_thread): Moved to "common/common-gdbthread.h".
8243
15652511
SDJ
82442017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
8245
8246 * Makefile.in (SFILES): Add "common/job-control.c".
8247 (HFILES_NO_SRCDIR): Add "common/job-control.h".
8248 (COMMON_OBS): Add "job-control.o".
8249 * common/job-control.c: New file, with contents from
8250 "gdb/inflow.c".
8251 * common/job-control.h: New file, with contents from "terminal.h".
8252 * fork-child.c: Include "job-control.h".
8253 * inflow.c: Include "job-control.h".
8254 (gdb_setpgid): Move to "common/common-inflow.c".
8255 (_initialize_inflow): Move setting of "job_control" to
8256 "handle_job_control".
8257 * terminal.h (job_control): Moved to "common/common-terminal.h".
8258 (gdb_setpgid): Likewise.
8259 * top.c: Include "job_control.h".
8260 * utils.c: Likewise.
8261 (job_control): Moved to "job-control.c".
8262
2d7cc5c7
PA
82632017-06-07 Pedro Alves <palves@redhat.com>
8264
8265 * Makefile.in (SFILES): Add gdb_regex.c.
8266 (COMMON_OBS): Add gdb_regex.o.
8267 * ada-lang.c (ada_add_standard_exceptions)
8268 (ada_add_exceptions_from_frame, name_matches_regex)
8269 (ada_add_global_exceptions, ada_exceptions_list_1): Change regex
8270 parameter type to compiled_regex. Adjust.
8271 (ada_exceptions_list): Use compiled_regex.
8272 * break-catch-throw.c (exception_catchpoint::pattern): Now a
8273 std::unique_ptr<compiled_regex>.
8274 (exception_catchpoint::~exception_catchpoint): Remove regfree
8275 call.
8276 (check_status_exception_catchpoint): Adjust to use compiled_regex.
8277 (handle_gnu_v3_exceptions): Adjust to use compiled_regex.
8278 * breakpoint.c (solib_catchpoint::compiled): Now a
8279 std::unique_ptr<compiled_regex>.
8280 (solib_catchpoint::~solib_catchpoint): Remove regfree call.
8281 (check_status_catch_solib): Adjust to use compiled_regex.
8282 (add_solib_catchpoint): Adjust to use compiled_regex.
8283 * cli/cli-cmds.c (apropos_command): Use compiled_regex.
8284 * cli/cli-decode.c (apropos_cmd): Change regex parameter to
8285 compiled_regex reference. Adjust to use it.
8286 * cli/cli-decode.h: Remove struct re_pattern_buffer forward
8287 declaration. Include "gdb_regex.h".
8288 (apropos_cmd): Change regex parameter to compiled_regex reference.
8289 * gdb_regex.c: New file.
8290 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Delete
8291 declarations.
8292 (class compiled_regex): New.
8293 * linux-tdep.c: Include "common/gdb_optional.h".
8294 (struct mapping_regexes): New, factored out from
8295 mapping_is_anonymous_p, and adjusted to use compiled_regex.
8296 (mapping_is_anonymous_p): Use mapping_regexes wrapped in a
8297 gdb::optional and remove cleanups. Adjust to compiled_regex.
8298 * probe.c: Include "common/gdb_optional.h".
8299 (collect_probes): Use compiled_regex and gdb::optional and remove
8300 cleanups.
8301 * skip.c: Include "common/gdb_optional.h".
8302 (skiplist_entry::compiled_function_regexp): Now a
8303 gdb::optional<compiled_regex>.
8304 (skiplist_entry::compiled_function_regexp_is_valid): Delete field.
8305 (free_skiplist_entry): Remove regfree call.
8306 (compile_skip_regexp, skip_rfunction_p): Adjust to use
8307 compiled_regex and gdb::optional.
8308 * symtab.c: Include "common/gdb_optional.h".
8309 (search_symbols): Use compiled_regex and gdb::optional.
8310 * utils.c (do_regfree_cleanup, make_regfree_cleanup)
8311 (get_regcomp_error, compile_rx_or_error): Delete. Some bits moved
8312 to gdb_regex.c.
8313
50d6adef
AH
83142017-06-07 Alan Hayward <alan.hayward@arm.com>
8315
8316 * regcache.c (regcache::save): Avoid buffer use.
8317 (regcache::dump): Likewise.
8318
4a8a33c8
AH
83192017-06-07 Alan Hayward <alan.hayward@arm.com>
8320
8321 * sh-tdep.c (sh_pseudo_register_read): Remove
8322 MAX_REGISTER_SIZE.
8323 (sh_pseudo_register_write): Likewise.
8324 * sh64-tdep.c (sh64_pseudo_register_read): Likewise.
8325 (sh64_pseudo_register_write): Likewise
8326
d1be909e
AH
83272017-06-07 Alan Hayward <alan.hayward@arm.com>
8328
8329 * aarch64-tdep.c (aarch64_store_return_value): Use
8330 V_REGISTER_SIZE.
8331 (aarch64_pseudo_read_value): Likewise.
8332 (aarch64_pseudo_write): Likewise.
8333
f4a65042
YQ
83342017-06-06 Yao Qi <yao.qi@linaro.org>
8335
8336 * regformats/regdef.h (set_register_cache): Remove the
8337 declaration.
8338
9f7fb0aa
AH
83392017-06-06 Alan Hayward <alan.hayward@arm.com>
8340
8341 * frame.c (frame_unwind_register_signed): Use
8342 frame_unwind_register_value.
8343
e1e01040
PA
83442017-06-06 Pedro Alves <palves@redhat.com>
8345
8346 PR breakpoints/21553
8347 * breakpoint.c (create_breakpoints_sal_default)
8348 (init_breakpoint_sal, create_breakpoint_sal): Use
8349 gdb::unique_xmalloc_ptr for string parameters.
8350 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8351 parameters. Replace cleanups with gdb::unique_xmalloc_ptr.
8352 (base_breakpoint_create_breakpoints_sal)
8353 (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
8354 (strace_marker_create_breakpoints_sal)
8355 (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
8356 string parameters.
8357 * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
8358 gdb::unique_xmalloc_ptr for string parameters.
8359 (create_breakpoint): Constify 'extra_string' and 'cond_string'
8360 parameters.
8361
fbe654c8
AH
83622017-06-06 Alan Hayward <alan.hayward@arm.com>
8363
8364 * alpha-tdep.c (alpha_register_to_value): Use
8365 get_frame_register_value.
8366 (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
8367
ae0d01d6
AH
83682017-06-06 Alan Hayward <alan.hayward@arm.com>
8369
8370 * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
8371 (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
8372 (ia64_value_to_register): Likewise.
8373 (ia64_extract_return_value): Likewise.
8374 (ia64_store_return_value): Likewise.
8375 (ia64_push_dummy_call): Likewise.
8376
49cf576c
JB
83772017-06-04 Joel Brobecker <brobecker@adacore.com>
8378
8379 GDB 8.0 released.
8380
26b6a6ab
SM
83812017-06-03 Simon Marchi <simon.marchi@ericsson.com>
8382
8383 * x86-linux-nat.c (struct arch_lwp_info): Remove.
8384
22827c51
SM
83852017-06-03 Simon Marchi <simon.marchi@polymtl.ca>
8386
8387 * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
8388 parameter.
8389 (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
8390
0e05cf3a
SM
83912017-06-02 Simon Marchi <simon.marchi@ericsson.com>
8392
8393 * event-loop.c (poll_timers): Unallocate timer using delete
8394 instead of xfree.
8395
c1fc2657
SM
83962017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8397
8398 * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
8399 (struct breakpoint) <~breakpoint>: New.
8400 (struct watchpoint): Inherit from breakpoint.
8401 <~watchpoint>: New.
8402 <base>: Remove.
8403 (struct tracepoint): Inherit from breakpoint.
8404 <base>: Remove.
8405 * breakpoint.c (longjmp_breakpoint_ops): Remove.
8406 (struct longjmp_breakpoint): Inherit from breakpoint.
8407 <~longjmp_breakpoint>: New.
8408 <base>: Remove.
8409 (new_breakpoint_from_type): Remove casts.
8410 (watchpoint_in_thread_scope): Remove reference to base field.
8411 (watchpoint_del_at_next_stop): Likewise.
8412 (update_watchpoint): Likewise.
8413 (watchpoint_check): Likewise.
8414 (bpstat_check_watchpoint): Likewise.
8415 (set_longjmp_breakpoint): Likewise.
8416 (struct fork_catchpoint): Inherit from breakpoint.
8417 <base>: Remove.
8418 (struct solib_catchpoint): Inherit from breakpoint.
8419 <~solib_catchpoint>: New.
8420 <base>: Remove.
8421 (dtor_catch_solib): Change to ...
8422 (solib_catchpoint::~solib_catchpoint): ... this.
8423 (breakpoint_hit_catch_solib): Remove reference to base field.
8424 (add_solib_catchpoint): Likewise.
8425 (create_fork_vfork_event_catchpoint): Likewise.
8426 (struct exec_catchpoint): Inherit from breakpoint.
8427 <~exec_catchpoint>: New.
8428 <base>: Remove.
8429 (dtor_catch_exec): Change to ...
8430 (exec_catchpoint::~exec_catchpoint): ... this.
8431 (dtor_watchpoint): Change to ...
8432 (watchpoint::~watchpoint): ... this.
8433 (watch_command_1): Remove reference to base field.
8434 (catch_exec_command_1): Likewise.
8435 (base_breakpoint_dtor): Change to ...
8436 (breakpoint::~breakpoint): ... this.
8437 (base_breakpoint_ops): Remove dtor field value.
8438 (longjmp_bkpt_dtor): Change to ...
8439 (longjmp_breakpoint::~longjmp_breakpoint): ... this.
8440 (strace_marker_create_breakpoints_sal): Remove reference to base
8441 field.
8442 (delete_breakpoint): Don't manually call breakpoint destructor.
8443 (create_tracepoint_from_upload): Remove reference to base field.
8444 (trace_pass_set_count): Likewise.
8445 (initialize_breakpoint_ops): Don't initialize
8446 momentary_breakpoint_ops, don't set dtors.
8447 * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
8448 <~ada_catchpoint>: New.
8449 <base>: Remove.
8450 (create_excep_cond_exprs): Remove reference to base field.
8451 (dtor_exception): Change to ...
8452 (ada_catchpoint::~ada_catchpoint): ... this.
8453 (dtor_catch_exception): Remove.
8454 (dtor_catch_exception_unhandled): Remove.
8455 (dtor_catch_assert): Remove.
8456 (create_ada_exception_catchpoint): Remove reference to base
8457 field.
8458 (initialize_ada_catchpoint_ops): Don't set dtors.
8459 * break-catch-sig.c (struct signal_catchpoint): Inherit from
8460 breakpoint.
8461 <~signal_catchpoint>: New.
8462 <base>: Remove.
8463 (signal_catchpoint_dtor): Change to ...
8464 (signal_catchpoint::~signal_catchpoint): ... this.
8465 (create_signal_catchpoint): Remove reference to base field.
8466 (initialize_signal_catchpoint_ops): Don't set dtor.
8467 * break-catch-syscall.c (struct syscall_catchpoint): Inherit
8468 from breakpoint.
8469 <~syscall_catchpoint>: New.
8470 <base>: Remove.
8471 (dtor_catch_syscall): Change to ...
8472 (syscall_catchpoint::~syscall_catchpoint): ... this.
8473 (create_syscall_event_catchpoint): Remove reference to base
8474 field.
8475 (initialize_syscall_catchpoint_ops): Don't set dtor.
8476 * break-catch-throw.c (struct exception_catchpoint): Inherit
8477 from breakpoint.
8478 <~exception_catchpoint>: New.
8479 <base>: Remove.
8480 (dtor_exception_catchpoint): Change to ...
8481 (exception_catchpoint::~exception_catchpoint): ... this.
8482 (handle_gnu_v3_exceptions): Remove reference to base field.
8483 (initialize_throw_catchpoint_ops): Don't set dtor.
8484 * ctf.c (ctf_get_traceframe_address): Remove reference to base
8485 field.
8486 * remote.c (remote_get_tracepoint_status): Likewise.
8487 * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
8488 * tracefile.c (tracefile_fetch_registers): Likewise.
8489 * tracepoint.c (actions_command): Likewise.
8490 (validate_actionline): Likewise.
8491 (tfind_1): Likewise.
8492 (get_traceframe_location): Likewise.
8493 (find_matching_tracepoint_location): Likewise.
8494 (parse_tracepoint_status): Likewise.
8495 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
8496
3b0871f4
SM
84972017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8498
8499 * breakpoint.c (struct longjmp_breakpoint): New struct.
8500 (is_tracepoint_type): Change return type to bool.
8501 (is_longjmp_type): New function.
8502 (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
8503 (set_raw_breakpoint_without_location): Use
8504 new_breakpoint_from_type.
8505 (set_raw_breakpoint): Likewise.
8506
a5e364af
SM
85072017-06-02 Simon Marchi <simon.marchi@polymtl.ca>
8508
8509 * breakpoint.c (new_breakpoint_from_type): New function.
8510 (create_breakpoint_sal): Use new_breakpoint_from_type and
8511 unique_ptr.
8512 (create_breakpoint): Likewise.
8513
ae3b3f34
SM
85142017-05-31 Simon Marchi <simon.marchi@ericsson.com>
8515
8516 * memattr.c (mem_info_command): Rename to ...
8517 (info_mem_command): ... this.
8518 (mem_enable_command): Rename to ...
8519 (enable_mem_command): ... this.
8520 (mem_disable_command): Rename to ...
8521 (disable_mem_command): ... this.
8522 (mem_delete_command): Rename to ...
8523 (delete_mem_command): ... this.
8524 (_initialize_mem): Adjust function names.
8525
13ace077
MM
85262017-05-31 Markus Metzger <markus.t.metzger@intel.com>
8527
8528 * btrace.c (handle_pt_insn_events): New.
8529 (ftrace_add_pt): Call handle_pt_insn_events. Rename ERRCODE into
8530 STATUS. Split into this and ...
8531 (handle_pt_insn_event_flags): ... this.
8532
c56ccc05
MM
85332017-05-31 Markus Metzger <markus.t.metzger@intel.com>
8534
8535 * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
8536 and struct pt_insn.resynced.
8537 * configure: Regenerated.
8538 * config.in: Regenerated.
8539
08c3f6d2
TW
85402017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8541
8542 * btrace.c (ftrace_find_call_by_number): New function.
8543 (ftrace_new_function): Store objects, not pointers.
8544 (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
8545 ftrace_new_gap, ftrace_update_function,
8546 ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
8547 btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
8548 btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
8549 btrace_ends_with_single_insn, btrace_call_get): Account for
8550 btrace_thread_info::functions now storing objects.
8551 * btrace.h (struct btrace_thread_info): Add constructor.
8552 (struct btrace_thread_info) <functions>: Make std::vector.
8553 (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
8554 Initialize with default values.
8555 * record-btrace.c (record_btrace_frame_sniffer): Account for
8556 btrace_thread_info::functions now storing objects.
8557
8ffd39f2
TW
85582017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8559
8560 * btrace.c: Remove typedef bfun_s.
8561 (ftrace_new_gap): Directly add gaps to the list of gaps.
8562 (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
8563 ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
8564 btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
8565 instead of gdb VEC.
8566
4aeb0dfc
TW
85672017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8568
8569 * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
8570 ftrace_bridge_gap): Replace references to btrace_thread_info::segment
8571 with btrace_thread_info::next_segment and
8572 btrace_thread_info::prev_segment.
8573 * btrace.h: Remove struct btrace_func_link.
8574 (struct btrace_function): Replace pair of function segment pointers
8575 with pair of indices.
8576 * python/py-record-btrace.c (btpy_call_prev_sibling,
8577 btpy_call_next_sibling): Replace references to
8578 btrace_thread_info::segment with btrace_thread_info::next_segment and
8579 btrace_thread_info::prev_segment.
8580 * record-btrace.c (record_btrace_frame_this_id): Use
8581 btrace_find_call_by_number.
8582
eb8f2b9c
TW
85832017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8584
8585 * btrace.c (ftrace_new_function, ftrace_fixup_level,
8586 ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
8587 btrace_insn_next, btrace_insn_prev): Remove references to
8588 btrace_thread_info::flow.
8589 * btrace.h (struct btrace_function): Remove FLOW.
8590
42bfe59e
TW
85912017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8592
8593 * btrace.c (ftrace_find_call_by_number): New function.
8594 (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
8595 ftrace_get_caller, ftrace_find_call, ftrace_new_return,
8596 ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
8597 ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
8598 index.
8599 * btrace.h (struct btrace_function): Turn UP into an index.
8600 * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
8601 as an index.
8602 * record-btrace.c (record_btrace_frame_unwind_stop_reason,
8603 record_btrace_frame_prev_register, record_btrace_frame_sniffer,
8604 record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
8605
b54b03bd
TW
86062017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8607
8608 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
8609 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
8610 ftrace_update_function, ftrace_compute_global_level_offset,
8611 btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
8612 btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
8613 btrace_insn_end, btrace_is_empty): Remove references to
8614 btrace_thread_info::begin and btrace_thread_info::end.
8615 * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
8616 (struct btrace_thread_info) <functions>: Adjust comment.
8617 * record-btrace.c (record_btrace_start_replaying): Remove reference to
8618 btrace_thread_info::begin.
8619
8286623c
TW
86202017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8621
8622 * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
8623 ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
8624 ftrace_update_function): Remove arguments that implicitly were always
8625 BTINFO->END.
8626 (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
8627 Don't pass BTINFO->END.
8628
a0f1b963
TW
86292017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8630
8631 * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
8632 btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
8633 btrace_find_insn_by_number): Replace function segment pointer with
8634 index.
8635 (btrace_insn_cmp): Simplify.
8636 * btrace.h: (struct btrace_insn_iterator) Rename index to
8637 insn_index. Replace function segment pointer with index into function
8638 segment vector.
8639 * record-btrace.c (record_btrace_call_history): Replace function
8640 segment pointer use with index.
8641 (record_btrace_frame_sniffer): Retrieve function call segment through
8642 vector.
8643 (record_btrace_set_replay): Remove defunc't safety check.
8644
f158f208
TW
86452017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8646
8647 * btrace.c (btrace_ends_with_single_insn): New function.
8648 (btrace_call_get, btrace_call_number, btrace_call_begin,
8649 btrace_call_end, btrace_call_next, btrace_call_prev,
8650 btrace_find_call_by_number): Use index into call segment vector
8651 instead of pointer.
8652 (btrace_call_cmp): Simplify.
8653 * btrace.h (struct btrace_call_iterator): Replace function call segment
8654 pointer with index into vector.
8655 * record-btrace.c (record_btrace_call_history): Use index instead of
8656 pointer.
8657
521103fd
TW
86582017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8659
8660 * btrace.c (btrace_insn_begin, btrace_insn_end,
8661 btrace_find_insn_by_number): Add btinfo to iterator.
8662 * btrace.h (struct btrace_insn_iterator): Add btinfo.
8663
17b89b34
TW
86642017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8665
8666 * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
8667 and save pointers directly.
8668 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
8669 ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
8670 ftrace_add_pt): Add btrace_thread_info to arguments. Adjust for
8671 changed signature of functions.
8672 (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
8673 (btrace_fetch): Remove code that adds btrace_function pointers to
8674 vector of btrace_functions.
8675 (btrace_clear): Simplify freeing vector of btrace_functions.
8676
2b51eddc
TW
86772017-05-30 Tim Wiederhake <tim.wiederhake@intel.com>
8678
8679 * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
8680 Replace VEC_* with std::vector functions.
8681 * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
8682 (struct btrace_thread_info)<functions>: Change type to std::vector.
8683
db6be0d5
SM
86842017-05-30 Simon Marchi <simon.marchi@ericsson.com>
8685
8686 * NEWS (Changes in GDB 8.0): Remove extra empty line. Move
8687 "Removed targets and native configurations" up. Merge duplicate
8688 "New commands" sub-sections. Add "New options" sub-sections.
8689
b057297a
AH
86902017-05-26 Alan Hayward <alan.hayward@arm.com>
8691
8692 * defs.h (copy_integer_to_size): New declaration.
8693 * findvar.c (copy_integer_to_size): New function.
8694 (do_cint_test): New selftest function.
8695 (copy_integer_to_size_test): Likewise.
8696 (_initialize_findvar): Likewise.
8697 * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
8698 (mips_fbsd_collect_reg): Use raw_collect_integer.
8699 * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
8700 (mips64_fill_gregset): Use raw_collect_integer
8701 (mips64_fill_fpregset): Use raw_supply_integer.
8702 * regcache.c (regcache::raw_supply_integer): New function.
8703 (regcache::raw_collect_integer): Likewise.
8704 * regcache.h: (regcache::raw_supply_integer): New declaration.
8705 (regcache::raw_collect_integer): Likewise.
8706
b77b02a5
YQ
87072017-05-24 Yao Qi <yao.qi@linaro.org>
8708
8709 * Makefile.in (SFILES): Add gdbarch-selftests.c.
8710 (COMMON_OBS): Add gdbarch-selftests.o.
8711 * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
8712 * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
8713 * gdbarch-selftests.c: New file.
8714 * regcache.h (regcache) <~regcache>: Mark it virtual if
8715 GDB_SELF_TEST.
8716 <raw_write>: Likewise.
8717
e521e87e
YQ
87182017-05-24 Yao Qi <yao.qi@linaro.org>
8719
8720 * regcache.c (current_regcache): Change it to
8721 regcache::current_regcache.
8722 (regcache_observer_target_changed): Update.
8723 (regcache_thread_ptid_changed): Make it a regcache static
8724 method.
8725 (regcache_thread_ptid_changed): Update.
8726 (class regcache_access): New.
8727 (current_regcache_test): Update.
8728 (_initialize_regcache): Update.
8729 * regcache.h: Include forward_list.
8730 (regcache): Declare regcache_thread_ptid_changed and declare
8731 registers_changed_ptid as friend.
8732
d8e07dda
YQ
87332017-05-24 Yao Qi <yao.qi@linaro.org>
8734
8735 * i387-tdep.c (i387_register_to_value): Use register_size
8736 instead of TYPE_LENGTH.
8737 * m68k-tdep.c (m68k_register_to_value): Likewise.
8738
8c8f9122
YQ
87392017-05-24 Yao Qi <yao.qi@linaro.org>
8740
8741 * i387-tdep.c (i387_convert_register_p): Return false if type
8742 code isn't TYPE_CODE_FLT.
8743
68fce50f
YQ
87442017-05-24 Yao Qi <yao.qi@linaro.org>
8745
8746 * alpha-tdep.c (alpha_convert_register_p): Return true if type
8747 length is 4.
8748 (alpha_register_to_value): Remove type length check.
8749 (alpha_value_to_register): Likewise.
8750
88954b49
YQ
87512017-05-24 Yao Qi <yao.qi@linaro.org>
8752
8753 * ia64-tdep.c (ia64_convert_register_p): Check type's code is
8754 TYPE_CODE_FLT.
8755
e3ec9b69
YQ
87562017-05-24 Yao Qi <yao.qi@linaro.org>
8757
8758 * m68k-tdep.c (m68k_convert_register_p): Check type's code is
8759 TYPE_CODE_FLT or not.
8760
cdd238da
YQ
87612017-05-24 Yao Qi <yao.qi@linaro.org>
8762
8763 * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
8764 * avr-tdep.c (avr_gdbarch_init): Likewise.
8765 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8766 * cris-tdep.c (cris_gdbarch_init): Likewise.
8767 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
8768 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8769 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8770 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
8771 * mep-tdep.c (mep_gdbarch_init): Likewise.
8772 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8773 * mips-tdep.c (mips_gdbarch_init): Likewise.
8774 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
8775 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8776 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
8777 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8778 * v850-tdep.c (v850_gdbarch_init): Likewise.
8779
7a3929c4
YQ
87802017-05-24 Yao Qi <yao.qi@linaro.org>
8781
8782 * selftest-arch.c (tests_with_arch): Call registers_changed
8783 and reinit_frame_cache.
8784 * selftest.c (run_self_tests): Likewise.
8785
f4985dba
YQ
87862017-05-24 Yao Qi <yao.qi@linaro.org>
8787
8788 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.
8789 (rs6000_gdbarch_init): Don't call set_gdbarch_print_insn.
8790
ab20fa4a
YQ
87912017-05-24 Yao Qi <yao.qi@linaro.org>
8792
8793 * rl78-tdep.c (rl78_gdbarch_init): Don't call
8794 set_gdbarch_print_insn.
8795
f532ab94
YQ
87962017-05-24 Yao Qi <yao.qi@linaro.org>
8797
8798 * h8300-tdep.c (h8300_gdbarch_init): Don't call
8799 set_gdbarch_print_insn.
8800
39503f82
YQ
88012017-05-24 Yao Qi <yao.qi@linaro.org>
8802
8803 * alpha-tdep.c (alpha_gdbarch_init): Don't call
8804 set_gdbarch_print_insn.
8805 * arc-tdep.c (arc_gdbarch_init): Likewise.
8806 * arch-utils.c: include dis-asm.h.
8807 (default_print_insn): New function.
8808 * arch-utils.h (default_print_insn): Declare.
8809 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_print_insn.
8810 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8811 * cris-tdep.c (cris_delayed_get_disassembler): Remove.
8812 (cris_gdbarch_init): Don't call set_gdbarch_print_insn.
8813 * frv-tdep.c (frv_gdbarch_init): Likewise.
8814 * ft32-tdep.c (ft32_gdbarch_init): Likewise.
8815 * gdbarch.sh (print_insn): Use default_print_insn.
8816 * gdbarch.c: Regenerated.
8817 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
8818 * iq2000-tdep.c (iq2000_gdbarch_init): Likewise.
8819 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8820 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
8821 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8822 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Remove.
8823 (m68hc11_gdbarch_init): Don't call set_gdbarch_print_insn.
8824 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
8825 * m88k-tdep.c (m88k_gdbarch_init): Likewise.
8826 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8827 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
8828 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8829 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
8830 * mt-tdep.c (mt_gdbarch_init): Likewise.
8831 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
8832 * nios2-tdep.c (nios2_print_insn): Remove.
8833 (nios2_gdbarch_init): Don't call set_gdbarch_print_insn.
8834 * rx-tdep.c (rx_gdbarch_init): Likewise.
8835 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8836 * score-tdep.c (score_print_insn): Remove.
8837 (score_gdbarch_init): Don't call set_gdbarch_print_insn.
8838 * sh-tdep.c (sh_gdbarch_init): Likewise.
8839 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8840 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8841 * tic6x-tdep.c (tic6x_print_insn): Remove.
8842 (tic6x_gdbarch_init): Don't call set_gdbarch_print_insn.
8843 * tilegx-tdep.c (tilegx_gdbarch_init): Likewise.
8844 * v850-tdep.c (v850_gdbarch_init): Likewise.
8845 * vax-tdep.c (vax_gdbarch_init): Likewise.
8846 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
8847 * xtensa-tdep.c (xtensa_gdbarch_init): Likewise.
8848
f7241d4f
JB
88492017-05-23 John Baldwin <jhb@FreeBSD.org>
8850
8851 * mips-fbsd-tdep.c (MIPS_PC_REGNUM): Remove.
8852 (MIPS_FP0_REGNUM): Remove.
8853 (MIPS_FSR_REGNUM): Remove.
8854 (mips_fbsd_supply_fpregs): Use mips_regnum.
8855 (mips_fbsd_supply_gregs): Likewise.
8856 (mips_fbsd_collect_fpregs): Likewise.
8857 (mips_fbsd_collect_gregs): Likewise.
8858
d489d81d
JB
88592017-05-23 John Baldwin <jhb@FreeBSD.org>
8860
8861 * mips-fbsd-nat.c (getregs_supplies): Fix upper bound comparison.
8862 (getpfpregs_supplies): New function.
8863 (mips_fbsd_fetch_inferior_registers): Remove early exit and use
8864 getfpregs_supplies.
8865 (mips_fbsd_store_inferior_registers): Likewise.
8866
e11b3cdc
PA
88672017-05-22 Pedro Alves <palves@redhat.com>
8868
8869 * MAINTAINERS (Host/Native): Add John Baldwin as FreeBSD
8870 maintainer.
8871
0f068fb5
AH
88722017-05-22 Alan Hayward <alan.hayward@arm.com>
8873
8874 * ppc-linux-nat.c (fetch_register): Use PPC_MAX_REGISTER_SIZE.
8875 (store_register): Likewise.
8876 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Likewise.
8877 (get_decimal_float_return_value): Likewise.
8878 (do_ppc_sysv_return_value): Likewise.
8879 (ppc64_sysv_abi_push_integer): Likewise.
8880 (ppc64_sysv_abi_push_freg): Likewise.
8881 (ppc64_sysv_abi_return_value_base): Likewise.
8882 (ppc64_sysv_abi_return_value): Likewise.
8883 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Likewise.
8884 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Likewise.
8885 * rs6000-nat.c: Likewise.
8886 * rs6000-tdep.c (rs6000_register_to_value): Likewise.
8887 (rs6000_value_to_register): Likewise.
8888 * ppc-tdep.h (PPC_MAX_REGISTER_SIZE): Add.
8889
e6cf65f2
TT
88902017-05-21 Tom Tromey <tom@tromey.com>
8891
8892 PR rust/21466:
8893 * rust-lang.c (rust_print_type) <TYPE_CODE_ARRAY>: Print unsized
8894 arrays as "[T]", not "[T; ]".
8895
43cc5389
TT
88962017-05-19 Tom Tromey <tom@tromey.com>
8897
8898 PR rust/21484:
8899 * rust-lang.c (exp_descriptor_rust): New function.
8900 (rust_language_defn): Use it.
8901 * p-lang.c (pascal_language_defn): Update.
8902 * opencl-lang.c (opencl_language_defn): Update.
8903 * objc-lang.c (objc_language_defn): Update.
8904 * m2-lang.c (m2_language_defn): Update.
8905 * language.h (struct language_defn)
8906 <la_watch_location_expression>: New member.
8907 * language.c (unknown_language_defn, auto_language_defn)
8908 (local_language_defn): Update.
8909 * go-lang.c (go_language_defn): Update.
8910 * f-lang.c (f_language_defn): Update.
8911 * d-lang.c (d_language_defn): Update.
8912 * c-lang.h (c_watch_location_expression): Declare.
8913 * c-lang.c (c_watch_location_expression): New function.
8914 (c_language_defn, cplus_language_defn, asm_language_defn)
8915 (minimal_language_defn): Use it.
8916 * breakpoint.c (watch_command_1): Call
8917 la_watch_location_expression.
8918 * ada-lang.c (ada_language_defn): Update.
8919
7a6e7fcc
RO
89202017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8921
6e7e1744
RO
8922 PR tui/21482
8923 * gdb_curses.h (NOMACROS): Define.
8924 (NCURSES_NOMACROS): Define.
8925
89262017-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8927
8928 PR tui/21482
7a6e7fcc
RO
8929 * tui/tui-windata.c (tui_erase_data_content): Cast last mvwaddstr
8930 arg to char *.
8931 * tui/tui-wingeneral.c (box_win): Likewise.
8932 * tui/tui-winsource.c (tui_erase_source_content): Likewise.
8933 (tui_show_source_line): Likewise.
8934 (tui_show_exec_info_content): Likewise.
8935
1933fd8e
VM
89362017-05-19 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
8937
8938 * sparc-tdep.c (sparc_structure_return_p)
8939 (sparc_arg_on_registers_p): New functions.
8940 (sparc32_store_arguments): Use them.
8941 * sparc64-tdep.c (sparc64_16_byte_align_p)
8942 (sparc64_store_floating_fields, sparc64_extract_floating_fields):
8943 Handle TYPE_CODE_ARRAY.
8944
21873064
YQ
89452017-05-17 Yao Qi <yao.qi@linaro.org>
8946
8947 * cli/cli-decode.c (add_alias_cmd): New function.
8948 * command.h (add_alias_cmd): Declare.
8949 * infcmd.c (_initialize_infcmd): Don't call add_com_alias,
8950 instead call add_alias_cmd.
8951
2b351b19
PA
89522017-05-17 Pedro Alves <palves@redhat.com>
8953
8954 * Makefile.in (nat_extra_makefile_frag): Rename to ...
8955 (nat_makefile_frag): ... this. All references updated.
8956 * configure.ac: Likewise.
8957 * configure.nat: Likewise. Enhance comments.
8958 * configure: Regenerate.
8959
5f2ad7a3
RO
89602017-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8961
8962 * procfs.c (procfs_create_inferior): Change prototype to match
8963 definition.
8964
adf3dde5
EZ
89652017-05-13 Eli Zaretskii <eliz@gnu.org>
8966
8967 * tui/tui.c (tui_enable): Cast "unknown" to 'char *' to avoid a
8968 C++ compiler warning.
8969
6830f270
TT
89702017-05-12 Tom Tromey <tom@tromey.com>
8971
8972 PR rust/21483:
8973 * rust-lang.c (rust_evaluate_subexp) <STRUCTOP_STRUCT>: Don't
8974 recurse, just call value_struct_elt directly.
8975
68f2f2e3
TT
89762017-05-12 Tom Tromey <tom@tromey.com>
8977
8978 * rust-lang.c (rust_dump_subexp_body) <STRUCTOP_ANONYMOUS,
8979 OP_RUST_ARRAY>: Fix.
8980
256afbc2
TT
89812017-05-12 Tom Tromey <tom@tromey.com>
8982
8983 * rust-lang.c (rust_print_subexp): Replace "return" with "break".
8984
94bb8dfe
YQ
89852017-05-09 Yao Qi <yao.qi@linaro.org>
8986
8987 * regcache.c: Include <forward_list>.
8988 (struct regcache_list): Remove.
8989 (current_regcache): Update.
8990 (get_thread_arch_aspace_regcache): Update for std::forward_list.
8991 (regcache_thread_ptid_changed): Likewise.
8992 (registers_changed_ptid): Likewise.
8993 (current_regcache_size): Likewise.
8994
8248946c
YQ
89952017-05-09 Yao Qi <yao.qi@linaro.org>
8996
8997 * regcache.c [GDB_SELF_TEST]: Include selftest.h.
8998 (current_regcache_size): New function.
8999 (current_regcache_test): New function.
9000 (_initialize_regcache) [GDB_SELF_TEST]: Register the unit test.
9001
313c5961
AH
90022017-05-08 Alan Hayward <alan.hayward@arm.com>
9003
9004 * mips-tdep.c (mips_o32_return_value): Remove unused buffer.
9005 (print_gp_register_row): Use get_frame_register_value.
9006
27bfc1d1
AH
90072017-05-08 Alan Hayward <alan.hayward@arm.com>
9008
9009 * mips-linux-tdep.c (mips_supply_gregset): Use raw_supply_zeroed.
9010 (mips_supply_fpregset): Likewise.
9011 (mips64_supply_gregset): Likewise.
9012
146e6c5c
AH
90132017-05-08 Alan Hayward <alan.hayward@arm.com>
9014
9015 * mn10300-linux-tdep.c (am33_supply_gregset_method): Use
9016 regcache->raw_supply_zeroed.
9017
e50f25ec
SDJ
90182017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
9019
9020 * configure.nat: Rearrange 'case' statements to match
9021 host before cpu.
9022
21ea5acd
SDJ
90232017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
9024
9025 * Makefile.in: Remove "@host_makefile_frag@". Add variables
9026 NAT_FILE, NATDEPFILES, NAT_CDEPS, LOADLIBES, MH_CFLAGS, XM_CLIBS,
9027 NAT_GENERATED_FILES, HAVE_NATIVE_GCORE_HOST. Add
9028 "@nat_extra_makefile_frag@".
9029 (Makefile): Remove dependency on "@frags@".
9030 ($(GNULIB_BUILDDIR)/Makefile): Likewise.
9031 (data-directory/Makefile): Likewise.
9032 * config/aarch64/linux.mh: Deleted; moved contents to
9033 "gdb/configure.nat".
9034 * config/alpha/alpha-linux.mh: Likewise.
9035 * config/alpha/nbsd.mh: Likewise.
9036 * config/arm/linux.mh: Likewise.
9037 * config/arm/nbsdelf.mh: Likewise.
9038 * config/i386/cygwin.mh: Likewise.
9039 * config/i386/cygwin64.mh: Likewise.
9040 * config/i386/darwin.mh: Likewise.
9041 * config/i386/fbsd.mh: Likewise.
9042 * config/i386/fbsd64.mh: Likewise.
9043 * config/i386/go32.mh: Likewise.
9044 * config/i386/i386gnu.mh: Likewise.
9045 * config/i386/i386sol2.mh: Likewise.
9046 * config/i386/linux.mh: Likewise.
9047 * config/i386/linux64.mh: Likewise.
9048 * config/i386/mingw.mh: Likewise.
9049 * config/i386/mingw64.mh: Likewise.
9050 * config/i386/nbsd64.mh: Likewise.
9051 * config/i386/nbsdelf.mh: Likewise.
9052 * config/i386/nto.mh: Likewise.
9053 * config/i386/obsd.mh: Likewise.
9054 * config/i386/obsd64.mh: Likewise.
9055 * config/i386/sol2-64.mh: Likewise.
9056 * config/ia64/linux.mh: Likewise.
9057 * config/m32r/linux.mh: Likewise.
9058 * config/m68k/linux.mh: Likewise.
9059 * config/m68k/nbsdelf.mh: Likewise.
9060 * config/m68k/obsd.mh: Likewise.
9061 * config/m88k/obsd.mh: Likewise.
9062 * config/mips/fbsd.mh: Likewise.
9063 * config/mips/linux.mh: Likewise.
9064 * config/mips/nbsd.mh: Likewise.
9065 * config/mips/obsd64.mh: Likewise.
9066 * config/pa/linux.mh: Likewise.
9067 * config/pa/nbsd.mh: Likewise.
9068 * config/pa/obsd.mh: Likewise.
9069 * config/powerpc/aix.mh: Likewise.
9070 * config/powerpc/fbsd.mh: Likewise.
9071 * config/powerpc/linux.mh: Likewise.
9072 * config/powerpc/nbsd.mh: Likewise.
9073 * config/powerpc/obsd.mh: Likewise.
9074 * config/powerpc/ppc64-linux.mh: Likewise.
9075 * config/powerpc/spu-linux.mh: Likewise.
9076 * config/s390/linux.mh: Likewise.
9077 * config/sh/nbsd.mh: Likewise.
9078 * config/sparc/fbsd.mh: Likewise.
9079 * config/sparc/linux.mh: Likewise.
9080 * config/sparc/linux64.mh: Likewise.
9081 * config/sparc/nbsd64.mh: Likewise.
9082 * config/sparc/nbsdelf.mh: Likewise.
9083 * config/sparc/obsd64.mh: Likewise.
9084 * config/sparc/sol2.mh: Likewise.
9085 * config/tilegx/linux.mh: Likewise.
9086 * config/vax/nbsdelf.mh: Likewise.
9087 * config/vax/obsd.mh: Likewise.
9088 * config/xtensa/linux.mh: Likewise.
9089 * config/i386/i386gnu.mn: New file, with excerpts from
9090 "config/i386/i386gnu.mh".
9091 * configure: Regenerate.
9092 * configure.ac: Rewrite code to use "gdb/configure.nat" instead of
9093 *.mh files under "gdb/config".
9094 * configure.nat: New file, with contents from the
9095 "gdb/config/*/*.mh" files.
9096
7ed1acaf
TW
90972017-05-05 Tim Wiederhake <tim.wiederhake@intel.com>
9098
9099 * btrace.c (btrace_clear): Free insn vector.
9100
e13cb306
PA
91012017-05-05 Pedro Alves <palves@redhat.com>
9102
9103 * warning.m4 (build_warnings): Add -Wno-error=maybe-uninitialized.
9104 * configure: Regenerate.
9105
5ed8105e
PA
91062017-05-04 Pedro Alves <palves@redhat.com>
9107
9108 * Makefile.in (SFILES): Add progspace-and-thread.c.
9109 (HFILES_NO_SRCDIR): Add progspace-and-thread.h.
9110 (COMMON_OBS): Add progspace-and-thread.o.
9111 * breakpoint.c: Include "progspace-and-thread.h".
9112 (update_inserted_breakpoint_locations)
9113 (insert_breakpoint_locations, create_longjmp_master_breakpoint):
9114 Use scoped_restore_current_pspace_and_thread.
9115 (create_std_terminate_master_breakpoint): Use
9116 scoped_restore_current_program_space.
9117 (remove_breakpoint): Use scoped_restore_current_pspace_and_thread.
9118 (print_breakpoint_location): Use
9119 scoped_restore_current_program_space.
9120 (bp_loc_is_permanent): Use
9121 scoped_restore_current_pspace_and_thread.
9122 (resolve_sal_pc): Use scoped_restore_current_pspace_and_thread.
9123 (download_tracepoint_locations): Use
9124 scoped_restore_current_pspace_and_thread.
9125 (breakpoint_re_set): Use scoped_restore_current_pspace_and_thread.
9126 * exec.c (exec_close_1): Use scoped_restore_current_program_space.
9127 (enum step_over_calls_kind): Moved from inferior.h.
9128 (class scoped_restore_current_thread): New class.
9129 * gdbthread.h (make_cleanup_restore_current_thread): Delete
9130 declaration.
9131 (scoped_restore_current_thread): New class.
9132 * infcmd.c: Include "common/gdb_optional.h".
9133 (continue_1, proceed_after_attach): Use
9134 scoped_restore_current_thread.
9135 (notice_new_inferior): Use scoped_restore_current_thread.
9136 * inferior.c: Include "progspace-and-thread.h".
9137 (restore_inferior, save_current_inferior): Delete.
9138 (add_inferior_command, clone_inferior_command): Use
9139 scoped_restore_current_pspace_and_thread.
9140 * inferior.h (scoped_restore_current_inferior): New class.
9141 * infrun.c: Include "progspace-and-thread.h" and
9142 "common/gdb_optional.h".
9143 (follow_fork_inferior): Use
9144 scoped_restore_current_pspace_and_thread.
9145 (scoped_restore_exited_inferior): New class.
9146 (handle_vfork_child_exec_or_exit): Use
9147 scoped_restore_exited_inferior,
9148 scoped_restore_current_pspace_and_thread,
9149 scoped_restore_current_thread and scoped_restore.
9150 (fetch_inferior_event): Use scoped_restore_current_thread.
9151 * linespec.c (decode_line_full, decode_line_1): Use
9152 scoped_restore_current_program_space.
9153 * mi/mi-main.c: Include "progspace-and-thread.h".
9154 (exec_continue): Use scoped_restore_current_thread.
9155 (mi_cmd_exec_run): Use scoped_restore_current_pspace_and_thread.
9156 (mi_cmd_trace_frame_collected): Use scoped_restore_current_thread.
9157 * proc-service.c (ps_pglobal_lookup): Use
9158 scoped_restore_current_program_space.
9159 * progspace-and-thread.c: New file.
9160 * progspace-and-thread.h: New file.
9161 * progspace.c (release_program_space, clone_program_space): Use
9162 scoped_restore_current_program_space.
9163 (restore_program_space, save_current_program_space)
9164 (save_current_space_and_thread): Delete.
9165 (switch_to_program_space_and_thread): Moved to
9166 progspace-and-thread.c.
9167 * progspace.h (save_current_program_space)
9168 (save_current_space_and_thread): Delete declarations.
9169 (scoped_restore_current_program_space): New class.
9170 * remote.c (remote_btrace_maybe_reopen): Use
9171 scoped_restore_current_thread.
9172 * symtab.c: Include "progspace-and-thread.h".
9173 (skip_prologue_sal): Use scoped_restore_current_pspace_and_thread.
9174 * thread.c (print_thread_info_1): Use
9175 scoped_restore_current_thread.
9176 (struct current_thread_cleanup): Delete.
9177 (do_restore_current_thread_cleanup)
9178 (restore_current_thread_cleanup_dtor): Rename/convert both to ...
9179 (scoped_restore_current_thread::~scoped_restore_current_thread):
9180 ... this new dtor.
9181 (make_cleanup_restore_current_thread): Rename/convert to ...
9182 (scoped_restore_current_thread::scoped_restore_current_thread):
9183 ... this new ctor.
9184 (thread_apply_all_command): Use scoped_restore_current_thread.
9185 (thread_apply_command): Use scoped_restore_current_thread.
9186 * tracepoint.c (tdump_command): Use scoped_restore_current_thread.
9187 * varobj.c (value_of_root_1): Use scoped_restore_current_thread.
9188
f6223dbb
PA
91892017-05-04 Pedro Alves <palves@redhat.com>
9190
9191 * thread.c (make_cleanup_restore_current_thread): Move
9192 find_thread_ptid call before the is_stopped call. Assert that the
9193 thread is found. Replace is_stopped call by checking the thread's
9194 state directly. Remove unnecessary NULL-thread check.
9195
3c3ae77e
PA
91962017-05-04 Pedro Alves <palves@redhat.com>
9197
9198 * corelow.c (thread_section_name): New class.
9199 (get_core_register_section, get_core_siginfo): Use it.
9200
45eba0ab
AA
92012017-05-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9202
9203 * corelow.c (sniff_core_bfd): Remove extra semicolon.
9204 (get_core_register_section): Remove xfree of NULL pointer.
9205
f81fdd35
AH
92062017-05-03 Alan Hayward <alan.hayward@arm.com>
9207
9208 * frv-linux-tdep.c (frv_linux_supply_gregset): Use raw_supply_zeroed.
9209 * regcache.c (regcache::raw_supply_zeroed): New function.
9210 * regcache.h (regcache::raw_supply_zeroed): New declaration.
9211
35837774
SM
92122017-05-03 Simon Marchi <simon.marchi@ericsson.com>
9213
9214 * gdbarch.sh: Remove commented out definition of
9215 TARGET_CHAR_BIT.
9216 * gdbarch.h: Re-generate.
9217
c94fee56
SDJ
92182017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
9219
9220 * configure: Regenerate.
9221
d17f7b36
SM
92222017-05-02 Simon Marchi <simon.marchi@ericsson.com>
9223
9224 * solib-target.c (solib_target_relocate_section_addresses):
9225 Remove num_section_bases, num_bases, segment_bases variables.
9226
b560ebd6
SM
92272017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9228
9229 * common/gdb_vecs.h (DEF_VEC_I (CORE_ADDR)): Remove.
9230
f2f46dfc
SM
92312017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9232
9233 * solib-target.c: Include <vector>
9234 (struct lm_info_target) <~lm_info_target>: Remove.
9235 <segment_bases, section_bases>: Change type to
9236 std::vector<CORE_ADDR>.
9237 (library_list_start_segment, library_list_start_section,
9238 library_list_end_library,
9239 solib_target_relocate_section_addresses): Adjust.
9240
a0ff9e1a
SM
92412017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9242
9243 * gdbarch.sh (software_single_step): Change return type to
9244 std::vector<CORE_ADDR>.
9245 * gdbarch.c, gdbarch.h: Re-generate.
9246 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw):
9247 Adjust.
9248 (arm_deal_with_atomic_sequence_raw): Adjust.
9249 (thumb_get_next_pcs_raw): Adjust.
9250 (arm_get_next_pcs_raw): Adjust.
9251 (arm_get_next_pcs): Adjust.
9252 * arch/arm-get-next-pcs.h (arm_get_next_pcs): Adjust.
9253 * aarch64-tdep.c (aarch64_software_single_step): Adjust.
9254 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Adjust.
9255 (alpha_software_single_step): Adjust.
9256 * alpha-tdep.h (alpha_software_single_step): Adjust.
9257 * arm-linux-tdep.c (arm_linux_software_single_step): Adjust.
9258 * arm-tdep.c (arm_software_single_step): Adjust.
9259 (arm_breakpoint_kind_from_current_state): Adjust.
9260 * arm-tdep.h (arm_software_single_step): Adjust.
9261 * breakpoint.c (insert_single_step_breakpoint): Adjust.
9262 * cris-tdep.c (cris_software_single_step): Adjust.
9263 * mips-tdep.c (mips_deal_with_atomic_sequence): Adjust.
9264 (micromips_deal_with_atomic_sequence): Adjust.
9265 (deal_with_atomic_sequence): Adjust.
9266 (mips_software_single_step): Adjust.
9267 * mips-tdep.h (mips_software_single_step): Adjust.
9268 * moxie-tdep.c (moxie_software_single_step): Adjust.
9269 * nios2-tdep.c (nios2_software_single_step): Adjust.
9270 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Adjust.
9271 * rs6000-aix-tdep.c (rs6000_software_single_step): Adjust.
9272 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Adjust.
9273 * s390-linux-tdep.c (s390_software_single_step): Adjust.
9274 * sparc-tdep.c (sparc_software_single_step): Adjust.
9275 * spu-tdep.c (spu_software_single_step): Adjust.
9276 * tic6x-tdep.c (tic6x_software_single_step): Adjust.
9277
ea480a30
SM
92782017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
9279
9280 * gdbarch.sh: Use semi-colon as field separator instead of colon.
9281 * gdbarch.h: Re-generate.
9282
d050f7d7
TW
92832017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9284
9285 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-instruction.o.
9286 (SUBDIR_PYTHON_SRCS): Add py-instruction.c.
9287 * python/py-instruction.c, python/py-instruction.h: New file.
9288 * python/py-record.c: Add py-instruction.h include.
9289 (gdbpy_initialize_record): Make gdb.Instruction a super class of
9290 gdb.RecordInstruction.
9291 * python/python-internal.h: Add gdbpy_initialize_instruction
9292 declaration.
9293 * python/python.c (do_start_initialization): Add
9294 gdbpy_initialize_instruction.
9295
14f819c8
TW
92962017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9297
9298 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_CALL, btpy_call_type):
9299 Remove.
9300 (btrace_func_from_recpy_func): New function.
9301 (btpy_call_new, btpy_number, btpy_hash, btpy_richcompare): Remove.
9302 (btpy_call_level, btpy_call_symbol, btpy_call_instructions,
9303 btpy_call_up, btpy_call_prev_sibling, btpy_call_next_sibling): Rename to ...
9304 (recpy_bt_func_level, recpy_bt_func_symbol, recpy_bt_func_instructions,
9305 recpy_bt_func_up, recpy_bt_func_prev, recpy_bt_func_next): This.
9306 Also, use new helper functions.
9307 (btpy_list_item): Use new helper functions.
9308 (recpy_bt_function_call_history): Use new type name.
9309 (btpy_call_getset): Remove.
9310 (gdbpy_initialize_btrace): Remove code to initialize
9311 gdb.BtraceFunctionCall.
9312 * python/py-record-btrace.h (recpy_bt_func_number, recpy_btb_func_level,
9313 recpy_btb_func_symbol, recpy_bt_func_instructions, recpy_bt_func_up,
9314 recpy_bt_func_prev, recpy_bt_func_next): New export.
9315 * python/py-record.c (recpy_func_type): New static object.
9316 (recpy_func_new, recpy_func_level, recpy_func_symbol,
9317 recpy_func_instructions, recpy_func_up, recpy_func_prev,
9318 recpy_func_next): New function.
9319 (recpy_element_hash, recpy_element_richcompare): Updated comment.
9320 (recpy_func_getset): New static object.
9321 (gdbpy_initialize_record): Add code to initialize gdb.RecordInstruction.
9322 * python/py-record.h (recpy_func_type, recpy_func_new): New export.
9323
0ed5da75
TW
93242017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9325
9326 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN): Remove.
9327 (btpy_object, btpy_insn_type, btpy_new): Remove.
9328 (btpy_list_object): Use gdb.RecordInstruction type instead of
9329 gdb.BtraceInstruction type.
9330 (btrace_insn_from_recpy_insn): New function.
9331 (btpy_insn_or_gap_new): Adjust comment. Use recpy_insn_new instead of
9332 btpy_new.
9333 (btpy_call_new, btpy_list_item): Do not use btpy_new anymore.
9334 (btpy_number, btpy_hash, btpy_call_level, btpy_call_symbol,
9335 btpy_call_instructions, btpy_call_up, btpy_call_prev_sibling,
9336 btpy_call_next_sibling, btpy_richcompare): Use recpy_element_object
9337 instead of btpy_object.
9338 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9339 btpy_insn_data, btpy_insn_decode): Rename to ...
9340 (recpy_bt_insn_sal, recpy_bt_insn_pc, recpy_bt_insn_size,
9341 recpy_bt_insn_is_speculative, recpy_bt_insn_data,
9342 recpy_bt_insn_decode): This. Also, use new helper functions.
9343 (btpy_list_position, recpy_bt_goto): Use recpy_element_object and
9344 recpy_insn_type.
9345 (btpy_insn_getset): Remove.
9346 (gdbpy_initialize_btrace): Remove code to initialize
9347 gdb.BtraceInstruction. Use recpy_element_object.
9348 * python/py-record-btrace.h (recpy_bt_insn_number, recpy_bt_insn_sal,
9349 recpy_bt_insn_pc, recpy_bt_insn_data, recpy_bt_insn_decoded,
9350 recpy_bt_insn_size, recpy_bt_insn_is_speculative): New export.
9351 * python/py-record.c (recpy_insn_type): New static object.
9352 (recpy_insn_new, recpy_insn_sal, recpy_insn_pc, recpy_insn_data,
9353 recpy_insn_decoded, recpy_insn_size, recpy_insn_is_speculative,
9354 recpy_element_number, recpy_element_hash, recpy_element_richcompare):
9355 New function.
9356 (recpy_insn_getset): New static object.
9357 (gdbpy_initialize_record): Initialize gdb.RecordInstruction.
9358 * python/py-record.h (recpy_element_object): New typedef.
9359 (recpy_insn_type, recpy_insn_new): New export.
9360
913aeadd
TW
93612017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9362
9363 * py-record-btrace.c (btpy_insn_new): Removed.
9364 (btpy_insn_or_gap_new): New function.
9365 (btpy_insn_error): Removed.
9366 (btpy_insn_sal, btpy_insn_pc, btpy_insn_size, btpy_insn_is_speculative,
9367 btpy_insn_data, btpy_insn_decode): Remove code path for gaps.
9368 (recpy_bt_replay_position, recpy_bt_begin, recpy_bt_end): Call
9369 btpy_insn_or_gap_new instead of btpy_insn_new.
9370 (btpy_insn_getset): Remove btpy_insn_error.
9371 * py-record.c (recpy_gap_type): New static object.
9372 (recpy_gap_object): New typedef.
9373 (recpy_gap_new, recpy_gap_number, recpy_gap_reason_code,
9374 recpy_gap_reason_string): New function.
9375 (recpy_gap_getset): New static object.
9376 (gdbpy_initialize_record): Initialize gdb.RecordGap type.
9377 * py-record.h (recpy_gap_new): New export.
9378
a3be24ad
TW
93792017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9380
9381 * python/py-record.c (recpy_ptid): Remove.
9382 (recpy_record_getset): Remove recpy_ptid.
9383
ae20e79a
TW
93842017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9385
9386 * btrace.c (btrace_fetch): Set inferior_ptid.
9387 * python/py-record-btrace.c: Add "py-record.h" include.
9388 (recpy_bt_format, recpy_bt_replay_position, recpy_bt_begin,
9389 recpy_bt_end, recpy_bt_instruction_history,
9390 recpy_bt_function_call_history, recpy_bt_goto): Use ptid stored
9391 in gdb.Record object instead of current ptid.
9392 * python/py-record.c: Include new "py-record.h" file.
9393 (recpy_record_object): Moved to py-record.h.
9394 * python/py-record.h: New file.
9395
8d0050ea
TW
93962017-05-01 Tim Wiederhake <tim.wiederhake@intel.com>
9397
9398 * python/py-record-btrace.c (BTPY_REQUIRE_VALID_INSN,
9399 BTPY_REQUIRE_VALID_CALL, recpy_bt_function_call_history): Fix
9400 indentation.
9401
3f380b50
JB
94022017-05-01 Joel Brobecker <brobecker@adacore.com>
9403
9404 * MAINTAINERS: Move Daniel Jacobowitz and Mark Kettenis to
9405 the past maintainers section.
9406
07495424
YQ
94072017-04-28 Yao Qi <yao.qi@linaro.org>
9408
9409 * infcmd.c (get_return_value): Use regcache ctor, and remove
9410 cleanup.
9411
deb1fa3e
YQ
94122017-04-28 Yao Qi <yao.qi@linaro.org>
9413 Pedro Alves <palves@redhat.com>
9414
9415 * regcache.c (regcache::regcache): New tag dispatch ctor.
9416 (do_cooked_read): Moved above.
9417 (regcache_dup): Use the tag dispatch ctor..
9418 * regcache.h (regcache): Declare ctor, delete copy ctor and
9419 assignment operator, remove friend regcache_dup.
9420
b421c83c
YQ
94212017-04-28 Yao Qi <yao.qi@linaro.org>
9422
9423 * regcache.c (regcache_dup): Assert !src->m_readonly_p and
9424 call method save instead of regcache_cpy.
9425 * regcache.h (struct regcache): Make regcache_dup a friend.
9426
ef79d9a3
YQ
94272017-04-28 Yao Qi <yao.qi@linaro.org>
9428
9429 * regcache.c (struct regcache): Move to regcache.h
9430 (regcache::arch): New method.
9431 (regcache_get_ptid): Update.
9432 (get_regcache_arch): Call arch method.
9433 (get_regcache_aspace): Call method aspace.
9434 (register_buffer): Change it to method.
9435 (regcache_save): Change it to regcache::save.
9436 (regcache_restore): Likewise.
9437 (regcache_cpy_no_passthrough): Remove the declaration.
9438 (regcache_cpy): Call methods restore and cpy_no_passthrough.
9439 (regcache_cpy_no_passthrough): Change it to method
9440 cpy_no_passthrough.
9441 (regcache_register_status): Change it to method
9442 get_register_status.
9443 (regcache_invalidate): Change it to method invalidate.
9444 (regcache_thread_ptid_changed): Use methods ptid and set_ptid.
9445 (regcache_raw_update): Change it to method raw_update.
9446 (regcache_raw_read): Likewise.
9447 (regcache_raw_read_signed): Likewise.
9448 (regcache_raw_read_unsigned): Likewise.
9449 (regcache_raw_write_signed): Likewise.
9450 (regcache_raw_write_unsigned): Likewise.
9451 (regcache_cooked_read): Likewise.
9452 (regcache_cooked_read_value): Likewise.
9453 (regcache_cooked_read_signed): Likewise.
9454 (regcache_cooked_read_unsigned): Likewise.
9455 (regcache_cooked_write_signed): Likewise.
9456 (regcache_cooked_write_unsigned): Likewise.
9457 (regcache_raw_set_cached_value): Likewise.
9458 (regcache_raw_write): Likewise.
9459 (regcache_cooked_write): Likewise.
9460 (regcache_xfer_part): Likewise.
9461 (regcache_raw_read_part): Likewise.
9462 (regcache_raw_write_part): Likewise.
9463 (regcache_cooked_read_part): Likewise.
9464 (regcache_cooked_write_part): Likewise.
9465 (regcache_raw_supply): Likewise.
9466 (regcache_raw_collect): Likewise.
9467 (regcache_transfer_regset): Likewise.
9468 (regcache_supply_regset): Likewise.
9469 (regcache_collect_regset): Likewise.
9470 (regcache_debug_print_register): Likewise.
9471 (enum regcache_dump_what): Move it to regcache.h.
9472 (regcache_dump): Change it to method dump.
9473 * regcache.h (enum regcache_dump_what): New.
9474 (class regcache): New.
9475 * target.c (target_fetch_registers): Call method
9476 debug_print_register.
9477 (target_store_registers): Likewise.
9478
f8fdb78e
SM
94792017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9480
9481 * windows-nat.c (struct lm_info_windows): Initialize field.
9482 (windows_make_so): Allocate lm_info_windows with new.
9483 (windows_free_so): Free lm_info_windows with delete.
9484
9ccbfd7b
SM
94852017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9486
9487 * solib-darwin.c (struct lm_info_darwin): Initialize field.
9488 (darwin_current_sos): Allocate lm_info_darwin with new, remove
9489 cleanup.
9490 (darwin_free_so): Free lm_info_darwin with delete.
9491
76e75227
SM
94922017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9493
9494 * solib-svr4.h (struct lm_info_svr4): Initialize fields.
9495 <l_addr_p>: Change type to bool.
9496 * solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
9497 (svr4_free_so): Free lm_info_svr4 with delete.
9498 (svr4_copy_library_list): Replace memcpy with call to copy
9499 constructor.
9500 (library_list_start_library, svr4_default_sos): Allocate
9501 lm_info_svr4 with new.
9502
51046d9e
SM
95032017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9504
9505 * solib-target.c (struct lm_info_target): Add destructor,
9506 initialize fields.
9507 <name>: Change type to std::string.
9508 (library_list_start_library): Allocate lm_info_target with new.
9509 (solib_target_free_library_list): Free lm_info_target with
9510 delete.
9511 (solib_target_current_sos): Adapt to std::string.
9512 (solib_target_free_so): Free lm_info_target with delete.
9513
4023ae76
SM
95142017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9515
9516 * solib-frv.c (struct lm_info_frv): Add destructor, initialize
9517 fields.
9518 (frv_current_sos): Allocate lm_info_frv with new.
9519 (frv_relocate_main_executable): Free lm_info_frv with delete,
9520 allocate with new.
9521 (frv_clear_solib, frv_free_so): Free lm_info_frv with delete.
9522
af43057b
SM
95232017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9524
9525 * solib-frv.c (struct lm_info_frv): Fix indentation.
9526
b0911207
SM
95272017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9528
9529 * solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
9530 map field.
9531 (dsbt_current_sos): Allocate lm_info_dsbt with new.
9532 (dsbt_relocate_main_executable): Free lm_info_dsbt with delete
9533 and allocate with new.
9534 (dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
9535
6c401f72
SM
95362017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9537
9538 * solib-aix.c (struct lm_info_aix): Initialize fields in-class.
9539 <filename, member_name>: Change type to std::string.
9540 (solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
9541 (library_list_start_library): Allocate lm_info_aix with new.
9542 (solib_aix_free_library_list, solib_aix_free_so): Free with delete.
9543 (solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
9544 with copy constructor.
9545
d0e449a1
SM
95462017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9547
9548 * solist.h (struct lm_info): Remove.
9549 (struct lm_info_base): New class.
9550 (struct so_list) <lm_info>: Change type to lm_info_base *.
9551 * nto-tdep.c (struct lm_info): Remove.
9552 (lm_addr): Adjust.
9553 * solib-aix.c (struct lm_info): Rename to ...
9554 (struct lm_info_aix): ... this. Extend lm_info_base.
9555 (lm_info_p): Rename to ...
9556 (lm_info_aix_p): ... this, and adjust.
9557 (solib_aix_new_lm_info, solib_aix_xfree_lm_info,
9558 solib_aix_parse_libraries, library_list_start_library,
9559 solib_aix_free_library_list, solib_aix_parse_libraries,
9560 solib_aix_get_library_list,
9561 solib_aix_relocate_section_addresses, solib_aix_free_so,
9562 solib_aix_get_section_offsets,
9563 solib_aix_solib_create_inferior_hook, solib_aix_current_sos):
9564 Adjust.
9565 (struct solib_aix_inferior_data) <library_list>: Adjust.
9566 * solib-darwin.c (struct lm_info): Rename to ...
9567 (struct lm_info_darwin): ... this. Extend lm_info_base.
9568 (darwin_current_sos, darwin_relocate_section_addresses): Adjust.
9569 * solib-dsbt.c (struct lm_info): Rename to ...
9570 (struct lm_info_dsbt): ... this. Extend lm_info_base.
9571 (struct dsbt_info) <main_executable_lm_info): Adjust.
9572 (dsbt_current_sos, dsbt_relocate_main_executable, dsbt_free_so,
9573 dsbt_relocate_section_addresses): Adjust.
9574 * solib-frv.c (struct lm_info): Rename to ...
9575 (struct lm_info_frv): ... this. Extend lm_info_base.
9576 (main_executable_lm_info): Adjust.
9577 (frv_current_sos, frv_relocate_main_executable, frv_free_so,
9578 frv_relocate_section_addresses, frv_fdpic_find_global_pointer,
9579 find_canonical_descriptor_in_load_object,
9580 frv_fdpic_find_canonical_descriptor): Adjust.
9581 * solib-svr4.c (struct lm_info): Move to solib-svr4.h, renamed
9582 to lm_info_svr4.
9583 (lm_info_read, lm_addr_check, svr4_keep_data_in_core,
9584 svr4_clear_so, svr4_copy_library_list,
9585 library_list_start_library, svr4_default_sos, svr4_read_so_list,
9586 svr4_current_sos, svr4_fetch_objfile_link_map,
9587 solist_update_incremental): Adjust.
9588 * solib-svr4.h (struct lm_info_svr4): Move here from
9589 solib-svr4.c.
9590 * solib-target.c (struct lm_info): Rename to ...
9591 (struct lm_info_target): ... this. Extend lm_info_base.
9592 (lm_info_p): Rename to ...
9593 (lm_info_target_p): ... this.
9594 (solib_target_parse_libraries, library_list_start_segment,
9595 library_list_start_section, library_list_start_library,
9596 library_list_end_library, solib_target_free_library_list,
9597 solib_target_current_sos, solib_target_free_so,
9598 solib_target_relocate_section_addresses): Adjust.
9599 * windows-nat.c (struct lm_info): Rename to ...
9600 (struct lm_info_windows): ... this. Extend lm_info_base.
9601 (windows_make_so, handle_load_dll, handle_unload_dll,
9602 windows_xfer_shared_libraries): Adjust.
9603
434a4023
SM
96042017-04-28 Simon Marchi <simon.marchi@ericsson.com>
9605
9606 * solib-darwin.c (struct darwin_so_list): Remove.
9607 (darwin_current_sos): Allocate an so_list object instead of a
9608 darwin_so_list, separately allocate an lm_info object.
9609 (darwin_free_so): Free lm_info.
9610
428544e8
JB
96112017-04-28 John Baldwin <jhb@FreeBSD.org>
9612
9613 * mips-tdep.c (print_gp_register_row): Replace printf_filtered
9614 with fprintf_filtered.
9615
4621115f
YQ
96162017-04-28 Yao Qi <yao.qi@linaro.org>
9617
9618 * regcache.c (regcache::regcache): New function.
9619 (regcache::~regcache): New function.
9620 (regcache_xmalloc_1): Remove.
9621 (regcache_xmalloc): Call new regcache.
9622 (regcache_xfree): Call delete regcache.
9623 (get_thread_arch_aspace_regcache): Call new regcache.
9624
339053c2
YQ
96252017-04-28 Yao Qi <yao.qi@linaro.org>
9626
9627 * mips-linux-nat.c (mips_linux_new_thread): Use ptid method
9628 lwp instead of ptid_get_lwp.
9629
7974a605
YQ
96302017-04-28 Yao Qi <yao.qi@linaro.org>
9631
9632 * mips-linux-nat.c (mips_linux_new_thread): Get lwpid from
9633 lwp_info instead of getting from inferior_ptid.
9634
e15c3eb4
KS
96352017-04-27 Keith Seitz <keiths@redhat.com>
9636
9637 * gdbtypes.c (LVALUE_REFERENCE_TO_RVALUE_BINDING_BADNESS)
9638 DIFFERENT_REFERENCE_TYPE_BADNESS): Remove.
9639 (CV_CONVERSION_BADNESS): Define.
9640 (rank_one_type): Remove overly restrictive rvalue reference
9641 rank checks.
9642 Add cv-qualifier checks and subranks for type equality.
9643 * gdbtypes.h (REFERENCE_CONVERSION_RVALUE,
9644 REFERENCE_CONVERSION_CONST_LVALUE, CV_CONVERSION_BADNESS,
9645 CV_CONVERSION_CONST, CV_CONVERSION_VOLATILE): Declare.
9646
72bc1d24
SM
96472017-04-27 Simon Marchi <simon.marchi@ericsson.com>
9648
9649 * python/py-inferior.c (inferior_to_inferior_object): Increment reference
9650 count when creating the object.
9651
55bcecda
UW
96522017-04-27 Sangamesh Mallayya <sangamesh.swamy@in.ibm.com>
9653 Ulrich Weigand <uweigand@de.ibm.com>
9654
9655 * xcoffread.c (read_xcoff_symtab): Read correct function auxiliary
9656 entry if xlc -qfuncsect or gcc -ffunction-sections compiler option
9657 is used in AIX.
9658 (read_xcoff_symtab): Handle C_WEAKEXT storage class.
9659 (process_xcoff_symbol): Likewise.
9660 (scan_xcoff_symtab): Likewise.
9661
5c99fcf8
AH
96622017-04-26 Alan Hayward <alan.hayward@arm.com>
9663
9664 * ia64-tdep.c (examine_prologue): Use get_frame_register_unsigned.
9665 (ia64_sigtramp_frame_prev_register): Use read_memory_unsigned_integer.
9666 (ia64_access_reg): Use get_frame_register_unsigned.
9667 (ia64_access_rse_reg): Likewise.
9668 (ia64_libunwind_frame_prev_register): Likewise.
9669
b41c5a85
JW
96702017-04-26 Jiong Wang <jiong.wang@arm.com>
9671
9672 * gdbarch.sh: New gdbarch method execute_dwarf_cfa_vendor_op.
9673 * gdbarch.c: Regenerated.
9674 * gdbarch.h: Regenerated.
9675 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Made the
9676 visibility external.
9677 (execute_cfa_program): Call execute_dwarf_cfa_vendor_op for CFI
9678 between DW_CFA_lo_user and DW_CFA_high_user inclusive.
9679 (enum cfa_how_kind): Move to ...
9680 (struct dwarf2_frame_state_reg_info): Likewise.
9681 (struct dwarf2_frame_state): Likewise.
9682 * dwarf2-frame.h: ... here.
9683 (dwarf2_frame_state_alloc_regs): New declaration.
9684 * sparc-tdep.c (sparc_execute_dwarf_cfa_vendor_op): New function.
9685 (sparc32_gdbarch_init): Register execute_dwarf_cfa_vendor_op hook.
9686
c185f580
AH
96872017-04-26 Alan Hayward <alan.hayward@arm.com>
9688
9689 * xtensa-tdep.c (xtensa_pseudo_register_read): Use
9690 regcache_raw_read_unsigned.
9691 (xtensa_pseudo_register_write): Likewise.
9692
19c45594
AH
96932017-04-26 Alan Hayward <alan.hayward@arm.com>
9694
9695 * nds32-tdep.c (nds32_pseudo_register_read): Abort on errors.
9696 (nds32_pseudo_register_write): Likewise.
9697
4658f12e
YQ
96982017-04-25 Yao Qi <yao.qi@linaro.org>
9699
9700 * regcache.c (struct regcache) <readonly_p>: Change its type
9701 to bool.
9702 (regcache_xmalloc_1): Update parameter type and callers update.
9703
d581dda8
YQ
97042017-04-25 Yao Qi <yao.qi@linaro.org>
9705
9706 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9707 set_gdbarch_wchar_bit.
9708 * arm-tdep.c (arm_gdbarch_init): Likewise.
9709
debed3db
PA
97102017-04-25 Pedro Alves <palves@redhat.com>
9711
9712 * common/poison.h [!HAVE_IS_TRIVIALLY_COPYABLE] (IsRelocatable)
9713 (BothAreRelocatable, memcopy, memmove): Don't define.
9714 * common/traits.h (__has_feature, HAVE_IS_TRIVIALLY_COPYABLE): New
9715 macros.
9716
b0b92aeb
PA
97172017-04-25 Pedro Alves <palves@redhat.com>
9718
9719 * common/common-defs.h: Include "common/poison.h".
9720 * common/function-view.h: (Not, Or, Requires): Move to traits.h
9721 and adjust.
9722 * common/poison.h: New file.
9723 * common/traits.h: Include <type_traits>.
9724 (Not, Or, Requires): New, moved from common/function-view.h.
9725
16c4d54a
PA
97262017-04-25 Pedro Alves <palves@redhat.com>
9727
9728 * breakpoint.h (struct breakpoint): In-class initialize all
9729 fields. Make boolean fields "bool".
9730 * breakpoint.c (init_raw_breakpoint_without_location): Remove
9731 memset call and initializations no longer necessary.
9732
b5c36682
PA
97332017-04-25 Pedro Alves <palves@redhat.com>
9734
9735 * btrace.c (pt_btrace_insn_flags): Change parameter type to
9736 reference.
9737 (pt_btrace_insn): New function.
9738 (ftrace_add_pt): Remove memset call and use pt_btrace_insn.
9739
5625a286
PA
97402017-04-25 Pedro Alves <palves@redhat.com>
9741
9742 * ada-lang.c (ada_catchpoint_location): Now a "class". Remove
9743 "base" field and inherit from "bp_location" instead. Add
9744 non-default ctor.
9745 (allocate_location_exception): Use new non-default ctor.
9746 * breakpoint.c (get_first_locp_gte_addr): Remove memset call.
9747 (init_bp_location): Convert to ...
9748 (bp_location::bp_location): ... this new ctor, and remove memset
9749 call.
9750 (base_breakpoint_allocate_location): Use the new non-default ctor.
9751 * breakpoint.h (bp_location): Now a class. Declare default and
9752 non-default ctors. In-class initialize all members.
9753 (init_bp_location): Remove declaration.
9754
23bcc18f
PA
97552017-04-25 Pedro Alves <palves@redhat.com>
9756
9757 * common/enum-flags.h (enum_flags): Don't implement copy ctor and
9758 assignment operator.
9759
e1ba3053
YQ
97602017-04-24 Yao Qi <yao.qi@linaro.org>
9761
9762 * doublest.c (convert_doublest_to_floatformat): Call
9763 floatformat_totalsize_bytes.
9764
10f489e5
TT
97652017-04-22 Tom Tromey <tom@tromey.com>
9766
9767 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Use
9768 ui_out_emit_list.
9769 * stack.c (print_frame): Use ui_out_emit_list.
9770 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
9771 ui_out_emit_list.
9772 * mi/mi-main.c (print_one_inferior)
9773 (mi_cmd_data_list_register_names)
9774 (mi_cmd_data_list_register_values, mi_cmd_list_features)
9775 (mi_cmd_list_target_features, mi_cmd_trace_frame_collected): Use
9776 ui_out_emit_list.
9777 * mi/mi-interp.c (mi_on_normal_stop_1): Use ui_out_emit_list.
9778 (mi_output_solib_attribs): Use ui_out_emit_list,
9779 ui_out_emit_tuple.
9780 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_list.
9781 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
9782 (mi_cmd_stack_list_args, list_args_or_locals): Use
9783 ui_out_emit_list.
9784 * disasm.c (do_assembly_only): Use ui_out_emit_list.
9785 * breakpoint.c (print_solib_event, output_thread_groups): Use
9786 ui_out_emit_list.
9787
0092b74d
TT
97882017-04-22 Tom Tromey <tom@tromey.com>
9789
9790 * mi/mi-main.c (print_variable_or_computed): Use ui_out_emit_tuple.
9791 * mi/mi-cmd-var.c (varobj_update_one): Use ui_out_emit_tuple.
9792 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_out_emit_tuple.
9793
a14a62dd
TT
97942017-04-22 Tom Tromey <tom@tromey.com>
9795
9796 * tracepoint.c (tvariables_info_1)
9797 (print_one_static_tracepoint_marker): Use ui_out_emit_tuple.
9798
46b9c129
TT
97992017-04-22 Tom Tromey <tom@tromey.com>
9800
9801 * stack.c (print_frame_arg): Use ui_out_emit_tuple,
9802 annotate_arg_emitter.
9803 * breakpoint.c (print_mention_watchpoint)
9804 (print_mention_masked_watchpoint): Use ui_out_emit_tuple.
9805 * annotate.h (struct annotate_arg_emitter): New.
9806
2e783024
TT
98072017-04-22 Tom Tromey <tom@tromey.com>
9808
9809 * record-btrace.c (record_btrace_insn_history)
9810 (record_btrace_insn_history_range, record_btrace_call_history)
9811 (record_btrace_call_history_range): Use ui_out_emit_tuple.
9812 * thread.c (do_captured_list_thread_ids, print_thread_info_1): Use
9813 ui_out_emit_tuple.
9814 * stack.c (print_frame_info): Use ui_out_emit_tuple.
9815 * solib.c (info_sharedlibrary_command): Use ui_out_emit_tuple.
9816 * skip.c (skip_info): Use ui_out_emit_tuple.
9817 * remote.c (show_remote_cmd): Use ui_out_emit_tuple.
9818 * progspace.c (print_program_space): Use ui_out_emit_tuple.
9819 * probe.c (info_probes_for_ops): Use ui_out_emit_tuple.
9820 * osdata.c (info_osdata): Use ui_out_emit_tuple.
9821 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Use
9822 ui_out_emit_tuple.
9823 * mi/mi-main.c (print_one_inferior, list_available_thread_groups)
9824 (output_register, mi_cmd_data_read_memory)
9825 (mi_cmd_data_read_memory_bytes, mi_load_progress)
9826 (mi_cmd_trace_frame_collected): Use ui_out_emit_tuple.
9827 * mi/mi-cmd-var.c (mi_cmd_var_list_children, varobj_update_one):
9828 Use ui_out_emit_tuple.
9829 * mi/mi-cmd-stack.c (mi_cmd_stack_list_args): Use
9830 ui_out_emit_tuple.
9831 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
9832 (mi_cmd_info_gdb_mi_command): Use ui_out_emit_tuple.
9833 * linux-thread-db.c (info_auto_load_libthread_db): Use
9834 ui_out_emit_tuple.
9835 * inferior.c (print_inferior): Use ui_out_emit_tuple.
9836 * gdb_bfd.c (print_one_bfd): Use ui_out_emit_tuple.
9837 * disasm.c (do_mixed_source_and_assembly_deprecated)
9838 (do_mixed_source_and_assembly): Use ui_out_emit_tuple.
9839 * cp-abi.c (list_cp_abis): Use ui_out_emit_tuple.
9840 * cli/cli-setshow.c (cmd_show_list): Use ui_out_emit_tuple.
9841 * breakpoint.c (print_one_breakpoint_location)
9842 (print_one_breakpoint): Use ui_out_emit_tuple.
9843 * auto-load.c (print_script, info_auto_load_cmd): Use
9844 ui_out_emit_tuple.
9845 * ada-tasks.c (print_ada_task_info): Use ui_out_emit_tuple.
9846
9be21bb4
SM
98472017-04-21 Simon Marchi <simon.marchi@ericsson.com>
9848
9849 * thread.c (print_thread_info_1): Remove dead code.
9850
0d4c07af
JK
98512017-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9852
9853 * aarch64-tdep.c (selftests::aarch64_process_record_test): Make it #if
9854 GDB_SELF_TEST.
9855 * arm-tdep.c (selftests::arm_record_test): Likewise.
9856
4daf993d
YQ
98572017-04-21 Yao Qi <yao.qi@linaro.org>
9858
9859 * regcache.c (regcache_restore): Remove argument 2. Replace
9860 argument 3 with regcache. Get register status from
9861 src->register_status and get register contents from
9862 register_buffer (src, regnum).
9863 (regcache_cpy): Update.
9864
a6c21d4a
PA
98652017-04-19 Pedro Alves <palves@redhat.com>
9866
9867 * gdbthread.h (thread): Add missing closing parenthesis in
9868 comment.
9869
3a3fd0fd
PA
98702017-04-19 Pedro Alves <palves@redhat.com>
9871
9872 * common/refcounted-object.h: New file.
9873 * gdbthread.h: Include "common/refcounted-object.h".
9874 (thread_info): Inherit from refcounted_object and add comments.
9875 (thread_info::incref, thread_info::decref)
9876 (thread_info::m_refcount): Delete.
9877 (thread_info::deletable): Use the refcounted_object::refcount()
9878 method.
9879 * inferior.c (current_inferior_): Add comment.
9880 (set_current_inferior): Increment/decrement refcounts.
9881 (prune_inferiors, remove_inferior_command): Skip inferiors marked
9882 not-deletable instead of comparing with the current inferior.
9883 (initialize_inferiors): Increment the initial inferior's refcount.
9884 * inferior.h (struct inferior): Forward declare.
9885 Include "common/refcounted-object.h".
9886 (current_inferior, set_current_inferior): Move declaration to
9887 before struct inferior's definition, and fix comment.
9888 (inferior): Inherit from refcounted_object. Add comments.
9889 * thread.c (switch_to_thread_no_regs): Reference the thread's
9890 inferior pointer directly instead of doing a ptid lookup.
9891 (switch_to_no_thread): New function.
9892 (switch_to_thread(thread_info *)): New function, factored out
9893 from ...
9894 (switch_to_thread(ptid_t)): ... this.
9895 (restore_current_thread): Delete.
9896 (current_thread_cleanup): Remove 'inf_id' and 'was_removable'
9897 fields, and add 'inf' field.
9898 (do_restore_current_thread_cleanup): Check whether old->inf is
9899 alive instead of looking up an inferior by ptid. Use
9900 switch_to_thread and switch_to_no_thread.
9901 (restore_current_thread_cleanup_dtor): Use old->inf directly
9902 instead of lookup up an inferior by id. Decref the inferior.
9903 Don't restore 'removable'.
9904 (make_cleanup_restore_current_thread): Same the inferior pointer
9905 in old, instead of the inferior number. Incref the inferior.
9906 Don't save/clear 'removable'.
9907
9bcb1f16
PA
99082017-04-19 Pedro Alves <palves@redhat.com>
9909
9910 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9911 unittests/scoped_restore-selftests.c.
9912 (SUBDIR_UNITTESTS_OBS): Add scoped_restore-selftests.o.
9913 * common/scoped_restore.h (scoped_restore_base): Make "class".
9914 (scoped_restore_base::release): New public method.
9915 (scoped_restore_base::scoped_restore_base): New protected ctor.
9916 (scoped_restore_base::m_saved_var): New protected field.
9917 (scoped_restore_tmpl::scoped_restore_tmpl(T*)): Initialize the
9918 scoped_restore_base base class instead of m_saved_var directly.
9919 (scoped_restore_tmpl::scoped_restore_tmpl(T*, T2)): Likewise.
9920 (scoped_restore_tmpl::scoped_restore_tmpl(const
9921 scoped_restore_tmpl<T>&)): Likewise.
9922 (scoped_restore_tmpl::~scoped_restore_tmpl): Use the saved_var
9923 method.
9924 (scoped_restore_tmpl::saved_var): New method.
9925 (scoped_restore_tmpl::m_saved_var): Delete.
9926 * inferior.h (inferior::detaching): Now a bool.
9927 * infrun.c (prepare_for_detach): Use a scoped_restore instead of a
9928 cleanup.
9929 * unittests/scoped_restore-selftests.c: New file.
9930
26fcd539
PA
99312017-04-19 Pedro Alves <palves@redhat.com>
9932
9933 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS):
9934 Re-sort in alphabetic order.
9935
fdd243b0
PA
99362017-04-18 Pedro Alves <palves@redhat.com>
9937
9938 * xml-support.c (obstack_xml_printf): Delete.
9939 * xml-support.h (obstack_xml_printf): Delete.
9940
4895cde2
PA
99412017-04-18 Pedro Alves <palves@redhat.com>
9942
9943 * xml-support.c (gdb_xml_parser) <use_dtd, dtd_name, parse,
9944 vdebug, verror, body_text, start_element, end_element, name,
9945 user_data, set_is_xinclude, set_error, expat_parser>: New methods.
9946 <name, user_data, expat_parser, scopes, error, last_line, dtd_name,
9947 is_xinclude>: Make private and add m_ prefix.
9948 (gdb_xml_parser::body_text): New method, based on ...
9949 (gdb_xml_body_text): ... this. Adjust.
9950 (gdb_xml_parser::vdebug): New method, based on ...
9951 (gdb_xml_debug): ... this. Adjust.
9952 (gdb_xml_parser::verror): New method, based on ...
9953 (gdb_xml_error): ... this. Adjust.
9954 (gdb_xml_parser::start_element): New method, based on ...
9955 (gdb_xml_start_element): ... this. Adjust.
9956 (gdb_xml_start_element_wrapper): Defer to
9957 gdb_xml_parser::start_element and gdb_xml_parser::set_error.
9958 (gdb_xml_parser::end_element): New method, based on ...
9959 (gdb_xml_end_element_wrapper): ... this. Adjust.
9960 (gdb_xml_parser::~gdb_xml_parser): Adjust.
9961 (gdb_xml_parser::gdb_xml_parser): Adjust to field renames.
9962 (gdb_xml_parser::use_dtd): New method, based on ...
9963 (gdb_xml_use_dtd): ... this. Adjust.
9964 (gdb_xml_parser::parse): New method, based on ...
9965 (gdb_xml_parse): ... this. Adjust.
9966 (gdb_xml_parse_quick): Adjust to call the parser's parse method.
9967 (xinclude_start_include): Adjust to call the parser's name method.
9968 (xml_xinclude_default, xml_xinclude_start_doctype)
9969 (xml_xinclude_end_doctype): Adjust to call the parser's user_data
9970 method.
9971 (xml_process_xincludes): Adjust to call parser methods.
9972 * xml-support.h (gdb_xml_use_dtd, gdb_xml_parse): Delete
9973 declarations.
9974
bd8a901f
PA
99752017-04-18 Pedro Alves <palves@redhat.com>
9976
9977 * tracefile-tfile.c (tfile_write_tdesc): Adjust to use
9978 gdb::optional<std::string>.
9979 * xml-support.c: Include <string>.
9980 (scope_level::scope_level(scope_level &&))
9981 (scope_level::~scope_level): Delete.
9982 (scope_level::body): Now a std::string.
9983 (gdb_xml_body_text, gdb_xml_end_element): Adjust.
9984 (xinclude_parsing_data::xinclude_parsing_data): Add 'output'
9985 parameter.
9986 (xinclude_parsing_data::~xinclude_parsing_data): Delete.
9987 (xinclude_parsing_data::output): Now a std::string reference.
9988 (xinclude_start_include): Adjust.
9989 (xml_xinclude_default): Adjust.
9990 (xml_process_xincludes): Add 'output' parameter, and return bool.
9991 * xml-support.h (xml_process_xincludes): Add 'output' parameter,
9992 and return bool.
9993 * xml-tdesc.c: Include <unordered_map> and <string>.
9994 (tdesc_xml_cache): Delete.
9995 (tdesc_xml_cache_s): Delete.
9996 (xml_cache): Now an std::unordered_map.
9997 (tdesc_parse_xml): Adjust to use std::string and unordered_map.
9998 (target_fetch_description_xml): Change return type to
9999 gdb::optional<std::string>, and adjust.
10000 * xml-tdesc.h: Include "common/gdb_optional.h" and <string>.
10001 (target_fetch_description_xml): Change return type to
10002 gdb::optional<std::string>.
10003
d35d1958
PA
100042017-04-18 Pedro Alves <palves@redhat.com>
10005
10006 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10007 unittests/optional-selftests.c.
10008 (SUBDIR_UNITTESTS_OBS): Add optional-selftests.o.
10009 * unittests/optional-selftests.c: New file.
10010 * unittests/optional/assignment/1.cc: New file.
10011 * unittests/optional/assignment/2.cc: New file.
10012 * unittests/optional/assignment/3.cc: New file.
10013 * unittests/optional/assignment/4.cc: New file.
10014 * unittests/optional/assignment/5.cc: New file.
10015 * unittests/optional/assignment/6.cc: New file.
10016 * unittests/optional/assignment/7.cc: New file.
10017 * unittests/optional/cons/copy.cc: New file.
10018 * unittests/optional/cons/default.cc: New file.
10019 * unittests/optional/cons/move.cc: New file.
10020 * unittests/optional/cons/value.cc: New file.
10021 * unittests/optional/in_place.cc: New file.
10022 * unittests/optional/observers/1.cc: New file.
10023 * unittests/optional/observers/2.cc: New file.
10024
22796e97
PA
100252017-04-18 Pedro Alves <palves@redhat.com>
10026
10027 * common/gdb_optional.h: Include common/traits.h.
10028 (in_place_t): New type.
10029 (in_place): New constexpr variable.
10030 (optional::optional): Remove member initialization of
10031 m_instantiated.
10032 (optional::optional(in_place_t...)): New constructor.
10033 (optional::~optional): Use reset.
10034 (optional::optional(const optional&)): New.
10035 (optional::optional(const optional&&)): New.
10036 (optional::optional(T &)): New.
10037 (optional::optional(T &&)): New.
10038 (operator::operator=(const optional &)): New.
10039 (operator::operator=(optional &&)): New.
10040 (operator::operator= (const T &))
10041 (operator::operator= (T &&))
10042 (operator::emplace (Args &&... args)): Return a T&. Use reset.
10043 (operator::reset): New.
10044 (operator::m_instantiated):: Add in-class initializer.
10045 * common/traits.h: Include <type_traits>.
10046 (struct And): New types.
10047
a7fc9b61
PA
100482017-04-18 Pedro Alves <palves@redhat.com>
10049
10050 * xml-support.c: Include <vector>.
10051 (scope_level::scope_level(const gdb_xml_element *))
10052 (scope_level::scope_level(scope_level&&)): New.
10053 (scope_level::~scope_level): New.
10054 (scope_level_s): Delete.
10055 (gdb_xml_parser::scopes): Now a std::vector.
10056 (gdb_xml_body_text, gdb_xml_start_element, gdb_xml_end_element):
10057 Use std::vector.
10058 (gdb_xml_parser::~gdb_xml_parser): Remove now unnecessary
10059 scope cleanup code.
10060 (gdb_xml_parser::gdb_xml_parser): Remove explicit initialization
10061 of the scopes member. Use std::vector::emplace_back.
10062
010151c9
PA
100632017-04-18 Pedro Alves <palves@redhat.com>
10064
10065 * xml-support.c (gdb_xml_parser): Add ctor/dtor. Make is_xinclude
10066 a bool.
10067 (gdb_xml_end_element): Change type of first parameter.
10068 (gdb_xml_cleanup): Rename to ...
10069 (gdb_xml_parser::~gdb_xml_parser): ... this.
10070 (gdb_xml_create_parser_and_cleanup): Delete with ...
10071 (gdb_xml_parser::gdb_xml_parser): ... creation parts factored out
10072 to this new ctor.
10073 (gdb_xml_parse_quick): Create a local gdb_xml_parser instead of
10074 using gdb_xml_create_parser_and_cleanup.
10075 (xinclude_parsing_data): Add ctor/dtor.
10076 (xml_xinclude_cleanup): Delete.
10077 (xml_process_xincludes): Create a local xinclude_parsing_data
10078 instead of heap-allocating one. Create a local gdb_xml_parser
10079 instead of heap-allocating one with
10080 gdb_xml_create_parser_and_cleanup.
10081
d56060f0
JB
100822017-04-18 John Baldwin <jhb@FreeBSD.org>
10083
10084 PR threads/20743
10085 * fbsd-nat.c (resume_one_thread_cb): Remove.
10086 (resume_all_threads_cb): Remove.
10087 (fbsd_resume): Use ALL_NON_EXITED_THREADS instead of
10088 iterate_over_threads.
10089
305d16a9
JB
100902017-04-17 Joel Brobecker <brobecker@adacore.com>
10091
10092 * NEWS: Create a new section for the next release branch.
10093 Rename the section of the current branch, now that it has
10094 been cut.
10095
8bb57231
JB
100962017-04-17 Joel Brobecker <brobecker@adacore.com>
10097
10098 GDB 8.0 branch created (725bf5cf125783c2a7ca4ab63d3768e220bab2db):
10099 * version.in: Bump version to 8.0.50.DATE-git.
10100
096c92dd
SDJ
101012017-04-13 Sergio Durigan Junior <sergiodj@redhat.com>
10102
10103 PR gdb/21385
10104 * windows-nat.c (windows_create_inferior): Declare 'allargs'
10105 independently of the host, and fix build breakage on Cygwin.
10106
0550c955
PA
101072017-04-13 Pedro Alves <palves@redhat.com>
10108
10109 * inferior.c (free_inferior): Convert to ...
10110 (inferior::~inferior): ... this dtor.
10111 (inferior::inferior): New ctor, factored out from ...
10112 (add_inferior_silent): ... here. Allocate the inferior with a new
10113 expression.
10114 (delete_inferior): Call delete instead of free_inferior.
10115 * inferior.h (gdb_environ, continuation): Forward declare.
10116 (inferior): Now a class. Add in-class initialization to all
10117 members. Make boolean fields bool, except 'detaching'.
10118 (inferior::inferior): New explicit ctor.
10119 (inferior::~inferior): New.
10120
e3d60dfc
PA
101212017-04-13 Pedro Alves <palves@redhat.com>
10122
10123 * inferior.c (init_inferior_list): Delete.
10124 * inferior.h (init_inferior_list): Delete.
10125
5fd69d0a
PA
101262017-04-13 Pedro Alves <palves@redhat.com>
10127
10128 PR threads/13217
10129 * gdb.threads/threadapply.exp (thr_apply_detach): New procedure.
10130 (top level): Call it twice, with different thread sets.
10131
c6609450
PA
101322017-04-13 Pedro Alves <palves@redhat.com>
10133
10134 * thread.c: Include <algorithm>.
10135 (thread_array_cleanup): Delete.
10136 (scoped_inc_dec_ref): New class.
10137 (live_threads_count): New function.
10138 (set_thread_refcount): Delete.
10139 (tp_array_compar_ascending): Now a bool.
10140 (tp_array_compar): Convert to a std::sort comparison function.
10141 (thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
10142 and live_threads_count.
10143
2a00d7ce
PA
101442017-04-13 Pedro Alves <palves@redhat.com>
10145
10146 * infrun.c (follow_fork_inferior): Also switch the current
10147 inferior.
10148
441d7c93
PA
101492017-04-13 Pedro Alves <palves@redhat.com>
10150
10151 * breakpoint.c (watch_command_1): Save watchpoint-frame info
10152 before calling create_internal_breakpoint.
10153
808480f6
PA
101542017-04-13 Pedro Alves <palves@redhat.com>
10155
10156 * fork-child.c (execv_argv): New class.
10157 (breakup_args): Refactored as ...
10158 (execv_argv::init_for_no_shell): .. this method of execv_argv.
10159 Copy arguments to storage and replace separators with NULL
10160 terminators in place.
10161 (escape_bang_in_quoted_argument): Adjust to return bool.
10162 (execv_argv::execv_argv): New ctor.
10163 (execv_argv::init_for_shell): New method, factored out from
10164 fork_inferior. Don't strdup strings into the vector.
10165 (fork_inferior): Eliminate "shell" local and use execv_argv. Use
10166 Remove free_vector_argv call.
10167
ad3d022a
YQ
101682017-04-13 Yao Qi <yao.qi@linaro.org>
10169
10170 * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of
10171 tdep->rx_psw_type.
10172
e6ddc3bf
YQ
101732017-04-13 Yao Qi <yao.qi@linaro.org>
10174
10175 * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW.
10176 * rx-tdep.c (rx_gdbarch_init): Likewise.
10177
bfb8cf90
PA
101782017-04-13 Pedro Alves <palves@redhat.com>
10179
10180 * breakpoint.h (struct breakpoint): Reindent.
10181
f5336ca5
PA
101822017-04-13 Pedro Alves <palves@redhat.com>
10183
10184 * breakpoint.c (bp_location): Rename to ...
10185 (bp_locations): ... this. All references updated.
10186 (bp_location_count): Rename to ...
10187 (bp_locations_count): ... this. All references updated.
10188 (bp_location_placed_address_before_address_max): Rename to ...
10189 (bp_locations_placed_address_before_address_max): ... this. All
10190 references updated.
10191 (bp_location_shadow_len_after_address_max): Rename to ...
10192 (bp_locations_shadow_len_after_address_max): ... this. All
10193 references updated.
10194 (bp_location_compare_addrs): Rename to ...
10195 (bp_locations_compare_addrs): ... this. All references updated.
10196 (bp_location_compare):Rename to ...
10197 (bp_locations_compare): ... this. All references updated.
10198 (bp_location_target_extensions_update): Rename to ...
10199 (bp_locations_target_extensions_update): ... this. All references
10200 updated.
10201
be628ab8
SDJ
102022017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10203
10204 * Makefile.in (HFILES_NO_SRCDIR): Add "common/gdb_termios.h".
10205 * common/common.m4: Check headers 'termios.h', 'termio.h' and
10206 'sgtty.h'.
10207 * common/gdb_termios.h: New file, with parts of "terminal.h".
10208 * inflow.c: Include "gdb_termios.h".
10209 * ser-unix.c: Include "gdb_termios.h".
10210 * terminal.h: Move terminal-related defines to
10211 "common/gdb_termios.h".
10212
8e9e35b1
TT
102132017-04-12 Tom Tromey <tom@tromey.com>
10214
10215 * probe.c (parse_probes): Update.
10216 * location.h (delete_event_location): Don't declare.
10217 (event_location_deleter::operator()): Update.
10218 * location.c (event_location_deleter::operator()): Rename from
10219 delete_event_location.
10220 * linespec.h (linespec_result) <location>: Change type to
10221 event_location_up.
10222 * linespec.c (canonicalize_linespec, event_location_to_sals)
10223 (decode_objc): Update.
10224 (linespec_result): Don't call delete_event_location.
10225 * breakpoint.c (create_breakpoints_sal)
10226 (bkpt_probe_create_sals_from_location)
10227 (strace_marker_create_sals_from_location): Update.
10228
16e802b9
TT
102292017-04-12 Tom Tromey <tom@tromey.com>
10230
10231 * linespec.h (struct linespec_result): Add constructor and
10232 destructor.
10233 (init_linespec_result, destroy_linespec_result)
10234 (make_cleanup_destroy_linespec_result): Don't declare.
10235 * linespec.c (init_linespec_result): Remove.
10236 (linespec_result::~linespec_result): Rename from
10237 destroy_linespec_result. Update.
10238 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
10239 Remove.
10240 * breakpoint.c (create_breakpoint, break_range_command)
10241 (decode_location_default): Update.
10242 * ax-gdb.c (agent_command_1): Update.
10243
d28cd78a
TT
102442017-04-12 Tom Tromey <tom@tromey.com>
10245
10246 * remote.c (remote_download_tracepoint): Update.
10247 * python/py-breakpoint.c (bppy_get_location): Update.
10248 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob)
10249 (gdbscm_breakpoint_location): Update.
10250 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Update.
10251 * breakpoint.h (struct breakpoint) <location, location_range_end>:
10252 Change type to event_location_up.
10253 * breakpoint.c (create_overlay_event_breakpoint)
10254 (create_longjmp_master_breakpoint)
10255 (create_std_terminate_master_breakpoint)
10256 (create_exception_master_breakpoint)
10257 (breakpoint_event_location_empty_p, print_breakpoint_location)
10258 (print_one_breakpoint_location, create_thread_event_breakpoint)
10259 (init_breakpoint_sal, create_breakpoint)
10260 (print_recreate_ranged_breakpoint, break_range_command)
10261 (init_ada_exception_breakpoint, say_where): Update.
10262 (base_breakpoint_dtor): Don't call delete_event_location.
10263 (bkpt_print_recreate, tracepoint_print_recreate)
10264 (dprintf_print_recreate, update_static_tracepoint)
10265 (breakpoint_re_set_default): Update.
10266
711799d5
TT
102672017-04-12 Tom Tromey <tom@tromey.com>
10268
10269 * compile/compile-loc2c.c (compute_stack_depth_worker): Change
10270 type of "to_do". Update.
10271 (compute_stack_depth): Use std::vector.
10272
52d214d3
TT
102732017-04-12 Tom Tromey <tom@tromey.com>
10274
10275 * printcmd.c (find_instruction_backward): Use std::vector.
10276
4c404b8b
TT
102772017-04-12 Tom Tromey <tom@tromey.com>
10278
10279 * symfile.c (objfilep): Remove typedef.
10280 (reread_symbols): Use a std::vector.
10281
156d9eab
TT
102822017-04-12 Tom Tromey <tom@tromey.com>
10283
10284 * mi/mi-main.c (exec_direction_forward): Remove.
10285 (exec_reverse_continue, mi_execute_command): Use scoped_restore.
10286 * guile/scm-ports.c (ioscm_with_output_to_port_worker): Use
10287 scoped_restore.
10288 * guile/guile.c (guile_repl_command, guile_command)
10289 (gdbscm_execute_gdb_command): Use scoped_restore.
10290 * go-exp.y (go_parse): Use scoped_restore.
10291 * d-exp.y (d_parse): Use scoped_restore.
10292 * cli/cli-decode.c (cmd_func): Use scoped_restore.
10293 * c-exp.y (c_parse): Use scoped_restore.
10294
4d89769a
TT
102952017-04-12 Tom Tromey <tom@tromey.com>
10296
10297 * mi/mi-parse.h (struct mi_parse): Add constructor, destructor.
10298 (mi_parse): Update return type.
10299 (mi_parse_free): Remove.
10300 * mi/mi-parse.c (mi_parse::mi_parse): New constructor.
10301 (mi_parse::~mi_parse): Rename from mi_parse_free.
10302 (mi_parse_cleanup): Remove.
10303 (mi_parse): Return a unique_ptr. Use new.
10304 * mi/mi-main.c (mi_execute_command): Update.
10305
4b217cc7
TT
103062017-04-12 Tom Tromey <tom@tromey.com>
10307
10308 * location.c (explicit_location_lex_one): Return a
10309 unique_xmalloc_ptr.
10310 (string_to_explicit_location): Update. Remove cleanups.
10311
59d3651b
TT
103122017-04-12 Tom Tromey <tom@tromey.com>
10313
10314 * gnu-v3-abi.c (value_and_voffset_p): Remove typedef.
10315 (compare_value_and_voffset): Change type. Update.
10316 (compute_vtable_size): Change type of "offset_vec".
10317 (gnuv3_print_vtable): Use std::vector. Remove cleanups.
10318 (gnuv3_get_typeid): Remove extraneous declaration.
10319
b24b0d6c
TT
103202017-04-12 Tom Tromey <tom@tromey.com>
10321
10322 * charset.h (wchar_iterator): Fix comment.
10323
80a3b8c5
TT
103242017-04-12 Tom Tromey <tom@tromey.com>
10325
10326 * charset.c (iconv_wrapper): New class.
10327 (cleanup_iconv): Remove.
10328 (convert_between_encodings): Use it.
10329
c83dd867
TT
103302017-04-12 Tom Tromey <tom@tromey.com>
10331
10332 * symfile.h (increment_reading_symtab): Update type.
10333 * symfile.c (decrement_reading_symtab): Remove.
10334 (increment_reading_symtab): Return a scoped_restore_tmpl<int>.
10335 * psymtab.c (psymtab_to_symtab): Update.
10336 * dwarf2read.c (dw2_instantiate_symtab): Update.
10337
0e8621a0
TT
103382017-04-12 Tom Tromey <tom@tromey.com>
10339
10340 * jit.c (struct jit_reader): Declare separately. Add constructor
10341 and destructor. Change type of "handle".
10342 (loaded_jit_reader): Define separately.
10343 (jit_reader_load): Update. New "new".
10344 (jit_reader_unload_command): Use "delete".
10345 * gdb-dlfcn.h (struct dlclose_deleter): New.
10346 (gdb_dlhandle_up): New typedef.
10347 (gdb_dlopen, gdb_dlsym): Update types.
10348 (gdb_dlclose): Remove.
10349 * gdb-dlfcn.c (gdb_dlopen): Return a gdb_dlhandle_up.
10350 (gdb_dlsym): Change type of "handle".
10351 (make_cleanup_dlclose): Remove.
10352 (dlclose_deleter::operator()): Rename from gdb_dlclose.
10353 * compile/compile-c-support.c (load_libcc): Update.
10354
67d89901
TT
103552017-04-12 Tom Tromey <tom@tromey.com>
10356
10357 * symtab.h (find_pcs_for_symtab_line): Change return type.
10358 * symtab.c (find_pcs_for_symtab_line): Change return type.
10359 * python/py-linetable.c (build_line_table_tuple_from_pcs): Change
10360 type of "vec". Update.
10361 (ltpy_get_pcs_for_line): Update.
10362 * linespec.c (decode_digits_ordinary): Update.
10363
93921405
TT
103642017-04-12 Tom Tromey <tom@tromey.com>
10365
10366 * tracepoint.c (actions_command): Update.
10367 * python/python.c (python_command, python_interactive_command):
10368 Update.
10369 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
10370 * guile/guile.c (guile_command): Update.
10371 * defs.h (read_command_lines, read_command_lines_1): Return
10372 command_line_up.
10373 (command_lines_deleter): New struct.
10374 (command_line_up): New typedef.
10375 * compile/compile.c (compile_code_command)
10376 (compile_print_command): Update.
10377 * cli/cli-script.h (get_command_line, copy_command_lines): Return
10378 command_line_up.
10379 (make_cleanup_free_command_lines): Remove.
10380 * cli/cli-script.c (get_command_line, read_command_lines_1)
10381 (copy_command_lines): Return command_line_up.
10382 (while_command, if_command, read_command_lines, define_command)
10383 (document_command): Update.
10384 (do_free_command_lines_cleanup, make_cleanup_free_command_lines):
10385 Remove.
10386 * breakpoint.h (breakpoint_set_commands): Change type of
10387 "commands".
10388 * breakpoint.c (breakpoint_set_commands): Change type of
10389 "commands". Update.
10390 (do_map_commands_command, update_dprintf_command_list)
10391 (create_tracepoint_from_upload): Update.
10392
ffc2605c
TT
103932017-04-12 Tom Tromey <tom@tromey.com>
10394
10395 * tracepoint.c (scope_info): Update.
10396 * spu-tdep.c (spu_catch_start): Update.
10397 * python/python.c (gdbpy_decode_line): Update.
10398 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
10399 * python/py-breakpoint.c (bppy_init): Update.
10400 * probe.c (parse_probes): Update.
10401 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
10402 * location.h (event_location_deleter): New struct.
10403 (event_location_up): New typedef.
10404 (new_linespec_location, new_address_location, new_probe_location)
10405 (new_explicit_location, copy_event_location)
10406 (string_to_event_location, string_to_event_location_basic)
10407 (string_to_explicit_location): Update return type.
10408 (make_cleanup_delete_event_location): Remove.
10409 * location.c (new_linespec_location, new_address_location)
10410 (new_probe_location, new_explicit_location, copy_event_location):
10411 Return event_location_up.
10412 (delete_event_location_cleanup)
10413 (make_cleanup_delete_event_location): Remove.
10414 (string_to_explicit_location, string_to_event_location_basic)
10415 (string_to_event_location): Return event_location_up.
10416 * linespec.c (canonicalize_linespec, event_location_to_sals)
10417 (decode_line_with_current_source)
10418 (decode_line_with_last_displayed, decode_objc): Update.
10419 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
10420 * completer.c (location_completer): Update.
10421 * cli/cli-cmds.c (edit_command, list_command): Update.
10422 * breakpoint.c (create_overlay_event_breakpoint)
10423 (create_longjmp_master_breakpoint)
10424 (create_std_terminate_master_breakpoint)
10425 (create_exception_master_breakpoint)
10426 (create_thread_event_breakpoint): Update.
10427 (init_breakpoint_sal): Update. Remove some dead code.
10428 (create_breakpoint_sal): Change type of "location". Update.
10429 (create_breakpoints_sal, create_breakpoint, break_command_1)
10430 (dprintf_command, break_range_command, until_break_command)
10431 (init_ada_exception_breakpoint)
10432 (strace_marker_create_sals_from_location)
10433 (update_static_tracepoint, trace_command, ftrace_command)
10434 (strace_command, create_tracepoint_from_upload): Update.
10435 * break-catch-throw.c (re_set_exception_catchpoint): Update.
10436 * ax-gdb.c (agent_command_1): Update.
10437
8f10c932
PA
104382017-04-12 Pedro Alves <palves@redhat.com>
10439
10440 * Makefile.in (ALL_TARGET_OBS): Add i386-go32-tdep.o.
10441 * configure.tgt: Handle i[34567]86-*-go32* and
10442 i[34567]86-*-msdosdjgpp*.
10443 * i386-tdep.c (i386_svr4_reg_to_regnum):
10444 Make extern.
10445 (i386_go32_init_abi, i386_coff_osabi_sniffer): Moved to
10446 i386-go32-tdep.c.
10447 (_initialize_i386_tdep): DJGPP bits moved to i386-go32-tdep.c.
10448 * i386-go32-tdep.c: New file.
10449 * i386-tdep.h (tdesc_i386_mmx, i386_svr4_reg_to_regnum): New
10450 declarations.
10451
0a31ccfb
SM
104522017-04-12 Simon Marchi <simon.marchi@ericsson.com>
10453
10454 * aix-thread.c (pd_status2str): Change return type to const char *.
10455
e9bb3fbb
PA
104562017-04-12 Pedro Alves <palves@redhat.com>
10457
10458 * i386-tdep.c (i386_elf_init_abi, i386_go32_init_abi): Remove
10459 calls to set_gdbarch_gnu_triplet_regexp.
10460
53375380
PA
104612017-04-12 Pedro Alves <palves@redhat.com>
10462
10463 PR gdb/21323
10464 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_wchar_t>:
10465 New enum value.
10466 (cplus_language_arch_info): Register cplus_primitive_type_wchar_t.
10467 * gdbtypes.h (struct builtin_type) <builtin_wchar>: New field.
10468 * gdbtypes.c (gdbtypes_post_init): Create the "wchar_t" type.
10469 * gdbarch.sh (wchar_bit, wchar_signed): New per-arch values.
10470 * gdbarch.h, gdbarch.c: Regenerate.
10471 * aarch64-tdep.c (aarch64_gdbarch_init): Override
10472 gdbarch_wchar_bit and gdbarch_wchar_signed.
10473 * alpha-tdep.c (alpha_gdbarch_init): Likewise.
10474 * arm-tdep.c (arm_gdbarch_init): Likewise.
10475 * avr-tdep.c (avr_gdbarch_init): Likewise.
10476 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
10477 * i386-nto-tdep.c (i386nto_init_abi): Likewise.
10478 * i386-tdep.c (i386_go32_init_abi): Likewise.
10479 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10480 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10481 * nds32-tdep.c (nds32_gdbarch_init): Likewise.
10482 * rs6000-aix-tdep.c (rs6000_aix_init_osabi): Likewise.
10483 * sh-tdep.c (sh_gdbarch_init): Likewise.
10484 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10485 * sparc64-tdep.c (sparc64_init_abi): Likewise.
10486 * windows-tdep.c (windows_init_abi): Likewise.
10487 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10488
53e710ac
PA
104892017-04-12 Pedro Alves <palves@redhat.com>
10490
10491 PR c++/21323
10492 * c-lang.c (cplus_primitive_types) <cplus_primitive_type_char16_t,
10493 cplus_primitive_type_char32_t>: New enum values.
10494 (cplus_language_arch_info): Register cplus_primitive_type_char16_t
10495 and cplus_primitive_type_char32_t.
10496 * dwarf2read.c (read_base_type) <DW_ATE_UTF>: If bit size is 16 or
10497 32, use the archtecture's built-in type for char16_t and char32_t,
10498 respectively. Otherwise, fallback to init_integer_type as before,
10499 but make the type unsigned, and issue a complaint.
10500 * gdbtypes.c (gdbtypes_post_init): Make char16_t and char32_t unsigned.
10501
ab0538b8
AH
105022017-04-12 Alan Hayward <alan.hayward@arm.com>
10503
5e0e0422 10504 * m32r-tdep.c (M32R_ARG_REGISTER_SIZE): Added.
ab0538b8
AH
10505 (m32r_push_dummy_call): Use M32R_ARG_REGISTER_SIZE.
10506
5430098f
SDJ
105072017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10508
10509 * windows-nat.c (windows_create_inferior): Declare 'toexec' as
10510 'const char *'.
10511
7c5ded6a
SDJ
105122017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
10513
10514 * common/common-utils.c (free_vector_argv): New function.
10515 * common/common-utils.h: Include <vector>.
10516 (free_vector_argv): New prototype.
10517 * darwin-nat.c (darwin_create_inferior): Rewrite function
10518 prototype in order to constify "exec_file" and accept a
10519 "std::string" for "allargs".
10520 * fork-child.c: Include <vector>.
10521 (breakup_args): Rewrite function, using C++.
10522 (fork_inferior): Rewrite function header, constify "exec_file_arg"
10523 and accept "std::string" for "allargs". Update the code to
10524 calculate "argv" based on "allargs". Update calls to "exec_fun"
10525 and "execvp".
10526 * gnu-nat.c (gnu_create_inferior): Rewrite function prototype in
10527 order to constify "exec_file" and accept a "std::string" for
10528 "allargs".
10529 * go32-nat.c (go32_create_inferior): Likewise.
10530 * inf-ptrace.c (inf_ptrace_create_inferior): Likewise.
10531 * infcmd.c (run_command_1): Constify "exec_file". Use
10532 "std::string" for inferior arguments.
10533 * inferior.h (fork_inferior): Update prototype.
10534 * linux-nat.c (linux_nat_create_inferior): Rewrite function
10535 prototype in order to constify "exec_file" and accept a
10536 "std::string" for "allargs".
10537 * nto-procfs.c (procfs_create_inferior): Likewise.
10538 * procfs.c (procfs_create_inferior): Likewise.
10539 * remote-sim.c (gdbsim_create_inferior): Likewise.
10540 * remote.c (extended_remote_run): Update code to accept
10541 "std::string" as argument.
10542 (extended_remote_create_inferior): Rewrite function prototype in
10543 order to constify "exec_file" and accept a "std::string" for
10544 "allargs".
10545 * rs6000-nat.c (super_create_inferior): Likewise.
10546 (rs6000_create_inferior): Likewise.
10547 * target.h (struct target_ops) <to_create_inferior>: Likewise.
10548 * windows-nat.c (windows_create_inferior): Likewise.
10549
ae0eee42
PA
105502017-04-11 Pedro Alves <palves@redhat.com>
10551
10552 * thread.c: Fix whitespace throughout.
10553
a6acac06
PR
105542017-04-11 Philipp Rudo <prudo@linux.vnet.ibm.com>
10555
10556 * linux-nat.c (linux_nat_detach): Remove delete_lwp call.
10557
64403bd1
AH
105582017-04-11 Alan Hayward <alan.hayward@arm.com>
10559
10560 * arm-tdep.c (arm_store_return_value): Use FP_REGISTER_SIZE
10561
a5bef50f
SDJ
105622017-04-10 Sergio Durigan Junior <sergiodj@redhat.com>
10563
10564 PR gdb/21364
10565 * osdata.c (info_osdata): Check if 'type' is an empty string
10566 instead of NULL.
10567
9295a5a9
PA
105682017-04-10 Pedro Alves <palves@redhat.com>
10569
10570 * thread.c (add_thread_silent, delete_thread_1, find_thread_ptid)
10571 (ptid_to_global_thread_id, in_thread_list)
10572 (do_captured_list_thread_ids, set_resumed, set_running)
10573 (set_executing, set_stop_requested, finish_thread_state)
10574 (validate_registers_access, can_access_registers_ptid)
10575 (print_thread_info_1, switch_to_thread)
10576 (do_restore_current_thread_cleanup)
10577 (make_cleanup_restore_current_thread, thread_command)
10578 (thread_name_command): Use operator== instead of ptid_equal.
10579
996812e3
PA
105802017-04-10 Pedro Alves <palves@redhat.com>
10581
10582 * thread.c (struct current_thread_cleanup) <next>: Delete field.
10583 (current_thread_cleanup_chain): Delete.
10584 (restore_current_thread_cleanup_dtor)
10585 (make_cleanup_restore_current_thread): Remove references to
10586 current_thread_cleanup_chain.
10587
845b344f
AH
105882017-04-10 Alan Hayward <alan.hayward@arm.com>
10589
10590 * msp430-tdep.c (msp430_pseudo_register_read): Never return
10591 REG_UNKNOWN.
10592
803bdfe4
YQ
105932017-04-10 Yao Qi <yao.qi@linaro.org>
10594
10595 PR gdb/19942
10596 * gdbthread.h (thread_info::deletable): New method.
10597 (thread_info::incref): New method.
10598 (thread_info::decref): New method.
10599 (thread_info::refcount): Move it to private.
10600 * infrun.c (save_stop_context): Call inc_refcount.
10601 (release_stop_context_cleanup): Likewise.
10602 * thread.c (set_thread_exited): New function.
10603 (init_thread_list): Delete "tp" only it is deletable, otherwise
10604 call set_thread_exited.
10605 (delete_thread_1): Call set_thread_exited.
10606 (current_thread_cleanup) <inferior_pid>: Remove.
10607 <thread>: New field.
10608 (restore_current_thread_ptid_changed): Removed.
10609 (do_restore_current_thread_cleanup): Adjust.
10610 (restore_current_thread_cleanup_dtor): Don't call
10611 find_thread_ptid.
10612 (set_thread_refcount): Use dec_refcount.
10613 (make_cleanup_restore_current_thread): Adjust.
10614 (thread_apply_all_command): Call inc_refcount.
10615 (_initialize_thread): Don't call
10616 observer_attach_thread_ptid_changed.
10617
8c25b497
YQ
106182017-04-10 Yao Qi <yao.qi@linaro.org>
10619
10620 * thread.c (delete_thread_1): Hoist code on marking thread as
10621 exited.
10622
8473b447
SM
106232017-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10624
10625 * windows-nat.c (windows_detach): Initialize ptid with
10626 minus_one_ptid.
10627
6670ec13
SM
106282017-04-07 Simon Marchi <simon.marchi@ericsson.com>
10629
10630 * unittests/ptid-selftests.c: Fix erroneous assert messages.
10631
ba2f91bb
AH
106322017-04-07 Alan Hayward <alan.hayward@arm.com>
10633
10634 * bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
10635 (bfin_pseudo_register_read): Use BFIN_MAX_REGISTER_SIZE.
10636 (bfin_pseudo_register_write): Likewise
10637
436252de
SM
106382017-04-06 Simon Marchi <simon.marchi@ericsson.com>
10639
10640 * common/ptid.h (struct ptid): Change to...
10641 (class ptid_t): ... this.
10642 <ptid_t>: New constructors.
10643 <pid, lwp_p, lwp, tid_p, tid, is_pid, operator==, operator!=,
10644 matches>: New methods.
10645 <make_null, make_minus_one>: New static methods.
10646 <pid>: Rename to...
10647 <m_pid>: ...this.
10648 <lwp>: Rename to...
10649 <m_lwp>: ...this.
10650 <tid>: Rename to...
10651 <m_tid>: ...this.
10652 (ptid_build, ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
10653 ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match): Take ptid arguments
10654 as references, move comment to class ptid_t.
10655 * common/ptid.c (null_ptid, minus_one_ptid): Initialize with
10656 ptid_t static methods.
10657 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_tid,
10658 ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p, ptid_match):
10659 Take ptid arguments as references, implement using ptid_t methods.
10660 * unittests/ptid-selftests.c: New file.
10661 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10662 unittests/ptid-selftests.c.
10663 (SUBDIR_UNITTESTS_OBS): Add unittests/ptid-selftests.o.
10664
0dedf377
TP
106652017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
10666
10667 * python/python.c (python_run_simple_file): Cast mode literal to
10668 non-const char pointer as expected by PyFile_FromString.
10669
4e9868d4
SM
106702017-04-05 Simon Marchi <simon.marchi@ericsson.com>
10671
10672 * common/ptid.c (ptid_lwp_p, ptid_tid_p): Remove comparison with
10673 minus_one_ptid and null_ptid.
10674
9bf2a700
PA
106752017-04-05 Pedro Alves <palves@redhat.com>
10676
10677 * warning.m4 (build_warnings): Remove -Wno-write-strings.
10678 * configure: Regenerate.
10679
a121b7c1
PA
106802017-04-05 Pedro Alves <palves@redhat.com>
10681
10682 * ada-exp.y (yyerror): Constify.
10683 * ada-lang.c (bound_name, get_selections)
10684 (ada_variant_discrim_type)
10685 (ada_variant_discrim_name, ada_value_struct_elt)
10686 (ada_lookup_struct_elt_type, is_unchecked_variant)
10687 (ada_which_variant_applies, standard_exc, ada_get_next_arg)
10688 (catch_ada_exception_command_split)
10689 (catch_ada_assert_command_split, catch_assert_command)
10690 (ada_op_name): Constify.
10691 * ada-lang.h (ada_yyerror, get_selections)
10692 (ada_variant_discrim_name, ada_value_struct_elt): Constify.
10693 * arc-tdep.c (arc_print_frame_cache): Constify.
10694 * arm-tdep.c (arm_skip_stub): Constify.
10695 * ax-gdb.c (gen_binop, gen_struct_ref_recursive, gen_struct_ref)
10696 (gen_aggregate_elt_ref): Constify.
10697 * bcache.c (print_bcache_statistics): Constify.
10698 * bcache.h (print_bcache_statistics): Constify.
10699 * break-catch-throw.c (catch_exception_command_1):
10700 * breakpoint.c (struct ep_type_description::description):
10701 Constify.
10702 (add_solib_catchpoint): Constify.
10703 (catch_fork_command_1): Add cast.
10704 (add_catch_command): Constify.
10705 * breakpoint.h (add_catch_command, add_solib_catchpoint):
10706 Constify.
10707 * bsd-uthread.c (bsd_uthread_state): Constify.
10708 * buildsym.c (patch_subfile_names): Constify.
10709 * buildsym.h (next_symbol_text_func, patch_subfile_names):
10710 Constify.
10711 * c-exp.y (yyerror): Constify.
10712 (token::oper): Constify.
10713 * c-lang.h (c_yyerror, cp_print_class_member): Constify.
10714 * c-varobj.c (cplus_describe_child): Constify.
10715 * charset.c (find_charset_names): Add cast.
10716 (find_charset_names): Constify array and add const_cast.
10717 * cli/cli-cmds.c (complete_command, cd_command): Constify.
10718 (edit_command): Constify.
10719 * cli/cli-decode.c (lookup_cmd): Constify.
10720 * cli/cli-dump.c (dump_memory_command, dump_value_command):
10721 Constify.
10722 (struct dump_context): Constify.
10723 (add_dump_command, restore_command): Constify.
10724 * cli/cli-script.c (get_command_line): Constify.
10725 * cli/cli-script.h (get_command_line): Constify.
10726 * cli/cli-utils.c (check_for_argument): Constify.
10727 * cli/cli-utils.h (check_for_argument): Constify.
10728 * coff-pe-read.c (struct read_pe_section_data): Constify.
10729 * command.h (lookup_cmd): Constify.
10730 * common/print-utils.c (decimal2str): Constify.
10731 * completer.c (gdb_print_filename): Constify.
10732 * corefile.c (set_gnutarget): Constify.
10733 * cp-name-parser.y (yyerror): Constify.
10734 * cp-valprint.c (cp_print_class_member): Constify.
10735 * cris-tdep.c (cris_register_name, crisv32_register_name):
10736 Constify.
10737 * d-exp.y (yyerror): Constify.
10738 (struct token::oper): Constify.
10739 * d-lang.h (d_yyerror): Constify.
10740 * dbxread.c (struct header_file_location::name): Constify.
10741 (add_old_header_file, add_new_header_file, last_function_name)
10742 (dbx_next_symbol_text, add_bincl_to_list)
10743 (find_corresponding_bincl_psymtab, set_namestring)
10744 (find_stab_function_addr, read_dbx_symtab, start_psymtab)
10745 (dbx_end_psymtab, read_ofile_symtab, process_one_symbol):
10746 * defs.h (command_line_input, print_address_symbolic)
10747 (deprecated_readline_begin_hook): Constify.
10748 * dwarf2read.c (anonymous_struct_prefix, dwarf_bool_name):
10749 Constify.
10750 * event-top.c (handle_line_of_input): Constify and add cast.
10751 * exceptions.c (catch_errors): Constify.
10752 * exceptions.h (catch_errors): Constify.
10753 * expprint.c (print_subexp_standard, op_string, op_name)
10754 (op_name_standard, dump_raw_expression, dump_raw_expression):
10755 * expression.h (op_name, op_string, dump_raw_expression):
10756 Constify.
10757 * f-exp.y (yyerror): Constify.
10758 (struct token::oper): Constify.
10759 (struct f77_boolean_val::name): Constify.
10760 * f-lang.c (f_word_break_characters): Constify.
10761 * f-lang.h (f_yyerror): Constify.
10762 * fork-child.c (fork_inferior): Add cast.
10763 * frv-tdep.c (struct gdbarch_tdep::register_names): Constify.
10764 (new_variant): Constify.
10765 * gdbarch.sh (pstring_ptr, pstring_list): Constify.
10766 * gdbarch.c: Regenerate.
10767 * gdbcore.h (set_gnutarget): Constify.
10768 * go-exp.y (yyerror): Constify.
10769 (token::oper): Constify.
10770 * go-lang.h (go_yyerror): Constify.
10771 * go32-nat.c (go32_sysinfo): Constify.
10772 * guile/scm-breakpoint.c (gdbscm_breakpoint_expression): Constify.
10773 * guile/scm-cmd.c (cmdscm_function): Constify.
10774 * guile/scm-param.c (pascm_param_value): Constify.
10775 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
10776 (h8300sx_register_name): Constify.
10777 * hppa-tdep.c (hppa32_register_name, hppa64_register_name):
10778 Constify.
10779 * ia64-tdep.c (ia64_register_names): Constify.
10780 * infcmd.c (construct_inferior_arguments): Constify.
10781 (path_command, attach_post_wait): Constify.
10782 * language.c (show_range_command, show_case_command)
10783 (unk_lang_error): Constify.
10784 * language.h (language_defn::la_error)
10785 (language_defn::la_name_of_this): Constify.
10786 * linespec.c (decode_line_2): Constify.
10787 * linux-thread-db.c (thread_db_err_str): Constify.
10788 * lm32-tdep.c (lm32_register_name): Constify.
10789 * m2-exp.y (yyerror): Constify.
10790 * m2-lang.h (m2_yyerror): Constify.
10791 * m32r-tdep.c (m32r_register_names): Constify and make static.
10792 * m68hc11-tdep.c (m68hc11_register_names): Constify.
10793 * m88k-tdep.c (m88k_register_name): Constify.
10794 * macroexp.c (appendmem): Constify.
10795 * mdebugread.c (fdr_name, add_data_symbol, parse_type)
10796 (upgrade_type, parse_external, parse_partial_symbols)
10797 (mdebug_next_symbol_text, cross_ref, mylookup_symbol, new_psymtab)
10798 (new_symbol): Constify.
10799 * memattr.c (mem_info_command): Constify.
10800 * mep-tdep.c (register_name_from_keyword): Constify.
10801 * mi/mi-cmd-env.c (mi_cmd_env_path, _initialize_mi_cmd_env):
10802 Constify.
10803 * mi/mi-cmd-stack.c (list_args_or_locals): Constify.
10804 * mi/mi-cmd-var.c (mi_cmd_var_show_attributes): Constify.
10805 * mi/mi-main.c (captured_mi_execute_command): Constify and add
10806 cast.
10807 (mi_execute_async_cli_command): Constify.
10808 * mips-tdep.c (mips_register_name): Constify.
10809 * mn10300-tdep.c (register_name, mn10300_generic_register_name)
10810 (am33_register_name, am33_2_register_name)
10811 * moxie-tdep.c (moxie_register_names): Constify.
10812 * nat/linux-osdata.c (osdata_type): Constify fields.
10813 * nto-tdep.c (nto_parse_redirection): Constify.
10814 * objc-lang.c (lookup_struct_typedef, lookup_objc_class)
10815 (lookup_child_selector): Constify.
10816 (objc_methcall::name): Constify.
10817 * objc-lang.h (lookup_objc_class, lookup_child_selector)
10818 (lookup_struct_typedef): Constify.
10819 * objfiles.c (pc_in_section): Constify.
10820 * objfiles.h (pc_in_section): Constify.
10821 * p-exp.y (struct token::oper): Constify.
10822 (yyerror): Constify.
10823 * p-lang.h (pascal_yyerror): Constify.
10824 * parser-defs.h (op_name_standard): Constify.
10825 (op_print::string): Constify.
10826 (exp_descriptor::op_name): Constify.
10827 * printcmd.c (print_address_symbolic): Constify.
10828 * psymtab.c (print_partial_symbols): Constify.
10829 * python/py-breakpoint.c (stop_func): Constify.
10830 (bppy_get_expression): Constify.
10831 * python/py-cmd.c (cmdpy_completer::name): Constify.
10832 (cmdpy_function): Constify.
10833 * python/py-event.c (evpy_add_attribute)
10834 (gdbpy_initialize_event_generic): Constify.
10835 * python/py-event.h (evpy_add_attribute)
10836 (gdbpy_initialize_event_generic): Constify.
10837 * python/py-evts.c (add_new_registry): Constify.
10838 * python/py-finishbreakpoint.c (outofscope_func): Constify.
10839 * python/py-framefilter.c (get_py_iter_from_func): Constify.
10840 * python/py-inferior.c (get_buffer): Add cast.
10841 * python/py-param.c (parm_constant::name): Constify.
10842 * python/py-unwind.c (fprint_frame_id): Constify.
10843 * python/python.c (gdbpy_parameter_value): Constify.
10844 * remote-fileio.c (remote_fio_func_map): Make 'name' const.
10845 * remote.c (memory_packet_config::name): Constify.
10846 (show_packet_config_cmd, remote_write_bytes)
10847 (remote_buffer_add_string):
10848 * reverse.c (exec_reverse_once): Constify.
10849 * rs6000-tdep.c (variant::name, variant::description): Constify.
10850 * rust-exp.y (rustyyerror): Constify.
10851 * rust-lang.c (rust_op_name): Constify.
10852 * rust-lang.h (rustyyerror): Constify.
10853 * serial.h (serial_ops::name): Constify.
10854 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
10855 (sh_sh3e_register_name, sh_sh2e_register_name)
10856 (sh_sh2a_register_name, sh_sh2a_nofpu_register_name)
10857 (sh_sh_dsp_register_name, sh_sh3_dsp_register_name)
10858 (sh_sh4_register_name, sh_sh4_nofpu_register_name)
10859 (sh_sh4al_dsp_register_name): Constify.
10860 * sh64-tdep.c (sh64_register_name): Constify.
10861 * solib-darwin.c (lookup_symbol_from_bfd): Constify.
10862 * spu-tdep.c (spu_register_name, info_spu_dma_cmdlist): Constify.
10863 * stabsread.c (patch_block_stabs, read_type_number)
10864 (ref_map::stabs, ref_add, process_reference)
10865 (symbol_reference_defined, define_symbol, define_symbol)
10866 (error_type, read_type, read_member_functions, read_cpp_abbrev)
10867 (read_one_struct_field, read_struct_fields, read_baseclasses)
10868 (read_tilde_fields, read_struct_type, read_array_type)
10869 (read_enum_type, read_sun_builtin_type, read_sun_floating_type)
10870 (read_huge_number, read_range_type, read_args, common_block_start)
10871 (find_name_end): Constify.
10872 * stabsread.h (common_block_start, define_symbol)
10873 (process_one_symbol, symbol_reference_defined, ref_add):
10874 * symfile.c (get_section_index, add_symbol_file_command):
10875 * symfile.h (get_section_index): Constify.
10876 * target-descriptions.c (tdesc_type::name): Constify.
10877 (tdesc_free_type): Add cast.
10878 * target.c (find_default_run_target):
10879 (add_deprecated_target_alias, find_default_run_target)
10880 (target_announce_detach): Constify.
10881 (do_option): Constify.
10882 * target.h (add_deprecated_target_alias): Constify.
10883 * thread.c (print_thread_info_1): Constify.
10884 * top.c (deprecated_readline_begin_hook, command_line_input):
10885 Constify.
10886 (init_main): Add casts.
10887 * top.h (handle_line_of_input): Constify.
10888 * tracefile-tfile.c (tfile_write_uploaded_tsv): Constify.
10889 * tracepoint.c (tvariables_info_1, trace_status_mi): Constify.
10890 (tfind_command): Rename to ...
10891 (tfind_command_1): ... this and constify.
10892 (tfind_command): New function.
10893 (tfind_end_command, tfind_start_command): Adjust.
10894 (encode_source_string): Constify.
10895 * tracepoint.h (encode_source_string): Constify.
10896 * tui/tui-data.c (tui_partial_win_by_name): Constify.
10897 * tui/tui-data.h (tui_partial_win_by_name): Constify.
10898 * tui/tui-source.c (tui_set_source_content_nil): Constify.
10899 * tui/tui-source.h (tui_set_source_content_nil): Constify.
10900 * tui/tui-win.c (parse_scrolling_args): Constify.
10901 * tui/tui-windata.c (tui_erase_data_content): Constify.
10902 * tui/tui-windata.h (tui_erase_data_content): Constify.
10903 * tui/tui-winsource.c (tui_erase_source_content): Constify.
10904 * tui/tui.c (tui_enable): Add cast.
10905 * utils.c (defaulted_query): Constify.
10906 (init_page_info): Add cast.
10907 (puts_debug, subset_compare): Constify.
10908 * utils.h (subset_compare): Constify.
10909 * varobj.c (varobj_format_string): Constify.
10910 * varobj.h (varobj_format_string): Constify.
10911 * vax-tdep.c (vax_register_name): Constify.
10912 * windows-nat.c (windows_detach): Constify.
10913 * xcoffread.c (process_linenos, xcoff_next_symbol_text): Constify.
10914 * xml-support.c (gdb_xml_end_element): Constify.
10915 * xml-tdesc.c (tdesc_start_reg): Constify.
10916 * xstormy16-tdep.c (xstormy16_register_name): Constify.
10917 * xtensa-tdep.c (xtensa_find_register_by_name): Constify.
10918 * xtensa-tdep.h (xtensa_register_t::name): Constify.
10919
995816ba
PA
109202017-04-05 Pedro Alves <palves@redhat.com>
10921
10922 * proc-api.c (struct trans): Constify.
10923 (procfs_note): Constify.
10924 * proc-events.c (struct trans, syscall_table):
10925 * proc-flags.c (struct trans): Constify.
10926 * proc-utils.h (procfs_note): Constify.
10927 * proc-why.c (struct trans): Constify.
10928 * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error)
10929 (procfs_detach): Constify.
10930 * sol-thread.c (struct string_map): Constify.
10931 (td_err_string, td_state_string): Constify.
10932
3e83a920
PA
109332017-04-05 Pedro Alves <palves@redhat.com>
10934
10935 * proc-api.c (procfs_filename): Don't initialize
10936 procfs_filename.
10937 (prepare_to_trace): Assume procfs_filename is non-NULL.
10938 (_initialize_proc_api): Give procfs_filename a default value here.
10939
63160a43
PA
109402017-04-05 Pedro Alves <palves@redhat.com>
10941
10942 * break-catch-throw.c (handle_gnu_v3_exceptions): Constify
10943 'cond_string' parameter.
10944 (extract_exception_regexp): Constify 'string' parameter.
10945 (catch_exception_command_1): Constify.
10946 * breakpoint.c (init_catchpoint)
10947 (create_fork_vfork_event_catchpoint): Constify 'cond_string'
10948 parameter.
10949 (ep_parse_optional_if_clause, catch_fork_command_1)
10950 (catch_exec_command_1): Constify.
10951 * breakpoint.h (init_catchpoint): Constify 'cond_string'
10952 parameter.
10953 (ep_parse_optional_if_clause): Constify.
10954 * cli/cli-utils.c (remove_trailing_whitespace)
10955 (check_for_argument): Constify.
10956 * cli/cli-utils.h (remove_trailing_whitespace): Constify and add
10957 non-const overload.
10958 (check_for_argument): Likewise.
10959
9b2eba3d
PA
109602017-04-05 Pedro Alves <palves@redhat.com>
10961
10962 * event-top.c (command_line_handler): Add cast to execute_command
10963 call.
10964 * record-btrace.c (cmd_record_btrace_bts_start)
10965 (cmd_record_btrace_pt_start, cmd_record_btrace_start)
10966 (cmd_record_btrace_start): Add cast to execute_command call.
10967 * record-full.c (record_full_goto_insn):
10968 * record.c (record_start, record_stop): Add cast to
10969 execute_command_to_string calls.
10970 (cmd_record_start): Add cast to execute_command calls.
10971
2adadf51
PA
109722017-04-05 Pedro Alves <palves@redhat.com>
10973
10974 * python/python-internal.h (gdb_PyArg_ParseTupleAndKeywords): New
10975 static inline function.
10976 * python/py-arch.c (archpy_disassemble): Constify 'keywords'
10977 array and use gdb_PyArg_ParseTupleAndKeywords.
10978 * python/py-cmd.c (cmdpy_init): Likewise.
10979 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
10980 * python/py-inferior.c (infpy_read_memory, infpy_write_memory)
10981 (infpy_search_memory): Likewise.
10982 * python/py-objfile.c (objfpy_add_separate_debug_file)
10983 (gdbpy_lookup_objfile): Likewise.
10984 * python/py-symbol.c (gdbpy_lookup_symbol)
10985 (gdbpy_lookup_global_symbol): Likewise.
10986 * python/py-type.c (gdbpy_lookup_type): Likewise.
10987 * python/py-value.c (valpy_lazy_string, valpy_string): Likewise.
10988 * python/python.c (execute_gdb_command, gdbpy_write, gdbpy_flush):
10989 Likewise.
10990
0d1f4ceb
PA
109912017-04-05 Pedro Alves <palves@redhat.com>
10992
10993 * python/python-internal.h (gdb_PyGetSetDef): New type.
10994 * python/py-block.c (block_object_getset)
10995 (breakpoint_object_getset): Now a gdb_PyGetSetDef array.
10996 * python/py-event.c (event_object_getset)
10997 (finish_breakpoint_object_getset): Likewise.
10998 * python/py-inferior.c (inferior_object_getset): Likewise.
10999 * python/py-infthread.c (thread_object_getset): Likewise.
11000 * python/py-lazy-string.c (lazy_string_object_getset): Likewise.
11001 * python/py-linetable.c (linetable_entry_object_getset): Likewise.
11002 * python/py-objfile.c (objfile_getset): Likewise.
11003 * python/py-progspace.c (pspace_getset): Likewise.
11004 * python/py-record-btrace.c (btpy_insn_getset, btpy_call_getset):
11005 Likewise.
11006 * python/py-record.c (recpy_record_getset): Likewise.
11007 * python/py-symbol.c (symbol_object_getset): Likewise.
11008 * python/py-symtab.c (symtab_object_getset, sal_object_getset):
11009 Likewise.
11010 * python/py-type.c (type_object_getset, field_object_getset):
11011 Likewise.
11012 * python/py-value.c (value_object_getset): Likewise.
11013
4d759979
PA
110142017-04-05 Pedro Alves <palves@redhat.com>
11015
11016 * python/python-internal.h (gdb_PyObject_CallMethod)
11017 (gdb_PyErr_NewException, gdb_PySys_GetObject, gdb_PySys_SetPath):
11018 New functions.
11019 (GDB_PYSYS_SETPATH_CHAR, PyObject_CallMethod, PyErr_NewException)
11020 (PySys_GetObject, PySys_SetPath): New macros.
11021
fdf9e36f
PA
110222017-04-05 Pedro Alves <palves@redhat.com>
11023
11024 * mi/mi-cmd-info.c (mi_cmd_info_os): Call info_osdata instead of
11025 info_osdata_command.
11026 * osdata.c (info_osdata_command): Rename to ...
11027 (info_osdata): ... this. Constify 'type' parameter, and remove
11028 the 'from_tty' parameter. Accept NULL TYPE.
11029 (info_osdata_command): New function.
11030 * osdata.h (info_osdata_command): Remove declaration.
11031 (info_osdata): New declaration.
11032
9f33b8b7
PA
110332017-04-05 Pedro Alves <palves@redhat.com>
11034
11035 * mi/mi-cmd-break.c (mi_cmd_break_insert_1, mi_cmd_break_insert)
11036 (mi_cmd_dprintf_insert, mi_cmd_break_passcount)
11037 (mi_cmd_break_watch, mi_cmd_break_commands): Constify 'command'
11038 parameter.
11039 * mi/mi-cmd-catch.c (mi_cmd_catch_assert, mi_cmd_catch_exception)
11040 (mi_cmd_catch_load, mi_cmd_catch_unload): Constify cmd' parameter.
11041 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Constify 'command'
11042 parameter.
11043 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_cd, mi_cmd_env_path)
11044 (mi_cmd_env_dir, mi_cmd_inferior_tty_set, _cmd_inferior_tty_show)
11045 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
11046 (mi_cmd_file_list_exec_source_files)
11047 (mi_cmd_file_list_shared_libraries): Constify 'command' parameter.
11048 * mi/mi-cmd-info.c (mi_cmd_info_ada_exceptions)
11049 (mi_cmd_info_gdb_mi_command, mi_cmd_info_os): Constify 'command'
11050 parameter.
11051 * mi/mi-cmd-stack.c (mi_cmd_enable_frame_filters)
11052 (mi_cmd_stack_list_frames, mi_cmd_stack_info_depth)
11053 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
11054 (mi_cmd_stack_list_variables, mi_cmd_stack_select_frame)
11055 (mi_cmd_stack_info_frame): Constify 'command' parameter.
11056 * mi/mi-cmd-target.c (mi_cmd_target_file_get)
11057 (mi_cmd_target_file_put, mi_cmd_target_file_delete): Constify
11058 'command' parameter.
11059 * mi/mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete)
11060 (mi_cmd_var_set_format, mi_cmd_var_set_visualizer)
11061 (mi_cmd_var_set_frozen, mi_cmd_var_show_format)
11062 (mi_cmd_var_info_num_children, mi_cmd_var_list_children)
11063 (mi_cmd_var_info_type, mi_cmd_var_info_path_expression)
11064 (mi_cmd_var_info_expression, mi_cmd_var_show_attributes)
11065 (mi_cmd_var_evaluate_expression, mi_cmd_var_assign)
11066 (mi_cmd_var_update, mi_cmd_enable_pretty_printing)
11067 (mi_cmd_var_set_update_range): Constify 'command' parameter.
11068 * mi/mi-cmds.h (mi_cmd_argv_ftype): Constify 'command' parameter.
11069 * mi/mi-interp.c (mi_cmd_interpreter_exec): Constify 'command'
11070 parameter.
11071 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_exec_next)
11072 (mi_cmd_exec_next_instruction, mi_cmd_exec_step)
11073 (mi_cmd_exec_step_instruction, mi_cmd_exec_finish)
11074 (mi_cmd_exec_return ,mi_cmd_exec_jump, mi_cmd_exec_continue)
11075 (mi_cmd_exec_interrupt, mi_cmd_exec_run, mi_cmd_target_detach)
11076 (mi_cmd_target_flash_erase, mi_cmd_thread_select)
11077 (mi_cmd_thread_list_ids, mi_cmd_thread_info)
11078 (mi_cmd_list_thread_groups, mi_cmd_data_list_register_names)
11079 (mi_cmd_data_list_changed_registers)
11080 (mi_cmd_data_write_register_values)
11081 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
11082 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory)
11083 (mi_cmd_data_write_memory_bytes, mi_cmd_enable_timings)
11084 (mi_cmd_list_features, mi_cmd_list_target_features)
11085 (mi_cmd_add_inferior, mi_cmd_remove_inferior)
11086 (mi_cmd_trace_define_variable, mi_cmd_trace_list_variables)
11087 (mi_cmd_trace_find, mi_cmd_trace_save, mi_cmd_trace_start)
11088 (mi_cmd_trace_status, mi_cmd_trace_stop, mi_cmd_ada_task_info)
11089 (mi_cmd_trace_frame_collected): Constify 'command'
11090 parameter.
11091 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Constify
11092 'command' parameter.
11093
67cb5b2d
PA
110942017-04-05 Pedro Alves <palves@redhat.com>
11095
11096 * ada-lang.c (ada_completer_word_break_characters): Now a const
11097 array.
11098 (ada_get_gdb_completer_word_break_characters): Constify.
11099 * completer.c (gdb_completer_command_word_break_characters)
11100 (gdb_completer_file_name_break_characters)
11101 (gdb_completer_quote_characters): Now const arrays.
11102 (get_gdb_completer_quote_characters): Constify.
11103 (set_rl_completer_word_break_characters): New function.
11104 (set_gdb_completion_word_break_characters)
11105 (complete_line_internal): Use it.
11106 * completer.h (get_gdb_completer_quote_characters): Constify.
11107 (set_rl_completer_word_break_characters): Declare.
11108 * f-lang.c (f_word_break_characters): Constify.
11109 * language.c (default_word_break_characters): Constify.
11110 * language.h (language_defn::la_word_break_characters): Constify.
11111 (default_word_break_characters): Constify.
11112 * top.c (init_main): Use set_rl_completer_word_break_characters.
11113
7a114964
PA
111142017-04-05 Pedro Alves <palves@redhat.com>
11115
11116 * aix-thread.c (aix_thread_pid_to_str)
11117 (aix_thread_extra_thread_info): Constify.
11118 * bsd-kvm.c (bsd_kvm_pid_to_str): Constify.
11119 * bsd-uthread.c (bsd_uthread_extra_thread_info)
11120 (bsd_uthread_pid_to_str): Constify.
11121 * corelow.c (core_pid_to_str): Constify.
11122 * darwin-nat.c (darwin_pid_to_str): Constify.
11123 * fbsd-nat.c (fbsd_pid_to_str): Constify.
11124 * fbsd-tdep.c (fbsd_core_pid_to_str, gdbarch_core_pid_to_str):
11125 Constify.
11126 * gnu-nat.c (gnu_pid_to_str): Constify.
11127 * go32-nat.c (go32_pid_to_str): Constify.
11128 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Constify.
11129 * inf-ptrace.c (inf_ptrace_pid_to_str): Constify.
11130 * inferior.c (inferior_pid_to_str): Constify.
11131 * linux-nat.c (linux_nat_pid_to_str): Constify.
11132 * linux-tdep.c (linux_core_pid_to_str): Constify.
11133 * linux-thread-db.c (thread_db_pid_to_str)
11134 (thread_db_extra_thread_info): Constify.
11135 * nto-tdep.c (nto_extra_thread_info): Constify.
11136 * nto-tdep.h (nto_extra_thread_info): Constify.
11137 * obsd-nat.c (obsd_pid_to_str): Constify.
11138 * procfs.c (procfs_pid_to_str): Constify.
11139 * ravenscar-thread.c (ravenscar_extra_thread_info)
11140 (ravenscar_pid_to_str): Constify.
11141 * remote-sim.c (gdbsim_pid_to_str): Constify.
11142 * remote.c (remote_threads_extra_info, remote_pid_to_str):
11143 Constify.
11144 * sol-thread.c (solaris_pid_to_str): Constify.
11145 * sol2-tdep.c (sol2_core_pid_to_str): Constify.
11146 * sol2-tdep.h (sol2_core_pid_to_str): Constify.
11147 * target.c (default_pid_to_str, target_pid_to_str)
11148 (normal_pid_to_str, default_pid_to_str): Constify.
11149 * target.h (target_ops::to_pid_to_str)
11150 (target_ops::to_extra_thread_info): Constify.
11151 (target_pid_to_str, normal_pid_to_str): Constify.
11152 * windows-nat.c (windows_pid_to_str): Constify.
11153 * gdbarch.sh (core_pid_to_str): Constify.
11154 * target-delegates.c: Regenerate.
11155 * gdbarch.h, gdbarch.c: Regenerate.
11156
69bbf465
PA
111572017-04-05 Pedro Alves <palves@redhat.com>
11158
11159 * main.c (captured_main_1): Use gdb::unique_xmalloc_ptr to manage
11160 the memory of the temporary warning_pre_print override.
11161 * utils.c (warning_pre_print): Constify.
11162 * utils.h (warning_pre_print): Constify.
11163
be47f9e8
PA
111642017-04-05 Pedro Alves <palves@redhat.com>
11165
11166 * cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
11167 (shell_command): New function.
11168 (make_command): Use std::string.
11169 (init_cli_cmds): Register shell_command instead of shell_escape.
11170
bde6261a
PA
111712017-04-05 Pedro Alves <palves@redhat.com>
11172
11173 * breakpoint.c (dprintf_function, dprintf_channel): Don't initialize.
11174 * tracepoint.c (default_collect): Don't initialize.
11175
b38ef47f
PA
111762017-04-05 Pedro Alves <palves@redhat.com>
11177
11178 * macroexp.c (macro_buffer::shared): Now a bool.
11179 (init_buffer): Update.
11180 (init_shared_buffer): Constify 'addr' parameter.
11181 (substitute_args, expand, macro_expand, macro_expand_next): Remove
11182 casts.
11183
f995bbe8
PA
111842017-04-05 Pedro Alves <palves@redhat.com>
11185
11186 * arm-tdep.c (show_disassembly_style_sfunc): Constify local.
11187 * disasm.c (set_disassembler_options): Constify local.
11188 * i386-tdep.c (i386_print_insn): Remove cast and FIXME comment.
11189
4a596fe2
SDJ
111902017-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
11191
11192 PR gdb/21352
11193 * tracefile.c (tsave_command): Fix argument parsing for '-r'
11194 option.
11195
2cad08ea
YQ
111962017-04-05 Yao Qi <yao.qi@linaro.org>
11197
11198 * frame.c (frame_unwind_register_unsigned): Call
11199 frame_unwind_register_value.
11200
55a98976
YQ
112012017-04-05 Yao Qi <yao.qi@linaro.org>
11202
11203 * gdb.threads/thread-specific-bp.exp (check_thread_specific_breakpoint):
11204 Use gdb_test_multiple, and don't match anchor.
11205
4ac40124
PA
112062017-04-05 Pedro Alves <palves@redhat.com>
11207
11208 * MAINTAINERS (Global Maintainers): Add Simon Marchi.
11209 (Write After Approval): Remove Simon Marchi.
11210
c053b654
PA
112112017-04-05 Pedro Alves <palves@redhat.com>
11212
11213 * common/gdb_optional.h (optional::optional): Make constexpr and
11214 initialize m_dummy.
11215
4c7bf4f9
JB
112162017-04-04 John Baldwin <jhb@FreeBSD.org>
11217
11218 * amd64-fbsd-tdep.c: Remove "bsd-uthread.h" include.
11219 (amd64fbsd_jmp_buf_reg_offset): Remove.
11220 (amd64fbsd_supply_uthread): Remove function.
11221 (amd64fbsd_collect_uthread): Remove function.
11222 (amd64fbsd_init_abi): Don't set bsd-uthread callbacks.
11223 * configure.tgt (i[34567]86-*-freebsd*): Remove bsd-uthread.o.
11224 (x86_64-*-freebsd*): Remove bsd-uthread.o.
11225 (fbsd-nat.c): Update comment.
11226 * i386-fbsd-tdep.c: Remove "bsd-uthread.h" include.
11227 (i386fbsd_jmp_buf_reg_offset): Remove.
11228 (i386fbsd_supply_uthread): Remove function.
11229 (i386fbsd_collect_uthread): Remove function.
11230 (i386fbsd_init_abi): Don't set bsd-uthread callbacks.
11231
1e1a8bef
JB
112322017-04-04 John Baldwin <jhb@FreeBSD.org>
11233
11234 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-fbsd-tdep.o.
11235 (ALLDEPFILES): Remove alpha-fbsd-tdep.c
11236 * NEWS: Mention that support for FreeBSD/alpha was removed.
11237 * alpha-fbsd-tdep.c: Delete file.
11238 * config/alpha/fbsd.mh: Delete file.
11239 * configure.host: Delete alpha*-*-freebsd* and
11240 alpha*-*-kfreebsd*-gnu.
11241 * configure.tgt: Delete alpha*-*-freebsd* and
11242 alpha*-*-kfreebsd*-gnu.
11243
49907934
JB
112442017-04-04 John Baldwin <jhb@FreeBSD.org>
11245
11246 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers,
11247 amd64bsd_store_inferior_registers): Use ptid from regcache.
11248
6f77053d
PA
112492017-04-04 Pedro Alves <palves@redhat.com>
11250
11251 * dwarf2read.c (lnp_state_machine): Now a class. Initialize all
11252 data fields, make them private and add "m_" prefixes.
11253 (lnp_state_machine::lnp_state_machine): New ctor.
11254 (record_line, check_line_address, handle_set_discriminator)
11255 (handle_set_address, handle_advance_pc, handle_special_opcode)
11256 (handle_advance_line, handle_set_file, handle_negate_stmt)
11257 (handle_const_add_pc, handle_fixed_advance_pc, handle_copy)
11258 (end_sequence, advance_line): New methods.
11259 (m_gdbarch, m_record_lines_p): New fields.
11260 (lnp_reader_state): Delete.
11261 (dwarf_record_line): Rename to ...
11262 (lnp_state_machine::record_line): ... adjust.
11263 (init_lnp_state_machine): Delete.
11264 (lnp_state_machine::lnp_state_machine): New.
11265 (check_line_address): Rename to ...
11266 (lnp_state_machine::check_line_address): This.
11267 (dwarf_decode_lines_1): Remove reference to "reader_state".
11268 Adjust lnp_state_machine having a non-default ctor. Use bool.
11269 State machine internal state manipulation moved to
11270 lnp_state_machine methods.
11271
9c541725
PA
112722017-04-04 Pedro Alves <palves@redhat.com>
11273
11274 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11275 unittests/offset-type-selftests.c.
11276 (SUBDIR_UNITTESTS_OBS): Add offset-type-selftests.o.
11277 * common/offset-type.h: New file.
11278 * common/preprocessor.h: New file.
11279 * common/traits.h: New file.
11280 * common/valid-expr.h: New file.
11281 * dwarf2expr.c: Include "common/underlying.h". Adjust to use
11282 sect_offset and cu_offset strong typedefs throughout.
11283 * dwarf2expr.h: Adjust to use sect_offset and cu_offset strong
11284 typedefs throughout.
11285 * dwarf2loc.c: Include "common/underlying.h". Adjust to use
11286 sect_offset and cu_offset strong typedefs throughout.
11287 * dwarf2read.c: Adjust to use sect_offset and cu_offset strong
11288 typedefs throughout.
11289 * gdbtypes.h: Include "common/offset-type.h".
11290 (cu_offset): Now an offset type (strong typedef) instead of a
11291 struct.
11292 (sect_offset): Likewise.
11293 (union call_site_parameter_u): Rename "param_offset" field to
11294 "param_cu_off".
11295 * unittests/offset-type-selftests.c: New file.
11296
ecfb656c
PA
112972017-04-04 Pedro Alves <palves@redhat.com>
11298
11299 * common/underlying.h: New file.
11300 * dwarf2read.c: Include "common/gdb_optional.h" and
11301 "common/underlying.h".
11302 (dir_index, file_name_index): New types.
11303 (file_entry): Use them.
11304 (file_entry::include): Use to_underlying.
11305 (line_header::add_file_name): Use dir_index.
11306 (read_formatted_entries): Use gdb::optional. Read form before
11307 writting to file_entry.
11308 (dwarf_decode_line_header): Use dir_index.
11309 (lnp_state_machine::current_file): Use to_underlying.
11310 (lnp_state_machine::file): Change type to file_name_index.
11311 (dwarf_record_line): Use to_underlying.
11312 (init_lnp_state_machine): Use file_name_index.
11313 (dwarf_decode_lines_1): Use dir_index and file_name_index.
11314
d194f1fe
PA
113152017-04-04 Pedro Alves <palves@redhat.com>
11316
11317 * common/gdb_optional.h (gdb::optiona): Add operator->, operator*,
11318 operator bool, has_value and get methods.
11319
fff8551c
PA
113202017-04-04 Pedro Alves <palves@redhat.com>
11321
11322 * dwarf2read.c (struct file_entry): Add ctors, and initialize all
11323 fields.
11324 (line_header): Initialize all data fields. Change type of
11325 standard_opcode_lengths to std::unique_ptr<unsigned char[]>.
11326 Change type of include_dirs to std::vector<const char *>. Remove
11327 num_include_dirs, include_dirs_size. Change type of file_names to
11328 std::vector<file_entry>. Remove num_file_names, file_names_size.
11329 (line_header::line_header): New.
11330 (line_header::add_include_dir, line_header::add_file_name): New
11331 methods.
11332 (line_header::include_dir_at): Remove NULL check.
11333 (line_header::file_name_at): Add const overload.
11334 (line_header_up): New unique_ptr typedef.
11335 (dw2_get_file_names_reader): Use line_header_up. Adjust to use
11336 std::vector. Remove free_line_header call.
11337 (dwarf2_build_include_psymtabs): Use line_header_up. Remove
11338 free_line_header call.
11339 (free_cu_line_header): Delete.
11340 (handle_DW_AT_stmt_list, handle_DW_AT_stmt_list)
11341 (setup_type_unit_groups): Use line_header_up instead of cleanups.
11342 Adjust to use std::vector.
11343 (free_line_header): Delete.
11344 (free_line_header_voidp): Use delete.
11345 (add_include_dir): Replace with ...
11346 (line_header::add_include_dir): ... this method. Use std::vector.
11347 (add_file_name): Replace with ...
11348 (line_header::add_file_name): ... this method. Use std::vector.
11349 (add_include_dir_stub): Delete.
11350 (read_formatted_entries): Remove memset.
11351 (dwarf_decode_line_header): Return a line_header_up instead of a
11352 raw pointer. Remove cleanup handling. Pass lambdas to
11353 read_formatted_entries. Adjust to use line_header methods.
11354 (dwarf_decode_lines_1): Adjust to use line_header methods.
11355 (dwarf_decode_lines, file_file_name, file_full_name): Adjust to
11356 use std::vector.
11357
d62a8ae2
SM
113582017-04-04 Simon Marchi <simon.marchi@polymtl.ca>
11359
11360 * remote.c (set_general_thread, set_continue_thread): Use ptid_t
11361 instead of struct ptid.
11362
db3a1dc7
AH
113632017-05-04 Alan Hayward <alan.hayward@arm.com>
11364
11365 * frame.c (get_frame_register_bytes): Unwind using value.
11366 (put_frame_register_bytes): Likewise.
11367
b1b45502
IB
113682017-03-30 Iain Buclaw <ibuclaw@gdcproject.org>
11369
11370 * d-exp.y (type_aggregate_p): Treat TYPE_CODE_MODULE as being
11371 aggregate-like.
11372
ec13808e
JK
113732017-03-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11374
11375 * auto-load.c (auto_load_section_scripts): Check SEC_HAS_CONTENTS.
11376
12316564
YQ
113772017-03-29 Yao Qi <yao.qi@linaro.org>
11378
11379 * gdbthread.h (struct thread_info): Declare constructor and
11380 destructor. Add some in-class member initializers.
11381 * thread.c (free_thread): Remove.
11382 (init_thread_list): Call delete instead of free_thread.
11383 (new_thread): Call thread_info constructor.
11384 (thread_info::thread_info): New function.
11385 (thread_info::~thread_info): New function.
11386 (delete_thread_1): Call delete instead of free_thread.
11387 (make_cleanup_restore_current_thread): Move tp and frame to
11388 inner block.
11389
fe5f7374
AK
113902017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11391
11392 * arc-tdep.c (arc_frame_cache): Add support for prologue analysis.
11393 (arc_skip_prologue): Likewise.
11394 (arc_make_frame_cache): Likewise.
11395 (arc_pv_get_operand): New function.
11396 (arc_is_in_prologue): Likewise.
11397 (arc_analyze_prologue): Likewise.
11398 (arc_print_frame_cache): Likewise.
11399 (MAX_PROLOGUE_LENGTH): New constant.
11400
eea78757
AK
114012017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11402
11403 * configure.tgt: Add arc-insn.o.
11404 * arc-tdep.c (arc_delayed_print_insn): Make non-static.
11405 (dump_arc_instruction_command): New function.
11406 (arc_fprintf_disasm): Likewise.
11407 (arc_disassemble_info): Likewise.
11408 (arc_insn_get_operand_value): Likewise.
11409 (arc_insn_get_operand_value_signed): Likewise.
11410 (arc_insn_get_memory_base_reg): Likewise.
11411 (arc_insn_get_memory_offset): Likewise.
11412 (arc_insn_get_branch_target): Likewise.
11413 (arc_insn_dump): Likewise.
11414 (arc_insn_get_linear_next_pc): Likewise.
11415 * arc-tdep.h (arc_delayed_print_insn): Add function declaration.
11416 (arc_disassemble_info): Likewise.
11417 (arc_insn_get_branch_target): Likewise.
11418 (arc_insn_get_linear_next_pc): Likewise.
11419 * NEWS: Mention new "maint print arc arc-instruction".
11420
3be78afd
AK
114212017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11422
11423 * arc-tdep (maintenance_print_arc_list): New variable.
11424 (maintenance_print_arc_command): New function.
11425
296ec4fa
AK
114262017-03-28 Anton Kolesov <anton.kolesov@synopsys.com>
11427
11428 * arc-tdep.c (core_v2_register_names, core_arcompact_register_names)
11429 Add "limm" and "reserved".
11430 (arc_cannot_fetch_register, arc_cannot_store_register): Add
11431 ARC_RESERVED_REGNUM and ARC_LIMM_REGNUM.
11432 * arc-tdep.h (arc_regnum): Likewise.
11433
f74f865e
MF
114342017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11435
11436 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
11437 for THREADPTR register.
11438 (supply_gregset_reg): Call regcache_raw_supply for THREADPTR
11439 register.
11440 * xtensa-tdep.c (XTENSA_DBREGN_UREG): New definition.
11441 (xtensa_derive_tdep): Initialize tdep->threadptr_regnum.
11442 * xtensa-tdep.h (gdbarch_tdep::threadptr_regnum): New field.
11443
0d0bf81a
MF
114442017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11445
11446 * xtensa-tdep.c (xtensa_pseudo_register_read): Treat all
11447 registers above gdbarch_num_regs (gdbarch) as privileged in
11448 call0 ABI.
11449
0ce4291e
MF
114502017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11451
11452 * xtensa-linux-nat.c (fill_gregset): Call regcache_raw_collect
11453 for a single specified register or for all registers in
11454 a0_base..a0_base + C0_NREGS range.
11455 (supply_gregset_reg): Call regcache_raw_supply for a single
11456 specified register or for all registers in a0_base..a0_base +
11457 C0_NREGS range.
11458
c56054f9
MF
114592017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11460
11461 * arch/xtensa.h (C0_NREGS): Add definition.
11462 * xtensa-tdep.c (C0_NREGS): Remove definition.
11463
a4398628
MF
114642017-03-27 Max Filippov <jcmvbkbc@gmail.com>
11465
11466 * xtensa-tdep.c (xtensa_scan_prologue, call0_analyze_prologue):
11467 Drop xtensa_default_isa initialization.
11468 (xtensa_gdbarch_init): Initialize xtensa_default_isa.
11469
8c43009f
PA
114702017-03-27 Pedro Alves <palves@redhat.com>
11471
11472 * dwarf2read.c (file_entry) <dir_index>: Add comment.
11473 (file_entry::include_dir): New method.
11474 (line_header::include_dir_at, line_header::file_name_at): New
11475 methods.
11476 (setup_type_unit_groups, setup_type_unit_groups)
11477 (psymtab_include_file_name): Simplify using the new methods.
11478 (lnp_state_machine) <the_line_header>: New field.
11479 <file>: Add comment.
11480 (lnp_state_machine::current_file): New method.
11481 (dwarf_record_line): Simplify using the new methods.
11482 (init_lnp_state_machine): Initialize the "the_line_header" field.
11483 (dwarf_decode_lines_1, dwarf_decode_lines, file_file_name):
11484 Simplify using the new methods.
11485
a7e80b9e
PA
114862017-03-27 Pedro Alves <palves@redhat.com>
11487
11488 * cp-name-parser.y (make_empty): Delete.
11489 (demangler_special, nested_name, ptr_operator, array_indicator)
11490 (direct_declarator, declarator_1): Use fill_comp instead of
11491 make_empty.
11492
21047726
PA
114932017-03-27 Pedro Alves <palves@redhat.com>
11494
11495 * xml-support.h (gdb_xml_debug): Pass a "first-to-check" argument
11496 to ATTRIBUTE_PRINTF.
11497 * solib-target.c (library_list_start_list): Print "string" not
11498 "version".
11499 * xml-tdesc.c (tdesc_start_field): Pass "field_name" to
11500 gdb_xml_error call.
11501
d721ba37
PA
115022017-03-27 Pedro Alves <palves@redhat.com>
11503
11504 * dwarf2read.c (struct file_and_directory): New.
11505 (dwarf2_get_dwz_file): Adjust to use std::string.
11506 (dw2_get_file_names_reader): Adjust to use file_and_directory.
11507 (find_file_and_directory): Adjust to return a file_and_directory
11508 object.
11509 (read_file_scope): Adjust to use file_and_directory. Remove
11510 make_cleanup/do_cleanups calls.
11511 (open_and_init_dwp_file): Adjust to use std::string. Remove
11512 make_cleanup/do_cleanups calls.
11513 * python/python.c (do_start_initialization): Adjust to ldirname
11514 returning a std::string.
11515 * utils.c (ldirname): Now returns a std::string.
11516 * utils.h (ldirname): Change return type to std::string.
11517 * xml-syscall.c (xml_init_syscalls_info): Adjust to ldirname
11518 returning a std::string.
11519 * xml-tdesc.c (file_read_description_xml): Likewise.
11520
ed771251
AH
115212017-03-24 Alan Hayward <alan.hayward@arm.com>
11522
11523 * regcache.c (regcache_debug_print_register): New function.
11524 * regcache.h (regcache_debug_print_register): New declaration.
11525 * target.c (debug_print_register): Remove.
11526 (target_fetch_registers): Call regcache_debug_print_register.
11527 (target_store_registers): Likewise.
11528
568c1b9f
PB
115292017-03-24 Pádraig Brady <pbrady@fb.com>
11530
11531 * dwarf2read.c (setup_type_unit_groups): Ensure dir_index doesn't
11532 reference beyond the 'lh->include_dirs' array before accessing to
11533 it.
11534 (psymtab_include_file_name): Likewise.
11535 (dwarf_decode_lines_1): Likewise.
11536 (dwarf_decode_lines): Likewise.
11537 (file_file_name): Likewise.
11538
3e00d44f
SM
115392017-03-23 Simon Marchi <simon.marchi@ericsson.com>
11540
11541 * fbsd-tdep.c (fbsd_corefile_thread): Don't set/restore
11542 inferior_ptid.
11543 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
11544 ps_lsetfpregs): Likewise.
11545 * regcache.c (regcache_raw_update, regcache_raw_write): Likewise.
11546 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
11547 ps_lsetfpregs): Likewise.
11548 * target.c (target_fetch_registers, target_store_registers):
11549 Remove asserts.
11550
077ae656
AH
115512017-03-23 Alan Hayward <alan.hayward@arm.com>
11552
11553 * sol-thread.c (sol_thread_store_registers): Remove regcache calls.
11554
1e2b521d
YQ
115552017-03-23 Yao Qi <yao.qi@linaro.org>
11556
11557 * aarch64-tdep.c (aarch64_process_record_test): Declare.
11558 (_initialize_aarch64_tdep): Register it.
11559 (aarch64_record_load_store): Handle PRFM instruction.
11560 (aarch64_process_record_test): New function.
11561
33877125
YQ
115622017-03-23 Yao Qi <yao.qi@linaro.org>
11563
11564 * aarch64-tdep.c (aarch64_record_load_store): Fix code
11565 indentation.
11566
a0eef940
YQ
115672017-03-23 Yao Qi <yao.qi@linaro.org>
11568
11569 * aarch64-tdep.c: Remove AARCH64_RECORD_FAILURE.
11570
3f2a3564
PR
115712017-03-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
11572
11573 python/python.c (do_start_initialization): Fix memory leak.
11574
b67aeab0
SM
115752017-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11576
11577 * inf-ptrace.c (inf_ptrace_xfer_partial): Get pid from ptid
11578 using get_ptrace_pid.
11579 * linux-nat.c (linux_nat_xfer_partial): Don't set/restore
11580 inferior_ptid.
11581 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use lwp of
11582 inferior_ptid instead of pid.
11583
ffdbe864
YQ
115842017-03-22 Yao Qi <yao.qi@linaro.org>
11585
11586 * aarch64-tdep.c: Wrap locally used classes in anonymous
11587 namespace.
11588 * arm-tdep.c: Likewise.
11589 * linespec.c: Likewise.
11590 * ui-out.c: Likewise.
11591
9d736fbf
JG
115922017-03-22 Jonah Graham <jonah@kichwacoders.com>
11593
11594 PR gdb/19637
11595 * python/lib/gdb/printer/bound_registers.py: Import sys.
11596
3de88e9a
SM
115972017-03-21 Simon Marchi <simon.marchi@ericsson.com>
11598
11599 * windows-nat.c (do_windows_fetch_inferior_registers): Add
11600 windows_thread_info parameter and use it instead of
11601 current_thread.
11602 (windows_fetch_inferior_registers): Don't set current_thread,
11603 pass the thread to do_windows_fetch_inferior_registers. Use
11604 ptid from regcache instead of inferior_ptid.
11605 (do_windows_store_inferior_registers): Add windows_thread_info
11606 parameter and use it instead of current_thread.
11607 (windows_store_inferior_registers): Don't set current_thread,
11608 pass the thread to do_windows_store_inferior_registers. Use
11609 ptid from regcache instead of inferior_ptid.
11610
0e7b8f61
SM
116112017-03-21 Simon Marchi <simon.marchi@ericsson.com>
11612
11613 * ser-mingw.c (ser_windows_raw): Remove reference to
11614 struct serial::current_timeout.
11615
5badf10a
IR
116162017-03-21 Ivo Raisr <ivo.raisr@oracle.com>
11617
11618 PR tdep/20928
11619 * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
11620 * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
11621 (sparc64_fsr_type): Fix %fsr decoding.
11622
cee59b3f
TW
116232017-03-21 Tim Wiederhake <tim.wiederhake@intel.com>
11624
11625 * python/py-record-btrace.c (btpy_insn_data): Change return type
11626 for Python 2.
11627
639a9038
SM
116282017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
11629
11630 * spu-linux-nat.c (spu_fetch_inferior_registers,
11631 spu_store_inferior_registers): Use ptid from regcache, set and
11632 restore inferior_ptid.
11633 * spu-multiarch.c (spu_fetch_registers, spu_store_registers):
11634 Likewise.
11635
bcc0c096
SM
116362017-03-20 Simon Marchi <simon.marchi@polymtl.ca>
11637
11638 * i386-linux-nat.c (fetch_register, store_register,
11639 i386_linux_fetch_inferior_registers,
11640 i386_linux_store_inferior_registers): Use ptid from regcache.
11641 * ia64-linux-nat.c (ia64_linux_fetch_register,
11642 ia64_linux_store_register): Likewise.
11643 * inf-ptrace.c (inf_ptrace_fetch_register,
11644 inf_ptrace_store_register): Likewise.
11645 * m32r-linux-nat.c (m32r_linux_fetch_inferior_registers,
11646 m32r_linux_store_inferior_registers): Likewise.
11647 * m68k-bsd-nat.c (m68kbsd_fetch_inferior_registers,
11648 m68kbsd_store_inferior_registers): Likewise.
11649 * m68k-linux-nat.c (fetch_register, store_register,
11650 m68k_linux_fetch_inferior_registers,
11651 m68k_linux_store_inferior_registers): Likewise.
11652 * m88k-bsd-nat.c (m88kbsd_fetch_inferior_registers,
11653 m88kbsd_store_inferior_registers): Likewise.
11654 * mips-fbsd-nat.c (mips_fbsd_fetch_inferior_registers,
11655 mips_fbsd_store_inferior_registers): Likewise.
11656 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers,
11657 mips64_linux_regsets_store_registers): Likewise.
11658 * mips-nbsd-nat.c (mipsnbsd_fetch_inferior_registers,
11659 mipsnbsd_store_inferior_registers): Likewise.
11660 * mips-obsd-nat.c (mips64obsd_fetch_inferior_registers,
11661 mips64obsd_store_inferior_registers): Likewise.
11662 * nto-procfs.c (procfs_fetch_registers, procfs_store_registers):
11663 Likewise.
11664 * ppc-fbsd-nat.c (ppcfbsd_fetch_inferior_registers,
11665 ppcfbsd_store_inferior_registers): Likewise.
11666 * ppc-linux-nat.c (ppc_linux_fetch_inferior_registers,
11667 ppc_linux_store_inferior_registers): Likewise.
11668 * ppc-nbsd-nat.c (ppcnbsd_fetch_inferior_registers,
11669 ppcnbsd_store_inferior_registers): Likewise.
11670 * ppc-obsd-nat.c (ppcobsd_fetch_registers,
11671 ppcobsd_store_registers): Likewise.
11672 * procfs.c (procfs_fetch_registers, procfs_store_registers):
11673 Likewise.
11674 * ravenscar-thread.c (ravenscar_fetch_registers,
11675 ravenscar_store_registers, ravenscar_prepare_to_store):
11676 Likewise.
11677 * record-btrace.c (record_btrace_fetch_registers,
11678 record_btrace_store_registers, record_btrace_prepare_to_store):
11679 Likewise.
11680 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register):
11681 Lookup inferior using ptid from regcache, instead of
11682 current_inferior.
11683 * remote.c (remote_fetch_registers, remote_store_registers): Use
11684 ptid from regcache.
11685 * rs6000-nat.c (fetch_register, store_register): Likewise.
11686 * s390-linux-nat.c (s390_linux_fetch_inferior_registers,
11687 s390_linux_store_inferior_registers): Likewise.
11688 * sh-nbsd-nat.c (shnbsd_fetch_inferior_registers,
11689 shnbsd_store_inferior_registers): Likewise.
11690 * sol-thread.c (sol_thread_fetch_registers,
11691 sol_thread_store_registers): Likewise.
11692 * sparc-nat.c (sparc_fetch_inferior_registers,
11693 sparc_store_inferior_registers): Likewise.
11694 * tilegx-linux-nat.c (fetch_inferior_registers,
11695 store_inferior_registers): Likewise.
11696 * vax-bsd-nat.c (vaxbsd_fetch_inferior_registers,
11697 vaxbsd_store_inferior_registers): Likewise.
11698 * xtensa-linux-nat.c (fetch_gregs, store_gregs, fetch_xtregs,
11699 store_xtregs): Likewise.
11700
c0f55cc6
AV
117012017-03-20 Artemiy Volkov <artemiyv@acm.org>
11702
11703 PR gdb/14441
11704 * NEWS: Mention support for rvalue references in GDB and python.
11705 * doc/gdb.texinfo (C Plus Plus Expressions): Mention that GDB
11706 supports both lvalue and rvalue references.
11707
15c0a2a9
AV
117082017-03-20 Artemiy Volkov <artemiyv@acm.org>
11709
11710 PR gdb/14441
11711 * gdbtypes.c (rank_one_type): Implement overloading
11712 resolution rules regarding rvalue references.
11713
aa006118
AV
117142017-03-20 Artemiy Volkov <artemiyv@acm.org>
11715
11716 PR gdb/14441
11717 * aarch64-tdep.c (aarch64_type_align)
11718 (aarch64_extract_return_value, aarch64_store_return_value): Change
11719 lvalue reference type checks to general reference type checks.
11720 * amd64-tdep.c (amd64_classify): Likewise.
11721 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
11722 Likewise.
11723 * arm-tdep.c (arm_type_align, arm_extract_return_value)
11724 (arm_store_return_value): Likewise.
11725 * ax-gdb.c (gen_fetch, gen_cast): Likewise.
11726 * c-typeprint.c (c_print_type): Likewise.
11727 * c-varobj.c (adjust_value_for_child_access, c_value_of_variable)
11728 (cplus_number_of_children, cplus_describe_child): Likewise.
11729 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
11730 * completer.c (expression_completer): Likewise.
11731 * cp-support.c (make_symbol_overload_list_adl_namespace):
11732 Likewise.
11733 * darwin-nat-info.c (info_mach_region_command): Likewise.
11734 * dwarf2loc.c (entry_data_value_coerce_ref)
11735 (value_of_dwarf_reg_entry): Likewise.
11736 * eval.c (ptrmath_type_p, evaluate_subexp_standard)
11737 (evaluate_subexp_for_address, evaluate_subexp_for_sizeof):
11738 Likewise.
11739 * findvar.c (extract_typed_address, store_typed_address):
11740 Likewise.
11741 * gdbtypes.c (rank_one_type): Likewise.
11742 * hppa-tdep.c (hppa64_integral_or_pointer_p): Likewise.
11743 * infcall.c (value_arg_coerce): Likewise.
11744 * language.c (pointer_type): Likewise.
11745 * m32c-tdep.c (m32c_reg_arg_type, m32c_m16c_address_to_pointer):
11746 Likewise.
11747 * m88k-tdep.c (m88k_integral_or_pointer_p): Likewise.
11748 * mn10300-tdep.c (mn10300_type_align): Likewise.
11749 * msp430-tdep.c (msp430_push_dummy_call): Likewise.
11750 * ppc-sysv-tdep.c (do_ppc_sysv_return_value)
11751 (ppc64_sysv_abi_push_param, ppc64_sysv_abi_return_value):
11752 Likewise.
11753 * printcmd.c (print_formatted, x_command): Likewise.
11754 * python/py-type.c (typy_get_composite, typy_template_argument):
11755 Likewise.
11756 * python/py-value.c (valpy_referenced_value)
11757 (valpy_get_dynamic_type, value_has_field): Likewise.
11758 * s390-linux-tdep.c (s390_function_arg_integer): Likewise.
11759 * sparc-tdep.c (sparc_integral_or_pointer_p): Likewise.
11760 * sparc64-tdep.c (sparc64_integral_or_pointer_p): Likewise.
11761 * spu-tdep.c (spu_scalar_value_p): Likewise.
11762 * symtab.c (lookup_symbol_aux): Likewise.
11763 * typeprint.c (whatis_exp, print_type_scalar): Likewise.
11764 * valarith.c (binop_types_user_defined_p, unop_user_defined_p):
11765 Likewise.
11766 * valops.c (value_cast_pointers, value_cast)
11767 (value_reinterpret_cast, value_dynamic_cast, value_addr, typecmp)
11768 (value_struct_elt, value_struct_elt_bitpos)
11769 (value_find_oload_method_list, find_overload_match)
11770 (value_rtti_indirect_type): Likewise.
11771 * valprint.c (val_print_scalar_type_p, generic_val_print):
11772 Likewise.
11773 * value.c (value_actual_type, value_as_address, unpack_long)
11774 (pack_long, pack_unsigned_long, coerce_ref_if_computed)
11775 (coerce_ref): Likewise.
11776 * varobj.c (varobj_get_value_type): Likewise.
11777
3fcf899d
AV
117782017-03-20 Artemiy Volkov <artemiyv@acm.org>
11779
11780 PR gdb/14441
11781 * doc/python.texi (Types in Python): Add TYPE_CODE_RVALUE_REF to
11782 table of constants.
11783 * python/lib/gdb/command/explore.py: Support exploring values
11784 of rvalue reference types.
11785 * python/lib/gdb/types.py: Implement get_basic_type() for
11786 rvalue reference types.
11787 * python/py-type.c (pyty_codes) <TYPE_CODE_RVALUE_REF>: New
11788 constant.
11789 * python/py-value.c (valpy_getitem): Add an rvalue reference
11790 check.
11791 (valpy_reference_value): Add new parameter "refcode".
11792 (valpy_lvalue_reference_value, valpy_rvalue_reference_value):
11793 New wrappers for valpy_reference_value().
11794 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
11795 (gdbpy_invoke_xmethod): Likewise.
11796
4297a3f0
AV
117972017-03-20 Artemiy Volkov <artemiyv@acm.org>
11798
11799 PR gdb/14441
11800 * dwarf2read.c (process_die, read_type_die_1): Handle the
11801 DW_TAG_rvalue_reference_type DIE.
11802 (read_tag_reference_type): Add new parameter "refcode".
11803
e1cb3213
AV
118042017-03-20 Artemiy Volkov <artemiyv@acm.org>
11805
11806 PR gdb/14441
11807 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix)
11808 (c_type_print_modifier, c_type_print_varspec_suffix)
11809 (c_type_print_base): Support printing rvalue reference types.
11810 * c-valprint.c (c_val_print, c_value_print): Support printing
11811 rvalue reference values.
11812
e4347c89
AV
118132017-03-20 Artemiy Volkov <artemiyv@acm.org>
11814
11815 PR gdb/14441
11816 * cp-name-parser.y (ptr_operator): Handle the '&&' token in
11817 typename.
11818 * cp-support.c (replace_typedefs): Handle
11819 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
11820 * python/py-type.c (typy_lookup_type): Likewise.
11821
53cc15f5
AV
118222017-03-20 Artemiy Volkov <artemiyv@acm.org>
11823
11824 PR gdb/14441
11825 * c-exp.y (ptr_operator): Handle the '&&' token in the typename.
11826 * parse.c (insert_type): Change assert statement.
11827 (follow_types): Handle rvalue reference types.
11828 * parser-defs.h (enum type_pieces) <tp_rvalue_reference>: New
11829 constant.
11830
a65cfae5
AV
118312017-03-20 Artemiy Volkov <artemiyv@acm.org>
11832
11833 PR gdb/14441
11834 * ada-lang.c (ada_evaluate_subexp): Adhere to the new
11835 value_ref() interface.
11836 * c-valprint.c (c_value_print): Likewise.
11837 * infcall.c (value_arg_coerce): Likewise.
11838 * python/py-value.c (valpy_reference_value): Likewise.
11839 * valops.c (value_cast, value_reinterpret_cast)
11840 (value_dynamic_cast, typecmp): Likewise.
11841 (value_ref): Parameterize by kind of return value reference type.
11842 * value.h (value_ref): Add new parameter "refcode".
11843
3b224330
AV
118442017-03-20 Artemiy Volkov <artemiyv@acm.org>
11845
11846 PR gdb/14441
11847 * dwarf2read.c (read_tag_reference_type): Use
11848 lookup_lvalue_reference_type() instead of lookup_reference_type().
11849 * eval.c (evaluate_subexp_standard): Likewise.
11850 * f-exp.y: Likewise.
11851 * gdbtypes.c (make_reference_type, lookup_reference_type):
11852 Generalize with rvalue reference types.
11853 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): New
11854 convenience wrappers for lookup_reference_type().
11855 * gdbtypes.h (make_reference_type, lookup_reference_type): Add a
11856 reference kind parameter.
11857 (lookup_lvalue_reference_type, lookup_rvalue_reference_type): Add
11858 wrappers for lookup_reference_type().
11859 * guile/scm-type.c (gdbscm_type_reference): Use
11860 lookup_lvalue_reference_type() instead of lookup_reference_type().
11861 * guile/scm-value.c (gdbscm_value_dynamic_type): Likewise.
11862 * parse.c (follow_types): Likewise.
11863 * python/py-type.c (typy_reference, typy_lookup_type): Likewise.
11864 * python/py-value.c (valpy_get_dynamic_type, valpy_getitem):
11865 Likewise.
11866 * python/py-xmethods.c (gdbpy_get_xmethod_result_type)
11867 (gdbpy_invoke_xmethod): Likewise.
11868 * stabsread.c: Provide extra argument to make_reference_type()
11869 call.
11870 * valops.c (value_ref, value_rtti_indirect_type): Use
11871 lookup_lvalue_reference_type() instead of lookup_reference_type().
11872
f9aeb8d4
AV
118732017-03-20 Artemiy Volkov <artemiyv@acm.org>
11874
11875 PR gdb/14441
11876 * gdbtypes.h (enum type_code) <TYPE_CODE_RVALUE_REF>: New constant.
11877 (TYPE_IS_REFERENCE): New macro.
11878 (struct type): Add rvalue_reference_type field.
11879 (TYPE_RVALUE_REFERENCE_TYPE): New macro.
11880
51457a05
MAL
118812017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
11882
11883 * NEWS: Add an entry about new '-file-list-shared-libraries' command.
11884 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries):
11885 New function definition.
11886 * mi/mi-cmds.c (mi_cmds): Add -file-list-shared-libraries command.
11887 * mi/mi-cmds.h (mi_cmd_file_list_shared_libraries):
11888 New function declaration.
11889 * mi/mi-interp.c (mi_output_solib_attribs): New Function.
11890 * mi/mi-interp.h: New file.
11891 * solib.c (info_sharedlibrary_command): Replace for loop with
11892 ALL_SO_LIBS macro
11893 * solib.h (update_solib_list): New function declaration.
11894 (so_list_head): Move macro.
11895 * solist.h (ALL_SO_LIBS): New macro.
11896
e696b3ad
MAL
118972017-03-20 Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
11898
11899 * infcmd.c (post_create_inferior): Remove unused argument in
11900 call to solib_add.
11901 * remote.c (remote_start_remote): Likewise.
11902 * solib-frv.c (frv_fetch_objfile_link_map): Likewise.
11903 * solib-svr4.c: (svr4_fetch_objfile_link_map): Likewise.
11904 (enable_break): Likewise.
11905 * solib.c (update_solib_list): Remove unused target argument
11906 and its documentation.
11907 (solib_add): Remove unused target argument. Remove unused
11908 argument in call to update_solib_list.
11909 (info_sharedlibrary_command): Remove unused argument in call
11910 to update_solib_list.
11911 (sharedlibrary_command): Remove unused argument in call to
11912 solib_add.
11913 (handle_solib_event): Likewise.
11914 (reload_shared_libraries): Likewise.
11915 * solib.h (solib_add): Remove unused target argument.
11916
dcb84eda
AA
119172017-03-20 Andreas Arnez <arnez@linux.vnet.ibm.com>
11918
11919 * s390-linux-tdep.c (is_rsi, is_rie): Remove functions.
11920 (s390_displaced_step_fixup): Cover relative branches with the
11921 default fixup handling. This fixes lack of support for some
11922 relative branch instructions.
11923
d9cb6cdc
SM
119242017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11925
11926 * i386-gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Use
11927 ptid from regcache.
11928
1afaf9f4
SM
119292017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11930
11931 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers,
11932 i386_darwin_store_inferior_registers): Use ptid from regcache.
11933
aac12e24
SM
119342017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11935
11936 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers,
11937 i386bsd_store_inferior_registers): Use ptid from regcache.
11938
bbe1eef1
SM
119392017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11940
11941 * hppa-obsd-nat.c (hppaobsd_fetch_registers,
11942 hppaobsd_store_registers): Use ptid from regcache.
11943
10799020
SM
119442017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11945
11946 * hppa-nbsd-nat.c (hppanbsd_fetch_registers,
11947 hppanbsd_store_registers): Use ptid from regcache.
11948
00204cf7
SM
119492017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11950
11951 * hppa-linux-nat.c (fetch_register, store_register): Use ptid
11952 from regcache. Use get_ptrace_pid.
11953
11a33714
SM
119542017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11955
11956 * corelow.c (get_core_register_section): Use ptid from regcache,
11957 update doc.
11958
317cd492
SM
119592017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11960
11961 * bsd-uthread.c (bsd_uthread_fetch_registers,
11962 bsd_uthread_store_registers): Use ptid from regcache, set and
11963 restore inferior_ptid.
11964
9ac8a7c2
SM
119652017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11966
11967 * arm-nbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
11968 fetch_fp_regs, store_register, store_regs, store_fp_register,
11969 store_fp_regs): Use ptid from regcache.
11970
4ac4bb6a
SM
119712017-03-17 Simon Marchi <simon.marchi@polymtl.ca>
11972
11973 * arm-linux-nat.c (fetch_fpregs, store_fpregs, fetch_regs,
11974 store_regs, fetch_wmmx_regs, store_wmmx_regs, fetch_vfp_regs,
11975 store_vfp_regs): Use ptid from regcache.
11976
9bcbdca8
PA
119772017-03-17 Pedro Alves <palves@redhat.com>
11978
11979 PR remote/21188
11980 * ser-base.c (ser_base_wait_for): Add comment.
11981 (do_ser_base_readchar): Improve comment based on the ser-unix.c's
11982 version.
11983 * ser-unix.c (hardwire_raw): Remove reference to
11984 scb->current_timeout.
11985 (wait_for, do_hardwire_readchar, hardwire_readchar): Delete.
11986 (hardwire_ops): Install ser_base_readchar instead of
11987 hardwire_readchar.
11988 * serial.h (struct serial) <current_timeout, timeout_remaining>:
11989 Remove fields.
11990
7503099f
JG
119912017-03-17 Jonah Graham <jonah@kichwacoders.com>
11992
11993 PR gdb/19637
11994 * python/lib/gdb/printer/bound_registers.py: Add support for
11995 Python 3.
11996
7942e96e
AA
119972017-03-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
11998
11999 * dwarf2loc.c (indirect_synthetic_pointer): Get data type of
12000 pointed-to DIE and pass it to dwarf2_evaluate_loc_desc_full.
12001 (dwarf2_evaluate_loc_desc_full): New parameter subobj_type; rename
12002 byte_offset to subobj_byte_offset. Fix the handling of
12003 DWARF_VALUE_STACK on big-endian targets when coming via an
12004 implicit pointer.
12005 (dwarf2_evaluate_loc_desc): Adjust call to
12006 dwarf2_evaluate_loc_desc_full.
12007 * dwarf2loc.h (dwarf2_fetch_die_type_sect_off): New declaration.
12008 * dwarf2read.c (dwarf2_fetch_die_type_sect_off): New function.
12009
ba14f379
YQ
120102017-03-16 Yao Qi <yao.qi@linaro.org>
12011
12012 * arm-tdep.c (thumb_record_misc): Decode CBNZ, CBZ, REV16,
12013 and REVSH instructions.
12014
b121eeb9
YQ
120152017-03-16 Yao Qi <yao.qi@linaro.org>
12016
12017 * arm-tdep.c [GDB_SELF_TEST]: include "selftests.h".
12018 (arm_record_test): Declare.
12019 (_initialize_arm_tdep) [GDB_SELF_TEST]: call register_self_test.
12020 (thumb_record_ld_st_reg_offset): Rewrite the opcode matching to
12021 align with the manual.
12022 (thumb_record_misc): Adjust the code order to align with the
12023 manual.
12024 (thumb2_record_decode_insn_handler): Fix instruction matching.
12025 (instruction_reader_thumb): New class.
12026 (arm_record_test): New function.
12027
728a7913
YQ
120282017-03-16 Yao Qi <yao.qi@linaro.org>
12029
12030 * arm-tdep.c (abstract_memory_reader): New class.
12031 (instruction_reader): New class.
12032 (extract_arm_insn): Add argument 'reader'. Callers updated.
12033 (decode_insn): Likewise.
12034
34b43320
DE
120352017-03-16 Doug Evans <dje@google.com>
12036
a7c0469f
DE
12037 * guile/scm-lazy-string.c (lazy_string_smob): Clarify use of LENGTH
12038 member. Change type of TYPE member to SCM. All uses updated.
12039 (lsscm_make_lazy_string_smob): Add assert.
12040 (lsscm_make_lazy_string): Flag bad length values.
12041 (lsscm_elt_type): New function.
12042 (gdbscm_lazy_string_to_value): Rewrite to use
12043 lsscm_safe_lazy_string_to_value.
12044 (lsscm_safe_lazy_string_to_value): Fix handling of TYPE_CODE_PTR.
12045 * guile/scm-value.c (gdbscm_value_to_lazy_string): Flag bad length
12046 values. Fix TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle typedefs
12047 in incoming type.
12048 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
12049 * guile/scm-type.c (tyscm_scm_to_type): New function.
12050
120512017-03-15 Doug Evans <dje@google.com>
12052
34b43320
DE
12053 PR python/17728, python/18439, python/18779
12054 * python/py-lazy-string.c (lazy_string_object): Clarify use of LENGTH
12055 member. Change type of TYPE member to PyObject *. All uses updated.
12056 (stpy_convert_to_value): Fix handling of TYPE_CODE_PTR.
12057 (gdbpy_create_lazy_string_object): Flag bad length values.
12058 Handle TYPE_CODE_ARRAY with possibly different user-provided length.
12059 Handle typedefs in incoming type.
12060 (stpy_lazy_string_elt_type): New function.
12061 (gdbpy_extract_lazy_string): Call it.
12062 * python/py-value.c (valpy_lazy_string): Flag bad length values.
12063 Fix handling of TYPE_CODE_PTR. Handle TYPE_CODE_ARRAY. Handle
12064 typedefs in incoming type.
12065
a3a5fecc
DE
120662017-03-16 Doug Evans <dje@google.com>
12067
12068 * guile/guile-internal.h (tyscm_scm_to_type): Declare.
12069 * guile/scm-type.c (tyscm_scm_to_type): New function.
12070
28f1c605
JW
120712017-03-16 Jiong Wang <jiong.wang@arm.com>
12072
12073 * inf-ptrace.c (inf_ptrace_peek_poke): Change the type to
12074 "ULONGEST" for "skip".
12075
87c336f6
AA
120762017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
12077
12078 PR gdb/21220
12079 * inf-ptrace.c (inf_ptrace_xfer_partial): In "case
12080 TARGET_OBJECT_MEMORY", extract the logic for ptrace peek/poke...
12081 (inf_ptrace_peek_poke): ...here. New function. Now also loop
12082 over ptrace peek/poke until end of buffer or error.
12083
cf81cf60
SM
120842017-03-14 Simon Marchi <simon.marchi@ericsson.com>
12085
12086 * parse.c (length_of_subexp): Make static.
12087 * parser-defs.h (length_of_subexp): Remove.
12088
a379284a
AA
120892017-03-14 Andreas Arnez <arnez@linux.vnet.ibm.com>
12090
12091 * linux-nat.c (linux_proc_xfer_partial): Handle write operations
12092 as well.
12093
8a6200ba
PA
120942017-03-14 Pedro Alves <palves@redhat.com>
12095
12096 * cp-name-parser.y (cp_demangled_name_to_comp): Update comment.
12097 (main): Use std::unique_ptr. Remove calls to
12098 cp_demangled_name_parse_free.
12099
f79ec206
SM
121002017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12101
12102 * alpha-bsd-nat.c (alphabsd_fetch_inferior_registers,
12103 alphabsd_store_inferior_registers): Use regcache->ptid instead
12104 of inferior_ptid.
12105
edb5fb00
SM
121062017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12107
12108 * aix-thread.c (aix_thread_fetch_registers,
12109 aix_thread_store_registers): Use regcache->ptid instead of
12110 inferior_ptid.
12111
55119686
SM
121122017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12113
12114 * aarch64-linux-nat.c (fetch_gregs_from_thread,
12115 store_gregs_to_thread, fetch_fpregs_from_thread,
12116 store_fpregs_to_thread): Use regcache->ptid instead of
12117 inferior_ptid.
12118
6a06fbb7
SM
121192017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12120
12121 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers,
12122 amd64_linux_fetch_inferior_registers): Use regcache->ptid
12123 instead of inferior_ptid.
12124
c6386875
SM
121252017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12126
12127 * target.c (target_fetch_registers, target_store_registers): Add
12128 assert.
12129
ddaaf0fb
SM
121302017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
12131
12132 * regcache.h (regcache_get_ptid): New function.
12133 * regcache.c (regcache_get_ptid): New function.
12134
b9da89d1 121352017-03-13 Mark Wielaard <mark@klomp.org>
12136
12137 * cp-name-parser.y (make_empty): Initialize d_printing to zero.
12138
5f4d1085
KS
121392017-03-10 Keith Seitz <keiths@redhat.com>
12140
12141 PR c++/8218
12142 * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.
12143
c65d6b55
PA
121442017-03-08 Pedro Alves <palves@redhat.com>
12145
12146 PR gdb/18360
12147 * infrun.c (start_step_over, do_target_resume, resume)
12148 (restart_threads): Assert we're not resuming a thread that is
12149 meant to be stopped.
12150 (infrun_thread_stop_requested_callback): Delete.
12151 (infrun_thread_stop_requested): If the thread is internally
12152 stopped, queue a pending stop event and clear the thread's
12153 inline-frame state.
12154 (handle_stop_requested): New function.
12155 (handle_syscall_event, handle_inferior_event_1): Use
12156 handle_stop_requested.
12157 (handle_stop_requested): New function.
12158 (handle_signal_stop): Set the thread's stop_signal here instead of
12159 at caller.
12160 (finish_step_over): Clear step over info unconditionally.
12161 (handle_signal_stop): If the user had interrupted the event
12162 thread, consider the stop a random signal.
12163 (handle_signal_stop) <signal arrived while stepping over
12164 breakpoint>: Don't restart threads here.
12165 (stop_waiting): Don't clear step-over info here.
12166
15c22686
PA
121672017-03-08 Pedro Alves <palves@redhat.com>
12168
12169 PR 21206
12170 * common/gdb_unlinker.h (unlinker::unlinker): Attribute nonnull
12171 goes to argument 2, not 1.
12172
6e5d74e7
PA
121732017-03-08 Pedro Alves <palves@redhat.com>
12174
12175 PR cli/21218
12176 * top.c (gdb_readline_wrapper): Avoid passing NULL to
12177 display_gdb_prompt.
12178 (command_line_input): Add comment.
12179
9753a2f6
PA
121802017-03-08 Pedro Alves <palves@redhat.com>
12181
12182 PR tui/21216
12183 * tui/tui-file.c (tui_file::write): New.
12184 * tui/tui-file.h (tui_file): Override "write".
12185 * tui/tui-io.c (do_tui_putc, update_start_line): New functions,
12186 factored out from ...
12187 (tui_puts): ... here.
12188 (tui_putc): Use them.
12189 (tui_write): New function.
12190 * tui/tui-io.h (tui_write): Declare.
12191
1672e0d9
SDJ
121922017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
12193
12194 * Makefile.in (SFILES): Replace "environ.c" with
12195 "common/environ.c".
12196 (HFILES_NO_SRCDIR): Likewise, for "environ.h".
12197 * environ.c: Include "common-defs.h" instead of "defs.h. Moved
12198 to...
12199 * common/environ.c: ... here.
12200 * environ.h: Moved to...
12201 * common/environ.h: ... here.
12202
f7bb4e3a
PB
122032017-03-07 Peter Bergner <bergner@vnet.ibm.com>
12204
12205 * gdbarch.sh (pstring_ptr): New static function.
12206 (gdbarch_disassembler_options): Use it.
12207 (gdbarch_verify_disassembler_options): Print valid_disassembler_options,
12208 not valid_disassembler_option->name.
12209 * gdbarch.c: Regenerate.
12210
e45ced6c
PB
122112017-03-07 Peter Bergner <bergner@vnet.ibm.com>
12212
12213 * config/powerpc/ppc64-linux.mh (MH_CFLAGS): Delete.
12214
5f6fd321
PA
122152017-03-07 Pedro Alves <palves@redhat.com>
12216
12217 * tui/tui-regs.c (tui_restore_gdbout): Don't delete gdb_stdout.
12218
6dbb839a 122192017-03-07 Walfred Tedeschi <walfred.tedeschi@intel.com>
4a612d6f
WT
12220
12221 * i387-tdep.h (i387_reset_bnd_regs): Add function definition.
12222 * i387-tdep.c (i387_reset_bnd_regs): Add function implementation.
12223 * i386-tdep.c (i386_push_dummy_call): Call i387_reset_bnd_regs.
6dbb839a 12224 * amd64-tdep.c (amd64_push_dummy_call): Call i387_reset_bnd_regs.
4a612d6f 12225
d274ecf4
SM
122262017-03-06 Simon Marchi <simon.marchi@ericsson.com>
12227
12228 * xtensa-linux-nat.c (fetch_gregs): Remove const.
12229
df97be55
SM
122302017-03-03 Simon Marchi <simon.marchi@ericsson.com>
12231
12232 * remote.c (remote_add_target_side_commands): Use range-based
12233 for loop.
12234
7d45f3df
YQ
122352017-03-03 Yao Qi <yao.qi@linaro.org>
12236
12237 PR gdb/21165
12238 * ada-valprint.c (ada_val_print_ref): Call value_fetch_lazy if
12239 value is lazy.
12240 * valprint.c (common_val_print): Likewise.
12241
65b48a81
PB
122422017-02-28 Peter Bergner <bergner@vnet.ibm.com>
12243
12244 * NEWS: Mention new set/show disassembler-options commands.
12245 * doc/gdb.texinfo: Document new set/show disassembler-options commands.
12246 * disasm.c: Include "arch-utils.h", "gdbcmd.h" and "safe-ctype.h".
12247 (prospective_options): New static variable.
12248 (gdb_disassembler::gdb_disassembler): Initialize
12249 m_di.disassembler_options.
12250 (gdb_buffered_insn_length_init_dis): Initilize di->disassembler_options.
12251 (get_disassembler_options): New function.
12252 (set_disassembler_options): Likewise.
12253 (set_disassembler_options_sfunc): Likewise.
12254 (show_disassembler_options_sfunc): Likewise.
12255 (disassembler_options_completer): Likewise.
12256 (_initialize_disasm): Likewise.
12257 * disasm.h (get_disassembler_options): New prototype.
12258 (set_disassembler_options): Likewise.
12259 * gdbarch.sh (gdbarch_disassembler_options): New variable.
12260 (gdbarch_verify_disassembler_options): Likewise.
12261 * gdbarch.c: Regenerate.
12262 * gdbarch.h: Likewise.
12263 * arm-tdep.c (num_disassembly_options): Delete.
12264 (set_disassembly_style): Likewise.
12265 (arm_disassembler_options): New static variable.
12266 (set_disassembly_style_sfunc): Convert short style name into long
12267 option name. Call set_disassembler_options.
12268 (show_disassembly_style_sfunc): New function.
12269 (arm_gdbarch_init): Call set_gdbarch_disassembler_options and
12270 set_gdbarch_verify_disassembler_options.
12271 (_initialize_arm_tdep): Delete regnames variable and update callers.
12272 (arm_disassembler_options): Initialize.
12273 (disasm_options): New variable.
12274 (num_disassembly_options): Rename from this...
12275 (num_disassembly_styles): ...to this. Compute by scanning through
12276 disasm_options.
12277 (valid_disassembly_styles): Initialize using disasm_options.
12278 Remove calls to parse_arm_disassembler_option, get_arm_regnames and
12279 set_arm_regname_option.
12280 Pass show_disassembly_style_sfunc to the "disassembler" setshow command.
12281 * rs6000-tdep.c (powerpc_disassembler_options): New static variable.
12282 (rs6000_gdbarch_init): Call set_gdbarch_disassembler_options and
12283 set_gdbarch_verify_disassembler_options.
12284 * s390-tdep.c (s390_disassembler_options): New static variable.
12285 (s390_gdbarch_init):all set_gdbarch_disassembler_options and
12286 set_gdbarch_verify_disassembler_options.
12287
d538e36d
SM
122882017-02-27 Simon Marchi <simon.marchi@ericsson.com>
12289
12290 * remote.c (remote_add_target_side_condition): Remove "struct"
12291 keyword from range-based for loop.
12292
83621223
SM
122932017-02-27 Simon Marchi <simon.marchi@ericsson.com>
12294
12295 * remote.c (remote_add_target_side_condition): Use range-based
12296 for loop. Update comment.
12297
2123df0e
YQ
122982017-02-27 Yao Qi <yao.qi@linaro.org>
12299
12300 * f-typeprint.c (f_print_type): Check "varstring" is empty first.
12301
8e368124
AH
123022017-02-26 Alan Hayward <alan.hayward@arm.com>
12303
12304 * regcache.c (regcache_raw_update): New function.
12305 (regcache_raw_read): Move code to regcache_raw_update.
12306 * regcache.h (regcache_raw_update): New declaration.
12307 * remote.c (remote_prepare_to_store): Call regcache_raw_update.
12308
a49dd8dd
JK
123092017-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
12310
12311 * dwarf2read.c (create_debug_type_hash_table): Initialize
12312 header.signature and header.type_offset_in_tu.
12313
34e4bae9
PA
123142017-02-24 Pedro Alves <palves@redhat.com>
12315
12316 * symtab.c (make_file_symbol_completion_list_1): Use
12317 add_symtab_completions.
12318
b0e4b369
AH
123192017-02-24 Alan Hayward <alan.hayward@arm.com>
12320
12321 * stack.c (frame_info): Use frame_unwind_register_value to avoid buf.
12322
975c21ab
AH
123232017-02-24 Alan Hayward <alan.hayward@arm.com>
12324
12325 * i386-tdep.c (i386_pseudo_register_read_into_value): Use
12326 I386_MAX_REGISTER_SIZE.
12327 (i386_pseudo_register_write): Likewise.
12328 (i386_process_record): Likewise.
12329 * i387-tdep.c (i387_supply_xsave): Likewise.
12330 * m68k-linux-nat.c (fetch_register): Use M68K_MAX_REGISTER_SIZE.
12331 (store_register): Likewise.
12332
14bc53a8
PA
123332017-02-23 Pedro Alves <palves@redhat.com>
12334
12335 * ada-lang.c: Include "common/function-view.h".
12336 (ada_iterate_over_symbols): Adjust to use function_view as
12337 callback type.
12338 (struct add_partial_datum, ada_complete_symbol_matcher): Delete.
12339 (ada_make_symbol_completion_list): Use a lambda.
12340 (ada_exc_search_name_matches): Delete.
12341 (name_matches_regex): New.
12342 (ada_add_global_exceptions): Use a lambda and name_matches_regex.
12343 * compile/compile-c-support.c: Include "common/function-view.h".
12344 (print_one_macro): Change prototype to accept a ui_file pointer.
12345 (write_macro_definitions): Use a lambda.
12346 * dwarf2read.c: Include "common/function-view.h".
12347 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
12348 (dw2_expand_symtabs_matching): Adjust to use function_view as
12349 callback type.
12350 * language.h: Include "common/function-view.h".
12351 (struct language_defn) <la_iterate_over_symbols>: Adjust to use
12352 function_view as callback type.
12353 (LA_ITERATE_OVER_SYMBOLS): Remove DATA parameter.
12354 * linespec.c: Include "common/function-view.h".
12355 (collect_info::add_symbol): New method.
12356 (struct symbol_and_data_callback, iterate_inline_only, struct
12357 symbol_matcher_data, iterate_name_matcher): Delete.
12358 (iterate_over_all_matching_symtabs): Adjust to use function_view
12359 as callback type and lambdas.
12360 (iterate_over_file_blocks): Adjust to use function_view as
12361 callback type.
12362 (decode_compound_collector): Now a class with private fields.
12363 (decode_compound_collector::release_symbols): New method.
12364 (collect_one_symbol): Rename to...
12365 (decode_compound_collector::operator()): ... this and adjust.
12366 (lookup_prefix_sym): decode_compound_collector construction bits
12367 move to decode_compound_collector ctor. Pass the
12368 decode_compound_collector object directly as callback. Remove
12369 cleanups and use decode_compound_collector::release_symbols
12370 instead.
12371 (symtab_collector): Now a class with private fields.
12372 (symtab_collector::release_symtabs): New method.
12373 (add_symtabs_to_list): Rename to...
12374 (symtab_collector::operator()): ... this and adjust.
12375 (collect_symtabs_from_filename): symtab_collector construction
12376 bits move to symtab_collector ctor. Pass the symtab_collector
12377 object directly as callback. Remove cleanups and use
12378 symtab_collector::release_symtabs instead.
12379 (collect_symbols): Delete.
12380 (add_matching_symbols_to_info): Use lambdas.
12381 * macrocmd.c (print_macro_callback): Delete.
12382 (info_macro_command): Use a lambda.
12383 (info_macros_command): Pass print_macro_definition as callable
12384 directly.
12385 (print_one_macro): Remove 'ignore' parameter.
12386 (macro_list_command): Adjust.
12387 * macrotab.c (macro_for_each_data::fn): Now a function_view.
12388 (macro_for_each_data::user_data): Delete field.
12389 (foreach_macro): Adjust to call the function_view.
12390 (macro_for_each): Adjust to use function_view as callback type.
12391 (foreach_macro_in_scope): Adjust to call the function_view.
12392 (macro_for_each_in_scope): Adjust to use function_view as callback
12393 type.
12394 * macrotab.h: Include "common/function-view.h".
12395 (macro_callback_fn): Declare a prototype instead of a pointer.
12396 Remove "user_data" parameter.
12397 (macro_for_each, macro_for_each_in_scope): Adjust to use
12398 function_view as callback type.
12399 * psymtab.c (partial_map_expand_apply)
12400 (psym_map_symtabs_matching_filename, recursively_search_psymtabs):
12401 Adjust to use function_view as callback type and to return bool.
12402 (psym_expand_symtabs_matching): Adjust to use function_view as
12403 callback types.
12404 * symfile-debug.c (debug_qf_map_symtabs_matching_filename): Adjust
12405 to use function_view as callback type and to return bool.
12406 (debug_qf_expand_symtabs_matching): Adjust to use function_view as
12407 callback types.
12408 * symfile.c (expand_symtabs_matching): Adjust to use function_view
12409 as callback types.
12410 * symfile.h: Include "common/function-view.h".
12411 (expand_symtabs_file_matcher_ftype)
12412 (expand_symtabs_symbol_matcher_ftype)
12413 (expand_symtabs_exp_notify_ftype): Remove "data" parameter and
12414 return bool.
12415 (quick_symbol_functions::map_symtabs_matching_filename)
12416 (quick_symbol_functions::expand_symtabs_matching): Adjust to use
12417 function_view as callback type and return bool.
12418 (expand_symtabs_matching): Adjust to use function_view as callback
12419 type.
12420 (maintenance_expand_name_matcher)
12421 (maintenance_expand_file_matcher): Delete.
12422 (maintenance_expand_symtabs): Use lambdas.
12423 * symtab.c (iterate_over_some_symtabs): Adjust to use
12424 function_view as callback types and return bool.
12425 (iterate_over_symtabs): Likewise. Use unique_xmalloc_ptr instead
12426 of a cleanup.
12427 (lookup_symtab_callback): Delete.
12428 (lookup_symtab): Use a lambda.
12429 (iterate_over_symbols): Adjust to use function_view as callback
12430 type.
12431 (struct search_symbols_data, search_symbols_file_matches)
12432 (search_symbols_name_matches): Delete.
12433 (search_symbols): Use a pair of lambdas.
12434 (struct add_name_data, add_macro_name, symbol_completion_matcher)
12435 (symtab_expansion_callback): Delete.
12436 (default_make_symbol_completion_list_break_on_1): Use lambdas.
12437 * symtab.h: Include "common/function-view.h".
12438 (iterate_over_some_symtabs): Adjust to use function_view as
12439 callback type and return bool.
12440 (iterate_over_symtabs): Adjust to use function_view as callback
12441 type.
12442 (symbol_found_callback_ftype): Remove 'data' parameter and return
12443 bool.
12444 (iterate_over_symbols): Adjust to use function_view as callback
12445 type.
12446
07e253aa
PA
124472017-02-23 Pedro Alves <palves@redhat.com>
12448
12449 * Makefile.in (SUBDIR_UNITTESTS_SRCS, SUBDIR_UNITTESTS_OBS): New.
12450 (%.o) <unittests/%.c>: New pattern.
12451 * configure.ac ($development): Add $(SUBDIR_UNITTESTS_OBS) to
12452 CONFIG_OBS, and $(SUBDIR_UNITTESTS_SRCS) to CONFIG_SRCS.
12453 * common/function-view.h: New file.
12454 * unittests/function-view-selftests.c: New file.
12455 * configure: Regenerate.
12456
8eaf5320
SM
124572017-02-23 Simon Marchi <simon.marchi@ericsson.com>
12458
12459 * bsd-uthread.c (bsd_uthread_thread_alive): Use ptid instead of
12460 inferior_ptid.
12461 * go32-nat.c (go32_thread_alive): Likewise.
12462
38768751
YQ
124632017-02-23 Yao Qi <yao.qi@linaro.org>
12464
12465 * varobj-iter.h (varobj_iter_delete): Call xfree instead of
12466 delete.
12467
0a8beaba
YQ
124682017-02-23 Yao Qi <yao.qi@linaro.org>
12469
12470 * varobj.c (varobj_clear_saved_item): Use delete instead of
12471 xfree.
12472 (update_dynamic_varobj_children): Likewise.
12473
58fdfd2c
JK
124742017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12475
12476 * dwarf2read.c (dwarf2_record_block_ranges): Add forgotten BASEADDR.
12477
1b90b139
SM
124782017-02-21 Simon Marchi <simon.marchi@ericsson.com>
12479
12480 * common/enum-flags.h (enum_flags::enum_flags): Initialize
12481 m_enum_value to 0 in default constructor.
12482
2039d74e
EBM
124832017-02-21 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12484
12485 * rs6000-tdep.c (LOAD_AND_RESERVE_MASK): Rename from LWARX_MASK.
12486 (STORE_CONDITIONAL_MASK): Rename from STWCX_MASK.
12487 (LBARX_INSTRUCTION, LHARX_INSTRUCTION, LQARX_INSTRUCTION,
12488 STBCX_INSTRUCTION, STHCX_INSTRUCTION, STQCX_INSTRUCTION): New defines.
12489 (IS_LOAD_AND_RESERVE_INSN, IS_STORE_CONDITIONAL_INSN): New macros.
12490 (ppc_displaced_step_copy_insn): Use IS_LOAD_AND_RESERVE_INSN.
12491 (ppc_deal_with_atomic_sequence): Use IS_LOAD_AND_RESERVE_INSN and
12492 IS_STORE_CONDITIONAL_INSN.
12493
7814882a
JK
124942017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12495
12496 * dwarf2_rnglists_process: Initialize range_beginning and range_end.
12497
0ae60b63
JK
124982017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12499
12500 * NEWS (Changes since GDB 7.12): Add DWARF-5.
12501
0224619f
JK
125022017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12503
12504 * dwarf2read.c (skip_one_die, read_attribute_value)
12505 (dwarf2_const_value_attr, dump_die_shallow)
12506 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
12507 (skip_form_bytes, attr_form_is_constant): Handle DW_FORM_data16.
12508
0af92d60
JK
125092017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12510
12511 * dwarf2read.c (read_file_scope): Rename DW_MACRO_GNU_*.
12512 (dwarf_parse_macro_header): Accept DWARF version 5.
12513 (dwarf_decode_macro_bytes, dwarf_decode_macros): Rename DW_MACRO_GNU_*.
12514
216f72a1
JK
125152017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12516
12517 * block.c (call_site_for_pc): Rename DW_OP_GNU_*, DW_TAG_GNU_* and
12518 DW_AT_GNU_*.
12519 * common/common-exceptions.h (enum errors): Likewise.
12520 * dwarf2-frame.c (class dwarf_expr_executor): Likewise.
12521 * dwarf2expr.c (dwarf_block_to_dwarf_reg)
12522 (dwarf_expr_context::execute_stack_op): Likewise.
12523 * dwarf2expr.h (struct dwarf_expr_context, struct dwarf_expr_piece):
12524 Likewise.
12525 * dwarf2loc.c (dwarf_evaluate_loc_desc::get_base_type)
12526 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12527 (show_entry_values_debug, call_site_to_target_addr)
12528 (func_addr_to_tail_call_list, func_verify_no_selftailcall)
12529 (dwarf_expr_reg_to_entry_parameter, dwarf_entry_parameter_to_value)
12530 (entry_data_value_free_closure, value_of_dwarf_reg_entry)
12531 (value_of_dwarf_block_entry, indirect_pieced_value)
12532 (symbol_needs_eval_context::push_dwarf_reg_entry_value):
12533 (disassemble_dwarf_expression): Likewise.
12534 * dwarf2read.c (process_die, inherit_abstract_dies)
12535 (read_call_site_scope): Likewise.
12536 * gdbtypes.h (struct func_type, struct call_site_parameter)
12537 (struct call_site): Likewise.
12538 * stack.c (read_frame_arg): Likewise.
12539 * std-operator.def (OP_VAR_ENTRY_VALUE): Likewise.
12540
43988095
JK
125412017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12542
12543 * defs.h (read_unsigned_leb128): New declaration.
12544 * dwarf2loc.c (decode_debug_loclists_addresses): New function.
12545 (decode_debug_loc_dwo_addresses): Update DEBUG_LOC_* to DW_LLE_*.
12546 (dwarf2_find_location_expression): Call also
12547 decode_debug_loclists_addresses. Handle DWARF-5 ULEB128 length.
12548 * dwarf2loc.h (dwarf2_version): New declaration.
12549 * dwarf2read.c (struct dwarf2_per_objfile): Add loclists, line_str,
12550 rnglists.
12551 (dwarf2_elf_names): Add .debug_loclists, .debug_line_str,
12552 .debug_rnglists.
12553 (struct dwop_section_names): Add loclists_dwo.
12554 (dwop_section_names): Add .debug_loclists.dwo.
12555 (struct comp_unit_head): Add unit_type, signature, type_offset_in_tu.
12556 (struct dwarf2_per_cu_data): Add dwarf_version.
12557 (struct dwo_sections): Add loclists.
12558 (struct attr_abbrev): Add implicit_const.
12559 (read_indirect_line_string): New declaration.
12560 (read_unsigned_leb128): Delete declaration.
12561 (rcuh_kind): New definition.
12562 (read_and_check_comp_unit_head): Change parameter
12563 is_debug_types_section to section_kind.
12564 (dwarf2_locate_sections): Handle loclists, line_str and rnglists.
12565 (read_comp_unit_head): Change parameter abfd to section, add parameter
12566 section_kind. Handle DWARF-5.
12567 (error_check_comp_unit_head): Accept also DWARF version 5.
12568 (read_and_check_comp_unit_head): Change parameter
12569 is_debug_types_section to section_kind.
12570 (read_and_check_type_unit_head): Delete function.
12571 (read_abbrev_offset): Handle DWARF-5.
12572 (create_debug_type_hash_table): Add parameter section_kind. Process
12573 only DW_UT_type. Use signature and type_offset_in_tu from struct
12574 comp_unit_head.
12575 (create_debug_types_hash_table): Update create_debug_type_hash_table
12576 caller.
12577 (create_all_type_units): Call create_debug_type_hash_table.
12578 (read_cutu_die_from_dwo, init_cutu_and_read_dies): Change
12579 read_and_check_type_unit_head caller to read_and_check_comp_unit_head
12580 caller.
12581 (skip_one_die): Handle DW_FORM_implicit_const.
12582 (dwarf2_rnglists_process): New function.
12583 (dwarf2_ranges_process): Call dwarf2_rnglists_process for DWARF-5.
12584 (abbrev_table_read_table): Handle DW_FORM_implicit_const.
12585 (read_attribute_value): Handle DW_FORM_implicit_const,
12586 DW_FORM_line_strp.
12587 (read_attribute): Handle DW_FORM_implicit_const.
12588 (read_indirect_string_at_offset_from): New function from
12589 read_indirect_string_at_offset.
12590 (read_indirect_string_at_offset): Call
12591 read_indirect_string_at_offset_from.
12592 (read_indirect_line_string_at_offset): New function.
12593 (read_indirect_string): New function comment.
12594 (read_indirect_line_string): New function.
12595 (read_unsigned_leb128): Make it global.
12596 (dwarf2_string_attr): Handle DWARF-5.
12597 (add_include_dir_stub, read_formatted_entries): New functions.
12598 (dwarf_decode_line_header, dump_die_shallow, cu_debug_loc_section):
12599 Handle DWARF-5.
12600 (per_cu_header_read_in): Update read_comp_unit_head caller.
12601 (dwarf2_version): New function.
12602 * symfile.h (struct dwarf2_debug_sections): Add loclists, line_str and
12603 rnglists.
12604 * xcoffread.c (dwarf2_xcoff_names): Update struct dwarf2_debug_sections
12605 fields.
12606
22d2f3ab
JK
126072017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12608
12609 * dwarf2read.c (abbrev_table_read_table): Read the data only once.
12610
5f46c5a5
JK
126112017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12612
12613 * dwarf2read.c (dwarf2_ranges_process): New function from
12614 dwarf2_ranges_read.
12615 (dwarf2_ranges_read, dwarf2_record_block_ranges): Use
12616 dwarf2_ranges_process.
12617
78d4d2c5
JK
126182017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12619
12620 * dwarf2read.c (create_debug_type_hash_table): New function from
12621 create_debug_types_hash_table.
12622 (create_debug_types_hash_table): Call create_debug_type_hash_table.
12623 (create_all_type_units, open_and_init_dwo_file): Update
12624 create_debug_types_hash_table callers.
12625
1b076f25
SDJ
126262017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12627
12628 PR gdb/16188
12629 * fork-child.c (trace_start_error): Fix thinko. va_end should
12630 refer to 'ap', not 'args'.
12631
0db8980c
SDJ
126322017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12633 Pedro Alves <palves@redhat.com>
12634
12635 PR gdb/16188
12636 * darwin-nat.c (darwin_ptrace_me): Check if calls to system
12637 calls succeeded.
12638 * fork-child.c (trace_start_error): New function.
12639 (trace_start_error_with_name): Likewise.
12640 * gnu-nat.c (gnu_ptrace_me): Check if call to PTRACE succeeded.
12641 * inf-ptrace.c (inf_ptrace_me): Likewise.
12642 * inferior.h (trace_start_error): New prototype.
12643 (trace_start_error_with_name): Likewise.
12644
99e8a4f9
SDJ
126452017-02-15 Sergio Durigan Junior <sergiodj@redhat.com>
12646
12647 PR gdb/21164
12648 * psymtab.c (maintenance_print_psymbols): Verify if 'argv' is not
12649 NULL before using it.
12650 * symmisc.c (maintenance_print_symbols): Likewise.
12651 (maintenance_print_msymbols): Likewise.
12652
4e746bb6
TW
126532017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12654
12655 * NEWS: Add record Python bindings entry.
12656
126572017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12658
12659 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
12660 py-record-full.o.
12661 (SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
12662 * python/py-record-btrace.c, python/py-record-btrace.h,
12663 python/py-record-full.c, python/py-record-full.h: New file.
12664 * python/py-record.c: Add include for py-record-btrace.h and
12665 py-record-full.h.
12666 (recpy_method, recpy_format, recpy_goto, recpy_replay_position,
12667 recpy_instruction_history, recpy_function_call_history, recpy_begin,
12668 recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
12669 * python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
12670 New definition.
12671 (gdbpy_initialize_btrace): New export.
12672 * python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
12673
126742017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12675
12676 * Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
12677 (SUBDIR_PYTHON_SRCS): Add python/py-record.c.
12678 * python/py-record.c: New file.
12679 * python/python-internal.h (gdbpy_start_recording,
12680 gdbpy_current_recording, gdpy_stop_recording,
12681 gdbpy_initialize_record): New export.
12682 * python/python.c (_initialize_python): Add gdbpy_initialize_record.
12683 (python_GdbMethods): Add gdbpy_start_recording,
12684 gdbpy_current_recording and gdbpy_stop_recording.
12685
126862017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12687
12688 * record-btrace.c (record_btrace_record_method): New function.
12689 (init_record_btrace_ops): Initialize to_record_method.
12690 * record-full.c (record_full_record_method): New function.
12691 (init_record_full_ops, init_record_full_core_ops): Add
12692 record_full_record_method.
12693 * record.h (enum record_method): New enum.
12694 * target-debug.h (target_debug_print_enum_record_method: New define.
12695 * target-delegates.c: Regenerate.
12696 * target.c (target_record_method): New function.
12697 * target.h: Include record.h.
12698 (struct target_ops) <to_record_method>: New field.
12699 (target_record_method): New export.
12700
127012017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12702
12703 * record.h (record_start, record_stop): New export.
12704 * record.c (record_start, record_stop): New function.
12705
127062017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12707
12708 * btrace.c (btrace_fetch): Copy function call segments pointer
12709 into a vector.
12710 (btrace_clear): Clear the vector.
12711 (btrace_find_insn_by_number): Use binary search to find the correct
12712 function call segment.
12713 * btrace.h (brace_fun_p): New typedef.
12714 (struct btrace_thread_info) <functions>: New field.
12715
127162017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12717
12718 * record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
12719 * btrace.c (btrace_decode_error): ... here. New function.
12720 * btrace.h (btrace_decode_error): New export.
12721
127222017-02-14 Tim Wiederhake <tim.wiederhake@intel.com>
12723
12724 * btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
12725 (ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
12726 btrace_find_insn_by_number): Remove special case for gaps.
12727 * btrace.h (btrace_insn_get_error): New export.
12728 (btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
12729 * record-btrace.c (btrace_insn_history): Print number for gaps.
12730 (record_btrace_info, record_btrace_goto): Handle gaps.
12731
3f77c769
TT
127322017-02-14 Tom Tromey <tom@tromey.com>
12733
12734 PR python/13598:
12735 * python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
12736 event.
12737 * python/py-evts.c (gdbpy_initialize_py_events): Add
12738 before_prompt registry.
12739 * python/py-events.h (events_object) <before_prompt>: New field.
12740
4c2c7ac6
MM
127412017-02-14 Markus Metzger <markus.t.metzger@intel.com>
12742
12743 * btrace.c (ftrace_new_switch): Preserve up link and flags.
12744
5cf30ebf
LM
127452017-02-13 Luis Machado <lgustavo@codesourcery.com>
12746
12747 * symfile (_initialize_symfile): Add usage text to the load command's
12748 help text.
12749
26a06916
SM
127502017-02-10 Simon Marchi <simon.marchi@ericsson.com>
12751
12752 * utils.c (defaulted_query): Don't query on secondary UIs.
12753
0b145e37
TT
127542017-02-10 Tom Tromey <tom@tromey.com>
12755
12756 * rust-lang.c (rust_get_disr_info): Remove unused variable.
12757
2d8365c4
TT
127582017-02-10 Tom Tromey <tom@tromey.com>
12759
12760 * python/py-value.c (valpy_richcompare_throw): Remove unnecessary
12761 "cleanup" local.
12762 * python/py-type.c (typy_legacy_template_argument): Remove
12763 unnecessary "cleanup" local.
12764
2bb8f231
TT
127652017-02-10 Tom Tromey <tom@tromey.com>
12766
12767 * python/python.c (do_start_initialization): New function, from
12768 _initialize_python.
12769 (_initialize_python): Call do_start_initialization.
12770 * python/py-linetable.c (ltpy_iternext): Use explicit returns, not
12771 goto.
12772
1bdfaf42
TT
127732017-02-10 Tom Tromey <tom@tromey.com>
12774
12775 * python/py-prettyprint.c (pretty_print_one_value): Use
12776 gdbpy_ref.
12777
88b6faea
TT
127782017-02-10 Tom Tromey <tom@tromey.com>
12779
12780 * python/py-cmd.c (cmdpy_destroyer): Use gdbpy_ref.
12781 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Use
12782 gdbpy_ref.
12783 * python/py-type.c (field_new): Use gdbpy_ref.
12784 * python/py-symtab.c (symtab_and_line_to_sal_object): Use
12785 gdbpy_ref.
12786 * python/py-progspace.c (pspy_new): Use gdbpy_ref.
12787 (py_free_pspace): Likewise.
12788 (pspace_to_pspace_object): Likewise.
12789 * python/py-objfile.c (objfpy_new): Use gdbpy_ref.
12790 (py_free_objfile): Likewise.
12791 (objfile_to_objfile_object): Likewise.
12792 * python/py-inferior.c (delete_thread_object): Use
12793 gdbpy_ref.
12794 (infpy_read_memory): Likewise.
12795 (py_free_inferior): Likewise.
12796 * python/py-evtregistry.c (create_eventregistry_object): Use
12797 gdbpy_ref.
12798 * python/py-event.c (create_event_object): Use gdbpy_ref.
12799
7780f186
TT
128002017-02-10 Tom Tromey <tom@tromey.com>
12801
12802 * python/py-ref.h (gdbpy_ref_policy): Now a template.
12803 (gdbpy_ref): Now a template; allow subclasses of PyObject to be
12804 used.
12805 * python/py-arch.c, python/py-bpevent.c, python/py-breakpoint.c,
12806 python/py-cmd.c, python/py-continueevent.c, python/py-event.c,
12807 python/py-exitedevent.c, python/py-finishbreakpoint.c,
12808 python/py-framefilter.c, python/py-function.c,
12809 python/py-inferior.c, python/py-infevents.c,
12810 python/py-linetable.c, python/py-newobjfileevent.c,
12811 python/py-param.c, python/py-prettyprint.c, python/py-ref.h,
12812 python/py-signalevent.c, python/py-stopevent.c,
12813 python/py-symbol.c, python/py-threadevent.c, python/py-type.c,
12814 python/py-unwind.c, python/py-utils.c, python/py-value.c,
12815 python/py-varobj.c, python/py-xmethods.c, python/python.c,
12816 varobj.c: Change gdbpy_ref to gdbpy_ref<>.
12817
d4b0bb18
TT
128182017-02-10 Tom Tromey <tom@tromey.com>
12819
12820 * ui-out.h (ui_out_emit_type): New class.
12821 (ui_out_emit_tuple, ui_out_emit_list): New typedefs.
12822 * python/py-framefilter.c (py_print_single_arg): Use gdb::optional
12823 and ui_out_emit_tuple.
12824 (enumerate_locals): Likewise.
12825 (py_mi_print_variables, py_print_locals, py_print_args): Use
12826 ui_out_emit_list.
12827 (py_print_frame): Use gdb::optional, ui_out_emit_tuple,
12828 ui_out_emit_list.
12829 * common/gdb_optional.h: New file.
12830
f67f945c
MG
128312017-02-10 Martin Galvan <martingalvan@sourceware.org>
12832
12833 * MAINTAINERS (Write After Approval): Update my e-mail address.
12834
18da0c51
MG
128352017-02-10 Martin Galvan <martingalvan@sourceware.org>
12836
12837 PR gdb/21122
12838 * breakpoint.c (_initialize_breakpoint): Update the help description
12839 of the 'commands' command to indicate that it takes a list argument.
12840
62c14536
SM
128412017-02-09 Simon Marchi <simon.marchi@ericsson.com>
12842
12843 * interps.c (current_interp_set_logging): Remove "return".
12844
ff6fa247
GB
128452017-02-09 Gary Benson <gbenson@redhat.com>
12846
12847 * symtab.c (add_symtab_completions): Prevent NULL pointer
12848 dereference.
12849
a474bd8e
PA
128502017-02-08 Pedro Alves <palves@redhat.com>
12851
12852 * interps.c (interp::interp): Remove reference to quiet_p.
12853 (interp_set): Make static. Remove dead "Switching to" output
12854 code.
12855 (interp_quiet_p, interp_set_quiet): Delete.
12856 (interpreter_exec_cmd): Don't set the interpreter quiet.
12857 * interps.h (interp_quiet_p): Make static.
12858 (class interp) <quiet_p>: Remove field
12859
3d7b173c
JG
128602017-02-08 Jerome Guitton <guitton@adacore.com>
12861
604c4576
JG
12862 * cli/cli-decode.c (find_command_name_length): Make it extern.
12863 * cli/cli-decode.h (find_command_name_length): Declare.
12864 * cli/cli-script.c (command_name_equals, line_first_arg):
12865 New functions.
12866 (process_next_line): Use cli-decode to parse command names.
12867 (build_command_line): Make args a constant pointer.
12868
128692017-02-08 Jerome Guitton <guitton@adacore.com>
6dbb839a 12870
3d7b173c
JG
12871 * cli-decode.c (lookup_cmd_1, lookup_cmd_composition):
12872 Remove case-insensitive search.
12873
1291063d
JM
128742017-02-07 Jose E. Marchesi <jose.marchesi@oracle.com>
12875
12876 * sparc-tdep.c (sparc32_gdbarch_init): Do not place a + operator
12877 at the end of the line. Avoids an ARI warning.
12878
20b477a7
LM
128792017-02-06 Luis Machado <lgustavo@codesourcery.com>
12880
12881 * NEWS: Mention support for record/replay of Intel 64 rdrand and
12882 rdseed instructions.
12883 i386-tdep.c (i386_process_record): Handle Intel 64 rdrand and rseed.
12884
3f7b46f2
IR
128852017-02-06 Ivo Raisr <ivo.raisr@oracle.com>
12886
12887 PR tdep/20936
12888 Provide and use sparc32 and sparc64 target description XML files.
12889 * features/sparc/sparc32-cp0.xml, features/sparc/sparc32-cpu.xml,
12890 features/sparc/sparc32-fpu.xml: New files for sparc 32-bit.
12891 * features/sparc/sparc64-cp0.xml, features/sparc/sparc64-cpu.xml,
12892 features/sparc/sparc64-fpu.xml: New files for sparc 64-bit.
12893 * features/sparc/sparc32-solaris.xml: New file.
12894 * features/sparc/sparc64-solaris.xml: New file.
12895 * features/sparc/sparc32-solaris.c: Generated.
12896 * features/sparc/sparc64-solaris.c: Generated.
12897 * sparc-tdep.h: Account for differences in target descriptions.
12898 * sparc-tdep.c (sparc32_register_name): Use target provided registers.
12899 (sparc32_register_type): Use target provided registers.
12900 (validate_tdesc_registers): New function.
12901 (sparc32_gdbarch_init): Use tdesc_has_registers.
12902 Set pseudoregister functions.
12903 * sparc64-tdep.c (sparc64_register_name): Use target provided registers.
12904 (sparc64_register_type): Use target provided registers.
12905 (sparc64_init_abi): Set pseudoregister functions.
12906
f0fd41c1
TT
129072017-02-03 Tom Tromey <tom@tromey.com>
12908
12909 PR rust/21097:
12910 * rust-lang.c (rust_print_type) <TYPE_CODE_UNION>: Handle enums
12911 with a single member.
12912
d6f9b0fb
PA
129132017-02-03 Pedro Alves <palves@redhat.com>
12914
12915 * cli/cli-interp.c (cli_interp_base::cli_interp_base)
12916 (cli_interp_base::~cli_interp_base): New.
12917 (cli_interp): New struct.
12918 (as_cli_interp): Cast the interp itself to cli_interp.
12919 (cli_interpreter_pre_command_loop): Rename to ...
12920 (cli_interp_base::pre_command_loop): ... this. Remove 'self'
12921 parameter.
12922 (cli_interpreter_init): Rename to ...
12923 (cli_interp::init): ... this. Remove 'self' parameter. Use
12924 boolean. Make extern.
12925 (cli_interpreter_resume): Rename to ...
12926 (cli_interp::resume): ... this. Remove 'data' parameter. Make
12927 extern.
12928 (cli_interpreter_suspend): Rename to ...
12929 (cli_interp::suspend): ... this. Remove 'data' parameter. Make
12930 extern.
12931 (cli_interpreter_exec): Rename to ...
12932 (cli_interp::exec): ... this. Remove 'data' parameter. Make
12933 extern.
12934 (cli_interpreter_supports_command_editing): Rename to ...
12935 (cli_interp_base::supports_command_editing): ... this. Remove
12936 'interp' parameter. Make extern.
12937 (cli_ui_out): Rename to ...
12938 (cli_interp::interp_ui_out): ... this. Remove 'interp' parameter.
12939 Make extern.
12940 (cli_set_logging): Rename to ...
12941 (cli_interp_base::set_logging): ... this. Remove 'interp'
12942 parameter. Make extern.
12943 (cli_interp_procs): Delete.
12944 (cli_interp_factory): Adjust to use "new".
12945 * cli/cli-interp.h: Include "interps.h".
12946 (struct cli_interp_base): New struct.
12947 * interps.c (struct interp): Delete. Fields moved to interps.h.
12948 (interp_new): Delete.
12949 (interp::interp, interp::~interp): New.
12950 (interp_set): Use bool, and return void. Assume the interpreter
12951 has suspend, init and resume methods, and that the all return
12952 void.
12953 (set_top_level_interpreter): interp_set returns void.
12954 (interp_ui_out): Adapt.
12955 (current_interp_set_logging): Adapt.
12956 (interp_data): Delete.
12957 (interp_pre_command_loop, interp_supports_command_editing): Adapt.
12958 (interp_exec): Adapt.
12959 (top_level_interpreter_data): Delete.
12960 * interps.h (interp_init_ftype, interp_resume_ftype)
12961 (interp_suspend_ftype, interp_exec_ftype)
12962 (interp_pre_command_loop_ftype, interp_ui_out_ftype): Delete.
12963 (class interp): New.
12964 (interp_new): Delete.
12965 (interp_set): Now returns void. Use bool.
12966 (interp_data, top_level_interpreter_data): Delete.
12967 * mi/mi-common.h: Include interps.h.
12968 (class mi_interp): Inherit from interp. Define a ctor. Declare
12969 init, resume, suspect, exec, interp_ui_out, set_logging and
12970 pre_command_loop methods.
12971 * mi/mi-interp.c (as_mi_interp): Cast the interp itself.
12972 (mi_interpreter_init): Rename to ...
12973 (mi_interp::init): ... this. Remove the 'interp' parameter, use
12974 bool, return void and make extern. Adjust.
12975 (mi_interpreter_resume): ... Rename to ...
12976 (mi_interp::resume): ... this. Remove the 'data' parameter,
12977 return void and make extern. Adjust.
12978 (mi_interpreter_suspend): ... Rename to ...
12979 (mi_interp::suspend): ... this. Remove the 'data' parameter,
12980 return void and make extern. Adjust.
12981 (mi_interpreter_exec): ... Rename to ...
12982 (mi_interp::exec): ... this. Remove the 'data' parameter and make
12983 extern. Adjust.
12984 (mi_interpreter_pre_command_loop): ... Rename to ...
12985 (mi_interp::pre_command_loop): ... this. Remove the 'self'
12986 parameter and make extern.
12987 (mi_on_normal_stop_1): Adjust.
12988 (mi_ui_out): Rename to ...
12989 (mi_interp::interp_ui_out): ... this. Remove the 'interp'
12990 parameter and make extern. Adjust.
12991 (mi_set_logging): Rename to ...
12992 (mi_interp::set_logging): ... this. Remove the 'interp'
12993 parameter and make extern. Adjust.
12994 (mi_interp_procs): Delete.
12995 (mi_interp_factory): Adjust to use 'new'.
12996 * mi/mi-main.c (mi_cmd_gdb_exit, captured_mi_execute_command)
12997 (mi_print_exception, mi_execute_command, mi_load_progress):
12998 Adjust.
12999 * tui/tui-interp.c (tui_interp): New class.
13000 (as_tui_interp): Return a tui_interp pointer.
13001 (tui_on_normal_stop, tui_on_signal_received)
13002 (tui_on_end_stepping_range, tui_on_signal_exited, tui_on_exited)
13003 (tui_on_no_history, tui_on_user_selected_context_changed): Adjust
13004 to use interp::interp_ui_out.
13005 (tui_init): Rename to ...
13006 (tui_interp::init): ... this. Remove the 'self' parameter, use
13007 bool, return void and make extern. Adjust.
13008 (tui_resume): Rename to ...
13009 (tui_interp::resume): ... this. Remove the 'data' parameter,
13010 return void and make extern. Adjust.
13011 (tui_suspend): Rename to ...
13012 (tui_interp::suspend): ... this. Remove the 'data' parameter,
13013 return void and make extern. Adjust.
13014 (tui_ui_out): Rename to ...
13015 (tui_interp::interp_ui_out): ... this. Remove the 'self'
13016 parameter, and make extern. Adjust.
13017 (tui_exec): Rename to ...
13018 (tui_interp::exec): ... this. Remove the 'data' parameter and
13019 make extern.
13020 (tui_interp_procs): Delete.
13021 (tui_interp_factory): Use "new".
13022
65c40c95
TT
130232017-02-02 Tom Tromey <tom@tromey.com>
13024
13025 * rust-exp.y (ends_raw_string, space_then_number)
13026 (rust_identifier_start_p): Return bool.
13027 * rust-lang.c (rust_tuple_type_p, rust_underscore_fields)
13028 (rust_tuple_struct_type_p, rust_tuple_variant_type_p)
13029 (rust_slice_type_p, rust_range_type_p, rust_u8_type_p)
13030 (rust_chartype_p): Return bool.
13031 (val_print_struct, rust_print_struct_def, rust_print_type):
13032 Update.
13033 * rust-lang.h (rust_tuple_type_p, rust_tuple_struct_type_p):
13034 Return bool.
13035
b50f188d
TT
130362017-02-02 Tom Tromey <tom@tromey.com>
13037
13038 * rust-lang.c: Reindent.
13039
03c85b11
TT
130402017-02-02 Tom Tromey <tom@tromey.com>
13041
13042 * rust-lang.h (rust_crate_for_block): Update.
13043 * rust-lang.c (rust_crate_for_block): Return std::string.
13044 (rust_get_disr_info): Use std:;string, not
13045 gdb::unique_xmalloc_ptr.
13046 * rust-exp.y (crate_name): Update.
13047
9b6da501
PA
130482017-02-02 Pedro Alves <palves@redhat.com>
13049
13050 * disasm-selftests.c (print_one_insn_test): Move the "verbose"
13051 field out of gdb_disassembler_test and make it static.
13052
ec4cb20b
PA
130532017-02-02 Pedro Alves <palves@redhat.com>
13054
13055 * mi/mi-common.h (struct mi_interp): Delete the mi2_interp,
13056 mi1_interp and mi_interp fields.
13057
5be5dbf0
PA
130582017-02-02 Pedro Alves <palves@redhat.com>
13059
616268b6
PA
13060 * cli/cli-interp.c (struct saved_output_files, saved_output):
13061 Moved from cli/cli-logging.c.
13062 (cli_set_logging): New function.
13063 (cli_interp_procs): Install cli_set_logging.
13064 * cli/cli-interp.h (make_logging_output, cli_set_logging):
13065 Declare.
13066 * cli/cli-logging.c (struct saved_output_files, saved_output):
13067 Moved to cli/cli-interp.c.
13068 (pop_output_files): Don't save outputs here.
13069 (make_logging_output): New function.
13070 (handle_redirections): Don't build tee nor save previous outputs
13071 here.
13072 * interps.c (current_interp_set_logging): Change prototype.
13073 Assume there's always a set_logging_proc method installed.
13074 * interps.h (interp_set_logging_ftype): Change prototype.
13075 (current_interp_set_logging): Change prototype and adjust comment.
13076 * mi/mi-interp.c (mi_set_logging): Change protototype. Adjust to
13077 use make_logging_output.
13078 * tui/tui-interp.c (tui_interp_procs): Install cli_set_logging.
130792017-02-02 Pedro Alves <palves@redhat.com>
13080
5be5dbf0
PA
13081 * cli/cli-logging.c (maybe_warn_already_logging): New factored out
13082 from ...
13083 (set_logging_overwrite): ... here.
13084 (logging_no_redirect_file): Delete.
13085 (set_logging_redirect): Don't handle redirection on the fly.
13086 Instead warn that "logging off" / "logging on" is necessary.
13087 (pop_output_files): Delete references to logging_no_redirect_file.
13088 (show_logging_command): Always speak in terms of what will happen
13089 once logging is reenabled.
13090
c99cc448
PA
130912017-02-02 Pedro Alves <palves@redhat.com>
13092
13093 * disasm.h (gdb_pretty_print_disassembler): Tweak intro comment.
13094
8b172ce7
PA
130952017-02-02 Pedro Alves <palves@redhat.com>
13096
13097 * disasm.c (gdb_pretty_print_insn): Rename to ...
13098 (gdb_pretty_print_disassembler::pretty_print_insn): ... this.
13099 Remove gdbarch parameter. Adapt to clear the object's buffers
13100 instead of allocating new buffers, and to print using the object's
13101 gdb_disassembler instead of calling gdb_print_insn.
13102 (dump_insns): Use gdb_pretty_print_disassembler.
13103 * disasm.h (gdb_pretty_print_insn): Delete declaration.
13104 (gdb_pretty_print_disassembler): New class.
13105 * record-btrace.c (btrace_insn_history): Use
13106 gdb_pretty_print_disassembler.
13107
d7e74731
PA
131082017-02-02 Pedro Alves <palves@redhat.com>
13109
13110 * ada-lang.c (type_as_string): Use string_file.
13111 * ada-valprint.c (ada_print_floating): Use string_file.
13112 * ada-varobj.c (ada_varobj_scalar_image)
13113 (ada_varobj_get_value_image): Use string_file.
13114 * aix-thread.c (aix_thread_extra_thread_info): Use string_file.
13115 * arm-tdep.c (_initialize_arm_tdep): Use string_printf.
13116 * breakpoint.c (update_inserted_breakpoint_locations)
13117 (insert_breakpoint_locations, reattach_breakpoints)
13118 (print_breakpoint_location, print_one_detail_ranged_breakpoint)
13119 (print_it_watchpoint): Use string_file.
13120 (save_breakpoints): Use stdio_file.
13121 * c-exp.y (oper): Use string_file.
13122 * cli/cli-logging.c (set_logging_redirect): Use ui_file_up and
13123 tee_file.
13124 (pop_output_files): Use delete.
13125 (handle_redirections): Use stdio_file and tee_file.
13126 * cli/cli-setshow.c (do_show_command): Use string_file.
13127 * compile/compile-c-support.c (c_compute_program): Use
13128 string_file.
13129 * compile/compile-c-symbols.c (generate_vla_size): Take a
13130 'string_file &' instead of a 'ui_file *'.
13131 (generate_c_for_for_one_variable): Take a 'string_file &' instead
13132 of a 'ui_file *'. Use string_file.
13133 (generate_c_for_variable_locations): Take a 'string_file &'
13134 instead of a 'ui_file *'.
13135 * compile/compile-internal.h (generate_c_for_for_one_variable):
13136 Take a 'string_file &' instead of a 'ui_file *'.
13137 * compile/compile-loc2c.c (push, pushf, unary, binary)
13138 (print_label, pushf_register_address, pushf_register)
13139 (do_compile_dwarf_expr_to_c): Take a 'string_file &' instead of a
13140 'ui_file *'. Adjust.
13141 * compile/compile.c (compile_to_object): Use string_file.
13142 * compile/compile.h (compile_dwarf_expr_to_c)
13143 (compile_dwarf_bounds_to_c): Take a 'string_file &' instead of a
13144 'ui_file *'.
13145 * cp-support.c (inspect_type): Use string_file and obstack_copy0.
13146 (replace_typedefs_qualified_name): Use string_file and
13147 obstack_copy0.
13148 * disasm.c (gdb_pretty_print_insn): Use string_file.
13149 (gdb_disassembly): Adjust reference the null_stream global.
13150 (do_ui_file_delete): Delete.
13151 (gdb_insn_length): Use null_stream.
13152 * dummy-frame.c (maintenance_print_dummy_frames): Use stdio_file.
13153 * dwarf2loc.c (dwarf2_compile_property_to_c)
13154 (locexpr_generate_c_location, loclist_generate_c_location): Take a
13155 'string_file &' instead of a 'ui_file *'.
13156 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise.
13157 * dwarf2read.c (do_ui_file_peek_last): Delete.
13158 (dwarf2_compute_name): Use string_file.
13159 * event-top.c (gdb_setup_readline): Use stdio_file.
13160 * gdbarch.sh (verify_gdbarch): Use string_file.
13161 * gdbtypes.c (safe_parse_type): Use null_stream.
13162 * guile/scm-breakpoint.c (gdbscm_breakpoint_commands): Use
13163 string_file.
13164 * guile/scm-disasm.c (gdbscm_print_insn_from_port): Take a
13165 'string_file *' instead of a 'ui_file *'.
13166 (gdbscm_arch_disassemble): Use string_file.
13167 * guile/scm-frame.c (frscm_print_frame_smob): Use string_file.
13168 * guile/scm-ports.c (class ioscm_file_port): Now a class that
13169 inherits from ui_file.
13170 (ioscm_file_port_delete, ioscm_file_port_rewind)
13171 (ioscm_file_port_put): Delete.
13172 (ioscm_file_port_write): Rename to ...
13173 (ioscm_file_port::write): ... this. Remove file_port_magic
13174 checks.
13175 (ioscm_file_port_new): Delete.
13176 (ioscm_with_output_to_port_worker): Use ioscm_file_port and
13177 ui_file_up.
13178 * guile/scm-type.c (tyscm_type_name): Use string_file.
13179 * guile/scm-value.c (vlscm_print_value_smob, gdbscm_value_print):
13180 Use string_file.
13181 * infcmd.c (print_return_value_1): Use string_file.
13182 * infrun.c (print_target_wait_results): Use string_file.
13183 * language.c (add_language): Use string_file.
13184 * location.c (explicit_to_string_internal): Use string_file.
13185 * main.c (captured_main_1): Use null_file.
13186 * maint.c (maintenance_print_architecture): Use stdio_file.
13187 * mi/mi-cmd-stack.c (list_arg_or_local): Use string_file.
13188 * mi/mi-common.h (struct mi_interp) <out, err, log, targ,
13189 event_channel>: Change type to mi_console_file pointer.
13190 * mi/mi-console.c (mi_console_file_fputs, mi_console_file_flush)
13191 (mi_console_file_delete): Delete.
13192 (struct mi_console_file): Delete.
13193 (mi_console_file_magic): Delete.
13194 (mi_console_file_new): Delete.
13195 (mi_console_file::mi_console_file): New.
13196 (mi_console_file_delete): Delete.
13197 (mi_console_file_fputs): Delete.
13198 (mi_console_file::write): New.
13199 (mi_console_raw_packet): Delete.
13200 (mi_console_file::flush): New.
13201 (mi_console_file_flush): Delete.
13202 (mi_console_set_raw): Rename to ...
13203 (mi_console_file::set_raw): ... this.
13204 * mi/mi-console.h (class mi_console_file): New class.
13205 (mi_console_file_new, mi_console_set_raw): Delete.
13206 * mi/mi-interp.c (mi_interpreter_init): Use mi_console_file.
13207 (mi_set_logging): Use delete and tee_file. Adjust.
13208 * mi/mi-main.c (output_register): Use string_file.
13209 (mi_cmd_data_evaluate_expression): Use string_file.
13210 (mi_cmd_data_read_memory): Use string_file.
13211 (mi_cmd_execute, print_variable_or_computed): Use string_file.
13212 * mi/mi-out.c (mi_ui_out::main_stream): New.
13213 (mi_ui_out::rewind): Use main_stream and
13214 string_file.
13215 (mi_ui_out::put): Use main_stream and string_file.
13216 (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
13217 Allocate a 'string_file' instead.
13218 (mi_out_new): Don't allocate a mem_fileopen stream here.
13219 * mi/mi-out.h (mi_ui_out::mi_ui_out): Remove 'stream' parameter.
13220 (mi_ui_out::main_stream): Declare method.
13221 * printcmd.c (eval_command): Use string_file.
13222 * psymtab.c (maintenance_print_psymbols): Use stdio_file.
13223 * python/py-arch.c (archpy_disassemble): Use string_file.
13224 * python/py-breakpoint.c (bppy_get_commands): Use string_file.
13225 * python/py-frame.c (frapy_str): Use string_file.
13226 * python/py-framefilter.c (py_print_type, py_print_single_arg):
13227 Use string_file.
13228 * python/py-type.c (typy_str): Use string_file.
13229 * python/py-unwind.c (unwind_infopy_str): Use string_file.
13230 * python/py-value.c (valpy_str): Use string_file.
13231 * record-btrace.c (btrace_insn_history): Use string_file.
13232 * regcache.c (regcache_print): Use stdio_file.
13233 * reggroups.c (maintenance_print_reggroups): Use stdio_file.
13234 * remote.c (escape_buffer): Use string_file.
13235 * rust-lang.c (rust_get_disr_info): Use string_file.
13236 * serial.c (serial_open_ops_1): Use stdio_file.
13237 (do_serial_close): Use delete.
13238 * stack.c (print_frame_arg): Use string_file.
13239 (print_frame_args): Remove local mem_fileopen stream, not used.
13240 (print_frame): Use string_file.
13241 * symmisc.c (maintenance_print_symbols): Use stdio_file.
13242 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
13243 Take a 'string_file *' instead of a 'ui_file *'.
13244 * top.c (new_ui): Use stdio_file and stderr_file.
13245 (free_ui): Use delete.
13246 (execute_command_to_string): Use string_file.
13247 (quit_confirm): Use string_file.
13248 * tracepoint.c (collection_list::append_exp): Use string_file.
13249 * tui/tui-disasm.c (tui_disassemble): Use string_file.
13250 * tui/tui-file.c: Don't include "ui-file.h".
13251 (enum streamtype, struct tui_stream): Delete.
13252 (tui_file_new, tui_file_delete, tui_fileopen, tui_sfileopen)
13253 (tui_file_isatty, tui_file_rewind, tui_file_put): Delete.
13254 (tui_file::tui_file): New method.
13255 (tui_file_fputs): Delete.
13256 (tui_file_get_strbuf): Delete.
13257 (tui_file::puts): New method.
13258 (tui_file_adjust_strbuf): Delete.
13259 (tui_file_flush): Delete.
13260 (tui_file::flush): New method.
13261 * tui/tui-file.h: Tweak intro comment.
13262 Include ui-file.h.
13263 (tui_fileopen, tui_sfileopen, tui_file_get_strbuf)
13264 (tui_file_adjust_strbuf): Delete declarations.
13265 (class tui_file): New class.
13266 * tui/tui-io.c (tui_initialize_io): Use tui_file.
13267 * tui/tui-regs.c (tui_restore_gdbout): Use delete.
13268 (tui_register_format): Use string_stream.
13269 * tui/tui-stack.c (tui_make_status_line): Use string_file.
13270 (tui_get_function_from_frame): Use string_file.
13271 * typeprint.c (type_to_string): Use string_file.
13272 * ui-file.c (struct ui_file, ui_file_magic, ui_file_new): Delete.
13273 (null_stream): New global.
13274 (ui_file_delete): Delete.
13275 (ui_file::ui_file): New.
13276 (null_file_isatty): Delete.
13277 (ui_file::~ui_file): New.
13278 (null_file_rewind): Delete.
13279 (ui_file::printf): New.
13280 (null_file_put): Delete.
13281 (null_file_flush): Delete.
13282 (ui_file::putstr): New.
13283 (null_file_write): Delete.
13284 (ui_file::putstrn): New.
13285 (null_file_read): Delete.
13286 (ui_file::putc): New.
13287 (null_file_fputs): Delete.
13288 (null_file_write_async_safe): Delete.
13289 (ui_file::vprintf): New.
13290 (null_file_delete): Delete.
13291 (null_file::write): New.
13292 (null_file_fseek): Delete.
13293 (null_file::puts): New.
13294 (ui_file_data): Delete.
13295 (null_file::write_async_safe): New.
13296 (gdb_flush, ui_file_isatty): Adjust.
13297 (ui_file_put, ui_file_rewind): Delete.
13298 (ui_file_write): Adjust.
13299 (ui_file_write_for_put): Delete.
13300 (ui_file_write_async_safe, ui_file_read): Adjust.
13301 (ui_file_fseek): Delete.
13302 (fputs_unfiltered): Adjust.
13303 (set_ui_file_flush, set_ui_file_isatty, set_ui_file_rewind)
13304 (set_ui_file_put, set_ui_file_write, set_ui_file_write_async_safe)
13305 (set_ui_file_read, set_ui_file_fputs, set_ui_file_fseek)
13306 (set_ui_file_data): Delete.
13307 (string_file::~string_file, string_file::write)
13308 (struct accumulated_ui_file, do_ui_file_xstrdup, ui_file_xstrdup)
13309 (do_ui_file_as_string, ui_file_as_string): Delete.
13310 (do_ui_file_obsavestring, ui_file_obsavestring): Delete.
13311 (struct mem_file): Delete.
13312 (mem_file_new): Delete.
13313 (stdio_file::stdio_file): New.
13314 (mem_file_delete): Delete.
13315 (stdio_file::stdio_file): New.
13316 (mem_fileopen): Delete.
13317 (stdio_file::~stdio_file): New.
13318 (mem_file_rewind): Delete.
13319 (stdio_file::set_stream): New.
13320 (mem_file_put): Delete.
13321 (stdio_file::open): New.
13322 (mem_file_write): Delete.
13323 (stdio_file_magic, struct stdio_file): Delete.
13324 (stdio_file_new, stdio_file_delete, stdio_file_flush): Delete.
13325 (stdio_file::flush): New.
13326 (stdio_file_read): Rename to ...
13327 (stdio_file::read): ... this. Adjust.
13328 (stdio_file_write): Rename to ...
13329 (stdio_file::write): ... this. Adjust.
13330 (stdio_file_write_async_safe): Rename to ...
13331 (stdio_file::write_async_safe) ... this. Adjust.
13332 (stdio_file_fputs): Rename to ...
13333 (stdio_file::puts) ... this. Adjust.
13334 (stdio_file_isatty): Delete.
13335 (stdio_file_fseek): Delete.
13336 (stdio_file::isatty): New.
13337 (stderr_file_write): Rename to ...
13338 (stderr_file::write) ... this. Adjust.
13339 (stderr_file_fputs): Rename to ...
13340 (stderr_file::puts) ... this. Adjust.
13341 (stderr_fileopen, stdio_fileopen, gdb_fopen): Delete.
13342 (stderr_file::stderr_file): New.
13343 (tee_file_magic): Delete.
13344 (struct tee_file): Delete.
13345 (tee_file::tee_file): New.
13346 (tee_file_new): Delete.
13347 (tee_file::~tee_file): New.
13348 (tee_file_delete): Delete.
13349 (tee_file_flush): Rename to ...
13350 (tee_file::flush): ... this. Adjust.
13351 (tee_file_write): Rename to ...
13352 (tee_file::write): ... this. Adjust.
13353 (tee_file::write_async_safe): New.
13354 (tee_file_fputs): Rename to ...
13355 (tee_file::puts): ... this. Adjust.
13356 (tee_file_isatty): Rename to ...
13357 (tee_file::isatty): ... this. Adjust.
13358 * ui-file.h (struct obstack, struct ui_file): Don't
13359 forward-declare.
13360 (ui_file_new, ui_file_flush_ftype, set_ui_file_flush)
13361 (ui_file_write_ftype)
13362 (set_ui_file_write, ui_file_fputs_ftype, set_ui_file_fputs)
13363 (ui_file_write_async_safe_ftype, set_ui_file_write_async_safe)
13364 (ui_file_read_ftype, set_ui_file_read, ui_file_isatty_ftype)
13365 (set_ui_file_isatty, ui_file_rewind_ftype, set_ui_file_rewind)
13366 (ui_file_put_method_ftype, ui_file_put_ftype, set_ui_file_put)
13367 (ui_file_delete_ftype, set_ui_file_data, ui_file_fseek_ftype)
13368 (set_ui_file_fseek): Delete.
13369 (ui_file_data, ui_file_delete, ui_file_rewind)
13370 (struct ui_file): New.
13371 (ui_file_up): New.
13372 (class null_file): New.
13373 (null_stream): Declare.
13374 (ui_file_write_for_put, ui_file_put): Delete.
13375 (ui_file_xstrdup, ui_file_as_string, ui_file_obsavestring):
13376 Delete.
13377 (ui_file_fseek, mem_fileopen, stdio_fileopen, stderr_fileopen)
13378 (gdb_fopen, tee_file_new): Delete.
13379 (struct string_file): New.
13380 (struct stdio_file): New.
13381 (stdio_file_up): New.
13382 (struct stderr_file): New.
13383 (class tee_file): New.
13384 * ui-out.c (ui_out::field_stream): Take a 'string_file &' instead
13385 of a 'ui_file *'. Adjust.
13386 * ui-out.h (class ui_out) <field_stream>: Likewise.
13387 * utils.c (do_ui_file_delete, make_cleanup_ui_file_delete)
13388 (null_stream): Delete.
13389 (error_stream): Take a 'string_file &' instead of a 'ui_file *'.
13390 Adjust.
13391 * utils.h (struct ui_file): Delete forward declaration..
13392 (make_cleanup_ui_file_delete, null_stream): Delete declarations.
13393 (error_stream): Take a 'string_file &' instead of a
13394 'ui_file *'.
13395 * varobj.c (varobj_value_get_print_value): Use string_file.
13396 * xtensa-tdep.c (xtensa_verify_config): Use string_file.
13397 * gdbarch.c: Regenerate.
13398
187808b0
PA
133992017-02-02 Pedro Alves <palves@redhat.com>
13400
13401 * disasm.c (gdb_disassembler::pretty_print_insn): Rename to...
13402 (gdb_pretty_print_insn): ... this. Now a free function. Add back
13403 a 'gdbarch' parameter. Allocate a mem_fileopen stream here.
13404 Adjust to call gdb_print_insn instead of
13405 gdb_disassembler::print_insn.
13406 (dump_insns, do_mixed_source_and_assembly_deprecated)
13407 (do_mixed_source_and_assembly, do_assembly_only): Add back a
13408 'gdbarch' parameter. Remove gdb_disassembler parameter.
13409 (gdb_disassembly): Don't allocate a gdb_disassembler here.
13410 * disasm.h (gdb_disassembler::pretty_print_insn): Delete
13411 declaration.
13412 (gdb_pretty_print_insn): Re-add declaration.
13413 * record-btrace.c (btrace_insn_history): Don't allocate a
13414 gdb_disassembler here. Adjust to call gdb_pretty_print_insn.
13415
7a8eb317
SM
134162017-02-01 Simon Marchi <simon.marchi@polymtl.ca>
13417
13418 * disasm.h (gdb_disassembly): Remove file_string parameter.
13419 * disasm.c (gdb_disassembly): Likewise.
13420 * cli/cli-cmds.c (print_disassembly): Adapt.
13421 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
13422 * stack.c (do_gdb_disassembly): Likewise.
13423
7346ef59
AA
134242017-02-01 Andreas Arnez <arnez@linux.vnet.ibm.com>
13425
13426 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): For
13427 DWARF_VALUE_LITERAL, no longer ignore the offset on big-endian
13428 targets. And if the implicit value is longer than needed, extract
13429 the first bytes instead of the "least significant" ones.
13430
cd4007e4
MM
134312017-02-01 Markus Metzger <markus.t.metzger@intel.com>
13432
13433 * btrace.c (btrace_enable): Do not call btrace_add_pc for
13434 BTRACE_FORMAT_PT or if can_access_registers_ptid returns false.
13435 (btrace_fetch): Assert can_access_registers_ptid.
13436 * record-btrace.c (require_btrace_thread, record_btrace_info): Call
13437 validate_registers_access.
13438
cf77c34e
MM
134392017-02-01 Markus Metzger <markus.t.metzger@intel.com>
13440
13441 * gdbthread.h (can_access_registers_ptid): New.
13442 * thread.c (can_access_registers_ptid): New.
13443
be85ce7d
PA
134442017-02-01 Pedro Alves <palves@redhat.com>
13445
13446 * i386-tdep.c (i386_fast_tracepoint_valid_at): Use gdb_insn_length.
13447
29b0b251
PA
134482017-01-31 Pedro Alves <palves@redhat.com>
13449
13450 * mi/mi-interp.c (mi_breakpoint_created, mi_breakpoint_modified):
13451 Fix typos.
13452
289b5b24
PA
134532017-01-31 Pedro Alves <palves@redhat.com>
13454
13455 * stack.c (print_frame_args): Remove local mem_fileopen stream,
13456 not used.
13457
b47413b4
PA
134582017-01-31 Pedro Alves <palves@redhat.com>
13459
13460 * varobj.c (varobj_value_get_print_value): Remove xstrdup call.
13461
60adb36c
PA
134622017-01-31 Pedro Alves <palves@redhat.com>
13463
13464 * common/scoped_restore.h
13465 (scoped_restore_tmpl::scoped_restore_tmpl): Template on T2, and
13466 change the value's parameter type to T2.
13467 (make_scoped_restore): Likewise.
13468
2735833d
WT
134692017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13470 Richard Henderson <rth@redhat.com>
13471
13472 * amd64-linux-nat.c (PTRACE_ARCH_PRCTL): New define.
13473 (amd64_linux_fetch_inferior_registers): Add case to fetch FS_BASE
13474 GS_BASE for older kernels.
13475 (amd64_linux_store_inferior_registers): Add case to store FS_BASE
13476 GS_BASE for older kernels.
13477 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Add FS_BASE
13478 and GS_BASE to the offset table.
13479 (amd64_linux_register_reggroup_p): Add FS_BASE and GS_BASE to the
13480 system register group.
13481 * amd64-nat.c (amd64_native_gregset_reg_offset): Implements case
13482 for older kernels.
13483 * amd64-tdep.c (amd64_init_abi): Add segment registers for the
13484 amd64 ABI.
13485 * amd64-tdep.h (amd64_regnum): Add AMD64_FSBASE_REGNUM and
13486 AMD64_GSBASE_REGNUM.
13487 (AMD64_NUM_REGS): Set to AMD64_GSBASE_REGNUM + 1.
13488 * features/Makefile (amd64-linux.dat, amd64-avx-linux.dat)
13489 (amd64-mpx-linux.dat, amd64-avx512-linux.dat, x32-linux.dat)
13490 (x32-avx-linux.dat, x32-avx512-linux.dat): Add
13491 i386/64bit-segments.xml in those rules.
13492 * features/i386/64bit-segments.xml: New file.
13493 * features/i386/amd64-avx-mpx-linux.xml: Add 64bit-segments.xml.
13494 * features/i386/amd64-avx-linux.xml: Add 64bit-segments.xml.
13495 * features/i386/amd64-avx512-linux.xml: Add 64bit-segments.xml.
13496 * features/i386/amd64-mpx-linux.xml: Add 64bit-segments.xml.
13497 * features/i386/x32-avx512-linux.xml: Add 64bit-segments.xml.
13498 * features/i386/x32-avx-linux.xml: Add 64bit-segments.xml.
13499 * features/i386/amd64-linux.xml: Add 64bit-segments.xml.
13500 * features/i386/amd64-avx-linux.c: Regenerated.
13501 * features/i386/amd64-avx-mpx-linux.c: Regenerated.
13502 * features/i386/amd64-avx-mpx.c: Regenerated.
13503 * features/i386/amd64-avx512-linux.c: Regenerated.
13504 * features/i386/amd64-linux.c: Regenerated.
13505 * features/i386/amd64-mpx-linux.c: Regenerated.
13506 * features/i386/i386-avx-mpx-linux.c: Regenerated.
13507 * features/i386/i386-avx-mpx.c: Regenerated.
13508 * features/i386/x32-avx-linux.c: Regenerated.
13509 * features/i386/x32-avx512-linux.c: Regenerated.
13510 * regformats/i386/amd64-avx-linux.dat: Regenerated.
13511 * regformats/i386/amd64-avx-mpx-linux.dat: Regenerated.
13512 * regformats/i386/amd64-avx512-linux.dat: Regenerated.
13513 * regformats/i386/amd64-linux.dat: Regenerated.
13514 * regformats/i386/amd64-mpx-linux.dat: Regenerated.
13515 * regformats/i386/x32-avx-linux.dat: Regenerated.
13516 * regformats/i386/x32-avx512-linux.dat: Regenerated.
13517 * regformats/i386/x32-linux.dat: Regenerated.
13518
8884e97e
WT
135192017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13520
13521 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM):
13522 Set to AMD64_NUM_REGS.
13523
7005d26a
WT
135242017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
13525
13526 * amd64-nat.c (amd64_native_gregset_reg_offset): Simplify logic
13527 that checks validity of a register number.
13528
4bd2e1b2
KC
135292017-01-27 Kees Cook <keescook@google.com>
13530
13531 * gdb/arm-linux-nat.c (arm_linux_fetch_inferior_registers): Call
13532 fetch_fpregs if target has fpa registers.
13533 (arm_linux_store_inferior_registers): Call store_fpregs if target
13534 has fpa registers.
13535
7cf1de6c
AA
135362017-01-26 Andreas Arnez <arnez@linux.vnet.ibm.com>
13537
13538 * cris-tdep.c (cris_gdbarch_init): Remove check for
13539 info.byte_order and force it to BFD_ENDIAN_LITTLE.
13540
874a1c8c
AT
135412017-01-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
13542
13543 * corelow.c (get_core_register_section): Check for regset
13544 existence before checking for REGSET_VARIABLE_SIZE.
13545
d8b49cf0
YQ
135462017-01-26 Yao Qi <yao.qi@linaro.org>
13547 Pedro Alves <palves@redhat.com>
13548
13549 PR gdb/20939
13550 * disasm.c (gdb_disassembler::dis_asm_memory_error): Don't
13551 call memory_error, save memaddr instead.
13552 (gdb_disassembler::print_insn): If gdbarch_print_insn returns
13553 negative, cal memory_error.
13554 * disasm.h (gdb_disassembler) <m_err_memaddr>: New field.
13555
658ca58c
YQ
135562017-01-26 Yao Qi <yao.qi@linaro.org>
13557
13558 * disasm-selftests.c (memory_error_test): New function.
13559 (_initialize_disasm_selftests): Register memory_error_test.
13560
79843d45
YQ
135612017-01-26 Yao Qi <yao.qi@linaro.org>
13562
13563 * Makefile.in (SFILES): Add disasm-selftests.c and
13564 selftest-arch.c.
13565 (COMMON_OBS): Add disasm-selftests.o and selftest-arch.o.
13566 * disasm-selftests.c: New file.
13567 * selftest-arch.c: New file.
13568 * selftest-arch.h: New file.
13569
8cafda32
YQ
135702017-01-26 Yao Qi <yao.qi@linaro.org>
13571
13572 * mep-tdep.c (mep_gdb_print_insn): Set info->arch
13573 to bfd_arch_mep. Don't return 0 if section is not
13574 found. Call print_insn_mep.
13575
e47ad6c0
YQ
135762017-01-26 Pedro Alves <palves@redhat.com>
13577 Yao Qi <yao.qi@linaro.org>
13578
13579 * arm-tdep.c: Include "disasm.h".
13580 (gdb_print_insn_arm): Update code to get gdbarch.
13581 * disasm.c (dis_asm_read_memory): Change it to
13582 gdb_disassembler::dis_asm_read_memory.
13583 (dis_asm_memory_error): Likewise.
13584 (dis_asm_print_address): Likewise.
13585 (gdb_pretty_print_insn): Change it to
13586 gdb_disassembler::pretty_print_insn.
13587 (dump_insns): Add one argument gdb_disassemlber. All
13588 callers updated.
13589 (do_mixed_source_and_assembly_deprecated): Likewise.
13590 (do_mixed_source_and_assembly): Likewise.
13591 (do_assembly_only): Likewise.
13592 (gdb_disassembler::gdb_disassembler): New.
13593 (gdb_disassembler::print_insn): New.
13594 * disasm.h (class gdb_disassembler): New.
13595 (gdb_pretty_print_insn): Remove declaration.
13596 (gdb_disassemble_info): Likewise.
13597 * guile/scm-disasm.c (class gdbscm_disassembler): New.
13598 (gdbscm_disasm_read_memory_worker): Update.
13599 (gdbscm_disasm_read_memory): Update.
13600 (gdbscm_disasm_memory_error): Remove.
13601 (gdbscm_disasm_print_address): Remove.
13602 (gdbscm_disassembler::gdbscm_disassembler): New.
13603 (gdbscm_print_insn_from_port): Update.
13604 * mips-tdep.c: Include disasm.h.
13605 (gdb_print_insn_mips): Update code to get gdbarch.
13606 * record-btrace.c (btrace_insn_history): Update.
13607 * spu-tdep.c: Include disasm.h.
13608 (struct spu_dis_asm_data): Remove.
13609 (struct spu_dis_asm_info): New.
13610 (spu_dis_asm_print_address): Use spu_dis_asm_info to get
13611 SPU id.
13612 (gdb_print_insn_spu): Cast disassemble_info to
13613 spu_dis_asm_info.
13614
80d75874
YQ
136152017-01-26 Yao Qi <yao.qi@linaro.org>
13616
13617 * disasm.c (do_ui_file_delete): Delete.
13618 (gdb_insn_length): Move code creating stream to ...
13619 * utils.c (null_stream): ... here. New function.
13620 * utils.h (null_stream): Declare.
13621
60685cd0
SM
136222017-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13623
13624 * python/py-inferior.c (find_thread_object): Return directly
13625 from the loop. Remove "found" variable.
13626
eb1cdb62
JB
136272017-01-21 Joel Brobecker <brobecker@adacore.com>
13628
13629 GDB 7.12.1 released.
13630
b1ce6568
SM
136312017-01-20 Simon Marchi <simon.marchi@ericsson.com>
13632
13633 * python/py-function.c (fnpy_call): Reorder declarations to have
13634 the gdbpy_enter object declared first.
13635 * python/py-xmethods.c (gdbpy_get_xmethod_arg_types): Likewise.
13636
6f8b0407
SM
136372017-01-20 Simon Marchi <simon.marchi@ericsson.com>
13638
fec93fb1 13639 PR python/21068
6f8b0407
SM
13640 * python/python-internal.h (PyMem_RawMalloc): Define for
13641 Python < 3.4.
13642 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Use
13643 PyMem_RawMalloc instead of PyMem_Malloc.
13644
78cbbba8
LM
136452017-01-20 Mike Wrighton <mike_wrighton@codesourcery.com>
13646 Luis Machado <lgustavo@codesourcery.com>
13647
13648 * NEWS (New commands): Mention flash-erase.
13649 (New MI commands): Mention target-flash-erase.
13650 * mi/mi-cmds.c (mi_cmd_target_flash_erase): Add target-flash-erase MI
13651 command.
13652 * mi/mi-cmds.h (mi_cmd_target_flash_erase): New declaration.
13653 * mi/mi-main.c (mi_cmd_target_flash_erase): New function.
13654 * target.c (flash_erase_command): New function.
13655 (initialize_targets): Add new flash-erase command.
13656 * target.h (flash_erase_command): New declaration.
13657
2132fe85
JB
136582017-01-20 Joel Brobecker <brobecker@adacore.com>
13659
13660 * nat/linux-ptrace.c: Only include <sys/procfs.h> if
13661 HAVE_SYS_PROCFS_H is defined.
13662
d1dff226
AH
136632017-01-18 Alan Hayward <alan.hayward@arm.com>
13664
13665 * remote.c (struct cached_reg): Change data into a pointer.
13666 * (stop_reply_dtr): Free data pointers before deleting vector.
13667 (process_stop_reply): Likewise.
13668 (remote_parse_stop_reply): Allocate space for data
13669
9890e433
AH
136702017-01-18 Alan Hayward <alan.hayward@arm.com>
13671
13672 * amd64-tdep.c (amd64_pseudo_register_read_value): remove
13673 MAX_REGISTER_SIZE.
13674 (amd64_pseudo_register_read_value): Likewise.
13675 * remote.c (fetch_register_using_p): Remove MAX_REGISTER_SIZE.
13676 (store_register_using_P): Likewise.
13677 * regcache.c (regcache_xfer_part): Likewise.
13678
7a36499a
IR
136792017-01-16 Ivo Raisr <ivo.raisr@oracle.com>
13680
13681 Split real and pseudo registers.
13682 * sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
13683 (sparc32_pseudo_regnum): New enum.
13684 * sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
13685 * sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
13686 (SPARC32_CP0_REGISTERS): New macro.
13687 (sparc32_pseudo_register_name): New function.
13688 (sparc32_register_name): Use sparc32_pseudo_register_name.
13689 (sparc32_pseudo_register_type): New function.
13690 (sparc32_register_type): Use sparc32_pseudo_register_type.
13691 (sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
13692 pseudo register numbers.
13693 * sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
13694 (SPARC64_CP0_REGISTERS): New macro.
13695 (sparc64_pseudo_register_name): New function.
13696 (sparc64_register_name): Use sparc64_pseudo_register_name.
13697 (sparc64_pseudo_register_type): New function.
13698 (sparc64_register_type): Use sparc64_pseudo_register_type.
13699 (sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
13700 pseudo register numbers.
13701 (sparc64_store_floating_fields, sparc64_extract_floating_fields,
13702 sparc64_store_arguments): Handle pseudo register numbers.
13703
6f8976bf
YQ
137042017-01-13 Yao Qi <yao.qi@linaro.org>
13705
13706 * remote.c (REMOTE_DEBUG_MAX_CHAR): New macro.
13707 (putpkt_binary): Print only REMOTE_DEBUG_MAX_CHAR chars in debug
13708 output.
13709 (getpkt_or_notif_sane_1): Likewise.
13710
e4241ace
YQ
137112017-01-13 Yao Qi <yao.qi@linaro.org>
13712
13713 * Makefile.in (checker-headers): Use CXX and CXX_DIALET instead
13714 of CC. Pass "-x c++-header" instead of "-x c".
13715
3015c064
SM
137162017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13717
13718 * remote.c (remote_can_async_p): Update comment.
13719
fde1b17d
SM
137202017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13721
13722 * linux-nat.c (linux_nat_can_async_p): Update comment.
13723
ca1ca08b
SM
137242017-01-12 Simon Marchi <simon.marchi@ericsson.com>
13725
13726 * serial.c (serial_open): Forget about "pc" and "lpt" serial interface.
13727
4ad2da73
SM
137282017-01-11 Simon Marchi <simon.marchi@ericsson.com>
13729
13730 * cli/cli-decode.c (lookup_cmd_1): Fix typo in comment.
13731
c8b23b3f
TT
137322017-01-10 Tom Tromey <tom@tromey.com>
13733
13734 * python/py-type.c (typy_legacy_template_argument): Update.
13735 * cp-support.h (struct demangle_parse_info) (demangle_parse_info,
13736 ~demangle_parse_info): Declare new members.
13737 (cp_demangled_name_to_comp): Return unique_ptr.
13738 (cp_demangled_name_parse_free)
13739 (make_cleanup_cp_demangled_name_parse_free)
13740 (cp_new_demangle_parse_info): Remove.
13741 * cp-support.c (do_demangled_name_parse_free_cleanup)
13742 (make_cleanup_cp_demangled_name_parse_free): Remove.
13743 (inspect_type, cp_canonicalize_string_full)
13744 (cp_canonicalize_string): Update.
13745 (mangled_name_to_comp): Change return type.
13746 (cp_class_name_from_physname, method_name_from_physname)
13747 (cp_func_name, cp_remove_params): Update.
13748 * cp-name-parser.y (demangle_parse_info): New constructor, from
13749 cp_new_demangle_parse_info.
13750 (~demangle_parse_info): New destructor, from
13751 cp_demangled_name_parse_free.
13752 (cp_merge_demangle_parse_infos): Update.
13753 (cp_demangled_name_to_comp): Change return type.
13754
1ac32117
TT
137552017-01-10 Tom Tromey <tom@tromey.com>
13756
13757 * top.c (prevent_dont_repeat): Change return type.
13758 * python/python.c (execute_gdb_command): Use std::string.
13759 Update.
13760 * guile/guile.c (gdbscm_execute_gdb_command): Update.
13761 * command.h (prevent_dont_repeat): Change return type.
13762 * breakpoint.c (bpstat_do_actions_1): Update.
13763
0cf08227
TT
137642017-01-10 Tom Tromey <tom@tromey.com>
13765
13766 * value.h (scoped_value_mark::~scoped_value_mark): Call
13767 free_to_mark.
13768 (scoped_value_mark::free_to_mark): New method.
13769 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
13770 scoped_value_mark.
13771
eb115069
TT
137722017-01-10 Tom Tromey <tom@tromey.com>
13773
13774 * python/py-value.c (valpy_dereference, valpy_referenced_value)
13775 (valpy_reference_value, valpy_const_value, valpy_get_address)
13776 (valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
13777 (valpy_getitem, valpy_call, valpy_binop_throw, valpy_negative)
13778 (valpy_absolute, valpy_richcompare_throw): Use scoped_value_mark.
13779 * dwarf2loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
13780 scoped_value_mark.
13781 * dwarf2-frame.c (execute_stack_op): Use scoped_value_mark.
13782 * value.h (scoped_value_mark): New class.
13783
906768f9
TT
137842017-01-10 Tom Tromey <tom@tromey.com>
13785
13786 * dwarf2read.c (dwarf2_build_psymtabs): Use psymtab_discarder.
13787 * psympriv.h (make_cleanup_discard_psymtabs): Don't declare.
13788 * psymtab.c (discard_psymtabs_upto): Remove.
13789 (make_cleanup_discard_psymtabs): Remove.
13790 (struct psymtab_state): Remove.
13791
bef155c3
TT
137922017-01-10 Tom Tromey <tom@tromey.com>
13793
13794 * record-full.c (record_full_save_cleanups): Remove.
13795 (record_full_save): Use gdb::unlinker.
13796 * gcore.c (do_bfd_delete_cleanup): Remove.
13797 (gcore_command): Use gdb::unlinker, unique_xmalloc_ptr. Remove
13798 cleanups.
13799 * dwarf2read.c (unlink_if_set): Remove.
13800 (write_psymtabs_to_index): Use gdb::unlinker.
13801 * common/gdb_unlinker.h: New file.
13802
192b62ce
TT
138032017-01-10 Tom Tromey <tom@tromey.com>
13804
13805 * windows-tdep.c (windows_xfer_shared_library): Update.
13806 * windows-nat.c (windows_make_so): Update.
13807 * utils.h (make_cleanup_bfd_unref): Remove.
13808 * utils.c (do_bfd_close_cleanup, make_cleanup_bfd_unref): Remove.
13809 * symfile.h (symfile_bfd_open)
13810 (find_separate_debug_file_in_section): Return gdb_bfd_ref_ptr.
13811 * symfile.c (read_symbols, symbol_file_add)
13812 (separate_debug_file_exists): Update.
13813 (symfile_bfd_open): Return gdb_bfd_ref_ptr.
13814 (generic_load, reread_symbols): Update.
13815 * symfile-mem.c (symbol_file_add_from_memory): Update.
13816 * spu-linux-nat.c (spu_bfd_open): Return gdb_bfd_ref_ptr.
13817 (spu_symbol_file_add_from_memory): Update.
13818 * solist.h (struct target_so_ops) <bfd_open>: Return
13819 gdb_bfd_ref_ptr.
13820 (solib_bfd_fopen, solib_bfd_open): Return gdb_bfd_ref_ptr.
13821 * solib.c (solib_bfd_fopen, solib_bfd_open): Return
13822 gdb_bfd_ref_ptr.
13823 (solib_map_sections, reload_shared_libraries_1): Update.
13824 * solib-svr4.c (enable_break): Update.
13825 * solib-spu.c (spu_bfd_fopen): Return gdb_bfd_ref_ptr.
13826 * solib-frv.c (enable_break2): Update.
13827 * solib-dsbt.c (enable_break): Update.
13828 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): Return
13829 gdb_bfd_ref_ptr.
13830 (darwin_solib_get_all_image_info_addr_at_init): Update.
13831 (darwin_bfd_open): Return gdb_bfd_ref_ptr.
13832 * solib-aix.c (solib_aix_bfd_open): Return gdb_bfd_ref_ptr.
13833 * record-full.c (record_full_save): Update.
13834 * python/py-objfile.c (objfpy_add_separate_debug_file): Update.
13835 * procfs.c (insert_dbx_link_bpt_in_file): Update.
13836 * minidebug.c (find_separate_debug_file_in_section): Return
13837 gdb_bfd_ref_ptr.
13838 * machoread.c (macho_add_oso_symfile): Change abfd to
13839 gdb_bfd_ref_ptr.
13840 (macho_symfile_read_all_oso): Update.
13841 (macho_check_dsym): Return gdb_bfd_ref_ptr.
13842 (macho_symfile_read): Update.
13843 * jit.c (bfd_open_from_target_memory): Return gdb_bfd_ref_ptr.
13844 (jit_bfd_try_read_symtab): Update.
13845 * gdb_bfd.h (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
13846 (gdb_bfd_openw, gdb_bfd_openr_iovec)
13847 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
13848 gdb_bfd_ref_ptr.
13849 (gdb_bfd_ref_policy): New struct.
13850 (gdb_bfd_ref_ptr): New typedef.
13851 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
13852 (gdb_bfd_openw, gdb_bfd_openr_iovec)
13853 (gdb_bfd_openr_next_archived_file, gdb_bfd_fdopenr): Return
13854 gdb_bfd_ref_ptr.
13855 * gcore.h (create_gcore_bfd): Return gdb_bfd_ref_ptr.
13856 * gcore.c (create_gcore_bfd): Return gdb_bfd_ref_ptr.
13857 (gcore_command): Update.
13858 * exec.c (exec_file_attach): Update.
13859 * elfread.c (elf_symfile_read): Update.
13860 * dwarf2read.c (dwarf2_get_dwz_file): Update.
13861 (try_open_dwop_file, open_dwo_file): Return gdb_bfd_ref_ptr.
13862 (open_and_init_dwo_file): Update.
13863 (open_dwp_file): Return gdb_bfd_ref_ptr.
13864 (open_and_init_dwp_file): Update.
13865 * corelow.c (core_open): Update.
13866 * compile/compile-object-load.c (compile_object_load): Update.
13867 * common/gdb_ref_ptr.h (ref_ptr::operator->): New operator.
13868 * coffread.c (coff_symfile_read): Update.
13869 * cli/cli-dump.c (bfd_openr_or_error, bfd_openw_or_error): Return
13870 gdb_bfd_ref_ptr. Rename.
13871 (dump_bfd_file, restore_command): Update.
13872 * build-id.h (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
13873 * build-id.c (build_id_to_debug_bfd): Return gdb_bfd_ref_ptr.
13874 (find_separate_debug_file_by_buildid): Update.
13875
50315b21
TT
138762017-01-10 Tom Tromey <tom@tromey.com>
13877
13878 * common/gdb_ref_ptr.h: New file.
13879 * python/py-ref.h (struct gdbpy_ref_policy): New.
13880 (gdbpy_ref): Now a typedef.
13881
fc4007c9
TT
138822017-01-10 Tom Tromey <tom@tromey.com>
13883
13884 * utils.h (make_cleanup_htab_delete): Don't declare.
13885 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete):
13886 Remove.
13887 * linespec.c (decode_compound_collector): Add constructor,
13888 destructor.
13889 (lookup_prefix_sym): Remove cleanup.
13890 (symtab_collector): Add constructor, destructor.
13891 (collect_symtabs_from_filename): Remove cleanup.
13892 * disasm.c (do_mixed_source_and_assembly): Use htab_up.
13893 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
13894 Use htab_up.
13895 * gnu-v3-abi.c (gnuv3_print_vtable): Use htab_up.
13896 * dwarf2read.c (dw2_expand_symtabs_matching)
13897 (dw2_map_symbol_filenames, dwarf_decode_macros)
13898 (write_psymtabs_to_index): Use htab_up.
13899 * dwarf2loc.c (func_verify_no_selftailcall)
13900 (call_site_find_chain_1, func_verify_no_selftailcall)
13901 (chain_candidate, call_site_find_chain_1): Use std::unordered_set,
13902 std::vector, gdb::unique_xmalloc_ptr.
13903 (call_sitep): Remove typedef.
13904 (dwarf2_locexpr_baton_eval): Remove unused variable.
13905
8dbcee67
TT
139062017-01-10 Tom Tromey <tom@tromey.com>
13907
13908 * python/python-internal.h (make_cleanup_py_decref)
13909 (make_cleanup_py_xdecref): Don't declare.
13910 * python/py-utils.c (py_decref, make_cleanup_py_decref)
13911 (py_xdecref, make_cleanup_py_xdecref): Remove.
13912
13df46cc
TT
139132017-01-10 Tom Tromey <tom@tromey.com>
13914
13915 * python/py-framefilter.c (py_mi_print_variables): Use gdbpy_ref.
13916 (py_print_locals, enumerate_locals, py_print_args): Use gdbpy_ref.
13917
06fc9bf7
TT
139182017-01-10 Tom Tromey <tom@tromey.com>
13919
13920 * python/py-framefilter.c (enumerate_args): Use gdbpy_ref.
13921
830a4934
TT
139222017-01-10 Tom Tromey <tom@tromey.com>
13923
13924 * python/py-utils.c (unicode_to_encoded_string)
13925 (python_string_to_target_string)
13926 (python_string_to_target_python_string)
13927 (python_string_to_host_string, gdbpy_obj_to_string)
13928 (get_addr_from_python): Use gdbpy_ref.
13929
4586d543
TT
139302017-01-10 Tom Tromey <tom@tromey.com>
13931
13932 * python/py-unwind.c (pyuw_object_attribute_to_pointer): Use
13933 gdbpy_ref.
13934
59876f8f
TT
139352017-01-10 Tom Tromey <tom@tromey.com>
13936
13937 * python/python.c (eval_python_command, gdbpy_decode_line)
13938 (gdbpy_run_events, gdbpy_start_type_printers)
13939 (gdbpy_apply_type_printers): Use gdbpy_ref.
13940
97d83487
TT
139412017-01-10 Tom Tromey <tom@tromey.com>
13942
13943 * python/py-param.c (get_doc_string, compute_enum_values): Use
13944 gdbpy_ref.
13945
9205649a
TT
139462017-01-10 Tom Tromey <tom@tromey.com>
13947
13948 * python/py-inferior.c (find_thread_object, build_inferior_list):
13949 Use gdbpy_ref.
13950
74c49d45
TT
139512017-01-10 Tom Tromey <tom@tromey.com>
13952
13953 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
13954
16361ffb
TT
139552017-01-10 Tom Tromey <tom@tromey.com>
13956
13957 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Use
13958 gdbpy_ref.
13959
905f2cca
TT
139602017-01-10 Tom Tromey <tom@tromey.com>
13961
13962 * python/py-cmd.c (cmdpy_completer_helper): Use gdbpy_ref. Remove
13963 extra incref.
13964 (cmdpy_completer_handle_brkchars, cmdpy_completer, cmdpy_init):
13965 Use gdbpy_ref.
13966
64081434
TT
139672017-01-10 Tom Tromey <tom@tromey.com>
13968
13969 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
13970 gdbpy_ref.
13971
59e9e831
TT
139722017-01-10 Tom Tromey <tom@tromey.com>
13973
13974 * python/py-arch.c (archpy_disassemble): Use gdbpy_ref. Don't
13975 decref results of PyArg_ParseTupleAndKeywords.
13976
9de10f6d
TT
139772017-01-10 Tom Tromey <tom@tromey.com>
13978
13979 * python/python.c (python_run_simple_file): Use
13980 unique_xmalloc_ptr, gdbpy_ref.
13981
2bd5759d
TT
139822017-01-10 Tom Tromey <tom@tromey.com>
13983
13984 * python/py-prettyprint.c (print_stack_unless_memory_error)
13985 (print_string_repr, print_children): Use gdbpy_ref.
13986 (dummy_python_frame): New class.
13987 (dummy_python_frame::dummy_python_frame): Rename from
13988 push_dummy_python_frame.
13989 (py_restore_tstate): Remove.
13990
3b4e0e01
TT
139912017-01-10 Tom Tromey <tom@tromey.com>
13992
13993 * python/py-framefilter.c (py_print_frame): Use gdbpy_ref.
13994
17a22718
TT
139952017-01-10 Tom Tromey <tom@tromey.com>
13996
13997 * python/python.c (ensure_python_env, restore_python_env):
13998 Remove.
13999 * python/python-internal.h (ensure_python_env): Don't declare.
14000 * varobj.h (varobj_ensure_python_env): Don't declare.
14001 * varobj.c (varobj_ensure_python_env): Remove.
14002
68cdc557
TT
140032017-01-10 Tom Tromey <tom@tromey.com>
14004
14005 * varobj.c (varobj_value_get_print_value): Use
14006 gdbpy_enter_varobj.
14007
1eba6383
TT
140082017-01-10 Tom Tromey <tom@tromey.com>
14009
14010 * python/py-prettyprint.c (print_string_repr, print_children):
14011 Update.
14012 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Change type
14013 of "encoding".
14014 * varobj.c (varobj_value_get_print_value): Update.
14015 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
14016
bde7b3e3
TT
140172017-01-10 Tom Tromey <tom@tromey.com>
14018
14019 * varobj.c (varobj_get_display_hint)
14020 (dynamic_varobj_has_child_method, install_new_value_visualizer)
14021 (varobj_set_visualizer, free_variable): Use
14022 gdbpy_enter_varobj.
14023
a7785f8c
TT
140242017-01-10 Tom Tromey <tom@tromey.com>
14025
14026 * python/python.c (python_command): Use gdbpy_enter, gdbpy_ref.
14027 (do_finish_initialization): New function. Use gdbpy_ref.
14028 (gdbpy_finish_initialization): Use gdbpy_enter. Call
14029 do_finish_initialization.
14030
2865bfce
TT
140312017-01-10 Tom Tromey <tom@tromey.com>
14032
14033 * python/py-param.c (get_set_value, get_show_value): Use
14034 gdbpy_enter, gdbpy_ref.
14035
0e9dcc75
TT
140362017-01-10 Tom Tromey <tom@tromey.com>
14037
14038 * python/py-function.c (fnpy_call): Use gdbpy_enter, gdbpy_ref.
14039
12a5cedd
TT
140402017-01-10 Tom Tromey <tom@tromey.com>
14041
14042 * python/py-cmd.c (cmdpy_function): Use gdbpy_enter, gdbpy_ref.
14043
788f2586
TT
140442017-01-10 Tom Tromey <tom@tromey.com>
14045
14046 * python/py-varobj.c (py_varobj_iter_dtor, py_varobj_iter_next):
14047 Use gdbpy_enter_varobj.
14048
6cd67bea
TT
140492017-01-10 Tom Tromey <tom@tromey.com>
14050
14051 * varobj.c (gdbpy_enter_varobj): New constructor.
14052 * python/python-internal.h (gdbpy_enter_varobj): New class.
14053 * python/py-varobj.c (py_varobj_get_iterator): Use
14054 gdbpy_enter_varobj.
14055
14b122bf
TT
140562017-01-10 Tom Tromey <tom@tromey.com>
14057
14058 * python/py-xmethods.c (gdbpy_get_xmethod_result_type): Use
14059 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
14060 (gdbpy_invoke_xmethod): Use gdbpy_ref, gdbpy_enter.
14061 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref,
14062 unique_xmalloc_ptr.
14063 (gdbpy_get_xmethod_arg_types): Use gdbpy_ref, gdbpy_enter.
14064
bf1ca3b9
TT
140652017-01-10 Tom Tromey <tom@tromey.com>
14066
14067 * python/py-xmethods.c (invoke_match_method): Use
14068 gdbpy_ref.
14069
572a5524
TT
140702017-01-10 Tom Tromey <tom@tromey.com>
14071
14072 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): use
14073 gdbpy_enter, gdbpy_ref.
14074
396a78b6
TT
140752017-01-10 Tom Tromey <tom@tromey.com>
14076
14077 * python/python.c (python_interactive_command): Use gdbpy_enter.
14078
a88b13c7
TT
140792017-01-10 Tom Tromey <tom@tromey.com>
14080
14081 * python/python.c (gdbpy_before_prompt_hook): Use gdbpy_enter,
14082 gdbpy_ref.
14083
e9f0c363
TT
140842017-01-10 Tom Tromey <tom@tromey.com>
14085
14086 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Use
14087 gdbpy_enter, gdbpy_ref, unique_xmalloc_ptr.
14088
6349f452
TT
140892017-01-10 Tom Tromey <tom@tromey.com>
14090
14091 * utils.h (htab_deleter): New struct.
14092 (htab_up): New typedef.
14093 * python/py-framefilter.c (gdbpy_apply_frame_filter): Use
14094 gdbpy_enter, gdbpy_ref, htab_up.
14095
c0171de6
TT
140962017-01-10 Tom Tromey <tom@tromey.com>
14097
14098 * python/py-unwind.c (pending_frame_invalidate): Remove.
14099 (pyuw_sniffer): Use gdbpy_enter and gdbpy_ref.
14100
f18e226f
TT
141012017-01-10 Tom Tromey <tom@tromey.com>
14102
14103 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data)
14104 (gdbpy_clone_xmethod_worker_data): Use gdbpy_enter.
14105
c57af3f1
TT
141062017-01-10 Tom Tromey <tom@tromey.com>
14107
14108 * python/py-type.c (save_objfile_types): Use gdbpy_enter.
14109
60e600ec
TT
141102017-01-10 Tom Tromey <tom@tromey.com>
14111
14112 * python/python.c (gdbpy_eval_from_control_command)
14113 (gdbpy_source_script, gdbpy_run_events)
14114 (gdbpy_source_objfile_script, gdbpy_execute_objfile_script)
14115 (gdbpy_free_type_printers, gdbpy_finish_initialization): Use
14116 gdbpy_enter.
14117
bf7da5b0
TT
141182017-01-10 Tom Tromey <tom@tromey.com>
14119
14120 * python/py-progspace.c (py_free_pspace): Use gdbpy_enter.
14121
2d38bced
TT
141222017-01-10 Tom Tromey <tom@tromey.com>
14123
14124 * python/py-objfile.c (py_free_objfile): Use gdbpy_enter.
14125
07bc7329
TT
141262017-01-10 Tom Tromey <tom@tromey.com>
14127
14128 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
14129 (python_on_inferior_call_pre, python_on_inferior_call_post)
14130 (python_on_memory_change, python_on_register_change)
14131 (python_inferior_exit, python_new_objfile, add_thread_object)
14132 (delete_thread_object, py_free_inferior): Use gdbpy_enter.
14133
6e7c365e
TT
141342017-01-10 Tom Tromey <tom@tromey.com>
14135
14136 * python/py-finishbreakpoint.c (bpfinishpy_handle_stop)
14137 (bpfinishpy_handle_exit): Use gdbpy_enter.
14138
6ba0cd40
TT
141392017-01-10 Tom Tromey <tom@tromey.com>
14140
14141 * python/py-cmd.c (cmdpy_destroyer)
14142 (cmdpy_completer_handle_brkchars, cmdpy_completer): Use
14143 gdbpy_enter.
14144
de2dc875
TT
141452017-01-10 Tom Tromey <tom@tromey.com>
14146
14147 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Use
14148 gdbpy_enter.
14149 (gdbpy_breakpoint_has_cond): Likewise.
14150
4ecee2c4
TT
141512017-01-10 Tom Tromey <tom@tromey.com>
14152
14153 * python/python.c (gdbpy_enter): New constructor.
14154 (~gdbpy_enter): New destructor.
14155 (restore_python_env, ensure_python_env): Rewrite.
14156 * python/python-internal.h (gdbpy_enter): New class.
14157
37fce74f
TT
141582017-01-10 Tom Tromey <tom@tromey.com>
14159
14160 * python/py-symbol.c (gdbpy_lookup_symbol): Use gdbpy_ref.
14161
53a0cca3
TT
141622017-01-10 Tom Tromey <tom@tromey.com>
14163
14164 * python/py-value.c (value_has_field, get_field_flag)
14165 (get_field_type, valpy_getitem, convert_value_from_python): Use
14166 gdbpy_ref.
14167
ff3724f5
TT
141682017-01-10 Tom Tromey <tom@tromey.com>
14169
14170 * python/python.c (gdbpy_progspaces, gdbpy_objfiles): Use
14171 gdbpy_ref.
14172
0700aea5
TT
141732017-01-10 Tom Tromey <tom@tromey.com>
14174
14175 * python/py-prettyprint.c (search_pp_list)
14176 (find_pretty_printer_from_objfiles)
14177 (find_pretty_printer_from_progspace)
14178 (find_pretty_printer_from_gdb, find_pretty_printer)
14179 (gdbpy_get_display_hint, gdbpy_get_varobj_pretty_printer): Use
14180 gdbpy_ref.
14181
1bb44c9f
TT
141822017-01-10 Tom Tromey <tom@tromey.com>
14183
14184 * python/py-param.c (call_doc_function): Use gdbpy_ref.
14185
87ce03fd
TT
141862017-01-10 Tom Tromey <tom@tromey.com>
14187
14188 * python/py-linetable.c (build_line_table_tuple_from_pcs)
14189 (ltpy_get_all_source_lines): Use gdbpy_ref.
14190
ee0a3fb8
TT
141912017-01-10 Tom Tromey <tom@tromey.com>
14192
14193 * python/py-framefilter.c (extract_sym, extract_value)
14194 (get_py_iter_from_func, bootstrap_python_frame_filters): Use
14195 gdbpy_ref.
14196
bf2a52fa
TT
141972017-01-10 Tom Tromey <tom@tromey.com>
14198
14199 * python/py-breakpoint.c (gdbpy_breakpoints): Use gdbpy_ref.
14200
f59fe7f8
TT
142012017-01-10 Tom Tromey <tom@tromey.com>
14202
14203 * python/py-inferior.c (gdbpy_inferiors): Use gdbpy_ref.
14204
80bd970a
TT
142052017-01-10 Tom Tromey <tom@tromey.com>
14206
14207 * python/py-function.c (convert_values_to_python, fnpy_init): Use
14208 gdbpy_ref.
14209
d1b3de2e
TT
142102017-01-10 Tom Tromey <tom@tromey.com>
14211
14212 * python/py-cmd.c (gdbpy_string_to_argv): Use gdbpy_ref.
14213
3bb43384
TT
142142017-01-10 Tom Tromey <tom@tromey.com>
14215
14216 * python/py-type.c (convert_field, make_fielditem, typy_fields)
14217 (typy_range): Use gdbpy_ref.
14218
abf5651e
TT
142192017-01-10 Tom Tromey <tom@tromey.com>
14220
14221 * python/py-threadevent.c (create_thread_event_object): Use
14222 gdbpy_ref.
14223 * python/py-stopevent.c (create_stop_event_object): Simplify.
14224 (emit_stop_event): Use gdbpy_ref.
14225 * python/py-signalevent.c (create_signal_event_object): Use
14226 gdbpy_ref.
14227 * python/py-newobjfileevent.c (create_new_objfile_event_object)
14228 (emit_new_objfile_event, create_clear_objfiles_event_object)
14229 (emit_clear_objfiles_event): Use gdbpy_ref.
14230 * python/py-infevents.c (create_inferior_call_event_object)
14231 (create_register_changed_event_object)
14232 (create_memory_changed_event_object, emit_inferior_call_event)
14233 (emit_memory_changed_event, emit_register_changed_event): Use
14234 gdbpy_ref.
14235 * python/py-exitedevent.c (create_exited_event_object)
14236 (emit_exited_event): Use gdbpy_ref.
14237 * python/py-event.h (evpy_emit_event): Remove
14238 CPYCHECKER_STEALS_REFERENCE_TO_ARG annotation.
14239 * python/py-event.c (evpy_emit_event): Use gdbpy_ref.
14240 * python/py-continueevent.c (emit_continue_event): Use
14241 gdbpy_ref.
14242 * python/py-breakpoint.c (gdbpy_breakpoint_created)
14243 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
14244 gdbpy_ref.
14245 * python/py-bpevent.c (create_breakpoint_event_object): Use
14246 gdbpy_ref.
14247
a68ff33e
TT
142482017-01-10 Tom Tromey <tom@tromey.com>
14249
14250 * python/py-ref.h: New file.
14251
7becfd03
SM
142522017-01-10 Simon Marchi <simon.marchi@ericsson.com>
14253
14254 * cli-out.c (cli_ui_out::do_redirect): Change return type to
14255 void.
14256 * cli-out.h (cli_ui_out::do_redirect): Likewise.
14257 * mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
14258 * mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
14259 * ui-out.c (ui_out::redirect): Likewise.
14260 * ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
14261 * cli/cli-logging.c (set_logging_redirect): Update call site of
14262 ui_out::redirect.
14263 (handle_redirections): Likewise.
14264 * scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
14265 * top.c (execute_command_to_string): Likewise.
14266 * utils.c (do_ui_out_redirect_pop): Likewise.
14267
df294654
SM
142682017-01-10 Simon Marchi <simon.marchi@ericsson.com>
14269
14270 * stack.c (_initialize_stack): Update "frame" command help message.
14271
f5e6296e
IB
142722017-01-08 Iain Buclaw <ibuclaw@gdcproject.org>
14273
14274 * d-exp.y (CastExpression): Emit UNOP_CAST_TYPE.
14275
0e2d6fa6
YQ
142762017-01-06 Yao Qi <yao.qi@linaro.org>
14277
14278 * x86-linux-nat.h: Include gdb_proc_service.h.
14279
44d6d3f9
YQ
142802017-01-06 Yao Qi <yao.qi@linaro.org>
14281
14282 * ser-base.h: Include serial.h.
14283
656731fe
YQ
142842017-01-06 Yao Qi <yao.qi@linaro.org>
14285
14286 * ppc-linux-tdep.h: Include ppc-tdep.h.
14287
1ca8f924
YQ
142882017-01-06 Yao Qi <yao.qi@linaro.org>
14289
14290 * nat/amd64-linux-siginfo.h: Include signal.h.
14291
bc3008c4
YQ
142922017-01-06 Yao Qi <yao.qi@linaro.org>
14293
14294 * nat/aarch64-linux-hw-point.h: Include break-common.h.
14295
66c80d03
YQ
142962017-01-06 Yao Qi <yao.qi@linaro.org>
14297
14298 * mi/mi-parse.h: Include mi-cmds.h.
14299
051d2dda
YQ
143002017-01-06 Yao Qi <yao.qi@linaro.org>
14301
14302 * inf-loop.c: Don't include "target.h".
14303 * inf-loop.h: Include it here.
14304
8018d34f
YQ
143052017-01-06 Yao Qi <yao.qi@linaro.org>
14306
14307 * dfp.h: Include "dboulest.h" and "expression.h".
14308
c0b8369c
YQ
143092017-01-06 Yao Qi <yao.qi@linaro.org>
14310
14311 * ax-gdb.h: Include "ax.h".
14312
ad5cba2a
YQ
143132017-01-06 Yao Qi <yao.qi@linaro.org>
14314
14315 * Makefile.in (HFILES_NO_SRCDIR): Replace gdb_ptrace.h
14316 with nat/gdb_ptrace.h.
14317
1c33cd7f
YQ
143182017-01-05 Yao Qi <yao.qi@linaro.org>
14319
14320 * mips-fbsd-tdep.c (mips_fbsd_sigframe_init): Move && to
14321 new line.
14322 (mips64_fbsd_sigframe_init): Likewise.
14323
c988ac1d
JB
143242017-01-04 John Baldwin <jhb@FreeBSD.org>
14325
14326 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Use
14327 GDB_OSABI_FREEBSD instead of GDB_OSABI_FREEBSD_ELF.
14328
b268007c
JB
143292017-01-04 John Baldwin <jhb@FreeBSD.org>
14330
14331 * Makefile.in (ALLDEPFILES): Add mips-fbsd-nat.c.
14332 * NEWS: Mention new FreeBSD/mips native configuration.
14333 * config/mips/fbsd.mh: New file.
14334 * configure.host: Add mips*-*-freebsd*.
14335 * mips-fbsd-nat.c: New file.
14336
387360da
JB
143372017-01-04 John Baldwin <jhb@FreeBSD.org>
14338
14339 * Makefile.in (ALL_TARGET_OBS): Add mips-fbsd-tdep.o.
14340 (ALLDEPFILES): Add mips-fbsd-tdep.c.
14341 * NEWS: Mention new FreeBSD/mips target.
14342 * configure.tgt: Add mips*-*-freebsd*.
14343 * mips-fbsd-tdep.c: New file.
14344 * mips-fbsd-tdep.h: New file.
14345
2aaaf250
YQ
143462017-01-04 Yao Qi <yao.qi@linaro.org>
14347
14348 * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
14349 use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
14350
61baf725
JB
143512017-01-01 Joel Brobecker <brobecker@adacore.com>
14352
6dbb839a 14353 Update copyright year range in all GDB files.
61baf725 14354
c113e7ff 143552017-01-01 Joel Brobecker <brobecker@adacore.com>
ce0db137 14356
c113e7ff 14357 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2016.
ce0db137 14358
c113e7ff 14359For older changes see ChangeLog-2016.
c906108c
SS
14360\f
14361Local Variables:
14362mode: change-log
14363left-margin: 8
14364fill-column: 74
14365version-control: never
57da7796 14366coding: utf-8
c906108c 14367End:
This page took 4.043077 seconds and 4 git commands to generate.